paulo@0: #! /bin/sh paulo@0: # Guess values for system-dependent variables and create Makefiles. paulo@0: # Generated by GNU Autoconf 2.59 for gift-gnutella 0.0.11. paulo@0: # paulo@0: # Copyright (C) 2003 Free Software Foundation, Inc. paulo@0: # This configure script is free software; the Free Software Foundation paulo@0: # gives unlimited permission to copy, distribute and modify it. paulo@0: ## --------------------- ## paulo@0: ## M4sh Initialization. ## paulo@0: ## --------------------- ## paulo@0: paulo@0: # Be Bourne compatible paulo@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then paulo@0: emulate sh paulo@0: NULLCMD=: paulo@0: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which paulo@0: # is contrary to our usage. Disable this feature. paulo@0: alias -g '${1+"$@"}'='"$@"' paulo@0: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then paulo@0: set -o posix paulo@0: fi paulo@0: DUALCASE=1; export DUALCASE # for MKS sh paulo@0: paulo@0: # Support unset when possible. paulo@0: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then paulo@0: as_unset=unset paulo@0: else paulo@0: as_unset=false paulo@0: fi paulo@0: paulo@0: paulo@0: # Work around bugs in pre-3.0 UWIN ksh. paulo@0: $as_unset ENV MAIL MAILPATH paulo@0: PS1='$ ' paulo@0: PS2='> ' paulo@0: PS4='+ ' paulo@0: paulo@0: # NLS nuisances. paulo@0: for as_var in \ paulo@0: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ paulo@0: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ paulo@0: LC_TELEPHONE LC_TIME paulo@0: do paulo@0: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then paulo@0: eval $as_var=C; export $as_var paulo@0: else paulo@0: $as_unset $as_var paulo@0: fi paulo@0: done paulo@0: paulo@0: # Required to use basename. paulo@0: if expr a : '\(a\)' >/dev/null 2>&1; then paulo@0: as_expr=expr paulo@0: else paulo@0: as_expr=false paulo@0: fi paulo@0: paulo@0: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then paulo@0: as_basename=basename paulo@0: else paulo@0: as_basename=false paulo@0: fi paulo@0: paulo@0: paulo@0: # Name of the executable. paulo@0: as_me=`$as_basename "$0" || paulo@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ paulo@0: X"$0" : 'X\(//\)$' \| \ paulo@0: X"$0" : 'X\(/\)$' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X/"$0" | paulo@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } paulo@0: /^X\/\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\/\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: paulo@0: paulo@0: # PATH needs CR, and LINENO needs CR and PATH. paulo@0: # Avoid depending upon Character Ranges. paulo@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' paulo@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' paulo@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS paulo@0: as_cr_digits='0123456789' paulo@0: as_cr_alnum=$as_cr_Letters$as_cr_digits paulo@0: paulo@0: # The user is always right. paulo@0: if test "${PATH_SEPARATOR+set}" != set; then paulo@0: echo "#! /bin/sh" >conf$$.sh paulo@0: echo "exit 0" >>conf$$.sh paulo@0: chmod +x conf$$.sh paulo@0: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then paulo@0: PATH_SEPARATOR=';' paulo@0: else paulo@0: PATH_SEPARATOR=: paulo@0: fi paulo@0: rm -f conf$$.sh paulo@0: fi paulo@0: paulo@0: paulo@0: as_lineno_1=$LINENO paulo@0: as_lineno_2=$LINENO paulo@0: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` paulo@0: test "x$as_lineno_1" != "x$as_lineno_2" && paulo@0: test "x$as_lineno_3" = "x$as_lineno_2" || { paulo@0: # Find who we are. Look in the path if we contain no path at all paulo@0: # relative or not. paulo@0: case $0 in paulo@0: *[\\/]* ) as_myself=$0 ;; paulo@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break paulo@0: done paulo@0: paulo@0: ;; paulo@0: esac paulo@0: # We did not find ourselves, most probably we were run as `sh COMMAND' paulo@0: # in which case we are not to be found in the path. paulo@0: if test "x$as_myself" = x; then paulo@0: as_myself=$0 paulo@0: fi paulo@0: if test ! -f "$as_myself"; then paulo@0: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: case $CONFIG_SHELL in paulo@0: '') paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for as_base in sh bash ksh sh5; do paulo@0: case $as_dir in paulo@0: /*) paulo@0: if ("$as_dir/$as_base" -c ' paulo@0: as_lineno_1=$LINENO paulo@0: as_lineno_2=$LINENO paulo@0: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` paulo@0: test "x$as_lineno_1" != "x$as_lineno_2" && paulo@0: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then paulo@0: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } paulo@0: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } paulo@0: CONFIG_SHELL=$as_dir/$as_base paulo@0: export CONFIG_SHELL paulo@0: exec "$CONFIG_SHELL" "$0" ${1+"$@"} paulo@0: fi;; paulo@0: esac paulo@0: done paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO paulo@0: # uniformly replaced by the line number. The first 'sed' inserts a paulo@0: # line-number line before each line; the second 'sed' does the real paulo@0: # work. The second script uses 'N' to pair each line-number line paulo@0: # with the numbered line, and appends trailing '-' during paulo@0: # substitution so that $LINENO is not a special case at line end. paulo@0: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the paulo@0: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) paulo@0: sed '=' <$as_myself | paulo@0: sed ' paulo@0: N paulo@0: s,$,-, paulo@0: : loop paulo@0: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, paulo@0: t loop paulo@0: s,-$,, paulo@0: s,^['$as_cr_digits']*\n,, paulo@0: ' >$as_me.lineno && paulo@0: chmod +x $as_me.lineno || paulo@0: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: paulo@0: # Don't try to exec as it changes $[0], causing all sort of problems paulo@0: # (the dirname of $[0] is not the place where we might find the paulo@0: # original and so on. Autoconf is especially sensible to this). paulo@0: . ./$as_me.lineno paulo@0: # Exit status is that of the last command. paulo@0: exit paulo@0: } paulo@0: paulo@0: paulo@0: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in paulo@0: *c*,-n*) ECHO_N= ECHO_C=' paulo@0: ' ECHO_T=' ' ;; paulo@0: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; paulo@0: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; paulo@0: esac paulo@0: paulo@0: if expr a : '\(a\)' >/dev/null 2>&1; then paulo@0: as_expr=expr paulo@0: else paulo@0: as_expr=false paulo@0: fi paulo@0: paulo@0: rm -f conf$$ conf$$.exe conf$$.file paulo@0: echo >conf$$.file paulo@0: if ln -s conf$$.file conf$$ 2>/dev/null; then paulo@0: # We could just check for DJGPP; but this test a) works b) is more generic paulo@0: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). paulo@0: if test -f conf$$.exe; then paulo@0: # Don't use ln at all; we don't have any links paulo@0: as_ln_s='cp -p' paulo@0: else paulo@0: as_ln_s='ln -s' paulo@0: fi paulo@0: elif ln conf$$.file conf$$ 2>/dev/null; then paulo@0: as_ln_s=ln paulo@0: else paulo@0: as_ln_s='cp -p' paulo@0: fi paulo@0: rm -f conf$$ conf$$.exe conf$$.file paulo@0: paulo@0: if mkdir -p . 2>/dev/null; then paulo@0: as_mkdir_p=: paulo@0: else paulo@0: test -d ./-p && rmdir ./-p paulo@0: as_mkdir_p=false paulo@0: fi paulo@0: paulo@0: as_executable_p="test -f" paulo@0: paulo@0: # Sed expression to map a string onto a valid CPP name. paulo@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" paulo@0: paulo@0: # Sed expression to map a string onto a valid variable name. paulo@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" paulo@0: paulo@0: paulo@0: # IFS paulo@0: # We need space, tab and new line, in precisely that order. paulo@0: as_nl=' paulo@0: ' paulo@0: IFS=" $as_nl" paulo@0: paulo@0: # CDPATH. paulo@0: $as_unset CDPATH paulo@0: paulo@0: paulo@0: paulo@0: # Check that we are running under the correct shell. paulo@0: SHELL=${CONFIG_SHELL-/bin/sh} paulo@0: paulo@0: case X$ECHO in paulo@0: X*--fallback-echo) paulo@0: # Remove one level of quotation (which was required for Make). paulo@0: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` paulo@0: ;; paulo@0: esac paulo@0: paulo@0: echo=${ECHO-echo} paulo@0: if test "X$1" = X--no-reexec; then paulo@0: # Discard the --no-reexec flag, and continue. paulo@0: shift paulo@0: elif test "X$1" = X--fallback-echo; then paulo@0: # Avoid inline document here, it may be left over paulo@0: : paulo@0: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then paulo@0: # Yippee, $echo works! paulo@0: : paulo@0: else paulo@0: # Restart under the correct shell. paulo@0: exec $SHELL "$0" --no-reexec ${1+"$@"} paulo@0: fi paulo@0: paulo@0: if test "X$1" = X--fallback-echo; then paulo@0: # used as fallback echo paulo@0: shift paulo@0: cat </dev/null 2>&1 && unset CDPATH paulo@0: paulo@0: if test -z "$ECHO"; then paulo@0: if test "X${echo_test_string+set}" != Xset; then paulo@0: # find a string as large as possible, as long as the shell can cope with it paulo@0: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do paulo@0: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... paulo@0: if (echo_test_string=`eval $cmd`) 2>/dev/null && paulo@0: echo_test_string=`eval $cmd` && paulo@0: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null paulo@0: then paulo@0: break paulo@0: fi paulo@0: done paulo@0: fi paulo@0: paulo@0: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && paulo@0: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && paulo@0: test "X$echo_testing_string" = "X$echo_test_string"; then paulo@0: : paulo@0: else paulo@0: # The Solaris, AIX, and Digital Unix default echo programs unquote paulo@0: # backslashes. This makes it impossible to quote backslashes using paulo@0: # echo "$something" | sed 's/\\/\\\\/g' paulo@0: # paulo@0: # So, first we look for a working echo in the user's PATH. paulo@0: paulo@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR paulo@0: for dir in $PATH /usr/ucb; do paulo@0: IFS="$lt_save_ifs" paulo@0: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && paulo@0: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && paulo@0: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && paulo@0: test "X$echo_testing_string" = "X$echo_test_string"; then paulo@0: echo="$dir/echo" paulo@0: break paulo@0: fi paulo@0: done paulo@0: IFS="$lt_save_ifs" paulo@0: paulo@0: if test "X$echo" = Xecho; then paulo@0: # We didn't find a better echo, so look for alternatives. paulo@0: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && paulo@0: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && paulo@0: test "X$echo_testing_string" = "X$echo_test_string"; then paulo@0: # This shell has a builtin print -r that does the trick. paulo@0: echo='print -r' paulo@0: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && paulo@0: test "X$CONFIG_SHELL" != X/bin/ksh; then paulo@0: # If we have ksh, try running configure again with it. paulo@0: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} paulo@0: export ORIGINAL_CONFIG_SHELL paulo@0: CONFIG_SHELL=/bin/ksh paulo@0: export CONFIG_SHELL paulo@0: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} paulo@0: else paulo@0: # Try using printf. paulo@0: echo='printf %s\n' paulo@0: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && paulo@0: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && paulo@0: test "X$echo_testing_string" = "X$echo_test_string"; then paulo@0: # Cool, printf works paulo@0: : paulo@0: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && paulo@0: test "X$echo_testing_string" = 'X\t' && paulo@0: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && paulo@0: test "X$echo_testing_string" = "X$echo_test_string"; then paulo@0: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL paulo@0: export CONFIG_SHELL paulo@0: SHELL="$CONFIG_SHELL" paulo@0: export SHELL paulo@0: echo="$CONFIG_SHELL $0 --fallback-echo" paulo@0: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && paulo@0: test "X$echo_testing_string" = 'X\t' && paulo@0: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && paulo@0: test "X$echo_testing_string" = "X$echo_test_string"; then paulo@0: echo="$CONFIG_SHELL $0 --fallback-echo" paulo@0: else paulo@0: # maybe with a smaller string... paulo@0: prev=: paulo@0: paulo@0: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do paulo@0: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null paulo@0: then paulo@0: break paulo@0: fi paulo@0: prev="$cmd" paulo@0: done paulo@0: paulo@0: if test "$prev" != 'sed 50q "$0"'; then paulo@0: echo_test_string=`eval $prev` paulo@0: export echo_test_string paulo@0: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} paulo@0: else paulo@0: # Oops. We lost completely, so just stick with echo. paulo@0: echo=echo paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: paulo@0: # Copy echo and quote the copy suitably for passing to libtool from paulo@0: # the Makefile, instead of quoting the original, which is used later. paulo@0: ECHO=$echo paulo@0: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then paulo@0: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: tagnames=${tagnames+${tagnames},}CXX paulo@0: paulo@0: tagnames=${tagnames+${tagnames},}F77 paulo@0: paulo@0: # Name of the host. paulo@0: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, paulo@0: # so uname gets run too. paulo@0: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` paulo@0: paulo@0: exec 6>&1 paulo@0: paulo@0: # paulo@0: # Initializations. paulo@0: # paulo@0: ac_default_prefix=/usr/local paulo@0: ac_config_libobj_dir=. paulo@0: cross_compiling=no paulo@0: subdirs= paulo@0: MFLAGS= paulo@0: MAKEFLAGS= paulo@0: SHELL=${CONFIG_SHELL-/bin/sh} paulo@0: paulo@0: # Maximum number of lines to put in a shell here document. paulo@0: # This variable seems obsolete. It should probably be removed, and paulo@0: # only ac_max_sed_lines should be used. paulo@0: : ${ac_max_here_lines=38} paulo@0: paulo@0: # Identity of this package. paulo@0: PACKAGE_NAME='gift-gnutella' paulo@0: PACKAGE_TARNAME='gift-gnutella' paulo@0: PACKAGE_VERSION='0.0.11' paulo@0: PACKAGE_STRING='gift-gnutella 0.0.11' paulo@0: PACKAGE_BUGREPORT='' paulo@0: paulo@0: ac_unique_file="src/gt_gnutella.h" paulo@0: # Factoring default headers for most tests. paulo@0: ac_includes_default="\ paulo@0: #include paulo@0: #if HAVE_SYS_TYPES_H paulo@0: # include paulo@0: #endif paulo@0: #if HAVE_SYS_STAT_H paulo@0: # include paulo@0: #endif paulo@0: #if STDC_HEADERS paulo@0: # include paulo@0: # include paulo@0: #else paulo@0: # if HAVE_STDLIB_H paulo@0: # include paulo@0: # endif paulo@0: #endif paulo@0: #if HAVE_STRING_H paulo@0: # if !STDC_HEADERS && HAVE_MEMORY_H paulo@0: # include paulo@0: # endif paulo@0: # include paulo@0: #endif paulo@0: #if HAVE_STRINGS_H paulo@0: # include paulo@0: #endif paulo@0: #if HAVE_INTTYPES_H paulo@0: # include paulo@0: #else paulo@0: # if HAVE_STDINT_H paulo@0: # include paulo@0: # endif paulo@0: #endif paulo@0: #if HAVE_UNISTD_H paulo@0: # include paulo@0: #endif" paulo@0: paulo@0: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PLUGIN_LDFLAGS PKG_CONFIG GNUTELLA_CFLAGS GNUTELLA_LIBS USE_ZLIB XML2_CONFIG LIBXML2_CFLAGS LIBXML2_LIBS LIBOBJS LTLIBOBJS' paulo@0: ac_subst_files='' paulo@0: paulo@0: # Initialize some variables set by options. paulo@0: ac_init_help= paulo@0: ac_init_version=false paulo@0: # The variables have the same names as the options, with paulo@0: # dashes changed to underlines. paulo@0: cache_file=/dev/null paulo@0: exec_prefix=NONE paulo@0: no_create= paulo@0: no_recursion= paulo@0: prefix=NONE paulo@0: program_prefix=NONE paulo@0: program_suffix=NONE paulo@0: program_transform_name=s,x,x, paulo@0: silent= paulo@0: site= paulo@0: srcdir= paulo@0: verbose= paulo@0: x_includes=NONE paulo@0: x_libraries=NONE paulo@0: paulo@0: # Installation directory options. paulo@0: # These are left unexpanded so users can "make install exec_prefix=/foo" paulo@0: # and all the variables that are supposed to be based on exec_prefix paulo@0: # by default will actually change. paulo@0: # Use braces instead of parens because sh, perl, etc. also accept them. paulo@0: bindir='${exec_prefix}/bin' paulo@0: sbindir='${exec_prefix}/sbin' paulo@0: libexecdir='${exec_prefix}/libexec' paulo@0: datadir='${prefix}/share' paulo@0: sysconfdir='${prefix}/etc' paulo@0: sharedstatedir='${prefix}/com' paulo@0: localstatedir='${prefix}/var' paulo@0: libdir='${exec_prefix}/lib' paulo@0: includedir='${prefix}/include' paulo@0: oldincludedir='/usr/include' paulo@0: infodir='${prefix}/info' paulo@0: mandir='${prefix}/man' paulo@0: paulo@0: ac_prev= paulo@0: for ac_option paulo@0: do paulo@0: # If the previous option needs an argument, assign it. paulo@0: if test -n "$ac_prev"; then paulo@0: eval "$ac_prev=\$ac_option" paulo@0: ac_prev= paulo@0: continue paulo@0: fi paulo@0: paulo@0: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` paulo@0: paulo@0: # Accept the important Cygnus configure options, so we can diagnose typos. paulo@0: paulo@0: case $ac_option in paulo@0: paulo@0: -bindir | --bindir | --bindi | --bind | --bin | --bi) paulo@0: ac_prev=bindir ;; paulo@0: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) paulo@0: bindir=$ac_optarg ;; paulo@0: paulo@0: -build | --build | --buil | --bui | --bu) paulo@0: ac_prev=build_alias ;; paulo@0: -build=* | --build=* | --buil=* | --bui=* | --bu=*) paulo@0: build_alias=$ac_optarg ;; paulo@0: paulo@0: -cache-file | --cache-file | --cache-fil | --cache-fi \ paulo@0: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) paulo@0: ac_prev=cache_file ;; paulo@0: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ paulo@0: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) paulo@0: cache_file=$ac_optarg ;; paulo@0: paulo@0: --config-cache | -C) paulo@0: cache_file=config.cache ;; paulo@0: paulo@0: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) paulo@0: ac_prev=datadir ;; paulo@0: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ paulo@0: | --da=*) paulo@0: datadir=$ac_optarg ;; paulo@0: paulo@0: -disable-* | --disable-*) paulo@0: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` paulo@0: # Reject names that are not valid shell variable names. paulo@0: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && paulo@0: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: ac_feature=`echo $ac_feature | sed 's/-/_/g'` paulo@0: eval "enable_$ac_feature=no" ;; paulo@0: paulo@0: -enable-* | --enable-*) paulo@0: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` paulo@0: # Reject names that are not valid shell variable names. paulo@0: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && paulo@0: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: ac_feature=`echo $ac_feature | sed 's/-/_/g'` paulo@0: case $ac_option in paulo@0: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; paulo@0: *) ac_optarg=yes ;; paulo@0: esac paulo@0: eval "enable_$ac_feature='$ac_optarg'" ;; paulo@0: paulo@0: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ paulo@0: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ paulo@0: | --exec | --exe | --ex) paulo@0: ac_prev=exec_prefix ;; paulo@0: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ paulo@0: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ paulo@0: | --exec=* | --exe=* | --ex=*) paulo@0: exec_prefix=$ac_optarg ;; paulo@0: paulo@0: -gas | --gas | --ga | --g) paulo@0: # Obsolete; use --with-gas. paulo@0: with_gas=yes ;; paulo@0: paulo@0: -help | --help | --hel | --he | -h) paulo@0: ac_init_help=long ;; paulo@0: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) paulo@0: ac_init_help=recursive ;; paulo@0: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) paulo@0: ac_init_help=short ;; paulo@0: paulo@0: -host | --host | --hos | --ho) paulo@0: ac_prev=host_alias ;; paulo@0: -host=* | --host=* | --hos=* | --ho=*) paulo@0: host_alias=$ac_optarg ;; paulo@0: paulo@0: -includedir | --includedir | --includedi | --included | --include \ paulo@0: | --includ | --inclu | --incl | --inc) paulo@0: ac_prev=includedir ;; paulo@0: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ paulo@0: | --includ=* | --inclu=* | --incl=* | --inc=*) paulo@0: includedir=$ac_optarg ;; paulo@0: paulo@0: -infodir | --infodir | --infodi | --infod | --info | --inf) paulo@0: ac_prev=infodir ;; paulo@0: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) paulo@0: infodir=$ac_optarg ;; paulo@0: paulo@0: -libdir | --libdir | --libdi | --libd) paulo@0: ac_prev=libdir ;; paulo@0: -libdir=* | --libdir=* | --libdi=* | --libd=*) paulo@0: libdir=$ac_optarg ;; paulo@0: paulo@0: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ paulo@0: | --libexe | --libex | --libe) paulo@0: ac_prev=libexecdir ;; paulo@0: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ paulo@0: | --libexe=* | --libex=* | --libe=*) paulo@0: libexecdir=$ac_optarg ;; paulo@0: paulo@0: -localstatedir | --localstatedir | --localstatedi | --localstated \ paulo@0: | --localstate | --localstat | --localsta | --localst \ paulo@0: | --locals | --local | --loca | --loc | --lo) paulo@0: ac_prev=localstatedir ;; paulo@0: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ paulo@0: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ paulo@0: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) paulo@0: localstatedir=$ac_optarg ;; paulo@0: paulo@0: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) paulo@0: ac_prev=mandir ;; paulo@0: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) paulo@0: mandir=$ac_optarg ;; paulo@0: paulo@0: -nfp | --nfp | --nf) paulo@0: # Obsolete; use --without-fp. paulo@0: with_fp=no ;; paulo@0: paulo@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ paulo@0: | --no-cr | --no-c | -n) paulo@0: no_create=yes ;; paulo@0: paulo@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ paulo@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) paulo@0: no_recursion=yes ;; paulo@0: paulo@0: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ paulo@0: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ paulo@0: | --oldin | --oldi | --old | --ol | --o) paulo@0: ac_prev=oldincludedir ;; paulo@0: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ paulo@0: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ paulo@0: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) paulo@0: oldincludedir=$ac_optarg ;; paulo@0: paulo@0: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) paulo@0: ac_prev=prefix ;; paulo@0: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) paulo@0: prefix=$ac_optarg ;; paulo@0: paulo@0: -program-prefix | --program-prefix | --program-prefi | --program-pref \ paulo@0: | --program-pre | --program-pr | --program-p) paulo@0: ac_prev=program_prefix ;; paulo@0: -program-prefix=* | --program-prefix=* | --program-prefi=* \ paulo@0: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) paulo@0: program_prefix=$ac_optarg ;; paulo@0: paulo@0: -program-suffix | --program-suffix | --program-suffi | --program-suff \ paulo@0: | --program-suf | --program-su | --program-s) paulo@0: ac_prev=program_suffix ;; paulo@0: -program-suffix=* | --program-suffix=* | --program-suffi=* \ paulo@0: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) paulo@0: program_suffix=$ac_optarg ;; paulo@0: paulo@0: -program-transform-name | --program-transform-name \ paulo@0: | --program-transform-nam | --program-transform-na \ paulo@0: | --program-transform-n | --program-transform- \ paulo@0: | --program-transform | --program-transfor \ paulo@0: | --program-transfo | --program-transf \ paulo@0: | --program-trans | --program-tran \ paulo@0: | --progr-tra | --program-tr | --program-t) paulo@0: ac_prev=program_transform_name ;; paulo@0: -program-transform-name=* | --program-transform-name=* \ paulo@0: | --program-transform-nam=* | --program-transform-na=* \ paulo@0: | --program-transform-n=* | --program-transform-=* \ paulo@0: | --program-transform=* | --program-transfor=* \ paulo@0: | --program-transfo=* | --program-transf=* \ paulo@0: | --program-trans=* | --program-tran=* \ paulo@0: | --progr-tra=* | --program-tr=* | --program-t=*) paulo@0: program_transform_name=$ac_optarg ;; paulo@0: paulo@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ paulo@0: | -silent | --silent | --silen | --sile | --sil) paulo@0: silent=yes ;; paulo@0: paulo@0: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) paulo@0: ac_prev=sbindir ;; paulo@0: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ paulo@0: | --sbi=* | --sb=*) paulo@0: sbindir=$ac_optarg ;; paulo@0: paulo@0: -sharedstatedir | --sharedstatedir | --sharedstatedi \ paulo@0: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ paulo@0: | --sharedst | --shareds | --shared | --share | --shar \ paulo@0: | --sha | --sh) paulo@0: ac_prev=sharedstatedir ;; paulo@0: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ paulo@0: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ paulo@0: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ paulo@0: | --sha=* | --sh=*) paulo@0: sharedstatedir=$ac_optarg ;; paulo@0: paulo@0: -site | --site | --sit) paulo@0: ac_prev=site ;; paulo@0: -site=* | --site=* | --sit=*) paulo@0: site=$ac_optarg ;; paulo@0: paulo@0: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) paulo@0: ac_prev=srcdir ;; paulo@0: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) paulo@0: srcdir=$ac_optarg ;; paulo@0: paulo@0: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ paulo@0: | --syscon | --sysco | --sysc | --sys | --sy) paulo@0: ac_prev=sysconfdir ;; paulo@0: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ paulo@0: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) paulo@0: sysconfdir=$ac_optarg ;; paulo@0: paulo@0: -target | --target | --targe | --targ | --tar | --ta | --t) paulo@0: ac_prev=target_alias ;; paulo@0: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) paulo@0: target_alias=$ac_optarg ;; paulo@0: paulo@0: -v | -verbose | --verbose | --verbos | --verbo | --verb) paulo@0: verbose=yes ;; paulo@0: paulo@0: -version | --version | --versio | --versi | --vers | -V) paulo@0: ac_init_version=: ;; paulo@0: paulo@0: -with-* | --with-*) paulo@0: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` paulo@0: # Reject names that are not valid shell variable names. paulo@0: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && paulo@0: { echo "$as_me: error: invalid package name: $ac_package" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: ac_package=`echo $ac_package| sed 's/-/_/g'` paulo@0: case $ac_option in paulo@0: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; paulo@0: *) ac_optarg=yes ;; paulo@0: esac paulo@0: eval "with_$ac_package='$ac_optarg'" ;; paulo@0: paulo@0: -without-* | --without-*) paulo@0: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` paulo@0: # Reject names that are not valid shell variable names. paulo@0: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && paulo@0: { echo "$as_me: error: invalid package name: $ac_package" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: ac_package=`echo $ac_package | sed 's/-/_/g'` paulo@0: eval "with_$ac_package=no" ;; paulo@0: paulo@0: --x) paulo@0: # Obsolete; use --with-x. paulo@0: with_x=yes ;; paulo@0: paulo@0: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ paulo@0: | --x-incl | --x-inc | --x-in | --x-i) paulo@0: ac_prev=x_includes ;; paulo@0: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ paulo@0: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) paulo@0: x_includes=$ac_optarg ;; paulo@0: paulo@0: -x-libraries | --x-libraries | --x-librarie | --x-librari \ paulo@0: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) paulo@0: ac_prev=x_libraries ;; paulo@0: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ paulo@0: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) paulo@0: x_libraries=$ac_optarg ;; paulo@0: paulo@0: -*) { echo "$as_me: error: unrecognized option: $ac_option paulo@0: Try \`$0 --help' for more information." >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: ;; paulo@0: paulo@0: *=*) paulo@0: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` paulo@0: # Reject names that are not valid shell variable names. paulo@0: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && paulo@0: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` paulo@0: eval "$ac_envvar='$ac_optarg'" paulo@0: export $ac_envvar ;; paulo@0: paulo@0: *) paulo@0: # FIXME: should be removed in autoconf 3.0. paulo@0: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 paulo@0: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && paulo@0: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 paulo@0: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} paulo@0: ;; paulo@0: paulo@0: esac paulo@0: done paulo@0: paulo@0: if test -n "$ac_prev"; then paulo@0: ac_option=--`echo $ac_prev | sed 's/_/-/g'` paulo@0: { echo "$as_me: error: missing argument to $ac_option" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: # Be sure to have absolute paths. paulo@0: for ac_var in exec_prefix prefix paulo@0: do paulo@0: eval ac_val=$`echo $ac_var` paulo@0: case $ac_val in paulo@0: [\\/$]* | ?:[\\/]* | NONE | '' ) ;; paulo@0: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 paulo@0: { (exit 1); exit 1; }; };; paulo@0: esac paulo@0: done paulo@0: paulo@0: # Be sure to have absolute paths. paulo@0: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ paulo@0: localstatedir libdir includedir oldincludedir infodir mandir paulo@0: do paulo@0: eval ac_val=$`echo $ac_var` paulo@0: case $ac_val in paulo@0: [\\/$]* | ?:[\\/]* ) ;; paulo@0: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 paulo@0: { (exit 1); exit 1; }; };; paulo@0: esac paulo@0: done paulo@0: paulo@0: # There might be people who depend on the old broken behavior: `$host' paulo@0: # used to hold the argument of --host etc. paulo@0: # FIXME: To remove some day. paulo@0: build=$build_alias paulo@0: host=$host_alias paulo@0: target=$target_alias paulo@0: paulo@0: # FIXME: To remove some day. paulo@0: if test "x$host_alias" != x; then paulo@0: if test "x$build_alias" = x; then paulo@0: cross_compiling=maybe paulo@0: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. paulo@0: If a cross compiler is detected then cross compile mode will be used." >&2 paulo@0: elif test "x$build_alias" != "x$host_alias"; then paulo@0: cross_compiling=yes paulo@0: fi paulo@0: fi paulo@0: paulo@0: ac_tool_prefix= paulo@0: test -n "$host_alias" && ac_tool_prefix=$host_alias- paulo@0: paulo@0: test "$silent" = yes && exec 6>/dev/null paulo@0: paulo@0: paulo@0: # Find the source files, if location was not specified. paulo@0: if test -z "$srcdir"; then paulo@0: ac_srcdir_defaulted=yes paulo@0: # Try the directory containing this script, then its parent. paulo@0: ac_confdir=`(dirname "$0") 2>/dev/null || paulo@0: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$0" : 'X\(//\)[^/]' \| \ paulo@0: X"$0" : 'X\(//\)$' \| \ paulo@0: X"$0" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$0" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: srcdir=$ac_confdir paulo@0: if test ! -r $srcdir/$ac_unique_file; then paulo@0: srcdir=.. paulo@0: fi paulo@0: else paulo@0: ac_srcdir_defaulted=no paulo@0: fi paulo@0: if test ! -r $srcdir/$ac_unique_file; then paulo@0: if test "$ac_srcdir_defaulted" = yes; then paulo@0: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: else paulo@0: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: fi paulo@0: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || paulo@0: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 paulo@0: { (exit 1); exit 1; }; } paulo@0: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` paulo@0: ac_env_build_alias_set=${build_alias+set} paulo@0: ac_env_build_alias_value=$build_alias paulo@0: ac_cv_env_build_alias_set=${build_alias+set} paulo@0: ac_cv_env_build_alias_value=$build_alias paulo@0: ac_env_host_alias_set=${host_alias+set} paulo@0: ac_env_host_alias_value=$host_alias paulo@0: ac_cv_env_host_alias_set=${host_alias+set} paulo@0: ac_cv_env_host_alias_value=$host_alias paulo@0: ac_env_target_alias_set=${target_alias+set} paulo@0: ac_env_target_alias_value=$target_alias paulo@0: ac_cv_env_target_alias_set=${target_alias+set} paulo@0: ac_cv_env_target_alias_value=$target_alias paulo@0: ac_env_CC_set=${CC+set} paulo@0: ac_env_CC_value=$CC paulo@0: ac_cv_env_CC_set=${CC+set} paulo@0: ac_cv_env_CC_value=$CC paulo@0: ac_env_CFLAGS_set=${CFLAGS+set} paulo@0: ac_env_CFLAGS_value=$CFLAGS paulo@0: ac_cv_env_CFLAGS_set=${CFLAGS+set} paulo@0: ac_cv_env_CFLAGS_value=$CFLAGS paulo@0: ac_env_LDFLAGS_set=${LDFLAGS+set} paulo@0: ac_env_LDFLAGS_value=$LDFLAGS paulo@0: ac_cv_env_LDFLAGS_set=${LDFLAGS+set} paulo@0: ac_cv_env_LDFLAGS_value=$LDFLAGS paulo@0: ac_env_CPPFLAGS_set=${CPPFLAGS+set} paulo@0: ac_env_CPPFLAGS_value=$CPPFLAGS paulo@0: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} paulo@0: ac_cv_env_CPPFLAGS_value=$CPPFLAGS paulo@0: ac_env_CPP_set=${CPP+set} paulo@0: ac_env_CPP_value=$CPP paulo@0: ac_cv_env_CPP_set=${CPP+set} paulo@0: ac_cv_env_CPP_value=$CPP paulo@0: ac_env_CXX_set=${CXX+set} paulo@0: ac_env_CXX_value=$CXX paulo@0: ac_cv_env_CXX_set=${CXX+set} paulo@0: ac_cv_env_CXX_value=$CXX paulo@0: ac_env_CXXFLAGS_set=${CXXFLAGS+set} paulo@0: ac_env_CXXFLAGS_value=$CXXFLAGS paulo@0: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} paulo@0: ac_cv_env_CXXFLAGS_value=$CXXFLAGS paulo@0: ac_env_CXXCPP_set=${CXXCPP+set} paulo@0: ac_env_CXXCPP_value=$CXXCPP paulo@0: ac_cv_env_CXXCPP_set=${CXXCPP+set} paulo@0: ac_cv_env_CXXCPP_value=$CXXCPP paulo@0: ac_env_F77_set=${F77+set} paulo@0: ac_env_F77_value=$F77 paulo@0: ac_cv_env_F77_set=${F77+set} paulo@0: ac_cv_env_F77_value=$F77 paulo@0: ac_env_FFLAGS_set=${FFLAGS+set} paulo@0: ac_env_FFLAGS_value=$FFLAGS paulo@0: ac_cv_env_FFLAGS_set=${FFLAGS+set} paulo@0: ac_cv_env_FFLAGS_value=$FFLAGS paulo@0: paulo@0: # paulo@0: # Report the --help message. paulo@0: # paulo@0: if test "$ac_init_help" = "long"; then paulo@0: # Omit some internal or obsolete options to make the list less imposing. paulo@0: # This message is too long to be a string in the A/UX 3.1 sh. paulo@0: cat <<_ACEOF paulo@0: \`configure' configures gift-gnutella 0.0.11 to adapt to many kinds of systems. paulo@0: paulo@0: Usage: $0 [OPTION]... [VAR=VALUE]... paulo@0: paulo@0: To assign environment variables (e.g., CC, CFLAGS...), specify them as paulo@0: VAR=VALUE. See below for descriptions of some of the useful variables. paulo@0: paulo@0: Defaults for the options are specified in brackets. paulo@0: paulo@0: Configuration: paulo@0: -h, --help display this help and exit paulo@0: --help=short display options specific to this package paulo@0: --help=recursive display the short help of all the included packages paulo@0: -V, --version display version information and exit paulo@0: -q, --quiet, --silent do not print \`checking...' messages paulo@0: --cache-file=FILE cache test results in FILE [disabled] paulo@0: -C, --config-cache alias for \`--cache-file=config.cache' paulo@0: -n, --no-create do not create output files paulo@0: --srcdir=DIR find the sources in DIR [configure dir or \`..'] paulo@0: paulo@0: _ACEOF paulo@0: paulo@0: cat <<_ACEOF paulo@0: Installation directories: paulo@0: --prefix=PREFIX install architecture-independent files in PREFIX paulo@0: [$ac_default_prefix] paulo@0: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX paulo@0: [PREFIX] paulo@0: paulo@0: By default, \`make install' will install all the files in paulo@0: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify paulo@0: an installation prefix other than \`$ac_default_prefix' using \`--prefix', paulo@0: for instance \`--prefix=\$HOME'. paulo@0: paulo@0: For better control, use the options below. paulo@0: paulo@0: Fine tuning of the installation directories: paulo@0: --bindir=DIR user executables [EPREFIX/bin] paulo@0: --sbindir=DIR system admin executables [EPREFIX/sbin] paulo@0: --libexecdir=DIR program executables [EPREFIX/libexec] paulo@0: --datadir=DIR read-only architecture-independent data [PREFIX/share] paulo@0: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] paulo@0: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] paulo@0: --localstatedir=DIR modifiable single-machine data [PREFIX/var] paulo@0: --libdir=DIR object code libraries [EPREFIX/lib] paulo@0: --includedir=DIR C header files [PREFIX/include] paulo@0: --oldincludedir=DIR C header files for non-gcc [/usr/include] paulo@0: --infodir=DIR info documentation [PREFIX/info] paulo@0: --mandir=DIR man documentation [PREFIX/man] paulo@0: _ACEOF paulo@0: paulo@0: cat <<\_ACEOF paulo@0: paulo@0: Program names: paulo@0: --program-prefix=PREFIX prepend PREFIX to installed program names paulo@0: --program-suffix=SUFFIX append SUFFIX to installed program names paulo@0: --program-transform-name=PROGRAM run sed PROGRAM on installed program names paulo@0: paulo@0: System types: paulo@0: --build=BUILD configure for building on BUILD [guessed] paulo@0: --host=HOST cross-compile to build programs to run on HOST [BUILD] paulo@0: _ACEOF paulo@0: fi paulo@0: paulo@0: if test -n "$ac_init_help"; then paulo@0: case $ac_init_help in paulo@0: short | recursive ) echo "Configuration of gift-gnutella 0.0.11:";; paulo@0: esac paulo@0: cat <<\_ACEOF paulo@0: paulo@0: Optional Features: paulo@0: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) paulo@0: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] paulo@0: --enable-maintainer-mode enable make rules and dependencies not useful paulo@0: (and sometimes confusing) to the casual installer paulo@0: --disable-dependency-tracking Speeds up one-time builds paulo@0: --enable-dependency-tracking Do not reject slow dependency extractors paulo@0: --enable-static[=PKGS] paulo@0: build static libraries [default=no] paulo@0: --enable-shared[=PKGS] paulo@0: build shared libraries [default=yes] paulo@0: --enable-fast-install[=PKGS] paulo@0: optimize for fast installation [default=yes] paulo@0: --disable-libtool-lock avoid locking (might break parallel builds) paulo@0: paulo@0: Optional Packages: paulo@0: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] paulo@0: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) paulo@0: --with-gnu-ld assume the C compiler uses GNU ld [default=no] paulo@0: --with-pic try to use only PIC/non-PIC objects [default=use paulo@0: both] paulo@0: --with-tags[=TAGS] paulo@0: include additional configurations [automatic] paulo@0: --with-zlib=DIR where to look for ZLIB compiler/linker default paths paulo@0: DIR points to the ZLIB installation prefix /usr/local paulo@0: --with-libxml=DIR where to look for libxml compiler/linker default paths paulo@0: DIR points to the libxml installation prefix /usr/local paulo@0: paulo@0: Some influential environment variables: paulo@0: CC C compiler command paulo@0: CFLAGS C compiler flags paulo@0: LDFLAGS linker flags, e.g. -L if you have libraries in a paulo@0: nonstandard directory paulo@0: CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have paulo@0: headers in a nonstandard directory paulo@0: CPP C preprocessor paulo@0: CXX C++ compiler command paulo@0: CXXFLAGS C++ compiler flags paulo@0: CXXCPP C++ preprocessor paulo@0: F77 Fortran 77 compiler command paulo@0: FFLAGS Fortran 77 compiler flags paulo@0: paulo@0: Use these variables to override the choices made by `configure' or to help paulo@0: it to find libraries and programs with nonstandard names/locations. paulo@0: paulo@0: _ACEOF paulo@0: fi paulo@0: paulo@0: if test "$ac_init_help" = "recursive"; then paulo@0: # If there are subdirs, report their specific --help. paulo@0: ac_popdir=`pwd` paulo@0: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue paulo@0: test -d $ac_dir || continue paulo@0: ac_builddir=. paulo@0: paulo@0: if test "$ac_dir" != .; then paulo@0: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` paulo@0: # A "../" for each directory in $ac_dir_suffix. paulo@0: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` paulo@0: else paulo@0: ac_dir_suffix= ac_top_builddir= paulo@0: fi paulo@0: paulo@0: case $srcdir in paulo@0: .) # No --srcdir option. We are building in place. paulo@0: ac_srcdir=. paulo@0: if test -z "$ac_top_builddir"; then paulo@0: ac_top_srcdir=. paulo@0: else paulo@0: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` paulo@0: fi ;; paulo@0: [\\/]* | ?:[\\/]* ) # Absolute path. paulo@0: ac_srcdir=$srcdir$ac_dir_suffix; paulo@0: ac_top_srcdir=$srcdir ;; paulo@0: *) # Relative path. paulo@0: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix paulo@0: ac_top_srcdir=$ac_top_builddir$srcdir ;; paulo@0: esac paulo@0: paulo@0: # Do not use `cd foo && pwd` to compute absolute paths, because paulo@0: # the directories may not exist. paulo@0: case `pwd` in paulo@0: .) ac_abs_builddir="$ac_dir";; paulo@0: *) paulo@0: case "$ac_dir" in paulo@0: .) ac_abs_builddir=`pwd`;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; paulo@0: *) ac_abs_builddir=`pwd`/"$ac_dir";; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_top_builddir=${ac_top_builddir}.;; paulo@0: *) paulo@0: case ${ac_top_builddir}. in paulo@0: .) ac_abs_top_builddir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; paulo@0: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_srcdir=$ac_srcdir;; paulo@0: *) paulo@0: case $ac_srcdir in paulo@0: .) ac_abs_srcdir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; paulo@0: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_top_srcdir=$ac_top_srcdir;; paulo@0: *) paulo@0: case $ac_top_srcdir in paulo@0: .) ac_abs_top_srcdir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; paulo@0: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; paulo@0: esac;; paulo@0: esac paulo@0: paulo@0: cd $ac_dir paulo@0: # Check for guested configure; otherwise get Cygnus style configure. paulo@0: if test -f $ac_srcdir/configure.gnu; then paulo@0: echo paulo@0: $SHELL $ac_srcdir/configure.gnu --help=recursive paulo@0: elif test -f $ac_srcdir/configure; then paulo@0: echo paulo@0: $SHELL $ac_srcdir/configure --help=recursive paulo@0: elif test -f $ac_srcdir/configure.ac || paulo@0: test -f $ac_srcdir/configure.in; then paulo@0: echo paulo@0: $ac_configure --help paulo@0: else paulo@0: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 paulo@0: fi paulo@0: cd "$ac_popdir" paulo@0: done paulo@0: fi paulo@0: paulo@0: test -n "$ac_init_help" && exit 0 paulo@0: if $ac_init_version; then paulo@0: cat <<\_ACEOF paulo@0: gift-gnutella configure 0.0.11 paulo@0: generated by GNU Autoconf 2.59 paulo@0: paulo@0: Copyright (C) 2003 Free Software Foundation, Inc. paulo@0: This configure script is free software; the Free Software Foundation paulo@0: gives unlimited permission to copy, distribute and modify it. paulo@0: _ACEOF paulo@0: exit 0 paulo@0: fi paulo@0: exec 5>config.log paulo@0: cat >&5 <<_ACEOF paulo@0: This file contains any messages produced by compilers while paulo@0: running configure, to aid debugging if configure makes a mistake. paulo@0: paulo@0: It was created by gift-gnutella $as_me 0.0.11, which was paulo@0: generated by GNU Autoconf 2.59. Invocation command line was paulo@0: paulo@0: $ $0 $@ paulo@0: paulo@0: _ACEOF paulo@0: { paulo@0: cat <<_ASUNAME paulo@0: ## --------- ## paulo@0: ## Platform. ## paulo@0: ## --------- ## paulo@0: paulo@0: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` paulo@0: uname -m = `(uname -m) 2>/dev/null || echo unknown` paulo@0: uname -r = `(uname -r) 2>/dev/null || echo unknown` paulo@0: uname -s = `(uname -s) 2>/dev/null || echo unknown` paulo@0: uname -v = `(uname -v) 2>/dev/null || echo unknown` paulo@0: paulo@0: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` paulo@0: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` paulo@0: paulo@0: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` paulo@0: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` paulo@0: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` paulo@0: hostinfo = `(hostinfo) 2>/dev/null || echo unknown` paulo@0: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` paulo@0: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` paulo@0: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` paulo@0: paulo@0: _ASUNAME paulo@0: paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: echo "PATH: $as_dir" paulo@0: done paulo@0: paulo@0: } >&5 paulo@0: paulo@0: cat >&5 <<_ACEOF paulo@0: paulo@0: paulo@0: ## ----------- ## paulo@0: ## Core tests. ## paulo@0: ## ----------- ## paulo@0: paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: # Keep a trace of the command line. paulo@0: # Strip out --no-create and --no-recursion so they do not pile up. paulo@0: # Strip out --silent because we don't want to record it for future runs. paulo@0: # Also quote any args containing shell meta-characters. paulo@0: # Make two passes to allow for proper duplicate-argument suppression. paulo@0: ac_configure_args= paulo@0: ac_configure_args0= paulo@0: ac_configure_args1= paulo@0: ac_sep= paulo@0: ac_must_keep_next=false paulo@0: for ac_pass in 1 2 paulo@0: do paulo@0: for ac_arg paulo@0: do paulo@0: case $ac_arg in paulo@0: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; paulo@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ paulo@0: | -silent | --silent | --silen | --sile | --sil) paulo@0: continue ;; paulo@0: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) paulo@0: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; paulo@0: esac paulo@0: case $ac_pass in paulo@0: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; paulo@0: 2) paulo@0: ac_configure_args1="$ac_configure_args1 '$ac_arg'" paulo@0: if test $ac_must_keep_next = true; then paulo@0: ac_must_keep_next=false # Got value, back to normal. paulo@0: else paulo@0: case $ac_arg in paulo@0: *=* | --config-cache | -C | -disable-* | --disable-* \ paulo@0: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ paulo@0: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ paulo@0: | -with-* | --with-* | -without-* | --without-* | --x) paulo@0: case "$ac_configure_args0 " in paulo@0: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; paulo@0: esac paulo@0: ;; paulo@0: -* ) ac_must_keep_next=true ;; paulo@0: esac paulo@0: fi paulo@0: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" paulo@0: # Get rid of the leading space. paulo@0: ac_sep=" " paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: done paulo@0: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } paulo@0: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } paulo@0: paulo@0: # When interrupted or exit'd, cleanup temporary files, and complete paulo@0: # config.log. We remove comments because anyway the quotes in there paulo@0: # would cause problems or look ugly. paulo@0: # WARNING: Be sure not to use single quotes in there, as some shells, paulo@0: # such as our DU 5.0 friend, will then `close' the trap. paulo@0: trap 'exit_status=$? paulo@0: # Save into config.log some information that might help in debugging. paulo@0: { paulo@0: echo paulo@0: paulo@0: cat <<\_ASBOX paulo@0: ## ---------------- ## paulo@0: ## Cache variables. ## paulo@0: ## ---------------- ## paulo@0: _ASBOX paulo@0: echo paulo@0: # The following way of writing the cache mishandles newlines in values, paulo@0: { paulo@0: (set) 2>&1 | paulo@0: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in paulo@0: *ac_space=\ *) paulo@0: sed -n \ paulo@0: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; paulo@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" paulo@0: ;; paulo@0: *) paulo@0: sed -n \ paulo@0: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" paulo@0: ;; paulo@0: esac; paulo@0: } paulo@0: echo paulo@0: paulo@0: cat <<\_ASBOX paulo@0: ## ----------------- ## paulo@0: ## Output variables. ## paulo@0: ## ----------------- ## paulo@0: _ASBOX paulo@0: echo paulo@0: for ac_var in $ac_subst_vars paulo@0: do paulo@0: eval ac_val=$`echo $ac_var` paulo@0: echo "$ac_var='"'"'$ac_val'"'"'" paulo@0: done | sort paulo@0: echo paulo@0: paulo@0: if test -n "$ac_subst_files"; then paulo@0: cat <<\_ASBOX paulo@0: ## ------------- ## paulo@0: ## Output files. ## paulo@0: ## ------------- ## paulo@0: _ASBOX paulo@0: echo paulo@0: for ac_var in $ac_subst_files paulo@0: do paulo@0: eval ac_val=$`echo $ac_var` paulo@0: echo "$ac_var='"'"'$ac_val'"'"'" paulo@0: done | sort paulo@0: echo paulo@0: fi paulo@0: paulo@0: if test -s confdefs.h; then paulo@0: cat <<\_ASBOX paulo@0: ## ----------- ## paulo@0: ## confdefs.h. ## paulo@0: ## ----------- ## paulo@0: _ASBOX paulo@0: echo paulo@0: sed "/^$/d" confdefs.h | sort paulo@0: echo paulo@0: fi paulo@0: test "$ac_signal" != 0 && paulo@0: echo "$as_me: caught signal $ac_signal" paulo@0: echo "$as_me: exit $exit_status" paulo@0: } >&5 paulo@0: rm -f core *.core && paulo@0: rm -rf conftest* confdefs* conf$$* $ac_clean_files && paulo@0: exit $exit_status paulo@0: ' 0 paulo@0: for ac_signal in 1 2 13 15; do paulo@0: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal paulo@0: done paulo@0: ac_signal=0 paulo@0: paulo@0: # confdefs.h avoids OS command line length limits that DEFS can exceed. paulo@0: rm -rf conftest* confdefs.h paulo@0: # AIX cpp loses on an empty file, so make sure it contains at least a newline. paulo@0: echo >confdefs.h paulo@0: paulo@0: # Predefined preprocessor variables. paulo@0: paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define PACKAGE_NAME "$PACKAGE_NAME" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define PACKAGE_VERSION "$PACKAGE_VERSION" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define PACKAGE_STRING "$PACKAGE_STRING" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: # Let the site file select an alternate cache file if it wants to. paulo@0: # Prefer explicitly selected file to automatically selected ones. paulo@0: if test -z "$CONFIG_SITE"; then paulo@0: if test "x$prefix" != xNONE; then paulo@0: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" paulo@0: else paulo@0: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" paulo@0: fi paulo@0: fi paulo@0: for ac_site_file in $CONFIG_SITE; do paulo@0: if test -r "$ac_site_file"; then paulo@0: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 paulo@0: echo "$as_me: loading site script $ac_site_file" >&6;} paulo@0: sed 's/^/| /' "$ac_site_file" >&5 paulo@0: . "$ac_site_file" paulo@0: fi paulo@0: done paulo@0: paulo@0: if test -r "$cache_file"; then paulo@0: # Some versions of bash will fail to source /dev/null (special paulo@0: # files actually), so we avoid doing that. paulo@0: if test -f "$cache_file"; then paulo@0: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 paulo@0: echo "$as_me: loading cache $cache_file" >&6;} paulo@0: case $cache_file in paulo@0: [\\/]* | ?:[\\/]* ) . $cache_file;; paulo@0: *) . ./$cache_file;; paulo@0: esac paulo@0: fi paulo@0: else paulo@0: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 paulo@0: echo "$as_me: creating cache $cache_file" >&6;} paulo@0: >$cache_file paulo@0: fi paulo@0: paulo@0: # Check that the precious variables saved in the cache have kept the same paulo@0: # value. paulo@0: ac_cache_corrupted=false paulo@0: for ac_var in `(set) 2>&1 | paulo@0: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do paulo@0: eval ac_old_set=\$ac_cv_env_${ac_var}_set paulo@0: eval ac_new_set=\$ac_env_${ac_var}_set paulo@0: eval ac_old_val="\$ac_cv_env_${ac_var}_value" paulo@0: eval ac_new_val="\$ac_env_${ac_var}_value" paulo@0: case $ac_old_set,$ac_new_set in paulo@0: set,) paulo@0: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 paulo@0: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} paulo@0: ac_cache_corrupted=: ;; paulo@0: ,set) paulo@0: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 paulo@0: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} paulo@0: ac_cache_corrupted=: ;; paulo@0: ,);; paulo@0: *) paulo@0: if test "x$ac_old_val" != "x$ac_new_val"; then paulo@0: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 paulo@0: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} paulo@0: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 paulo@0: echo "$as_me: former value: $ac_old_val" >&2;} paulo@0: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 paulo@0: echo "$as_me: current value: $ac_new_val" >&2;} paulo@0: ac_cache_corrupted=: paulo@0: fi;; paulo@0: esac paulo@0: # Pass precious variables to config.status. paulo@0: if test "$ac_new_set" = set; then paulo@0: case $ac_new_val in paulo@0: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) paulo@0: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; paulo@0: *) ac_arg=$ac_var=$ac_new_val ;; paulo@0: esac paulo@0: case " $ac_configure_args " in paulo@0: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. paulo@0: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; paulo@0: esac paulo@0: fi paulo@0: done paulo@0: if $ac_cache_corrupted; then paulo@0: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 paulo@0: echo "$as_me: error: changes in the environment can compromise the build" >&2;} paulo@0: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 paulo@0: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<\_ACEOF paulo@0: #define GT_MAJOR_VERSION "0" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<\_ACEOF paulo@0: #define GT_MINOR_VERSION "0" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<\_ACEOF paulo@0: #define GT_MICRO_VERSION "10" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: if test -e "$srcdir/CVS"; then paulo@0: paulo@0: cat >>confdefs.h <<\_ACEOF paulo@0: #define GT_EXTRA_VERSION "-cvs" paulo@0: _ACEOF paulo@0: paulo@0: else paulo@0: paulo@0: cat >>confdefs.h <<\_ACEOF paulo@0: #define GT_EXTRA_VERSION "" paulo@0: _ACEOF paulo@0: paulo@0: fi paulo@0: paulo@0: paulo@0: am__api_version="1.7" paulo@0: ac_aux_dir= paulo@0: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do paulo@0: if test -f $ac_dir/install-sh; then paulo@0: ac_aux_dir=$ac_dir paulo@0: ac_install_sh="$ac_aux_dir/install-sh -c" paulo@0: break paulo@0: elif test -f $ac_dir/install.sh; then paulo@0: ac_aux_dir=$ac_dir paulo@0: ac_install_sh="$ac_aux_dir/install.sh -c" paulo@0: break paulo@0: elif test -f $ac_dir/shtool; then paulo@0: ac_aux_dir=$ac_dir paulo@0: ac_install_sh="$ac_aux_dir/shtool install -c" paulo@0: break paulo@0: fi paulo@0: done paulo@0: if test -z "$ac_aux_dir"; then paulo@0: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 paulo@0: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: ac_config_guess="$SHELL $ac_aux_dir/config.guess" paulo@0: ac_config_sub="$SHELL $ac_aux_dir/config.sub" paulo@0: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. paulo@0: paulo@0: # Find a good install program. We prefer a C program (faster), paulo@0: # so one script is as good as another. But avoid the broken or paulo@0: # incompatible versions: paulo@0: # SysV /etc/install, /usr/sbin/install paulo@0: # SunOS /usr/etc/install paulo@0: # IRIX /sbin/install paulo@0: # AIX /bin/install paulo@0: # AmigaOS /C/install, which installs bootblocks on floppy discs paulo@0: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag paulo@0: # AFS /usr/afsws/bin/install, which mishandles nonexistent args paulo@0: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" paulo@0: # OS/2's system install, which has a completely different semantic paulo@0: # ./install, which can be erroneously created by make from ./install.sh. paulo@0: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 paulo@0: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 paulo@0: if test -z "$INSTALL"; then paulo@0: if test "${ac_cv_path_install+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: # Account for people who put trailing slashes in PATH elements. paulo@0: case $as_dir/ in paulo@0: ./ | .// | /cC/* | \ paulo@0: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ paulo@0: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ paulo@0: /usr/ucb/* ) ;; paulo@0: *) paulo@0: # OSF1 and SCO ODT 3.0 have their own names for install. paulo@0: # Don't use installbsd from OSF since it installs stuff as root paulo@0: # by default. paulo@0: for ac_prog in ginstall scoinst install; do paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then paulo@0: if test $ac_prog = install && paulo@0: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then paulo@0: # AIX install. It has an incompatible calling convention. paulo@0: : paulo@0: elif test $ac_prog = install && paulo@0: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then paulo@0: # program-specific install script used by HP pwplus--don't use. paulo@0: : paulo@0: else paulo@0: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" paulo@0: break 3 paulo@0: fi paulo@0: fi paulo@0: done paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: paulo@0: paulo@0: fi paulo@0: if test "${ac_cv_path_install+set}" = set; then paulo@0: INSTALL=$ac_cv_path_install paulo@0: else paulo@0: # As a last resort, use the slow shell script. We don't cache a paulo@0: # path for INSTALL within a source directory, because that will paulo@0: # break other packages using the cache if that directory is paulo@0: # removed, or if the path is relative. paulo@0: INSTALL=$ac_install_sh paulo@0: fi paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $INSTALL" >&5 paulo@0: echo "${ECHO_T}$INSTALL" >&6 paulo@0: paulo@0: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. paulo@0: # It thinks the first close brace ends the variable substitution. paulo@0: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' paulo@0: paulo@0: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' paulo@0: paulo@0: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether build environment is sane" >&5 paulo@0: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 paulo@0: # Just in case paulo@0: sleep 1 paulo@0: echo timestamp > conftest.file paulo@0: # Do `set' in a subshell so we don't clobber the current shell's paulo@0: # arguments. Must try -L first in case configure is actually a paulo@0: # symlink; some systems play weird games with the mod time of symlinks paulo@0: # (eg FreeBSD returns the mod time of the symlink's containing paulo@0: # directory). paulo@0: if ( paulo@0: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` paulo@0: if test "$*" = "X"; then paulo@0: # -L didn't work. paulo@0: set X `ls -t $srcdir/configure conftest.file` paulo@0: fi paulo@0: rm -f conftest.file paulo@0: if test "$*" != "X $srcdir/configure conftest.file" \ paulo@0: && test "$*" != "X conftest.file $srcdir/configure"; then paulo@0: paulo@0: # If neither matched, then we have a broken ls. This can happen paulo@0: # if, for instance, CONFIG_SHELL is bash and it inherits a paulo@0: # broken ls alias from the environment. This has actually paulo@0: # happened. Such a system could not be considered "sane". paulo@0: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken paulo@0: alias in your environment" >&5 paulo@0: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken paulo@0: alias in your environment" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: test "$2" = conftest.file paulo@0: ) paulo@0: then paulo@0: # Ok. paulo@0: : paulo@0: else paulo@0: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! paulo@0: Check your system clock" >&5 paulo@0: echo "$as_me: error: newly created file is older than distributed files! paulo@0: Check your system clock" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: yes" >&5 paulo@0: echo "${ECHO_T}yes" >&6 paulo@0: test "$program_prefix" != NONE && paulo@0: program_transform_name="s,^,$program_prefix,;$program_transform_name" paulo@0: # Use a double $ so make ignores it. paulo@0: test "$program_suffix" != NONE && paulo@0: program_transform_name="s,\$,$program_suffix,;$program_transform_name" paulo@0: # Double any \ or $. echo might interpret backslashes. paulo@0: # By default was `s,x,x', remove it if useless. paulo@0: cat <<\_ACEOF >conftest.sed paulo@0: s/[\\$]/&&/g;s/;s,x,x,$// paulo@0: _ACEOF paulo@0: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` paulo@0: rm conftest.sed paulo@0: paulo@0: paulo@0: # expand $ac_aux_dir to an absolute path paulo@0: am_aux_dir=`cd $ac_aux_dir && pwd` paulo@0: paulo@0: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" paulo@0: # Use eval to expand $SHELL paulo@0: if eval "$MISSING --run true"; then paulo@0: am_missing_run="$MISSING --run " paulo@0: else paulo@0: am_missing_run= paulo@0: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 paulo@0: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} paulo@0: fi paulo@0: paulo@0: for ac_prog in gawk mawk nawk awk paulo@0: do paulo@0: # Extract the first word of "$ac_prog", so it can be a program name with args. paulo@0: set dummy $ac_prog; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_AWK+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$AWK"; then paulo@0: ac_cv_prog_AWK="$AWK" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_AWK="$ac_prog" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: AWK=$ac_cv_prog_AWK paulo@0: if test -n "$AWK"; then paulo@0: echo "$as_me:$LINENO: result: $AWK" >&5 paulo@0: echo "${ECHO_T}$AWK" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: test -n "$AWK" && break paulo@0: done paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 paulo@0: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 paulo@0: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` paulo@0: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.make <<\_ACEOF paulo@0: all: paulo@0: @echo 'ac_maketemp="$(MAKE)"' paulo@0: _ACEOF paulo@0: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. paulo@0: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` paulo@0: if test -n "$ac_maketemp"; then paulo@0: eval ac_cv_prog_make_${ac_make}_set=yes paulo@0: else paulo@0: eval ac_cv_prog_make_${ac_make}_set=no paulo@0: fi paulo@0: rm -f conftest.make paulo@0: fi paulo@0: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then paulo@0: echo "$as_me:$LINENO: result: yes" >&5 paulo@0: echo "${ECHO_T}yes" >&6 paulo@0: SET_MAKE= paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: SET_MAKE="MAKE=${MAKE-make}" paulo@0: fi paulo@0: paulo@0: rm -rf .tst 2>/dev/null paulo@0: mkdir .tst 2>/dev/null paulo@0: if test -d .tst; then paulo@0: am__leading_dot=. paulo@0: else paulo@0: am__leading_dot=_ paulo@0: fi paulo@0: rmdir .tst 2>/dev/null paulo@0: paulo@0: # test to see if srcdir already configured paulo@0: if test "`cd $srcdir && pwd`" != "`pwd`" && paulo@0: test -f $srcdir/config.status; then paulo@0: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 paulo@0: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: # test whether we have cygpath paulo@0: if test -z "$CYGPATH_W"; then paulo@0: if (cygpath --version) >/dev/null 2>/dev/null; then paulo@0: CYGPATH_W='cygpath -w' paulo@0: else paulo@0: CYGPATH_W=echo paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: # Define the identity of the package. paulo@0: PACKAGE='gift-gnutella' paulo@0: VERSION='0.0.11' paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define PACKAGE "$PACKAGE" paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define VERSION "$VERSION" paulo@0: _ACEOF paulo@0: paulo@0: # Some tools Automake needs. paulo@0: paulo@0: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} paulo@0: paulo@0: paulo@0: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} paulo@0: paulo@0: paulo@0: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} paulo@0: paulo@0: paulo@0: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} paulo@0: paulo@0: paulo@0: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} paulo@0: paulo@0: paulo@0: AMTAR=${AMTAR-"${am_missing_run}tar"} paulo@0: paulo@0: install_sh=${install_sh-"$am_aux_dir/install-sh"} paulo@0: paulo@0: # Installed binaries are usually stripped using `strip' when the user paulo@0: # run `make install-strip'. However `strip' might not be the right paulo@0: # tool to use in cross-compilation environments, therefore Automake paulo@0: # will honor the `STRIP' environment variable to overrule this program. paulo@0: if test "$cross_compiling" != no; then paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. paulo@0: set dummy ${ac_tool_prefix}strip; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_STRIP+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$STRIP"; then paulo@0: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_STRIP="${ac_tool_prefix}strip" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: STRIP=$ac_cv_prog_STRIP paulo@0: if test -n "$STRIP"; then paulo@0: echo "$as_me:$LINENO: result: $STRIP" >&5 paulo@0: echo "${ECHO_T}$STRIP" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: if test -z "$ac_cv_prog_STRIP"; then paulo@0: ac_ct_STRIP=$STRIP paulo@0: # Extract the first word of "strip", so it can be a program name with args. paulo@0: set dummy strip; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_STRIP"; then paulo@0: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_STRIP="strip" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" paulo@0: fi paulo@0: fi paulo@0: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP paulo@0: if test -n "$ac_ct_STRIP"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 paulo@0: echo "${ECHO_T}$ac_ct_STRIP" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: STRIP=$ac_ct_STRIP paulo@0: else paulo@0: STRIP="$ac_cv_prog_STRIP" paulo@0: fi paulo@0: paulo@0: fi paulo@0: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" paulo@0: paulo@0: # We need awk for the "check" target. The system "awk" is bad on paulo@0: # some platforms. paulo@0: paulo@0: paulo@0: paulo@0: ac_config_headers="$ac_config_headers config.h" paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 paulo@0: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 paulo@0: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. paulo@0: if test "${enable_maintainer_mode+set}" = set; then paulo@0: enableval="$enable_maintainer_mode" paulo@0: USE_MAINTAINER_MODE=$enableval paulo@0: else paulo@0: USE_MAINTAINER_MODE=no paulo@0: fi; paulo@0: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 paulo@0: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 paulo@0: paulo@0: paulo@0: if test $USE_MAINTAINER_MODE = yes; then paulo@0: MAINTAINER_MODE_TRUE= paulo@0: MAINTAINER_MODE_FALSE='#' paulo@0: else paulo@0: MAINTAINER_MODE_TRUE='#' paulo@0: MAINTAINER_MODE_FALSE= paulo@0: fi paulo@0: paulo@0: MAINT=$MAINTAINER_MODE_TRUE paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. paulo@0: set dummy ${ac_tool_prefix}gcc; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_CC+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$CC"; then paulo@0: ac_cv_prog_CC="$CC" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_CC="${ac_tool_prefix}gcc" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: CC=$ac_cv_prog_CC paulo@0: if test -n "$CC"; then paulo@0: echo "$as_me:$LINENO: result: $CC" >&5 paulo@0: echo "${ECHO_T}$CC" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: if test -z "$ac_cv_prog_CC"; then paulo@0: ac_ct_CC=$CC paulo@0: # Extract the first word of "gcc", so it can be a program name with args. paulo@0: set dummy gcc; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_CC"; then paulo@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_CC="gcc" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC paulo@0: if test -n "$ac_ct_CC"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 paulo@0: echo "${ECHO_T}$ac_ct_CC" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: CC=$ac_ct_CC paulo@0: else paulo@0: CC="$ac_cv_prog_CC" paulo@0: fi paulo@0: paulo@0: if test -z "$CC"; then paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. paulo@0: set dummy ${ac_tool_prefix}cc; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_CC+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$CC"; then paulo@0: ac_cv_prog_CC="$CC" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_CC="${ac_tool_prefix}cc" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: CC=$ac_cv_prog_CC paulo@0: if test -n "$CC"; then paulo@0: echo "$as_me:$LINENO: result: $CC" >&5 paulo@0: echo "${ECHO_T}$CC" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: if test -z "$ac_cv_prog_CC"; then paulo@0: ac_ct_CC=$CC paulo@0: # Extract the first word of "cc", so it can be a program name with args. paulo@0: set dummy cc; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_CC"; then paulo@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_CC="cc" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC paulo@0: if test -n "$ac_ct_CC"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 paulo@0: echo "${ECHO_T}$ac_ct_CC" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: CC=$ac_ct_CC paulo@0: else paulo@0: CC="$ac_cv_prog_CC" paulo@0: fi paulo@0: paulo@0: fi paulo@0: if test -z "$CC"; then paulo@0: # Extract the first word of "cc", so it can be a program name with args. paulo@0: set dummy cc; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_CC+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$CC"; then paulo@0: ac_cv_prog_CC="$CC" # Let the user override the test. paulo@0: else paulo@0: ac_prog_rejected=no paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then paulo@0: ac_prog_rejected=yes paulo@0: continue paulo@0: fi paulo@0: ac_cv_prog_CC="cc" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: if test $ac_prog_rejected = yes; then paulo@0: # We found a bogon in the path, so make sure we never use it. paulo@0: set dummy $ac_cv_prog_CC paulo@0: shift paulo@0: if test $# != 0; then paulo@0: # We chose a different compiler from the bogus one. paulo@0: # However, it has the same basename, so the bogon will be chosen paulo@0: # first if we set CC to just the basename; use the full file name. paulo@0: shift paulo@0: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: CC=$ac_cv_prog_CC paulo@0: if test -n "$CC"; then paulo@0: echo "$as_me:$LINENO: result: $CC" >&5 paulo@0: echo "${ECHO_T}$CC" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: if test -z "$CC"; then paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: for ac_prog in cl paulo@0: do paulo@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. paulo@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_CC+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$CC"; then paulo@0: ac_cv_prog_CC="$CC" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: CC=$ac_cv_prog_CC paulo@0: if test -n "$CC"; then paulo@0: echo "$as_me:$LINENO: result: $CC" >&5 paulo@0: echo "${ECHO_T}$CC" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: test -n "$CC" && break paulo@0: done paulo@0: fi paulo@0: if test -z "$CC"; then paulo@0: ac_ct_CC=$CC paulo@0: for ac_prog in cl paulo@0: do paulo@0: # Extract the first word of "$ac_prog", so it can be a program name with args. paulo@0: set dummy $ac_prog; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_CC"; then paulo@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_CC="$ac_prog" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC paulo@0: if test -n "$ac_ct_CC"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 paulo@0: echo "${ECHO_T}$ac_ct_CC" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: test -n "$ac_ct_CC" && break paulo@0: done paulo@0: paulo@0: CC=$ac_ct_CC paulo@0: fi paulo@0: paulo@0: fi paulo@0: paulo@0: paulo@0: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH paulo@0: See \`config.log' for more details." >&5 paulo@0: echo "$as_me: error: no acceptable C compiler found in \$PATH paulo@0: See \`config.log' for more details." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: paulo@0: # Provide some information about the compiler. paulo@0: echo "$as_me:$LINENO:" \ paulo@0: "checking for C compiler version" >&5 paulo@0: ac_compiler=`set X $ac_compile; echo $2` paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 paulo@0: (eval $ac_compiler --version &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 paulo@0: (eval $ac_compiler -v &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 paulo@0: (eval $ac_compiler -V &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: ac_clean_files_save=$ac_clean_files paulo@0: ac_clean_files="$ac_clean_files a.out a.exe b.out" paulo@0: # Try to create an executable without -o first, disregard a.out. paulo@0: # It will help us diagnose broken compilers, and finding out an intuition paulo@0: # of exeext. paulo@0: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 paulo@0: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 paulo@0: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 paulo@0: (eval $ac_link_default) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: # Find the output, starting from the most likely. This scheme is paulo@0: # not robust to junk in `.', hence go to wildcards (a.*) only as a last paulo@0: # resort. paulo@0: paulo@0: # Be careful to initialize this variable, since it used to be cached. paulo@0: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. paulo@0: ac_cv_exeext= paulo@0: # b.out is created by i960 compilers. paulo@0: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out paulo@0: do paulo@0: test -f "$ac_file" || continue paulo@0: case $ac_file in paulo@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) paulo@0: ;; paulo@0: conftest.$ac_ext ) paulo@0: # This is the source file. paulo@0: ;; paulo@0: [ab].out ) paulo@0: # We found the default executable, but exeext='' is most paulo@0: # certainly right. paulo@0: break;; paulo@0: *.* ) paulo@0: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` paulo@0: # FIXME: I believe we export ac_cv_exeext for Libtool, paulo@0: # but it would be cool to find out if it's true. Does anybody paulo@0: # maintain Libtool? --akim. paulo@0: export ac_cv_exeext paulo@0: break;; paulo@0: * ) paulo@0: break;; paulo@0: esac paulo@0: done paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: { { echo "$as_me:$LINENO: error: C compiler cannot create executables paulo@0: See \`config.log' for more details." >&5 paulo@0: echo "$as_me: error: C compiler cannot create executables paulo@0: See \`config.log' for more details." >&2;} paulo@0: { (exit 77); exit 77; }; } paulo@0: fi paulo@0: paulo@0: ac_exeext=$ac_cv_exeext paulo@0: echo "$as_me:$LINENO: result: $ac_file" >&5 paulo@0: echo "${ECHO_T}$ac_file" >&6 paulo@0: paulo@0: # Check the compiler produces executables we can run. If not, either paulo@0: # the compiler is broken, or we cross compile. paulo@0: echo "$as_me:$LINENO: checking whether the C compiler works" >&5 paulo@0: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 paulo@0: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 paulo@0: # If not cross compiling, check that we can run a simple program. paulo@0: if test "$cross_compiling" != yes; then paulo@0: if { ac_try='./$ac_file' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: cross_compiling=no paulo@0: else paulo@0: if test "$cross_compiling" = maybe; then paulo@0: cross_compiling=yes paulo@0: else paulo@0: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. paulo@0: If you meant to cross compile, use \`--host'. paulo@0: See \`config.log' for more details." >&5 paulo@0: echo "$as_me: error: cannot run C compiled programs. paulo@0: If you meant to cross compile, use \`--host'. paulo@0: See \`config.log' for more details." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: yes" >&5 paulo@0: echo "${ECHO_T}yes" >&6 paulo@0: paulo@0: rm -f a.out a.exe conftest$ac_cv_exeext b.out paulo@0: ac_clean_files=$ac_clean_files_save paulo@0: # Check the compiler produces executables we can run. If not, either paulo@0: # the compiler is broken, or we cross compile. paulo@0: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 paulo@0: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 paulo@0: echo "$as_me:$LINENO: result: $cross_compiling" >&5 paulo@0: echo "${ECHO_T}$cross_compiling" >&6 paulo@0: paulo@0: echo "$as_me:$LINENO: checking for suffix of executables" >&5 paulo@0: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: # If both `conftest.exe' and `conftest' are `present' (well, observable) paulo@0: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will paulo@0: # work properly (i.e., refer to `conftest.exe'), while it won't with paulo@0: # `rm'. paulo@0: for ac_file in conftest.exe conftest conftest.*; do paulo@0: test -f "$ac_file" || continue paulo@0: case $ac_file in paulo@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; paulo@0: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` paulo@0: export ac_cv_exeext paulo@0: break;; paulo@0: * ) break;; paulo@0: esac paulo@0: done paulo@0: else paulo@0: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link paulo@0: See \`config.log' for more details." >&5 paulo@0: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link paulo@0: See \`config.log' for more details." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: rm -f conftest$ac_cv_exeext paulo@0: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 paulo@0: echo "${ECHO_T}$ac_cv_exeext" >&6 paulo@0: paulo@0: rm -f conftest.$ac_ext paulo@0: EXEEXT=$ac_cv_exeext paulo@0: ac_exeext=$EXEEXT paulo@0: echo "$as_me:$LINENO: checking for suffix of object files" >&5 paulo@0: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 paulo@0: if test "${ac_cv_objext+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.o conftest.obj paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do paulo@0: case $ac_file in paulo@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; paulo@0: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` paulo@0: break;; paulo@0: esac paulo@0: done paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile paulo@0: See \`config.log' for more details." >&5 paulo@0: echo "$as_me: error: cannot compute suffix of object files: cannot compile paulo@0: See \`config.log' for more details." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: rm -f conftest.$ac_cv_objext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 paulo@0: echo "${ECHO_T}$ac_cv_objext" >&6 paulo@0: OBJEXT=$ac_cv_objext paulo@0: ac_objext=$OBJEXT paulo@0: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 paulo@0: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 paulo@0: if test "${ac_cv_c_compiler_gnu+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: #ifndef __GNUC__ paulo@0: choke me paulo@0: #endif paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_compiler_gnu=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_compiler_gnu=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: ac_cv_c_compiler_gnu=$ac_compiler_gnu paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 paulo@0: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 paulo@0: GCC=`test $ac_compiler_gnu = yes && echo yes` paulo@0: ac_test_CFLAGS=${CFLAGS+set} paulo@0: ac_save_CFLAGS=$CFLAGS paulo@0: CFLAGS="-g" paulo@0: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 paulo@0: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_cc_g+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_prog_cc_g=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_prog_cc_g=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 paulo@0: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 paulo@0: if test "$ac_test_CFLAGS" = set; then paulo@0: CFLAGS=$ac_save_CFLAGS paulo@0: elif test $ac_cv_prog_cc_g = yes; then paulo@0: if test "$GCC" = yes; then paulo@0: CFLAGS="-g -O2" paulo@0: else paulo@0: CFLAGS="-g" paulo@0: fi paulo@0: else paulo@0: if test "$GCC" = yes; then paulo@0: CFLAGS="-O2" paulo@0: else paulo@0: CFLAGS= paulo@0: fi paulo@0: fi paulo@0: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 paulo@0: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_cc_stdc+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_cv_prog_cc_stdc=no paulo@0: ac_save_CC=$CC paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: #include paulo@0: #include paulo@0: #include paulo@0: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ paulo@0: struct buf { int x; }; paulo@0: FILE * (*rcsopen) (struct buf *, struct stat *, int); paulo@0: static char *e (p, i) paulo@0: char **p; paulo@0: int i; paulo@0: { paulo@0: return p[i]; paulo@0: } paulo@0: static char *f (char * (*g) (char **, int), char **p, ...) paulo@0: { paulo@0: char *s; paulo@0: va_list v; paulo@0: va_start (v,p); paulo@0: s = g (p, va_arg (v,int)); paulo@0: va_end (v); paulo@0: return s; paulo@0: } paulo@0: paulo@0: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has paulo@0: function prototypes and stuff, but not '\xHH' hex character constants. paulo@0: These don't provoke an error unfortunately, instead are silently treated paulo@0: as 'x'. The following induces an error, until -std1 is added to get paulo@0: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an paulo@0: array size at least. It's necessary to write '\x00'==0 to get something paulo@0: that's true only with -std1. */ paulo@0: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; paulo@0: paulo@0: int test (int i, double x); paulo@0: struct s1 {int (*f) (int a);}; paulo@0: struct s2 {int (*f) (double a);}; paulo@0: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); paulo@0: int argc; paulo@0: char **argv; paulo@0: int paulo@0: main () paulo@0: { paulo@0: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: # Don't try gcc -ansi; that turns off useful extensions and paulo@0: # breaks some systems' header files. paulo@0: # AIX -qlanglvl=ansi paulo@0: # Ultrix and OSF/1 -std1 paulo@0: # HP-UX 10.20 and later -Ae paulo@0: # HP-UX older versions -Aa -D_HPUX_SOURCE paulo@0: # SVR4 -Xc -D__EXTENSIONS__ paulo@0: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" paulo@0: do paulo@0: CC="$ac_save_CC $ac_arg" paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_prog_cc_stdc=$ac_arg paulo@0: break paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext paulo@0: done paulo@0: rm -f conftest.$ac_ext conftest.$ac_objext paulo@0: CC=$ac_save_CC paulo@0: paulo@0: fi paulo@0: paulo@0: case "x$ac_cv_prog_cc_stdc" in paulo@0: x|xno) paulo@0: echo "$as_me:$LINENO: result: none needed" >&5 paulo@0: echo "${ECHO_T}none needed" >&6 ;; paulo@0: *) paulo@0: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 paulo@0: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 paulo@0: CC="$CC $ac_cv_prog_cc_stdc" ;; paulo@0: esac paulo@0: paulo@0: # Some people use a C++ compiler to compile C. Since we use `exit', paulo@0: # in C++ we need to declare it. In case someone uses the same compiler paulo@0: # for both compiling C and C++ we need to have the C++ compiler decide paulo@0: # the declaration of exit, since it's the most demanding environment. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: #ifndef __cplusplus paulo@0: choke me paulo@0: #endif paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: for ac_declaration in \ paulo@0: '' \ paulo@0: 'extern "C" void std::exit (int) throw (); using std::exit;' \ paulo@0: 'extern "C" void std::exit (int); using std::exit;' \ paulo@0: 'extern "C" void exit (int) throw ();' \ paulo@0: 'extern "C" void exit (int);' \ paulo@0: 'void exit (int);' paulo@0: do paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: $ac_declaration paulo@0: #include paulo@0: int paulo@0: main () paulo@0: { paulo@0: exit (42); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: : paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: continue paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: $ac_declaration paulo@0: int paulo@0: main () paulo@0: { paulo@0: exit (42); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: break paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: done paulo@0: rm -f conftest* paulo@0: if test -n "$ac_declaration"; then paulo@0: echo '#ifdef __cplusplus' >>confdefs.h paulo@0: echo $ac_declaration >>confdefs.h paulo@0: echo '#endif' >>confdefs.h paulo@0: fi paulo@0: paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: DEPDIR="${am__leading_dot}deps" paulo@0: paulo@0: ac_config_commands="$ac_config_commands depfiles" paulo@0: paulo@0: paulo@0: am_make=${MAKE-make} paulo@0: cat > confinc << 'END' paulo@0: am__doit: paulo@0: @echo done paulo@0: .PHONY: am__doit paulo@0: END paulo@0: # If we don't find an include directive, just comment out the code. paulo@0: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 paulo@0: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 paulo@0: am__include="#" paulo@0: am__quote= paulo@0: _am_result=none paulo@0: # First try GNU make style include. paulo@0: echo "include confinc" > confmf paulo@0: # We grep out `Entering directory' and `Leaving directory' paulo@0: # messages which can occur if `w' ends up in MAKEFLAGS. paulo@0: # In particular we don't look at `^make:' because GNU make might paulo@0: # be invoked under some other name (usually "gmake"), in which paulo@0: # case it prints its new name instead of `make'. paulo@0: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then paulo@0: am__include=include paulo@0: am__quote= paulo@0: _am_result=GNU paulo@0: fi paulo@0: # Now try BSD make style include. paulo@0: if test "$am__include" = "#"; then paulo@0: echo '.include "confinc"' > confmf paulo@0: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then paulo@0: am__include=.include paulo@0: am__quote="\"" paulo@0: _am_result=BSD paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: result: $_am_result" >&5 paulo@0: echo "${ECHO_T}$_am_result" >&6 paulo@0: rm -f confinc confmf paulo@0: paulo@0: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. paulo@0: if test "${enable_dependency_tracking+set}" = set; then paulo@0: enableval="$enable_dependency_tracking" paulo@0: paulo@0: fi; paulo@0: if test "x$enable_dependency_tracking" != xno; then paulo@0: am_depcomp="$ac_aux_dir/depcomp" paulo@0: AMDEPBACKSLASH='\' paulo@0: fi paulo@0: paulo@0: paulo@0: if test "x$enable_dependency_tracking" != xno; then paulo@0: AMDEP_TRUE= paulo@0: AMDEP_FALSE='#' paulo@0: else paulo@0: AMDEP_TRUE='#' paulo@0: AMDEP_FALSE= paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: depcc="$CC" am_compiler_list= paulo@0: paulo@0: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 paulo@0: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 paulo@0: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then paulo@0: # We make a subdir and do the tests there. Otherwise we can end up paulo@0: # making bogus files that we don't know about and never remove. For paulo@0: # instance it was reported that on HP-UX the gcc test will end up paulo@0: # making a dummy file named `D' -- because `-MD' means `put the output paulo@0: # in D'. paulo@0: mkdir conftest.dir paulo@0: # Copy depcomp to subdir because otherwise we won't find it if we're paulo@0: # using a relative directory. paulo@0: cp "$am_depcomp" conftest.dir paulo@0: cd conftest.dir paulo@0: # We will build objects and dependencies in a subdirectory because paulo@0: # it helps to detect inapplicable dependency modes. For instance paulo@0: # both Tru64's cc and ICC support -MD to output dependencies as a paulo@0: # side effect of compilation, but ICC will put the dependencies in paulo@0: # the current directory while Tru64 will put them in the object paulo@0: # directory. paulo@0: mkdir sub paulo@0: paulo@0: am_cv_CC_dependencies_compiler_type=none paulo@0: if test "$am_compiler_list" = ""; then paulo@0: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` paulo@0: fi paulo@0: for depmode in $am_compiler_list; do paulo@0: # Setup a source with many dependencies, because some compilers paulo@0: # like to wrap large dependency lists on column 80 (with \), and paulo@0: # we should not choose a depcomp mode which is confused by this. paulo@0: # paulo@0: # We need to recreate these files for each test, as the compiler may paulo@0: # overwrite some of them when testing with obscure command lines. paulo@0: # This happens at least with the AIX C compiler. paulo@0: : > sub/conftest.c paulo@0: for i in 1 2 3 4 5 6; do paulo@0: echo '#include "conftst'$i'.h"' >> sub/conftest.c paulo@0: : > sub/conftst$i.h paulo@0: done paulo@0: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf paulo@0: paulo@0: case $depmode in paulo@0: nosideeffect) paulo@0: # after this tag, mechanisms are not by side-effect, so they'll paulo@0: # only be used when explicitly requested paulo@0: if test "x$enable_dependency_tracking" = xyes; then paulo@0: continue paulo@0: else paulo@0: break paulo@0: fi paulo@0: ;; paulo@0: none) break ;; paulo@0: esac paulo@0: # We check with `-c' and `-o' for the sake of the "dashmstdout" paulo@0: # mode. It turns out that the SunPro C++ compiler does not properly paulo@0: # handle `-M -o', and we need to detect this. paulo@0: if depmode=$depmode \ paulo@0: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ paulo@0: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ paulo@0: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ paulo@0: >/dev/null 2>conftest.err && paulo@0: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && paulo@0: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && paulo@0: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then paulo@0: # icc doesn't choke on unknown options, it will just issue warnings paulo@0: # (even with -Werror). So we grep stderr for any message paulo@0: # that says an option was ignored. paulo@0: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else paulo@0: am_cv_CC_dependencies_compiler_type=$depmode paulo@0: break paulo@0: fi paulo@0: fi paulo@0: done paulo@0: paulo@0: cd .. paulo@0: rm -rf conftest.dir paulo@0: else paulo@0: am_cv_CC_dependencies_compiler_type=none paulo@0: fi paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 paulo@0: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 paulo@0: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type paulo@0: paulo@0: paulo@0: paulo@0: if paulo@0: test "x$enable_dependency_tracking" != xno \ paulo@0: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then paulo@0: am__fastdepCC_TRUE= paulo@0: am__fastdepCC_FALSE='#' paulo@0: else paulo@0: am__fastdepCC_TRUE='#' paulo@0: am__fastdepCC_FALSE= paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 paulo@0: echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 paulo@0: if test "${am_cv_prog_cc_stdc+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: am_cv_prog_cc_stdc=no paulo@0: ac_save_CC="$CC" paulo@0: # Don't try gcc -ansi; that turns off useful extensions and paulo@0: # breaks some systems' header files. paulo@0: # AIX -qlanglvl=ansi paulo@0: # Ultrix and OSF/1 -std1 paulo@0: # HP-UX 10.20 and later -Ae paulo@0: # HP-UX older versions -Aa -D_HPUX_SOURCE paulo@0: # SVR4 -Xc -D__EXTENSIONS__ paulo@0: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" paulo@0: do paulo@0: CC="$ac_save_CC $ac_arg" paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: #include paulo@0: #include paulo@0: #include paulo@0: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ paulo@0: struct buf { int x; }; paulo@0: FILE * (*rcsopen) (struct buf *, struct stat *, int); paulo@0: static char *e (p, i) paulo@0: char **p; paulo@0: int i; paulo@0: { paulo@0: return p[i]; paulo@0: } paulo@0: static char *f (char * (*g) (char **, int), char **p, ...) paulo@0: { paulo@0: char *s; paulo@0: va_list v; paulo@0: va_start (v,p); paulo@0: s = g (p, va_arg (v,int)); paulo@0: va_end (v); paulo@0: return s; paulo@0: } paulo@0: int test (int i, double x); paulo@0: struct s1 {int (*f) (int a);}; paulo@0: struct s2 {int (*f) (double a);}; paulo@0: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); paulo@0: int argc; paulo@0: char **argv; paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: am_cv_prog_cc_stdc="$ac_arg"; break paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: done paulo@0: CC="$ac_save_CC" paulo@0: paulo@0: fi paulo@0: paulo@0: if test -z "$am_cv_prog_cc_stdc"; then paulo@0: echo "$as_me:$LINENO: result: none needed" >&5 paulo@0: echo "${ECHO_T}none needed" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 paulo@0: echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 paulo@0: fi paulo@0: case "x$am_cv_prog_cc_stdc" in paulo@0: x|xno) ;; paulo@0: *) CC="$CC $am_cv_prog_cc_stdc" ;; paulo@0: esac paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 paulo@0: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 paulo@0: # On Suns, sometimes $CPP names a directory. paulo@0: if test -n "$CPP" && test -d "$CPP"; then paulo@0: CPP= paulo@0: fi paulo@0: if test -z "$CPP"; then paulo@0: if test "${ac_cv_prog_CPP+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: # Double quotes because CPP needs to be expanded paulo@0: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" paulo@0: do paulo@0: ac_preproc_ok=false paulo@0: for ac_c_preproc_warn_flag in '' yes paulo@0: do paulo@0: # Use a header file that comes with gcc, so configuring glibc paulo@0: # with a fresh cross-compiler works. paulo@0: # Prefer to if __STDC__ is defined, since paulo@0: # exists even on freestanding compilers. paulo@0: # On the NeXT, cc -E runs the code through the compiler's parser, paulo@0: # not just through cpp. "Syntax error" is here to catch this case. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: Syntax error paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_c_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: : paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: # Broken: fails on valid input. paulo@0: continue paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: paulo@0: # OK, works on sane cases. Now check whether non-existent headers paulo@0: # can be detected and how. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_c_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: # Broken: success on invalid input. paulo@0: continue paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: # Passes both tests. paulo@0: ac_preproc_ok=: paulo@0: break paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: paulo@0: done paulo@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: if $ac_preproc_ok; then paulo@0: break paulo@0: fi paulo@0: paulo@0: done paulo@0: ac_cv_prog_CPP=$CPP paulo@0: paulo@0: fi paulo@0: CPP=$ac_cv_prog_CPP paulo@0: else paulo@0: ac_cv_prog_CPP=$CPP paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $CPP" >&5 paulo@0: echo "${ECHO_T}$CPP" >&6 paulo@0: ac_preproc_ok=false paulo@0: for ac_c_preproc_warn_flag in '' yes paulo@0: do paulo@0: # Use a header file that comes with gcc, so configuring glibc paulo@0: # with a fresh cross-compiler works. paulo@0: # Prefer to if __STDC__ is defined, since paulo@0: # exists even on freestanding compilers. paulo@0: # On the NeXT, cc -E runs the code through the compiler's parser, paulo@0: # not just through cpp. "Syntax error" is here to catch this case. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: Syntax error paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_c_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: : paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: # Broken: fails on valid input. paulo@0: continue paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: paulo@0: # OK, works on sane cases. Now check whether non-existent headers paulo@0: # can be detected and how. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_c_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: # Broken: success on invalid input. paulo@0: continue paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: # Passes both tests. paulo@0: ac_preproc_ok=: paulo@0: break paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: paulo@0: done paulo@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: if $ac_preproc_ok; then paulo@0: : paulo@0: else paulo@0: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check paulo@0: See \`config.log' for more details." >&5 paulo@0: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check paulo@0: See \`config.log' for more details." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking for egrep" >&5 paulo@0: echo $ECHO_N "checking for egrep... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_egrep+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if echo a | (grep -E '(a|b)') >/dev/null 2>&1 paulo@0: then ac_cv_prog_egrep='grep -E' paulo@0: else ac_cv_prog_egrep='egrep' paulo@0: fi paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 paulo@0: echo "${ECHO_T}$ac_cv_prog_egrep" >&6 paulo@0: EGREP=$ac_cv_prog_egrep paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 paulo@0: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 paulo@0: if test "${ac_cv_header_stdc+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: #include paulo@0: #include paulo@0: #include paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_header_stdc=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_header_stdc=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: paulo@0: if test $ac_cv_header_stdc = yes; then paulo@0: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: paulo@0: _ACEOF paulo@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | paulo@0: $EGREP "memchr" >/dev/null 2>&1; then paulo@0: : paulo@0: else paulo@0: ac_cv_header_stdc=no paulo@0: fi paulo@0: rm -f conftest* paulo@0: paulo@0: fi paulo@0: paulo@0: if test $ac_cv_header_stdc = yes; then paulo@0: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: paulo@0: _ACEOF paulo@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | paulo@0: $EGREP "free" >/dev/null 2>&1; then paulo@0: : paulo@0: else paulo@0: ac_cv_header_stdc=no paulo@0: fi paulo@0: rm -f conftest* paulo@0: paulo@0: fi paulo@0: paulo@0: if test $ac_cv_header_stdc = yes; then paulo@0: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. paulo@0: if test "$cross_compiling" = yes; then paulo@0: : paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: #if ((' ' & 0x0FF) == 0x020) paulo@0: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') paulo@0: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) paulo@0: #else paulo@0: # define ISLOWER(c) \ paulo@0: (('a' <= (c) && (c) <= 'i') \ paulo@0: || ('j' <= (c) && (c) <= 'r') \ paulo@0: || ('s' <= (c) && (c) <= 'z')) paulo@0: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) paulo@0: #endif paulo@0: paulo@0: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) paulo@0: int paulo@0: main () paulo@0: { paulo@0: int i; paulo@0: for (i = 0; i < 256; i++) paulo@0: if (XOR (islower (i), ISLOWER (i)) paulo@0: || toupper (i) != TOUPPER (i)) paulo@0: exit(2); paulo@0: exit (0); paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: : paulo@0: else paulo@0: echo "$as_me: program exited with status $ac_status" >&5 paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ( exit $ac_status ) paulo@0: ac_cv_header_stdc=no paulo@0: fi paulo@0: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 paulo@0: echo "${ECHO_T}$ac_cv_header_stdc" >&6 paulo@0: if test $ac_cv_header_stdc = yes; then paulo@0: paulo@0: cat >>confdefs.h <<\_ACEOF paulo@0: #define STDC_HEADERS 1 paulo@0: _ACEOF paulo@0: paulo@0: fi paulo@0: paulo@0: # Find a good install program. We prefer a C program (faster), paulo@0: # so one script is as good as another. But avoid the broken or paulo@0: # incompatible versions: paulo@0: # SysV /etc/install, /usr/sbin/install paulo@0: # SunOS /usr/etc/install paulo@0: # IRIX /sbin/install paulo@0: # AIX /bin/install paulo@0: # AmigaOS /C/install, which installs bootblocks on floppy discs paulo@0: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag paulo@0: # AFS /usr/afsws/bin/install, which mishandles nonexistent args paulo@0: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" paulo@0: # OS/2's system install, which has a completely different semantic paulo@0: # ./install, which can be erroneously created by make from ./install.sh. paulo@0: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 paulo@0: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 paulo@0: if test -z "$INSTALL"; then paulo@0: if test "${ac_cv_path_install+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: # Account for people who put trailing slashes in PATH elements. paulo@0: case $as_dir/ in paulo@0: ./ | .// | /cC/* | \ paulo@0: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ paulo@0: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ paulo@0: /usr/ucb/* ) ;; paulo@0: *) paulo@0: # OSF1 and SCO ODT 3.0 have their own names for install. paulo@0: # Don't use installbsd from OSF since it installs stuff as root paulo@0: # by default. paulo@0: for ac_prog in ginstall scoinst install; do paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then paulo@0: if test $ac_prog = install && paulo@0: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then paulo@0: # AIX install. It has an incompatible calling convention. paulo@0: : paulo@0: elif test $ac_prog = install && paulo@0: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then paulo@0: # program-specific install script used by HP pwplus--don't use. paulo@0: : paulo@0: else paulo@0: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" paulo@0: break 3 paulo@0: fi paulo@0: fi paulo@0: done paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: paulo@0: paulo@0: fi paulo@0: if test "${ac_cv_path_install+set}" = set; then paulo@0: INSTALL=$ac_cv_path_install paulo@0: else paulo@0: # As a last resort, use the slow shell script. We don't cache a paulo@0: # path for INSTALL within a source directory, because that will paulo@0: # break other packages using the cache if that directory is paulo@0: # removed, or if the path is relative. paulo@0: INSTALL=$ac_install_sh paulo@0: fi paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $INSTALL" >&5 paulo@0: echo "${ECHO_T}$INSTALL" >&6 paulo@0: paulo@0: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. paulo@0: # It thinks the first close brace ends the variable substitution. paulo@0: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' paulo@0: paulo@0: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' paulo@0: paulo@0: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' paulo@0: paulo@0: paulo@0: # Check whether --enable-static or --disable-static was given. paulo@0: if test "${enable_static+set}" = set; then paulo@0: enableval="$enable_static" paulo@0: p=${PACKAGE-default} paulo@0: case $enableval in paulo@0: yes) enable_static=yes ;; paulo@0: no) enable_static=no ;; paulo@0: *) paulo@0: enable_static=no paulo@0: # Look at the argument we got. We use all the common list separators. paulo@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," paulo@0: for pkg in $enableval; do paulo@0: IFS="$lt_save_ifs" paulo@0: if test "X$pkg" = "X$p"; then paulo@0: enable_static=yes paulo@0: fi paulo@0: done paulo@0: IFS="$lt_save_ifs" paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: enable_static=no paulo@0: fi; paulo@0: paulo@0: paulo@0: # Check whether --enable-shared or --disable-shared was given. paulo@0: if test "${enable_shared+set}" = set; then paulo@0: enableval="$enable_shared" paulo@0: p=${PACKAGE-default} paulo@0: case $enableval in paulo@0: yes) enable_shared=yes ;; paulo@0: no) enable_shared=no ;; paulo@0: *) paulo@0: enable_shared=no paulo@0: # Look at the argument we got. We use all the common list separators. paulo@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," paulo@0: for pkg in $enableval; do paulo@0: IFS="$lt_save_ifs" paulo@0: if test "X$pkg" = "X$p"; then paulo@0: enable_shared=yes paulo@0: fi paulo@0: done paulo@0: IFS="$lt_save_ifs" paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: enable_shared=yes paulo@0: fi; paulo@0: paulo@0: # Check whether --enable-fast-install or --disable-fast-install was given. paulo@0: if test "${enable_fast_install+set}" = set; then paulo@0: enableval="$enable_fast_install" paulo@0: p=${PACKAGE-default} paulo@0: case $enableval in paulo@0: yes) enable_fast_install=yes ;; paulo@0: no) enable_fast_install=no ;; paulo@0: *) paulo@0: enable_fast_install=no paulo@0: # Look at the argument we got. We use all the common list separators. paulo@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," paulo@0: for pkg in $enableval; do paulo@0: IFS="$lt_save_ifs" paulo@0: if test "X$pkg" = "X$p"; then paulo@0: enable_fast_install=yes paulo@0: fi paulo@0: done paulo@0: IFS="$lt_save_ifs" paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: enable_fast_install=yes paulo@0: fi; paulo@0: paulo@0: # Make sure we can run config.sub. paulo@0: $ac_config_sub sun4 >/dev/null 2>&1 || paulo@0: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 paulo@0: echo "$as_me: error: cannot run $ac_config_sub" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: paulo@0: echo "$as_me:$LINENO: checking build system type" >&5 paulo@0: echo $ECHO_N "checking build system type... $ECHO_C" >&6 paulo@0: if test "${ac_cv_build+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_cv_build_alias=$build_alias paulo@0: test -z "$ac_cv_build_alias" && paulo@0: ac_cv_build_alias=`$ac_config_guess` paulo@0: test -z "$ac_cv_build_alias" && paulo@0: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 paulo@0: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || paulo@0: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 paulo@0: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_build" >&5 paulo@0: echo "${ECHO_T}$ac_cv_build" >&6 paulo@0: build=$ac_cv_build paulo@0: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` paulo@0: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` paulo@0: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking host system type" >&5 paulo@0: echo $ECHO_N "checking host system type... $ECHO_C" >&6 paulo@0: if test "${ac_cv_host+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_cv_host_alias=$host_alias paulo@0: test -z "$ac_cv_host_alias" && paulo@0: ac_cv_host_alias=$ac_cv_build_alias paulo@0: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || paulo@0: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 paulo@0: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_host" >&5 paulo@0: echo "${ECHO_T}$ac_cv_host" >&6 paulo@0: host=$ac_cv_host paulo@0: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` paulo@0: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` paulo@0: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 paulo@0: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 paulo@0: if test "${lt_cv_path_SED+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: # Loop through the user's path and test for sed and gsed. paulo@0: # Then use that list of sed's as ones to test for truncation. paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for lt_ac_prog in sed gsed; do paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then paulo@0: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" paulo@0: fi paulo@0: done paulo@0: done paulo@0: done paulo@0: lt_ac_max=0 paulo@0: lt_ac_count=0 paulo@0: # Add /usr/xpg4/bin/sed as it is typically found on Solaris paulo@0: # along with /bin/sed that truncates output. paulo@0: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do paulo@0: test ! -f $lt_ac_sed && continue paulo@0: cat /dev/null > conftest.in paulo@0: lt_ac_count=0 paulo@0: echo $ECHO_N "0123456789$ECHO_C" >conftest.in paulo@0: # Check for GNU sed and select it if it is found. paulo@0: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then paulo@0: lt_cv_path_SED=$lt_ac_sed paulo@0: break paulo@0: fi paulo@0: while true; do paulo@0: cat conftest.in conftest.in >conftest.tmp paulo@0: mv conftest.tmp conftest.in paulo@0: cp conftest.in conftest.nl paulo@0: echo >>conftest.nl paulo@0: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break paulo@0: cmp -s conftest.out conftest.nl || break paulo@0: # 10000 chars as input seems more than enough paulo@0: test $lt_ac_count -gt 10 && break paulo@0: lt_ac_count=`expr $lt_ac_count + 1` paulo@0: if test $lt_ac_count -gt $lt_ac_max; then paulo@0: lt_ac_max=$lt_ac_count paulo@0: lt_cv_path_SED=$lt_ac_sed paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: paulo@0: SED=$lt_cv_path_SED paulo@0: echo "$as_me:$LINENO: result: $SED" >&5 paulo@0: echo "${ECHO_T}$SED" >&6 paulo@0: paulo@0: paulo@0: # Check whether --with-gnu-ld or --without-gnu-ld was given. paulo@0: if test "${with_gnu_ld+set}" = set; then paulo@0: withval="$with_gnu_ld" paulo@0: test "$withval" = no || with_gnu_ld=yes paulo@0: else paulo@0: with_gnu_ld=no paulo@0: fi; paulo@0: ac_prog=ld paulo@0: if test "$GCC" = yes; then paulo@0: # Check if gcc -print-prog-name=ld gives a path. paulo@0: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 paulo@0: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 paulo@0: case $host in paulo@0: *-*-mingw*) paulo@0: # gcc leaves a trailing carriage return which upsets mingw paulo@0: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; paulo@0: *) paulo@0: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; paulo@0: esac paulo@0: case $ac_prog in paulo@0: # Accept absolute paths. paulo@0: [\\/]* | ?:[\\/]*) paulo@0: re_direlt='/[^/][^/]*/\.\./' paulo@0: # Canonicalize the pathname of ld paulo@0: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` paulo@0: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do paulo@0: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` paulo@0: done paulo@0: test -z "$LD" && LD="$ac_prog" paulo@0: ;; paulo@0: "") paulo@0: # If it fails, then pretend we aren't using GCC. paulo@0: ac_prog=ld paulo@0: ;; paulo@0: *) paulo@0: # If it is relative, then search for the first ld in PATH. paulo@0: with_gnu_ld=unknown paulo@0: ;; paulo@0: esac paulo@0: elif test "$with_gnu_ld" = yes; then paulo@0: echo "$as_me:$LINENO: checking for GNU ld" >&5 paulo@0: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 paulo@0: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 paulo@0: fi paulo@0: if test "${lt_cv_path_LD+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -z "$LD"; then paulo@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR paulo@0: for ac_dir in $PATH; do paulo@0: IFS="$lt_save_ifs" paulo@0: test -z "$ac_dir" && ac_dir=. paulo@0: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then paulo@0: lt_cv_path_LD="$ac_dir/$ac_prog" paulo@0: # Check to see if the program is GNU ld. I'd rather use --version, paulo@0: # but apparently some variants of GNU ld only accept -v. paulo@0: # Break only if it was the GNU/non-GNU ld that we prefer. paulo@0: case `"$lt_cv_path_LD" -v 2>&1 &5 paulo@0: echo "${ECHO_T}$LD" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 paulo@0: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 paulo@0: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 paulo@0: if test "${lt_cv_prog_gnu_ld+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: # I'd rather use --version here, but apparently some GNU lds only accept -v. paulo@0: case `$LD -v 2>&1 &5 paulo@0: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 paulo@0: with_gnu_ld=$lt_cv_prog_gnu_ld paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 paulo@0: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 paulo@0: if test "${lt_cv_ld_reload_flag+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_cv_ld_reload_flag='-r' paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 paulo@0: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 paulo@0: reload_flag=$lt_cv_ld_reload_flag paulo@0: case $reload_flag in paulo@0: "" | " "*) ;; paulo@0: *) reload_flag=" $reload_flag" ;; paulo@0: esac paulo@0: reload_cmds='$LD$reload_flag -o $output$reload_objs' paulo@0: case $host_os in paulo@0: darwin*) paulo@0: if test "$GCC" = yes; then paulo@0: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' paulo@0: else paulo@0: reload_cmds='$LD$reload_flag -o $output$reload_objs' paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 paulo@0: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 paulo@0: if test "${lt_cv_path_NM+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$NM"; then paulo@0: # Let the user override the test. paulo@0: lt_cv_path_NM="$NM" paulo@0: else paulo@0: lt_nm_to_check="${ac_tool_prefix}nm" paulo@0: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then paulo@0: lt_nm_to_check="$lt_nm_to_check nm" paulo@0: fi paulo@0: for lt_tmp_nm in $lt_nm_to_check; do paulo@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR paulo@0: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do paulo@0: IFS="$lt_save_ifs" paulo@0: test -z "$ac_dir" && ac_dir=. paulo@0: tmp_nm="$ac_dir/$lt_tmp_nm" paulo@0: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then paulo@0: # Check to see if the nm accepts a BSD-compat flag. paulo@0: # Adding the `sed 1q' prevents false positives on HP-UX, which says: paulo@0: # nm: unknown option "B" ignored paulo@0: # Tru64's nm complains that /dev/null is an invalid object file paulo@0: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in paulo@0: */dev/null* | *'Invalid file or object type'*) paulo@0: lt_cv_path_NM="$tmp_nm -B" paulo@0: break paulo@0: ;; paulo@0: *) paulo@0: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in paulo@0: */dev/null*) paulo@0: lt_cv_path_NM="$tmp_nm -p" paulo@0: break paulo@0: ;; paulo@0: *) paulo@0: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but paulo@0: continue # so that we can try to find one that supports BSD flags paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: done paulo@0: IFS="$lt_save_ifs" paulo@0: done paulo@0: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm paulo@0: fi paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 paulo@0: echo "${ECHO_T}$lt_cv_path_NM" >&6 paulo@0: NM="$lt_cv_path_NM" paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether ln -s works" >&5 paulo@0: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 paulo@0: LN_S=$as_ln_s paulo@0: if test "$LN_S" = "ln -s"; then paulo@0: echo "$as_me:$LINENO: result: yes" >&5 paulo@0: echo "${ECHO_T}yes" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no, using $LN_S" >&5 paulo@0: echo "${ECHO_T}no, using $LN_S" >&6 paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 paulo@0: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 paulo@0: if test "${lt_cv_deplibs_check_method+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_cv_file_magic_cmd='$MAGIC_CMD' paulo@0: lt_cv_file_magic_test_file= paulo@0: lt_cv_deplibs_check_method='unknown' paulo@0: # Need to set the preceding variable on all platforms that support paulo@0: # interlibrary dependencies. paulo@0: # 'none' -- dependencies not supported. paulo@0: # `unknown' -- same as none, but documents that we really don't know. paulo@0: # 'pass_all' -- all dependencies passed with no checks. paulo@0: # 'test_compile' -- check by making test program. paulo@0: # 'file_magic [[regex]]' -- check by looking for files in library path paulo@0: # which responds to the $file_magic_cmd with a given extended regex. paulo@0: # If you have `file' or equivalent on your system and you're not sure paulo@0: # whether `pass_all' will *always* work, you probably want this one. paulo@0: paulo@0: case $host_os in paulo@0: aix4* | aix5*) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: paulo@0: bsdi[45]*) paulo@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' paulo@0: lt_cv_file_magic_cmd='/usr/bin/file -L' paulo@0: lt_cv_file_magic_test_file=/shlib/libc.so paulo@0: ;; paulo@0: paulo@0: cygwin*) paulo@0: # func_win32_libid is a shell function defined in ltmain.sh paulo@0: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' paulo@0: lt_cv_file_magic_cmd='func_win32_libid' paulo@0: ;; paulo@0: paulo@0: mingw* | pw32*) paulo@0: # Base MSYS/MinGW do not provide the 'file' command needed by paulo@0: # func_win32_libid shell function, so use a weaker test based on 'objdump'. paulo@0: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' paulo@0: lt_cv_file_magic_cmd='$OBJDUMP -f' paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: paulo@0: freebsd* | kfreebsd*-gnu | dragonfly*) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then paulo@0: case $host_cpu in paulo@0: i*86 ) paulo@0: # Not sure whether the presence of OpenBSD here was a mistake. paulo@0: # Let's accept both of them until this is cleared up. paulo@0: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' paulo@0: lt_cv_file_magic_cmd=/usr/bin/file paulo@0: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: fi paulo@0: ;; paulo@0: paulo@0: gnu*) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: paulo@0: hpux10.20* | hpux11*) paulo@0: lt_cv_file_magic_cmd=/usr/bin/file paulo@0: case $host_cpu in paulo@0: ia64*) paulo@0: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' paulo@0: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so paulo@0: ;; paulo@0: hppa*64*) paulo@0: 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]' paulo@0: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl paulo@0: ;; paulo@0: *) paulo@0: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' paulo@0: lt_cv_file_magic_test_file=/usr/lib/libc.sl paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here paulo@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: case $LD in paulo@0: *-32|*"-32 ") libmagic=32-bit;; paulo@0: *-n32|*"-n32 ") libmagic=N32;; paulo@0: *-64|*"-64 ") libmagic=64-bit;; paulo@0: *) libmagic=never-match;; paulo@0: esac paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: paulo@0: # This must be Linux ELF. paulo@0: linux*) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then paulo@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' paulo@0: else paulo@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: newos6*) paulo@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' paulo@0: lt_cv_file_magic_cmd=/usr/bin/file paulo@0: lt_cv_file_magic_test_file=/usr/lib/libnls.so paulo@0: ;; paulo@0: paulo@0: nto-qnx*) paulo@0: lt_cv_deplibs_check_method=unknown paulo@0: ;; paulo@0: paulo@0: openbsd*) paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' paulo@0: else paulo@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: osf3* | osf4* | osf5*) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: paulo@0: sysv4 | sysv4.3*) paulo@0: case $host_vendor in paulo@0: motorola) paulo@0: 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]' paulo@0: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` paulo@0: ;; paulo@0: ncr) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: sequent) paulo@0: lt_cv_file_magic_cmd='/bin/file' paulo@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' paulo@0: ;; paulo@0: sni) paulo@0: lt_cv_file_magic_cmd='/bin/file' paulo@0: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" paulo@0: lt_cv_file_magic_test_file=/lib/libc.so paulo@0: ;; paulo@0: siemens) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: pc) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) paulo@0: lt_cv_deplibs_check_method=pass_all paulo@0: ;; paulo@0: esac paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 paulo@0: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 paulo@0: file_magic_cmd=$lt_cv_file_magic_cmd paulo@0: deplibs_check_method=$lt_cv_deplibs_check_method paulo@0: test -z "$deplibs_check_method" && deplibs_check_method=unknown paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: # If no C compiler was specified, use CC. paulo@0: LTCC=${LTCC-"$CC"} paulo@0: paulo@0: # If no C compiler flags were specified, use CFLAGS. paulo@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: compiler=$CC paulo@0: paulo@0: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. paulo@0: if test "${enable_libtool_lock+set}" = set; then paulo@0: enableval="$enable_libtool_lock" paulo@0: paulo@0: fi; paulo@0: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes paulo@0: paulo@0: # Some flags need to be propagated to the compiler or linker for good paulo@0: # libtool support. paulo@0: case $host in paulo@0: ia64-*-hpux*) paulo@0: # Find out which ABI we are using. paulo@0: echo 'int i;' > conftest.$ac_ext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: case `/usr/bin/file conftest.$ac_objext` in paulo@0: *ELF-32*) paulo@0: HPUX_IA64_MODE="32" paulo@0: ;; paulo@0: *ELF-64*) paulo@0: HPUX_IA64_MODE="64" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: rm -rf conftest* paulo@0: ;; paulo@0: *-*-irix6*) paulo@0: # Find out which ABI we are using. paulo@0: echo '#line 4286 "configure"' > conftest.$ac_ext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: if test "$lt_cv_prog_gnu_ld" = yes; then paulo@0: case `/usr/bin/file conftest.$ac_objext` in paulo@0: *32-bit*) paulo@0: LD="${LD-ld} -melf32bsmip" paulo@0: ;; paulo@0: *N32*) paulo@0: LD="${LD-ld} -melf32bmipn32" paulo@0: ;; paulo@0: *64-bit*) paulo@0: LD="${LD-ld} -melf64bmip" paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: case `/usr/bin/file conftest.$ac_objext` in paulo@0: *32-bit*) paulo@0: LD="${LD-ld} -32" paulo@0: ;; paulo@0: *N32*) paulo@0: LD="${LD-ld} -n32" paulo@0: ;; paulo@0: *64-bit*) paulo@0: LD="${LD-ld} -64" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: fi paulo@0: rm -rf conftest* paulo@0: ;; paulo@0: paulo@0: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) paulo@0: # Find out which ABI we are using. paulo@0: echo 'int i;' > conftest.$ac_ext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: case `/usr/bin/file conftest.o` in paulo@0: *32-bit*) paulo@0: case $host in paulo@0: x86_64-*linux*) paulo@0: LD="${LD-ld} -m elf_i386" paulo@0: ;; paulo@0: ppc64-*linux*|powerpc64-*linux*) paulo@0: LD="${LD-ld} -m elf32ppclinux" paulo@0: ;; paulo@0: s390x-*linux*) paulo@0: LD="${LD-ld} -m elf_s390" paulo@0: ;; paulo@0: sparc64-*linux*) paulo@0: LD="${LD-ld} -m elf32_sparc" paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: *64-bit*) paulo@0: case $host in paulo@0: x86_64-*linux*) paulo@0: LD="${LD-ld} -m elf_x86_64" paulo@0: ;; paulo@0: ppc*-*linux*|powerpc*-*linux*) paulo@0: LD="${LD-ld} -m elf64ppc" paulo@0: ;; paulo@0: s390*-*linux*) paulo@0: LD="${LD-ld} -m elf64_s390" paulo@0: ;; paulo@0: sparc*-*linux*) paulo@0: LD="${LD-ld} -m elf64_sparc" paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: rm -rf conftest* paulo@0: ;; paulo@0: paulo@0: *-*-sco3.2v5*) paulo@0: # On SCO OpenServer 5, we need -belf to get full-featured binaries. paulo@0: SAVE_CFLAGS="$CFLAGS" paulo@0: CFLAGS="$CFLAGS -belf" paulo@0: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 paulo@0: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 paulo@0: if test "${lt_cv_cc_needs_belf+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: lt_cv_cc_needs_belf=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: lt_cv_cc_needs_belf=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 paulo@0: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 paulo@0: if test x"$lt_cv_cc_needs_belf" != x"yes"; then paulo@0: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf paulo@0: CFLAGS="$SAVE_CFLAGS" paulo@0: fi paulo@0: ;; paulo@0: sparc*-*solaris*) paulo@0: # Find out which ABI we are using. paulo@0: echo 'int i;' > conftest.$ac_ext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: case `/usr/bin/file conftest.o` in paulo@0: *64-bit*) paulo@0: case $lt_cv_prog_gnu_ld in paulo@0: yes*) LD="${LD-ld} -m elf64_sparc" ;; paulo@0: *) LD="${LD-ld} -64" ;; paulo@0: esac paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: rm -rf conftest* paulo@0: ;; paulo@0: paulo@0: paulo@0: esac paulo@0: paulo@0: need_locks="$enable_libtool_lock" paulo@0: paulo@0: paulo@0: # On IRIX 5.3, sys/types and inttypes.h are conflicting. paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ paulo@0: inttypes.h stdint.h unistd.h paulo@0: do paulo@0: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` paulo@0: echo "$as_me:$LINENO: checking for $ac_header" >&5 paulo@0: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 paulo@0: if eval "test \"\${$as_ac_Header+set}\" = set"; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: $ac_includes_default paulo@0: paulo@0: #include <$ac_header> paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: eval "$as_ac_Header=yes" paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: eval "$as_ac_Header=no" paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 paulo@0: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 paulo@0: if test `eval echo '${'$as_ac_Header'}'` = yes; then paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 paulo@0: _ACEOF paulo@0: paulo@0: fi paulo@0: paulo@0: done paulo@0: paulo@0: paulo@0: paulo@0: for ac_header in dlfcn.h paulo@0: do paulo@0: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` paulo@0: if eval "test \"\${$as_ac_Header+set}\" = set"; then paulo@0: echo "$as_me:$LINENO: checking for $ac_header" >&5 paulo@0: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 paulo@0: if eval "test \"\${$as_ac_Header+set}\" = set"; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 paulo@0: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 paulo@0: else paulo@0: # Is the header compilable? paulo@0: echo "$as_me:$LINENO: checking $ac_header usability" >&5 paulo@0: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: $ac_includes_default paulo@0: #include <$ac_header> paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_header_compiler=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_header_compiler=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 paulo@0: echo "${ECHO_T}$ac_header_compiler" >&6 paulo@0: paulo@0: # Is the header present? paulo@0: echo "$as_me:$LINENO: checking $ac_header presence" >&5 paulo@0: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include <$ac_header> paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_c_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: ac_header_preproc=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_header_preproc=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 paulo@0: echo "${ECHO_T}$ac_header_preproc" >&6 paulo@0: paulo@0: # So? What about this header? paulo@0: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in paulo@0: yes:no: ) paulo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 paulo@0: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} paulo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 paulo@0: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} paulo@0: ac_header_preproc=yes paulo@0: ;; paulo@0: no:yes:* ) paulo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 paulo@0: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} paulo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 paulo@0: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} paulo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 paulo@0: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} paulo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 paulo@0: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} paulo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 paulo@0: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} paulo@0: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 paulo@0: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} paulo@0: ( paulo@0: cat <<\_ASBOX paulo@0: ## ---------------------------------------- ## paulo@0: ## Report this to the gift-gnutella lists. ## paulo@0: ## ---------------------------------------- ## paulo@0: _ASBOX paulo@0: ) | paulo@0: sed "s/^/$as_me: WARNING: /" >&2 paulo@0: ;; paulo@0: esac paulo@0: echo "$as_me:$LINENO: checking for $ac_header" >&5 paulo@0: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 paulo@0: if eval "test \"\${$as_ac_Header+set}\" = set"; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: eval "$as_ac_Header=\$ac_header_preproc" paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 paulo@0: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 paulo@0: paulo@0: fi paulo@0: if test `eval echo '${'$as_ac_Header'}'` = yes; then paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 paulo@0: _ACEOF paulo@0: paulo@0: fi paulo@0: paulo@0: done paulo@0: paulo@0: ac_ext=cc paulo@0: ac_cpp='$CXXCPP $CPPFLAGS' paulo@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC paulo@0: do paulo@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. paulo@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_CXX+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$CXX"; then paulo@0: ac_cv_prog_CXX="$CXX" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: CXX=$ac_cv_prog_CXX paulo@0: if test -n "$CXX"; then paulo@0: echo "$as_me:$LINENO: result: $CXX" >&5 paulo@0: echo "${ECHO_T}$CXX" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: test -n "$CXX" && break paulo@0: done paulo@0: fi paulo@0: if test -z "$CXX"; then paulo@0: ac_ct_CXX=$CXX paulo@0: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC paulo@0: do paulo@0: # Extract the first word of "$ac_prog", so it can be a program name with args. paulo@0: set dummy $ac_prog; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_CXX"; then paulo@0: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_CXX="$ac_prog" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX paulo@0: if test -n "$ac_ct_CXX"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 paulo@0: echo "${ECHO_T}$ac_ct_CXX" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: test -n "$ac_ct_CXX" && break paulo@0: done paulo@0: test -n "$ac_ct_CXX" || ac_ct_CXX="g++" paulo@0: paulo@0: CXX=$ac_ct_CXX paulo@0: fi paulo@0: paulo@0: paulo@0: # Provide some information about the compiler. paulo@0: echo "$as_me:$LINENO:" \ paulo@0: "checking for C++ compiler version" >&5 paulo@0: ac_compiler=`set X $ac_compile; echo $2` paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 paulo@0: (eval $ac_compiler --version &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 paulo@0: (eval $ac_compiler -v &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 paulo@0: (eval $ac_compiler -V &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 paulo@0: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 paulo@0: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: #ifndef __GNUC__ paulo@0: choke me paulo@0: #endif paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_compiler_gnu=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_compiler_gnu=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 paulo@0: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 paulo@0: GXX=`test $ac_compiler_gnu = yes && echo yes` paulo@0: ac_test_CXXFLAGS=${CXXFLAGS+set} paulo@0: ac_save_CXXFLAGS=$CXXFLAGS paulo@0: CXXFLAGS="-g" paulo@0: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 paulo@0: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_cxx_g+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_prog_cxx_g=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_prog_cxx_g=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 paulo@0: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 paulo@0: if test "$ac_test_CXXFLAGS" = set; then paulo@0: CXXFLAGS=$ac_save_CXXFLAGS paulo@0: elif test $ac_cv_prog_cxx_g = yes; then paulo@0: if test "$GXX" = yes; then paulo@0: CXXFLAGS="-g -O2" paulo@0: else paulo@0: CXXFLAGS="-g" paulo@0: fi paulo@0: else paulo@0: if test "$GXX" = yes; then paulo@0: CXXFLAGS="-O2" paulo@0: else paulo@0: CXXFLAGS= paulo@0: fi paulo@0: fi paulo@0: for ac_declaration in \ paulo@0: '' \ paulo@0: 'extern "C" void std::exit (int) throw (); using std::exit;' \ paulo@0: 'extern "C" void std::exit (int); using std::exit;' \ paulo@0: 'extern "C" void exit (int) throw ();' \ paulo@0: 'extern "C" void exit (int);' \ paulo@0: 'void exit (int);' paulo@0: do paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: $ac_declaration paulo@0: #include paulo@0: int paulo@0: main () paulo@0: { paulo@0: exit (42); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: : paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: continue paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: $ac_declaration paulo@0: int paulo@0: main () paulo@0: { paulo@0: exit (42); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: break paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: done paulo@0: rm -f conftest* paulo@0: if test -n "$ac_declaration"; then paulo@0: echo '#ifdef __cplusplus' >>confdefs.h paulo@0: echo $ac_declaration >>confdefs.h paulo@0: echo '#endif' >>confdefs.h paulo@0: fi paulo@0: paulo@0: ac_ext=cc paulo@0: ac_cpp='$CXXCPP $CPPFLAGS' paulo@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu paulo@0: paulo@0: depcc="$CXX" am_compiler_list= paulo@0: paulo@0: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 paulo@0: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 paulo@0: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then paulo@0: # We make a subdir and do the tests there. Otherwise we can end up paulo@0: # making bogus files that we don't know about and never remove. For paulo@0: # instance it was reported that on HP-UX the gcc test will end up paulo@0: # making a dummy file named `D' -- because `-MD' means `put the output paulo@0: # in D'. paulo@0: mkdir conftest.dir paulo@0: # Copy depcomp to subdir because otherwise we won't find it if we're paulo@0: # using a relative directory. paulo@0: cp "$am_depcomp" conftest.dir paulo@0: cd conftest.dir paulo@0: # We will build objects and dependencies in a subdirectory because paulo@0: # it helps to detect inapplicable dependency modes. For instance paulo@0: # both Tru64's cc and ICC support -MD to output dependencies as a paulo@0: # side effect of compilation, but ICC will put the dependencies in paulo@0: # the current directory while Tru64 will put them in the object paulo@0: # directory. paulo@0: mkdir sub paulo@0: paulo@0: am_cv_CXX_dependencies_compiler_type=none paulo@0: if test "$am_compiler_list" = ""; then paulo@0: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` paulo@0: fi paulo@0: for depmode in $am_compiler_list; do paulo@0: # Setup a source with many dependencies, because some compilers paulo@0: # like to wrap large dependency lists on column 80 (with \), and paulo@0: # we should not choose a depcomp mode which is confused by this. paulo@0: # paulo@0: # We need to recreate these files for each test, as the compiler may paulo@0: # overwrite some of them when testing with obscure command lines. paulo@0: # This happens at least with the AIX C compiler. paulo@0: : > sub/conftest.c paulo@0: for i in 1 2 3 4 5 6; do paulo@0: echo '#include "conftst'$i'.h"' >> sub/conftest.c paulo@0: : > sub/conftst$i.h paulo@0: done paulo@0: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf paulo@0: paulo@0: case $depmode in paulo@0: nosideeffect) paulo@0: # after this tag, mechanisms are not by side-effect, so they'll paulo@0: # only be used when explicitly requested paulo@0: if test "x$enable_dependency_tracking" = xyes; then paulo@0: continue paulo@0: else paulo@0: break paulo@0: fi paulo@0: ;; paulo@0: none) break ;; paulo@0: esac paulo@0: # We check with `-c' and `-o' for the sake of the "dashmstdout" paulo@0: # mode. It turns out that the SunPro C++ compiler does not properly paulo@0: # handle `-M -o', and we need to detect this. paulo@0: if depmode=$depmode \ paulo@0: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ paulo@0: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ paulo@0: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ paulo@0: >/dev/null 2>conftest.err && paulo@0: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && paulo@0: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && paulo@0: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then paulo@0: # icc doesn't choke on unknown options, it will just issue warnings paulo@0: # (even with -Werror). So we grep stderr for any message paulo@0: # that says an option was ignored. paulo@0: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else paulo@0: am_cv_CXX_dependencies_compiler_type=$depmode paulo@0: break paulo@0: fi paulo@0: fi paulo@0: done paulo@0: paulo@0: cd .. paulo@0: rm -rf conftest.dir paulo@0: else paulo@0: am_cv_CXX_dependencies_compiler_type=none paulo@0: fi paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 paulo@0: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 paulo@0: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type paulo@0: paulo@0: paulo@0: paulo@0: if paulo@0: test "x$enable_dependency_tracking" != xno \ paulo@0: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then paulo@0: am__fastdepCXX_TRUE= paulo@0: am__fastdepCXX_FALSE='#' paulo@0: else paulo@0: am__fastdepCXX_TRUE='#' paulo@0: am__fastdepCXX_FALSE= paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: if test -n "$CXX" && ( test "X$CXX" != "Xno" && paulo@0: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || paulo@0: (test "X$CXX" != "Xg++"))) ; then paulo@0: ac_ext=cc paulo@0: ac_cpp='$CXXCPP $CPPFLAGS' paulo@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu paulo@0: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 paulo@0: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 paulo@0: if test -z "$CXXCPP"; then paulo@0: if test "${ac_cv_prog_CXXCPP+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: # Double quotes because CXXCPP needs to be expanded paulo@0: for CXXCPP in "$CXX -E" "/lib/cpp" paulo@0: do paulo@0: ac_preproc_ok=false paulo@0: for ac_cxx_preproc_warn_flag in '' yes paulo@0: do paulo@0: # Use a header file that comes with gcc, so configuring glibc paulo@0: # with a fresh cross-compiler works. paulo@0: # Prefer to if __STDC__ is defined, since paulo@0: # exists even on freestanding compilers. paulo@0: # On the NeXT, cc -E runs the code through the compiler's parser, paulo@0: # not just through cpp. "Syntax error" is here to catch this case. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: Syntax error paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_cxx_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: : paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: # Broken: fails on valid input. paulo@0: continue paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: paulo@0: # OK, works on sane cases. Now check whether non-existent headers paulo@0: # can be detected and how. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_cxx_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: # Broken: success on invalid input. paulo@0: continue paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: # Passes both tests. paulo@0: ac_preproc_ok=: paulo@0: break paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: paulo@0: done paulo@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: if $ac_preproc_ok; then paulo@0: break paulo@0: fi paulo@0: paulo@0: done paulo@0: ac_cv_prog_CXXCPP=$CXXCPP paulo@0: paulo@0: fi paulo@0: CXXCPP=$ac_cv_prog_CXXCPP paulo@0: else paulo@0: ac_cv_prog_CXXCPP=$CXXCPP paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $CXXCPP" >&5 paulo@0: echo "${ECHO_T}$CXXCPP" >&6 paulo@0: ac_preproc_ok=false paulo@0: for ac_cxx_preproc_warn_flag in '' yes paulo@0: do paulo@0: # Use a header file that comes with gcc, so configuring glibc paulo@0: # with a fresh cross-compiler works. paulo@0: # Prefer to if __STDC__ is defined, since paulo@0: # exists even on freestanding compilers. paulo@0: # On the NeXT, cc -E runs the code through the compiler's parser, paulo@0: # not just through cpp. "Syntax error" is here to catch this case. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: Syntax error paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_cxx_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: : paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: # Broken: fails on valid input. paulo@0: continue paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: paulo@0: # OK, works on sane cases. Now check whether non-existent headers paulo@0: # can be detected and how. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: _ACEOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 paulo@0: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } >/dev/null; then paulo@0: if test -s conftest.err; then paulo@0: ac_cpp_err=$ac_cxx_preproc_warn_flag paulo@0: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag paulo@0: else paulo@0: ac_cpp_err= paulo@0: fi paulo@0: else paulo@0: ac_cpp_err=yes paulo@0: fi paulo@0: if test -z "$ac_cpp_err"; then paulo@0: # Broken: success on invalid input. paulo@0: continue paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: # Passes both tests. paulo@0: ac_preproc_ok=: paulo@0: break paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: paulo@0: done paulo@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. paulo@0: rm -f conftest.err conftest.$ac_ext paulo@0: if $ac_preproc_ok; then paulo@0: : paulo@0: else paulo@0: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check paulo@0: See \`config.log' for more details." >&5 paulo@0: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check paulo@0: See \`config.log' for more details." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: ac_ext=cc paulo@0: ac_cpp='$CXXCPP $CPPFLAGS' paulo@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu paulo@0: paulo@0: fi paulo@0: paulo@0: paulo@0: ac_ext=f paulo@0: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_f77_compiler_gnu paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran paulo@0: do paulo@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. paulo@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_F77+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$F77"; then paulo@0: ac_cv_prog_F77="$F77" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_F77="$ac_tool_prefix$ac_prog" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: F77=$ac_cv_prog_F77 paulo@0: if test -n "$F77"; then paulo@0: echo "$as_me:$LINENO: result: $F77" >&5 paulo@0: echo "${ECHO_T}$F77" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: test -n "$F77" && break paulo@0: done paulo@0: fi paulo@0: if test -z "$F77"; then paulo@0: ac_ct_F77=$F77 paulo@0: for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran paulo@0: do paulo@0: # Extract the first word of "$ac_prog", so it can be a program name with args. paulo@0: set dummy $ac_prog; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_F77"; then paulo@0: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_F77="$ac_prog" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: ac_ct_F77=$ac_cv_prog_ac_ct_F77 paulo@0: if test -n "$ac_ct_F77"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 paulo@0: echo "${ECHO_T}$ac_ct_F77" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: test -n "$ac_ct_F77" && break paulo@0: done paulo@0: paulo@0: F77=$ac_ct_F77 paulo@0: fi paulo@0: paulo@0: paulo@0: # Provide some information about the compiler. paulo@0: echo "$as_me:5470:" \ paulo@0: "checking for Fortran 77 compiler version" >&5 paulo@0: ac_compiler=`set X $ac_compile; echo $2` paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 paulo@0: (eval $ac_compiler --version &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 paulo@0: (eval $ac_compiler -v &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 paulo@0: (eval $ac_compiler -V &5) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: rm -f a.out paulo@0: paulo@0: # If we don't use `.F' as extension, the preprocessor is not run on the paulo@0: # input file. (Note that this only needs to work for GNU compilers.) paulo@0: ac_save_ext=$ac_ext paulo@0: ac_ext=F paulo@0: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 paulo@0: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 paulo@0: if test "${ac_cv_f77_compiler_gnu+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: program main paulo@0: #ifndef __GNUC__ paulo@0: choke me paulo@0: #endif paulo@0: paulo@0: end paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_compiler_gnu=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_compiler_gnu=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: ac_cv_f77_compiler_gnu=$ac_compiler_gnu paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 paulo@0: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 paulo@0: ac_ext=$ac_save_ext paulo@0: ac_test_FFLAGS=${FFLAGS+set} paulo@0: ac_save_FFLAGS=$FFLAGS paulo@0: FFLAGS= paulo@0: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 paulo@0: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_f77_g+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: FFLAGS=-g paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: program main paulo@0: paulo@0: end paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest.$ac_objext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_prog_f77_g=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_prog_f77_g=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 paulo@0: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 paulo@0: if test "$ac_test_FFLAGS" = set; then paulo@0: FFLAGS=$ac_save_FFLAGS paulo@0: elif test $ac_cv_prog_f77_g = yes; then paulo@0: if test "x$ac_cv_f77_compiler_gnu" = xyes; then paulo@0: FFLAGS="-g -O2" paulo@0: else paulo@0: FFLAGS="-g" paulo@0: fi paulo@0: else paulo@0: if test "x$ac_cv_f77_compiler_gnu" = xyes; then paulo@0: FFLAGS="-O2" paulo@0: else paulo@0: FFLAGS= paulo@0: fi paulo@0: fi paulo@0: paulo@0: G77=`test $ac_compiler_gnu = yes && echo yes` paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: paulo@0: paulo@0: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! paulo@0: paulo@0: # find the maximum length of command line arguments paulo@0: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 paulo@0: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 paulo@0: if test "${lt_cv_sys_max_cmd_len+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: i=0 paulo@0: teststring="ABCD" paulo@0: paulo@0: case $build_os in paulo@0: msdosdjgpp*) paulo@0: # On DJGPP, this test can blow up pretty badly due to problems in libc paulo@0: # (any single argument exceeding 2000 bytes causes a buffer overrun paulo@0: # during glob expansion). Even if it were fixed, the result of this paulo@0: # check would be larger than it should be. paulo@0: lt_cv_sys_max_cmd_len=12288; # 12K is about right paulo@0: ;; paulo@0: paulo@0: gnu*) paulo@0: # Under GNU Hurd, this test is not required because there is paulo@0: # no limit to the length of command line arguments. paulo@0: # Libtool will interpret -1 as no limit whatsoever paulo@0: lt_cv_sys_max_cmd_len=-1; paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw*) paulo@0: # On Win9x/ME, this test blows up -- it succeeds, but takes paulo@0: # about 5 minutes as the teststring grows exponentially. paulo@0: # Worse, since 9x/ME are not pre-emptively multitasking, paulo@0: # you end up with a "frozen" computer, even though with patience paulo@0: # the test eventually succeeds (with a max line length of 256k). paulo@0: # Instead, let's just punt: use the minimum linelength reported by paulo@0: # all of the supported platforms: 8192 (on NT/2K/XP). paulo@0: lt_cv_sys_max_cmd_len=8192; paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: # On AmigaOS with pdksh, this test takes hours, literally. paulo@0: # So we just punt and use a minimum line length of 8192. paulo@0: lt_cv_sys_max_cmd_len=8192; paulo@0: ;; paulo@0: paulo@0: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) paulo@0: # This has been around since 386BSD, at least. Likely further. paulo@0: if test -x /sbin/sysctl; then paulo@0: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` paulo@0: elif test -x /usr/sbin/sysctl; then paulo@0: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` paulo@0: else paulo@0: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs paulo@0: fi paulo@0: # And add a safety zone paulo@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` paulo@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` paulo@0: ;; paulo@0: paulo@0: interix*) paulo@0: # We know the value 262144 and hardcode it with a safety zone (like BSD) paulo@0: lt_cv_sys_max_cmd_len=196608 paulo@0: ;; paulo@0: paulo@0: osf*) paulo@0: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure paulo@0: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not paulo@0: # nice to cause kernel panics so lets avoid the loop below. paulo@0: # First set a reasonable default. paulo@0: lt_cv_sys_max_cmd_len=16384 paulo@0: # paulo@0: if test -x /sbin/sysconfig; then paulo@0: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in paulo@0: *1*) lt_cv_sys_max_cmd_len=-1 ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: sco3.2v5*) paulo@0: lt_cv_sys_max_cmd_len=102400 paulo@0: ;; paulo@0: sysv5* | sco5v6* | sysv4.2uw2*) paulo@0: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` paulo@0: if test -n "$kargmax"; then paulo@0: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` paulo@0: else paulo@0: lt_cv_sys_max_cmd_len=32768 paulo@0: fi paulo@0: ;; paulo@0: *) paulo@0: # If test is not a shell built-in, we'll probably end up computing a paulo@0: # maximum length that is only half of the actual maximum length, but paulo@0: # we can't tell. paulo@0: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} paulo@0: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ paulo@0: = "XX$teststring") >/dev/null 2>&1 && paulo@0: new_result=`expr "X$teststring" : ".*" 2>&1` && paulo@0: lt_cv_sys_max_cmd_len=$new_result && paulo@0: test $i != 17 # 1/2 MB should be enough paulo@0: do paulo@0: i=`expr $i + 1` paulo@0: teststring=$teststring$teststring paulo@0: done paulo@0: teststring= paulo@0: # Add a significant safety factor because C++ compilers can tack on massive paulo@0: # amounts of additional arguments before passing them to the linker. paulo@0: # It appears as though 1/2 is a usable value. paulo@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` paulo@0: ;; paulo@0: esac paulo@0: paulo@0: fi paulo@0: paulo@0: if test -n $lt_cv_sys_max_cmd_len ; then paulo@0: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 paulo@0: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: none" >&5 paulo@0: echo "${ECHO_T}none" >&6 paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: # Check for command to grab the raw symbol name followed by C symbol from nm. paulo@0: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 paulo@0: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 paulo@0: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: paulo@0: # These are sane defaults that work on at least a few old systems. paulo@0: # [They come from Ultrix. What could be older than Ultrix?!! ;)] paulo@0: paulo@0: # Character class describing NM global symbol codes. paulo@0: symcode='[BCDEGRST]' paulo@0: paulo@0: # Regexp to match symbols that can be accessed directly from C. paulo@0: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' paulo@0: paulo@0: # Transform an extracted symbol line into a proper C declaration paulo@0: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" paulo@0: paulo@0: # Transform an extracted symbol line into symbol name and symbol address paulo@0: 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'" paulo@0: paulo@0: # Define system-specific variables. paulo@0: case $host_os in paulo@0: aix*) paulo@0: symcode='[BCDT]' paulo@0: ;; paulo@0: cygwin* | mingw* | pw32*) paulo@0: symcode='[ABCDGISTW]' paulo@0: ;; paulo@0: hpux*) # Its linker distinguishes data from code symbols paulo@0: if test "$host_cpu" = ia64; then paulo@0: symcode='[ABCDEGRST]' paulo@0: fi paulo@0: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" paulo@0: 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'" paulo@0: ;; paulo@0: linux*) paulo@0: if test "$host_cpu" = ia64; then paulo@0: symcode='[ABCDGIRSTW]' paulo@0: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" paulo@0: 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'" paulo@0: fi paulo@0: ;; paulo@0: irix* | nonstopux*) paulo@0: symcode='[BCDEGRST]' paulo@0: ;; paulo@0: osf*) paulo@0: symcode='[BCDEGQRST]' paulo@0: ;; paulo@0: solaris*) paulo@0: symcode='[BDRT]' paulo@0: ;; paulo@0: sco3.2v5*) paulo@0: symcode='[DT]' paulo@0: ;; paulo@0: sysv4.2uw2*) paulo@0: symcode='[DT]' paulo@0: ;; paulo@0: sysv5* | sco5v6* | unixware* | OpenUNIX*) paulo@0: symcode='[ABDT]' paulo@0: ;; paulo@0: sysv4) paulo@0: symcode='[DFNSTU]' paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # Handle CRLF in mingw tool chain paulo@0: opt_cr= paulo@0: case $build_os in paulo@0: mingw*) paulo@0: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # If we're using GNU nm, then use its standard symbol codes. paulo@0: case `$NM -V 2>&1` in paulo@0: *GNU* | *'with BFD'*) paulo@0: symcode='[ABCDGIRSTW]' ;; paulo@0: esac paulo@0: paulo@0: # Try without a prefix undercore, then with it. paulo@0: for ac_symprfx in "" "_"; do paulo@0: paulo@0: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. paulo@0: symxfrm="\\1 $ac_symprfx\\2 \\2" paulo@0: paulo@0: # Write the raw and C identifiers. paulo@0: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" paulo@0: paulo@0: # Check to see that the pipe works correctly. paulo@0: pipe_works=no paulo@0: paulo@0: rm -f conftest* paulo@0: cat > conftest.$ac_ext <&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: # Now try to grab the symbols. paulo@0: nlist=conftest.nm paulo@0: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 paulo@0: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && test -s "$nlist"; then paulo@0: # Try sorting and uniquifying the output. paulo@0: if sort "$nlist" | uniq > "$nlist"T; then paulo@0: mv -f "$nlist"T "$nlist" paulo@0: else paulo@0: rm -f "$nlist"T paulo@0: fi paulo@0: paulo@0: # Make sure that we snagged all the symbols we need. paulo@0: if grep ' nm_test_var$' "$nlist" >/dev/null; then paulo@0: if grep ' nm_test_func$' "$nlist" >/dev/null; then paulo@0: cat < conftest.$ac_ext paulo@0: #ifdef __cplusplus paulo@0: extern "C" { paulo@0: #endif paulo@0: paulo@0: EOF paulo@0: # Now generate the symbol file. paulo@0: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' paulo@0: paulo@0: cat <> conftest.$ac_ext paulo@0: #if defined (__STDC__) && __STDC__ paulo@0: # define lt_ptr_t void * paulo@0: #else paulo@0: # define lt_ptr_t char * paulo@0: # define const paulo@0: #endif paulo@0: paulo@0: /* The mapping between symbol names and symbols. */ paulo@0: const struct { paulo@0: const char *name; paulo@0: lt_ptr_t address; paulo@0: } paulo@0: lt_preloaded_symbols[] = paulo@0: { paulo@0: EOF paulo@0: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext paulo@0: cat <<\EOF >> conftest.$ac_ext paulo@0: {0, (lt_ptr_t) 0} paulo@0: }; paulo@0: paulo@0: #ifdef __cplusplus paulo@0: } paulo@0: #endif paulo@0: EOF paulo@0: # Now try linking the two files. paulo@0: mv conftest.$ac_objext conftstm.$ac_objext paulo@0: lt_save_LIBS="$LIBS" paulo@0: lt_save_CFLAGS="$CFLAGS" paulo@0: LIBS="conftstm.$ac_objext" paulo@0: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && test -s conftest${ac_exeext}; then paulo@0: pipe_works=yes paulo@0: fi paulo@0: LIBS="$lt_save_LIBS" paulo@0: CFLAGS="$lt_save_CFLAGS" paulo@0: else paulo@0: echo "cannot find nm_test_func in $nlist" >&5 paulo@0: fi paulo@0: else paulo@0: echo "cannot find nm_test_var in $nlist" >&5 paulo@0: fi paulo@0: else paulo@0: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 paulo@0: fi paulo@0: else paulo@0: echo "$progname: failed program was:" >&5 paulo@0: cat conftest.$ac_ext >&5 paulo@0: fi paulo@0: rm -f conftest* conftst* paulo@0: paulo@0: # Do not use the global_symbol_pipe unless it works. paulo@0: if test "$pipe_works" = yes; then paulo@0: break paulo@0: else paulo@0: lt_cv_sys_global_symbol_pipe= paulo@0: fi paulo@0: done paulo@0: paulo@0: fi paulo@0: paulo@0: if test -z "$lt_cv_sys_global_symbol_pipe"; then paulo@0: lt_cv_sys_global_symbol_to_cdecl= paulo@0: fi paulo@0: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then paulo@0: echo "$as_me:$LINENO: result: failed" >&5 paulo@0: echo "${ECHO_T}failed" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: ok" >&5 paulo@0: echo "${ECHO_T}ok" >&6 paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking for objdir" >&5 paulo@0: echo $ECHO_N "checking for objdir... $ECHO_C" >&6 paulo@0: if test "${lt_cv_objdir+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: rm -f .libs 2>/dev/null paulo@0: mkdir .libs 2>/dev/null paulo@0: if test -d .libs; then paulo@0: lt_cv_objdir=.libs paulo@0: else paulo@0: # MS-DOS does not allow filenames that begin with a dot. paulo@0: lt_cv_objdir=_libs paulo@0: fi paulo@0: rmdir .libs 2>/dev/null paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 paulo@0: echo "${ECHO_T}$lt_cv_objdir" >&6 paulo@0: objdir=$lt_cv_objdir paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: case $host_os in paulo@0: aix3*) paulo@0: # AIX sometimes has problems with the GCC collect2 program. For some paulo@0: # reason, if we set the COLLECT_NAMES environment variable, the problems paulo@0: # vanish in a puff of smoke. paulo@0: if test "X${COLLECT_NAMES+set}" != Xset; then paulo@0: COLLECT_NAMES= paulo@0: export COLLECT_NAMES paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # Sed substitution that helps us do robust quoting. It backslashifies paulo@0: # metacharacters that are still active within double-quoted strings. paulo@0: Xsed='sed -e 1s/^X//' paulo@0: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' paulo@0: paulo@0: # Same as above, but do not quote variable references. paulo@0: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' paulo@0: paulo@0: # Sed substitution to delay expansion of an escaped shell variable in a paulo@0: # double_quote_subst'ed string. paulo@0: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' paulo@0: paulo@0: # Sed substitution to avoid accidental globbing in evaled expressions paulo@0: no_glob_subst='s/\*/\\\*/g' paulo@0: paulo@0: # Constants: paulo@0: rm="rm -f" paulo@0: paulo@0: # Global variables: paulo@0: default_ofile=libtool paulo@0: can_build_shared=yes paulo@0: paulo@0: # All known linkers require a `.a' archive for static linking (except MSVC, paulo@0: # which needs '.lib'). paulo@0: libext=a paulo@0: ltmain="$ac_aux_dir/ltmain.sh" paulo@0: ofile="$default_ofile" paulo@0: with_gnu_ld="$lt_cv_prog_gnu_ld" paulo@0: paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. paulo@0: set dummy ${ac_tool_prefix}ar; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_AR+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$AR"; then paulo@0: ac_cv_prog_AR="$AR" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_AR="${ac_tool_prefix}ar" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: AR=$ac_cv_prog_AR paulo@0: if test -n "$AR"; then paulo@0: echo "$as_me:$LINENO: result: $AR" >&5 paulo@0: echo "${ECHO_T}$AR" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: if test -z "$ac_cv_prog_AR"; then paulo@0: ac_ct_AR=$AR paulo@0: # Extract the first word of "ar", so it can be a program name with args. paulo@0: set dummy ar; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_AR"; then paulo@0: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_AR="ar" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" paulo@0: fi paulo@0: fi paulo@0: ac_ct_AR=$ac_cv_prog_ac_ct_AR paulo@0: if test -n "$ac_ct_AR"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 paulo@0: echo "${ECHO_T}$ac_ct_AR" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: AR=$ac_ct_AR paulo@0: else paulo@0: AR="$ac_cv_prog_AR" paulo@0: fi paulo@0: paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. paulo@0: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_RANLIB+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$RANLIB"; then paulo@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: RANLIB=$ac_cv_prog_RANLIB paulo@0: if test -n "$RANLIB"; then paulo@0: echo "$as_me:$LINENO: result: $RANLIB" >&5 paulo@0: echo "${ECHO_T}$RANLIB" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: if test -z "$ac_cv_prog_RANLIB"; then paulo@0: ac_ct_RANLIB=$RANLIB paulo@0: # Extract the first word of "ranlib", so it can be a program name with args. paulo@0: set dummy ranlib; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_RANLIB"; then paulo@0: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_RANLIB="ranlib" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" paulo@0: fi paulo@0: fi paulo@0: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB paulo@0: if test -n "$ac_ct_RANLIB"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 paulo@0: echo "${ECHO_T}$ac_ct_RANLIB" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: RANLIB=$ac_ct_RANLIB paulo@0: else paulo@0: RANLIB="$ac_cv_prog_RANLIB" paulo@0: fi paulo@0: paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. paulo@0: set dummy ${ac_tool_prefix}strip; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_STRIP+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$STRIP"; then paulo@0: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_STRIP="${ac_tool_prefix}strip" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: fi paulo@0: fi paulo@0: STRIP=$ac_cv_prog_STRIP paulo@0: if test -n "$STRIP"; then paulo@0: echo "$as_me:$LINENO: result: $STRIP" >&5 paulo@0: echo "${ECHO_T}$STRIP" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: if test -z "$ac_cv_prog_STRIP"; then paulo@0: ac_ct_STRIP=$STRIP paulo@0: # Extract the first word of "strip", so it can be a program name with args. paulo@0: set dummy strip; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -n "$ac_ct_STRIP"; then paulo@0: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. paulo@0: else paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_prog_ac_ct_STRIP="strip" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" paulo@0: fi paulo@0: fi paulo@0: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP paulo@0: if test -n "$ac_ct_STRIP"; then paulo@0: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 paulo@0: echo "${ECHO_T}$ac_ct_STRIP" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: STRIP=$ac_ct_STRIP paulo@0: else paulo@0: STRIP="$ac_cv_prog_STRIP" paulo@0: fi paulo@0: paulo@0: paulo@0: old_CC="$CC" paulo@0: old_CFLAGS="$CFLAGS" paulo@0: paulo@0: # Set sane defaults for various variables paulo@0: test -z "$AR" && AR=ar paulo@0: test -z "$AR_FLAGS" && AR_FLAGS=cru paulo@0: test -z "$AS" && AS=as paulo@0: test -z "$CC" && CC=cc paulo@0: test -z "$LTCC" && LTCC=$CC paulo@0: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS paulo@0: test -z "$DLLTOOL" && DLLTOOL=dlltool paulo@0: test -z "$LD" && LD=ld paulo@0: test -z "$LN_S" && LN_S="ln -s" paulo@0: test -z "$MAGIC_CMD" && MAGIC_CMD=file paulo@0: test -z "$NM" && NM=nm paulo@0: test -z "$SED" && SED=sed paulo@0: test -z "$OBJDUMP" && OBJDUMP=objdump paulo@0: test -z "$RANLIB" && RANLIB=: paulo@0: test -z "$STRIP" && STRIP=: paulo@0: test -z "$ac_objext" && ac_objext=o paulo@0: paulo@0: # Determine commands to create old-style static archives. paulo@0: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' paulo@0: old_postinstall_cmds='chmod 644 $oldlib' paulo@0: old_postuninstall_cmds= paulo@0: paulo@0: if test -n "$RANLIB"; then paulo@0: case $host_os in paulo@0: openbsd*) paulo@0: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" paulo@0: ;; paulo@0: *) paulo@0: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" paulo@0: ;; paulo@0: esac paulo@0: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" paulo@0: fi paulo@0: paulo@0: for cc_temp in $compiler""; do paulo@0: case $cc_temp in paulo@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; paulo@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; paulo@0: \-*) ;; paulo@0: *) break;; paulo@0: esac paulo@0: done paulo@0: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` paulo@0: paulo@0: paulo@0: # Only perform the check for file, if the check method requires it paulo@0: case $deplibs_check_method in paulo@0: file_magic*) paulo@0: if test "$file_magic_cmd" = '$MAGIC_CMD'; then paulo@0: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 paulo@0: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 paulo@0: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: case $MAGIC_CMD in paulo@0: [\\/*] | ?:[\\/]*) paulo@0: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. paulo@0: ;; paulo@0: *) paulo@0: lt_save_MAGIC_CMD="$MAGIC_CMD" paulo@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR paulo@0: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" paulo@0: for ac_dir in $ac_dummy; do paulo@0: IFS="$lt_save_ifs" paulo@0: test -z "$ac_dir" && ac_dir=. paulo@0: if test -f $ac_dir/${ac_tool_prefix}file; then paulo@0: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" paulo@0: if test -n "$file_magic_test_file"; then paulo@0: case $deplibs_check_method in paulo@0: "file_magic "*) paulo@0: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` paulo@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" paulo@0: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | paulo@0: $EGREP "$file_magic_regex" > /dev/null; then paulo@0: : paulo@0: else paulo@0: cat <&2 paulo@0: paulo@0: *** Warning: the command libtool uses to detect shared libraries, paulo@0: *** $file_magic_cmd, produces output that libtool cannot recognize. paulo@0: *** The result is that libtool may fail to recognize shared libraries paulo@0: *** as such. This will affect the creation of libtool libraries that paulo@0: *** depend on shared libraries, but programs linked with such libtool paulo@0: *** libraries will work regardless of this problem. Nevertheless, you paulo@0: *** may want to report the problem to your system manager and/or to paulo@0: *** bug-libtool@gnu.org paulo@0: paulo@0: EOF paulo@0: fi ;; paulo@0: esac paulo@0: fi paulo@0: break paulo@0: fi paulo@0: done paulo@0: IFS="$lt_save_ifs" paulo@0: MAGIC_CMD="$lt_save_MAGIC_CMD" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" paulo@0: if test -n "$MAGIC_CMD"; then paulo@0: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 paulo@0: echo "${ECHO_T}$MAGIC_CMD" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: if test -z "$lt_cv_path_MAGIC_CMD"; then paulo@0: if test -n "$ac_tool_prefix"; then paulo@0: echo "$as_me:$LINENO: checking for file" >&5 paulo@0: echo $ECHO_N "checking for file... $ECHO_C" >&6 paulo@0: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: case $MAGIC_CMD in paulo@0: [\\/*] | ?:[\\/]*) paulo@0: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. paulo@0: ;; paulo@0: *) paulo@0: lt_save_MAGIC_CMD="$MAGIC_CMD" paulo@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR paulo@0: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" paulo@0: for ac_dir in $ac_dummy; do paulo@0: IFS="$lt_save_ifs" paulo@0: test -z "$ac_dir" && ac_dir=. paulo@0: if test -f $ac_dir/file; then paulo@0: lt_cv_path_MAGIC_CMD="$ac_dir/file" paulo@0: if test -n "$file_magic_test_file"; then paulo@0: case $deplibs_check_method in paulo@0: "file_magic "*) paulo@0: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` paulo@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" paulo@0: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | paulo@0: $EGREP "$file_magic_regex" > /dev/null; then paulo@0: : paulo@0: else paulo@0: cat <&2 paulo@0: paulo@0: *** Warning: the command libtool uses to detect shared libraries, paulo@0: *** $file_magic_cmd, produces output that libtool cannot recognize. paulo@0: *** The result is that libtool may fail to recognize shared libraries paulo@0: *** as such. This will affect the creation of libtool libraries that paulo@0: *** depend on shared libraries, but programs linked with such libtool paulo@0: *** libraries will work regardless of this problem. Nevertheless, you paulo@0: *** may want to report the problem to your system manager and/or to paulo@0: *** bug-libtool@gnu.org paulo@0: paulo@0: EOF paulo@0: fi ;; paulo@0: esac paulo@0: fi paulo@0: break paulo@0: fi paulo@0: done paulo@0: IFS="$lt_save_ifs" paulo@0: MAGIC_CMD="$lt_save_MAGIC_CMD" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" paulo@0: if test -n "$MAGIC_CMD"; then paulo@0: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 paulo@0: echo "${ECHO_T}$MAGIC_CMD" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: else paulo@0: MAGIC_CMD=: paulo@0: fi paulo@0: fi paulo@0: paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: enable_dlopen=no paulo@0: enable_win32_dll=no paulo@0: paulo@0: # Check whether --enable-libtool-lock or --disable-libtool-lock was given. paulo@0: if test "${enable_libtool_lock+set}" = set; then paulo@0: enableval="$enable_libtool_lock" paulo@0: paulo@0: fi; paulo@0: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes paulo@0: paulo@0: paulo@0: # Check whether --with-pic or --without-pic was given. paulo@0: if test "${with_pic+set}" = set; then paulo@0: withval="$with_pic" paulo@0: pic_mode="$withval" paulo@0: else paulo@0: pic_mode=default paulo@0: fi; paulo@0: test -z "$pic_mode" && pic_mode=default paulo@0: paulo@0: # Use C for the default configuration in the libtool script paulo@0: tagname= paulo@0: lt_save_CC="$CC" paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: paulo@0: # Source file extension for C test sources. paulo@0: ac_ext=c paulo@0: paulo@0: # Object file extension for compiled C test sources. paulo@0: objext=o paulo@0: objext=$objext paulo@0: paulo@0: # Code to be used in simple compile tests paulo@0: lt_simple_compile_test_code="int some_variable = 0;\n" paulo@0: paulo@0: # Code to be used in simple link tests paulo@0: lt_simple_link_test_code='int main(){return(0);}\n' paulo@0: paulo@0: paulo@0: # If no C compiler was specified, use CC. paulo@0: LTCC=${LTCC-"$CC"} paulo@0: paulo@0: # If no C compiler flags were specified, use CFLAGS. paulo@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: compiler=$CC paulo@0: paulo@0: paulo@0: # save warnings/boilerplate of simple test code paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" >conftest.$ac_ext paulo@0: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_compiler_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_link_test_code" >conftest.$ac_ext paulo@0: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_linker_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: paulo@0: paulo@0: lt_prog_compiler_no_builtin_flag= paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: lt_prog_compiler_no_builtin_flag=' -fno-builtin' paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 paulo@0: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 paulo@0: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_cv_prog_compiler_rtti_exceptions=no paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: lt_compiler_flag="-fno-rtti -fno-exceptions" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: # The option is referenced via a variable to avoid confusing sed. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:6531: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>conftest.err) paulo@0: ac_status=$? paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:6535: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s "$ac_outfile"; then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings other than the usual output. paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_cv_prog_compiler_rtti_exceptions=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 paulo@0: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 paulo@0: paulo@0: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then paulo@0: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" paulo@0: else paulo@0: : paulo@0: fi paulo@0: paulo@0: fi paulo@0: paulo@0: lt_prog_compiler_wl= paulo@0: lt_prog_compiler_pic= paulo@0: lt_prog_compiler_static= paulo@0: paulo@0: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 paulo@0: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: lt_prog_compiler_static='-static' paulo@0: paulo@0: case $host_os in paulo@0: aix*) paulo@0: # All AIX code is PIC. paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 now supports IA64 processor paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: # FIXME: we need at least 68020 code to build shared libraries, but paulo@0: # adding the `-m68020' flag to GCC prevents building anything better, paulo@0: # like `-m68040'. paulo@0: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' paulo@0: ;; paulo@0: paulo@0: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) paulo@0: # PIC is the default for these OSes. paulo@0: ;; paulo@0: paulo@0: mingw* | pw32* | os2*) paulo@0: # This hack is so that the source file can tell whether it is being paulo@0: # built for inclusion in a dll (and should export symbols for example). paulo@0: lt_prog_compiler_pic='-DDLL_EXPORT' paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: # PIC is the default on this platform paulo@0: # Common symbols not allowed in MH_DYLIB files paulo@0: lt_prog_compiler_pic='-fno-common' paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: # Interix 3.x gcc -fpic/-fPIC options generate broken code. paulo@0: # Instead, we relocate shared libraries at runtime. paulo@0: ;; paulo@0: paulo@0: msdosdjgpp*) paulo@0: # Just because we use GCC doesn't mean we suddenly get shared libraries paulo@0: # on systems that don't support them. paulo@0: lt_prog_compiler_can_build_shared=no paulo@0: enable_shared=no paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec; then paulo@0: lt_prog_compiler_pic=-Kconform_pic paulo@0: fi paulo@0: ;; paulo@0: paulo@0: hpux*) paulo@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but paulo@0: # not for PA HP-UX. paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: # +Z the default paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic='-fPIC' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: *) paulo@0: lt_prog_compiler_pic='-fPIC' paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: # PORTME Check for flag to pass linker flags through the system compiler. paulo@0: case $host_os in paulo@0: aix*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 now supports IA64 processor paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: else paulo@0: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' paulo@0: fi paulo@0: ;; paulo@0: darwin*) paulo@0: # PIC is the default on this platform paulo@0: # Common symbols not allowed in MH_DYLIB files paulo@0: case $cc_basename in paulo@0: xlc*) paulo@0: lt_prog_compiler_pic='-qnocommon' paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: mingw* | pw32* | os2*) paulo@0: # This hack is so that the source file can tell whether it is being paulo@0: # built for inclusion in a dll (and should export symbols for example). paulo@0: lt_prog_compiler_pic='-DDLL_EXPORT' paulo@0: ;; paulo@0: paulo@0: hpux9* | hpux10* | hpux11*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but paulo@0: # not for PA HP-UX. paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: # +Z the default paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic='+Z' paulo@0: ;; paulo@0: esac paulo@0: # Is there a better lt_prog_compiler_static that works with the bundled CC? paulo@0: lt_prog_compiler_static='${wl}-a ${wl}archive' paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: # PIC (with -KPIC) is the default. paulo@0: lt_prog_compiler_static='-non_shared' paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: lt_prog_compiler_pic='-KPIC' paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: ;; paulo@0: paulo@0: linux*) paulo@0: case $cc_basename in paulo@0: icc* | ecc*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: lt_prog_compiler_pic='-KPIC' paulo@0: lt_prog_compiler_static='-static' paulo@0: ;; paulo@0: pgcc* | pgf77* | pgf90* | pgf95*) paulo@0: # Portland Group compilers (*not* the Pentium gcc compiler, paulo@0: # which looks to be a dead project) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: lt_prog_compiler_pic='-fpic' paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: ;; paulo@0: ccc*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: # All Alpha code is PIC. paulo@0: lt_prog_compiler_static='-non_shared' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: osf3* | osf4* | osf5*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: # All OSF/1 code is PIC. paulo@0: lt_prog_compiler_static='-non_shared' paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: lt_prog_compiler_pic='-KPIC' paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: case $cc_basename in paulo@0: f77* | f90* | f95*) paulo@0: lt_prog_compiler_wl='-Qoption ld ';; paulo@0: *) paulo@0: lt_prog_compiler_wl='-Wl,';; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: lt_prog_compiler_wl='-Qoption ld ' paulo@0: lt_prog_compiler_pic='-PIC' paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: ;; paulo@0: paulo@0: sysv4 | sysv4.2uw2* | sysv4.3*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: lt_prog_compiler_pic='-KPIC' paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec ;then paulo@0: lt_prog_compiler_pic='-Kconform_pic' paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: lt_prog_compiler_pic='-KPIC' paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: ;; paulo@0: paulo@0: unicos*) paulo@0: lt_prog_compiler_wl='-Wl,' paulo@0: lt_prog_compiler_can_build_shared=no paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: lt_prog_compiler_pic='-pic' paulo@0: lt_prog_compiler_static='-Bstatic' paulo@0: ;; paulo@0: paulo@0: *) paulo@0: lt_prog_compiler_can_build_shared=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_pic" >&6 paulo@0: paulo@0: # paulo@0: # Check to make sure the PIC flag actually works. paulo@0: # paulo@0: if test -n "$lt_prog_compiler_pic"; then paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 paulo@0: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 paulo@0: if test "${lt_prog_compiler_pic_works+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_prog_compiler_pic_works=no paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: # The option is referenced via a variable to avoid confusing sed. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:6799: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>conftest.err) paulo@0: ac_status=$? paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:6803: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s "$ac_outfile"; then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings other than the usual output. paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_prog_compiler_pic_works=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 paulo@0: paulo@0: if test x"$lt_prog_compiler_pic_works" = xyes; then paulo@0: case $lt_prog_compiler_pic in paulo@0: "" | " "*) ;; paulo@0: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; paulo@0: esac paulo@0: else paulo@0: lt_prog_compiler_pic= paulo@0: lt_prog_compiler_can_build_shared=no paulo@0: fi paulo@0: paulo@0: fi paulo@0: case $host_os in paulo@0: # For platforms which do not support PIC, -DPIC is meaningless: paulo@0: *djgpp*) paulo@0: lt_prog_compiler_pic= paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # paulo@0: # Check to make sure the static flag actually works. paulo@0: # paulo@0: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" paulo@0: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 paulo@0: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 paulo@0: if test "${lt_prog_compiler_static_works+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_prog_compiler_static_works=no paulo@0: save_LDFLAGS="$LDFLAGS" paulo@0: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" paulo@0: printf "$lt_simple_link_test_code" > conftest.$ac_ext paulo@0: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then paulo@0: # The linker can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings paulo@0: if test -s conftest.err; then paulo@0: # Append any errors to the config.log. paulo@0: cat conftest.err 1>&5 paulo@0: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_prog_compiler_static_works=yes paulo@0: fi paulo@0: else paulo@0: lt_prog_compiler_static_works=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: LDFLAGS="$save_LDFLAGS" paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 paulo@0: paulo@0: if test x"$lt_prog_compiler_static_works" = xyes; then paulo@0: : paulo@0: else paulo@0: lt_prog_compiler_static= paulo@0: fi paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 paulo@0: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 paulo@0: if test "${lt_cv_prog_compiler_c_o+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_cv_prog_compiler_c_o=no paulo@0: $rm -r conftest 2>/dev/null paulo@0: mkdir conftest paulo@0: cd conftest paulo@0: mkdir out paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: paulo@0: lt_compiler_flag="-o out/conftest2.$ac_objext" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:6903: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>out/conftest.err) paulo@0: ac_status=$? paulo@0: cat out/conftest.err >&5 paulo@0: echo "$as_me:6907: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext paulo@0: then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 paulo@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then paulo@0: lt_cv_prog_compiler_c_o=yes paulo@0: fi paulo@0: fi paulo@0: chmod u+w . 2>&5 paulo@0: $rm conftest* paulo@0: # SGI C++ compiler will create directory out/ii_files/ for paulo@0: # template instantiation paulo@0: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files paulo@0: $rm out/* && rmdir out paulo@0: cd .. paulo@0: rmdir conftest paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 paulo@0: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 paulo@0: paulo@0: paulo@0: hard_links="nottested" paulo@0: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then paulo@0: # do not overwrite the value of need_locks provided by the user paulo@0: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 paulo@0: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 paulo@0: hard_links=yes paulo@0: $rm conftest* paulo@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no paulo@0: touch conftest.a paulo@0: ln conftest.a conftest.b 2>&5 || hard_links=no paulo@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no paulo@0: echo "$as_me:$LINENO: result: $hard_links" >&5 paulo@0: echo "${ECHO_T}$hard_links" >&6 paulo@0: if test "$hard_links" = no; then paulo@0: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 paulo@0: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} paulo@0: need_locks=warn paulo@0: fi paulo@0: else paulo@0: need_locks=no paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 paulo@0: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 paulo@0: paulo@0: runpath_var= paulo@0: allow_undefined_flag= paulo@0: enable_shared_with_static_runtimes=no paulo@0: archive_cmds= paulo@0: archive_expsym_cmds= paulo@0: old_archive_From_new_cmds= paulo@0: old_archive_from_expsyms_cmds= paulo@0: export_dynamic_flag_spec= paulo@0: whole_archive_flag_spec= paulo@0: thread_safe_flag_spec= paulo@0: hardcode_libdir_flag_spec= paulo@0: hardcode_libdir_flag_spec_ld= paulo@0: hardcode_libdir_separator= paulo@0: hardcode_direct=no paulo@0: hardcode_minus_L=no paulo@0: hardcode_shlibpath_var=unsupported paulo@0: link_all_deplibs=unknown paulo@0: hardcode_automatic=no paulo@0: module_cmds= paulo@0: module_expsym_cmds= paulo@0: always_export_symbols=no paulo@0: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' paulo@0: # include_expsyms should be a list of space-separated symbols to be *always* paulo@0: # included in the symbol list paulo@0: include_expsyms= paulo@0: # exclude_expsyms can be an extended regexp of symbols to exclude paulo@0: # it will be wrapped by ` (' and `)$', so one must not match beginning or paulo@0: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', paulo@0: # as well as any symbol that contains `d'. paulo@0: exclude_expsyms="_GLOBAL_OFFSET_TABLE_" paulo@0: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out paulo@0: # platforms (ab)use it in PIC code, but their linkers get confused if paulo@0: # the symbol is explicitly referenced. Since portable code cannot paulo@0: # rely on this symbol name, it's probably fine to never include it in paulo@0: # preloaded symbol tables. paulo@0: extract_expsyms_cmds= paulo@0: # Just being paranoid about ensuring that cc_basename is set. paulo@0: for cc_temp in $compiler""; do paulo@0: case $cc_temp in paulo@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; paulo@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; paulo@0: \-*) ;; paulo@0: *) break;; paulo@0: esac paulo@0: done paulo@0: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` paulo@0: paulo@0: case $host_os in paulo@0: cygwin* | mingw* | pw32*) paulo@0: # FIXME: the MSVC++ port hasn't been tested in a loooong time paulo@0: # When not using gcc, we currently assume that we are using paulo@0: # Microsoft Visual C++. paulo@0: if test "$GCC" != yes; then paulo@0: with_gnu_ld=no paulo@0: fi paulo@0: ;; paulo@0: interix*) paulo@0: # we just hope/assume this is gcc and not c89 (= MSVC++) paulo@0: with_gnu_ld=yes paulo@0: ;; paulo@0: openbsd*) paulo@0: with_gnu_ld=no paulo@0: ;; paulo@0: esac paulo@0: paulo@0: ld_shlibs=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: # If archive_cmds runs LD, not CC, wlarc should be empty paulo@0: wlarc='${wl}' paulo@0: paulo@0: # Set some defaults for GNU ld with shared library support. These paulo@0: # are reset later if shared libraries are not supported. Putting them paulo@0: # here allows them to be overridden if necessary. paulo@0: runpath_var=LD_RUN_PATH paulo@0: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' paulo@0: export_dynamic_flag_spec='${wl}--export-dynamic' paulo@0: # ancient GNU ld didn't support --whole-archive et. al. paulo@0: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then paulo@0: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' paulo@0: else paulo@0: whole_archive_flag_spec= paulo@0: fi paulo@0: supports_anon_versioning=no paulo@0: case `$LD -v 2>/dev/null` in paulo@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 paulo@0: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... paulo@0: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... paulo@0: *\ 2.11.*) ;; # other 2.11 versions paulo@0: *) supports_anon_versioning=yes ;; paulo@0: esac paulo@0: paulo@0: # See if GNU ld supports shared libraries. paulo@0: case $host_os in paulo@0: aix3* | aix4* | aix5*) paulo@0: # On AIX/PPC, the GNU linker is very broken paulo@0: if test "$host_cpu" != ia64; then paulo@0: ld_shlibs=no paulo@0: cat <&2 paulo@0: paulo@0: *** Warning: the GNU linker, at least up to release 2.9.1, is reported paulo@0: *** to be unable to reliably create shared libraries on AIX. paulo@0: *** Therefore, libtool is disabling shared libraries support. If you paulo@0: *** really care for shared libraries, you may want to modify your PATH paulo@0: *** so that a non-GNU linker is found, and then restart. paulo@0: paulo@0: EOF paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: 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)' paulo@0: hardcode_libdir_flag_spec='-L$libdir' paulo@0: hardcode_minus_L=yes paulo@0: paulo@0: # Samuel A. Falvo II reports paulo@0: # that the semantics of dynamic libraries on AmigaOS, at least up paulo@0: # to version 4, is to share data among multiple programs linked paulo@0: # with the same dynamic library. Since this doesn't match the paulo@0: # behavior of shared libraries on other platforms, we can't use paulo@0: # them. paulo@0: ld_shlibs=no paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: allow_undefined_flag=unsupported paulo@0: # Joseph Beckenbach says some releases of gcc paulo@0: # support --undefined. This deserves some investigation. FIXME paulo@0: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: else paulo@0: ld_shlibs=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, paulo@0: # as there is no search path for DLLs. paulo@0: hardcode_libdir_flag_spec='-L$libdir' paulo@0: allow_undefined_flag=unsupported paulo@0: always_export_symbols=no paulo@0: enable_shared_with_static_runtimes=yes paulo@0: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' paulo@0: paulo@0: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then paulo@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' paulo@0: # If the export-symbols file already is a .def file (1st line paulo@0: # is EXPORTS), use it as is; otherwise, prepend... paulo@0: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then paulo@0: cp $export_symbols $output_objdir/$soname.def; paulo@0: else paulo@0: echo EXPORTS > $output_objdir/$soname.def; paulo@0: cat $export_symbols >> $output_objdir/$soname.def; paulo@0: fi~ paulo@0: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' paulo@0: else paulo@0: ld_shlibs=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: hardcode_direct=no paulo@0: hardcode_shlibpath_var=no paulo@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' paulo@0: export_dynamic_flag_spec='${wl}-E' paulo@0: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. paulo@0: # Instead, shared libraries are loaded at an image base (0x10000000 by paulo@0: # default) and relocated if they conflict, which is a slow very memory paulo@0: # consuming and fragmenting process. To avoid this, we pick a random, paulo@0: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link paulo@0: # time. Moving up from 0x10000000 also allows more sbrk(2) space. paulo@0: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' paulo@0: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' paulo@0: ;; paulo@0: paulo@0: linux*) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: tmp_addflag= paulo@0: case $cc_basename,$host_cpu in paulo@0: pgcc*) # Portland Group C compiler paulo@0: 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' paulo@0: tmp_addflag=' $pic_flag' paulo@0: ;; paulo@0: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers paulo@0: 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' paulo@0: tmp_addflag=' $pic_flag -Mnomain' ;; paulo@0: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 paulo@0: tmp_addflag=' -i_dynamic' ;; paulo@0: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 paulo@0: tmp_addflag=' -i_dynamic -nofor_main' ;; paulo@0: ifc* | ifort*) # Intel Fortran compiler paulo@0: tmp_addflag=' -nofor_main' ;; paulo@0: esac paulo@0: archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: paulo@0: if test $supports_anon_versioning = yes; then paulo@0: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ paulo@0: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ paulo@0: $echo "local: *; };" >> $output_objdir/$libname.ver~ paulo@0: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' paulo@0: fi paulo@0: link_all_deplibs=no paulo@0: else paulo@0: ld_shlibs=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' paulo@0: wlarc= paulo@0: else paulo@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then paulo@0: ld_shlibs=no paulo@0: cat <&2 paulo@0: paulo@0: *** Warning: The releases 2.8.* of the GNU linker cannot reliably paulo@0: *** create shared libraries on Solaris systems. Therefore, libtool paulo@0: *** is disabling shared libraries support. We urge you to upgrade GNU paulo@0: *** binutils to release 2.9.1 or newer. Another option is to modify paulo@0: *** your PATH or compiler configuration so that the native linker is paulo@0: *** used, and then restart. paulo@0: paulo@0: EOF paulo@0: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) paulo@0: case `$LD -v 2>&1` in paulo@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) paulo@0: ld_shlibs=no paulo@0: cat <<_LT_EOF 1>&2 paulo@0: paulo@0: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not paulo@0: *** reliably create shared libraries on SCO systems. Therefore, libtool paulo@0: *** is disabling shared libraries support. We urge you to upgrade GNU paulo@0: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify paulo@0: *** your PATH or compiler configuration so that the native linker is paulo@0: *** used, and then restart. paulo@0: paulo@0: _LT_EOF paulo@0: ;; paulo@0: *) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' paulo@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' paulo@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: wlarc= paulo@0: hardcode_direct=yes paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: *) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: if test "$ld_shlibs" = no; then paulo@0: runpath_var= paulo@0: hardcode_libdir_flag_spec= paulo@0: export_dynamic_flag_spec= paulo@0: whole_archive_flag_spec= paulo@0: fi paulo@0: else paulo@0: # PORTME fill in a description of your system's linker (not GNU ld) paulo@0: case $host_os in paulo@0: aix3*) paulo@0: allow_undefined_flag=unsupported paulo@0: always_export_symbols=yes paulo@0: 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' paulo@0: # Note: this linker hardcodes the directories in LIBPATH if there paulo@0: # are no directories specified by -L. paulo@0: hardcode_minus_L=yes paulo@0: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then paulo@0: # Neither direct hardcoding nor static linking is supported with a paulo@0: # broken collect2. paulo@0: hardcode_direct=unsupported paulo@0: fi paulo@0: ;; paulo@0: paulo@0: aix4* | aix5*) paulo@0: if test "$host_cpu" = ia64; then paulo@0: # On IA64, the linker does run time linking by default, so we don't paulo@0: # have to do anything special. paulo@0: aix_use_runtimelinking=no paulo@0: exp_sym_flag='-Bexport' paulo@0: no_entry_flag="" paulo@0: else paulo@0: # If we're using GNU nm, then we don't want the "-C" option. paulo@0: # -C means demangle to AIX nm, but means don't demangle with GNU nm paulo@0: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: aix_use_runtimelinking=no paulo@0: paulo@0: # Test if we are trying to use run time linking or normal paulo@0: # AIX style linking. If -brtl is somewhere in LDFLAGS, we paulo@0: # need to do runtime linking. paulo@0: case $host_os in aix4.[23]|aix4.[23].*|aix5*) paulo@0: for ld_flag in $LDFLAGS; do paulo@0: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then paulo@0: aix_use_runtimelinking=yes paulo@0: break paulo@0: fi paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: paulo@0: exp_sym_flag='-bexport' paulo@0: no_entry_flag='-bnoentry' paulo@0: fi paulo@0: paulo@0: # When large executables or shared objects are built, AIX ld can paulo@0: # have problems creating the table of contents. If linking a library paulo@0: # or program results in "error TOC overflow" add -mminimal-toc to paulo@0: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not paulo@0: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. paulo@0: paulo@0: archive_cmds='' paulo@0: hardcode_direct=yes paulo@0: hardcode_libdir_separator=':' paulo@0: link_all_deplibs=yes paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: case $host_os in aix4.[012]|aix4.[012].*) paulo@0: # We only want to do this on AIX 4.2 and lower, the check paulo@0: # below for broken collect2 doesn't work under 4.3+ paulo@0: collect2name=`${CC} -print-prog-name=collect2` paulo@0: if test -f "$collect2name" && \ paulo@0: strings "$collect2name" | grep resolve_lib_name >/dev/null paulo@0: then paulo@0: # We have reworked collect2 paulo@0: hardcode_direct=yes paulo@0: else paulo@0: # We have old collect2 paulo@0: hardcode_direct=unsupported paulo@0: # It fails to find uninstalled libraries when the uninstalled paulo@0: # path is not listed in the libpath. Setting hardcode_minus_L paulo@0: # to unsupported forces relinking paulo@0: hardcode_minus_L=yes paulo@0: hardcode_libdir_flag_spec='-L$libdir' paulo@0: hardcode_libdir_separator= paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: shared_flag='-shared' paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: shared_flag="$shared_flag "'${wl}-G' paulo@0: fi paulo@0: else paulo@0: # not using gcc paulo@0: if test "$host_cpu" = ia64; then paulo@0: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release paulo@0: # chokes on -Wl,-G. The following line is correct: paulo@0: shared_flag='-G' paulo@0: else paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: shared_flag='${wl}-G' paulo@0: else paulo@0: shared_flag='${wl}-bM:SRE' paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: paulo@0: # It seems that -bexpall does not export symbols beginning with paulo@0: # underscore (_), so it is better to generate a list of symbols to export. paulo@0: always_export_symbols=yes paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: # Warning - without using the other runtime loading flags (-brtl), paulo@0: # -berok will link without error, but may produce a broken library. paulo@0: allow_undefined_flag='-berok' paulo@0: # Determine the default libpath from the value encoded in an empty executable. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: paulo@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } paulo@0: }'` paulo@0: # Check for a 64-bit object if we didn't find anything. paulo@0: 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; } paulo@0: }'`; fi paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi paulo@0: paulo@0: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" paulo@0: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" paulo@0: else paulo@0: if test "$host_cpu" = ia64; then paulo@0: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' paulo@0: allow_undefined_flag="-z nodefs" paulo@0: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" paulo@0: else paulo@0: # Determine the default libpath from the value encoded in an empty executable. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: paulo@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } paulo@0: }'` paulo@0: # Check for a 64-bit object if we didn't find anything. paulo@0: 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; } paulo@0: }'`; fi paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi paulo@0: paulo@0: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" paulo@0: # Warning - without using the other run time loading flags, paulo@0: # -berok will link without error, but may produce a broken library. paulo@0: no_undefined_flag=' ${wl}-bernotok' paulo@0: allow_undefined_flag=' ${wl}-berok' paulo@0: # Exported symbols can be pulled into shared objects from archives paulo@0: whole_archive_flag_spec='$convenience' paulo@0: archive_cmds_need_lc=yes paulo@0: # This is similar to how AIX traditionally builds its shared libraries. paulo@0: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' paulo@0: fi paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: 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)' paulo@0: hardcode_libdir_flag_spec='-L$libdir' paulo@0: hardcode_minus_L=yes paulo@0: # see comment about different semantics on the GNU ld section paulo@0: ld_shlibs=no paulo@0: ;; paulo@0: paulo@0: bsdi[45]*) paulo@0: export_dynamic_flag_spec=-rdynamic paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: # When not using gcc, we currently assume that we are using paulo@0: # Microsoft Visual C++. paulo@0: # hardcode_libdir_flag_spec is actually meaningless, as there is paulo@0: # no search path for DLLs. paulo@0: hardcode_libdir_flag_spec=' ' paulo@0: allow_undefined_flag=unsupported paulo@0: # Tell ltmain to make .lib files, not .a files. paulo@0: libext=lib paulo@0: # Tell ltmain to make .dll files, not .so files. paulo@0: shrext_cmds=".dll" paulo@0: # FIXME: Setting linknames here is a bad hack. paulo@0: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' paulo@0: # The linker will automatically build a .lib file if we build a DLL. paulo@0: old_archive_From_new_cmds='true' paulo@0: # FIXME: Should let the user specify the lib program. paulo@0: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' paulo@0: fix_srcfile_path='`cygpath -w "$srcfile"`' paulo@0: enable_shared_with_static_runtimes=yes paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: case $host_os in paulo@0: rhapsody* | darwin1.[012]) paulo@0: allow_undefined_flag='${wl}-undefined ${wl}suppress' paulo@0: ;; paulo@0: *) # Darwin 1.3 on paulo@0: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then paulo@0: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' paulo@0: else paulo@0: case ${MACOSX_DEPLOYMENT_TARGET} in paulo@0: 10.[012]) paulo@0: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' paulo@0: ;; paulo@0: 10.*) paulo@0: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: archive_cmds_need_lc=no paulo@0: hardcode_direct=no paulo@0: hardcode_automatic=yes paulo@0: hardcode_shlibpath_var=unsupported paulo@0: whole_archive_flag_spec='' paulo@0: link_all_deplibs=yes paulo@0: if test "$GCC" = yes ; then paulo@0: output_verbose_link_cmd='echo' paulo@0: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' paulo@0: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' paulo@0: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds paulo@0: 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}' paulo@0: 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}' paulo@0: else paulo@0: case $cc_basename in paulo@0: xlc*) paulo@0: output_verbose_link_cmd='echo' paulo@0: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' paulo@0: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' paulo@0: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds paulo@0: 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}' paulo@0: 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}' paulo@0: ;; paulo@0: *) paulo@0: ld_shlibs=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: dgux*) paulo@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec='-L$libdir' paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: freebsd1*) paulo@0: ld_shlibs=no paulo@0: ;; paulo@0: paulo@0: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor paulo@0: # support. Future versions do this automatically, but an explicit c++rt0.o paulo@0: # does not break anything, and helps significantly (at the cost of a little paulo@0: # extra space). paulo@0: freebsd2.2*) paulo@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' paulo@0: hardcode_libdir_flag_spec='-R$libdir' paulo@0: hardcode_direct=yes paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: # Unfortunately, older versions of FreeBSD 2 do not have this feature. paulo@0: freebsd2*) paulo@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct=yes paulo@0: hardcode_minus_L=yes paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. paulo@0: freebsd* | dragonfly*) paulo@0: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec='-R$libdir' paulo@0: hardcode_direct=yes paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: # GNU/kFreeBSD uses gcc -shared to do shared libraries. paulo@0: kfreebsd*-gnu) paulo@0: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec='-R$libdir' paulo@0: hardcode_direct=yes paulo@0: hardcode_shlibpath_var=no paulo@0: link_all_deplibs=no paulo@0: ;; paulo@0: paulo@0: hpux9*) paulo@0: if test "$GCC" = yes; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator=: paulo@0: hardcode_direct=yes paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L=yes paulo@0: export_dynamic_flag_spec='${wl}-E' paulo@0: ;; paulo@0: paulo@0: hpux10*) paulo@0: if test "$GCC" = yes -a "$with_gnu_ld" = no; then paulo@0: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' paulo@0: fi paulo@0: if test "$with_gnu_ld" = no; then paulo@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator=: paulo@0: paulo@0: hardcode_direct=yes paulo@0: export_dynamic_flag_spec='${wl}-E' paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: hpux11*) paulo@0: if test "$GCC" = yes -a "$with_gnu_ld" = no; then paulo@0: case $host_cpu in paulo@0: hppa*64*) paulo@0: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: ia64*) paulo@0: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: case $host_cpu in paulo@0: hppa*64*) paulo@0: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: ia64*) paulo@0: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: if test "$with_gnu_ld" = no; then paulo@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator=: paulo@0: paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: hardcode_libdir_flag_spec_ld='+b $libdir' paulo@0: hardcode_direct=no paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: *) paulo@0: hardcode_direct=yes paulo@0: export_dynamic_flag_spec='${wl}-E' paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L=yes paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: if test "$GCC" = yes; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: hardcode_libdir_flag_spec_ld='-rpath $libdir' paulo@0: fi paulo@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator=: paulo@0: link_all_deplibs=yes paulo@0: ;; paulo@0: paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out paulo@0: else paulo@0: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF paulo@0: fi paulo@0: hardcode_libdir_flag_spec='-R$libdir' paulo@0: hardcode_direct=yes paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct=yes paulo@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator=: paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: openbsd*) paulo@0: hardcode_direct=yes paulo@0: hardcode_shlibpath_var=no paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' paulo@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' paulo@0: export_dynamic_flag_spec='${wl}-E' paulo@0: else paulo@0: case $host_os in paulo@0: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) paulo@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec='-R$libdir' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: os2*) paulo@0: hardcode_libdir_flag_spec='-L$libdir' paulo@0: hardcode_minus_L=yes paulo@0: allow_undefined_flag=unsupported paulo@0: 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' paulo@0: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' paulo@0: ;; paulo@0: paulo@0: osf3*) paulo@0: if test "$GCC" = yes; then paulo@0: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: else paulo@0: allow_undefined_flag=' -expect_unresolved \*' paulo@0: 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' paulo@0: fi paulo@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator=: paulo@0: ;; paulo@0: paulo@0: osf4* | osf5*) # as osf3* with the addition of -msym flag paulo@0: if test "$GCC" = yes; then paulo@0: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' paulo@0: else paulo@0: allow_undefined_flag=' -expect_unresolved \*' paulo@0: 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' paulo@0: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ paulo@0: $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' paulo@0: paulo@0: # Both c and cxx compiler support -rpath directly paulo@0: hardcode_libdir_flag_spec='-rpath $libdir' paulo@0: fi paulo@0: hardcode_libdir_separator=: paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: no_undefined_flag=' -z text' paulo@0: if test "$GCC" = yes; then paulo@0: wlarc='${wl}' paulo@0: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' paulo@0: else paulo@0: wlarc='' paulo@0: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' paulo@0: fi paulo@0: hardcode_libdir_flag_spec='-R$libdir' paulo@0: hardcode_shlibpath_var=no paulo@0: case $host_os in paulo@0: solaris2.[0-5] | solaris2.[0-5].*) ;; paulo@0: *) paulo@0: # The compiler driver will combine linker options so we paulo@0: # cannot just pass the convience library names through paulo@0: # without $wl, iff we do not link with $LD. paulo@0: # Luckily, gcc supports the same syntax we need for Sun Studio. paulo@0: # Supported since Solaris 2.6 (maybe 2.5.1?) paulo@0: case $wlarc in paulo@0: '') paulo@0: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; paulo@0: *) paulo@0: 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' ;; paulo@0: esac ;; paulo@0: esac paulo@0: link_all_deplibs=yes paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: if test "x$host_vendor" = xsequent; then paulo@0: # Use $CC to link under sequent, because it throws in some extra .o paulo@0: # files that make .init and .fini sections work. paulo@0: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' paulo@0: fi paulo@0: hardcode_libdir_flag_spec='-L$libdir' paulo@0: hardcode_direct=yes paulo@0: hardcode_minus_L=yes paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: sysv4) paulo@0: case $host_vendor in paulo@0: sni) paulo@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct=yes # is this really true??? paulo@0: ;; paulo@0: siemens) paulo@0: ## LD is ld it makes a PLAMLIB paulo@0: ## CC just makes a GrossModule. paulo@0: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' paulo@0: reload_cmds='$CC -r -o $output$reload_objs' paulo@0: hardcode_direct=no paulo@0: ;; paulo@0: motorola) paulo@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct=no #Motorola manual says yes, but my tests say they lie paulo@0: ;; paulo@0: esac paulo@0: runpath_var='LD_RUN_PATH' paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: sysv4.3*) paulo@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_shlibpath_var=no paulo@0: export_dynamic_flag_spec='-Bexport' paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec; then paulo@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_shlibpath_var=no paulo@0: runpath_var=LD_RUN_PATH paulo@0: hardcode_runpath_var=yes paulo@0: ld_shlibs=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) paulo@0: no_undefined_flag='${wl}-z,text' paulo@0: archive_cmds_need_lc=no paulo@0: hardcode_shlibpath_var=no paulo@0: runpath_var='LD_RUN_PATH' paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6*) paulo@0: # Note: We can NOT use -z defs as we might desire, because we do not paulo@0: # link with -lc, and that would cause any symbols used from libc to paulo@0: # always be unresolved, which means just about no library would paulo@0: # ever link correctly. If we're not using GNU ld we use -z text paulo@0: # though, which does catch some bad symbols but isn't as heavy-handed paulo@0: # as -z defs. paulo@0: no_undefined_flag='${wl}-z,text' paulo@0: allow_undefined_flag='${wl}-z,nodefs' paulo@0: archive_cmds_need_lc=no paulo@0: hardcode_shlibpath_var=no paulo@0: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' paulo@0: hardcode_libdir_separator=':' paulo@0: link_all_deplibs=yes paulo@0: export_dynamic_flag_spec='${wl}-Bexport' paulo@0: runpath_var='LD_RUN_PATH' paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec='-L$libdir' paulo@0: hardcode_shlibpath_var=no paulo@0: ;; paulo@0: paulo@0: *) paulo@0: ld_shlibs=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: result: $ld_shlibs" >&5 paulo@0: echo "${ECHO_T}$ld_shlibs" >&6 paulo@0: test "$ld_shlibs" = no && can_build_shared=no paulo@0: paulo@0: # paulo@0: # Do we need to explicitly link libc? paulo@0: # paulo@0: case "x$archive_cmds_need_lc" in paulo@0: x|xyes) paulo@0: # Assume -lc should be added paulo@0: archive_cmds_need_lc=yes paulo@0: paulo@0: if test "$enable_shared" = yes && test "$GCC" = yes; then paulo@0: case $archive_cmds in paulo@0: *'~'*) paulo@0: # FIXME: we may have to deal with multi-command sequences. paulo@0: ;; paulo@0: '$CC '*) paulo@0: # Test whether the compiler implicitly links with -lc since on some paulo@0: # systems, -lgcc has to come before -lc. If gcc already passes -lc paulo@0: # to ld, don't add -lc before -lgcc. paulo@0: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 paulo@0: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 paulo@0: $rm conftest* paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } 2>conftest.err; then paulo@0: soname=conftest paulo@0: lib=conftest paulo@0: libobjs=conftest.$ac_objext paulo@0: deplibs= paulo@0: wl=$lt_prog_compiler_wl paulo@0: pic_flag=$lt_prog_compiler_pic paulo@0: compiler_flags=-v paulo@0: linker_flags=-v paulo@0: verstring= paulo@0: output_objdir=. paulo@0: libname=conftest paulo@0: lt_save_allow_undefined_flag=$allow_undefined_flag paulo@0: allow_undefined_flag= paulo@0: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 paulo@0: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: then paulo@0: archive_cmds_need_lc=no paulo@0: else paulo@0: archive_cmds_need_lc=yes paulo@0: fi paulo@0: allow_undefined_flag=$lt_save_allow_undefined_flag paulo@0: else paulo@0: cat conftest.err 1>&5 paulo@0: fi paulo@0: $rm conftest* paulo@0: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 paulo@0: echo "${ECHO_T}$archive_cmds_need_lc" >&6 paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 paulo@0: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 paulo@0: library_names_spec= paulo@0: libname_spec='lib$name' paulo@0: soname_spec= paulo@0: shrext_cmds=".so" paulo@0: postinstall_cmds= paulo@0: postuninstall_cmds= paulo@0: finish_cmds= paulo@0: finish_eval= paulo@0: shlibpath_var= paulo@0: shlibpath_overrides_runpath=unknown paulo@0: version_type=none paulo@0: dynamic_linker="$host_os ld.so" paulo@0: sys_lib_dlsearch_path_spec="/lib /usr/lib" paulo@0: if test "$GCC" = yes; then paulo@0: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` paulo@0: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then paulo@0: # if the path contains ";" then we assume it to be the separator paulo@0: # otherwise default to the standard path separator (i.e. ":") - it is paulo@0: # assumed that no part of a normal pathname contains ";" but that should paulo@0: # okay in the real world where ";" in dirpaths is itself problematic. paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` paulo@0: else paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` paulo@0: fi paulo@0: else paulo@0: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" paulo@0: fi paulo@0: need_lib_prefix=unknown paulo@0: hardcode_into_libs=no paulo@0: paulo@0: # when you set need_version to no, make sure it does not cause -set_version paulo@0: # flags to be left without arguments paulo@0: need_version=unknown paulo@0: paulo@0: case $host_os in paulo@0: aix3*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' paulo@0: shlibpath_var=LIBPATH paulo@0: paulo@0: # AIX 3 has no versioning support, so we append a major version to the name. paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: ;; paulo@0: paulo@0: aix4* | aix5*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: hardcode_into_libs=yes paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 supports IA64 paulo@0: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: else paulo@0: # With GCC up to 2.95.x, collect2 would create an import file paulo@0: # for dependence libraries. The import file would start with paulo@0: # the line `#! .'. This would cause the generated library to paulo@0: # depend on `.', always an invalid library. This was fixed in paulo@0: # development snapshots of GCC prior to 3.0. paulo@0: case $host_os in paulo@0: aix4 | aix4.[01] | aix4.[01].*) paulo@0: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' paulo@0: echo ' yes ' paulo@0: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then paulo@0: : paulo@0: else paulo@0: can_build_shared=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct paulo@0: # soname into executable. Probably we can add versioning support to paulo@0: # collect2, so additional links can be useful in future. paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: # If using run time linking (on AIX 4.2 or later) use lib.so paulo@0: # instead of lib.a to let people know that these are not paulo@0: # typical AIX shared libraries. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: else paulo@0: # We preserve .a as extension for shared libraries through AIX4.2 paulo@0: # and later when we are not doing run time linking. paulo@0: library_names_spec='${libname}${release}.a $libname.a' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: fi paulo@0: shlibpath_var=LIBPATH paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: library_names_spec='$libname.ixlibrary $libname.a' paulo@0: # Create ${libname}_ixlibrary.a entries in /sys/libs. paulo@0: 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' paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: library_names_spec='${libname}${shared_ext}' paulo@0: dynamic_linker="$host_os ld.so" paulo@0: shlibpath_var=LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: bsdi[45]*) paulo@0: version_type=linux paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" paulo@0: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" paulo@0: # the default ld.so.conf also contains /usr/contrib/lib and paulo@0: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow paulo@0: # libtool to hard-code these into programs paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: version_type=windows paulo@0: shrext_cmds=".dll" paulo@0: need_version=no paulo@0: need_lib_prefix=no paulo@0: paulo@0: case $GCC,$host_os in paulo@0: yes,cygwin* | yes,mingw* | yes,pw32*) paulo@0: library_names_spec='$libname.dll.a' paulo@0: # DLL is installed to $(libdir)/../bin by postinstall_cmds paulo@0: postinstall_cmds='base_file=`basename \${file}`~ paulo@0: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ paulo@0: dldir=$destdir/`dirname \$dlpath`~ paulo@0: test -d \$dldir || mkdir -p \$dldir~ paulo@0: $install_prog $dir/$dlname \$dldir/$dlname~ paulo@0: chmod a+x \$dldir/$dlname' paulo@0: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ paulo@0: dlpath=$dir/\$dldll~ paulo@0: $rm \$dlpath' paulo@0: shlibpath_overrides_runpath=yes paulo@0: paulo@0: case $host_os in paulo@0: cygwin*) paulo@0: # Cygwin DLLs use 'cyg' prefix rather than 'lib' paulo@0: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" paulo@0: ;; paulo@0: mingw*) paulo@0: # MinGW DLLs use traditional 'lib' prefix paulo@0: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` paulo@0: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then paulo@0: # It is most probably a Windows format PATH printed by paulo@0: # mingw gcc, but we are running on Cygwin. Gcc prints its search paulo@0: # path with ; separators, and with drive letters. We can handle the paulo@0: # drive letters (cygwin fileutils understands them), so leave them, paulo@0: # especially as we might pass files found there to a mingw objdump, paulo@0: # which wouldn't understand a cygwinified path. Ahh. paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` paulo@0: else paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` paulo@0: fi paulo@0: ;; paulo@0: pw32*) paulo@0: # pw32 DLLs use 'pw' prefix rather than 'lib' paulo@0: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: *) paulo@0: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' paulo@0: ;; paulo@0: esac paulo@0: dynamic_linker='Win32 ld.exe' paulo@0: # FIXME: first we should search . and the directory the executable is in paulo@0: shlibpath_var=PATH paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: dynamic_linker="$host_os dyld" paulo@0: version_type=darwin paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' paulo@0: soname_spec='${libname}${release}${major}$shared_ext' paulo@0: shlibpath_overrides_runpath=yes paulo@0: shlibpath_var=DYLD_LIBRARY_PATH paulo@0: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' paulo@0: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. paulo@0: if test "$GCC" = yes; then paulo@0: 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"` paulo@0: else paulo@0: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' paulo@0: ;; paulo@0: paulo@0: dgux*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: freebsd1*) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: paulo@0: kfreebsd*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='GNU ld.so' paulo@0: ;; paulo@0: paulo@0: freebsd* | dragonfly*) paulo@0: # DragonFly does not have aout. When/if they implement a new paulo@0: # versioning mechanism, adjust this. paulo@0: if test -x /usr/bin/objformat; then paulo@0: objformat=`/usr/bin/objformat` paulo@0: else paulo@0: case $host_os in paulo@0: freebsd[123]*) objformat=aout ;; paulo@0: *) objformat=elf ;; paulo@0: esac paulo@0: fi paulo@0: version_type=freebsd-$objformat paulo@0: case $version_type in paulo@0: freebsd-elf*) paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: need_version=no paulo@0: need_lib_prefix=no paulo@0: ;; paulo@0: freebsd-*) paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' paulo@0: need_version=yes paulo@0: ;; paulo@0: esac paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: case $host_os in paulo@0: freebsd2*) paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: freebsd3.[01]* | freebsdelf3.[01]*) paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ paulo@0: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: freebsd*) # from 4.6 on paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: gnu*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: hpux9* | hpux10* | hpux11*) paulo@0: # Give a soname corresponding to the major version so that dld.sl refuses to paulo@0: # link against other versions. paulo@0: version_type=sunos paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: case $host_cpu in paulo@0: ia64*) paulo@0: shrext_cmds='.so' paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker="$host_os dld.so" paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: if test "X$HPUX_IA64_MODE" = X32; then paulo@0: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" paulo@0: else paulo@0: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec paulo@0: ;; paulo@0: hppa*64*) paulo@0: shrext_cmds='.sl' paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker="$host_os dld.sl" paulo@0: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH paulo@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" paulo@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec paulo@0: ;; paulo@0: *) paulo@0: shrext_cmds='.sl' paulo@0: dynamic_linker="$host_os dld.sl" paulo@0: shlibpath_var=SHLIB_PATH paulo@0: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: ;; paulo@0: esac paulo@0: # HP-UX runs *really* slowly unless shared libraries are mode 555. paulo@0: postinstall_cmds='chmod 555 $lib' paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: case $host_os in paulo@0: nonstopux*) version_type=nonstopux ;; paulo@0: *) paulo@0: if test "$lt_cv_prog_gnu_ld" = yes; then paulo@0: version_type=linux paulo@0: else paulo@0: version_type=irix paulo@0: fi ;; paulo@0: esac paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: case $host_os in paulo@0: irix5* | nonstopux*) paulo@0: libsuff= shlibsuff= paulo@0: ;; paulo@0: *) paulo@0: case $LD in # libtool.m4 will add one of these switches to LD paulo@0: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") paulo@0: libsuff= shlibsuff= libmagic=32-bit;; paulo@0: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") paulo@0: libsuff=32 shlibsuff=N32 libmagic=N32;; paulo@0: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") paulo@0: libsuff=64 shlibsuff=64 libmagic=64-bit;; paulo@0: *) libsuff= shlibsuff= libmagic=never-match;; paulo@0: esac paulo@0: ;; paulo@0: esac paulo@0: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" paulo@0: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: # No shared lib support for Linux oldld, aout, or coff. paulo@0: linux*oldld* | linux*aout* | linux*coff*) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: paulo@0: # This must be Linux ELF. paulo@0: linux*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: # This implies no fast_install, which is unacceptable. paulo@0: # Some rework will be needed to allow for fast_install paulo@0: # before this can be enabled. paulo@0: hardcode_into_libs=yes paulo@0: paulo@0: # Append ld.so.conf contents to the search path paulo@0: if test -f /etc/ld.so.conf; then paulo@0: 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' ' '` paulo@0: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" paulo@0: fi paulo@0: paulo@0: # We used to test for /lib/ld.so.1 and disable shared libraries on paulo@0: # powerpc, because MkLinux only supported shared libraries with the paulo@0: # GNU dynamic linker. Since this was broken with cross compilers, paulo@0: # most powerpc-linux boxes support dynamic linking these days and paulo@0: # people can always --disable-shared, the test was removed, and we paulo@0: # assume the GNU/Linux dynamic linker is in use. paulo@0: dynamic_linker='GNU/Linux ld.so' paulo@0: ;; paulo@0: paulo@0: netbsdelf*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='NetBSD ld.elf_so' paulo@0: ;; paulo@0: paulo@0: knetbsd*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='GNU ld.so' paulo@0: ;; paulo@0: paulo@0: netbsd*) paulo@0: version_type=sunos paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' paulo@0: dynamic_linker='NetBSD (a.out) ld.so' paulo@0: else paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: dynamic_linker='NetBSD ld.elf_so' paulo@0: fi paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: paulo@0: nto-qnx*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: paulo@0: openbsd*) paulo@0: version_type=sunos paulo@0: sys_lib_dlsearch_path_spec="/usr/lib" paulo@0: need_lib_prefix=no paulo@0: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. paulo@0: case $host_os in paulo@0: openbsd3.3 | openbsd3.3.*) need_version=yes ;; paulo@0: *) need_version=no ;; paulo@0: esac paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: case $host_os in paulo@0: openbsd2.[89] | openbsd2.[89].*) paulo@0: shlibpath_overrides_runpath=no paulo@0: ;; paulo@0: *) paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: shlibpath_overrides_runpath=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: os2*) paulo@0: libname_spec='$name' paulo@0: shrext_cmds=".dll" paulo@0: need_lib_prefix=no paulo@0: library_names_spec='$libname${shared_ext} $libname.a' paulo@0: dynamic_linker='OS/2 ld.exe' paulo@0: shlibpath_var=LIBPATH paulo@0: ;; paulo@0: paulo@0: osf3* | osf4* | osf5*) paulo@0: version_type=osf paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" paulo@0: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: # ldd complains unless libraries are executable paulo@0: postinstall_cmds='chmod +x $lib' paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: version_type=sunos paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: need_lib_prefix=no paulo@0: fi paulo@0: need_version=yes paulo@0: ;; paulo@0: paulo@0: sysv4 | sysv4.3*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: case $host_vendor in paulo@0: sni) paulo@0: shlibpath_overrides_runpath=no paulo@0: need_lib_prefix=no paulo@0: export_dynamic_flag_spec='${wl}-Blargedynsym' paulo@0: runpath_var=LD_RUN_PATH paulo@0: ;; paulo@0: siemens) paulo@0: need_lib_prefix=no paulo@0: ;; paulo@0: motorola) paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: shlibpath_overrides_runpath=no paulo@0: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec ;then paulo@0: version_type=linux paulo@0: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' paulo@0: soname_spec='$libname${shared_ext}.$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) paulo@0: version_type=freebsd-elf paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: hardcode_into_libs=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' paulo@0: shlibpath_overrides_runpath=no paulo@0: else paulo@0: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' paulo@0: shlibpath_overrides_runpath=yes paulo@0: case $host_os in paulo@0: sco3.2v5*) paulo@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec='/usr/lib' paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: *) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: esac paulo@0: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 paulo@0: echo "${ECHO_T}$dynamic_linker" >&6 paulo@0: test "$dynamic_linker" = no && can_build_shared=no paulo@0: paulo@0: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" paulo@0: if test "$GCC" = yes; then paulo@0: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 paulo@0: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 paulo@0: hardcode_action= paulo@0: if test -n "$hardcode_libdir_flag_spec" || \ paulo@0: test -n "$runpath_var" || \ paulo@0: test "X$hardcode_automatic" = "Xyes" ; then paulo@0: paulo@0: # We can hardcode non-existant directories. paulo@0: if test "$hardcode_direct" != no && paulo@0: # If the only mechanism to avoid hardcoding is shlibpath_var, we paulo@0: # have to relink, otherwise we might link with an installed library paulo@0: # when we should be linking with a yet-to-be-installed one paulo@0: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && paulo@0: test "$hardcode_minus_L" != no; then paulo@0: # Linking always hardcodes the temporary library directory. paulo@0: hardcode_action=relink paulo@0: else paulo@0: # We can link without hardcoding, and we can hardcode nonexisting dirs. paulo@0: hardcode_action=immediate paulo@0: fi paulo@0: else paulo@0: # We cannot hardcode anything, or else we can only hardcode existing paulo@0: # directories. paulo@0: hardcode_action=unsupported paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $hardcode_action" >&5 paulo@0: echo "${ECHO_T}$hardcode_action" >&6 paulo@0: paulo@0: if test "$hardcode_action" = relink; then paulo@0: # Fast installation is not supported paulo@0: enable_fast_install=no paulo@0: elif test "$shlibpath_overrides_runpath" = yes || paulo@0: test "$enable_shared" = no; then paulo@0: # Fast installation is not necessary paulo@0: enable_fast_install=needless paulo@0: fi paulo@0: paulo@0: striplib= paulo@0: old_striplib= paulo@0: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 paulo@0: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 paulo@0: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then paulo@0: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" paulo@0: test -z "$striplib" && striplib="$STRIP --strip-unneeded" paulo@0: echo "$as_me:$LINENO: result: yes" >&5 paulo@0: echo "${ECHO_T}yes" >&6 paulo@0: else paulo@0: # FIXME - insert some real tests, host_os isn't really good enough paulo@0: case $host_os in paulo@0: darwin*) paulo@0: if test -n "$STRIP" ; then paulo@0: striplib="$STRIP -x" paulo@0: echo "$as_me:$LINENO: result: yes" >&5 paulo@0: echo "${ECHO_T}yes" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: ;; paulo@0: *) paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: if test "x$enable_dlopen" != xyes; then paulo@0: enable_dlopen=unknown paulo@0: enable_dlopen_self=unknown paulo@0: enable_dlopen_self_static=unknown paulo@0: else paulo@0: lt_cv_dlopen=no paulo@0: lt_cv_dlopen_libs= paulo@0: paulo@0: case $host_os in paulo@0: beos*) paulo@0: lt_cv_dlopen="load_add_on" paulo@0: lt_cv_dlopen_libs= paulo@0: lt_cv_dlopen_self=yes paulo@0: ;; paulo@0: paulo@0: mingw* | pw32*) paulo@0: lt_cv_dlopen="LoadLibrary" paulo@0: lt_cv_dlopen_libs= paulo@0: ;; paulo@0: paulo@0: cygwin*) paulo@0: lt_cv_dlopen="dlopen" paulo@0: lt_cv_dlopen_libs= paulo@0: ;; paulo@0: paulo@0: darwin*) paulo@0: # if libdl is installed we need to link against it paulo@0: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 paulo@0: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 paulo@0: if test "${ac_cv_lib_dl_dlopen+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_check_lib_save_LIBS=$LIBS paulo@0: LIBS="-ldl $LIBS" paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char dlopen (); paulo@0: int paulo@0: main () paulo@0: { paulo@0: dlopen (); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_lib_dl_dlopen=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_lib_dl_dlopen=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: LIBS=$ac_check_lib_save_LIBS paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 paulo@0: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 paulo@0: if test $ac_cv_lib_dl_dlopen = yes; then paulo@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" paulo@0: else paulo@0: paulo@0: lt_cv_dlopen="dyld" paulo@0: lt_cv_dlopen_libs= paulo@0: lt_cv_dlopen_self=yes paulo@0: paulo@0: fi paulo@0: paulo@0: ;; paulo@0: paulo@0: *) paulo@0: echo "$as_me:$LINENO: checking for shl_load" >&5 paulo@0: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 paulo@0: if test "${ac_cv_func_shl_load+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: /* Define shl_load to an innocuous variant, in case declares shl_load. paulo@0: For example, HP-UX 11i declares gettimeofday. */ paulo@0: #define shl_load innocuous_shl_load paulo@0: paulo@0: /* System header to define __stub macros and hopefully few prototypes, paulo@0: which can conflict with char shl_load (); below. paulo@0: Prefer to if __STDC__ is defined, since paulo@0: exists even on freestanding compilers. */ paulo@0: paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: paulo@0: #undef shl_load paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: { paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char shl_load (); paulo@0: /* The GNU C library defines this for functions which it implements paulo@0: to always fail with ENOSYS. Some functions are actually named paulo@0: something starting with __ and the normal name is an alias. */ paulo@0: #if defined (__stub_shl_load) || defined (__stub___shl_load) paulo@0: choke me paulo@0: #else paulo@0: char (*f) () = shl_load; paulo@0: #endif paulo@0: #ifdef __cplusplus paulo@0: } paulo@0: #endif paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: return f != shl_load; paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_func_shl_load=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_func_shl_load=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 paulo@0: echo "${ECHO_T}$ac_cv_func_shl_load" >&6 paulo@0: if test $ac_cv_func_shl_load = yes; then paulo@0: lt_cv_dlopen="shl_load" paulo@0: else paulo@0: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 paulo@0: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 paulo@0: if test "${ac_cv_lib_dld_shl_load+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_check_lib_save_LIBS=$LIBS paulo@0: LIBS="-ldld $LIBS" paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char shl_load (); paulo@0: int paulo@0: main () paulo@0: { paulo@0: shl_load (); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_lib_dld_shl_load=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_lib_dld_shl_load=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: LIBS=$ac_check_lib_save_LIBS paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 paulo@0: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 paulo@0: if test $ac_cv_lib_dld_shl_load = yes; then paulo@0: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" paulo@0: else paulo@0: echo "$as_me:$LINENO: checking for dlopen" >&5 paulo@0: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 paulo@0: if test "${ac_cv_func_dlopen+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: /* Define dlopen to an innocuous variant, in case declares dlopen. paulo@0: For example, HP-UX 11i declares gettimeofday. */ paulo@0: #define dlopen innocuous_dlopen paulo@0: paulo@0: /* System header to define __stub macros and hopefully few prototypes, paulo@0: which can conflict with char dlopen (); below. paulo@0: Prefer to if __STDC__ is defined, since paulo@0: exists even on freestanding compilers. */ paulo@0: paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: paulo@0: #undef dlopen paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: { paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char dlopen (); paulo@0: /* The GNU C library defines this for functions which it implements paulo@0: to always fail with ENOSYS. Some functions are actually named paulo@0: something starting with __ and the normal name is an alias. */ paulo@0: #if defined (__stub_dlopen) || defined (__stub___dlopen) paulo@0: choke me paulo@0: #else paulo@0: char (*f) () = dlopen; paulo@0: #endif paulo@0: #ifdef __cplusplus paulo@0: } paulo@0: #endif paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: return f != dlopen; paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_func_dlopen=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_func_dlopen=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 paulo@0: echo "${ECHO_T}$ac_cv_func_dlopen" >&6 paulo@0: if test $ac_cv_func_dlopen = yes; then paulo@0: lt_cv_dlopen="dlopen" paulo@0: else paulo@0: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 paulo@0: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 paulo@0: if test "${ac_cv_lib_dl_dlopen+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_check_lib_save_LIBS=$LIBS paulo@0: LIBS="-ldl $LIBS" paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char dlopen (); paulo@0: int paulo@0: main () paulo@0: { paulo@0: dlopen (); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_lib_dl_dlopen=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_lib_dl_dlopen=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: LIBS=$ac_check_lib_save_LIBS paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 paulo@0: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 paulo@0: if test $ac_cv_lib_dl_dlopen = yes; then paulo@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" paulo@0: else paulo@0: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 paulo@0: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 paulo@0: if test "${ac_cv_lib_svld_dlopen+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_check_lib_save_LIBS=$LIBS paulo@0: LIBS="-lsvld $LIBS" paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char dlopen (); paulo@0: int paulo@0: main () paulo@0: { paulo@0: dlopen (); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_lib_svld_dlopen=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_lib_svld_dlopen=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: LIBS=$ac_check_lib_save_LIBS paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 paulo@0: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 paulo@0: if test $ac_cv_lib_svld_dlopen = yes; then paulo@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" paulo@0: else paulo@0: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 paulo@0: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 paulo@0: if test "${ac_cv_lib_dld_dld_link+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_check_lib_save_LIBS=$LIBS paulo@0: LIBS="-ldld $LIBS" paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char dld_link (); paulo@0: int paulo@0: main () paulo@0: { paulo@0: dld_link (); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_lib_dld_dld_link=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_lib_dld_dld_link=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: LIBS=$ac_check_lib_save_LIBS paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 paulo@0: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 paulo@0: if test $ac_cv_lib_dld_dld_link = yes; then paulo@0: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" paulo@0: fi paulo@0: paulo@0: paulo@0: fi paulo@0: paulo@0: paulo@0: fi paulo@0: paulo@0: paulo@0: fi paulo@0: paulo@0: paulo@0: fi paulo@0: paulo@0: paulo@0: fi paulo@0: paulo@0: ;; paulo@0: esac paulo@0: paulo@0: if test "x$lt_cv_dlopen" != xno; then paulo@0: enable_dlopen=yes paulo@0: else paulo@0: enable_dlopen=no paulo@0: fi paulo@0: paulo@0: case $lt_cv_dlopen in paulo@0: dlopen) paulo@0: save_CPPFLAGS="$CPPFLAGS" paulo@0: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" paulo@0: paulo@0: save_LDFLAGS="$LDFLAGS" paulo@0: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" paulo@0: paulo@0: save_LIBS="$LIBS" paulo@0: LIBS="$lt_cv_dlopen_libs $LIBS" paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 paulo@0: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 paulo@0: if test "${lt_cv_dlopen_self+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test "$cross_compiling" = yes; then : paulo@0: lt_cv_dlopen_self=cross paulo@0: else paulo@0: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 paulo@0: lt_status=$lt_dlunknown paulo@0: cat > conftest.$ac_ext < paulo@0: #endif paulo@0: paulo@0: #include paulo@0: paulo@0: #ifdef RTLD_GLOBAL paulo@0: # define LT_DLGLOBAL RTLD_GLOBAL paulo@0: #else paulo@0: # ifdef DL_GLOBAL paulo@0: # define LT_DLGLOBAL DL_GLOBAL paulo@0: # else paulo@0: # define LT_DLGLOBAL 0 paulo@0: # endif paulo@0: #endif paulo@0: paulo@0: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we paulo@0: find out it does not work in some platform. */ paulo@0: #ifndef LT_DLLAZY_OR_NOW paulo@0: # ifdef RTLD_LAZY paulo@0: # define LT_DLLAZY_OR_NOW RTLD_LAZY paulo@0: # else paulo@0: # ifdef DL_LAZY paulo@0: # define LT_DLLAZY_OR_NOW DL_LAZY paulo@0: # else paulo@0: # ifdef RTLD_NOW paulo@0: # define LT_DLLAZY_OR_NOW RTLD_NOW paulo@0: # else paulo@0: # ifdef DL_NOW paulo@0: # define LT_DLLAZY_OR_NOW DL_NOW paulo@0: # else paulo@0: # define LT_DLLAZY_OR_NOW 0 paulo@0: # endif paulo@0: # endif paulo@0: # endif paulo@0: # endif paulo@0: #endif paulo@0: paulo@0: #ifdef __cplusplus paulo@0: extern "C" void exit (int); paulo@0: #endif paulo@0: paulo@0: void fnord() { int i=42;} paulo@0: int main () paulo@0: { paulo@0: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); paulo@0: int status = $lt_dlunknown; paulo@0: paulo@0: if (self) paulo@0: { paulo@0: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; paulo@0: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; paulo@0: /* dlclose (self); */ paulo@0: } paulo@0: else paulo@0: puts (dlerror ()); paulo@0: paulo@0: exit (status); paulo@0: } paulo@0: EOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then paulo@0: (./conftest; exit; ) >&5 2>/dev/null paulo@0: lt_status=$? paulo@0: case x$lt_status in paulo@0: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; paulo@0: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; paulo@0: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; paulo@0: esac paulo@0: else : paulo@0: # compilation failed paulo@0: lt_cv_dlopen_self=no paulo@0: fi paulo@0: fi paulo@0: rm -fr conftest* paulo@0: paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 paulo@0: echo "${ECHO_T}$lt_cv_dlopen_self" >&6 paulo@0: paulo@0: if test "x$lt_cv_dlopen_self" = xyes; then paulo@0: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" paulo@0: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 paulo@0: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 paulo@0: if test "${lt_cv_dlopen_self_static+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test "$cross_compiling" = yes; then : paulo@0: lt_cv_dlopen_self_static=cross paulo@0: else paulo@0: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 paulo@0: lt_status=$lt_dlunknown paulo@0: cat > conftest.$ac_ext < paulo@0: #endif paulo@0: paulo@0: #include paulo@0: paulo@0: #ifdef RTLD_GLOBAL paulo@0: # define LT_DLGLOBAL RTLD_GLOBAL paulo@0: #else paulo@0: # ifdef DL_GLOBAL paulo@0: # define LT_DLGLOBAL DL_GLOBAL paulo@0: # else paulo@0: # define LT_DLGLOBAL 0 paulo@0: # endif paulo@0: #endif paulo@0: paulo@0: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we paulo@0: find out it does not work in some platform. */ paulo@0: #ifndef LT_DLLAZY_OR_NOW paulo@0: # ifdef RTLD_LAZY paulo@0: # define LT_DLLAZY_OR_NOW RTLD_LAZY paulo@0: # else paulo@0: # ifdef DL_LAZY paulo@0: # define LT_DLLAZY_OR_NOW DL_LAZY paulo@0: # else paulo@0: # ifdef RTLD_NOW paulo@0: # define LT_DLLAZY_OR_NOW RTLD_NOW paulo@0: # else paulo@0: # ifdef DL_NOW paulo@0: # define LT_DLLAZY_OR_NOW DL_NOW paulo@0: # else paulo@0: # define LT_DLLAZY_OR_NOW 0 paulo@0: # endif paulo@0: # endif paulo@0: # endif paulo@0: # endif paulo@0: #endif paulo@0: paulo@0: #ifdef __cplusplus paulo@0: extern "C" void exit (int); paulo@0: #endif paulo@0: paulo@0: void fnord() { int i=42;} paulo@0: int main () paulo@0: { paulo@0: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); paulo@0: int status = $lt_dlunknown; paulo@0: paulo@0: if (self) paulo@0: { paulo@0: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; paulo@0: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; paulo@0: /* dlclose (self); */ paulo@0: } paulo@0: else paulo@0: puts (dlerror ()); paulo@0: paulo@0: exit (status); paulo@0: } paulo@0: EOF paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then paulo@0: (./conftest; exit; ) >&5 2>/dev/null paulo@0: lt_status=$? paulo@0: case x$lt_status in paulo@0: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; paulo@0: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; paulo@0: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; paulo@0: esac paulo@0: else : paulo@0: # compilation failed paulo@0: lt_cv_dlopen_self_static=no paulo@0: fi paulo@0: fi paulo@0: rm -fr conftest* paulo@0: paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 paulo@0: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 paulo@0: fi paulo@0: paulo@0: CPPFLAGS="$save_CPPFLAGS" paulo@0: LDFLAGS="$save_LDFLAGS" paulo@0: LIBS="$save_LIBS" paulo@0: ;; paulo@0: esac paulo@0: paulo@0: case $lt_cv_dlopen_self in paulo@0: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; paulo@0: *) enable_dlopen_self=unknown ;; paulo@0: esac paulo@0: paulo@0: case $lt_cv_dlopen_self_static in paulo@0: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; paulo@0: *) enable_dlopen_self_static=unknown ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: paulo@0: # Report which library types will actually be built paulo@0: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 paulo@0: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 paulo@0: echo "$as_me:$LINENO: result: $can_build_shared" >&5 paulo@0: echo "${ECHO_T}$can_build_shared" >&6 paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 paulo@0: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 paulo@0: test "$can_build_shared" = "no" && enable_shared=no paulo@0: paulo@0: # On AIX, shared libraries and static libraries use the same namespace, and paulo@0: # are all built from PIC. paulo@0: case $host_os in paulo@0: aix3*) paulo@0: test "$enable_shared" = yes && enable_static=no paulo@0: if test -n "$RANLIB"; then paulo@0: archive_cmds="$archive_cmds~\$RANLIB \$lib" paulo@0: postinstall_cmds='$RANLIB $lib' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: aix4* | aix5*) paulo@0: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then paulo@0: test "$enable_shared" = yes && enable_static=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: echo "$as_me:$LINENO: result: $enable_shared" >&5 paulo@0: echo "${ECHO_T}$enable_shared" >&6 paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 paulo@0: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 paulo@0: # Make sure either enable_shared or enable_static is yes. paulo@0: test "$enable_shared" = yes || enable_static=yes paulo@0: echo "$as_me:$LINENO: result: $enable_static" >&5 paulo@0: echo "${ECHO_T}$enable_static" >&6 paulo@0: paulo@0: # The else clause should only fire when bootstrapping the paulo@0: # libtool distribution, otherwise you forgot to ship ltmain.sh paulo@0: # with your package, and you will get complaints that there are paulo@0: # no rules to generate ltmain.sh. paulo@0: if test -f "$ltmain"; then paulo@0: # See if we are running on zsh, and set the options which allow our commands through paulo@0: # without removal of \ escapes. paulo@0: if test -n "${ZSH_VERSION+set}" ; then paulo@0: setopt NO_GLOB_SUBST paulo@0: fi paulo@0: # Now quote all the things that may contain metacharacters while being paulo@0: # careful not to overquote the AC_SUBSTed values. We take copies of the paulo@0: # variables and quote the copies for generation of the libtool script. paulo@0: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ paulo@0: SED SHELL STRIP \ paulo@0: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ paulo@0: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ paulo@0: deplibs_check_method reload_flag reload_cmds need_locks \ paulo@0: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ paulo@0: lt_cv_sys_global_symbol_to_c_name_address \ paulo@0: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ paulo@0: old_postinstall_cmds old_postuninstall_cmds \ paulo@0: compiler \ paulo@0: CC \ paulo@0: LD \ paulo@0: lt_prog_compiler_wl \ paulo@0: lt_prog_compiler_pic \ paulo@0: lt_prog_compiler_static \ paulo@0: lt_prog_compiler_no_builtin_flag \ paulo@0: export_dynamic_flag_spec \ paulo@0: thread_safe_flag_spec \ paulo@0: whole_archive_flag_spec \ paulo@0: enable_shared_with_static_runtimes \ paulo@0: old_archive_cmds \ paulo@0: old_archive_from_new_cmds \ paulo@0: predep_objects \ paulo@0: postdep_objects \ paulo@0: predeps \ paulo@0: postdeps \ paulo@0: compiler_lib_search_path \ paulo@0: archive_cmds \ paulo@0: archive_expsym_cmds \ paulo@0: postinstall_cmds \ paulo@0: postuninstall_cmds \ paulo@0: old_archive_from_expsyms_cmds \ paulo@0: allow_undefined_flag \ paulo@0: no_undefined_flag \ paulo@0: export_symbols_cmds \ paulo@0: hardcode_libdir_flag_spec \ paulo@0: hardcode_libdir_flag_spec_ld \ paulo@0: hardcode_libdir_separator \ paulo@0: hardcode_automatic \ paulo@0: module_cmds \ paulo@0: module_expsym_cmds \ paulo@0: lt_cv_prog_compiler_c_o \ paulo@0: exclude_expsyms \ paulo@0: include_expsyms; do paulo@0: paulo@0: case $var in paulo@0: old_archive_cmds | \ paulo@0: old_archive_from_new_cmds | \ paulo@0: archive_cmds | \ paulo@0: archive_expsym_cmds | \ paulo@0: module_cmds | \ paulo@0: module_expsym_cmds | \ paulo@0: old_archive_from_expsyms_cmds | \ paulo@0: export_symbols_cmds | \ paulo@0: extract_expsyms_cmds | reload_cmds | finish_cmds | \ paulo@0: postinstall_cmds | postuninstall_cmds | \ paulo@0: old_postinstall_cmds | old_postuninstall_cmds | \ paulo@0: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) paulo@0: # Double-quote double-evaled strings. paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" paulo@0: ;; paulo@0: *) paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: paulo@0: case $lt_echo in paulo@0: *'\$0 --fallback-echo"') paulo@0: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` paulo@0: ;; paulo@0: esac paulo@0: paulo@0: cfgfile="${ofile}T" paulo@0: trap "$rm \"$cfgfile\"; exit 1" 1 2 15 paulo@0: $rm -f "$cfgfile" paulo@0: { echo "$as_me:$LINENO: creating $ofile" >&5 paulo@0: echo "$as_me: creating $ofile" >&6;} paulo@0: paulo@0: cat <<__EOF__ >> "$cfgfile" paulo@0: #! $SHELL paulo@0: paulo@0: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. paulo@0: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) paulo@0: # NOTE: Changes made to this file will be lost: look at ltmain.sh. paulo@0: # paulo@0: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 paulo@0: # Free Software Foundation, Inc. paulo@0: # paulo@0: # This file is part of GNU Libtool: paulo@0: # Originally by Gordon Matzigkeit , 1996 paulo@0: # paulo@0: # This program is free software; you can redistribute it and/or modify paulo@0: # it under the terms of the GNU General Public License as published by paulo@0: # the Free Software Foundation; either version 2 of the License, or paulo@0: # (at your option) any later version. paulo@0: # paulo@0: # This program is distributed in the hope that it will be useful, but paulo@0: # WITHOUT ANY WARRANTY; without even the implied warranty of paulo@0: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU paulo@0: # General Public License for more details. paulo@0: # paulo@0: # You should have received a copy of the GNU General Public License paulo@0: # along with this program; if not, write to the Free Software paulo@0: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. paulo@0: # paulo@0: # As a special exception to the GNU General Public License, if you paulo@0: # distribute this file as part of a program that contains a paulo@0: # configuration script generated by Autoconf, you may include it under paulo@0: # the same distribution terms that you use for the rest of that program. paulo@0: paulo@0: # A sed program that does not truncate output. paulo@0: SED=$lt_SED paulo@0: paulo@0: # Sed that helps us avoid accidentally triggering echo(1) options like -n. paulo@0: Xsed="$SED -e 1s/^X//" paulo@0: paulo@0: # The HP-UX ksh and POSIX shell print the target directory to stdout paulo@0: # if CDPATH is set. paulo@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH paulo@0: paulo@0: # The names of the tagged configurations supported by this script. paulo@0: available_tags= paulo@0: paulo@0: # ### BEGIN LIBTOOL CONFIG paulo@0: paulo@0: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: paulo@0: paulo@0: # Shell to use when invoking shell scripts. paulo@0: SHELL=$lt_SHELL paulo@0: paulo@0: # Whether or not to build shared libraries. paulo@0: build_libtool_libs=$enable_shared paulo@0: paulo@0: # Whether or not to build static libraries. paulo@0: build_old_libs=$enable_static paulo@0: paulo@0: # Whether or not to add -lc for building shared libraries. paulo@0: build_libtool_need_lc=$archive_cmds_need_lc paulo@0: paulo@0: # Whether or not to disallow shared libs when runtime libs are static paulo@0: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes paulo@0: paulo@0: # Whether or not to optimize for fast installation. paulo@0: fast_install=$enable_fast_install paulo@0: paulo@0: # The host system. paulo@0: host_alias=$host_alias paulo@0: host=$host paulo@0: host_os=$host_os paulo@0: paulo@0: # The build system. paulo@0: build_alias=$build_alias paulo@0: build=$build paulo@0: build_os=$build_os paulo@0: paulo@0: # An echo program that does not interpret backslashes. paulo@0: echo=$lt_echo paulo@0: paulo@0: # The archiver. paulo@0: AR=$lt_AR paulo@0: AR_FLAGS=$lt_AR_FLAGS paulo@0: paulo@0: # A C compiler. paulo@0: LTCC=$lt_LTCC paulo@0: paulo@0: # LTCC compiler flags. paulo@0: LTCFLAGS=$lt_LTCFLAGS paulo@0: paulo@0: # A language-specific compiler. paulo@0: CC=$lt_compiler paulo@0: paulo@0: # Is the compiler the GNU C compiler? paulo@0: with_gcc=$GCC paulo@0: paulo@0: # An ERE matcher. paulo@0: EGREP=$lt_EGREP paulo@0: paulo@0: # The linker used to build libraries. paulo@0: LD=$lt_LD paulo@0: paulo@0: # Whether we need hard or soft links. paulo@0: LN_S=$lt_LN_S paulo@0: paulo@0: # A BSD-compatible nm program. paulo@0: NM=$lt_NM paulo@0: paulo@0: # A symbol stripping program paulo@0: STRIP=$lt_STRIP paulo@0: paulo@0: # Used to examine libraries when file_magic_cmd begins "file" paulo@0: MAGIC_CMD=$MAGIC_CMD paulo@0: paulo@0: # Used on cygwin: DLL creation program. paulo@0: DLLTOOL="$DLLTOOL" paulo@0: paulo@0: # Used on cygwin: object dumper. paulo@0: OBJDUMP="$OBJDUMP" paulo@0: paulo@0: # Used on cygwin: assembler. paulo@0: AS="$AS" paulo@0: paulo@0: # The name of the directory that contains temporary libtool files. paulo@0: objdir=$objdir paulo@0: paulo@0: # How to create reloadable object files. paulo@0: reload_flag=$lt_reload_flag paulo@0: reload_cmds=$lt_reload_cmds paulo@0: paulo@0: # How to pass a linker flag through the compiler. paulo@0: wl=$lt_lt_prog_compiler_wl paulo@0: paulo@0: # Object file suffix (normally "o"). paulo@0: objext="$ac_objext" paulo@0: paulo@0: # Old archive suffix (normally "a"). paulo@0: libext="$libext" paulo@0: paulo@0: # Shared library suffix (normally ".so"). paulo@0: shrext_cmds='$shrext_cmds' paulo@0: paulo@0: # Executable file suffix (normally ""). paulo@0: exeext="$exeext" paulo@0: paulo@0: # Additional compiler flags for building library objects. paulo@0: pic_flag=$lt_lt_prog_compiler_pic paulo@0: pic_mode=$pic_mode paulo@0: paulo@0: # What is the maximum length of a command? paulo@0: max_cmd_len=$lt_cv_sys_max_cmd_len paulo@0: paulo@0: # Does compiler simultaneously support -c and -o options? paulo@0: compiler_c_o=$lt_lt_cv_prog_compiler_c_o paulo@0: paulo@0: # Must we lock files when doing compilation? paulo@0: need_locks=$lt_need_locks paulo@0: paulo@0: # Do we need the lib prefix for modules? paulo@0: need_lib_prefix=$need_lib_prefix paulo@0: paulo@0: # Do we need a version for libraries? paulo@0: need_version=$need_version paulo@0: paulo@0: # Whether dlopen is supported. paulo@0: dlopen_support=$enable_dlopen paulo@0: paulo@0: # Whether dlopen of programs is supported. paulo@0: dlopen_self=$enable_dlopen_self paulo@0: paulo@0: # Whether dlopen of statically linked programs is supported. paulo@0: dlopen_self_static=$enable_dlopen_self_static paulo@0: paulo@0: # Compiler flag to prevent dynamic linking. paulo@0: link_static_flag=$lt_lt_prog_compiler_static paulo@0: paulo@0: # Compiler flag to turn off builtin functions. paulo@0: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag paulo@0: paulo@0: # Compiler flag to allow reflexive dlopens. paulo@0: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec paulo@0: paulo@0: # Compiler flag to generate shared objects directly from archives. paulo@0: whole_archive_flag_spec=$lt_whole_archive_flag_spec paulo@0: paulo@0: # Compiler flag to generate thread-safe objects. paulo@0: thread_safe_flag_spec=$lt_thread_safe_flag_spec paulo@0: paulo@0: # Library versioning type. paulo@0: version_type=$version_type paulo@0: paulo@0: # Format of library name prefix. paulo@0: libname_spec=$lt_libname_spec paulo@0: paulo@0: # List of archive names. First name is the real one, the rest are links. paulo@0: # The last name is the one that the linker finds with -lNAME. paulo@0: library_names_spec=$lt_library_names_spec paulo@0: paulo@0: # The coded name of the library, if different from the real name. paulo@0: soname_spec=$lt_soname_spec paulo@0: paulo@0: # Commands used to build and install an old-style archive. paulo@0: RANLIB=$lt_RANLIB paulo@0: old_archive_cmds=$lt_old_archive_cmds paulo@0: old_postinstall_cmds=$lt_old_postinstall_cmds paulo@0: old_postuninstall_cmds=$lt_old_postuninstall_cmds paulo@0: paulo@0: # Create an old-style archive from a shared archive. paulo@0: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds paulo@0: paulo@0: # Create a temporary old-style archive to link instead of a shared archive. paulo@0: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds paulo@0: paulo@0: # Commands used to build and install a shared archive. paulo@0: archive_cmds=$lt_archive_cmds paulo@0: archive_expsym_cmds=$lt_archive_expsym_cmds paulo@0: postinstall_cmds=$lt_postinstall_cmds paulo@0: postuninstall_cmds=$lt_postuninstall_cmds paulo@0: paulo@0: # Commands used to build a loadable module (assumed same as above if empty) paulo@0: module_cmds=$lt_module_cmds paulo@0: module_expsym_cmds=$lt_module_expsym_cmds paulo@0: paulo@0: # Commands to strip libraries. paulo@0: old_striplib=$lt_old_striplib paulo@0: striplib=$lt_striplib paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predep_objects=$lt_predep_objects paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdep_objects=$lt_postdep_objects paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predeps=$lt_predeps paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdeps=$lt_postdeps paulo@0: paulo@0: # The library search path used internally by the compiler when linking paulo@0: # a shared library. paulo@0: compiler_lib_search_path=$lt_compiler_lib_search_path paulo@0: paulo@0: # Method to check whether dependent libraries are shared objects. paulo@0: deplibs_check_method=$lt_deplibs_check_method paulo@0: paulo@0: # Command to use when deplibs_check_method == file_magic. paulo@0: file_magic_cmd=$lt_file_magic_cmd paulo@0: paulo@0: # Flag that allows shared libraries with undefined symbols to be built. paulo@0: allow_undefined_flag=$lt_allow_undefined_flag paulo@0: paulo@0: # Flag that forces no undefined symbols. paulo@0: no_undefined_flag=$lt_no_undefined_flag paulo@0: paulo@0: # Commands used to finish a libtool library installation in a directory. paulo@0: finish_cmds=$lt_finish_cmds paulo@0: paulo@0: # Same as above, but a single script fragment to be evaled but not shown. paulo@0: finish_eval=$lt_finish_eval paulo@0: paulo@0: # Take the output of nm and produce a listing of raw symbols and C names. paulo@0: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe paulo@0: paulo@0: # Transform the output of nm in a proper C declaration paulo@0: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl paulo@0: paulo@0: # Transform the output of nm in a C name address pair paulo@0: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address paulo@0: paulo@0: # This is the shared library runtime path variable. paulo@0: runpath_var=$runpath_var paulo@0: paulo@0: # This is the shared library path variable. paulo@0: shlibpath_var=$shlibpath_var paulo@0: paulo@0: # Is shlibpath searched before the hard-coded library search path? paulo@0: shlibpath_overrides_runpath=$shlibpath_overrides_runpath paulo@0: paulo@0: # How to hardcode a shared library path into an executable. paulo@0: hardcode_action=$hardcode_action paulo@0: paulo@0: # Whether we should hardcode library paths into libraries. paulo@0: hardcode_into_libs=$hardcode_into_libs paulo@0: paulo@0: # Flag to hardcode \$libdir into a binary during linking. paulo@0: # This must work even if \$libdir does not exist. paulo@0: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec paulo@0: paulo@0: # If ld is used when linking, flag to hardcode \$libdir into paulo@0: # a binary during linking. This must work even if \$libdir does paulo@0: # not exist. paulo@0: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld paulo@0: paulo@0: # Whether we need a single -rpath flag with a separated argument. paulo@0: hardcode_libdir_separator=$lt_hardcode_libdir_separator paulo@0: paulo@0: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_direct=$hardcode_direct paulo@0: paulo@0: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_minus_L=$hardcode_minus_L paulo@0: paulo@0: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into paulo@0: # the resulting binary. paulo@0: hardcode_shlibpath_var=$hardcode_shlibpath_var paulo@0: paulo@0: # Set to yes if building a shared library automatically hardcodes DIR into the library paulo@0: # and all subsequent libraries and executables linked against it. paulo@0: hardcode_automatic=$hardcode_automatic paulo@0: paulo@0: # Variables whose values should be saved in libtool wrapper scripts and paulo@0: # restored at relink time. paulo@0: variables_saved_for_relink="$variables_saved_for_relink" paulo@0: paulo@0: # Whether libtool must link a program against all its dependency libraries. paulo@0: link_all_deplibs=$link_all_deplibs paulo@0: paulo@0: # Compile-time system search path for libraries paulo@0: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec paulo@0: paulo@0: # Run-time system search path for libraries paulo@0: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec paulo@0: paulo@0: # Fix the shell variable \$srcfile for the compiler. paulo@0: fix_srcfile_path="$fix_srcfile_path" paulo@0: paulo@0: # Set to yes if exported symbols are required. paulo@0: always_export_symbols=$always_export_symbols paulo@0: paulo@0: # The commands to list exported symbols. paulo@0: export_symbols_cmds=$lt_export_symbols_cmds paulo@0: paulo@0: # The commands to extract the exported symbol list from a shared archive. paulo@0: extract_expsyms_cmds=$lt_extract_expsyms_cmds paulo@0: paulo@0: # Symbols that should not be listed in the preloaded symbols. paulo@0: exclude_expsyms=$lt_exclude_expsyms paulo@0: paulo@0: # Symbols that must always be exported. paulo@0: include_expsyms=$lt_include_expsyms paulo@0: paulo@0: # ### END LIBTOOL CONFIG paulo@0: paulo@0: __EOF__ paulo@0: paulo@0: paulo@0: case $host_os in paulo@0: aix3*) paulo@0: cat <<\EOF >> "$cfgfile" paulo@0: paulo@0: # AIX sometimes has problems with the GCC collect2 program. For some paulo@0: # reason, if we set the COLLECT_NAMES environment variable, the problems paulo@0: # vanish in a puff of smoke. paulo@0: if test "X${COLLECT_NAMES+set}" != Xset; then paulo@0: COLLECT_NAMES= paulo@0: export COLLECT_NAMES paulo@0: fi paulo@0: EOF paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # We use sed instead of cat because bash on DJGPP gets confused if paulo@0: # if finds mixed CR/LF and LF-only lines. Since sed operates in paulo@0: # text mode, it properly converts lines to CR/LF. This bash problem paulo@0: # is reportedly fixed, but why not run on old versions too? paulo@0: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) paulo@0: paulo@0: mv -f "$cfgfile" "$ofile" || \ paulo@0: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") paulo@0: chmod +x "$ofile" paulo@0: paulo@0: else paulo@0: # If there is no Makefile yet, we rely on a make rule to execute paulo@0: # `config.status --recheck' to rerun these tests and create the paulo@0: # libtool script then. paulo@0: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` paulo@0: if test -f "$ltmain_in"; then paulo@0: test -f Makefile && make "$ltmain" paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: CC="$lt_save_CC" paulo@0: paulo@0: paulo@0: # Check whether --with-tags or --without-tags was given. paulo@0: if test "${with_tags+set}" = set; then paulo@0: withval="$with_tags" paulo@0: tagnames="$withval" paulo@0: fi; paulo@0: paulo@0: if test -f "$ltmain" && test -n "$tagnames"; then paulo@0: if test ! -f "${ofile}"; then paulo@0: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 paulo@0: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} paulo@0: fi paulo@0: paulo@0: if test -z "$LTCC"; then paulo@0: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" paulo@0: if test -z "$LTCC"; then paulo@0: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 paulo@0: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} paulo@0: else paulo@0: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 paulo@0: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} paulo@0: fi paulo@0: fi paulo@0: if test -z "$LTCFLAGS"; then paulo@0: eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" paulo@0: fi paulo@0: paulo@0: # Extract list of available tagged configurations in $ofile. paulo@0: # Note that this assumes the entire list is on one line. paulo@0: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` paulo@0: paulo@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," paulo@0: for tagname in $tagnames; do paulo@0: IFS="$lt_save_ifs" paulo@0: # Check whether tagname contains only valid characters paulo@0: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in paulo@0: "") ;; paulo@0: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 paulo@0: echo "$as_me: error: invalid tag name: $tagname" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: ;; paulo@0: esac paulo@0: paulo@0: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null paulo@0: then paulo@0: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 paulo@0: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: # Update the list of available tags. paulo@0: if test -n "$tagname"; then paulo@0: echo appending configuration tag \"$tagname\" to $ofile paulo@0: paulo@0: case $tagname in paulo@0: CXX) paulo@0: if test -n "$CXX" && ( test "X$CXX" != "Xno" && paulo@0: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || paulo@0: (test "X$CXX" != "Xg++"))) ; then paulo@0: ac_ext=cc paulo@0: ac_cpp='$CXXCPP $CPPFLAGS' paulo@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: archive_cmds_need_lc_CXX=no paulo@0: allow_undefined_flag_CXX= paulo@0: always_export_symbols_CXX=no paulo@0: archive_expsym_cmds_CXX= paulo@0: export_dynamic_flag_spec_CXX= paulo@0: hardcode_direct_CXX=no paulo@0: hardcode_libdir_flag_spec_CXX= paulo@0: hardcode_libdir_flag_spec_ld_CXX= paulo@0: hardcode_libdir_separator_CXX= paulo@0: hardcode_minus_L_CXX=no paulo@0: hardcode_shlibpath_var_CXX=unsupported paulo@0: hardcode_automatic_CXX=no paulo@0: module_cmds_CXX= paulo@0: module_expsym_cmds_CXX= paulo@0: link_all_deplibs_CXX=unknown paulo@0: old_archive_cmds_CXX=$old_archive_cmds paulo@0: no_undefined_flag_CXX= paulo@0: whole_archive_flag_spec_CXX= paulo@0: enable_shared_with_static_runtimes_CXX=no paulo@0: paulo@0: # Dependencies to place before and after the object being linked: paulo@0: predep_objects_CXX= paulo@0: postdep_objects_CXX= paulo@0: predeps_CXX= paulo@0: postdeps_CXX= paulo@0: compiler_lib_search_path_CXX= paulo@0: paulo@0: # Source file extension for C++ test sources. paulo@0: ac_ext=cpp paulo@0: paulo@0: # Object file extension for compiled C++ test sources. paulo@0: objext=o paulo@0: objext_CXX=$objext paulo@0: paulo@0: # Code to be used in simple compile tests paulo@0: lt_simple_compile_test_code="int some_variable = 0;\n" paulo@0: paulo@0: # Code to be used in simple link tests paulo@0: lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' paulo@0: paulo@0: # ltmain only uses $CC for tagged configurations so make sure $CC is set. paulo@0: paulo@0: # If no C compiler was specified, use CC. paulo@0: LTCC=${LTCC-"$CC"} paulo@0: paulo@0: # If no C compiler flags were specified, use CFLAGS. paulo@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: compiler=$CC paulo@0: paulo@0: paulo@0: # save warnings/boilerplate of simple test code paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" >conftest.$ac_ext paulo@0: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_compiler_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_link_test_code" >conftest.$ac_ext paulo@0: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_linker_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: lt_save_CC=$CC paulo@0: lt_save_LD=$LD paulo@0: lt_save_GCC=$GCC paulo@0: GCC=$GXX paulo@0: lt_save_with_gnu_ld=$with_gnu_ld paulo@0: lt_save_path_LD=$lt_cv_path_LD paulo@0: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then paulo@0: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx paulo@0: else paulo@0: $as_unset lt_cv_prog_gnu_ld paulo@0: fi paulo@0: if test -n "${lt_cv_path_LDCXX+set}"; then paulo@0: lt_cv_path_LD=$lt_cv_path_LDCXX paulo@0: else paulo@0: $as_unset lt_cv_path_LD paulo@0: fi paulo@0: test -z "${LDCXX+set}" || LD=$LDCXX paulo@0: CC=${CXX-"c++"} paulo@0: compiler=$CC paulo@0: compiler_CXX=$CC paulo@0: for cc_temp in $compiler""; do paulo@0: case $cc_temp in paulo@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; paulo@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; paulo@0: \-*) ;; paulo@0: *) break;; paulo@0: esac paulo@0: done paulo@0: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` paulo@0: paulo@0: paulo@0: # We don't want -fno-exception wen compiling C++ code, so set the paulo@0: # no_builtin_flag separately paulo@0: if test "$GXX" = yes; then paulo@0: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' paulo@0: else paulo@0: lt_prog_compiler_no_builtin_flag_CXX= paulo@0: fi paulo@0: paulo@0: if test "$GXX" = yes; then paulo@0: # Set up default GNU C++ configuration paulo@0: paulo@0: paulo@0: # Check whether --with-gnu-ld or --without-gnu-ld was given. paulo@0: if test "${with_gnu_ld+set}" = set; then paulo@0: withval="$with_gnu_ld" paulo@0: test "$withval" = no || with_gnu_ld=yes paulo@0: else paulo@0: with_gnu_ld=no paulo@0: fi; paulo@0: ac_prog=ld paulo@0: if test "$GCC" = yes; then paulo@0: # Check if gcc -print-prog-name=ld gives a path. paulo@0: echo "$as_me:$LINENO: checking for ld used by $CC" >&5 paulo@0: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 paulo@0: case $host in paulo@0: *-*-mingw*) paulo@0: # gcc leaves a trailing carriage return which upsets mingw paulo@0: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; paulo@0: *) paulo@0: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; paulo@0: esac paulo@0: case $ac_prog in paulo@0: # Accept absolute paths. paulo@0: [\\/]* | ?:[\\/]*) paulo@0: re_direlt='/[^/][^/]*/\.\./' paulo@0: # Canonicalize the pathname of ld paulo@0: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` paulo@0: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do paulo@0: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` paulo@0: done paulo@0: test -z "$LD" && LD="$ac_prog" paulo@0: ;; paulo@0: "") paulo@0: # If it fails, then pretend we aren't using GCC. paulo@0: ac_prog=ld paulo@0: ;; paulo@0: *) paulo@0: # If it is relative, then search for the first ld in PATH. paulo@0: with_gnu_ld=unknown paulo@0: ;; paulo@0: esac paulo@0: elif test "$with_gnu_ld" = yes; then paulo@0: echo "$as_me:$LINENO: checking for GNU ld" >&5 paulo@0: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: checking for non-GNU ld" >&5 paulo@0: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 paulo@0: fi paulo@0: if test "${lt_cv_path_LD+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test -z "$LD"; then paulo@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR paulo@0: for ac_dir in $PATH; do paulo@0: IFS="$lt_save_ifs" paulo@0: test -z "$ac_dir" && ac_dir=. paulo@0: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then paulo@0: lt_cv_path_LD="$ac_dir/$ac_prog" paulo@0: # Check to see if the program is GNU ld. I'd rather use --version, paulo@0: # but apparently some variants of GNU ld only accept -v. paulo@0: # Break only if it was the GNU/non-GNU ld that we prefer. paulo@0: case `"$lt_cv_path_LD" -v 2>&1 &5 paulo@0: echo "${ECHO_T}$LD" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 paulo@0: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 paulo@0: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 paulo@0: if test "${lt_cv_prog_gnu_ld+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: # I'd rather use --version here, but apparently some GNU lds only accept -v. paulo@0: case `$LD -v 2>&1 &5 paulo@0: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 paulo@0: with_gnu_ld=$lt_cv_prog_gnu_ld paulo@0: paulo@0: paulo@0: paulo@0: # Check if GNU C++ uses GNU ld as the underlying linker, since the paulo@0: # archiving commands below assume that GNU ld is being used. paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: 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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' paulo@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' paulo@0: paulo@0: # If archive_cmds runs LD, not CC, wlarc should be empty paulo@0: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to paulo@0: # investigate it a little bit more. (MM) paulo@0: wlarc='${wl}' paulo@0: paulo@0: # ancient GNU ld didn't support --whole-archive et. al. paulo@0: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ paulo@0: grep 'no-whole-archive' > /dev/null; then paulo@0: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' paulo@0: else paulo@0: whole_archive_flag_spec_CXX= paulo@0: fi paulo@0: else paulo@0: with_gnu_ld=no paulo@0: wlarc= paulo@0: paulo@0: # A generic and very simple default shared library creation paulo@0: # command for GNU C++ for the case where it uses the native paulo@0: # linker, instead of GNU ld. If possible, this setting should paulo@0: # overridden to take advantage of the native linker features on paulo@0: # the platform it is being used on. paulo@0: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' paulo@0: fi paulo@0: paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' paulo@0: paulo@0: else paulo@0: GXX=no paulo@0: with_gnu_ld=no paulo@0: wlarc= paulo@0: fi paulo@0: paulo@0: # PORTME: fill in a description of your system's C++ link characteristics paulo@0: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 paulo@0: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 paulo@0: ld_shlibs_CXX=yes paulo@0: case $host_os in paulo@0: aix3*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: aix4* | aix5*) paulo@0: if test "$host_cpu" = ia64; then paulo@0: # On IA64, the linker does run time linking by default, so we don't paulo@0: # have to do anything special. paulo@0: aix_use_runtimelinking=no paulo@0: exp_sym_flag='-Bexport' paulo@0: no_entry_flag="" paulo@0: else paulo@0: aix_use_runtimelinking=no paulo@0: paulo@0: # Test if we are trying to use run time linking or normal paulo@0: # AIX style linking. If -brtl is somewhere in LDFLAGS, we paulo@0: # need to do runtime linking. paulo@0: case $host_os in aix4.[23]|aix4.[23].*|aix5*) paulo@0: for ld_flag in $LDFLAGS; do paulo@0: case $ld_flag in paulo@0: *-brtl*) paulo@0: aix_use_runtimelinking=yes paulo@0: break paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: paulo@0: exp_sym_flag='-bexport' paulo@0: no_entry_flag='-bnoentry' paulo@0: fi paulo@0: paulo@0: # When large executables or shared objects are built, AIX ld can paulo@0: # have problems creating the table of contents. If linking a library paulo@0: # or program results in "error TOC overflow" add -mminimal-toc to paulo@0: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not paulo@0: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. paulo@0: paulo@0: archive_cmds_CXX='' paulo@0: hardcode_direct_CXX=yes paulo@0: hardcode_libdir_separator_CXX=':' paulo@0: link_all_deplibs_CXX=yes paulo@0: paulo@0: if test "$GXX" = yes; then paulo@0: case $host_os in aix4.[012]|aix4.[012].*) paulo@0: # We only want to do this on AIX 4.2 and lower, the check paulo@0: # below for broken collect2 doesn't work under 4.3+ paulo@0: collect2name=`${CC} -print-prog-name=collect2` paulo@0: if test -f "$collect2name" && \ paulo@0: strings "$collect2name" | grep resolve_lib_name >/dev/null paulo@0: then paulo@0: # We have reworked collect2 paulo@0: hardcode_direct_CXX=yes paulo@0: else paulo@0: # We have old collect2 paulo@0: hardcode_direct_CXX=unsupported paulo@0: # It fails to find uninstalled libraries when the uninstalled paulo@0: # path is not listed in the libpath. Setting hardcode_minus_L paulo@0: # to unsupported forces relinking paulo@0: hardcode_minus_L_CXX=yes paulo@0: hardcode_libdir_flag_spec_CXX='-L$libdir' paulo@0: hardcode_libdir_separator_CXX= paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: shared_flag='-shared' paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: shared_flag="$shared_flag "'${wl}-G' paulo@0: fi paulo@0: else paulo@0: # not using gcc paulo@0: if test "$host_cpu" = ia64; then paulo@0: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release paulo@0: # chokes on -Wl,-G. The following line is correct: paulo@0: shared_flag='-G' paulo@0: else paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: shared_flag='${wl}-G' paulo@0: else paulo@0: shared_flag='${wl}-bM:SRE' paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: paulo@0: # It seems that -bexpall does not export symbols beginning with paulo@0: # underscore (_), so it is better to generate a list of symbols to export. paulo@0: always_export_symbols_CXX=yes paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: # Warning - without using the other runtime loading flags (-brtl), paulo@0: # -berok will link without error, but may produce a broken library. paulo@0: allow_undefined_flag_CXX='-berok' paulo@0: # Determine the default libpath from the value encoded in an empty executable. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: paulo@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } paulo@0: }'` paulo@0: # Check for a 64-bit object if we didn't find anything. paulo@0: 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; } paulo@0: }'`; fi paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" paulo@0: paulo@0: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" paulo@0: else paulo@0: if test "$host_cpu" = ia64; then paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' paulo@0: allow_undefined_flag_CXX="-z nodefs" paulo@0: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" paulo@0: else paulo@0: # Determine the default libpath from the value encoded in an empty executable. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: paulo@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } paulo@0: }'` paulo@0: # Check for a 64-bit object if we didn't find anything. paulo@0: 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; } paulo@0: }'`; fi paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" paulo@0: # Warning - without using the other run time loading flags, paulo@0: # -berok will link without error, but may produce a broken library. paulo@0: no_undefined_flag_CXX=' ${wl}-bernotok' paulo@0: allow_undefined_flag_CXX=' ${wl}-berok' paulo@0: # Exported symbols can be pulled into shared objects from archives paulo@0: whole_archive_flag_spec_CXX='$convenience' paulo@0: archive_cmds_need_lc_CXX=yes paulo@0: # This is similar to how AIX traditionally builds its shared libraries. paulo@0: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' paulo@0: fi paulo@0: fi paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: allow_undefined_flag_CXX=unsupported paulo@0: # Joseph Beckenbach says some releases of gcc paulo@0: # support --undefined. This deserves some investigation. FIXME paulo@0: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: else paulo@0: ld_shlibs_CXX=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: chorus*) paulo@0: case $cc_basename in paulo@0: *) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, paulo@0: # as there is no search path for DLLs. paulo@0: hardcode_libdir_flag_spec_CXX='-L$libdir' paulo@0: allow_undefined_flag_CXX=unsupported paulo@0: always_export_symbols_CXX=no paulo@0: enable_shared_with_static_runtimes_CXX=yes paulo@0: paulo@0: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then paulo@0: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' paulo@0: # If the export-symbols file already is a .def file (1st line paulo@0: # is EXPORTS), use it as is; otherwise, prepend... paulo@0: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then paulo@0: cp $export_symbols $output_objdir/$soname.def; paulo@0: else paulo@0: echo EXPORTS > $output_objdir/$soname.def; paulo@0: cat $export_symbols >> $output_objdir/$soname.def; paulo@0: fi~ paulo@0: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' paulo@0: else paulo@0: ld_shlibs_CXX=no paulo@0: fi paulo@0: ;; paulo@0: darwin* | rhapsody*) paulo@0: case $host_os in paulo@0: rhapsody* | darwin1.[012]) paulo@0: allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' paulo@0: ;; paulo@0: *) # Darwin 1.3 on paulo@0: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then paulo@0: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' paulo@0: else paulo@0: case ${MACOSX_DEPLOYMENT_TARGET} in paulo@0: 10.[012]) paulo@0: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' paulo@0: ;; paulo@0: 10.*) paulo@0: allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: archive_cmds_need_lc_CXX=no paulo@0: hardcode_direct_CXX=no paulo@0: hardcode_automatic_CXX=yes paulo@0: hardcode_shlibpath_var_CXX=unsupported paulo@0: whole_archive_flag_spec_CXX='' paulo@0: link_all_deplibs_CXX=yes paulo@0: paulo@0: if test "$GXX" = yes ; then paulo@0: lt_int_apple_cc_single_mod=no paulo@0: output_verbose_link_cmd='echo' paulo@0: if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then paulo@0: lt_int_apple_cc_single_mod=yes paulo@0: fi paulo@0: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then paulo@0: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' paulo@0: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds paulo@0: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then paulo@0: 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}' paulo@0: else paulo@0: 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}' paulo@0: fi paulo@0: 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}' paulo@0: else paulo@0: case $cc_basename in paulo@0: xlc*) paulo@0: output_verbose_link_cmd='echo' paulo@0: 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' paulo@0: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' paulo@0: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds paulo@0: 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}' paulo@0: 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}' paulo@0: ;; paulo@0: *) paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: dgux*) paulo@0: case $cc_basename in paulo@0: ec++*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: ghcx*) paulo@0: # Green Hills C++ Compiler paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: *) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: freebsd[12]*) paulo@0: # C++ shared libraries reported to be fairly broken before switch to ELF paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: freebsd-elf*) paulo@0: archive_cmds_need_lc_CXX=no paulo@0: ;; paulo@0: freebsd* | kfreebsd*-gnu | dragonfly*) paulo@0: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF paulo@0: # conventions paulo@0: ld_shlibs_CXX=yes paulo@0: ;; paulo@0: gnu*) paulo@0: ;; paulo@0: hpux9*) paulo@0: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: export_dynamic_flag_spec_CXX='${wl}-E' paulo@0: hardcode_direct_CXX=yes paulo@0: hardcode_minus_L_CXX=yes # Not in the search PATH, paulo@0: # but as the default paulo@0: # location of the library. paulo@0: paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: aCC*) paulo@0: 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' paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: # paulo@0: # There doesn't appear to be a way to prevent this compiler from paulo@0: # explicitly linking system object files so we need to strip them paulo@0: # from the output so that they don't get included in the library paulo@0: # dependencies. paulo@0: 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' paulo@0: ;; paulo@0: *) paulo@0: if test "$GXX" = yes; then paulo@0: 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' paulo@0: else paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: hpux10*|hpux11*) paulo@0: if test $with_gnu_ld = no; then paulo@0: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: hardcode_libdir_flag_spec_ld_CXX='+b $libdir' paulo@0: ;; paulo@0: *) paulo@0: export_dynamic_flag_spec_CXX='${wl}-E' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: hardcode_direct_CXX=no paulo@0: hardcode_shlibpath_var_CXX=no paulo@0: ;; paulo@0: *) paulo@0: hardcode_direct_CXX=yes paulo@0: hardcode_minus_L_CXX=yes # Not in the search PATH, paulo@0: # but as the default paulo@0: # location of the library. paulo@0: ;; paulo@0: esac paulo@0: paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: aCC*) paulo@0: case $host_cpu in paulo@0: hppa*64*) paulo@0: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' paulo@0: ;; paulo@0: ia64*) paulo@0: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: # paulo@0: # There doesn't appear to be a way to prevent this compiler from paulo@0: # explicitly linking system object files so we need to strip them paulo@0: # from the output so that they don't get included in the library paulo@0: # dependencies. paulo@0: 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' paulo@0: ;; paulo@0: *) paulo@0: if test "$GXX" = yes; then paulo@0: if test $with_gnu_ld = no; then paulo@0: case $host_cpu in paulo@0: hppa*64*) paulo@0: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' paulo@0: ;; paulo@0: ia64*) paulo@0: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: 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' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: else paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: interix3*) paulo@0: hardcode_direct_CXX=no paulo@0: hardcode_shlibpath_var_CXX=no paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' paulo@0: export_dynamic_flag_spec_CXX='${wl}-E' paulo@0: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. paulo@0: # Instead, shared libraries are loaded at an image base (0x10000000 by paulo@0: # default) and relocated if they conflict, which is a slow very memory paulo@0: # consuming and fragmenting process. To avoid this, we pick a random, paulo@0: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link paulo@0: # time. Moving up from 0x10000000 also allows more sbrk(2) space. paulo@0: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' paulo@0: archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' paulo@0: ;; paulo@0: irix5* | irix6*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: # SGI C++ paulo@0: 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' paulo@0: paulo@0: # Archives containing C++ object files must be created using paulo@0: # "CC -ar", where "CC" is the IRIX C++ compiler. This is paulo@0: # necessary to make sure instantiated templates are included paulo@0: # in the archive. paulo@0: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' paulo@0: ;; paulo@0: *) paulo@0: if test "$GXX" = yes; then paulo@0: if test "$with_gnu_ld" = no; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: fi paulo@0: link_all_deplibs_CXX=yes paulo@0: ;; paulo@0: esac paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: ;; paulo@0: linux*) paulo@0: case $cc_basename in paulo@0: KCC*) paulo@0: # Kuck and Associates, Inc. (KAI) C++ Compiler paulo@0: paulo@0: # KCC will only create a shared library if the output file paulo@0: # ends with ".so" (or ".sl" for HP-UX), so rename the library paulo@0: # to its proper name (with version) after linking. paulo@0: 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' paulo@0: 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' paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: # paulo@0: # There doesn't appear to be a way to prevent this compiler from paulo@0: # explicitly linking system object files so we need to strip them paulo@0: # from the output so that they don't get included in the library paulo@0: # dependencies. paulo@0: 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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' paulo@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' paulo@0: paulo@0: # Archives containing C++ object files must be created using paulo@0: # "CC -Bstatic", where "CC" is the KAI C++ compiler. paulo@0: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' paulo@0: ;; paulo@0: icpc*) paulo@0: # Intel C++ paulo@0: with_gnu_ld=yes paulo@0: # version 8.0 and above of icpc choke on multiply defined symbols paulo@0: # if we add $predep_objects and $postdep_objects, however 7.1 and paulo@0: # earlier do not add the objects themselves. paulo@0: case `$CC -V 2>&1` in paulo@0: *"Version 7."*) paulo@0: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: 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' paulo@0: ;; paulo@0: *) # Version 8.0 or newer paulo@0: tmp_idyn= paulo@0: case $host_cpu in paulo@0: ia64*) tmp_idyn=' -i_dynamic';; paulo@0: esac paulo@0: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: 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' paulo@0: ;; paulo@0: esac paulo@0: archive_cmds_need_lc_CXX=no paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' paulo@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' paulo@0: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' paulo@0: ;; paulo@0: pgCC*) paulo@0: # Portland Group C++ compiler paulo@0: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' paulo@0: 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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' paulo@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' paulo@0: 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' paulo@0: ;; paulo@0: cxx*) paulo@0: # Compaq C++ paulo@0: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: 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' paulo@0: paulo@0: runpath_var=LD_RUN_PATH paulo@0: hardcode_libdir_flag_spec_CXX='-rpath $libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: # paulo@0: # There doesn't appear to be a way to prevent this compiler from paulo@0: # explicitly linking system object files so we need to strip them paulo@0: # from the output so that they don't get included in the library paulo@0: # dependencies. paulo@0: 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' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: lynxos*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: m88k*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: mvs*) paulo@0: case $cc_basename in paulo@0: cxx*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: *) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' paulo@0: wlarc= paulo@0: hardcode_libdir_flag_spec_CXX='-R$libdir' paulo@0: hardcode_direct_CXX=yes paulo@0: hardcode_shlibpath_var_CXX=no paulo@0: fi paulo@0: # Workaround some broken pre-1.5 toolchains paulo@0: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' paulo@0: ;; paulo@0: openbsd2*) paulo@0: # C++ shared libraries are fairly broken paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: openbsd*) paulo@0: hardcode_direct_CXX=yes paulo@0: hardcode_shlibpath_var_CXX=no paulo@0: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' paulo@0: export_dynamic_flag_spec_CXX='${wl}-E' paulo@0: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' paulo@0: fi paulo@0: output_verbose_link_cmd='echo' paulo@0: ;; paulo@0: osf3*) paulo@0: case $cc_basename in paulo@0: KCC*) paulo@0: # Kuck and Associates, Inc. (KAI) C++ Compiler paulo@0: paulo@0: # KCC will only create a shared library if the output file paulo@0: # ends with ".so" (or ".sl" for HP-UX), so rename the library paulo@0: # to its proper name (with version) after linking. paulo@0: 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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: paulo@0: # Archives containing C++ object files must be created using paulo@0: # "CC -Bstatic", where "CC" is the KAI C++ compiler. paulo@0: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' paulo@0: paulo@0: ;; paulo@0: RCC*) paulo@0: # Rational C++ 2.4.1 paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: cxx*) paulo@0: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: # paulo@0: # There doesn't appear to be a way to prevent this compiler from paulo@0: # explicitly linking system object files so we need to strip them paulo@0: # from the output so that they don't get included in the library paulo@0: # dependencies. paulo@0: 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' paulo@0: ;; paulo@0: *) paulo@0: if test "$GXX" = yes && test "$with_gnu_ld" = no; then paulo@0: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' paulo@0: paulo@0: else paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: osf4* | osf5*) paulo@0: case $cc_basename in paulo@0: KCC*) paulo@0: # Kuck and Associates, Inc. (KAI) C++ Compiler paulo@0: paulo@0: # KCC will only create a shared library if the output file paulo@0: # ends with ".so" (or ".sl" for HP-UX), so rename the library paulo@0: # to its proper name (with version) after linking. paulo@0: 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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: paulo@0: # Archives containing C++ object files must be created using paulo@0: # the KAI C++ compiler. paulo@0: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' paulo@0: ;; paulo@0: RCC*) paulo@0: # Rational C++ 2.4.1 paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: cxx*) paulo@0: allow_undefined_flag_CXX=' -expect_unresolved \*' paulo@0: 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' paulo@0: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ paulo@0: echo "-hidden">> $lib.exp~ paulo@0: $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~ paulo@0: $rm $lib.exp' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='-rpath $libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: # paulo@0: # There doesn't appear to be a way to prevent this compiler from paulo@0: # explicitly linking system object files so we need to strip them paulo@0: # from the output so that they don't get included in the library paulo@0: # dependencies. paulo@0: 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' paulo@0: ;; paulo@0: *) paulo@0: if test "$GXX" = yes && test "$with_gnu_ld" = no; then paulo@0: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_CXX=: paulo@0: paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' paulo@0: paulo@0: else paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: psos*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: sunos4*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: # Sun C++ 4.x paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: lcc*) paulo@0: # Lucid paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: *) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: solaris*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: # Sun C++ 4.2, 5.x and Centerline C++ paulo@0: archive_cmds_need_lc_CXX=yes paulo@0: no_undefined_flag_CXX=' -zdefs' paulo@0: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' paulo@0: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $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' paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='-R$libdir' paulo@0: hardcode_shlibpath_var_CXX=no paulo@0: case $host_os in paulo@0: solaris2.[0-5] | solaris2.[0-5].*) ;; paulo@0: *) paulo@0: # The C++ compiler is used as linker so we must use $wl paulo@0: # flag to pass the commands to the underlying system paulo@0: # linker. We must also pass each convience library through paulo@0: # to the system linker between allextract/defaultextract. paulo@0: # The C++ compiler will combine linker options so we paulo@0: # cannot just pass the convience library names through paulo@0: # without $wl. paulo@0: # Supported since Solaris 2.6 (maybe 2.5.1?) paulo@0: 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' paulo@0: ;; paulo@0: esac paulo@0: link_all_deplibs_CXX=yes paulo@0: paulo@0: output_verbose_link_cmd='echo' paulo@0: paulo@0: # Archives containing C++ object files must be created using paulo@0: # "CC -xar", where "CC" is the Sun C++ compiler. This is paulo@0: # necessary to make sure instantiated templates are included paulo@0: # in the archive. paulo@0: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' paulo@0: ;; paulo@0: gcx*) paulo@0: # Green Hills C++ Compiler paulo@0: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' paulo@0: paulo@0: # The C++ compiler must be used to create the archive. paulo@0: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' paulo@0: ;; paulo@0: *) paulo@0: # GNU C++ compiler with Solaris linker paulo@0: if test "$GXX" = yes && test "$with_gnu_ld" = no; then paulo@0: no_undefined_flag_CXX=' ${wl}-z ${wl}defs' paulo@0: if $CC --version | grep -v '^2\.7' > /dev/null; then paulo@0: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' paulo@0: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' paulo@0: paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" paulo@0: else paulo@0: # g++ 2.7 appears to require `-G' NOT `-shared' on this paulo@0: # platform. paulo@0: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' paulo@0: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' paulo@0: paulo@0: # Commands to make compiler produce verbose output that lists paulo@0: # what "hidden" libraries, object files and flags are used when paulo@0: # linking a shared library. paulo@0: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" paulo@0: fi paulo@0: paulo@0: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) paulo@0: no_undefined_flag_CXX='${wl}-z,text' paulo@0: archive_cmds_need_lc_CXX=no paulo@0: hardcode_shlibpath_var_CXX=no paulo@0: runpath_var='LD_RUN_PATH' paulo@0: paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: sysv5* | sco3.2v5* | sco5v6*) paulo@0: # Note: We can NOT use -z defs as we might desire, because we do not paulo@0: # link with -lc, and that would cause any symbols used from libc to paulo@0: # always be unresolved, which means just about no library would paulo@0: # ever link correctly. If we're not using GNU ld we use -z text paulo@0: # though, which does catch some bad symbols but isn't as heavy-handed paulo@0: # as -z defs. paulo@0: # For security reasons, it is highly recommended that you always paulo@0: # use absolute paths for naming shared libraries, and exclude the paulo@0: # DT_RUNPATH tag from executables and libraries. But doing so paulo@0: # requires that you compile everything twice, which is a pain. paulo@0: # So that behaviour is only enabled if SCOABSPATH is set to a paulo@0: # non-empty value in the environment. Most likely only useful for paulo@0: # creating official distributions of packages. paulo@0: # This is a hack until libtool officially supports absolute path paulo@0: # names for shared libraries. paulo@0: no_undefined_flag_CXX='${wl}-z,text' paulo@0: allow_undefined_flag_CXX='${wl}-z,nodefs' paulo@0: archive_cmds_need_lc_CXX=no paulo@0: hardcode_shlibpath_var_CXX=no paulo@0: hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' paulo@0: hardcode_libdir_separator_CXX=':' paulo@0: link_all_deplibs_CXX=yes paulo@0: export_dynamic_flag_spec_CXX='${wl}-Bexport' paulo@0: runpath_var='LD_RUN_PATH' paulo@0: paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: tandem*) paulo@0: case $cc_basename in paulo@0: NCC*) paulo@0: # NonStop-UX NCC 3.20 paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: *) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: vxworks*) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: *) paulo@0: # FIXME: insert proper C++ library support paulo@0: ld_shlibs_CXX=no paulo@0: ;; paulo@0: esac paulo@0: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 paulo@0: echo "${ECHO_T}$ld_shlibs_CXX" >&6 paulo@0: test "$ld_shlibs_CXX" = no && can_build_shared=no paulo@0: paulo@0: GCC_CXX="$GXX" paulo@0: LD_CXX="$LD" paulo@0: paulo@0: paulo@0: cat > conftest.$ac_ext <&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; then paulo@0: # Parse the compiler output and extract the necessary paulo@0: # objects, libraries and library flags. paulo@0: paulo@0: # Sentinel used to keep track of whether or not we are before paulo@0: # the conftest object file. paulo@0: pre_test_object_deps_done=no paulo@0: paulo@0: # The `*' in the case matches for architectures that use `case' in paulo@0: # $output_verbose_cmd can trigger glob expansion during the loop paulo@0: # eval without this substitution. paulo@0: output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` paulo@0: paulo@0: for p in `eval $output_verbose_link_cmd`; do paulo@0: case $p in paulo@0: paulo@0: -L* | -R* | -l*) paulo@0: # Some compilers place space between "-{L,R}" and the path. paulo@0: # Remove the space. paulo@0: if test $p = "-L" \ paulo@0: || test $p = "-R"; then paulo@0: prev=$p paulo@0: continue paulo@0: else paulo@0: prev= paulo@0: fi paulo@0: paulo@0: if test "$pre_test_object_deps_done" = no; then paulo@0: case $p in paulo@0: -L* | -R*) paulo@0: # Internal compiler library paths should come after those paulo@0: # provided the user. The postdeps already come after the paulo@0: # user supplied libs so there is no need to process them. paulo@0: if test -z "$compiler_lib_search_path_CXX"; then paulo@0: compiler_lib_search_path_CXX="${prev}${p}" paulo@0: else paulo@0: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" paulo@0: fi paulo@0: ;; paulo@0: # The "-l" case would never come before the object being paulo@0: # linked, so don't bother handling this case. paulo@0: esac paulo@0: else paulo@0: if test -z "$postdeps_CXX"; then paulo@0: postdeps_CXX="${prev}${p}" paulo@0: else paulo@0: postdeps_CXX="${postdeps_CXX} ${prev}${p}" paulo@0: fi paulo@0: fi paulo@0: ;; paulo@0: paulo@0: *.$objext) paulo@0: # This assumes that the test object file only shows up paulo@0: # once in the compiler output. paulo@0: if test "$p" = "conftest.$objext"; then paulo@0: pre_test_object_deps_done=yes paulo@0: continue paulo@0: fi paulo@0: paulo@0: if test "$pre_test_object_deps_done" = no; then paulo@0: if test -z "$predep_objects_CXX"; then paulo@0: predep_objects_CXX="$p" paulo@0: else paulo@0: predep_objects_CXX="$predep_objects_CXX $p" paulo@0: fi paulo@0: else paulo@0: if test -z "$postdep_objects_CXX"; then paulo@0: postdep_objects_CXX="$p" paulo@0: else paulo@0: postdep_objects_CXX="$postdep_objects_CXX $p" paulo@0: fi paulo@0: fi paulo@0: ;; paulo@0: paulo@0: *) ;; # Ignore the rest. paulo@0: paulo@0: esac paulo@0: done paulo@0: paulo@0: # Clean up. paulo@0: rm -f a.out a.exe paulo@0: else paulo@0: echo "libtool.m4: error: problem compiling CXX test program" paulo@0: fi paulo@0: paulo@0: $rm -f confest.$objext paulo@0: paulo@0: # PORTME: override above test on systems where it is broken paulo@0: case $host_os in paulo@0: interix3*) paulo@0: # Interix 3.5 installs completely hosed .la files for C++, so rather than paulo@0: # hack all around it, let's just trust "g++" to DTRT. paulo@0: predep_objects_CXX= paulo@0: postdep_objects_CXX= paulo@0: postdeps_CXX= paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: # Adding this requires a known-good setup of shared libraries for paulo@0: # Sun compiler versions before 5.6, else PIC objects from an old paulo@0: # archive will be linked into the output, leading to subtle bugs. paulo@0: postdeps_CXX='-lCstd -lCrun' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: esac paulo@0: paulo@0: paulo@0: case " $postdeps_CXX " in paulo@0: *" -lc "*) archive_cmds_need_lc_CXX=no ;; paulo@0: esac paulo@0: paulo@0: lt_prog_compiler_wl_CXX= paulo@0: lt_prog_compiler_pic_CXX= paulo@0: lt_prog_compiler_static_CXX= paulo@0: paulo@0: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 paulo@0: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 paulo@0: paulo@0: # C++ specific cases for pic, static, wl, etc. paulo@0: if test "$GXX" = yes; then paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: lt_prog_compiler_static_CXX='-static' paulo@0: paulo@0: case $host_os in paulo@0: aix*) paulo@0: # All AIX code is PIC. paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 now supports IA64 processor paulo@0: lt_prog_compiler_static_CXX='-Bstatic' paulo@0: fi paulo@0: ;; paulo@0: amigaos*) paulo@0: # FIXME: we need at least 68020 code to build shared libraries, but paulo@0: # adding the `-m68020' flag to GCC prevents building anything better, paulo@0: # like `-m68040'. paulo@0: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' paulo@0: ;; paulo@0: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) paulo@0: # PIC is the default for these OSes. paulo@0: ;; paulo@0: mingw* | os2* | pw32*) paulo@0: # This hack is so that the source file can tell whether it is being paulo@0: # built for inclusion in a dll (and should export symbols for example). paulo@0: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' paulo@0: ;; paulo@0: darwin* | rhapsody*) paulo@0: # PIC is the default on this platform paulo@0: # Common symbols not allowed in MH_DYLIB files paulo@0: lt_prog_compiler_pic_CXX='-fno-common' paulo@0: ;; paulo@0: *djgpp*) paulo@0: # DJGPP does not support shared libraries at all paulo@0: lt_prog_compiler_pic_CXX= paulo@0: ;; paulo@0: interix3*) paulo@0: # Interix 3.x gcc -fpic/-fPIC options generate broken code. paulo@0: # Instead, we relocate shared libraries at runtime. paulo@0: ;; paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec; then paulo@0: lt_prog_compiler_pic_CXX=-Kconform_pic paulo@0: fi paulo@0: ;; paulo@0: hpux*) paulo@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but paulo@0: # not for PA HP-UX. paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_CXX='-fPIC' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_CXX='-fPIC' paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: case $host_os in paulo@0: aix4* | aix5*) paulo@0: # All AIX code is PIC. paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 now supports IA64 processor paulo@0: lt_prog_compiler_static_CXX='-Bstatic' paulo@0: else paulo@0: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' paulo@0: fi paulo@0: ;; paulo@0: chorus*) paulo@0: case $cc_basename in paulo@0: cxch68*) paulo@0: # Green Hills C++ Compiler paulo@0: # _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" paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: darwin*) paulo@0: # PIC is the default on this platform paulo@0: # Common symbols not allowed in MH_DYLIB files paulo@0: case $cc_basename in paulo@0: xlc*) paulo@0: lt_prog_compiler_pic_CXX='-qnocommon' paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: dgux*) paulo@0: case $cc_basename in paulo@0: ec++*) paulo@0: lt_prog_compiler_pic_CXX='-KPIC' paulo@0: ;; paulo@0: ghcx*) paulo@0: # Green Hills C++ Compiler paulo@0: lt_prog_compiler_pic_CXX='-pic' paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: freebsd* | kfreebsd*-gnu | dragonfly*) paulo@0: # FreeBSD uses GNU C++ paulo@0: ;; paulo@0: hpux9* | hpux10* | hpux11*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' paulo@0: if test "$host_cpu" != ia64; then paulo@0: lt_prog_compiler_pic_CXX='+Z' paulo@0: fi paulo@0: ;; paulo@0: aCC*) paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: # +Z the default paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_CXX='+Z' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: interix*) paulo@0: # This is c89, which is MS Visual C++ (no shared libs) paulo@0: # Anyone wants to do a port? paulo@0: ;; paulo@0: irix5* | irix6* | nonstopux*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: lt_prog_compiler_static_CXX='-non_shared' paulo@0: # CC pic flag -KPIC is the default. paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: linux*) paulo@0: case $cc_basename in paulo@0: KCC*) paulo@0: # KAI C++ Compiler paulo@0: lt_prog_compiler_wl_CXX='--backend -Wl,' paulo@0: lt_prog_compiler_pic_CXX='-fPIC' paulo@0: ;; paulo@0: icpc* | ecpc*) paulo@0: # Intel C++ paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: lt_prog_compiler_pic_CXX='-KPIC' paulo@0: lt_prog_compiler_static_CXX='-static' paulo@0: ;; paulo@0: pgCC*) paulo@0: # Portland Group C++ compiler. paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: lt_prog_compiler_pic_CXX='-fpic' paulo@0: lt_prog_compiler_static_CXX='-Bstatic' paulo@0: ;; paulo@0: cxx*) paulo@0: # Compaq C++ paulo@0: # Make sure the PIC flag is empty. It appears that all Alpha paulo@0: # Linux and Compaq Tru64 Unix objects are PIC. paulo@0: lt_prog_compiler_pic_CXX= paulo@0: lt_prog_compiler_static_CXX='-non_shared' paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: lynxos*) paulo@0: ;; paulo@0: m88k*) paulo@0: ;; paulo@0: mvs*) paulo@0: case $cc_basename in paulo@0: cxx*) paulo@0: lt_prog_compiler_pic_CXX='-W c,exportall' paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: ;; paulo@0: osf3* | osf4* | osf5*) paulo@0: case $cc_basename in paulo@0: KCC*) paulo@0: lt_prog_compiler_wl_CXX='--backend -Wl,' paulo@0: ;; paulo@0: RCC*) paulo@0: # Rational C++ 2.4.1 paulo@0: lt_prog_compiler_pic_CXX='-pic' paulo@0: ;; paulo@0: cxx*) paulo@0: # Digital/Compaq C++ paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: # Make sure the PIC flag is empty. It appears that all Alpha paulo@0: # Linux and Compaq Tru64 Unix objects are PIC. paulo@0: lt_prog_compiler_pic_CXX= paulo@0: lt_prog_compiler_static_CXX='-non_shared' paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: psos*) paulo@0: ;; paulo@0: solaris*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: # Sun C++ 4.2, 5.x and Centerline C++ paulo@0: lt_prog_compiler_pic_CXX='-KPIC' paulo@0: lt_prog_compiler_static_CXX='-Bstatic' paulo@0: lt_prog_compiler_wl_CXX='-Qoption ld ' paulo@0: ;; paulo@0: gcx*) paulo@0: # Green Hills C++ Compiler paulo@0: lt_prog_compiler_pic_CXX='-PIC' paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: sunos4*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: # Sun C++ 4.x paulo@0: lt_prog_compiler_pic_CXX='-pic' paulo@0: lt_prog_compiler_static_CXX='-Bstatic' paulo@0: ;; paulo@0: lcc*) paulo@0: # Lucid paulo@0: lt_prog_compiler_pic_CXX='-pic' paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: tandem*) paulo@0: case $cc_basename in paulo@0: NCC*) paulo@0: # NonStop-UX NCC 3.20 paulo@0: lt_prog_compiler_pic_CXX='-KPIC' paulo@0: ;; paulo@0: *) paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) paulo@0: case $cc_basename in paulo@0: CC*) paulo@0: lt_prog_compiler_wl_CXX='-Wl,' paulo@0: lt_prog_compiler_pic_CXX='-KPIC' paulo@0: lt_prog_compiler_static_CXX='-Bstatic' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: vxworks*) paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_can_build_shared_CXX=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 paulo@0: paulo@0: # paulo@0: # Check to make sure the PIC flag actually works. paulo@0: # paulo@0: if test -n "$lt_prog_compiler_pic_CXX"; then paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 paulo@0: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 paulo@0: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_prog_compiler_pic_works_CXX=no paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: # The option is referenced via a variable to avoid confusing sed. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:11699: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>conftest.err) paulo@0: ac_status=$? paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:11703: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s "$ac_outfile"; then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings other than the usual output. paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_prog_compiler_pic_works_CXX=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 paulo@0: paulo@0: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then paulo@0: case $lt_prog_compiler_pic_CXX in paulo@0: "" | " "*) ;; paulo@0: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; paulo@0: esac paulo@0: else paulo@0: lt_prog_compiler_pic_CXX= paulo@0: lt_prog_compiler_can_build_shared_CXX=no paulo@0: fi paulo@0: paulo@0: fi paulo@0: case $host_os in paulo@0: # For platforms which do not support PIC, -DPIC is meaningless: paulo@0: *djgpp*) paulo@0: lt_prog_compiler_pic_CXX= paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # paulo@0: # Check to make sure the static flag actually works. paulo@0: # paulo@0: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" paulo@0: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 paulo@0: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 paulo@0: if test "${lt_prog_compiler_static_works_CXX+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_prog_compiler_static_works_CXX=no paulo@0: save_LDFLAGS="$LDFLAGS" paulo@0: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" paulo@0: printf "$lt_simple_link_test_code" > conftest.$ac_ext paulo@0: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then paulo@0: # The linker can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings paulo@0: if test -s conftest.err; then paulo@0: # Append any errors to the config.log. paulo@0: cat conftest.err 1>&5 paulo@0: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_prog_compiler_static_works_CXX=yes paulo@0: fi paulo@0: else paulo@0: lt_prog_compiler_static_works_CXX=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: LDFLAGS="$save_LDFLAGS" paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 paulo@0: paulo@0: if test x"$lt_prog_compiler_static_works_CXX" = xyes; then paulo@0: : paulo@0: else paulo@0: lt_prog_compiler_static_CXX= paulo@0: fi paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 paulo@0: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 paulo@0: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_cv_prog_compiler_c_o_CXX=no paulo@0: $rm -r conftest 2>/dev/null paulo@0: mkdir conftest paulo@0: cd conftest paulo@0: mkdir out paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: paulo@0: lt_compiler_flag="-o out/conftest2.$ac_objext" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:11803: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>out/conftest.err) paulo@0: ac_status=$? paulo@0: cat out/conftest.err >&5 paulo@0: echo "$as_me:11807: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext paulo@0: then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 paulo@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then paulo@0: lt_cv_prog_compiler_c_o_CXX=yes paulo@0: fi paulo@0: fi paulo@0: chmod u+w . 2>&5 paulo@0: $rm conftest* paulo@0: # SGI C++ compiler will create directory out/ii_files/ for paulo@0: # template instantiation paulo@0: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files paulo@0: $rm out/* && rmdir out paulo@0: cd .. paulo@0: rmdir conftest paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 paulo@0: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 paulo@0: paulo@0: paulo@0: hard_links="nottested" paulo@0: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then paulo@0: # do not overwrite the value of need_locks provided by the user paulo@0: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 paulo@0: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 paulo@0: hard_links=yes paulo@0: $rm conftest* paulo@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no paulo@0: touch conftest.a paulo@0: ln conftest.a conftest.b 2>&5 || hard_links=no paulo@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no paulo@0: echo "$as_me:$LINENO: result: $hard_links" >&5 paulo@0: echo "${ECHO_T}$hard_links" >&6 paulo@0: if test "$hard_links" = no; then paulo@0: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 paulo@0: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} paulo@0: need_locks=warn paulo@0: fi paulo@0: else paulo@0: need_locks=no paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 paulo@0: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 paulo@0: paulo@0: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' paulo@0: case $host_os in paulo@0: aix4* | aix5*) paulo@0: # If we're using GNU nm, then we don't want the "-C" option. paulo@0: # -C means demangle to AIX nm, but means don't demangle with GNU nm paulo@0: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: ;; paulo@0: pw32*) paulo@0: export_symbols_cmds_CXX="$ltdll_cmds" paulo@0: ;; paulo@0: cygwin* | mingw*) paulo@0: 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' paulo@0: ;; paulo@0: kfreebsd*-gnu) paulo@0: link_all_deplibs_CXX=no paulo@0: ;; paulo@0: linux*) paulo@0: link_all_deplibs_CXX=no paulo@0: ;; paulo@0: *) paulo@0: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' paulo@0: ;; paulo@0: esac paulo@0: paulo@0: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 paulo@0: echo "${ECHO_T}$ld_shlibs_CXX" >&6 paulo@0: test "$ld_shlibs_CXX" = no && can_build_shared=no paulo@0: paulo@0: # paulo@0: # Do we need to explicitly link libc? paulo@0: # paulo@0: case "x$archive_cmds_need_lc_CXX" in paulo@0: x|xyes) paulo@0: # Assume -lc should be added paulo@0: archive_cmds_need_lc_CXX=yes paulo@0: paulo@0: if test "$enable_shared" = yes && test "$GCC" = yes; then paulo@0: case $archive_cmds_CXX in paulo@0: *'~'*) paulo@0: # FIXME: we may have to deal with multi-command sequences. paulo@0: ;; paulo@0: '$CC '*) paulo@0: # Test whether the compiler implicitly links with -lc since on some paulo@0: # systems, -lgcc has to come before -lc. If gcc already passes -lc paulo@0: # to ld, don't add -lc before -lgcc. paulo@0: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 paulo@0: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 paulo@0: $rm conftest* paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } 2>conftest.err; then paulo@0: soname=conftest paulo@0: lib=conftest paulo@0: libobjs=conftest.$ac_objext paulo@0: deplibs= paulo@0: wl=$lt_prog_compiler_wl_CXX paulo@0: pic_flag=$lt_prog_compiler_pic_CXX paulo@0: compiler_flags=-v paulo@0: linker_flags=-v paulo@0: verstring= paulo@0: output_objdir=. paulo@0: libname=conftest paulo@0: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX paulo@0: allow_undefined_flag_CXX= paulo@0: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 paulo@0: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: then paulo@0: archive_cmds_need_lc_CXX=no paulo@0: else paulo@0: archive_cmds_need_lc_CXX=yes paulo@0: fi paulo@0: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag paulo@0: else paulo@0: cat conftest.err 1>&5 paulo@0: fi paulo@0: $rm conftest* paulo@0: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 paulo@0: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 paulo@0: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 paulo@0: library_names_spec= paulo@0: libname_spec='lib$name' paulo@0: soname_spec= paulo@0: shrext_cmds=".so" paulo@0: postinstall_cmds= paulo@0: postuninstall_cmds= paulo@0: finish_cmds= paulo@0: finish_eval= paulo@0: shlibpath_var= paulo@0: shlibpath_overrides_runpath=unknown paulo@0: version_type=none paulo@0: dynamic_linker="$host_os ld.so" paulo@0: sys_lib_dlsearch_path_spec="/lib /usr/lib" paulo@0: if test "$GCC" = yes; then paulo@0: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` paulo@0: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then paulo@0: # if the path contains ";" then we assume it to be the separator paulo@0: # otherwise default to the standard path separator (i.e. ":") - it is paulo@0: # assumed that no part of a normal pathname contains ";" but that should paulo@0: # okay in the real world where ";" in dirpaths is itself problematic. paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` paulo@0: else paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` paulo@0: fi paulo@0: else paulo@0: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" paulo@0: fi paulo@0: need_lib_prefix=unknown paulo@0: hardcode_into_libs=no paulo@0: paulo@0: # when you set need_version to no, make sure it does not cause -set_version paulo@0: # flags to be left without arguments paulo@0: need_version=unknown paulo@0: paulo@0: case $host_os in paulo@0: aix3*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' paulo@0: shlibpath_var=LIBPATH paulo@0: paulo@0: # AIX 3 has no versioning support, so we append a major version to the name. paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: ;; paulo@0: paulo@0: aix4* | aix5*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: hardcode_into_libs=yes paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 supports IA64 paulo@0: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: else paulo@0: # With GCC up to 2.95.x, collect2 would create an import file paulo@0: # for dependence libraries. The import file would start with paulo@0: # the line `#! .'. This would cause the generated library to paulo@0: # depend on `.', always an invalid library. This was fixed in paulo@0: # development snapshots of GCC prior to 3.0. paulo@0: case $host_os in paulo@0: aix4 | aix4.[01] | aix4.[01].*) paulo@0: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' paulo@0: echo ' yes ' paulo@0: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then paulo@0: : paulo@0: else paulo@0: can_build_shared=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct paulo@0: # soname into executable. Probably we can add versioning support to paulo@0: # collect2, so additional links can be useful in future. paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: # If using run time linking (on AIX 4.2 or later) use lib.so paulo@0: # instead of lib.a to let people know that these are not paulo@0: # typical AIX shared libraries. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: else paulo@0: # We preserve .a as extension for shared libraries through AIX4.2 paulo@0: # and later when we are not doing run time linking. paulo@0: library_names_spec='${libname}${release}.a $libname.a' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: fi paulo@0: shlibpath_var=LIBPATH paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: library_names_spec='$libname.ixlibrary $libname.a' paulo@0: # Create ${libname}_ixlibrary.a entries in /sys/libs. paulo@0: 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' paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: library_names_spec='${libname}${shared_ext}' paulo@0: dynamic_linker="$host_os ld.so" paulo@0: shlibpath_var=LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: bsdi[45]*) paulo@0: version_type=linux paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" paulo@0: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" paulo@0: # the default ld.so.conf also contains /usr/contrib/lib and paulo@0: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow paulo@0: # libtool to hard-code these into programs paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: version_type=windows paulo@0: shrext_cmds=".dll" paulo@0: need_version=no paulo@0: need_lib_prefix=no paulo@0: paulo@0: case $GCC,$host_os in paulo@0: yes,cygwin* | yes,mingw* | yes,pw32*) paulo@0: library_names_spec='$libname.dll.a' paulo@0: # DLL is installed to $(libdir)/../bin by postinstall_cmds paulo@0: postinstall_cmds='base_file=`basename \${file}`~ paulo@0: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ paulo@0: dldir=$destdir/`dirname \$dlpath`~ paulo@0: test -d \$dldir || mkdir -p \$dldir~ paulo@0: $install_prog $dir/$dlname \$dldir/$dlname~ paulo@0: chmod a+x \$dldir/$dlname' paulo@0: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ paulo@0: dlpath=$dir/\$dldll~ paulo@0: $rm \$dlpath' paulo@0: shlibpath_overrides_runpath=yes paulo@0: paulo@0: case $host_os in paulo@0: cygwin*) paulo@0: # Cygwin DLLs use 'cyg' prefix rather than 'lib' paulo@0: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" paulo@0: ;; paulo@0: mingw*) paulo@0: # MinGW DLLs use traditional 'lib' prefix paulo@0: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` paulo@0: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then paulo@0: # It is most probably a Windows format PATH printed by paulo@0: # mingw gcc, but we are running on Cygwin. Gcc prints its search paulo@0: # path with ; separators, and with drive letters. We can handle the paulo@0: # drive letters (cygwin fileutils understands them), so leave them, paulo@0: # especially as we might pass files found there to a mingw objdump, paulo@0: # which wouldn't understand a cygwinified path. Ahh. paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` paulo@0: else paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` paulo@0: fi paulo@0: ;; paulo@0: pw32*) paulo@0: # pw32 DLLs use 'pw' prefix rather than 'lib' paulo@0: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: *) paulo@0: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' paulo@0: ;; paulo@0: esac paulo@0: dynamic_linker='Win32 ld.exe' paulo@0: # FIXME: first we should search . and the directory the executable is in paulo@0: shlibpath_var=PATH paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: dynamic_linker="$host_os dyld" paulo@0: version_type=darwin paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' paulo@0: soname_spec='${libname}${release}${major}$shared_ext' paulo@0: shlibpath_overrides_runpath=yes paulo@0: shlibpath_var=DYLD_LIBRARY_PATH paulo@0: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' paulo@0: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. paulo@0: if test "$GCC" = yes; then paulo@0: 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"` paulo@0: else paulo@0: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' paulo@0: ;; paulo@0: paulo@0: dgux*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: freebsd1*) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: paulo@0: kfreebsd*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='GNU ld.so' paulo@0: ;; paulo@0: paulo@0: freebsd* | dragonfly*) paulo@0: # DragonFly does not have aout. When/if they implement a new paulo@0: # versioning mechanism, adjust this. paulo@0: if test -x /usr/bin/objformat; then paulo@0: objformat=`/usr/bin/objformat` paulo@0: else paulo@0: case $host_os in paulo@0: freebsd[123]*) objformat=aout ;; paulo@0: *) objformat=elf ;; paulo@0: esac paulo@0: fi paulo@0: version_type=freebsd-$objformat paulo@0: case $version_type in paulo@0: freebsd-elf*) paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: need_version=no paulo@0: need_lib_prefix=no paulo@0: ;; paulo@0: freebsd-*) paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' paulo@0: need_version=yes paulo@0: ;; paulo@0: esac paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: case $host_os in paulo@0: freebsd2*) paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: freebsd3.[01]* | freebsdelf3.[01]*) paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ paulo@0: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: freebsd*) # from 4.6 on paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: gnu*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: hpux9* | hpux10* | hpux11*) paulo@0: # Give a soname corresponding to the major version so that dld.sl refuses to paulo@0: # link against other versions. paulo@0: version_type=sunos paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: case $host_cpu in paulo@0: ia64*) paulo@0: shrext_cmds='.so' paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker="$host_os dld.so" paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: if test "X$HPUX_IA64_MODE" = X32; then paulo@0: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" paulo@0: else paulo@0: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec paulo@0: ;; paulo@0: hppa*64*) paulo@0: shrext_cmds='.sl' paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker="$host_os dld.sl" paulo@0: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH paulo@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" paulo@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec paulo@0: ;; paulo@0: *) paulo@0: shrext_cmds='.sl' paulo@0: dynamic_linker="$host_os dld.sl" paulo@0: shlibpath_var=SHLIB_PATH paulo@0: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: ;; paulo@0: esac paulo@0: # HP-UX runs *really* slowly unless shared libraries are mode 555. paulo@0: postinstall_cmds='chmod 555 $lib' paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: case $host_os in paulo@0: nonstopux*) version_type=nonstopux ;; paulo@0: *) paulo@0: if test "$lt_cv_prog_gnu_ld" = yes; then paulo@0: version_type=linux paulo@0: else paulo@0: version_type=irix paulo@0: fi ;; paulo@0: esac paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: case $host_os in paulo@0: irix5* | nonstopux*) paulo@0: libsuff= shlibsuff= paulo@0: ;; paulo@0: *) paulo@0: case $LD in # libtool.m4 will add one of these switches to LD paulo@0: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") paulo@0: libsuff= shlibsuff= libmagic=32-bit;; paulo@0: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") paulo@0: libsuff=32 shlibsuff=N32 libmagic=N32;; paulo@0: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") paulo@0: libsuff=64 shlibsuff=64 libmagic=64-bit;; paulo@0: *) libsuff= shlibsuff= libmagic=never-match;; paulo@0: esac paulo@0: ;; paulo@0: esac paulo@0: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" paulo@0: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: # No shared lib support for Linux oldld, aout, or coff. paulo@0: linux*oldld* | linux*aout* | linux*coff*) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: paulo@0: # This must be Linux ELF. paulo@0: linux*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: # This implies no fast_install, which is unacceptable. paulo@0: # Some rework will be needed to allow for fast_install paulo@0: # before this can be enabled. paulo@0: hardcode_into_libs=yes paulo@0: paulo@0: # Append ld.so.conf contents to the search path paulo@0: if test -f /etc/ld.so.conf; then paulo@0: 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' ' '` paulo@0: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" paulo@0: fi paulo@0: paulo@0: # We used to test for /lib/ld.so.1 and disable shared libraries on paulo@0: # powerpc, because MkLinux only supported shared libraries with the paulo@0: # GNU dynamic linker. Since this was broken with cross compilers, paulo@0: # most powerpc-linux boxes support dynamic linking these days and paulo@0: # people can always --disable-shared, the test was removed, and we paulo@0: # assume the GNU/Linux dynamic linker is in use. paulo@0: dynamic_linker='GNU/Linux ld.so' paulo@0: ;; paulo@0: paulo@0: netbsdelf*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='NetBSD ld.elf_so' paulo@0: ;; paulo@0: paulo@0: knetbsd*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='GNU ld.so' paulo@0: ;; paulo@0: paulo@0: netbsd*) paulo@0: version_type=sunos paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' paulo@0: dynamic_linker='NetBSD (a.out) ld.so' paulo@0: else paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: dynamic_linker='NetBSD ld.elf_so' paulo@0: fi paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: paulo@0: nto-qnx*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: paulo@0: openbsd*) paulo@0: version_type=sunos paulo@0: sys_lib_dlsearch_path_spec="/usr/lib" paulo@0: need_lib_prefix=no paulo@0: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. paulo@0: case $host_os in paulo@0: openbsd3.3 | openbsd3.3.*) need_version=yes ;; paulo@0: *) need_version=no ;; paulo@0: esac paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: case $host_os in paulo@0: openbsd2.[89] | openbsd2.[89].*) paulo@0: shlibpath_overrides_runpath=no paulo@0: ;; paulo@0: *) paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: shlibpath_overrides_runpath=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: os2*) paulo@0: libname_spec='$name' paulo@0: shrext_cmds=".dll" paulo@0: need_lib_prefix=no paulo@0: library_names_spec='$libname${shared_ext} $libname.a' paulo@0: dynamic_linker='OS/2 ld.exe' paulo@0: shlibpath_var=LIBPATH paulo@0: ;; paulo@0: paulo@0: osf3* | osf4* | osf5*) paulo@0: version_type=osf paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" paulo@0: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: # ldd complains unless libraries are executable paulo@0: postinstall_cmds='chmod +x $lib' paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: version_type=sunos paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: need_lib_prefix=no paulo@0: fi paulo@0: need_version=yes paulo@0: ;; paulo@0: paulo@0: sysv4 | sysv4.3*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: case $host_vendor in paulo@0: sni) paulo@0: shlibpath_overrides_runpath=no paulo@0: need_lib_prefix=no paulo@0: export_dynamic_flag_spec='${wl}-Blargedynsym' paulo@0: runpath_var=LD_RUN_PATH paulo@0: ;; paulo@0: siemens) paulo@0: need_lib_prefix=no paulo@0: ;; paulo@0: motorola) paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: shlibpath_overrides_runpath=no paulo@0: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec ;then paulo@0: version_type=linux paulo@0: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' paulo@0: soname_spec='$libname${shared_ext}.$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) paulo@0: version_type=freebsd-elf paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: hardcode_into_libs=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' paulo@0: shlibpath_overrides_runpath=no paulo@0: else paulo@0: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' paulo@0: shlibpath_overrides_runpath=yes paulo@0: case $host_os in paulo@0: sco3.2v5*) paulo@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec='/usr/lib' paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: *) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: esac paulo@0: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 paulo@0: echo "${ECHO_T}$dynamic_linker" >&6 paulo@0: test "$dynamic_linker" = no && can_build_shared=no paulo@0: paulo@0: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" paulo@0: if test "$GCC" = yes; then paulo@0: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 paulo@0: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 paulo@0: hardcode_action_CXX= paulo@0: if test -n "$hardcode_libdir_flag_spec_CXX" || \ paulo@0: test -n "$runpath_var_CXX" || \ paulo@0: test "X$hardcode_automatic_CXX" = "Xyes" ; then paulo@0: paulo@0: # We can hardcode non-existant directories. paulo@0: if test "$hardcode_direct_CXX" != no && paulo@0: # If the only mechanism to avoid hardcoding is shlibpath_var, we paulo@0: # have to relink, otherwise we might link with an installed library paulo@0: # when we should be linking with a yet-to-be-installed one paulo@0: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && paulo@0: test "$hardcode_minus_L_CXX" != no; then paulo@0: # Linking always hardcodes the temporary library directory. paulo@0: hardcode_action_CXX=relink paulo@0: else paulo@0: # We can link without hardcoding, and we can hardcode nonexisting dirs. paulo@0: hardcode_action_CXX=immediate paulo@0: fi paulo@0: else paulo@0: # We cannot hardcode anything, or else we can only hardcode existing paulo@0: # directories. paulo@0: hardcode_action_CXX=unsupported paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 paulo@0: echo "${ECHO_T}$hardcode_action_CXX" >&6 paulo@0: paulo@0: if test "$hardcode_action_CXX" = relink; then paulo@0: # Fast installation is not supported paulo@0: enable_fast_install=no paulo@0: elif test "$shlibpath_overrides_runpath" = yes || paulo@0: test "$enable_shared" = no; then paulo@0: # Fast installation is not necessary paulo@0: enable_fast_install=needless paulo@0: fi paulo@0: paulo@0: paulo@0: # The else clause should only fire when bootstrapping the paulo@0: # libtool distribution, otherwise you forgot to ship ltmain.sh paulo@0: # with your package, and you will get complaints that there are paulo@0: # no rules to generate ltmain.sh. paulo@0: if test -f "$ltmain"; then paulo@0: # See if we are running on zsh, and set the options which allow our commands through paulo@0: # without removal of \ escapes. paulo@0: if test -n "${ZSH_VERSION+set}" ; then paulo@0: setopt NO_GLOB_SUBST paulo@0: fi paulo@0: # Now quote all the things that may contain metacharacters while being paulo@0: # careful not to overquote the AC_SUBSTed values. We take copies of the paulo@0: # variables and quote the copies for generation of the libtool script. paulo@0: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ paulo@0: SED SHELL STRIP \ paulo@0: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ paulo@0: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ paulo@0: deplibs_check_method reload_flag reload_cmds need_locks \ paulo@0: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ paulo@0: lt_cv_sys_global_symbol_to_c_name_address \ paulo@0: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ paulo@0: old_postinstall_cmds old_postuninstall_cmds \ paulo@0: compiler_CXX \ paulo@0: CC_CXX \ paulo@0: LD_CXX \ paulo@0: lt_prog_compiler_wl_CXX \ paulo@0: lt_prog_compiler_pic_CXX \ paulo@0: lt_prog_compiler_static_CXX \ paulo@0: lt_prog_compiler_no_builtin_flag_CXX \ paulo@0: export_dynamic_flag_spec_CXX \ paulo@0: thread_safe_flag_spec_CXX \ paulo@0: whole_archive_flag_spec_CXX \ paulo@0: enable_shared_with_static_runtimes_CXX \ paulo@0: old_archive_cmds_CXX \ paulo@0: old_archive_from_new_cmds_CXX \ paulo@0: predep_objects_CXX \ paulo@0: postdep_objects_CXX \ paulo@0: predeps_CXX \ paulo@0: postdeps_CXX \ paulo@0: compiler_lib_search_path_CXX \ paulo@0: archive_cmds_CXX \ paulo@0: archive_expsym_cmds_CXX \ paulo@0: postinstall_cmds_CXX \ paulo@0: postuninstall_cmds_CXX \ paulo@0: old_archive_from_expsyms_cmds_CXX \ paulo@0: allow_undefined_flag_CXX \ paulo@0: no_undefined_flag_CXX \ paulo@0: export_symbols_cmds_CXX \ paulo@0: hardcode_libdir_flag_spec_CXX \ paulo@0: hardcode_libdir_flag_spec_ld_CXX \ paulo@0: hardcode_libdir_separator_CXX \ paulo@0: hardcode_automatic_CXX \ paulo@0: module_cmds_CXX \ paulo@0: module_expsym_cmds_CXX \ paulo@0: lt_cv_prog_compiler_c_o_CXX \ paulo@0: exclude_expsyms_CXX \ paulo@0: include_expsyms_CXX; do paulo@0: paulo@0: case $var in paulo@0: old_archive_cmds_CXX | \ paulo@0: old_archive_from_new_cmds_CXX | \ paulo@0: archive_cmds_CXX | \ paulo@0: archive_expsym_cmds_CXX | \ paulo@0: module_cmds_CXX | \ paulo@0: module_expsym_cmds_CXX | \ paulo@0: old_archive_from_expsyms_cmds_CXX | \ paulo@0: export_symbols_cmds_CXX | \ paulo@0: extract_expsyms_cmds | reload_cmds | finish_cmds | \ paulo@0: postinstall_cmds | postuninstall_cmds | \ paulo@0: old_postinstall_cmds | old_postuninstall_cmds | \ paulo@0: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) paulo@0: # Double-quote double-evaled strings. paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" paulo@0: ;; paulo@0: *) paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: paulo@0: case $lt_echo in paulo@0: *'\$0 --fallback-echo"') paulo@0: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` paulo@0: ;; paulo@0: esac paulo@0: paulo@0: cfgfile="$ofile" paulo@0: paulo@0: cat <<__EOF__ >> "$cfgfile" paulo@0: # ### BEGIN LIBTOOL TAG CONFIG: $tagname paulo@0: paulo@0: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: paulo@0: paulo@0: # Shell to use when invoking shell scripts. paulo@0: SHELL=$lt_SHELL paulo@0: paulo@0: # Whether or not to build shared libraries. paulo@0: build_libtool_libs=$enable_shared paulo@0: paulo@0: # Whether or not to build static libraries. paulo@0: build_old_libs=$enable_static paulo@0: paulo@0: # Whether or not to add -lc for building shared libraries. paulo@0: build_libtool_need_lc=$archive_cmds_need_lc_CXX paulo@0: paulo@0: # Whether or not to disallow shared libs when runtime libs are static paulo@0: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX paulo@0: paulo@0: # Whether or not to optimize for fast installation. paulo@0: fast_install=$enable_fast_install paulo@0: paulo@0: # The host system. paulo@0: host_alias=$host_alias paulo@0: host=$host paulo@0: host_os=$host_os paulo@0: paulo@0: # The build system. paulo@0: build_alias=$build_alias paulo@0: build=$build paulo@0: build_os=$build_os paulo@0: paulo@0: # An echo program that does not interpret backslashes. paulo@0: echo=$lt_echo paulo@0: paulo@0: # The archiver. paulo@0: AR=$lt_AR paulo@0: AR_FLAGS=$lt_AR_FLAGS paulo@0: paulo@0: # A C compiler. paulo@0: LTCC=$lt_LTCC paulo@0: paulo@0: # LTCC compiler flags. paulo@0: LTCFLAGS=$lt_LTCFLAGS paulo@0: paulo@0: # A language-specific compiler. paulo@0: CC=$lt_compiler_CXX paulo@0: paulo@0: # Is the compiler the GNU C compiler? paulo@0: with_gcc=$GCC_CXX paulo@0: paulo@0: # An ERE matcher. paulo@0: EGREP=$lt_EGREP paulo@0: paulo@0: # The linker used to build libraries. paulo@0: LD=$lt_LD_CXX paulo@0: paulo@0: # Whether we need hard or soft links. paulo@0: LN_S=$lt_LN_S paulo@0: paulo@0: # A BSD-compatible nm program. paulo@0: NM=$lt_NM paulo@0: paulo@0: # A symbol stripping program paulo@0: STRIP=$lt_STRIP paulo@0: paulo@0: # Used to examine libraries when file_magic_cmd begins "file" paulo@0: MAGIC_CMD=$MAGIC_CMD paulo@0: paulo@0: # Used on cygwin: DLL creation program. paulo@0: DLLTOOL="$DLLTOOL" paulo@0: paulo@0: # Used on cygwin: object dumper. paulo@0: OBJDUMP="$OBJDUMP" paulo@0: paulo@0: # Used on cygwin: assembler. paulo@0: AS="$AS" paulo@0: paulo@0: # The name of the directory that contains temporary libtool files. paulo@0: objdir=$objdir paulo@0: paulo@0: # How to create reloadable object files. paulo@0: reload_flag=$lt_reload_flag paulo@0: reload_cmds=$lt_reload_cmds paulo@0: paulo@0: # How to pass a linker flag through the compiler. paulo@0: wl=$lt_lt_prog_compiler_wl_CXX paulo@0: paulo@0: # Object file suffix (normally "o"). paulo@0: objext="$ac_objext" paulo@0: paulo@0: # Old archive suffix (normally "a"). paulo@0: libext="$libext" paulo@0: paulo@0: # Shared library suffix (normally ".so"). paulo@0: shrext_cmds='$shrext_cmds' paulo@0: paulo@0: # Executable file suffix (normally ""). paulo@0: exeext="$exeext" paulo@0: paulo@0: # Additional compiler flags for building library objects. paulo@0: pic_flag=$lt_lt_prog_compiler_pic_CXX paulo@0: pic_mode=$pic_mode paulo@0: paulo@0: # What is the maximum length of a command? paulo@0: max_cmd_len=$lt_cv_sys_max_cmd_len paulo@0: paulo@0: # Does compiler simultaneously support -c and -o options? paulo@0: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX paulo@0: paulo@0: # Must we lock files when doing compilation? paulo@0: need_locks=$lt_need_locks paulo@0: paulo@0: # Do we need the lib prefix for modules? paulo@0: need_lib_prefix=$need_lib_prefix paulo@0: paulo@0: # Do we need a version for libraries? paulo@0: need_version=$need_version paulo@0: paulo@0: # Whether dlopen is supported. paulo@0: dlopen_support=$enable_dlopen paulo@0: paulo@0: # Whether dlopen of programs is supported. paulo@0: dlopen_self=$enable_dlopen_self paulo@0: paulo@0: # Whether dlopen of statically linked programs is supported. paulo@0: dlopen_self_static=$enable_dlopen_self_static paulo@0: paulo@0: # Compiler flag to prevent dynamic linking. paulo@0: link_static_flag=$lt_lt_prog_compiler_static_CXX paulo@0: paulo@0: # Compiler flag to turn off builtin functions. paulo@0: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX paulo@0: paulo@0: # Compiler flag to allow reflexive dlopens. paulo@0: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX paulo@0: paulo@0: # Compiler flag to generate shared objects directly from archives. paulo@0: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX paulo@0: paulo@0: # Compiler flag to generate thread-safe objects. paulo@0: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX paulo@0: paulo@0: # Library versioning type. paulo@0: version_type=$version_type paulo@0: paulo@0: # Format of library name prefix. paulo@0: libname_spec=$lt_libname_spec paulo@0: paulo@0: # List of archive names. First name is the real one, the rest are links. paulo@0: # The last name is the one that the linker finds with -lNAME. paulo@0: library_names_spec=$lt_library_names_spec paulo@0: paulo@0: # The coded name of the library, if different from the real name. paulo@0: soname_spec=$lt_soname_spec paulo@0: paulo@0: # Commands used to build and install an old-style archive. paulo@0: RANLIB=$lt_RANLIB paulo@0: old_archive_cmds=$lt_old_archive_cmds_CXX paulo@0: old_postinstall_cmds=$lt_old_postinstall_cmds paulo@0: old_postuninstall_cmds=$lt_old_postuninstall_cmds paulo@0: paulo@0: # Create an old-style archive from a shared archive. paulo@0: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX paulo@0: paulo@0: # Create a temporary old-style archive to link instead of a shared archive. paulo@0: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX paulo@0: paulo@0: # Commands used to build and install a shared archive. paulo@0: archive_cmds=$lt_archive_cmds_CXX paulo@0: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX paulo@0: postinstall_cmds=$lt_postinstall_cmds paulo@0: postuninstall_cmds=$lt_postuninstall_cmds paulo@0: paulo@0: # Commands used to build a loadable module (assumed same as above if empty) paulo@0: module_cmds=$lt_module_cmds_CXX paulo@0: module_expsym_cmds=$lt_module_expsym_cmds_CXX paulo@0: paulo@0: # Commands to strip libraries. paulo@0: old_striplib=$lt_old_striplib paulo@0: striplib=$lt_striplib paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predep_objects=$lt_predep_objects_CXX paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdep_objects=$lt_postdep_objects_CXX paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predeps=$lt_predeps_CXX paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdeps=$lt_postdeps_CXX paulo@0: paulo@0: # The library search path used internally by the compiler when linking paulo@0: # a shared library. paulo@0: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX paulo@0: paulo@0: # Method to check whether dependent libraries are shared objects. paulo@0: deplibs_check_method=$lt_deplibs_check_method paulo@0: paulo@0: # Command to use when deplibs_check_method == file_magic. paulo@0: file_magic_cmd=$lt_file_magic_cmd paulo@0: paulo@0: # Flag that allows shared libraries with undefined symbols to be built. paulo@0: allow_undefined_flag=$lt_allow_undefined_flag_CXX paulo@0: paulo@0: # Flag that forces no undefined symbols. paulo@0: no_undefined_flag=$lt_no_undefined_flag_CXX paulo@0: paulo@0: # Commands used to finish a libtool library installation in a directory. paulo@0: finish_cmds=$lt_finish_cmds paulo@0: paulo@0: # Same as above, but a single script fragment to be evaled but not shown. paulo@0: finish_eval=$lt_finish_eval paulo@0: paulo@0: # Take the output of nm and produce a listing of raw symbols and C names. paulo@0: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe paulo@0: paulo@0: # Transform the output of nm in a proper C declaration paulo@0: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl paulo@0: paulo@0: # Transform the output of nm in a C name address pair paulo@0: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address paulo@0: paulo@0: # This is the shared library runtime path variable. paulo@0: runpath_var=$runpath_var paulo@0: paulo@0: # This is the shared library path variable. paulo@0: shlibpath_var=$shlibpath_var paulo@0: paulo@0: # Is shlibpath searched before the hard-coded library search path? paulo@0: shlibpath_overrides_runpath=$shlibpath_overrides_runpath paulo@0: paulo@0: # How to hardcode a shared library path into an executable. paulo@0: hardcode_action=$hardcode_action_CXX paulo@0: paulo@0: # Whether we should hardcode library paths into libraries. paulo@0: hardcode_into_libs=$hardcode_into_libs paulo@0: paulo@0: # Flag to hardcode \$libdir into a binary during linking. paulo@0: # This must work even if \$libdir does not exist. paulo@0: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX paulo@0: paulo@0: # If ld is used when linking, flag to hardcode \$libdir into paulo@0: # a binary during linking. This must work even if \$libdir does paulo@0: # not exist. paulo@0: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX paulo@0: paulo@0: # Whether we need a single -rpath flag with a separated argument. paulo@0: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX paulo@0: paulo@0: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_direct=$hardcode_direct_CXX paulo@0: paulo@0: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_minus_L=$hardcode_minus_L_CXX paulo@0: paulo@0: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into paulo@0: # the resulting binary. paulo@0: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX paulo@0: paulo@0: # Set to yes if building a shared library automatically hardcodes DIR into the library paulo@0: # and all subsequent libraries and executables linked against it. paulo@0: hardcode_automatic=$hardcode_automatic_CXX paulo@0: paulo@0: # Variables whose values should be saved in libtool wrapper scripts and paulo@0: # restored at relink time. paulo@0: variables_saved_for_relink="$variables_saved_for_relink" paulo@0: paulo@0: # Whether libtool must link a program against all its dependency libraries. paulo@0: link_all_deplibs=$link_all_deplibs_CXX paulo@0: paulo@0: # Compile-time system search path for libraries paulo@0: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec paulo@0: paulo@0: # Run-time system search path for libraries paulo@0: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec paulo@0: paulo@0: # Fix the shell variable \$srcfile for the compiler. paulo@0: fix_srcfile_path="$fix_srcfile_path_CXX" paulo@0: paulo@0: # Set to yes if exported symbols are required. paulo@0: always_export_symbols=$always_export_symbols_CXX paulo@0: paulo@0: # The commands to list exported symbols. paulo@0: export_symbols_cmds=$lt_export_symbols_cmds_CXX paulo@0: paulo@0: # The commands to extract the exported symbol list from a shared archive. paulo@0: extract_expsyms_cmds=$lt_extract_expsyms_cmds paulo@0: paulo@0: # Symbols that should not be listed in the preloaded symbols. paulo@0: exclude_expsyms=$lt_exclude_expsyms_CXX paulo@0: paulo@0: # Symbols that must always be exported. paulo@0: include_expsyms=$lt_include_expsyms_CXX paulo@0: paulo@0: # ### END LIBTOOL TAG CONFIG: $tagname paulo@0: paulo@0: __EOF__ paulo@0: paulo@0: paulo@0: else paulo@0: # If there is no Makefile yet, we rely on a make rule to execute paulo@0: # `config.status --recheck' to rerun these tests and create the paulo@0: # libtool script then. paulo@0: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` paulo@0: if test -f "$ltmain_in"; then paulo@0: test -f Makefile && make "$ltmain" paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: CC=$lt_save_CC paulo@0: LDCXX=$LD paulo@0: LD=$lt_save_LD paulo@0: GCC=$lt_save_GCC paulo@0: with_gnu_ldcxx=$with_gnu_ld paulo@0: with_gnu_ld=$lt_save_with_gnu_ld paulo@0: lt_cv_path_LDCXX=$lt_cv_path_LD paulo@0: lt_cv_path_LD=$lt_save_path_LD paulo@0: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld paulo@0: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld paulo@0: paulo@0: else paulo@0: tagname="" paulo@0: fi paulo@0: ;; paulo@0: paulo@0: F77) paulo@0: if test -n "$F77" && test "X$F77" != "Xno"; then paulo@0: paulo@0: ac_ext=f paulo@0: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_f77_compiler_gnu paulo@0: paulo@0: paulo@0: archive_cmds_need_lc_F77=no paulo@0: allow_undefined_flag_F77= paulo@0: always_export_symbols_F77=no paulo@0: archive_expsym_cmds_F77= paulo@0: export_dynamic_flag_spec_F77= paulo@0: hardcode_direct_F77=no paulo@0: hardcode_libdir_flag_spec_F77= paulo@0: hardcode_libdir_flag_spec_ld_F77= paulo@0: hardcode_libdir_separator_F77= paulo@0: hardcode_minus_L_F77=no paulo@0: hardcode_automatic_F77=no paulo@0: module_cmds_F77= paulo@0: module_expsym_cmds_F77= paulo@0: link_all_deplibs_F77=unknown paulo@0: old_archive_cmds_F77=$old_archive_cmds paulo@0: no_undefined_flag_F77= paulo@0: whole_archive_flag_spec_F77= paulo@0: enable_shared_with_static_runtimes_F77=no paulo@0: paulo@0: # Source file extension for f77 test sources. paulo@0: ac_ext=f paulo@0: paulo@0: # Object file extension for compiled f77 test sources. paulo@0: objext=o paulo@0: objext_F77=$objext paulo@0: paulo@0: # Code to be used in simple compile tests paulo@0: lt_simple_compile_test_code=" subroutine t\n return\n end\n" paulo@0: paulo@0: # Code to be used in simple link tests paulo@0: lt_simple_link_test_code=" program t\n end\n" paulo@0: paulo@0: # ltmain only uses $CC for tagged configurations so make sure $CC is set. paulo@0: paulo@0: # If no C compiler was specified, use CC. paulo@0: LTCC=${LTCC-"$CC"} paulo@0: paulo@0: # If no C compiler flags were specified, use CFLAGS. paulo@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: compiler=$CC paulo@0: paulo@0: paulo@0: # save warnings/boilerplate of simple test code paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" >conftest.$ac_ext paulo@0: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_compiler_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_link_test_code" >conftest.$ac_ext paulo@0: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_linker_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: lt_save_CC="$CC" paulo@0: CC=${F77-"f77"} paulo@0: compiler=$CC paulo@0: compiler_F77=$CC paulo@0: for cc_temp in $compiler""; do paulo@0: case $cc_temp in paulo@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; paulo@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; paulo@0: \-*) ;; paulo@0: *) break;; paulo@0: esac paulo@0: done paulo@0: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 paulo@0: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 paulo@0: echo "$as_me:$LINENO: result: $can_build_shared" >&5 paulo@0: echo "${ECHO_T}$can_build_shared" >&6 paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 paulo@0: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 paulo@0: test "$can_build_shared" = "no" && enable_shared=no paulo@0: paulo@0: # On AIX, shared libraries and static libraries use the same namespace, and paulo@0: # are all built from PIC. paulo@0: case $host_os in paulo@0: aix3*) paulo@0: test "$enable_shared" = yes && enable_static=no paulo@0: if test -n "$RANLIB"; then paulo@0: archive_cmds="$archive_cmds~\$RANLIB \$lib" paulo@0: postinstall_cmds='$RANLIB $lib' paulo@0: fi paulo@0: ;; paulo@0: aix4* | aix5*) paulo@0: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then paulo@0: test "$enable_shared" = yes && enable_static=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: echo "$as_me:$LINENO: result: $enable_shared" >&5 paulo@0: echo "${ECHO_T}$enable_shared" >&6 paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether to build static libraries" >&5 paulo@0: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 paulo@0: # Make sure either enable_shared or enable_static is yes. paulo@0: test "$enable_shared" = yes || enable_static=yes paulo@0: echo "$as_me:$LINENO: result: $enable_static" >&5 paulo@0: echo "${ECHO_T}$enable_static" >&6 paulo@0: paulo@0: GCC_F77="$G77" paulo@0: LD_F77="$LD" paulo@0: paulo@0: lt_prog_compiler_wl_F77= paulo@0: lt_prog_compiler_pic_F77= paulo@0: lt_prog_compiler_static_F77= paulo@0: paulo@0: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 paulo@0: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: lt_prog_compiler_static_F77='-static' paulo@0: paulo@0: case $host_os in paulo@0: aix*) paulo@0: # All AIX code is PIC. paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 now supports IA64 processor paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: # FIXME: we need at least 68020 code to build shared libraries, but paulo@0: # adding the `-m68020' flag to GCC prevents building anything better, paulo@0: # like `-m68040'. paulo@0: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' paulo@0: ;; paulo@0: paulo@0: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) paulo@0: # PIC is the default for these OSes. paulo@0: ;; paulo@0: paulo@0: mingw* | pw32* | os2*) paulo@0: # This hack is so that the source file can tell whether it is being paulo@0: # built for inclusion in a dll (and should export symbols for example). paulo@0: lt_prog_compiler_pic_F77='-DDLL_EXPORT' paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: # PIC is the default on this platform paulo@0: # Common symbols not allowed in MH_DYLIB files paulo@0: lt_prog_compiler_pic_F77='-fno-common' paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: # Interix 3.x gcc -fpic/-fPIC options generate broken code. paulo@0: # Instead, we relocate shared libraries at runtime. paulo@0: ;; paulo@0: paulo@0: msdosdjgpp*) paulo@0: # Just because we use GCC doesn't mean we suddenly get shared libraries paulo@0: # on systems that don't support them. paulo@0: lt_prog_compiler_can_build_shared_F77=no paulo@0: enable_shared=no paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec; then paulo@0: lt_prog_compiler_pic_F77=-Kconform_pic paulo@0: fi paulo@0: ;; paulo@0: paulo@0: hpux*) paulo@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but paulo@0: # not for PA HP-UX. paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: # +Z the default paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_F77='-fPIC' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: *) paulo@0: lt_prog_compiler_pic_F77='-fPIC' paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: # PORTME Check for flag to pass linker flags through the system compiler. paulo@0: case $host_os in paulo@0: aix*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 now supports IA64 processor paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: else paulo@0: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' paulo@0: fi paulo@0: ;; paulo@0: darwin*) paulo@0: # PIC is the default on this platform paulo@0: # Common symbols not allowed in MH_DYLIB files paulo@0: case $cc_basename in paulo@0: xlc*) paulo@0: lt_prog_compiler_pic_F77='-qnocommon' paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: mingw* | pw32* | os2*) paulo@0: # This hack is so that the source file can tell whether it is being paulo@0: # built for inclusion in a dll (and should export symbols for example). paulo@0: lt_prog_compiler_pic_F77='-DDLL_EXPORT' paulo@0: ;; paulo@0: paulo@0: hpux9* | hpux10* | hpux11*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but paulo@0: # not for PA HP-UX. paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: # +Z the default paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_F77='+Z' paulo@0: ;; paulo@0: esac paulo@0: # Is there a better lt_prog_compiler_static that works with the bundled CC? paulo@0: lt_prog_compiler_static_F77='${wl}-a ${wl}archive' paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: # PIC (with -KPIC) is the default. paulo@0: lt_prog_compiler_static_F77='-non_shared' paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: lt_prog_compiler_pic_F77='-KPIC' paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: ;; paulo@0: paulo@0: linux*) paulo@0: case $cc_basename in paulo@0: icc* | ecc*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: lt_prog_compiler_pic_F77='-KPIC' paulo@0: lt_prog_compiler_static_F77='-static' paulo@0: ;; paulo@0: pgcc* | pgf77* | pgf90* | pgf95*) paulo@0: # Portland Group compilers (*not* the Pentium gcc compiler, paulo@0: # which looks to be a dead project) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: lt_prog_compiler_pic_F77='-fpic' paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: ;; paulo@0: ccc*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: # All Alpha code is PIC. paulo@0: lt_prog_compiler_static_F77='-non_shared' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: osf3* | osf4* | osf5*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: # All OSF/1 code is PIC. paulo@0: lt_prog_compiler_static_F77='-non_shared' paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: lt_prog_compiler_pic_F77='-KPIC' paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: case $cc_basename in paulo@0: f77* | f90* | f95*) paulo@0: lt_prog_compiler_wl_F77='-Qoption ld ';; paulo@0: *) paulo@0: lt_prog_compiler_wl_F77='-Wl,';; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: lt_prog_compiler_wl_F77='-Qoption ld ' paulo@0: lt_prog_compiler_pic_F77='-PIC' paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: ;; paulo@0: paulo@0: sysv4 | sysv4.2uw2* | sysv4.3*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: lt_prog_compiler_pic_F77='-KPIC' paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec ;then paulo@0: lt_prog_compiler_pic_F77='-Kconform_pic' paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: lt_prog_compiler_pic_F77='-KPIC' paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: ;; paulo@0: paulo@0: unicos*) paulo@0: lt_prog_compiler_wl_F77='-Wl,' paulo@0: lt_prog_compiler_can_build_shared_F77=no paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: lt_prog_compiler_pic_F77='-pic' paulo@0: lt_prog_compiler_static_F77='-Bstatic' paulo@0: ;; paulo@0: paulo@0: *) paulo@0: lt_prog_compiler_can_build_shared_F77=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 paulo@0: paulo@0: # paulo@0: # Check to make sure the PIC flag actually works. paulo@0: # paulo@0: if test -n "$lt_prog_compiler_pic_F77"; then paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 paulo@0: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 paulo@0: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_prog_compiler_pic_works_F77=no paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: lt_compiler_flag="$lt_prog_compiler_pic_F77" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: # The option is referenced via a variable to avoid confusing sed. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:13391: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>conftest.err) paulo@0: ac_status=$? paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:13395: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s "$ac_outfile"; then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings other than the usual output. paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_prog_compiler_pic_works_F77=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 paulo@0: paulo@0: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then paulo@0: case $lt_prog_compiler_pic_F77 in paulo@0: "" | " "*) ;; paulo@0: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; paulo@0: esac paulo@0: else paulo@0: lt_prog_compiler_pic_F77= paulo@0: lt_prog_compiler_can_build_shared_F77=no paulo@0: fi paulo@0: paulo@0: fi paulo@0: case $host_os in paulo@0: # For platforms which do not support PIC, -DPIC is meaningless: paulo@0: *djgpp*) paulo@0: lt_prog_compiler_pic_F77= paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # paulo@0: # Check to make sure the static flag actually works. paulo@0: # paulo@0: wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" paulo@0: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 paulo@0: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 paulo@0: if test "${lt_prog_compiler_static_works_F77+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_prog_compiler_static_works_F77=no paulo@0: save_LDFLAGS="$LDFLAGS" paulo@0: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" paulo@0: printf "$lt_simple_link_test_code" > conftest.$ac_ext paulo@0: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then paulo@0: # The linker can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings paulo@0: if test -s conftest.err; then paulo@0: # Append any errors to the config.log. paulo@0: cat conftest.err 1>&5 paulo@0: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_prog_compiler_static_works_F77=yes paulo@0: fi paulo@0: else paulo@0: lt_prog_compiler_static_works_F77=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: LDFLAGS="$save_LDFLAGS" paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 paulo@0: paulo@0: if test x"$lt_prog_compiler_static_works_F77" = xyes; then paulo@0: : paulo@0: else paulo@0: lt_prog_compiler_static_F77= paulo@0: fi paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 paulo@0: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 paulo@0: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_cv_prog_compiler_c_o_F77=no paulo@0: $rm -r conftest 2>/dev/null paulo@0: mkdir conftest paulo@0: cd conftest paulo@0: mkdir out paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: paulo@0: lt_compiler_flag="-o out/conftest2.$ac_objext" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:13495: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>out/conftest.err) paulo@0: ac_status=$? paulo@0: cat out/conftest.err >&5 paulo@0: echo "$as_me:13499: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext paulo@0: then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 paulo@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then paulo@0: lt_cv_prog_compiler_c_o_F77=yes paulo@0: fi paulo@0: fi paulo@0: chmod u+w . 2>&5 paulo@0: $rm conftest* paulo@0: # SGI C++ compiler will create directory out/ii_files/ for paulo@0: # template instantiation paulo@0: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files paulo@0: $rm out/* && rmdir out paulo@0: cd .. paulo@0: rmdir conftest paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 paulo@0: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 paulo@0: paulo@0: paulo@0: hard_links="nottested" paulo@0: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then paulo@0: # do not overwrite the value of need_locks provided by the user paulo@0: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 paulo@0: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 paulo@0: hard_links=yes paulo@0: $rm conftest* paulo@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no paulo@0: touch conftest.a paulo@0: ln conftest.a conftest.b 2>&5 || hard_links=no paulo@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no paulo@0: echo "$as_me:$LINENO: result: $hard_links" >&5 paulo@0: echo "${ECHO_T}$hard_links" >&6 paulo@0: if test "$hard_links" = no; then paulo@0: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 paulo@0: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} paulo@0: need_locks=warn paulo@0: fi paulo@0: else paulo@0: need_locks=no paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 paulo@0: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 paulo@0: paulo@0: runpath_var= paulo@0: allow_undefined_flag_F77= paulo@0: enable_shared_with_static_runtimes_F77=no paulo@0: archive_cmds_F77= paulo@0: archive_expsym_cmds_F77= paulo@0: old_archive_From_new_cmds_F77= paulo@0: old_archive_from_expsyms_cmds_F77= paulo@0: export_dynamic_flag_spec_F77= paulo@0: whole_archive_flag_spec_F77= paulo@0: thread_safe_flag_spec_F77= paulo@0: hardcode_libdir_flag_spec_F77= paulo@0: hardcode_libdir_flag_spec_ld_F77= paulo@0: hardcode_libdir_separator_F77= paulo@0: hardcode_direct_F77=no paulo@0: hardcode_minus_L_F77=no paulo@0: hardcode_shlibpath_var_F77=unsupported paulo@0: link_all_deplibs_F77=unknown paulo@0: hardcode_automatic_F77=no paulo@0: module_cmds_F77= paulo@0: module_expsym_cmds_F77= paulo@0: always_export_symbols_F77=no paulo@0: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' paulo@0: # include_expsyms should be a list of space-separated symbols to be *always* paulo@0: # included in the symbol list paulo@0: include_expsyms_F77= paulo@0: # exclude_expsyms can be an extended regexp of symbols to exclude paulo@0: # it will be wrapped by ` (' and `)$', so one must not match beginning or paulo@0: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', paulo@0: # as well as any symbol that contains `d'. paulo@0: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" paulo@0: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out paulo@0: # platforms (ab)use it in PIC code, but their linkers get confused if paulo@0: # the symbol is explicitly referenced. Since portable code cannot paulo@0: # rely on this symbol name, it's probably fine to never include it in paulo@0: # preloaded symbol tables. paulo@0: extract_expsyms_cmds= paulo@0: # Just being paranoid about ensuring that cc_basename is set. paulo@0: for cc_temp in $compiler""; do paulo@0: case $cc_temp in paulo@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; paulo@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; paulo@0: \-*) ;; paulo@0: *) break;; paulo@0: esac paulo@0: done paulo@0: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` paulo@0: paulo@0: case $host_os in paulo@0: cygwin* | mingw* | pw32*) paulo@0: # FIXME: the MSVC++ port hasn't been tested in a loooong time paulo@0: # When not using gcc, we currently assume that we are using paulo@0: # Microsoft Visual C++. paulo@0: if test "$GCC" != yes; then paulo@0: with_gnu_ld=no paulo@0: fi paulo@0: ;; paulo@0: interix*) paulo@0: # we just hope/assume this is gcc and not c89 (= MSVC++) paulo@0: with_gnu_ld=yes paulo@0: ;; paulo@0: openbsd*) paulo@0: with_gnu_ld=no paulo@0: ;; paulo@0: esac paulo@0: paulo@0: ld_shlibs_F77=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: # If archive_cmds runs LD, not CC, wlarc should be empty paulo@0: wlarc='${wl}' paulo@0: paulo@0: # Set some defaults for GNU ld with shared library support. These paulo@0: # are reset later if shared libraries are not supported. Putting them paulo@0: # here allows them to be overridden if necessary. paulo@0: runpath_var=LD_RUN_PATH paulo@0: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' paulo@0: export_dynamic_flag_spec_F77='${wl}--export-dynamic' paulo@0: # ancient GNU ld didn't support --whole-archive et. al. paulo@0: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then paulo@0: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' paulo@0: else paulo@0: whole_archive_flag_spec_F77= paulo@0: fi paulo@0: supports_anon_versioning=no paulo@0: case `$LD -v 2>/dev/null` in paulo@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 paulo@0: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... paulo@0: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... paulo@0: *\ 2.11.*) ;; # other 2.11 versions paulo@0: *) supports_anon_versioning=yes ;; paulo@0: esac paulo@0: paulo@0: # See if GNU ld supports shared libraries. paulo@0: case $host_os in paulo@0: aix3* | aix4* | aix5*) paulo@0: # On AIX/PPC, the GNU linker is very broken paulo@0: if test "$host_cpu" != ia64; then paulo@0: ld_shlibs_F77=no paulo@0: cat <&2 paulo@0: paulo@0: *** Warning: the GNU linker, at least up to release 2.9.1, is reported paulo@0: *** to be unable to reliably create shared libraries on AIX. paulo@0: *** Therefore, libtool is disabling shared libraries support. If you paulo@0: *** really care for shared libraries, you may want to modify your PATH paulo@0: *** so that a non-GNU linker is found, and then restart. paulo@0: paulo@0: EOF paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: 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)' paulo@0: hardcode_libdir_flag_spec_F77='-L$libdir' paulo@0: hardcode_minus_L_F77=yes paulo@0: paulo@0: # Samuel A. Falvo II reports paulo@0: # that the semantics of dynamic libraries on AmigaOS, at least up paulo@0: # to version 4, is to share data among multiple programs linked paulo@0: # with the same dynamic library. Since this doesn't match the paulo@0: # behavior of shared libraries on other platforms, we can't use paulo@0: # them. paulo@0: ld_shlibs_F77=no paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: allow_undefined_flag_F77=unsupported paulo@0: # Joseph Beckenbach says some releases of gcc paulo@0: # support --undefined. This deserves some investigation. FIXME paulo@0: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: else paulo@0: ld_shlibs_F77=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, paulo@0: # as there is no search path for DLLs. paulo@0: hardcode_libdir_flag_spec_F77='-L$libdir' paulo@0: allow_undefined_flag_F77=unsupported paulo@0: always_export_symbols_F77=no paulo@0: enable_shared_with_static_runtimes_F77=yes paulo@0: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' paulo@0: paulo@0: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then paulo@0: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' paulo@0: # If the export-symbols file already is a .def file (1st line paulo@0: # is EXPORTS), use it as is; otherwise, prepend... paulo@0: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then paulo@0: cp $export_symbols $output_objdir/$soname.def; paulo@0: else paulo@0: echo EXPORTS > $output_objdir/$soname.def; paulo@0: cat $export_symbols >> $output_objdir/$soname.def; paulo@0: fi~ paulo@0: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' paulo@0: else paulo@0: ld_shlibs_F77=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: hardcode_direct_F77=no paulo@0: hardcode_shlibpath_var_F77=no paulo@0: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' paulo@0: export_dynamic_flag_spec_F77='${wl}-E' paulo@0: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. paulo@0: # Instead, shared libraries are loaded at an image base (0x10000000 by paulo@0: # default) and relocated if they conflict, which is a slow very memory paulo@0: # consuming and fragmenting process. To avoid this, we pick a random, paulo@0: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link paulo@0: # time. Moving up from 0x10000000 also allows more sbrk(2) space. paulo@0: archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' paulo@0: archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' paulo@0: ;; paulo@0: paulo@0: linux*) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: tmp_addflag= paulo@0: case $cc_basename,$host_cpu in paulo@0: pgcc*) # Portland Group C compiler paulo@0: 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' paulo@0: tmp_addflag=' $pic_flag' paulo@0: ;; paulo@0: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers paulo@0: 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' paulo@0: tmp_addflag=' $pic_flag -Mnomain' ;; paulo@0: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 paulo@0: tmp_addflag=' -i_dynamic' ;; paulo@0: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 paulo@0: tmp_addflag=' -i_dynamic -nofor_main' ;; paulo@0: ifc* | ifort*) # Intel Fortran compiler paulo@0: tmp_addflag=' -nofor_main' ;; paulo@0: esac paulo@0: archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: paulo@0: if test $supports_anon_versioning = yes; then paulo@0: archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ paulo@0: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ paulo@0: $echo "local: *; };" >> $output_objdir/$libname.ver~ paulo@0: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' paulo@0: fi paulo@0: link_all_deplibs_F77=no paulo@0: else paulo@0: ld_shlibs_F77=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' paulo@0: wlarc= paulo@0: else paulo@0: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then paulo@0: ld_shlibs_F77=no paulo@0: cat <&2 paulo@0: paulo@0: *** Warning: The releases 2.8.* of the GNU linker cannot reliably paulo@0: *** create shared libraries on Solaris systems. Therefore, libtool paulo@0: *** is disabling shared libraries support. We urge you to upgrade GNU paulo@0: *** binutils to release 2.9.1 or newer. Another option is to modify paulo@0: *** your PATH or compiler configuration so that the native linker is paulo@0: *** used, and then restart. paulo@0: paulo@0: EOF paulo@0: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs_F77=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) paulo@0: case `$LD -v 2>&1` in paulo@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) paulo@0: ld_shlibs_F77=no paulo@0: cat <<_LT_EOF 1>&2 paulo@0: paulo@0: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not paulo@0: *** reliably create shared libraries on SCO systems. Therefore, libtool paulo@0: *** is disabling shared libraries support. We urge you to upgrade GNU paulo@0: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify paulo@0: *** your PATH or compiler configuration so that the native linker is paulo@0: *** used, and then restart. paulo@0: paulo@0: _LT_EOF paulo@0: ;; paulo@0: *) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' paulo@0: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' paulo@0: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs_F77=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: wlarc= paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: *) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs_F77=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: if test "$ld_shlibs_F77" = no; then paulo@0: runpath_var= paulo@0: hardcode_libdir_flag_spec_F77= paulo@0: export_dynamic_flag_spec_F77= paulo@0: whole_archive_flag_spec_F77= paulo@0: fi paulo@0: else paulo@0: # PORTME fill in a description of your system's linker (not GNU ld) paulo@0: case $host_os in paulo@0: aix3*) paulo@0: allow_undefined_flag_F77=unsupported paulo@0: always_export_symbols_F77=yes paulo@0: 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' paulo@0: # Note: this linker hardcodes the directories in LIBPATH if there paulo@0: # are no directories specified by -L. paulo@0: hardcode_minus_L_F77=yes paulo@0: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then paulo@0: # Neither direct hardcoding nor static linking is supported with a paulo@0: # broken collect2. paulo@0: hardcode_direct_F77=unsupported paulo@0: fi paulo@0: ;; paulo@0: paulo@0: aix4* | aix5*) paulo@0: if test "$host_cpu" = ia64; then paulo@0: # On IA64, the linker does run time linking by default, so we don't paulo@0: # have to do anything special. paulo@0: aix_use_runtimelinking=no paulo@0: exp_sym_flag='-Bexport' paulo@0: no_entry_flag="" paulo@0: else paulo@0: # If we're using GNU nm, then we don't want the "-C" option. paulo@0: # -C means demangle to AIX nm, but means don't demangle with GNU nm paulo@0: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: aix_use_runtimelinking=no paulo@0: paulo@0: # Test if we are trying to use run time linking or normal paulo@0: # AIX style linking. If -brtl is somewhere in LDFLAGS, we paulo@0: # need to do runtime linking. paulo@0: case $host_os in aix4.[23]|aix4.[23].*|aix5*) paulo@0: for ld_flag in $LDFLAGS; do paulo@0: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then paulo@0: aix_use_runtimelinking=yes paulo@0: break paulo@0: fi paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: paulo@0: exp_sym_flag='-bexport' paulo@0: no_entry_flag='-bnoentry' paulo@0: fi paulo@0: paulo@0: # When large executables or shared objects are built, AIX ld can paulo@0: # have problems creating the table of contents. If linking a library paulo@0: # or program results in "error TOC overflow" add -mminimal-toc to paulo@0: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not paulo@0: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. paulo@0: paulo@0: archive_cmds_F77='' paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_libdir_separator_F77=':' paulo@0: link_all_deplibs_F77=yes paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: case $host_os in aix4.[012]|aix4.[012].*) paulo@0: # We only want to do this on AIX 4.2 and lower, the check paulo@0: # below for broken collect2 doesn't work under 4.3+ paulo@0: collect2name=`${CC} -print-prog-name=collect2` paulo@0: if test -f "$collect2name" && \ paulo@0: strings "$collect2name" | grep resolve_lib_name >/dev/null paulo@0: then paulo@0: # We have reworked collect2 paulo@0: hardcode_direct_F77=yes paulo@0: else paulo@0: # We have old collect2 paulo@0: hardcode_direct_F77=unsupported paulo@0: # It fails to find uninstalled libraries when the uninstalled paulo@0: # path is not listed in the libpath. Setting hardcode_minus_L paulo@0: # to unsupported forces relinking paulo@0: hardcode_minus_L_F77=yes paulo@0: hardcode_libdir_flag_spec_F77='-L$libdir' paulo@0: hardcode_libdir_separator_F77= paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: shared_flag='-shared' paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: shared_flag="$shared_flag "'${wl}-G' paulo@0: fi paulo@0: else paulo@0: # not using gcc paulo@0: if test "$host_cpu" = ia64; then paulo@0: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release paulo@0: # chokes on -Wl,-G. The following line is correct: paulo@0: shared_flag='-G' paulo@0: else paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: shared_flag='${wl}-G' paulo@0: else paulo@0: shared_flag='${wl}-bM:SRE' paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: paulo@0: # It seems that -bexpall does not export symbols beginning with paulo@0: # underscore (_), so it is better to generate a list of symbols to export. paulo@0: always_export_symbols_F77=yes paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: # Warning - without using the other runtime loading flags (-brtl), paulo@0: # -berok will link without error, but may produce a broken library. paulo@0: allow_undefined_flag_F77='-berok' paulo@0: # Determine the default libpath from the value encoded in an empty executable. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: program main paulo@0: paulo@0: end paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: paulo@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } paulo@0: }'` paulo@0: # Check for a 64-bit object if we didn't find anything. paulo@0: 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; } paulo@0: }'`; fi paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi paulo@0: paulo@0: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" paulo@0: archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" paulo@0: else paulo@0: if test "$host_cpu" = ia64; then paulo@0: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' paulo@0: allow_undefined_flag_F77="-z nodefs" paulo@0: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" paulo@0: else paulo@0: # Determine the default libpath from the value encoded in an empty executable. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: program main paulo@0: paulo@0: end paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: paulo@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } paulo@0: }'` paulo@0: # Check for a 64-bit object if we didn't find anything. paulo@0: 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; } paulo@0: }'`; fi paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi paulo@0: paulo@0: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" paulo@0: # Warning - without using the other run time loading flags, paulo@0: # -berok will link without error, but may produce a broken library. paulo@0: no_undefined_flag_F77=' ${wl}-bernotok' paulo@0: allow_undefined_flag_F77=' ${wl}-berok' paulo@0: # Exported symbols can be pulled into shared objects from archives paulo@0: whole_archive_flag_spec_F77='$convenience' paulo@0: archive_cmds_need_lc_F77=yes paulo@0: # This is similar to how AIX traditionally builds its shared libraries. paulo@0: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' paulo@0: fi paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: 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)' paulo@0: hardcode_libdir_flag_spec_F77='-L$libdir' paulo@0: hardcode_minus_L_F77=yes paulo@0: # see comment about different semantics on the GNU ld section paulo@0: ld_shlibs_F77=no paulo@0: ;; paulo@0: paulo@0: bsdi[45]*) paulo@0: export_dynamic_flag_spec_F77=-rdynamic paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: # When not using gcc, we currently assume that we are using paulo@0: # Microsoft Visual C++. paulo@0: # hardcode_libdir_flag_spec is actually meaningless, as there is paulo@0: # no search path for DLLs. paulo@0: hardcode_libdir_flag_spec_F77=' ' paulo@0: allow_undefined_flag_F77=unsupported paulo@0: # Tell ltmain to make .lib files, not .a files. paulo@0: libext=lib paulo@0: # Tell ltmain to make .dll files, not .so files. paulo@0: shrext_cmds=".dll" paulo@0: # FIXME: Setting linknames here is a bad hack. paulo@0: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' paulo@0: # The linker will automatically build a .lib file if we build a DLL. paulo@0: old_archive_From_new_cmds_F77='true' paulo@0: # FIXME: Should let the user specify the lib program. paulo@0: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' paulo@0: fix_srcfile_path_F77='`cygpath -w "$srcfile"`' paulo@0: enable_shared_with_static_runtimes_F77=yes paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: case $host_os in paulo@0: rhapsody* | darwin1.[012]) paulo@0: allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' paulo@0: ;; paulo@0: *) # Darwin 1.3 on paulo@0: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then paulo@0: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' paulo@0: else paulo@0: case ${MACOSX_DEPLOYMENT_TARGET} in paulo@0: 10.[012]) paulo@0: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' paulo@0: ;; paulo@0: 10.*) paulo@0: allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: archive_cmds_need_lc_F77=no paulo@0: hardcode_direct_F77=no paulo@0: hardcode_automatic_F77=yes paulo@0: hardcode_shlibpath_var_F77=unsupported paulo@0: whole_archive_flag_spec_F77='' paulo@0: link_all_deplibs_F77=yes paulo@0: if test "$GCC" = yes ; then paulo@0: output_verbose_link_cmd='echo' paulo@0: archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' paulo@0: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' paulo@0: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds paulo@0: 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}' paulo@0: 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}' paulo@0: else paulo@0: case $cc_basename in paulo@0: xlc*) paulo@0: output_verbose_link_cmd='echo' paulo@0: archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' paulo@0: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' paulo@0: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds paulo@0: 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}' paulo@0: 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}' paulo@0: ;; paulo@0: *) paulo@0: ld_shlibs_F77=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: dgux*) paulo@0: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec_F77='-L$libdir' paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: freebsd1*) paulo@0: ld_shlibs_F77=no paulo@0: ;; paulo@0: paulo@0: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor paulo@0: # support. Future versions do this automatically, but an explicit c++rt0.o paulo@0: # does not break anything, and helps significantly (at the cost of a little paulo@0: # extra space). paulo@0: freebsd2.2*) paulo@0: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' paulo@0: hardcode_libdir_flag_spec_F77='-R$libdir' paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: # Unfortunately, older versions of FreeBSD 2 do not have this feature. paulo@0: freebsd2*) paulo@0: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_minus_L_F77=yes paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. paulo@0: freebsd* | dragonfly*) paulo@0: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec_F77='-R$libdir' paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: # GNU/kFreeBSD uses gcc -shared to do shared libraries. paulo@0: kfreebsd*-gnu) paulo@0: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec_F77='-R$libdir' paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_shlibpath_var_F77=no paulo@0: link_all_deplibs_F77=no paulo@0: ;; paulo@0: paulo@0: hpux9*) paulo@0: if test "$GCC" = yes; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator_F77=: paulo@0: hardcode_direct_F77=yes paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L_F77=yes paulo@0: export_dynamic_flag_spec_F77='${wl}-E' paulo@0: ;; paulo@0: paulo@0: hpux10*) paulo@0: if test "$GCC" = yes -a "$with_gnu_ld" = no; then paulo@0: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' paulo@0: fi paulo@0: if test "$with_gnu_ld" = no; then paulo@0: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator_F77=: paulo@0: paulo@0: hardcode_direct_F77=yes paulo@0: export_dynamic_flag_spec_F77='${wl}-E' paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L_F77=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: hpux11*) paulo@0: if test "$GCC" = yes -a "$with_gnu_ld" = no; then paulo@0: case $host_cpu in paulo@0: hppa*64*) paulo@0: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: ia64*) paulo@0: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: case $host_cpu in paulo@0: hppa*64*) paulo@0: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: ia64*) paulo@0: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: if test "$with_gnu_ld" = no; then paulo@0: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator_F77=: paulo@0: paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: hardcode_libdir_flag_spec_ld_F77='+b $libdir' paulo@0: hardcode_direct_F77=no paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: *) paulo@0: hardcode_direct_F77=yes paulo@0: export_dynamic_flag_spec_F77='${wl}-E' paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L_F77=yes paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: if test "$GCC" = yes; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_F77=: paulo@0: link_all_deplibs_F77=yes paulo@0: ;; paulo@0: paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out paulo@0: else paulo@0: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF paulo@0: fi paulo@0: hardcode_libdir_flag_spec_F77='-R$libdir' paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_F77=: paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: openbsd*) paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_shlibpath_var_F77=no paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' paulo@0: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' paulo@0: export_dynamic_flag_spec_F77='${wl}-E' paulo@0: else paulo@0: case $host_os in paulo@0: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) paulo@0: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec_F77='-R$libdir' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: os2*) paulo@0: hardcode_libdir_flag_spec_F77='-L$libdir' paulo@0: hardcode_minus_L_F77=yes paulo@0: allow_undefined_flag_F77=unsupported paulo@0: 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' paulo@0: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' paulo@0: ;; paulo@0: paulo@0: osf3*) paulo@0: if test "$GCC" = yes; then paulo@0: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: else paulo@0: allow_undefined_flag_F77=' -expect_unresolved \*' paulo@0: 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' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_F77=: paulo@0: ;; paulo@0: paulo@0: osf4* | osf5*) # as osf3* with the addition of -msym flag paulo@0: if test "$GCC" = yes; then paulo@0: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' paulo@0: else paulo@0: allow_undefined_flag_F77=' -expect_unresolved \*' paulo@0: 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' paulo@0: 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~ paulo@0: $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' paulo@0: paulo@0: # Both c and cxx compiler support -rpath directly paulo@0: hardcode_libdir_flag_spec_F77='-rpath $libdir' paulo@0: fi paulo@0: hardcode_libdir_separator_F77=: paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: no_undefined_flag_F77=' -z text' paulo@0: if test "$GCC" = yes; then paulo@0: wlarc='${wl}' paulo@0: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' paulo@0: else paulo@0: wlarc='' paulo@0: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_F77='-R$libdir' paulo@0: hardcode_shlibpath_var_F77=no paulo@0: case $host_os in paulo@0: solaris2.[0-5] | solaris2.[0-5].*) ;; paulo@0: *) paulo@0: # The compiler driver will combine linker options so we paulo@0: # cannot just pass the convience library names through paulo@0: # without $wl, iff we do not link with $LD. paulo@0: # Luckily, gcc supports the same syntax we need for Sun Studio. paulo@0: # Supported since Solaris 2.6 (maybe 2.5.1?) paulo@0: case $wlarc in paulo@0: '') paulo@0: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; paulo@0: *) paulo@0: 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' ;; paulo@0: esac ;; paulo@0: esac paulo@0: link_all_deplibs_F77=yes paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: if test "x$host_vendor" = xsequent; then paulo@0: # Use $CC to link under sequent, because it throws in some extra .o paulo@0: # files that make .init and .fini sections work. paulo@0: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_F77='-L$libdir' paulo@0: hardcode_direct_F77=yes paulo@0: hardcode_minus_L_F77=yes paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: sysv4) paulo@0: case $host_vendor in paulo@0: sni) paulo@0: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct_F77=yes # is this really true??? paulo@0: ;; paulo@0: siemens) paulo@0: ## LD is ld it makes a PLAMLIB paulo@0: ## CC just makes a GrossModule. paulo@0: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' paulo@0: reload_cmds_F77='$CC -r -o $output$reload_objs' paulo@0: hardcode_direct_F77=no paulo@0: ;; paulo@0: motorola) paulo@0: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie paulo@0: ;; paulo@0: esac paulo@0: runpath_var='LD_RUN_PATH' paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: sysv4.3*) paulo@0: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_shlibpath_var_F77=no paulo@0: export_dynamic_flag_spec_F77='-Bexport' paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec; then paulo@0: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_shlibpath_var_F77=no paulo@0: runpath_var=LD_RUN_PATH paulo@0: hardcode_runpath_var=yes paulo@0: ld_shlibs_F77=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) paulo@0: no_undefined_flag_F77='${wl}-z,text' paulo@0: archive_cmds_need_lc_F77=no paulo@0: hardcode_shlibpath_var_F77=no paulo@0: runpath_var='LD_RUN_PATH' paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6*) paulo@0: # Note: We can NOT use -z defs as we might desire, because we do not paulo@0: # link with -lc, and that would cause any symbols used from libc to paulo@0: # always be unresolved, which means just about no library would paulo@0: # ever link correctly. If we're not using GNU ld we use -z text paulo@0: # though, which does catch some bad symbols but isn't as heavy-handed paulo@0: # as -z defs. paulo@0: no_undefined_flag_F77='${wl}-z,text' paulo@0: allow_undefined_flag_F77='${wl}-z,nodefs' paulo@0: archive_cmds_need_lc_F77=no paulo@0: hardcode_shlibpath_var_F77=no paulo@0: hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' paulo@0: hardcode_libdir_separator_F77=':' paulo@0: link_all_deplibs_F77=yes paulo@0: export_dynamic_flag_spec_F77='${wl}-Bexport' paulo@0: runpath_var='LD_RUN_PATH' paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec_F77='-L$libdir' paulo@0: hardcode_shlibpath_var_F77=no paulo@0: ;; paulo@0: paulo@0: *) paulo@0: ld_shlibs_F77=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 paulo@0: echo "${ECHO_T}$ld_shlibs_F77" >&6 paulo@0: test "$ld_shlibs_F77" = no && can_build_shared=no paulo@0: paulo@0: # paulo@0: # Do we need to explicitly link libc? paulo@0: # paulo@0: case "x$archive_cmds_need_lc_F77" in paulo@0: x|xyes) paulo@0: # Assume -lc should be added paulo@0: archive_cmds_need_lc_F77=yes paulo@0: paulo@0: if test "$enable_shared" = yes && test "$GCC" = yes; then paulo@0: case $archive_cmds_F77 in paulo@0: *'~'*) paulo@0: # FIXME: we may have to deal with multi-command sequences. paulo@0: ;; paulo@0: '$CC '*) paulo@0: # Test whether the compiler implicitly links with -lc since on some paulo@0: # systems, -lgcc has to come before -lc. If gcc already passes -lc paulo@0: # to ld, don't add -lc before -lgcc. paulo@0: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 paulo@0: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 paulo@0: $rm conftest* paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } 2>conftest.err; then paulo@0: soname=conftest paulo@0: lib=conftest paulo@0: libobjs=conftest.$ac_objext paulo@0: deplibs= paulo@0: wl=$lt_prog_compiler_wl_F77 paulo@0: pic_flag=$lt_prog_compiler_pic_F77 paulo@0: compiler_flags=-v paulo@0: linker_flags=-v paulo@0: verstring= paulo@0: output_objdir=. paulo@0: libname=conftest paulo@0: lt_save_allow_undefined_flag=$allow_undefined_flag_F77 paulo@0: allow_undefined_flag_F77= paulo@0: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 paulo@0: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: then paulo@0: archive_cmds_need_lc_F77=no paulo@0: else paulo@0: archive_cmds_need_lc_F77=yes paulo@0: fi paulo@0: allow_undefined_flag_F77=$lt_save_allow_undefined_flag paulo@0: else paulo@0: cat conftest.err 1>&5 paulo@0: fi paulo@0: $rm conftest* paulo@0: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 paulo@0: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 paulo@0: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 paulo@0: library_names_spec= paulo@0: libname_spec='lib$name' paulo@0: soname_spec= paulo@0: shrext_cmds=".so" paulo@0: postinstall_cmds= paulo@0: postuninstall_cmds= paulo@0: finish_cmds= paulo@0: finish_eval= paulo@0: shlibpath_var= paulo@0: shlibpath_overrides_runpath=unknown paulo@0: version_type=none paulo@0: dynamic_linker="$host_os ld.so" paulo@0: sys_lib_dlsearch_path_spec="/lib /usr/lib" paulo@0: if test "$GCC" = yes; then paulo@0: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` paulo@0: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then paulo@0: # if the path contains ";" then we assume it to be the separator paulo@0: # otherwise default to the standard path separator (i.e. ":") - it is paulo@0: # assumed that no part of a normal pathname contains ";" but that should paulo@0: # okay in the real world where ";" in dirpaths is itself problematic. paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` paulo@0: else paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` paulo@0: fi paulo@0: else paulo@0: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" paulo@0: fi paulo@0: need_lib_prefix=unknown paulo@0: hardcode_into_libs=no paulo@0: paulo@0: # when you set need_version to no, make sure it does not cause -set_version paulo@0: # flags to be left without arguments paulo@0: need_version=unknown paulo@0: paulo@0: case $host_os in paulo@0: aix3*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' paulo@0: shlibpath_var=LIBPATH paulo@0: paulo@0: # AIX 3 has no versioning support, so we append a major version to the name. paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: ;; paulo@0: paulo@0: aix4* | aix5*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: hardcode_into_libs=yes paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 supports IA64 paulo@0: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: else paulo@0: # With GCC up to 2.95.x, collect2 would create an import file paulo@0: # for dependence libraries. The import file would start with paulo@0: # the line `#! .'. This would cause the generated library to paulo@0: # depend on `.', always an invalid library. This was fixed in paulo@0: # development snapshots of GCC prior to 3.0. paulo@0: case $host_os in paulo@0: aix4 | aix4.[01] | aix4.[01].*) paulo@0: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' paulo@0: echo ' yes ' paulo@0: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then paulo@0: : paulo@0: else paulo@0: can_build_shared=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct paulo@0: # soname into executable. Probably we can add versioning support to paulo@0: # collect2, so additional links can be useful in future. paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: # If using run time linking (on AIX 4.2 or later) use lib.so paulo@0: # instead of lib.a to let people know that these are not paulo@0: # typical AIX shared libraries. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: else paulo@0: # We preserve .a as extension for shared libraries through AIX4.2 paulo@0: # and later when we are not doing run time linking. paulo@0: library_names_spec='${libname}${release}.a $libname.a' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: fi paulo@0: shlibpath_var=LIBPATH paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: library_names_spec='$libname.ixlibrary $libname.a' paulo@0: # Create ${libname}_ixlibrary.a entries in /sys/libs. paulo@0: 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' paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: library_names_spec='${libname}${shared_ext}' paulo@0: dynamic_linker="$host_os ld.so" paulo@0: shlibpath_var=LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: bsdi[45]*) paulo@0: version_type=linux paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" paulo@0: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" paulo@0: # the default ld.so.conf also contains /usr/contrib/lib and paulo@0: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow paulo@0: # libtool to hard-code these into programs paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: version_type=windows paulo@0: shrext_cmds=".dll" paulo@0: need_version=no paulo@0: need_lib_prefix=no paulo@0: paulo@0: case $GCC,$host_os in paulo@0: yes,cygwin* | yes,mingw* | yes,pw32*) paulo@0: library_names_spec='$libname.dll.a' paulo@0: # DLL is installed to $(libdir)/../bin by postinstall_cmds paulo@0: postinstall_cmds='base_file=`basename \${file}`~ paulo@0: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ paulo@0: dldir=$destdir/`dirname \$dlpath`~ paulo@0: test -d \$dldir || mkdir -p \$dldir~ paulo@0: $install_prog $dir/$dlname \$dldir/$dlname~ paulo@0: chmod a+x \$dldir/$dlname' paulo@0: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ paulo@0: dlpath=$dir/\$dldll~ paulo@0: $rm \$dlpath' paulo@0: shlibpath_overrides_runpath=yes paulo@0: paulo@0: case $host_os in paulo@0: cygwin*) paulo@0: # Cygwin DLLs use 'cyg' prefix rather than 'lib' paulo@0: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" paulo@0: ;; paulo@0: mingw*) paulo@0: # MinGW DLLs use traditional 'lib' prefix paulo@0: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` paulo@0: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then paulo@0: # It is most probably a Windows format PATH printed by paulo@0: # mingw gcc, but we are running on Cygwin. Gcc prints its search paulo@0: # path with ; separators, and with drive letters. We can handle the paulo@0: # drive letters (cygwin fileutils understands them), so leave them, paulo@0: # especially as we might pass files found there to a mingw objdump, paulo@0: # which wouldn't understand a cygwinified path. Ahh. paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` paulo@0: else paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` paulo@0: fi paulo@0: ;; paulo@0: pw32*) paulo@0: # pw32 DLLs use 'pw' prefix rather than 'lib' paulo@0: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: *) paulo@0: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' paulo@0: ;; paulo@0: esac paulo@0: dynamic_linker='Win32 ld.exe' paulo@0: # FIXME: first we should search . and the directory the executable is in paulo@0: shlibpath_var=PATH paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: dynamic_linker="$host_os dyld" paulo@0: version_type=darwin paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' paulo@0: soname_spec='${libname}${release}${major}$shared_ext' paulo@0: shlibpath_overrides_runpath=yes paulo@0: shlibpath_var=DYLD_LIBRARY_PATH paulo@0: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' paulo@0: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. paulo@0: if test "$GCC" = yes; then paulo@0: 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"` paulo@0: else paulo@0: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' paulo@0: ;; paulo@0: paulo@0: dgux*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: freebsd1*) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: paulo@0: kfreebsd*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='GNU ld.so' paulo@0: ;; paulo@0: paulo@0: freebsd* | dragonfly*) paulo@0: # DragonFly does not have aout. When/if they implement a new paulo@0: # versioning mechanism, adjust this. paulo@0: if test -x /usr/bin/objformat; then paulo@0: objformat=`/usr/bin/objformat` paulo@0: else paulo@0: case $host_os in paulo@0: freebsd[123]*) objformat=aout ;; paulo@0: *) objformat=elf ;; paulo@0: esac paulo@0: fi paulo@0: version_type=freebsd-$objformat paulo@0: case $version_type in paulo@0: freebsd-elf*) paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: need_version=no paulo@0: need_lib_prefix=no paulo@0: ;; paulo@0: freebsd-*) paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' paulo@0: need_version=yes paulo@0: ;; paulo@0: esac paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: case $host_os in paulo@0: freebsd2*) paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: freebsd3.[01]* | freebsdelf3.[01]*) paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ paulo@0: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: freebsd*) # from 4.6 on paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: gnu*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: hpux9* | hpux10* | hpux11*) paulo@0: # Give a soname corresponding to the major version so that dld.sl refuses to paulo@0: # link against other versions. paulo@0: version_type=sunos paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: case $host_cpu in paulo@0: ia64*) paulo@0: shrext_cmds='.so' paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker="$host_os dld.so" paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: if test "X$HPUX_IA64_MODE" = X32; then paulo@0: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" paulo@0: else paulo@0: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec paulo@0: ;; paulo@0: hppa*64*) paulo@0: shrext_cmds='.sl' paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker="$host_os dld.sl" paulo@0: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH paulo@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" paulo@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec paulo@0: ;; paulo@0: *) paulo@0: shrext_cmds='.sl' paulo@0: dynamic_linker="$host_os dld.sl" paulo@0: shlibpath_var=SHLIB_PATH paulo@0: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: ;; paulo@0: esac paulo@0: # HP-UX runs *really* slowly unless shared libraries are mode 555. paulo@0: postinstall_cmds='chmod 555 $lib' paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: case $host_os in paulo@0: nonstopux*) version_type=nonstopux ;; paulo@0: *) paulo@0: if test "$lt_cv_prog_gnu_ld" = yes; then paulo@0: version_type=linux paulo@0: else paulo@0: version_type=irix paulo@0: fi ;; paulo@0: esac paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: case $host_os in paulo@0: irix5* | nonstopux*) paulo@0: libsuff= shlibsuff= paulo@0: ;; paulo@0: *) paulo@0: case $LD in # libtool.m4 will add one of these switches to LD paulo@0: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") paulo@0: libsuff= shlibsuff= libmagic=32-bit;; paulo@0: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") paulo@0: libsuff=32 shlibsuff=N32 libmagic=N32;; paulo@0: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") paulo@0: libsuff=64 shlibsuff=64 libmagic=64-bit;; paulo@0: *) libsuff= shlibsuff= libmagic=never-match;; paulo@0: esac paulo@0: ;; paulo@0: esac paulo@0: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" paulo@0: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: # No shared lib support for Linux oldld, aout, or coff. paulo@0: linux*oldld* | linux*aout* | linux*coff*) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: paulo@0: # This must be Linux ELF. paulo@0: linux*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: # This implies no fast_install, which is unacceptable. paulo@0: # Some rework will be needed to allow for fast_install paulo@0: # before this can be enabled. paulo@0: hardcode_into_libs=yes paulo@0: paulo@0: # Append ld.so.conf contents to the search path paulo@0: if test -f /etc/ld.so.conf; then paulo@0: 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' ' '` paulo@0: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" paulo@0: fi paulo@0: paulo@0: # We used to test for /lib/ld.so.1 and disable shared libraries on paulo@0: # powerpc, because MkLinux only supported shared libraries with the paulo@0: # GNU dynamic linker. Since this was broken with cross compilers, paulo@0: # most powerpc-linux boxes support dynamic linking these days and paulo@0: # people can always --disable-shared, the test was removed, and we paulo@0: # assume the GNU/Linux dynamic linker is in use. paulo@0: dynamic_linker='GNU/Linux ld.so' paulo@0: ;; paulo@0: paulo@0: netbsdelf*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='NetBSD ld.elf_so' paulo@0: ;; paulo@0: paulo@0: knetbsd*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='GNU ld.so' paulo@0: ;; paulo@0: paulo@0: netbsd*) paulo@0: version_type=sunos paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' paulo@0: dynamic_linker='NetBSD (a.out) ld.so' paulo@0: else paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: dynamic_linker='NetBSD ld.elf_so' paulo@0: fi paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: paulo@0: nto-qnx*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: paulo@0: openbsd*) paulo@0: version_type=sunos paulo@0: sys_lib_dlsearch_path_spec="/usr/lib" paulo@0: need_lib_prefix=no paulo@0: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. paulo@0: case $host_os in paulo@0: openbsd3.3 | openbsd3.3.*) need_version=yes ;; paulo@0: *) need_version=no ;; paulo@0: esac paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: case $host_os in paulo@0: openbsd2.[89] | openbsd2.[89].*) paulo@0: shlibpath_overrides_runpath=no paulo@0: ;; paulo@0: *) paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: shlibpath_overrides_runpath=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: os2*) paulo@0: libname_spec='$name' paulo@0: shrext_cmds=".dll" paulo@0: need_lib_prefix=no paulo@0: library_names_spec='$libname${shared_ext} $libname.a' paulo@0: dynamic_linker='OS/2 ld.exe' paulo@0: shlibpath_var=LIBPATH paulo@0: ;; paulo@0: paulo@0: osf3* | osf4* | osf5*) paulo@0: version_type=osf paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" paulo@0: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: # ldd complains unless libraries are executable paulo@0: postinstall_cmds='chmod +x $lib' paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: version_type=sunos paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: need_lib_prefix=no paulo@0: fi paulo@0: need_version=yes paulo@0: ;; paulo@0: paulo@0: sysv4 | sysv4.3*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: case $host_vendor in paulo@0: sni) paulo@0: shlibpath_overrides_runpath=no paulo@0: need_lib_prefix=no paulo@0: export_dynamic_flag_spec='${wl}-Blargedynsym' paulo@0: runpath_var=LD_RUN_PATH paulo@0: ;; paulo@0: siemens) paulo@0: need_lib_prefix=no paulo@0: ;; paulo@0: motorola) paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: shlibpath_overrides_runpath=no paulo@0: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec ;then paulo@0: version_type=linux paulo@0: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' paulo@0: soname_spec='$libname${shared_ext}.$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) paulo@0: version_type=freebsd-elf paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: hardcode_into_libs=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' paulo@0: shlibpath_overrides_runpath=no paulo@0: else paulo@0: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' paulo@0: shlibpath_overrides_runpath=yes paulo@0: case $host_os in paulo@0: sco3.2v5*) paulo@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec='/usr/lib' paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: *) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: esac paulo@0: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 paulo@0: echo "${ECHO_T}$dynamic_linker" >&6 paulo@0: test "$dynamic_linker" = no && can_build_shared=no paulo@0: paulo@0: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" paulo@0: if test "$GCC" = yes; then paulo@0: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 paulo@0: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 paulo@0: hardcode_action_F77= paulo@0: if test -n "$hardcode_libdir_flag_spec_F77" || \ paulo@0: test -n "$runpath_var_F77" || \ paulo@0: test "X$hardcode_automatic_F77" = "Xyes" ; then paulo@0: paulo@0: # We can hardcode non-existant directories. paulo@0: if test "$hardcode_direct_F77" != no && paulo@0: # If the only mechanism to avoid hardcoding is shlibpath_var, we paulo@0: # have to relink, otherwise we might link with an installed library paulo@0: # when we should be linking with a yet-to-be-installed one paulo@0: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && paulo@0: test "$hardcode_minus_L_F77" != no; then paulo@0: # Linking always hardcodes the temporary library directory. paulo@0: hardcode_action_F77=relink paulo@0: else paulo@0: # We can link without hardcoding, and we can hardcode nonexisting dirs. paulo@0: hardcode_action_F77=immediate paulo@0: fi paulo@0: else paulo@0: # We cannot hardcode anything, or else we can only hardcode existing paulo@0: # directories. paulo@0: hardcode_action_F77=unsupported paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 paulo@0: echo "${ECHO_T}$hardcode_action_F77" >&6 paulo@0: paulo@0: if test "$hardcode_action_F77" = relink; then paulo@0: # Fast installation is not supported paulo@0: enable_fast_install=no paulo@0: elif test "$shlibpath_overrides_runpath" = yes || paulo@0: test "$enable_shared" = no; then paulo@0: # Fast installation is not necessary paulo@0: enable_fast_install=needless paulo@0: fi paulo@0: paulo@0: paulo@0: # The else clause should only fire when bootstrapping the paulo@0: # libtool distribution, otherwise you forgot to ship ltmain.sh paulo@0: # with your package, and you will get complaints that there are paulo@0: # no rules to generate ltmain.sh. paulo@0: if test -f "$ltmain"; then paulo@0: # See if we are running on zsh, and set the options which allow our commands through paulo@0: # without removal of \ escapes. paulo@0: if test -n "${ZSH_VERSION+set}" ; then paulo@0: setopt NO_GLOB_SUBST paulo@0: fi paulo@0: # Now quote all the things that may contain metacharacters while being paulo@0: # careful not to overquote the AC_SUBSTed values. We take copies of the paulo@0: # variables and quote the copies for generation of the libtool script. paulo@0: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ paulo@0: SED SHELL STRIP \ paulo@0: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ paulo@0: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ paulo@0: deplibs_check_method reload_flag reload_cmds need_locks \ paulo@0: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ paulo@0: lt_cv_sys_global_symbol_to_c_name_address \ paulo@0: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ paulo@0: old_postinstall_cmds old_postuninstall_cmds \ paulo@0: compiler_F77 \ paulo@0: CC_F77 \ paulo@0: LD_F77 \ paulo@0: lt_prog_compiler_wl_F77 \ paulo@0: lt_prog_compiler_pic_F77 \ paulo@0: lt_prog_compiler_static_F77 \ paulo@0: lt_prog_compiler_no_builtin_flag_F77 \ paulo@0: export_dynamic_flag_spec_F77 \ paulo@0: thread_safe_flag_spec_F77 \ paulo@0: whole_archive_flag_spec_F77 \ paulo@0: enable_shared_with_static_runtimes_F77 \ paulo@0: old_archive_cmds_F77 \ paulo@0: old_archive_from_new_cmds_F77 \ paulo@0: predep_objects_F77 \ paulo@0: postdep_objects_F77 \ paulo@0: predeps_F77 \ paulo@0: postdeps_F77 \ paulo@0: compiler_lib_search_path_F77 \ paulo@0: archive_cmds_F77 \ paulo@0: archive_expsym_cmds_F77 \ paulo@0: postinstall_cmds_F77 \ paulo@0: postuninstall_cmds_F77 \ paulo@0: old_archive_from_expsyms_cmds_F77 \ paulo@0: allow_undefined_flag_F77 \ paulo@0: no_undefined_flag_F77 \ paulo@0: export_symbols_cmds_F77 \ paulo@0: hardcode_libdir_flag_spec_F77 \ paulo@0: hardcode_libdir_flag_spec_ld_F77 \ paulo@0: hardcode_libdir_separator_F77 \ paulo@0: hardcode_automatic_F77 \ paulo@0: module_cmds_F77 \ paulo@0: module_expsym_cmds_F77 \ paulo@0: lt_cv_prog_compiler_c_o_F77 \ paulo@0: exclude_expsyms_F77 \ paulo@0: include_expsyms_F77; do paulo@0: paulo@0: case $var in paulo@0: old_archive_cmds_F77 | \ paulo@0: old_archive_from_new_cmds_F77 | \ paulo@0: archive_cmds_F77 | \ paulo@0: archive_expsym_cmds_F77 | \ paulo@0: module_cmds_F77 | \ paulo@0: module_expsym_cmds_F77 | \ paulo@0: old_archive_from_expsyms_cmds_F77 | \ paulo@0: export_symbols_cmds_F77 | \ paulo@0: extract_expsyms_cmds | reload_cmds | finish_cmds | \ paulo@0: postinstall_cmds | postuninstall_cmds | \ paulo@0: old_postinstall_cmds | old_postuninstall_cmds | \ paulo@0: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) paulo@0: # Double-quote double-evaled strings. paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" paulo@0: ;; paulo@0: *) paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: paulo@0: case $lt_echo in paulo@0: *'\$0 --fallback-echo"') paulo@0: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` paulo@0: ;; paulo@0: esac paulo@0: paulo@0: cfgfile="$ofile" paulo@0: paulo@0: cat <<__EOF__ >> "$cfgfile" paulo@0: # ### BEGIN LIBTOOL TAG CONFIG: $tagname paulo@0: paulo@0: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: paulo@0: paulo@0: # Shell to use when invoking shell scripts. paulo@0: SHELL=$lt_SHELL paulo@0: paulo@0: # Whether or not to build shared libraries. paulo@0: build_libtool_libs=$enable_shared paulo@0: paulo@0: # Whether or not to build static libraries. paulo@0: build_old_libs=$enable_static paulo@0: paulo@0: # Whether or not to add -lc for building shared libraries. paulo@0: build_libtool_need_lc=$archive_cmds_need_lc_F77 paulo@0: paulo@0: # Whether or not to disallow shared libs when runtime libs are static paulo@0: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 paulo@0: paulo@0: # Whether or not to optimize for fast installation. paulo@0: fast_install=$enable_fast_install paulo@0: paulo@0: # The host system. paulo@0: host_alias=$host_alias paulo@0: host=$host paulo@0: host_os=$host_os paulo@0: paulo@0: # The build system. paulo@0: build_alias=$build_alias paulo@0: build=$build paulo@0: build_os=$build_os paulo@0: paulo@0: # An echo program that does not interpret backslashes. paulo@0: echo=$lt_echo paulo@0: paulo@0: # The archiver. paulo@0: AR=$lt_AR paulo@0: AR_FLAGS=$lt_AR_FLAGS paulo@0: paulo@0: # A C compiler. paulo@0: LTCC=$lt_LTCC paulo@0: paulo@0: # LTCC compiler flags. paulo@0: LTCFLAGS=$lt_LTCFLAGS paulo@0: paulo@0: # A language-specific compiler. paulo@0: CC=$lt_compiler_F77 paulo@0: paulo@0: # Is the compiler the GNU C compiler? paulo@0: with_gcc=$GCC_F77 paulo@0: paulo@0: # An ERE matcher. paulo@0: EGREP=$lt_EGREP paulo@0: paulo@0: # The linker used to build libraries. paulo@0: LD=$lt_LD_F77 paulo@0: paulo@0: # Whether we need hard or soft links. paulo@0: LN_S=$lt_LN_S paulo@0: paulo@0: # A BSD-compatible nm program. paulo@0: NM=$lt_NM paulo@0: paulo@0: # A symbol stripping program paulo@0: STRIP=$lt_STRIP paulo@0: paulo@0: # Used to examine libraries when file_magic_cmd begins "file" paulo@0: MAGIC_CMD=$MAGIC_CMD paulo@0: paulo@0: # Used on cygwin: DLL creation program. paulo@0: DLLTOOL="$DLLTOOL" paulo@0: paulo@0: # Used on cygwin: object dumper. paulo@0: OBJDUMP="$OBJDUMP" paulo@0: paulo@0: # Used on cygwin: assembler. paulo@0: AS="$AS" paulo@0: paulo@0: # The name of the directory that contains temporary libtool files. paulo@0: objdir=$objdir paulo@0: paulo@0: # How to create reloadable object files. paulo@0: reload_flag=$lt_reload_flag paulo@0: reload_cmds=$lt_reload_cmds paulo@0: paulo@0: # How to pass a linker flag through the compiler. paulo@0: wl=$lt_lt_prog_compiler_wl_F77 paulo@0: paulo@0: # Object file suffix (normally "o"). paulo@0: objext="$ac_objext" paulo@0: paulo@0: # Old archive suffix (normally "a"). paulo@0: libext="$libext" paulo@0: paulo@0: # Shared library suffix (normally ".so"). paulo@0: shrext_cmds='$shrext_cmds' paulo@0: paulo@0: # Executable file suffix (normally ""). paulo@0: exeext="$exeext" paulo@0: paulo@0: # Additional compiler flags for building library objects. paulo@0: pic_flag=$lt_lt_prog_compiler_pic_F77 paulo@0: pic_mode=$pic_mode paulo@0: paulo@0: # What is the maximum length of a command? paulo@0: max_cmd_len=$lt_cv_sys_max_cmd_len paulo@0: paulo@0: # Does compiler simultaneously support -c and -o options? paulo@0: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 paulo@0: paulo@0: # Must we lock files when doing compilation? paulo@0: need_locks=$lt_need_locks paulo@0: paulo@0: # Do we need the lib prefix for modules? paulo@0: need_lib_prefix=$need_lib_prefix paulo@0: paulo@0: # Do we need a version for libraries? paulo@0: need_version=$need_version paulo@0: paulo@0: # Whether dlopen is supported. paulo@0: dlopen_support=$enable_dlopen paulo@0: paulo@0: # Whether dlopen of programs is supported. paulo@0: dlopen_self=$enable_dlopen_self paulo@0: paulo@0: # Whether dlopen of statically linked programs is supported. paulo@0: dlopen_self_static=$enable_dlopen_self_static paulo@0: paulo@0: # Compiler flag to prevent dynamic linking. paulo@0: link_static_flag=$lt_lt_prog_compiler_static_F77 paulo@0: paulo@0: # Compiler flag to turn off builtin functions. paulo@0: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 paulo@0: paulo@0: # Compiler flag to allow reflexive dlopens. paulo@0: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 paulo@0: paulo@0: # Compiler flag to generate shared objects directly from archives. paulo@0: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 paulo@0: paulo@0: # Compiler flag to generate thread-safe objects. paulo@0: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 paulo@0: paulo@0: # Library versioning type. paulo@0: version_type=$version_type paulo@0: paulo@0: # Format of library name prefix. paulo@0: libname_spec=$lt_libname_spec paulo@0: paulo@0: # List of archive names. First name is the real one, the rest are links. paulo@0: # The last name is the one that the linker finds with -lNAME. paulo@0: library_names_spec=$lt_library_names_spec paulo@0: paulo@0: # The coded name of the library, if different from the real name. paulo@0: soname_spec=$lt_soname_spec paulo@0: paulo@0: # Commands used to build and install an old-style archive. paulo@0: RANLIB=$lt_RANLIB paulo@0: old_archive_cmds=$lt_old_archive_cmds_F77 paulo@0: old_postinstall_cmds=$lt_old_postinstall_cmds paulo@0: old_postuninstall_cmds=$lt_old_postuninstall_cmds paulo@0: paulo@0: # Create an old-style archive from a shared archive. paulo@0: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 paulo@0: paulo@0: # Create a temporary old-style archive to link instead of a shared archive. paulo@0: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 paulo@0: paulo@0: # Commands used to build and install a shared archive. paulo@0: archive_cmds=$lt_archive_cmds_F77 paulo@0: archive_expsym_cmds=$lt_archive_expsym_cmds_F77 paulo@0: postinstall_cmds=$lt_postinstall_cmds paulo@0: postuninstall_cmds=$lt_postuninstall_cmds paulo@0: paulo@0: # Commands used to build a loadable module (assumed same as above if empty) paulo@0: module_cmds=$lt_module_cmds_F77 paulo@0: module_expsym_cmds=$lt_module_expsym_cmds_F77 paulo@0: paulo@0: # Commands to strip libraries. paulo@0: old_striplib=$lt_old_striplib paulo@0: striplib=$lt_striplib paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predep_objects=$lt_predep_objects_F77 paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdep_objects=$lt_postdep_objects_F77 paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predeps=$lt_predeps_F77 paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdeps=$lt_postdeps_F77 paulo@0: paulo@0: # The library search path used internally by the compiler when linking paulo@0: # a shared library. paulo@0: compiler_lib_search_path=$lt_compiler_lib_search_path_F77 paulo@0: paulo@0: # Method to check whether dependent libraries are shared objects. paulo@0: deplibs_check_method=$lt_deplibs_check_method paulo@0: paulo@0: # Command to use when deplibs_check_method == file_magic. paulo@0: file_magic_cmd=$lt_file_magic_cmd paulo@0: paulo@0: # Flag that allows shared libraries with undefined symbols to be built. paulo@0: allow_undefined_flag=$lt_allow_undefined_flag_F77 paulo@0: paulo@0: # Flag that forces no undefined symbols. paulo@0: no_undefined_flag=$lt_no_undefined_flag_F77 paulo@0: paulo@0: # Commands used to finish a libtool library installation in a directory. paulo@0: finish_cmds=$lt_finish_cmds paulo@0: paulo@0: # Same as above, but a single script fragment to be evaled but not shown. paulo@0: finish_eval=$lt_finish_eval paulo@0: paulo@0: # Take the output of nm and produce a listing of raw symbols and C names. paulo@0: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe paulo@0: paulo@0: # Transform the output of nm in a proper C declaration paulo@0: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl paulo@0: paulo@0: # Transform the output of nm in a C name address pair paulo@0: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address paulo@0: paulo@0: # This is the shared library runtime path variable. paulo@0: runpath_var=$runpath_var paulo@0: paulo@0: # This is the shared library path variable. paulo@0: shlibpath_var=$shlibpath_var paulo@0: paulo@0: # Is shlibpath searched before the hard-coded library search path? paulo@0: shlibpath_overrides_runpath=$shlibpath_overrides_runpath paulo@0: paulo@0: # How to hardcode a shared library path into an executable. paulo@0: hardcode_action=$hardcode_action_F77 paulo@0: paulo@0: # Whether we should hardcode library paths into libraries. paulo@0: hardcode_into_libs=$hardcode_into_libs paulo@0: paulo@0: # Flag to hardcode \$libdir into a binary during linking. paulo@0: # This must work even if \$libdir does not exist. paulo@0: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 paulo@0: paulo@0: # If ld is used when linking, flag to hardcode \$libdir into paulo@0: # a binary during linking. This must work even if \$libdir does paulo@0: # not exist. paulo@0: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 paulo@0: paulo@0: # Whether we need a single -rpath flag with a separated argument. paulo@0: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 paulo@0: paulo@0: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_direct=$hardcode_direct_F77 paulo@0: paulo@0: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_minus_L=$hardcode_minus_L_F77 paulo@0: paulo@0: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into paulo@0: # the resulting binary. paulo@0: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 paulo@0: paulo@0: # Set to yes if building a shared library automatically hardcodes DIR into the library paulo@0: # and all subsequent libraries and executables linked against it. paulo@0: hardcode_automatic=$hardcode_automatic_F77 paulo@0: paulo@0: # Variables whose values should be saved in libtool wrapper scripts and paulo@0: # restored at relink time. paulo@0: variables_saved_for_relink="$variables_saved_for_relink" paulo@0: paulo@0: # Whether libtool must link a program against all its dependency libraries. paulo@0: link_all_deplibs=$link_all_deplibs_F77 paulo@0: paulo@0: # Compile-time system search path for libraries paulo@0: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec paulo@0: paulo@0: # Run-time system search path for libraries paulo@0: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec paulo@0: paulo@0: # Fix the shell variable \$srcfile for the compiler. paulo@0: fix_srcfile_path="$fix_srcfile_path_F77" paulo@0: paulo@0: # Set to yes if exported symbols are required. paulo@0: always_export_symbols=$always_export_symbols_F77 paulo@0: paulo@0: # The commands to list exported symbols. paulo@0: export_symbols_cmds=$lt_export_symbols_cmds_F77 paulo@0: paulo@0: # The commands to extract the exported symbol list from a shared archive. paulo@0: extract_expsyms_cmds=$lt_extract_expsyms_cmds paulo@0: paulo@0: # Symbols that should not be listed in the preloaded symbols. paulo@0: exclude_expsyms=$lt_exclude_expsyms_F77 paulo@0: paulo@0: # Symbols that must always be exported. paulo@0: include_expsyms=$lt_include_expsyms_F77 paulo@0: paulo@0: # ### END LIBTOOL TAG CONFIG: $tagname paulo@0: paulo@0: __EOF__ paulo@0: paulo@0: paulo@0: else paulo@0: # If there is no Makefile yet, we rely on a make rule to execute paulo@0: # `config.status --recheck' to rerun these tests and create the paulo@0: # libtool script then. paulo@0: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` paulo@0: if test -f "$ltmain_in"; then paulo@0: test -f Makefile && make "$ltmain" paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: CC="$lt_save_CC" paulo@0: paulo@0: else paulo@0: tagname="" paulo@0: fi paulo@0: ;; paulo@0: paulo@0: GCJ) paulo@0: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then paulo@0: paulo@0: paulo@0: paulo@0: # Source file extension for Java test sources. paulo@0: ac_ext=java paulo@0: paulo@0: # Object file extension for compiled Java test sources. paulo@0: objext=o paulo@0: objext_GCJ=$objext paulo@0: paulo@0: # Code to be used in simple compile tests paulo@0: lt_simple_compile_test_code="class foo {}\n" paulo@0: paulo@0: # Code to be used in simple link tests paulo@0: lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' paulo@0: paulo@0: # ltmain only uses $CC for tagged configurations so make sure $CC is set. paulo@0: paulo@0: # If no C compiler was specified, use CC. paulo@0: LTCC=${LTCC-"$CC"} paulo@0: paulo@0: # If no C compiler flags were specified, use CFLAGS. paulo@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: compiler=$CC paulo@0: paulo@0: paulo@0: # save warnings/boilerplate of simple test code paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" >conftest.$ac_ext paulo@0: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_compiler_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_link_test_code" >conftest.$ac_ext paulo@0: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_linker_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: lt_save_CC="$CC" paulo@0: CC=${GCJ-"gcj"} paulo@0: compiler=$CC paulo@0: compiler_GCJ=$CC paulo@0: for cc_temp in $compiler""; do paulo@0: case $cc_temp in paulo@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; paulo@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; paulo@0: \-*) ;; paulo@0: *) break;; paulo@0: esac paulo@0: done paulo@0: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` paulo@0: paulo@0: paulo@0: # GCJ did not exist at the time GCC didn't implicitly link libc in. paulo@0: archive_cmds_need_lc_GCJ=no paulo@0: paulo@0: old_archive_cmds_GCJ=$old_archive_cmds paulo@0: paulo@0: paulo@0: lt_prog_compiler_no_builtin_flag_GCJ= paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 paulo@0: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 paulo@0: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_cv_prog_compiler_rtti_exceptions=no paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: lt_compiler_flag="-fno-rtti -fno-exceptions" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: # The option is referenced via a variable to avoid confusing sed. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:15718: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>conftest.err) paulo@0: ac_status=$? paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:15722: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s "$ac_outfile"; then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings other than the usual output. paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_cv_prog_compiler_rtti_exceptions=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 paulo@0: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 paulo@0: paulo@0: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then paulo@0: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" paulo@0: else paulo@0: : paulo@0: fi paulo@0: paulo@0: fi paulo@0: paulo@0: lt_prog_compiler_wl_GCJ= paulo@0: lt_prog_compiler_pic_GCJ= paulo@0: lt_prog_compiler_static_GCJ= paulo@0: paulo@0: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 paulo@0: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: lt_prog_compiler_static_GCJ='-static' paulo@0: paulo@0: case $host_os in paulo@0: aix*) paulo@0: # All AIX code is PIC. paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 now supports IA64 processor paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: # FIXME: we need at least 68020 code to build shared libraries, but paulo@0: # adding the `-m68020' flag to GCC prevents building anything better, paulo@0: # like `-m68040'. paulo@0: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' paulo@0: ;; paulo@0: paulo@0: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) paulo@0: # PIC is the default for these OSes. paulo@0: ;; paulo@0: paulo@0: mingw* | pw32* | os2*) paulo@0: # This hack is so that the source file can tell whether it is being paulo@0: # built for inclusion in a dll (and should export symbols for example). paulo@0: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: # PIC is the default on this platform paulo@0: # Common symbols not allowed in MH_DYLIB files paulo@0: lt_prog_compiler_pic_GCJ='-fno-common' paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: # Interix 3.x gcc -fpic/-fPIC options generate broken code. paulo@0: # Instead, we relocate shared libraries at runtime. paulo@0: ;; paulo@0: paulo@0: msdosdjgpp*) paulo@0: # Just because we use GCC doesn't mean we suddenly get shared libraries paulo@0: # on systems that don't support them. paulo@0: lt_prog_compiler_can_build_shared_GCJ=no paulo@0: enable_shared=no paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec; then paulo@0: lt_prog_compiler_pic_GCJ=-Kconform_pic paulo@0: fi paulo@0: ;; paulo@0: paulo@0: hpux*) paulo@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but paulo@0: # not for PA HP-UX. paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: # +Z the default paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_GCJ='-fPIC' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: *) paulo@0: lt_prog_compiler_pic_GCJ='-fPIC' paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: # PORTME Check for flag to pass linker flags through the system compiler. paulo@0: case $host_os in paulo@0: aix*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 now supports IA64 processor paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: else paulo@0: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' paulo@0: fi paulo@0: ;; paulo@0: darwin*) paulo@0: # PIC is the default on this platform paulo@0: # Common symbols not allowed in MH_DYLIB files paulo@0: case $cc_basename in paulo@0: xlc*) paulo@0: lt_prog_compiler_pic_GCJ='-qnocommon' paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: mingw* | pw32* | os2*) paulo@0: # This hack is so that the source file can tell whether it is being paulo@0: # built for inclusion in a dll (and should export symbols for example). paulo@0: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' paulo@0: ;; paulo@0: paulo@0: hpux9* | hpux10* | hpux11*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but paulo@0: # not for PA HP-UX. paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: # +Z the default paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_GCJ='+Z' paulo@0: ;; paulo@0: esac paulo@0: # Is there a better lt_prog_compiler_static that works with the bundled CC? paulo@0: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: # PIC (with -KPIC) is the default. paulo@0: lt_prog_compiler_static_GCJ='-non_shared' paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: lt_prog_compiler_pic_GCJ='-KPIC' paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: ;; paulo@0: paulo@0: linux*) paulo@0: case $cc_basename in paulo@0: icc* | ecc*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: lt_prog_compiler_pic_GCJ='-KPIC' paulo@0: lt_prog_compiler_static_GCJ='-static' paulo@0: ;; paulo@0: pgcc* | pgf77* | pgf90* | pgf95*) paulo@0: # Portland Group compilers (*not* the Pentium gcc compiler, paulo@0: # which looks to be a dead project) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: lt_prog_compiler_pic_GCJ='-fpic' paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: ;; paulo@0: ccc*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: # All Alpha code is PIC. paulo@0: lt_prog_compiler_static_GCJ='-non_shared' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: osf3* | osf4* | osf5*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: # All OSF/1 code is PIC. paulo@0: lt_prog_compiler_static_GCJ='-non_shared' paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: lt_prog_compiler_pic_GCJ='-KPIC' paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: case $cc_basename in paulo@0: f77* | f90* | f95*) paulo@0: lt_prog_compiler_wl_GCJ='-Qoption ld ';; paulo@0: *) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,';; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: lt_prog_compiler_wl_GCJ='-Qoption ld ' paulo@0: lt_prog_compiler_pic_GCJ='-PIC' paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: ;; paulo@0: paulo@0: sysv4 | sysv4.2uw2* | sysv4.3*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: lt_prog_compiler_pic_GCJ='-KPIC' paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec ;then paulo@0: lt_prog_compiler_pic_GCJ='-Kconform_pic' paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: lt_prog_compiler_pic_GCJ='-KPIC' paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: ;; paulo@0: paulo@0: unicos*) paulo@0: lt_prog_compiler_wl_GCJ='-Wl,' paulo@0: lt_prog_compiler_can_build_shared_GCJ=no paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: lt_prog_compiler_pic_GCJ='-pic' paulo@0: lt_prog_compiler_static_GCJ='-Bstatic' paulo@0: ;; paulo@0: paulo@0: *) paulo@0: lt_prog_compiler_can_build_shared_GCJ=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 paulo@0: paulo@0: # paulo@0: # Check to make sure the PIC flag actually works. paulo@0: # paulo@0: if test -n "$lt_prog_compiler_pic_GCJ"; then paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 paulo@0: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 paulo@0: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_prog_compiler_pic_works_GCJ=no paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: lt_compiler_flag="$lt_prog_compiler_pic_GCJ" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: # The option is referenced via a variable to avoid confusing sed. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:15986: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>conftest.err) paulo@0: ac_status=$? paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:15990: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s "$ac_outfile"; then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings other than the usual output. paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_prog_compiler_pic_works_GCJ=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 paulo@0: paulo@0: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then paulo@0: case $lt_prog_compiler_pic_GCJ in paulo@0: "" | " "*) ;; paulo@0: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; paulo@0: esac paulo@0: else paulo@0: lt_prog_compiler_pic_GCJ= paulo@0: lt_prog_compiler_can_build_shared_GCJ=no paulo@0: fi paulo@0: paulo@0: fi paulo@0: case $host_os in paulo@0: # For platforms which do not support PIC, -DPIC is meaningless: paulo@0: *djgpp*) paulo@0: lt_prog_compiler_pic_GCJ= paulo@0: ;; paulo@0: *) paulo@0: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # paulo@0: # Check to make sure the static flag actually works. paulo@0: # paulo@0: wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" paulo@0: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 paulo@0: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 paulo@0: if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_prog_compiler_static_works_GCJ=no paulo@0: save_LDFLAGS="$LDFLAGS" paulo@0: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" paulo@0: printf "$lt_simple_link_test_code" > conftest.$ac_ext paulo@0: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then paulo@0: # The linker can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings paulo@0: if test -s conftest.err; then paulo@0: # Append any errors to the config.log. paulo@0: cat conftest.err 1>&5 paulo@0: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 paulo@0: if diff conftest.exp conftest.er2 >/dev/null; then paulo@0: lt_prog_compiler_static_works_GCJ=yes paulo@0: fi paulo@0: else paulo@0: lt_prog_compiler_static_works_GCJ=yes paulo@0: fi paulo@0: fi paulo@0: $rm conftest* paulo@0: LDFLAGS="$save_LDFLAGS" paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 paulo@0: echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 paulo@0: paulo@0: if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then paulo@0: : paulo@0: else paulo@0: lt_prog_compiler_static_GCJ= paulo@0: fi paulo@0: paulo@0: paulo@0: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 paulo@0: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 paulo@0: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: lt_cv_prog_compiler_c_o_GCJ=no paulo@0: $rm -r conftest 2>/dev/null paulo@0: mkdir conftest paulo@0: cd conftest paulo@0: mkdir out paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: paulo@0: lt_compiler_flag="-o out/conftest2.$ac_objext" paulo@0: # Insert the option either (1) after the last *FLAGS variable, or paulo@0: # (2) before a word containing "conftest.", or (3) at the end. paulo@0: # Note that $ac_compile itself does not contain backslashes and begins paulo@0: # with a dollar sign (not a hyphen), so the echo should work correctly. paulo@0: lt_compile=`echo "$ac_compile" | $SED \ paulo@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ paulo@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ paulo@0: -e 's:$: $lt_compiler_flag:'` paulo@0: (eval echo "\"\$as_me:16090: $lt_compile\"" >&5) paulo@0: (eval "$lt_compile" 2>out/conftest.err) paulo@0: ac_status=$? paulo@0: cat out/conftest.err >&5 paulo@0: echo "$as_me:16094: \$? = $ac_status" >&5 paulo@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext paulo@0: then paulo@0: # The compiler can only warn and ignore the option if not recognized paulo@0: # So say no if there are warnings paulo@0: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp paulo@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 paulo@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then paulo@0: lt_cv_prog_compiler_c_o_GCJ=yes paulo@0: fi paulo@0: fi paulo@0: chmod u+w . 2>&5 paulo@0: $rm conftest* paulo@0: # SGI C++ compiler will create directory out/ii_files/ for paulo@0: # template instantiation paulo@0: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files paulo@0: $rm out/* && rmdir out paulo@0: cd .. paulo@0: rmdir conftest paulo@0: $rm conftest* paulo@0: paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 paulo@0: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 paulo@0: paulo@0: paulo@0: hard_links="nottested" paulo@0: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then paulo@0: # do not overwrite the value of need_locks provided by the user paulo@0: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 paulo@0: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 paulo@0: hard_links=yes paulo@0: $rm conftest* paulo@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no paulo@0: touch conftest.a paulo@0: ln conftest.a conftest.b 2>&5 || hard_links=no paulo@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no paulo@0: echo "$as_me:$LINENO: result: $hard_links" >&5 paulo@0: echo "${ECHO_T}$hard_links" >&6 paulo@0: if test "$hard_links" = no; then paulo@0: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 paulo@0: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} paulo@0: need_locks=warn paulo@0: fi paulo@0: else paulo@0: need_locks=no paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 paulo@0: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 paulo@0: paulo@0: runpath_var= paulo@0: allow_undefined_flag_GCJ= paulo@0: enable_shared_with_static_runtimes_GCJ=no paulo@0: archive_cmds_GCJ= paulo@0: archive_expsym_cmds_GCJ= paulo@0: old_archive_From_new_cmds_GCJ= paulo@0: old_archive_from_expsyms_cmds_GCJ= paulo@0: export_dynamic_flag_spec_GCJ= paulo@0: whole_archive_flag_spec_GCJ= paulo@0: thread_safe_flag_spec_GCJ= paulo@0: hardcode_libdir_flag_spec_GCJ= paulo@0: hardcode_libdir_flag_spec_ld_GCJ= paulo@0: hardcode_libdir_separator_GCJ= paulo@0: hardcode_direct_GCJ=no paulo@0: hardcode_minus_L_GCJ=no paulo@0: hardcode_shlibpath_var_GCJ=unsupported paulo@0: link_all_deplibs_GCJ=unknown paulo@0: hardcode_automatic_GCJ=no paulo@0: module_cmds_GCJ= paulo@0: module_expsym_cmds_GCJ= paulo@0: always_export_symbols_GCJ=no paulo@0: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' paulo@0: # include_expsyms should be a list of space-separated symbols to be *always* paulo@0: # included in the symbol list paulo@0: include_expsyms_GCJ= paulo@0: # exclude_expsyms can be an extended regexp of symbols to exclude paulo@0: # it will be wrapped by ` (' and `)$', so one must not match beginning or paulo@0: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', paulo@0: # as well as any symbol that contains `d'. paulo@0: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" paulo@0: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out paulo@0: # platforms (ab)use it in PIC code, but their linkers get confused if paulo@0: # the symbol is explicitly referenced. Since portable code cannot paulo@0: # rely on this symbol name, it's probably fine to never include it in paulo@0: # preloaded symbol tables. paulo@0: extract_expsyms_cmds= paulo@0: # Just being paranoid about ensuring that cc_basename is set. paulo@0: for cc_temp in $compiler""; do paulo@0: case $cc_temp in paulo@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; paulo@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; paulo@0: \-*) ;; paulo@0: *) break;; paulo@0: esac paulo@0: done paulo@0: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` paulo@0: paulo@0: case $host_os in paulo@0: cygwin* | mingw* | pw32*) paulo@0: # FIXME: the MSVC++ port hasn't been tested in a loooong time paulo@0: # When not using gcc, we currently assume that we are using paulo@0: # Microsoft Visual C++. paulo@0: if test "$GCC" != yes; then paulo@0: with_gnu_ld=no paulo@0: fi paulo@0: ;; paulo@0: interix*) paulo@0: # we just hope/assume this is gcc and not c89 (= MSVC++) paulo@0: with_gnu_ld=yes paulo@0: ;; paulo@0: openbsd*) paulo@0: with_gnu_ld=no paulo@0: ;; paulo@0: esac paulo@0: paulo@0: ld_shlibs_GCJ=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: # If archive_cmds runs LD, not CC, wlarc should be empty paulo@0: wlarc='${wl}' paulo@0: paulo@0: # Set some defaults for GNU ld with shared library support. These paulo@0: # are reset later if shared libraries are not supported. Putting them paulo@0: # here allows them to be overridden if necessary. paulo@0: runpath_var=LD_RUN_PATH paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' paulo@0: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' paulo@0: # ancient GNU ld didn't support --whole-archive et. al. paulo@0: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then paulo@0: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' paulo@0: else paulo@0: whole_archive_flag_spec_GCJ= paulo@0: fi paulo@0: supports_anon_versioning=no paulo@0: case `$LD -v 2>/dev/null` in paulo@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 paulo@0: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... paulo@0: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... paulo@0: *\ 2.11.*) ;; # other 2.11 versions paulo@0: *) supports_anon_versioning=yes ;; paulo@0: esac paulo@0: paulo@0: # See if GNU ld supports shared libraries. paulo@0: case $host_os in paulo@0: aix3* | aix4* | aix5*) paulo@0: # On AIX/PPC, the GNU linker is very broken paulo@0: if test "$host_cpu" != ia64; then paulo@0: ld_shlibs_GCJ=no paulo@0: cat <&2 paulo@0: paulo@0: *** Warning: the GNU linker, at least up to release 2.9.1, is reported paulo@0: *** to be unable to reliably create shared libraries on AIX. paulo@0: *** Therefore, libtool is disabling shared libraries support. If you paulo@0: *** really care for shared libraries, you may want to modify your PATH paulo@0: *** so that a non-GNU linker is found, and then restart. paulo@0: paulo@0: EOF paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: 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)' paulo@0: hardcode_libdir_flag_spec_GCJ='-L$libdir' paulo@0: hardcode_minus_L_GCJ=yes paulo@0: paulo@0: # Samuel A. Falvo II reports paulo@0: # that the semantics of dynamic libraries on AmigaOS, at least up paulo@0: # to version 4, is to share data among multiple programs linked paulo@0: # with the same dynamic library. Since this doesn't match the paulo@0: # behavior of shared libraries on other platforms, we can't use paulo@0: # them. paulo@0: ld_shlibs_GCJ=no paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: allow_undefined_flag_GCJ=unsupported paulo@0: # Joseph Beckenbach says some releases of gcc paulo@0: # support --undefined. This deserves some investigation. FIXME paulo@0: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: else paulo@0: ld_shlibs_GCJ=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, paulo@0: # as there is no search path for DLLs. paulo@0: hardcode_libdir_flag_spec_GCJ='-L$libdir' paulo@0: allow_undefined_flag_GCJ=unsupported paulo@0: always_export_symbols_GCJ=no paulo@0: enable_shared_with_static_runtimes_GCJ=yes paulo@0: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' paulo@0: paulo@0: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then paulo@0: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' paulo@0: # If the export-symbols file already is a .def file (1st line paulo@0: # is EXPORTS), use it as is; otherwise, prepend... paulo@0: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then paulo@0: cp $export_symbols $output_objdir/$soname.def; paulo@0: else paulo@0: echo EXPORTS > $output_objdir/$soname.def; paulo@0: cat $export_symbols >> $output_objdir/$soname.def; paulo@0: fi~ paulo@0: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' paulo@0: else paulo@0: ld_shlibs_GCJ=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: hardcode_direct_GCJ=no paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' paulo@0: export_dynamic_flag_spec_GCJ='${wl}-E' paulo@0: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. paulo@0: # Instead, shared libraries are loaded at an image base (0x10000000 by paulo@0: # default) and relocated if they conflict, which is a slow very memory paulo@0: # consuming and fragmenting process. To avoid this, we pick a random, paulo@0: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link paulo@0: # time. Moving up from 0x10000000 also allows more sbrk(2) space. paulo@0: archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' paulo@0: archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' paulo@0: ;; paulo@0: paulo@0: linux*) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: tmp_addflag= paulo@0: case $cc_basename,$host_cpu in paulo@0: pgcc*) # Portland Group C compiler paulo@0: 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' paulo@0: tmp_addflag=' $pic_flag' paulo@0: ;; paulo@0: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers paulo@0: 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' paulo@0: tmp_addflag=' $pic_flag -Mnomain' ;; paulo@0: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 paulo@0: tmp_addflag=' -i_dynamic' ;; paulo@0: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 paulo@0: tmp_addflag=' -i_dynamic -nofor_main' ;; paulo@0: ifc* | ifort*) # Intel Fortran compiler paulo@0: tmp_addflag=' -nofor_main' ;; paulo@0: esac paulo@0: archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: paulo@0: if test $supports_anon_versioning = yes; then paulo@0: archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ paulo@0: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ paulo@0: $echo "local: *; };" >> $output_objdir/$libname.ver~ paulo@0: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' paulo@0: fi paulo@0: link_all_deplibs_GCJ=no paulo@0: else paulo@0: ld_shlibs_GCJ=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' paulo@0: wlarc= paulo@0: else paulo@0: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then paulo@0: ld_shlibs_GCJ=no paulo@0: cat <&2 paulo@0: paulo@0: *** Warning: The releases 2.8.* of the GNU linker cannot reliably paulo@0: *** create shared libraries on Solaris systems. Therefore, libtool paulo@0: *** is disabling shared libraries support. We urge you to upgrade GNU paulo@0: *** binutils to release 2.9.1 or newer. Another option is to modify paulo@0: *** your PATH or compiler configuration so that the native linker is paulo@0: *** used, and then restart. paulo@0: paulo@0: EOF paulo@0: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs_GCJ=no paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) paulo@0: case `$LD -v 2>&1` in paulo@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) paulo@0: ld_shlibs_GCJ=no paulo@0: cat <<_LT_EOF 1>&2 paulo@0: paulo@0: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not paulo@0: *** reliably create shared libraries on SCO systems. Therefore, libtool paulo@0: *** is disabling shared libraries support. We urge you to upgrade GNU paulo@0: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify paulo@0: *** your PATH or compiler configuration so that the native linker is paulo@0: *** used, and then restart. paulo@0: paulo@0: _LT_EOF paulo@0: ;; paulo@0: *) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' paulo@0: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' paulo@0: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs_GCJ=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: wlarc= paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: *) paulo@0: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then paulo@0: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' paulo@0: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' paulo@0: else paulo@0: ld_shlibs_GCJ=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: if test "$ld_shlibs_GCJ" = no; then paulo@0: runpath_var= paulo@0: hardcode_libdir_flag_spec_GCJ= paulo@0: export_dynamic_flag_spec_GCJ= paulo@0: whole_archive_flag_spec_GCJ= paulo@0: fi paulo@0: else paulo@0: # PORTME fill in a description of your system's linker (not GNU ld) paulo@0: case $host_os in paulo@0: aix3*) paulo@0: allow_undefined_flag_GCJ=unsupported paulo@0: always_export_symbols_GCJ=yes paulo@0: 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' paulo@0: # Note: this linker hardcodes the directories in LIBPATH if there paulo@0: # are no directories specified by -L. paulo@0: hardcode_minus_L_GCJ=yes paulo@0: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then paulo@0: # Neither direct hardcoding nor static linking is supported with a paulo@0: # broken collect2. paulo@0: hardcode_direct_GCJ=unsupported paulo@0: fi paulo@0: ;; paulo@0: paulo@0: aix4* | aix5*) paulo@0: if test "$host_cpu" = ia64; then paulo@0: # On IA64, the linker does run time linking by default, so we don't paulo@0: # have to do anything special. paulo@0: aix_use_runtimelinking=no paulo@0: exp_sym_flag='-Bexport' paulo@0: no_entry_flag="" paulo@0: else paulo@0: # If we're using GNU nm, then we don't want the "-C" option. paulo@0: # -C means demangle to AIX nm, but means don't demangle with GNU nm paulo@0: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: aix_use_runtimelinking=no paulo@0: paulo@0: # Test if we are trying to use run time linking or normal paulo@0: # AIX style linking. If -brtl is somewhere in LDFLAGS, we paulo@0: # need to do runtime linking. paulo@0: case $host_os in aix4.[23]|aix4.[23].*|aix5*) paulo@0: for ld_flag in $LDFLAGS; do paulo@0: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then paulo@0: aix_use_runtimelinking=yes paulo@0: break paulo@0: fi paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: paulo@0: exp_sym_flag='-bexport' paulo@0: no_entry_flag='-bnoentry' paulo@0: fi paulo@0: paulo@0: # When large executables or shared objects are built, AIX ld can paulo@0: # have problems creating the table of contents. If linking a library paulo@0: # or program results in "error TOC overflow" add -mminimal-toc to paulo@0: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not paulo@0: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. paulo@0: paulo@0: archive_cmds_GCJ='' paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_libdir_separator_GCJ=':' paulo@0: link_all_deplibs_GCJ=yes paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: case $host_os in aix4.[012]|aix4.[012].*) paulo@0: # We only want to do this on AIX 4.2 and lower, the check paulo@0: # below for broken collect2 doesn't work under 4.3+ paulo@0: collect2name=`${CC} -print-prog-name=collect2` paulo@0: if test -f "$collect2name" && \ paulo@0: strings "$collect2name" | grep resolve_lib_name >/dev/null paulo@0: then paulo@0: # We have reworked collect2 paulo@0: hardcode_direct_GCJ=yes paulo@0: else paulo@0: # We have old collect2 paulo@0: hardcode_direct_GCJ=unsupported paulo@0: # It fails to find uninstalled libraries when the uninstalled paulo@0: # path is not listed in the libpath. Setting hardcode_minus_L paulo@0: # to unsupported forces relinking paulo@0: hardcode_minus_L_GCJ=yes paulo@0: hardcode_libdir_flag_spec_GCJ='-L$libdir' paulo@0: hardcode_libdir_separator_GCJ= paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: shared_flag='-shared' paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: shared_flag="$shared_flag "'${wl}-G' paulo@0: fi paulo@0: else paulo@0: # not using gcc paulo@0: if test "$host_cpu" = ia64; then paulo@0: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release paulo@0: # chokes on -Wl,-G. The following line is correct: paulo@0: shared_flag='-G' paulo@0: else paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: shared_flag='${wl}-G' paulo@0: else paulo@0: shared_flag='${wl}-bM:SRE' paulo@0: fi paulo@0: fi paulo@0: fi paulo@0: paulo@0: # It seems that -bexpall does not export symbols beginning with paulo@0: # underscore (_), so it is better to generate a list of symbols to export. paulo@0: always_export_symbols_GCJ=yes paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: # Warning - without using the other runtime loading flags (-brtl), paulo@0: # -berok will link without error, but may produce a broken library. paulo@0: allow_undefined_flag_GCJ='-berok' paulo@0: # Determine the default libpath from the value encoded in an empty executable. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: paulo@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } paulo@0: }'` paulo@0: # Check for a 64-bit object if we didn't find anything. paulo@0: 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; } paulo@0: }'`; fi paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi paulo@0: paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" paulo@0: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" paulo@0: else paulo@0: if test "$host_cpu" = ia64; then paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' paulo@0: allow_undefined_flag_GCJ="-z nodefs" paulo@0: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" paulo@0: else paulo@0: # Determine the default libpath from the value encoded in an empty executable. paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: paulo@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } paulo@0: }'` paulo@0: # Check for a 64-bit object if we didn't find anything. paulo@0: 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; } paulo@0: }'`; fi paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi paulo@0: paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" paulo@0: # Warning - without using the other run time loading flags, paulo@0: # -berok will link without error, but may produce a broken library. paulo@0: no_undefined_flag_GCJ=' ${wl}-bernotok' paulo@0: allow_undefined_flag_GCJ=' ${wl}-berok' paulo@0: # Exported symbols can be pulled into shared objects from archives paulo@0: whole_archive_flag_spec_GCJ='$convenience' paulo@0: archive_cmds_need_lc_GCJ=yes paulo@0: # This is similar to how AIX traditionally builds its shared libraries. paulo@0: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' paulo@0: fi paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: 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)' paulo@0: hardcode_libdir_flag_spec_GCJ='-L$libdir' paulo@0: hardcode_minus_L_GCJ=yes paulo@0: # see comment about different semantics on the GNU ld section paulo@0: ld_shlibs_GCJ=no paulo@0: ;; paulo@0: paulo@0: bsdi[45]*) paulo@0: export_dynamic_flag_spec_GCJ=-rdynamic paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: # When not using gcc, we currently assume that we are using paulo@0: # Microsoft Visual C++. paulo@0: # hardcode_libdir_flag_spec is actually meaningless, as there is paulo@0: # no search path for DLLs. paulo@0: hardcode_libdir_flag_spec_GCJ=' ' paulo@0: allow_undefined_flag_GCJ=unsupported paulo@0: # Tell ltmain to make .lib files, not .a files. paulo@0: libext=lib paulo@0: # Tell ltmain to make .dll files, not .so files. paulo@0: shrext_cmds=".dll" paulo@0: # FIXME: Setting linknames here is a bad hack. paulo@0: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' paulo@0: # The linker will automatically build a .lib file if we build a DLL. paulo@0: old_archive_From_new_cmds_GCJ='true' paulo@0: # FIXME: Should let the user specify the lib program. paulo@0: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' paulo@0: fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' paulo@0: enable_shared_with_static_runtimes_GCJ=yes paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: case $host_os in paulo@0: rhapsody* | darwin1.[012]) paulo@0: allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' paulo@0: ;; paulo@0: *) # Darwin 1.3 on paulo@0: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then paulo@0: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' paulo@0: else paulo@0: case ${MACOSX_DEPLOYMENT_TARGET} in paulo@0: 10.[012]) paulo@0: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' paulo@0: ;; paulo@0: 10.*) paulo@0: allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: archive_cmds_need_lc_GCJ=no paulo@0: hardcode_direct_GCJ=no paulo@0: hardcode_automatic_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=unsupported paulo@0: whole_archive_flag_spec_GCJ='' paulo@0: link_all_deplibs_GCJ=yes paulo@0: if test "$GCC" = yes ; then paulo@0: output_verbose_link_cmd='echo' paulo@0: archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' paulo@0: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' paulo@0: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds paulo@0: 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}' paulo@0: 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}' paulo@0: else paulo@0: case $cc_basename in paulo@0: xlc*) paulo@0: output_verbose_link_cmd='echo' paulo@0: archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' paulo@0: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' paulo@0: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds paulo@0: 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}' paulo@0: 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}' paulo@0: ;; paulo@0: *) paulo@0: ld_shlibs_GCJ=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: dgux*) paulo@0: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec_GCJ='-L$libdir' paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: freebsd1*) paulo@0: ld_shlibs_GCJ=no paulo@0: ;; paulo@0: paulo@0: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor paulo@0: # support. Future versions do this automatically, but an explicit c++rt0.o paulo@0: # does not break anything, and helps significantly (at the cost of a little paulo@0: # extra space). paulo@0: freebsd2.2*) paulo@0: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' paulo@0: hardcode_libdir_flag_spec_GCJ='-R$libdir' paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: # Unfortunately, older versions of FreeBSD 2 do not have this feature. paulo@0: freebsd2*) paulo@0: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_minus_L_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. paulo@0: freebsd* | dragonfly*) paulo@0: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec_GCJ='-R$libdir' paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: # GNU/kFreeBSD uses gcc -shared to do shared libraries. paulo@0: kfreebsd*-gnu) paulo@0: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec_GCJ='-R$libdir' paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: link_all_deplibs_GCJ=no paulo@0: ;; paulo@0: paulo@0: hpux9*) paulo@0: if test "$GCC" = yes; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator_GCJ=: paulo@0: hardcode_direct_GCJ=yes paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L_GCJ=yes paulo@0: export_dynamic_flag_spec_GCJ='${wl}-E' paulo@0: ;; paulo@0: paulo@0: hpux10*) paulo@0: if test "$GCC" = yes -a "$with_gnu_ld" = no; then paulo@0: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' paulo@0: fi paulo@0: if test "$with_gnu_ld" = no; then paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator_GCJ=: paulo@0: paulo@0: hardcode_direct_GCJ=yes paulo@0: export_dynamic_flag_spec_GCJ='${wl}-E' paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L_GCJ=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: hpux11*) paulo@0: if test "$GCC" = yes -a "$with_gnu_ld" = no; then paulo@0: case $host_cpu in paulo@0: hppa*64*) paulo@0: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: ia64*) paulo@0: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: case $host_cpu in paulo@0: hppa*64*) paulo@0: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: ia64*) paulo@0: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: if test "$with_gnu_ld" = no; then paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' paulo@0: hardcode_libdir_separator_GCJ=: paulo@0: paulo@0: case $host_cpu in paulo@0: hppa*64*|ia64*) paulo@0: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' paulo@0: hardcode_direct_GCJ=no paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: *) paulo@0: hardcode_direct_GCJ=yes paulo@0: export_dynamic_flag_spec_GCJ='${wl}-E' paulo@0: paulo@0: # hardcode_minus_L: Not really in the search PATH, paulo@0: # but as the default location of the library. paulo@0: hardcode_minus_L_GCJ=yes paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: if test "$GCC" = yes; then paulo@0: 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' paulo@0: else paulo@0: 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' paulo@0: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_GCJ=: paulo@0: link_all_deplibs_GCJ=yes paulo@0: ;; paulo@0: paulo@0: netbsd* | netbsdelf*-gnu | knetbsd*-gnu) paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out paulo@0: else paulo@0: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF paulo@0: fi paulo@0: hardcode_libdir_flag_spec_GCJ='-R$libdir' paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_GCJ=: paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: openbsd*) paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' paulo@0: export_dynamic_flag_spec_GCJ='${wl}-E' paulo@0: else paulo@0: case $host_os in paulo@0: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) paulo@0: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec_GCJ='-R$libdir' paulo@0: ;; paulo@0: *) paulo@0: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: paulo@0: os2*) paulo@0: hardcode_libdir_flag_spec_GCJ='-L$libdir' paulo@0: hardcode_minus_L_GCJ=yes paulo@0: allow_undefined_flag_GCJ=unsupported paulo@0: 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' paulo@0: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' paulo@0: ;; paulo@0: paulo@0: osf3*) paulo@0: if test "$GCC" = yes; then paulo@0: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: else paulo@0: allow_undefined_flag_GCJ=' -expect_unresolved \*' paulo@0: 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' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' paulo@0: hardcode_libdir_separator_GCJ=: paulo@0: ;; paulo@0: paulo@0: osf4* | osf5*) # as osf3* with the addition of -msym flag paulo@0: if test "$GCC" = yes; then paulo@0: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' paulo@0: 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' paulo@0: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' paulo@0: else paulo@0: allow_undefined_flag_GCJ=' -expect_unresolved \*' paulo@0: 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' paulo@0: 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~ paulo@0: $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' paulo@0: paulo@0: # Both c and cxx compiler support -rpath directly paulo@0: hardcode_libdir_flag_spec_GCJ='-rpath $libdir' paulo@0: fi paulo@0: hardcode_libdir_separator_GCJ=: paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: no_undefined_flag_GCJ=' -z text' paulo@0: if test "$GCC" = yes; then paulo@0: wlarc='${wl}' paulo@0: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' paulo@0: else paulo@0: wlarc='' paulo@0: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ paulo@0: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_GCJ='-R$libdir' paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: case $host_os in paulo@0: solaris2.[0-5] | solaris2.[0-5].*) ;; paulo@0: *) paulo@0: # The compiler driver will combine linker options so we paulo@0: # cannot just pass the convience library names through paulo@0: # without $wl, iff we do not link with $LD. paulo@0: # Luckily, gcc supports the same syntax we need for Sun Studio. paulo@0: # Supported since Solaris 2.6 (maybe 2.5.1?) paulo@0: case $wlarc in paulo@0: '') paulo@0: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; paulo@0: *) paulo@0: 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' ;; paulo@0: esac ;; paulo@0: esac paulo@0: link_all_deplibs_GCJ=yes paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: if test "x$host_vendor" = xsequent; then paulo@0: # Use $CC to link under sequent, because it throws in some extra .o paulo@0: # files that make .init and .fini sections work. paulo@0: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' paulo@0: fi paulo@0: hardcode_libdir_flag_spec_GCJ='-L$libdir' paulo@0: hardcode_direct_GCJ=yes paulo@0: hardcode_minus_L_GCJ=yes paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: sysv4) paulo@0: case $host_vendor in paulo@0: sni) paulo@0: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct_GCJ=yes # is this really true??? paulo@0: ;; paulo@0: siemens) paulo@0: ## LD is ld it makes a PLAMLIB paulo@0: ## CC just makes a GrossModule. paulo@0: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' paulo@0: reload_cmds_GCJ='$CC -r -o $output$reload_objs' paulo@0: hardcode_direct_GCJ=no paulo@0: ;; paulo@0: motorola) paulo@0: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie paulo@0: ;; paulo@0: esac paulo@0: runpath_var='LD_RUN_PATH' paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: sysv4.3*) paulo@0: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: export_dynamic_flag_spec_GCJ='-Bexport' paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec; then paulo@0: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: runpath_var=LD_RUN_PATH paulo@0: hardcode_runpath_var=yes paulo@0: ld_shlibs_GCJ=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) paulo@0: no_undefined_flag_GCJ='${wl}-z,text' paulo@0: archive_cmds_need_lc_GCJ=no paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: runpath_var='LD_RUN_PATH' paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6*) paulo@0: # Note: We can NOT use -z defs as we might desire, because we do not paulo@0: # link with -lc, and that would cause any symbols used from libc to paulo@0: # always be unresolved, which means just about no library would paulo@0: # ever link correctly. If we're not using GNU ld we use -z text paulo@0: # though, which does catch some bad symbols but isn't as heavy-handed paulo@0: # as -z defs. paulo@0: no_undefined_flag_GCJ='${wl}-z,text' paulo@0: allow_undefined_flag_GCJ='${wl}-z,nodefs' paulo@0: archive_cmds_need_lc_GCJ=no paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' paulo@0: hardcode_libdir_separator_GCJ=':' paulo@0: link_all_deplibs_GCJ=yes paulo@0: export_dynamic_flag_spec_GCJ='${wl}-Bexport' paulo@0: runpath_var='LD_RUN_PATH' paulo@0: paulo@0: if test "$GCC" = yes; then paulo@0: archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: else paulo@0: archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' paulo@0: fi paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' paulo@0: hardcode_libdir_flag_spec_GCJ='-L$libdir' paulo@0: hardcode_shlibpath_var_GCJ=no paulo@0: ;; paulo@0: paulo@0: *) paulo@0: ld_shlibs_GCJ=no paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 paulo@0: echo "${ECHO_T}$ld_shlibs_GCJ" >&6 paulo@0: test "$ld_shlibs_GCJ" = no && can_build_shared=no paulo@0: paulo@0: # paulo@0: # Do we need to explicitly link libc? paulo@0: # paulo@0: case "x$archive_cmds_need_lc_GCJ" in paulo@0: x|xyes) paulo@0: # Assume -lc should be added paulo@0: archive_cmds_need_lc_GCJ=yes paulo@0: paulo@0: if test "$enable_shared" = yes && test "$GCC" = yes; then paulo@0: case $archive_cmds_GCJ in paulo@0: *'~'*) paulo@0: # FIXME: we may have to deal with multi-command sequences. paulo@0: ;; paulo@0: '$CC '*) paulo@0: # Test whether the compiler implicitly links with -lc since on some paulo@0: # systems, -lgcc has to come before -lc. If gcc already passes -lc paulo@0: # to ld, don't add -lc before -lgcc. paulo@0: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 paulo@0: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 paulo@0: $rm conftest* paulo@0: printf "$lt_simple_compile_test_code" > conftest.$ac_ext paulo@0: paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 paulo@0: (eval $ac_compile) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } 2>conftest.err; then paulo@0: soname=conftest paulo@0: lib=conftest paulo@0: libobjs=conftest.$ac_objext paulo@0: deplibs= paulo@0: wl=$lt_prog_compiler_wl_GCJ paulo@0: pic_flag=$lt_prog_compiler_pic_GCJ paulo@0: compiler_flags=-v paulo@0: linker_flags=-v paulo@0: verstring= paulo@0: output_objdir=. paulo@0: libname=conftest paulo@0: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ paulo@0: allow_undefined_flag_GCJ= paulo@0: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 paulo@0: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } paulo@0: then paulo@0: archive_cmds_need_lc_GCJ=no paulo@0: else paulo@0: archive_cmds_need_lc_GCJ=yes paulo@0: fi paulo@0: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag paulo@0: else paulo@0: cat conftest.err 1>&5 paulo@0: fi paulo@0: $rm conftest* paulo@0: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 paulo@0: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: paulo@0: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 paulo@0: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 paulo@0: library_names_spec= paulo@0: libname_spec='lib$name' paulo@0: soname_spec= paulo@0: shrext_cmds=".so" paulo@0: postinstall_cmds= paulo@0: postuninstall_cmds= paulo@0: finish_cmds= paulo@0: finish_eval= paulo@0: shlibpath_var= paulo@0: shlibpath_overrides_runpath=unknown paulo@0: version_type=none paulo@0: dynamic_linker="$host_os ld.so" paulo@0: sys_lib_dlsearch_path_spec="/lib /usr/lib" paulo@0: if test "$GCC" = yes; then paulo@0: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` paulo@0: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then paulo@0: # if the path contains ";" then we assume it to be the separator paulo@0: # otherwise default to the standard path separator (i.e. ":") - it is paulo@0: # assumed that no part of a normal pathname contains ";" but that should paulo@0: # okay in the real world where ";" in dirpaths is itself problematic. paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` paulo@0: else paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` paulo@0: fi paulo@0: else paulo@0: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" paulo@0: fi paulo@0: need_lib_prefix=unknown paulo@0: hardcode_into_libs=no paulo@0: paulo@0: # when you set need_version to no, make sure it does not cause -set_version paulo@0: # flags to be left without arguments paulo@0: need_version=unknown paulo@0: paulo@0: case $host_os in paulo@0: aix3*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' paulo@0: shlibpath_var=LIBPATH paulo@0: paulo@0: # AIX 3 has no versioning support, so we append a major version to the name. paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: ;; paulo@0: paulo@0: aix4* | aix5*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: hardcode_into_libs=yes paulo@0: if test "$host_cpu" = ia64; then paulo@0: # AIX 5 supports IA64 paulo@0: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: else paulo@0: # With GCC up to 2.95.x, collect2 would create an import file paulo@0: # for dependence libraries. The import file would start with paulo@0: # the line `#! .'. This would cause the generated library to paulo@0: # depend on `.', always an invalid library. This was fixed in paulo@0: # development snapshots of GCC prior to 3.0. paulo@0: case $host_os in paulo@0: aix4 | aix4.[01] | aix4.[01].*) paulo@0: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' paulo@0: echo ' yes ' paulo@0: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then paulo@0: : paulo@0: else paulo@0: can_build_shared=no paulo@0: fi paulo@0: ;; paulo@0: esac paulo@0: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct paulo@0: # soname into executable. Probably we can add versioning support to paulo@0: # collect2, so additional links can be useful in future. paulo@0: if test "$aix_use_runtimelinking" = yes; then paulo@0: # If using run time linking (on AIX 4.2 or later) use lib.so paulo@0: # instead of lib.a to let people know that these are not paulo@0: # typical AIX shared libraries. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: else paulo@0: # We preserve .a as extension for shared libraries through AIX4.2 paulo@0: # and later when we are not doing run time linking. paulo@0: library_names_spec='${libname}${release}.a $libname.a' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: fi paulo@0: shlibpath_var=LIBPATH paulo@0: fi paulo@0: ;; paulo@0: paulo@0: amigaos*) paulo@0: library_names_spec='$libname.ixlibrary $libname.a' paulo@0: # Create ${libname}_ixlibrary.a entries in /sys/libs. paulo@0: 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' paulo@0: ;; paulo@0: paulo@0: beos*) paulo@0: library_names_spec='${libname}${shared_ext}' paulo@0: dynamic_linker="$host_os ld.so" paulo@0: shlibpath_var=LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: bsdi[45]*) paulo@0: version_type=linux paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" paulo@0: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" paulo@0: # the default ld.so.conf also contains /usr/contrib/lib and paulo@0: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow paulo@0: # libtool to hard-code these into programs paulo@0: ;; paulo@0: paulo@0: cygwin* | mingw* | pw32*) paulo@0: version_type=windows paulo@0: shrext_cmds=".dll" paulo@0: need_version=no paulo@0: need_lib_prefix=no paulo@0: paulo@0: case $GCC,$host_os in paulo@0: yes,cygwin* | yes,mingw* | yes,pw32*) paulo@0: library_names_spec='$libname.dll.a' paulo@0: # DLL is installed to $(libdir)/../bin by postinstall_cmds paulo@0: postinstall_cmds='base_file=`basename \${file}`~ paulo@0: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ paulo@0: dldir=$destdir/`dirname \$dlpath`~ paulo@0: test -d \$dldir || mkdir -p \$dldir~ paulo@0: $install_prog $dir/$dlname \$dldir/$dlname~ paulo@0: chmod a+x \$dldir/$dlname' paulo@0: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ paulo@0: dlpath=$dir/\$dldll~ paulo@0: $rm \$dlpath' paulo@0: shlibpath_overrides_runpath=yes paulo@0: paulo@0: case $host_os in paulo@0: cygwin*) paulo@0: # Cygwin DLLs use 'cyg' prefix rather than 'lib' paulo@0: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" paulo@0: ;; paulo@0: mingw*) paulo@0: # MinGW DLLs use traditional 'lib' prefix paulo@0: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` paulo@0: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then paulo@0: # It is most probably a Windows format PATH printed by paulo@0: # mingw gcc, but we are running on Cygwin. Gcc prints its search paulo@0: # path with ; separators, and with drive letters. We can handle the paulo@0: # drive letters (cygwin fileutils understands them), so leave them, paulo@0: # especially as we might pass files found there to a mingw objdump, paulo@0: # which wouldn't understand a cygwinified path. Ahh. paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` paulo@0: else paulo@0: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` paulo@0: fi paulo@0: ;; paulo@0: pw32*) paulo@0: # pw32 DLLs use 'pw' prefix rather than 'lib' paulo@0: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: *) paulo@0: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' paulo@0: ;; paulo@0: esac paulo@0: dynamic_linker='Win32 ld.exe' paulo@0: # FIXME: first we should search . and the directory the executable is in paulo@0: shlibpath_var=PATH paulo@0: ;; paulo@0: paulo@0: darwin* | rhapsody*) paulo@0: dynamic_linker="$host_os dyld" paulo@0: version_type=darwin paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' paulo@0: soname_spec='${libname}${release}${major}$shared_ext' paulo@0: shlibpath_overrides_runpath=yes paulo@0: shlibpath_var=DYLD_LIBRARY_PATH paulo@0: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' paulo@0: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. paulo@0: if test "$GCC" = yes; then paulo@0: 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"` paulo@0: else paulo@0: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' paulo@0: ;; paulo@0: paulo@0: dgux*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: freebsd1*) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: paulo@0: kfreebsd*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='GNU ld.so' paulo@0: ;; paulo@0: paulo@0: freebsd* | dragonfly*) paulo@0: # DragonFly does not have aout. When/if they implement a new paulo@0: # versioning mechanism, adjust this. paulo@0: if test -x /usr/bin/objformat; then paulo@0: objformat=`/usr/bin/objformat` paulo@0: else paulo@0: case $host_os in paulo@0: freebsd[123]*) objformat=aout ;; paulo@0: *) objformat=elf ;; paulo@0: esac paulo@0: fi paulo@0: version_type=freebsd-$objformat paulo@0: case $version_type in paulo@0: freebsd-elf*) paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: need_version=no paulo@0: need_lib_prefix=no paulo@0: ;; paulo@0: freebsd-*) paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' paulo@0: need_version=yes paulo@0: ;; paulo@0: esac paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: case $host_os in paulo@0: freebsd2*) paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: freebsd3.[01]* | freebsdelf3.[01]*) paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ paulo@0: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: freebsd*) # from 4.6 on paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: gnu*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: hpux9* | hpux10* | hpux11*) paulo@0: # Give a soname corresponding to the major version so that dld.sl refuses to paulo@0: # link against other versions. paulo@0: version_type=sunos paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: case $host_cpu in paulo@0: ia64*) paulo@0: shrext_cmds='.so' paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker="$host_os dld.so" paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: if test "X$HPUX_IA64_MODE" = X32; then paulo@0: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" paulo@0: else paulo@0: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec paulo@0: ;; paulo@0: hppa*64*) paulo@0: shrext_cmds='.sl' paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker="$host_os dld.sl" paulo@0: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH paulo@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" paulo@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec paulo@0: ;; paulo@0: *) paulo@0: shrext_cmds='.sl' paulo@0: dynamic_linker="$host_os dld.sl" paulo@0: shlibpath_var=SHLIB_PATH paulo@0: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: ;; paulo@0: esac paulo@0: # HP-UX runs *really* slowly unless shared libraries are mode 555. paulo@0: postinstall_cmds='chmod 555 $lib' paulo@0: ;; paulo@0: paulo@0: interix3*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: irix5* | irix6* | nonstopux*) paulo@0: case $host_os in paulo@0: nonstopux*) version_type=nonstopux ;; paulo@0: *) paulo@0: if test "$lt_cv_prog_gnu_ld" = yes; then paulo@0: version_type=linux paulo@0: else paulo@0: version_type=irix paulo@0: fi ;; paulo@0: esac paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: case $host_os in paulo@0: irix5* | nonstopux*) paulo@0: libsuff= shlibsuff= paulo@0: ;; paulo@0: *) paulo@0: case $LD in # libtool.m4 will add one of these switches to LD paulo@0: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") paulo@0: libsuff= shlibsuff= libmagic=32-bit;; paulo@0: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") paulo@0: libsuff=32 shlibsuff=N32 libmagic=N32;; paulo@0: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") paulo@0: libsuff=64 shlibsuff=64 libmagic=64-bit;; paulo@0: *) libsuff= shlibsuff= libmagic=never-match;; paulo@0: esac paulo@0: ;; paulo@0: esac paulo@0: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" paulo@0: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: # No shared lib support for Linux oldld, aout, or coff. paulo@0: linux*oldld* | linux*aout* | linux*coff*) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: paulo@0: # This must be Linux ELF. paulo@0: linux*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: # This implies no fast_install, which is unacceptable. paulo@0: # Some rework will be needed to allow for fast_install paulo@0: # before this can be enabled. paulo@0: hardcode_into_libs=yes paulo@0: paulo@0: # Append ld.so.conf contents to the search path paulo@0: if test -f /etc/ld.so.conf; then paulo@0: 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' ' '` paulo@0: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" paulo@0: fi paulo@0: paulo@0: # We used to test for /lib/ld.so.1 and disable shared libraries on paulo@0: # powerpc, because MkLinux only supported shared libraries with the paulo@0: # GNU dynamic linker. Since this was broken with cross compilers, paulo@0: # most powerpc-linux boxes support dynamic linking these days and paulo@0: # people can always --disable-shared, the test was removed, and we paulo@0: # assume the GNU/Linux dynamic linker is in use. paulo@0: dynamic_linker='GNU/Linux ld.so' paulo@0: ;; paulo@0: paulo@0: netbsdelf*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='NetBSD ld.elf_so' paulo@0: ;; paulo@0: paulo@0: knetbsd*-gnu) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=no paulo@0: hardcode_into_libs=yes paulo@0: dynamic_linker='GNU ld.so' paulo@0: ;; paulo@0: paulo@0: netbsd*) paulo@0: version_type=sunos paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' paulo@0: dynamic_linker='NetBSD (a.out) ld.so' paulo@0: else paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: dynamic_linker='NetBSD ld.elf_so' paulo@0: fi paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: ;; paulo@0: paulo@0: newsos6) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: paulo@0: nto-qnx*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: paulo@0: openbsd*) paulo@0: version_type=sunos paulo@0: sys_lib_dlsearch_path_spec="/usr/lib" paulo@0: need_lib_prefix=no paulo@0: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. paulo@0: case $host_os in paulo@0: openbsd3.3 | openbsd3.3.*) need_version=yes ;; paulo@0: *) need_version=no ;; paulo@0: esac paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then paulo@0: case $host_os in paulo@0: openbsd2.[89] | openbsd2.[89].*) paulo@0: shlibpath_overrides_runpath=no paulo@0: ;; paulo@0: *) paulo@0: shlibpath_overrides_runpath=yes paulo@0: ;; paulo@0: esac paulo@0: else paulo@0: shlibpath_overrides_runpath=yes paulo@0: fi paulo@0: ;; paulo@0: paulo@0: os2*) paulo@0: libname_spec='$name' paulo@0: shrext_cmds=".dll" paulo@0: need_lib_prefix=no paulo@0: library_names_spec='$libname${shared_ext} $libname.a' paulo@0: dynamic_linker='OS/2 ld.exe' paulo@0: shlibpath_var=LIBPATH paulo@0: ;; paulo@0: paulo@0: osf3* | osf4* | osf5*) paulo@0: version_type=osf paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" paulo@0: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" paulo@0: ;; paulo@0: paulo@0: solaris*) paulo@0: version_type=linux paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: hardcode_into_libs=yes paulo@0: # ldd complains unless libraries are executable paulo@0: postinstall_cmds='chmod +x $lib' paulo@0: ;; paulo@0: paulo@0: sunos4*) paulo@0: version_type=sunos paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' paulo@0: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: shlibpath_overrides_runpath=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: need_lib_prefix=no paulo@0: fi paulo@0: need_version=yes paulo@0: ;; paulo@0: paulo@0: sysv4 | sysv4.3*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: case $host_vendor in paulo@0: sni) paulo@0: shlibpath_overrides_runpath=no paulo@0: need_lib_prefix=no paulo@0: export_dynamic_flag_spec='${wl}-Blargedynsym' paulo@0: runpath_var=LD_RUN_PATH paulo@0: ;; paulo@0: siemens) paulo@0: need_lib_prefix=no paulo@0: ;; paulo@0: motorola) paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: shlibpath_overrides_runpath=no paulo@0: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' paulo@0: ;; paulo@0: esac paulo@0: ;; paulo@0: paulo@0: sysv4*MP*) paulo@0: if test -d /usr/nec ;then paulo@0: version_type=linux paulo@0: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' paulo@0: soname_spec='$libname${shared_ext}.$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: fi paulo@0: ;; paulo@0: paulo@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) paulo@0: version_type=freebsd-elf paulo@0: need_lib_prefix=no paulo@0: need_version=no paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: hardcode_into_libs=yes paulo@0: if test "$with_gnu_ld" = yes; then paulo@0: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' paulo@0: shlibpath_overrides_runpath=no paulo@0: else paulo@0: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' paulo@0: shlibpath_overrides_runpath=yes paulo@0: case $host_os in paulo@0: sco3.2v5*) paulo@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: sys_lib_dlsearch_path_spec='/usr/lib' paulo@0: ;; paulo@0: paulo@0: uts4*) paulo@0: version_type=linux paulo@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' paulo@0: soname_spec='${libname}${release}${shared_ext}$major' paulo@0: shlibpath_var=LD_LIBRARY_PATH paulo@0: ;; paulo@0: paulo@0: *) paulo@0: dynamic_linker=no paulo@0: ;; paulo@0: esac paulo@0: echo "$as_me:$LINENO: result: $dynamic_linker" >&5 paulo@0: echo "${ECHO_T}$dynamic_linker" >&6 paulo@0: test "$dynamic_linker" = no && can_build_shared=no paulo@0: paulo@0: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" paulo@0: if test "$GCC" = yes; then paulo@0: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" paulo@0: fi paulo@0: paulo@0: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 paulo@0: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 paulo@0: hardcode_action_GCJ= paulo@0: if test -n "$hardcode_libdir_flag_spec_GCJ" || \ paulo@0: test -n "$runpath_var_GCJ" || \ paulo@0: test "X$hardcode_automatic_GCJ" = "Xyes" ; then paulo@0: paulo@0: # We can hardcode non-existant directories. paulo@0: if test "$hardcode_direct_GCJ" != no && paulo@0: # If the only mechanism to avoid hardcoding is shlibpath_var, we paulo@0: # have to relink, otherwise we might link with an installed library paulo@0: # when we should be linking with a yet-to-be-installed one paulo@0: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && paulo@0: test "$hardcode_minus_L_GCJ" != no; then paulo@0: # Linking always hardcodes the temporary library directory. paulo@0: hardcode_action_GCJ=relink paulo@0: else paulo@0: # We can link without hardcoding, and we can hardcode nonexisting dirs. paulo@0: hardcode_action_GCJ=immediate paulo@0: fi paulo@0: else paulo@0: # We cannot hardcode anything, or else we can only hardcode existing paulo@0: # directories. paulo@0: hardcode_action_GCJ=unsupported paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 paulo@0: echo "${ECHO_T}$hardcode_action_GCJ" >&6 paulo@0: paulo@0: if test "$hardcode_action_GCJ" = relink; then paulo@0: # Fast installation is not supported paulo@0: enable_fast_install=no paulo@0: elif test "$shlibpath_overrides_runpath" = yes || paulo@0: test "$enable_shared" = no; then paulo@0: # Fast installation is not necessary paulo@0: enable_fast_install=needless paulo@0: fi paulo@0: paulo@0: paulo@0: # The else clause should only fire when bootstrapping the paulo@0: # libtool distribution, otherwise you forgot to ship ltmain.sh paulo@0: # with your package, and you will get complaints that there are paulo@0: # no rules to generate ltmain.sh. paulo@0: if test -f "$ltmain"; then paulo@0: # See if we are running on zsh, and set the options which allow our commands through paulo@0: # without removal of \ escapes. paulo@0: if test -n "${ZSH_VERSION+set}" ; then paulo@0: setopt NO_GLOB_SUBST paulo@0: fi paulo@0: # Now quote all the things that may contain metacharacters while being paulo@0: # careful not to overquote the AC_SUBSTed values. We take copies of the paulo@0: # variables and quote the copies for generation of the libtool script. paulo@0: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ paulo@0: SED SHELL STRIP \ paulo@0: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ paulo@0: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ paulo@0: deplibs_check_method reload_flag reload_cmds need_locks \ paulo@0: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ paulo@0: lt_cv_sys_global_symbol_to_c_name_address \ paulo@0: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ paulo@0: old_postinstall_cmds old_postuninstall_cmds \ paulo@0: compiler_GCJ \ paulo@0: CC_GCJ \ paulo@0: LD_GCJ \ paulo@0: lt_prog_compiler_wl_GCJ \ paulo@0: lt_prog_compiler_pic_GCJ \ paulo@0: lt_prog_compiler_static_GCJ \ paulo@0: lt_prog_compiler_no_builtin_flag_GCJ \ paulo@0: export_dynamic_flag_spec_GCJ \ paulo@0: thread_safe_flag_spec_GCJ \ paulo@0: whole_archive_flag_spec_GCJ \ paulo@0: enable_shared_with_static_runtimes_GCJ \ paulo@0: old_archive_cmds_GCJ \ paulo@0: old_archive_from_new_cmds_GCJ \ paulo@0: predep_objects_GCJ \ paulo@0: postdep_objects_GCJ \ paulo@0: predeps_GCJ \ paulo@0: postdeps_GCJ \ paulo@0: compiler_lib_search_path_GCJ \ paulo@0: archive_cmds_GCJ \ paulo@0: archive_expsym_cmds_GCJ \ paulo@0: postinstall_cmds_GCJ \ paulo@0: postuninstall_cmds_GCJ \ paulo@0: old_archive_from_expsyms_cmds_GCJ \ paulo@0: allow_undefined_flag_GCJ \ paulo@0: no_undefined_flag_GCJ \ paulo@0: export_symbols_cmds_GCJ \ paulo@0: hardcode_libdir_flag_spec_GCJ \ paulo@0: hardcode_libdir_flag_spec_ld_GCJ \ paulo@0: hardcode_libdir_separator_GCJ \ paulo@0: hardcode_automatic_GCJ \ paulo@0: module_cmds_GCJ \ paulo@0: module_expsym_cmds_GCJ \ paulo@0: lt_cv_prog_compiler_c_o_GCJ \ paulo@0: exclude_expsyms_GCJ \ paulo@0: include_expsyms_GCJ; do paulo@0: paulo@0: case $var in paulo@0: old_archive_cmds_GCJ | \ paulo@0: old_archive_from_new_cmds_GCJ | \ paulo@0: archive_cmds_GCJ | \ paulo@0: archive_expsym_cmds_GCJ | \ paulo@0: module_cmds_GCJ | \ paulo@0: module_expsym_cmds_GCJ | \ paulo@0: old_archive_from_expsyms_cmds_GCJ | \ paulo@0: export_symbols_cmds_GCJ | \ paulo@0: extract_expsyms_cmds | reload_cmds | finish_cmds | \ paulo@0: postinstall_cmds | postuninstall_cmds | \ paulo@0: old_postinstall_cmds | old_postuninstall_cmds | \ paulo@0: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) paulo@0: # Double-quote double-evaled strings. paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" paulo@0: ;; paulo@0: *) paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: paulo@0: case $lt_echo in paulo@0: *'\$0 --fallback-echo"') paulo@0: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` paulo@0: ;; paulo@0: esac paulo@0: paulo@0: cfgfile="$ofile" paulo@0: paulo@0: cat <<__EOF__ >> "$cfgfile" paulo@0: # ### BEGIN LIBTOOL TAG CONFIG: $tagname paulo@0: paulo@0: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: paulo@0: paulo@0: # Shell to use when invoking shell scripts. paulo@0: SHELL=$lt_SHELL paulo@0: paulo@0: # Whether or not to build shared libraries. paulo@0: build_libtool_libs=$enable_shared paulo@0: paulo@0: # Whether or not to build static libraries. paulo@0: build_old_libs=$enable_static paulo@0: paulo@0: # Whether or not to add -lc for building shared libraries. paulo@0: build_libtool_need_lc=$archive_cmds_need_lc_GCJ paulo@0: paulo@0: # Whether or not to disallow shared libs when runtime libs are static paulo@0: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ paulo@0: paulo@0: # Whether or not to optimize for fast installation. paulo@0: fast_install=$enable_fast_install paulo@0: paulo@0: # The host system. paulo@0: host_alias=$host_alias paulo@0: host=$host paulo@0: host_os=$host_os paulo@0: paulo@0: # The build system. paulo@0: build_alias=$build_alias paulo@0: build=$build paulo@0: build_os=$build_os paulo@0: paulo@0: # An echo program that does not interpret backslashes. paulo@0: echo=$lt_echo paulo@0: paulo@0: # The archiver. paulo@0: AR=$lt_AR paulo@0: AR_FLAGS=$lt_AR_FLAGS paulo@0: paulo@0: # A C compiler. paulo@0: LTCC=$lt_LTCC paulo@0: paulo@0: # LTCC compiler flags. paulo@0: LTCFLAGS=$lt_LTCFLAGS paulo@0: paulo@0: # A language-specific compiler. paulo@0: CC=$lt_compiler_GCJ paulo@0: paulo@0: # Is the compiler the GNU C compiler? paulo@0: with_gcc=$GCC_GCJ paulo@0: paulo@0: # An ERE matcher. paulo@0: EGREP=$lt_EGREP paulo@0: paulo@0: # The linker used to build libraries. paulo@0: LD=$lt_LD_GCJ paulo@0: paulo@0: # Whether we need hard or soft links. paulo@0: LN_S=$lt_LN_S paulo@0: paulo@0: # A BSD-compatible nm program. paulo@0: NM=$lt_NM paulo@0: paulo@0: # A symbol stripping program paulo@0: STRIP=$lt_STRIP paulo@0: paulo@0: # Used to examine libraries when file_magic_cmd begins "file" paulo@0: MAGIC_CMD=$MAGIC_CMD paulo@0: paulo@0: # Used on cygwin: DLL creation program. paulo@0: DLLTOOL="$DLLTOOL" paulo@0: paulo@0: # Used on cygwin: object dumper. paulo@0: OBJDUMP="$OBJDUMP" paulo@0: paulo@0: # Used on cygwin: assembler. paulo@0: AS="$AS" paulo@0: paulo@0: # The name of the directory that contains temporary libtool files. paulo@0: objdir=$objdir paulo@0: paulo@0: # How to create reloadable object files. paulo@0: reload_flag=$lt_reload_flag paulo@0: reload_cmds=$lt_reload_cmds paulo@0: paulo@0: # How to pass a linker flag through the compiler. paulo@0: wl=$lt_lt_prog_compiler_wl_GCJ paulo@0: paulo@0: # Object file suffix (normally "o"). paulo@0: objext="$ac_objext" paulo@0: paulo@0: # Old archive suffix (normally "a"). paulo@0: libext="$libext" paulo@0: paulo@0: # Shared library suffix (normally ".so"). paulo@0: shrext_cmds='$shrext_cmds' paulo@0: paulo@0: # Executable file suffix (normally ""). paulo@0: exeext="$exeext" paulo@0: paulo@0: # Additional compiler flags for building library objects. paulo@0: pic_flag=$lt_lt_prog_compiler_pic_GCJ paulo@0: pic_mode=$pic_mode paulo@0: paulo@0: # What is the maximum length of a command? paulo@0: max_cmd_len=$lt_cv_sys_max_cmd_len paulo@0: paulo@0: # Does compiler simultaneously support -c and -o options? paulo@0: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ paulo@0: paulo@0: # Must we lock files when doing compilation? paulo@0: need_locks=$lt_need_locks paulo@0: paulo@0: # Do we need the lib prefix for modules? paulo@0: need_lib_prefix=$need_lib_prefix paulo@0: paulo@0: # Do we need a version for libraries? paulo@0: need_version=$need_version paulo@0: paulo@0: # Whether dlopen is supported. paulo@0: dlopen_support=$enable_dlopen paulo@0: paulo@0: # Whether dlopen of programs is supported. paulo@0: dlopen_self=$enable_dlopen_self paulo@0: paulo@0: # Whether dlopen of statically linked programs is supported. paulo@0: dlopen_self_static=$enable_dlopen_self_static paulo@0: paulo@0: # Compiler flag to prevent dynamic linking. paulo@0: link_static_flag=$lt_lt_prog_compiler_static_GCJ paulo@0: paulo@0: # Compiler flag to turn off builtin functions. paulo@0: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ paulo@0: paulo@0: # Compiler flag to allow reflexive dlopens. paulo@0: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ paulo@0: paulo@0: # Compiler flag to generate shared objects directly from archives. paulo@0: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ paulo@0: paulo@0: # Compiler flag to generate thread-safe objects. paulo@0: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ paulo@0: paulo@0: # Library versioning type. paulo@0: version_type=$version_type paulo@0: paulo@0: # Format of library name prefix. paulo@0: libname_spec=$lt_libname_spec paulo@0: paulo@0: # List of archive names. First name is the real one, the rest are links. paulo@0: # The last name is the one that the linker finds with -lNAME. paulo@0: library_names_spec=$lt_library_names_spec paulo@0: paulo@0: # The coded name of the library, if different from the real name. paulo@0: soname_spec=$lt_soname_spec paulo@0: paulo@0: # Commands used to build and install an old-style archive. paulo@0: RANLIB=$lt_RANLIB paulo@0: old_archive_cmds=$lt_old_archive_cmds_GCJ paulo@0: old_postinstall_cmds=$lt_old_postinstall_cmds paulo@0: old_postuninstall_cmds=$lt_old_postuninstall_cmds paulo@0: paulo@0: # Create an old-style archive from a shared archive. paulo@0: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ paulo@0: paulo@0: # Create a temporary old-style archive to link instead of a shared archive. paulo@0: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ paulo@0: paulo@0: # Commands used to build and install a shared archive. paulo@0: archive_cmds=$lt_archive_cmds_GCJ paulo@0: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ paulo@0: postinstall_cmds=$lt_postinstall_cmds paulo@0: postuninstall_cmds=$lt_postuninstall_cmds paulo@0: paulo@0: # Commands used to build a loadable module (assumed same as above if empty) paulo@0: module_cmds=$lt_module_cmds_GCJ paulo@0: module_expsym_cmds=$lt_module_expsym_cmds_GCJ paulo@0: paulo@0: # Commands to strip libraries. paulo@0: old_striplib=$lt_old_striplib paulo@0: striplib=$lt_striplib paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predep_objects=$lt_predep_objects_GCJ paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdep_objects=$lt_postdep_objects_GCJ paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predeps=$lt_predeps_GCJ paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdeps=$lt_postdeps_GCJ paulo@0: paulo@0: # The library search path used internally by the compiler when linking paulo@0: # a shared library. paulo@0: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ paulo@0: paulo@0: # Method to check whether dependent libraries are shared objects. paulo@0: deplibs_check_method=$lt_deplibs_check_method paulo@0: paulo@0: # Command to use when deplibs_check_method == file_magic. paulo@0: file_magic_cmd=$lt_file_magic_cmd paulo@0: paulo@0: # Flag that allows shared libraries with undefined symbols to be built. paulo@0: allow_undefined_flag=$lt_allow_undefined_flag_GCJ paulo@0: paulo@0: # Flag that forces no undefined symbols. paulo@0: no_undefined_flag=$lt_no_undefined_flag_GCJ paulo@0: paulo@0: # Commands used to finish a libtool library installation in a directory. paulo@0: finish_cmds=$lt_finish_cmds paulo@0: paulo@0: # Same as above, but a single script fragment to be evaled but not shown. paulo@0: finish_eval=$lt_finish_eval paulo@0: paulo@0: # Take the output of nm and produce a listing of raw symbols and C names. paulo@0: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe paulo@0: paulo@0: # Transform the output of nm in a proper C declaration paulo@0: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl paulo@0: paulo@0: # Transform the output of nm in a C name address pair paulo@0: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address paulo@0: paulo@0: # This is the shared library runtime path variable. paulo@0: runpath_var=$runpath_var paulo@0: paulo@0: # This is the shared library path variable. paulo@0: shlibpath_var=$shlibpath_var paulo@0: paulo@0: # Is shlibpath searched before the hard-coded library search path? paulo@0: shlibpath_overrides_runpath=$shlibpath_overrides_runpath paulo@0: paulo@0: # How to hardcode a shared library path into an executable. paulo@0: hardcode_action=$hardcode_action_GCJ paulo@0: paulo@0: # Whether we should hardcode library paths into libraries. paulo@0: hardcode_into_libs=$hardcode_into_libs paulo@0: paulo@0: # Flag to hardcode \$libdir into a binary during linking. paulo@0: # This must work even if \$libdir does not exist. paulo@0: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ paulo@0: paulo@0: # If ld is used when linking, flag to hardcode \$libdir into paulo@0: # a binary during linking. This must work even if \$libdir does paulo@0: # not exist. paulo@0: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ paulo@0: paulo@0: # Whether we need a single -rpath flag with a separated argument. paulo@0: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ paulo@0: paulo@0: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_direct=$hardcode_direct_GCJ paulo@0: paulo@0: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_minus_L=$hardcode_minus_L_GCJ paulo@0: paulo@0: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into paulo@0: # the resulting binary. paulo@0: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ paulo@0: paulo@0: # Set to yes if building a shared library automatically hardcodes DIR into the library paulo@0: # and all subsequent libraries and executables linked against it. paulo@0: hardcode_automatic=$hardcode_automatic_GCJ paulo@0: paulo@0: # Variables whose values should be saved in libtool wrapper scripts and paulo@0: # restored at relink time. paulo@0: variables_saved_for_relink="$variables_saved_for_relink" paulo@0: paulo@0: # Whether libtool must link a program against all its dependency libraries. paulo@0: link_all_deplibs=$link_all_deplibs_GCJ paulo@0: paulo@0: # Compile-time system search path for libraries paulo@0: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec paulo@0: paulo@0: # Run-time system search path for libraries paulo@0: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec paulo@0: paulo@0: # Fix the shell variable \$srcfile for the compiler. paulo@0: fix_srcfile_path="$fix_srcfile_path_GCJ" paulo@0: paulo@0: # Set to yes if exported symbols are required. paulo@0: always_export_symbols=$always_export_symbols_GCJ paulo@0: paulo@0: # The commands to list exported symbols. paulo@0: export_symbols_cmds=$lt_export_symbols_cmds_GCJ paulo@0: paulo@0: # The commands to extract the exported symbol list from a shared archive. paulo@0: extract_expsyms_cmds=$lt_extract_expsyms_cmds paulo@0: paulo@0: # Symbols that should not be listed in the preloaded symbols. paulo@0: exclude_expsyms=$lt_exclude_expsyms_GCJ paulo@0: paulo@0: # Symbols that must always be exported. paulo@0: include_expsyms=$lt_include_expsyms_GCJ paulo@0: paulo@0: # ### END LIBTOOL TAG CONFIG: $tagname paulo@0: paulo@0: __EOF__ paulo@0: paulo@0: paulo@0: else paulo@0: # If there is no Makefile yet, we rely on a make rule to execute paulo@0: # `config.status --recheck' to rerun these tests and create the paulo@0: # libtool script then. paulo@0: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` paulo@0: if test -f "$ltmain_in"; then paulo@0: test -f Makefile && make "$ltmain" paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: CC="$lt_save_CC" paulo@0: paulo@0: else paulo@0: tagname="" paulo@0: fi paulo@0: ;; paulo@0: paulo@0: RC) paulo@0: paulo@0: paulo@0: paulo@0: # Source file extension for RC test sources. paulo@0: ac_ext=rc paulo@0: paulo@0: # Object file extension for compiled RC test sources. paulo@0: objext=o paulo@0: objext_RC=$objext paulo@0: paulo@0: # Code to be used in simple compile tests paulo@0: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' paulo@0: paulo@0: # Code to be used in simple link tests paulo@0: lt_simple_link_test_code="$lt_simple_compile_test_code" paulo@0: paulo@0: # ltmain only uses $CC for tagged configurations so make sure $CC is set. paulo@0: paulo@0: # If no C compiler was specified, use CC. paulo@0: LTCC=${LTCC-"$CC"} paulo@0: paulo@0: # If no C compiler flags were specified, use CFLAGS. paulo@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: compiler=$CC paulo@0: paulo@0: paulo@0: # save warnings/boilerplate of simple test code paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_compile_test_code" >conftest.$ac_ext paulo@0: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_compiler_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: ac_outfile=conftest.$ac_objext paulo@0: printf "$lt_simple_link_test_code" >conftest.$ac_ext paulo@0: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err paulo@0: _lt_linker_boilerplate=`cat conftest.err` paulo@0: $rm conftest* paulo@0: paulo@0: paulo@0: # Allow CC to be a program name with arguments. paulo@0: lt_save_CC="$CC" paulo@0: CC=${RC-"windres"} paulo@0: compiler=$CC paulo@0: compiler_RC=$CC paulo@0: for cc_temp in $compiler""; do paulo@0: case $cc_temp in paulo@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; paulo@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; paulo@0: \-*) ;; paulo@0: *) break;; paulo@0: esac paulo@0: done paulo@0: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` paulo@0: paulo@0: lt_cv_prog_compiler_c_o_RC=yes paulo@0: paulo@0: # The else clause should only fire when bootstrapping the paulo@0: # libtool distribution, otherwise you forgot to ship ltmain.sh paulo@0: # with your package, and you will get complaints that there are paulo@0: # no rules to generate ltmain.sh. paulo@0: if test -f "$ltmain"; then paulo@0: # See if we are running on zsh, and set the options which allow our commands through paulo@0: # without removal of \ escapes. paulo@0: if test -n "${ZSH_VERSION+set}" ; then paulo@0: setopt NO_GLOB_SUBST paulo@0: fi paulo@0: # Now quote all the things that may contain metacharacters while being paulo@0: # careful not to overquote the AC_SUBSTed values. We take copies of the paulo@0: # variables and quote the copies for generation of the libtool script. paulo@0: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ paulo@0: SED SHELL STRIP \ paulo@0: libname_spec library_names_spec soname_spec extract_expsyms_cmds \ paulo@0: old_striplib striplib file_magic_cmd finish_cmds finish_eval \ paulo@0: deplibs_check_method reload_flag reload_cmds need_locks \ paulo@0: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ paulo@0: lt_cv_sys_global_symbol_to_c_name_address \ paulo@0: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ paulo@0: old_postinstall_cmds old_postuninstall_cmds \ paulo@0: compiler_RC \ paulo@0: CC_RC \ paulo@0: LD_RC \ paulo@0: lt_prog_compiler_wl_RC \ paulo@0: lt_prog_compiler_pic_RC \ paulo@0: lt_prog_compiler_static_RC \ paulo@0: lt_prog_compiler_no_builtin_flag_RC \ paulo@0: export_dynamic_flag_spec_RC \ paulo@0: thread_safe_flag_spec_RC \ paulo@0: whole_archive_flag_spec_RC \ paulo@0: enable_shared_with_static_runtimes_RC \ paulo@0: old_archive_cmds_RC \ paulo@0: old_archive_from_new_cmds_RC \ paulo@0: predep_objects_RC \ paulo@0: postdep_objects_RC \ paulo@0: predeps_RC \ paulo@0: postdeps_RC \ paulo@0: compiler_lib_search_path_RC \ paulo@0: archive_cmds_RC \ paulo@0: archive_expsym_cmds_RC \ paulo@0: postinstall_cmds_RC \ paulo@0: postuninstall_cmds_RC \ paulo@0: old_archive_from_expsyms_cmds_RC \ paulo@0: allow_undefined_flag_RC \ paulo@0: no_undefined_flag_RC \ paulo@0: export_symbols_cmds_RC \ paulo@0: hardcode_libdir_flag_spec_RC \ paulo@0: hardcode_libdir_flag_spec_ld_RC \ paulo@0: hardcode_libdir_separator_RC \ paulo@0: hardcode_automatic_RC \ paulo@0: module_cmds_RC \ paulo@0: module_expsym_cmds_RC \ paulo@0: lt_cv_prog_compiler_c_o_RC \ paulo@0: exclude_expsyms_RC \ paulo@0: include_expsyms_RC; do paulo@0: paulo@0: case $var in paulo@0: old_archive_cmds_RC | \ paulo@0: old_archive_from_new_cmds_RC | \ paulo@0: archive_cmds_RC | \ paulo@0: archive_expsym_cmds_RC | \ paulo@0: module_cmds_RC | \ paulo@0: module_expsym_cmds_RC | \ paulo@0: old_archive_from_expsyms_cmds_RC | \ paulo@0: export_symbols_cmds_RC | \ paulo@0: extract_expsyms_cmds | reload_cmds | finish_cmds | \ paulo@0: postinstall_cmds | postuninstall_cmds | \ paulo@0: old_postinstall_cmds | old_postuninstall_cmds | \ paulo@0: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) paulo@0: # Double-quote double-evaled strings. paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" paulo@0: ;; paulo@0: *) paulo@0: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: paulo@0: case $lt_echo in paulo@0: *'\$0 --fallback-echo"') paulo@0: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` paulo@0: ;; paulo@0: esac paulo@0: paulo@0: cfgfile="$ofile" paulo@0: paulo@0: cat <<__EOF__ >> "$cfgfile" paulo@0: # ### BEGIN LIBTOOL TAG CONFIG: $tagname paulo@0: paulo@0: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: paulo@0: paulo@0: # Shell to use when invoking shell scripts. paulo@0: SHELL=$lt_SHELL paulo@0: paulo@0: # Whether or not to build shared libraries. paulo@0: build_libtool_libs=$enable_shared paulo@0: paulo@0: # Whether or not to build static libraries. paulo@0: build_old_libs=$enable_static paulo@0: paulo@0: # Whether or not to add -lc for building shared libraries. paulo@0: build_libtool_need_lc=$archive_cmds_need_lc_RC paulo@0: paulo@0: # Whether or not to disallow shared libs when runtime libs are static paulo@0: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC paulo@0: paulo@0: # Whether or not to optimize for fast installation. paulo@0: fast_install=$enable_fast_install paulo@0: paulo@0: # The host system. paulo@0: host_alias=$host_alias paulo@0: host=$host paulo@0: host_os=$host_os paulo@0: paulo@0: # The build system. paulo@0: build_alias=$build_alias paulo@0: build=$build paulo@0: build_os=$build_os paulo@0: paulo@0: # An echo program that does not interpret backslashes. paulo@0: echo=$lt_echo paulo@0: paulo@0: # The archiver. paulo@0: AR=$lt_AR paulo@0: AR_FLAGS=$lt_AR_FLAGS paulo@0: paulo@0: # A C compiler. paulo@0: LTCC=$lt_LTCC paulo@0: paulo@0: # LTCC compiler flags. paulo@0: LTCFLAGS=$lt_LTCFLAGS paulo@0: paulo@0: # A language-specific compiler. paulo@0: CC=$lt_compiler_RC paulo@0: paulo@0: # Is the compiler the GNU C compiler? paulo@0: with_gcc=$GCC_RC paulo@0: paulo@0: # An ERE matcher. paulo@0: EGREP=$lt_EGREP paulo@0: paulo@0: # The linker used to build libraries. paulo@0: LD=$lt_LD_RC paulo@0: paulo@0: # Whether we need hard or soft links. paulo@0: LN_S=$lt_LN_S paulo@0: paulo@0: # A BSD-compatible nm program. paulo@0: NM=$lt_NM paulo@0: paulo@0: # A symbol stripping program paulo@0: STRIP=$lt_STRIP paulo@0: paulo@0: # Used to examine libraries when file_magic_cmd begins "file" paulo@0: MAGIC_CMD=$MAGIC_CMD paulo@0: paulo@0: # Used on cygwin: DLL creation program. paulo@0: DLLTOOL="$DLLTOOL" paulo@0: paulo@0: # Used on cygwin: object dumper. paulo@0: OBJDUMP="$OBJDUMP" paulo@0: paulo@0: # Used on cygwin: assembler. paulo@0: AS="$AS" paulo@0: paulo@0: # The name of the directory that contains temporary libtool files. paulo@0: objdir=$objdir paulo@0: paulo@0: # How to create reloadable object files. paulo@0: reload_flag=$lt_reload_flag paulo@0: reload_cmds=$lt_reload_cmds paulo@0: paulo@0: # How to pass a linker flag through the compiler. paulo@0: wl=$lt_lt_prog_compiler_wl_RC paulo@0: paulo@0: # Object file suffix (normally "o"). paulo@0: objext="$ac_objext" paulo@0: paulo@0: # Old archive suffix (normally "a"). paulo@0: libext="$libext" paulo@0: paulo@0: # Shared library suffix (normally ".so"). paulo@0: shrext_cmds='$shrext_cmds' paulo@0: paulo@0: # Executable file suffix (normally ""). paulo@0: exeext="$exeext" paulo@0: paulo@0: # Additional compiler flags for building library objects. paulo@0: pic_flag=$lt_lt_prog_compiler_pic_RC paulo@0: pic_mode=$pic_mode paulo@0: paulo@0: # What is the maximum length of a command? paulo@0: max_cmd_len=$lt_cv_sys_max_cmd_len paulo@0: paulo@0: # Does compiler simultaneously support -c and -o options? paulo@0: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC paulo@0: paulo@0: # Must we lock files when doing compilation? paulo@0: need_locks=$lt_need_locks paulo@0: paulo@0: # Do we need the lib prefix for modules? paulo@0: need_lib_prefix=$need_lib_prefix paulo@0: paulo@0: # Do we need a version for libraries? paulo@0: need_version=$need_version paulo@0: paulo@0: # Whether dlopen is supported. paulo@0: dlopen_support=$enable_dlopen paulo@0: paulo@0: # Whether dlopen of programs is supported. paulo@0: dlopen_self=$enable_dlopen_self paulo@0: paulo@0: # Whether dlopen of statically linked programs is supported. paulo@0: dlopen_self_static=$enable_dlopen_self_static paulo@0: paulo@0: # Compiler flag to prevent dynamic linking. paulo@0: link_static_flag=$lt_lt_prog_compiler_static_RC paulo@0: paulo@0: # Compiler flag to turn off builtin functions. paulo@0: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC paulo@0: paulo@0: # Compiler flag to allow reflexive dlopens. paulo@0: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC paulo@0: paulo@0: # Compiler flag to generate shared objects directly from archives. paulo@0: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC paulo@0: paulo@0: # Compiler flag to generate thread-safe objects. paulo@0: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC paulo@0: paulo@0: # Library versioning type. paulo@0: version_type=$version_type paulo@0: paulo@0: # Format of library name prefix. paulo@0: libname_spec=$lt_libname_spec paulo@0: paulo@0: # List of archive names. First name is the real one, the rest are links. paulo@0: # The last name is the one that the linker finds with -lNAME. paulo@0: library_names_spec=$lt_library_names_spec paulo@0: paulo@0: # The coded name of the library, if different from the real name. paulo@0: soname_spec=$lt_soname_spec paulo@0: paulo@0: # Commands used to build and install an old-style archive. paulo@0: RANLIB=$lt_RANLIB paulo@0: old_archive_cmds=$lt_old_archive_cmds_RC paulo@0: old_postinstall_cmds=$lt_old_postinstall_cmds paulo@0: old_postuninstall_cmds=$lt_old_postuninstall_cmds paulo@0: paulo@0: # Create an old-style archive from a shared archive. paulo@0: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC paulo@0: paulo@0: # Create a temporary old-style archive to link instead of a shared archive. paulo@0: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC paulo@0: paulo@0: # Commands used to build and install a shared archive. paulo@0: archive_cmds=$lt_archive_cmds_RC paulo@0: archive_expsym_cmds=$lt_archive_expsym_cmds_RC paulo@0: postinstall_cmds=$lt_postinstall_cmds paulo@0: postuninstall_cmds=$lt_postuninstall_cmds paulo@0: paulo@0: # Commands used to build a loadable module (assumed same as above if empty) paulo@0: module_cmds=$lt_module_cmds_RC paulo@0: module_expsym_cmds=$lt_module_expsym_cmds_RC paulo@0: paulo@0: # Commands to strip libraries. paulo@0: old_striplib=$lt_old_striplib paulo@0: striplib=$lt_striplib paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predep_objects=$lt_predep_objects_RC paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdep_objects=$lt_postdep_objects_RC paulo@0: paulo@0: # Dependencies to place before the objects being linked to create a paulo@0: # shared library. paulo@0: predeps=$lt_predeps_RC paulo@0: paulo@0: # Dependencies to place after the objects being linked to create a paulo@0: # shared library. paulo@0: postdeps=$lt_postdeps_RC paulo@0: paulo@0: # The library search path used internally by the compiler when linking paulo@0: # a shared library. paulo@0: compiler_lib_search_path=$lt_compiler_lib_search_path_RC paulo@0: paulo@0: # Method to check whether dependent libraries are shared objects. paulo@0: deplibs_check_method=$lt_deplibs_check_method paulo@0: paulo@0: # Command to use when deplibs_check_method == file_magic. paulo@0: file_magic_cmd=$lt_file_magic_cmd paulo@0: paulo@0: # Flag that allows shared libraries with undefined symbols to be built. paulo@0: allow_undefined_flag=$lt_allow_undefined_flag_RC paulo@0: paulo@0: # Flag that forces no undefined symbols. paulo@0: no_undefined_flag=$lt_no_undefined_flag_RC paulo@0: paulo@0: # Commands used to finish a libtool library installation in a directory. paulo@0: finish_cmds=$lt_finish_cmds paulo@0: paulo@0: # Same as above, but a single script fragment to be evaled but not shown. paulo@0: finish_eval=$lt_finish_eval paulo@0: paulo@0: # Take the output of nm and produce a listing of raw symbols and C names. paulo@0: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe paulo@0: paulo@0: # Transform the output of nm in a proper C declaration paulo@0: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl paulo@0: paulo@0: # Transform the output of nm in a C name address pair paulo@0: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address paulo@0: paulo@0: # This is the shared library runtime path variable. paulo@0: runpath_var=$runpath_var paulo@0: paulo@0: # This is the shared library path variable. paulo@0: shlibpath_var=$shlibpath_var paulo@0: paulo@0: # Is shlibpath searched before the hard-coded library search path? paulo@0: shlibpath_overrides_runpath=$shlibpath_overrides_runpath paulo@0: paulo@0: # How to hardcode a shared library path into an executable. paulo@0: hardcode_action=$hardcode_action_RC paulo@0: paulo@0: # Whether we should hardcode library paths into libraries. paulo@0: hardcode_into_libs=$hardcode_into_libs paulo@0: paulo@0: # Flag to hardcode \$libdir into a binary during linking. paulo@0: # This must work even if \$libdir does not exist. paulo@0: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC paulo@0: paulo@0: # If ld is used when linking, flag to hardcode \$libdir into paulo@0: # a binary during linking. This must work even if \$libdir does paulo@0: # not exist. paulo@0: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC paulo@0: paulo@0: # Whether we need a single -rpath flag with a separated argument. paulo@0: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC paulo@0: paulo@0: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_direct=$hardcode_direct_RC paulo@0: paulo@0: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the paulo@0: # resulting binary. paulo@0: hardcode_minus_L=$hardcode_minus_L_RC paulo@0: paulo@0: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into paulo@0: # the resulting binary. paulo@0: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC paulo@0: paulo@0: # Set to yes if building a shared library automatically hardcodes DIR into the library paulo@0: # and all subsequent libraries and executables linked against it. paulo@0: hardcode_automatic=$hardcode_automatic_RC paulo@0: paulo@0: # Variables whose values should be saved in libtool wrapper scripts and paulo@0: # restored at relink time. paulo@0: variables_saved_for_relink="$variables_saved_for_relink" paulo@0: paulo@0: # Whether libtool must link a program against all its dependency libraries. paulo@0: link_all_deplibs=$link_all_deplibs_RC paulo@0: paulo@0: # Compile-time system search path for libraries paulo@0: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec paulo@0: paulo@0: # Run-time system search path for libraries paulo@0: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec paulo@0: paulo@0: # Fix the shell variable \$srcfile for the compiler. paulo@0: fix_srcfile_path="$fix_srcfile_path_RC" paulo@0: paulo@0: # Set to yes if exported symbols are required. paulo@0: always_export_symbols=$always_export_symbols_RC paulo@0: paulo@0: # The commands to list exported symbols. paulo@0: export_symbols_cmds=$lt_export_symbols_cmds_RC paulo@0: paulo@0: # The commands to extract the exported symbol list from a shared archive. paulo@0: extract_expsyms_cmds=$lt_extract_expsyms_cmds paulo@0: paulo@0: # Symbols that should not be listed in the preloaded symbols. paulo@0: exclude_expsyms=$lt_exclude_expsyms_RC paulo@0: paulo@0: # Symbols that must always be exported. paulo@0: include_expsyms=$lt_include_expsyms_RC paulo@0: paulo@0: # ### END LIBTOOL TAG CONFIG: $tagname paulo@0: paulo@0: __EOF__ paulo@0: paulo@0: paulo@0: else paulo@0: # If there is no Makefile yet, we rely on a make rule to execute paulo@0: # `config.status --recheck' to rerun these tests and create the paulo@0: # libtool script then. paulo@0: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` paulo@0: if test -f "$ltmain_in"; then paulo@0: test -f Makefile && make "$ltmain" paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: ac_ext=c paulo@0: ac_cpp='$CPP $CPPFLAGS' paulo@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' paulo@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' paulo@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu paulo@0: paulo@0: CC="$lt_save_CC" paulo@0: paulo@0: ;; paulo@0: paulo@0: *) paulo@0: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 paulo@0: echo "$as_me: error: Unsupported tag name: $tagname" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # Append the new tag name to the list of available tags. paulo@0: if test -n "$tagname" ; then paulo@0: available_tags="$available_tags $tagname" paulo@0: fi paulo@0: fi paulo@0: done paulo@0: IFS="$lt_save_ifs" paulo@0: paulo@0: # Now substitute the updated list of available tags. paulo@0: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then paulo@0: mv "${ofile}T" "$ofile" paulo@0: chmod +x "$ofile" paulo@0: else paulo@0: rm -f "${ofile}T" paulo@0: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 paulo@0: echo "$as_me: error: unable to update list of available tagged configurations." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: # This can be used to rebuild libtool when needed paulo@0: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" paulo@0: paulo@0: # Always use our own libtool. paulo@0: LIBTOOL='$(SHELL) $(top_builddir)/libtool' paulo@0: paulo@0: # Prevent multiple expansion paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: PLUGIN_LDFLAGS="-module -avoid-version" paulo@0: paulo@0: paulo@0: # work around a bug where need_version is set to no by the above paulo@0: # -avoid-version call when this is not supported on OpenBSD (or am I paulo@0: # completely wrong about this?) paulo@0: case "${host_os}" in paulo@0: openbsd*) paulo@0: sed 's/^need_version=no$/need_version=yes/' < libtool > libtool.tmp && mv -f libtool.tmp libtool paulo@0: ;; paulo@0: esac paulo@0: paulo@0: paulo@0: paulo@0: # Extract the first word of "pkg-config", so it can be a program name with args. paulo@0: set dummy pkg-config; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: case $PKG_CONFIG in paulo@0: [\\/]* | ?:[\\/]*) paulo@0: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. paulo@0: ;; paulo@0: *) paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: PKG_CONFIG=$ac_cv_path_PKG_CONFIG paulo@0: paulo@0: if test -n "$PKG_CONFIG"; then paulo@0: echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 paulo@0: echo "${ECHO_T}$PKG_CONFIG" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: paulo@0: if test x$prefix != xNONE; then paulo@0: PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig" paulo@0: fi paulo@0: paulo@0: PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" paulo@0: export PKG_CONFIG_PATH paulo@0: paulo@0: paulo@0: succeeded=no paulo@0: paulo@0: if test -z "$PKG_CONFIG"; then paulo@0: # Extract the first word of "pkg-config", so it can be a program name with args. paulo@0: set dummy pkg-config; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: case $PKG_CONFIG in paulo@0: [\\/]* | ?:[\\/]*) paulo@0: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. paulo@0: ;; paulo@0: *) paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: PKG_CONFIG=$ac_cv_path_PKG_CONFIG paulo@0: paulo@0: if test -n "$PKG_CONFIG"; then paulo@0: echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 paulo@0: echo "${ECHO_T}$PKG_CONFIG" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: paulo@0: if test "$PKG_CONFIG" = "no" ; then paulo@0: echo "*** The pkg-config script could not be found. Make sure it is" paulo@0: echo "*** in your path, or set the PKG_CONFIG environment variable" paulo@0: echo "*** to the full path to pkg-config." paulo@0: echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." paulo@0: else paulo@0: PKG_CONFIG_MIN_VERSION=0.9.0 paulo@0: if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then paulo@0: echo "$as_me:$LINENO: checking for libgift >= 0.11.4 libgift < 0.12.0" >&5 paulo@0: echo $ECHO_N "checking for libgift >= 0.11.4 libgift < 0.12.0... $ECHO_C" >&6 paulo@0: paulo@0: if $PKG_CONFIG --exists "libgift >= 0.11.4 libgift < 0.12.0" ; then paulo@0: echo "$as_me:$LINENO: result: yes" >&5 paulo@0: echo "${ECHO_T}yes" >&6 paulo@0: succeeded=yes paulo@0: paulo@0: echo "$as_me:$LINENO: checking GNUTELLA_CFLAGS" >&5 paulo@0: echo $ECHO_N "checking GNUTELLA_CFLAGS... $ECHO_C" >&6 paulo@0: GNUTELLA_CFLAGS=`$PKG_CONFIG --cflags "libgift >= 0.11.4 libgift < 0.12.0"` paulo@0: echo "$as_me:$LINENO: result: $GNUTELLA_CFLAGS" >&5 paulo@0: echo "${ECHO_T}$GNUTELLA_CFLAGS" >&6 paulo@0: paulo@0: echo "$as_me:$LINENO: checking GNUTELLA_LIBS" >&5 paulo@0: echo $ECHO_N "checking GNUTELLA_LIBS... $ECHO_C" >&6 paulo@0: GNUTELLA_LIBS=`$PKG_CONFIG --libs "libgift >= 0.11.4 libgift < 0.12.0"` paulo@0: echo "$as_me:$LINENO: result: $GNUTELLA_LIBS" >&5 paulo@0: echo "${ECHO_T}$GNUTELLA_LIBS" >&6 paulo@0: else paulo@0: GNUTELLA_CFLAGS="" paulo@0: GNUTELLA_LIBS="" paulo@0: ## If we have a custom action on failure, don't print errors, but paulo@0: ## do set a variable so people can do so. paulo@0: GNUTELLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgift >= 0.11.4 libgift < 0.12.0"` paulo@0: echo $GNUTELLA_PKG_ERRORS paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: else paulo@0: echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." paulo@0: echo "*** See http://www.freedesktop.org/software/pkgconfig" paulo@0: fi paulo@0: fi paulo@0: paulo@0: if test $succeeded = yes; then paulo@0: : paulo@0: else paulo@0: { { echo "$as_me:$LINENO: error: Library requirements (libgift >= 0.11.4 libgift < 0.12.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 paulo@0: echo "$as_me: error: Library requirements (libgift >= 0.11.4 libgift < 0.12.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: paulo@0: # fudge libgiftproto in there which doesnt have any pkg-config entry paulo@0: GNUTELLA_LIBS="$GNUTELLA_LIBS -lgiftproto" paulo@0: paulo@0: # hack to set libgift_version paulo@0: libgift_version=`pkg-config libgift --modversion` paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: # Get rid of -g[0-9] -Wall -O[0-9] and add them unconditionally if paulo@0: # compiling in maintainer mode paulo@0: if test x"$USE_MAINTAINER_MODE" = xyes; then paulo@0: CFLAGS=`echo "$CFLAGS" | sed 's/-Wall\>//; s/-O[0-9]//; s/-g\([0-9]\)*//'` paulo@0: CFLAGS="$CFLAGS -Wall -g3 -O0" paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: for ac_func in getpid getppid paulo@0: do paulo@0: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` paulo@0: echo "$as_me:$LINENO: checking for $ac_func" >&5 paulo@0: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 paulo@0: if eval "test \"\${$as_ac_var+set}\" = set"; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: /* Define $ac_func to an innocuous variant, in case declares $ac_func. paulo@0: For example, HP-UX 11i declares gettimeofday. */ paulo@0: #define $ac_func innocuous_$ac_func paulo@0: paulo@0: /* System header to define __stub macros and hopefully few prototypes, paulo@0: which can conflict with char $ac_func (); below. paulo@0: Prefer to if __STDC__ is defined, since paulo@0: exists even on freestanding compilers. */ paulo@0: paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: paulo@0: #undef $ac_func paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: { paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char $ac_func (); paulo@0: /* The GNU C library defines this for functions which it implements paulo@0: to always fail with ENOSYS. Some functions are actually named paulo@0: something starting with __ and the normal name is an alias. */ paulo@0: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) paulo@0: choke me paulo@0: #else paulo@0: char (*f) () = $ac_func; paulo@0: #endif paulo@0: #ifdef __cplusplus paulo@0: } paulo@0: #endif paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: return f != $ac_func; paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: eval "$as_ac_var=yes" paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: eval "$as_ac_var=no" paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 paulo@0: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 paulo@0: if test `eval echo '${'$as_ac_var'}'` = yes; then paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 paulo@0: _ACEOF paulo@0: paulo@0: fi paulo@0: done paulo@0: paulo@0: paulo@0: paulo@0: paulo@0: for ac_func in hstrerror paulo@0: do paulo@0: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` paulo@0: echo "$as_me:$LINENO: checking for $ac_func" >&5 paulo@0: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 paulo@0: if eval "test \"\${$as_ac_var+set}\" = set"; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: /* Define $ac_func to an innocuous variant, in case declares $ac_func. paulo@0: For example, HP-UX 11i declares gettimeofday. */ paulo@0: #define $ac_func innocuous_$ac_func paulo@0: paulo@0: /* System header to define __stub macros and hopefully few prototypes, paulo@0: which can conflict with char $ac_func (); below. paulo@0: Prefer to if __STDC__ is defined, since paulo@0: exists even on freestanding compilers. */ paulo@0: paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: paulo@0: #undef $ac_func paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: { paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char $ac_func (); paulo@0: /* The GNU C library defines this for functions which it implements paulo@0: to always fail with ENOSYS. Some functions are actually named paulo@0: something starting with __ and the normal name is an alias. */ paulo@0: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) paulo@0: choke me paulo@0: #else paulo@0: char (*f) () = $ac_func; paulo@0: #endif paulo@0: #ifdef __cplusplus paulo@0: } paulo@0: #endif paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: return f != $ac_func; paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: eval "$as_ac_var=yes" paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: eval "$as_ac_var=no" paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 paulo@0: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 paulo@0: if test `eval echo '${'$as_ac_var'}'` = yes; then paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 paulo@0: _ACEOF paulo@0: paulo@0: fi paulo@0: done paulo@0: paulo@0: paulo@0: paulo@0: OPT_ZLIB= paulo@0: paulo@0: # Check whether --with-zlib or --without-zlib was given. paulo@0: if test "${with_zlib+set}" = set; then paulo@0: withval="$with_zlib" paulo@0: OPT_ZLIB=$withval paulo@0: fi; paulo@0: paulo@0: if test x"$OPT_ZLIB" = xno; then paulo@0: { { echo "$as_me:$LINENO: error: zlib support is required" >&5 paulo@0: echo "$as_me: error: zlib support is required" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: paulo@0: # set the minimum ZLIB_VER we're willing to link against... paulo@0: ZLIB_VER=1.1.4 paulo@0: paulo@0: # for some reason Darwin has a 1.1.3 version with the 1.1.4 security fix paulo@0: # applied backwards... paulo@0: case "${host}" in paulo@0: *-*-darwin* ) paulo@0: ZLIB_VER=1.1.3 paulo@0: ;; paulo@0: esac paulo@0: paulo@0: if test x"$OPT_ZLIB" = xno; then paulo@0: zlib_ok=no paulo@0: else paulo@0: ZLIB_DIRS="$OPT_ZLIB /usr /usr/local /sw" paulo@0: for ZLIB_DIR in $ZLIB_DIRS; paulo@0: do paulo@0: LIBS_SAVE="$LIBS" paulo@0: CPPFLAGS_SAVE="$CPPFLAGS" paulo@0: LIBS="$LIBS -L${ZLIB_DIR}/lib" paulo@0: CPPFLAGS="$CPPFLAGS -I${ZLIB_DIR}/include" paulo@0: echo "$as_me:$LINENO: checking for zlib version ${ZLIB_VER}+ in ${ZLIB_DIR}" >&5 paulo@0: echo $ECHO_N "checking for zlib version ${ZLIB_VER}+ in ${ZLIB_DIR}... $ECHO_C" >&6 paulo@0: if test "${zlib_ok+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: if test "$cross_compiling" = yes; then paulo@0: zlib_ok=yes paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: #include paulo@0: #include paulo@0: void main() { paulo@0: exit(strcmp(ZLIB_VERSION, "${ZLIB_VER}") < 0); paulo@0: } paulo@0: paulo@0: _ACEOF paulo@0: rm -f conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: zlib_ok=yes paulo@0: else paulo@0: echo "$as_me: program exited with status $ac_status" >&5 paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ( exit $ac_status ) paulo@0: zlib_ok=no paulo@0: fi paulo@0: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext paulo@0: fi paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $zlib_ok" >&5 paulo@0: echo "${ECHO_T}$zlib_ok" >&6 paulo@0: paulo@0: if test "$zlib_ok" != "no"; then paulo@0: echo "$as_me:$LINENO: checking for gzread" >&5 paulo@0: echo $ECHO_N "checking for gzread... $ECHO_C" >&6 paulo@0: if test "${ac_cv_func_gzread+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: /* Define gzread to an innocuous variant, in case declares gzread. paulo@0: For example, HP-UX 11i declares gettimeofday. */ paulo@0: #define gzread innocuous_gzread paulo@0: paulo@0: /* System header to define __stub macros and hopefully few prototypes, paulo@0: which can conflict with char gzread (); below. paulo@0: Prefer to if __STDC__ is defined, since paulo@0: exists even on freestanding compilers. */ paulo@0: paulo@0: #ifdef __STDC__ paulo@0: # include paulo@0: #else paulo@0: # include paulo@0: #endif paulo@0: paulo@0: #undef gzread paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: { paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char gzread (); paulo@0: /* The GNU C library defines this for functions which it implements paulo@0: to always fail with ENOSYS. Some functions are actually named paulo@0: something starting with __ and the normal name is an alias. */ paulo@0: #if defined (__stub_gzread) || defined (__stub___gzread) paulo@0: choke me paulo@0: #else paulo@0: char (*f) () = gzread; paulo@0: #endif paulo@0: #ifdef __cplusplus paulo@0: } paulo@0: #endif paulo@0: paulo@0: int paulo@0: main () paulo@0: { paulo@0: return f != gzread; paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_func_gzread=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_func_gzread=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_func_gzread" >&5 paulo@0: echo "${ECHO_T}$ac_cv_func_gzread" >&6 paulo@0: if test $ac_cv_func_gzread = yes; then paulo@0: : paulo@0: else paulo@0: paulo@0: echo "$as_me:$LINENO: checking for gzread in -lz" >&5 paulo@0: echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6 paulo@0: if test "${ac_cv_lib_z_gzread+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: ac_check_lib_save_LIBS=$LIBS paulo@0: LIBS="-lz $LIBS" paulo@0: cat >conftest.$ac_ext <<_ACEOF paulo@0: /* confdefs.h. */ paulo@0: _ACEOF paulo@0: cat confdefs.h >>conftest.$ac_ext paulo@0: cat >>conftest.$ac_ext <<_ACEOF paulo@0: /* end confdefs.h. */ paulo@0: paulo@0: /* Override any gcc2 internal prototype to avoid an error. */ paulo@0: #ifdef __cplusplus paulo@0: extern "C" paulo@0: #endif paulo@0: /* We use char because int might match the return type of a gcc2 paulo@0: builtin and then its argument prototype would still apply. */ paulo@0: char gzread (); paulo@0: int paulo@0: main () paulo@0: { paulo@0: gzread (); paulo@0: ; paulo@0: return 0; paulo@0: } paulo@0: _ACEOF paulo@0: rm -f conftest.$ac_objext conftest$ac_exeext paulo@0: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 paulo@0: (eval $ac_link) 2>conftest.er1 paulo@0: ac_status=$? paulo@0: grep -v '^ *+' conftest.er1 >conftest.err paulo@0: rm -f conftest.er1 paulo@0: cat conftest.err >&5 paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); } && paulo@0: { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; } && paulo@0: { ac_try='test -s conftest$ac_exeext' paulo@0: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 paulo@0: (eval $ac_try) 2>&5 paulo@0: ac_status=$? paulo@0: echo "$as_me:$LINENO: \$? = $ac_status" >&5 paulo@0: (exit $ac_status); }; }; then paulo@0: ac_cv_lib_z_gzread=yes paulo@0: else paulo@0: echo "$as_me: failed program was:" >&5 paulo@0: sed 's/^/| /' conftest.$ac_ext >&5 paulo@0: paulo@0: ac_cv_lib_z_gzread=no paulo@0: fi paulo@0: rm -f conftest.err conftest.$ac_objext \ paulo@0: conftest$ac_exeext conftest.$ac_ext paulo@0: LIBS=$ac_check_lib_save_LIBS paulo@0: fi paulo@0: echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5 paulo@0: echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6 paulo@0: if test $ac_cv_lib_z_gzread = yes; then paulo@0: cat >>confdefs.h <<_ACEOF paulo@0: #define HAVE_LIBZ 1 paulo@0: _ACEOF paulo@0: paulo@0: LIBS="-lz $LIBS" paulo@0: paulo@0: fi paulo@0: paulo@0: fi paulo@0: paulo@0: cat >>confdefs.h <<\_ACEOF paulo@0: #define USE_ZLIB 1 paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: break paulo@0: fi paulo@0: LIBS="$LIBS_SAVE" paulo@0: CPPFLAGS="$CPPFLAGS_SAVE" paulo@0: done paulo@0: paulo@0: if test "$zlib_ok" = "no"; then paulo@0: { { echo "$as_me:$LINENO: error: paulo@0: NOTE: The zlib compression library version ${ZLIB_VER} or greater was not found paulo@0: on your system. paulo@0: paulo@0: If zlib ${ZLIB_VER}+ is not installed, install it. paulo@0: " >&5 paulo@0: echo "$as_me: error: paulo@0: NOTE: The zlib compression library version ${ZLIB_VER} or greater was not found paulo@0: on your system. paulo@0: paulo@0: If zlib ${ZLIB_VER}+ is not installed, install it. paulo@0: " >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: OPT_LIBXML=no paulo@0: paulo@0: # Check whether --with-libxml or --without-libxml was given. paulo@0: if test "${with_libxml+set}" = set; then paulo@0: withval="$with_libxml" paulo@0: OPT_LIBXML=$withval paulo@0: fi; paulo@0: paulo@0: echo "$as_me:$LINENO: checking whether libxml should be used" >&5 paulo@0: echo $ECHO_N "checking whether libxml should be used... $ECHO_C" >&6 paulo@0: use_libxml=no paulo@0: paulo@0: if test x"$OPT_LIBXML" != xno; then paulo@0: echo "$as_me:$LINENO: result: yes" >&5 paulo@0: echo "${ECHO_T}yes" >&6 paulo@0: paulo@0: # paulo@0: # Check on the user's PATH if no path was specified in OPT_LIBXML, paulo@0: # when the user has passed --with-libxml without a directory, paulo@0: # or check the directory if one was supplied. paulo@0: # paulo@0: if test x"$OPT_LIBXML" = xyes; then paulo@0: # Extract the first word of "xml2-config", so it can be a program name with args. paulo@0: set dummy xml2-config; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_path_XML2_CONFIG+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: case $XML2_CONFIG in paulo@0: [\\/]* | ?:[\\/]*) paulo@0: ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. paulo@0: ;; paulo@0: *) paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: XML2_CONFIG=$ac_cv_path_XML2_CONFIG paulo@0: paulo@0: if test -n "$XML2_CONFIG"; then paulo@0: echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 paulo@0: echo "${ECHO_T}$XML2_CONFIG" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: else paulo@0: XMLPATH="$OPT_LIBXML/bin" paulo@0: # Extract the first word of "xml2-config", so it can be a program name with args. paulo@0: set dummy xml2-config; ac_word=$2 paulo@0: echo "$as_me:$LINENO: checking for $ac_word" >&5 paulo@0: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 paulo@0: if test "${ac_cv_path_XML2_CONFIG+set}" = set; then paulo@0: echo $ECHO_N "(cached) $ECHO_C" >&6 paulo@0: else paulo@0: case $XML2_CONFIG in paulo@0: [\\/]* | ?:[\\/]*) paulo@0: ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. paulo@0: ;; paulo@0: *) paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $XMLPATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for ac_exec_ext in '' $ac_executable_extensions; do paulo@0: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then paulo@0: ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" paulo@0: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 paulo@0: break 2 paulo@0: fi paulo@0: done paulo@0: done paulo@0: paulo@0: test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no" paulo@0: ;; paulo@0: esac paulo@0: fi paulo@0: XML2_CONFIG=$ac_cv_path_XML2_CONFIG paulo@0: paulo@0: if test -n "$XML2_CONFIG"; then paulo@0: echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 paulo@0: echo "${ECHO_T}$XML2_CONFIG" >&6 paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: fi paulo@0: paulo@0: if test x"$XML2_CONFIG" != xno; then paulo@0: LIBXML2_CFLAGS=`$XML2_CONFIG --cflags` paulo@0: LIBXML2_LIBS=`$XML2_CONFIG --libs` paulo@0: paulo@0: paulo@0: paulo@0: cat >>confdefs.h <<\_ACEOF paulo@0: #define USE_LIBXML2 1 paulo@0: _ACEOF paulo@0: paulo@0: else paulo@0: { { echo "$as_me:$LINENO: error: paulo@0: Couldn't run ${OPT_LIBXML}/bin/xml2-config paulo@0: paulo@0: " >&5 paulo@0: echo "$as_me: error: paulo@0: Couldn't run ${OPT_LIBXML}/bin/xml2-config paulo@0: paulo@0: " >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: use_libxml=yes paulo@0: else paulo@0: echo "$as_me:$LINENO: result: no" >&5 paulo@0: echo "${ECHO_T}no" >&6 paulo@0: fi paulo@0: paulo@0: paulo@0: ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile src/encoding/Makefile src/io/Makefile src/message/Makefile src/transfer/Makefile data/Makefile gnutella.spec" paulo@0: paulo@0: paulo@0: cat >confcache <<\_ACEOF paulo@0: # This file is a shell script that caches the results of configure paulo@0: # tests run on this system so they can be shared between configure paulo@0: # scripts and configure runs, see configure's option --config-cache. paulo@0: # It is not useful on other systems. If it contains results you don't paulo@0: # want to keep, you may remove or edit it. paulo@0: # paulo@0: # config.status only pays attention to the cache file if you give it paulo@0: # the --recheck option to rerun configure. paulo@0: # paulo@0: # `ac_cv_env_foo' variables (set or unset) will be overridden when paulo@0: # loading this file, other *unset* `ac_cv_foo' will be assigned the paulo@0: # following values. paulo@0: paulo@0: _ACEOF paulo@0: paulo@0: # The following way of writing the cache mishandles newlines in values, paulo@0: # but we know of no workaround that is simple, portable, and efficient. paulo@0: # So, don't put newlines in cache variables' values. paulo@0: # Ultrix sh set writes to stderr and can't be redirected directly, paulo@0: # and sets the high bit in the cache file unless we assign to the vars. paulo@0: { paulo@0: (set) 2>&1 | paulo@0: case `(ac_space=' '; set | grep ac_space) 2>&1` in paulo@0: *ac_space=\ *) paulo@0: # `set' does not quote correctly, so add quotes (double-quote paulo@0: # substitution turns \\\\ into \\, and sed turns \\ into \). paulo@0: sed -n \ paulo@0: "s/'/'\\\\''/g; paulo@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" paulo@0: ;; paulo@0: *) paulo@0: # `set' quotes correctly as required by POSIX, so do not add quotes. paulo@0: sed -n \ paulo@0: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" paulo@0: ;; paulo@0: esac; paulo@0: } | paulo@0: sed ' paulo@0: t clear paulo@0: : clear paulo@0: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ paulo@0: t end paulo@0: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ paulo@0: : end' >>confcache paulo@0: if diff $cache_file confcache >/dev/null 2>&1; then :; else paulo@0: if test -w $cache_file; then paulo@0: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" paulo@0: cat confcache >$cache_file paulo@0: else paulo@0: echo "not updating unwritable cache $cache_file" paulo@0: fi paulo@0: fi paulo@0: rm -f confcache paulo@0: paulo@0: test "x$prefix" = xNONE && prefix=$ac_default_prefix paulo@0: # Let make expand exec_prefix. paulo@0: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' paulo@0: paulo@0: # VPATH may cause trouble with some makes, so we remove $(srcdir), paulo@0: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and paulo@0: # trailing colons and then remove the whole line if VPATH becomes empty paulo@0: # (actually we leave an empty line to preserve line numbers). paulo@0: if test "x$srcdir" = x.; then paulo@0: ac_vpsub='/^[ ]*VPATH[ ]*=/{ paulo@0: s/:*\$(srcdir):*/:/; paulo@0: s/:*\${srcdir}:*/:/; paulo@0: s/:*@srcdir@:*/:/; paulo@0: s/^\([^=]*=[ ]*\):*/\1/; paulo@0: s/:*$//; paulo@0: s/^[^=]*=[ ]*$//; paulo@0: }' paulo@0: fi paulo@0: paulo@0: DEFS=-DHAVE_CONFIG_H paulo@0: paulo@0: ac_libobjs= paulo@0: ac_ltlibobjs= paulo@0: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue paulo@0: # 1. Remove the extension, and $U if already installed. paulo@0: ac_i=`echo "$ac_i" | paulo@0: sed 's/\$U\././;s/\.o$//;s/\.obj$//'` paulo@0: # 2. Add them. paulo@0: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" paulo@0: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' paulo@0: done paulo@0: LIBOBJS=$ac_libobjs paulo@0: paulo@0: LTLIBOBJS=$ac_ltlibobjs paulo@0: paulo@0: paulo@0: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then paulo@0: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. paulo@0: Usually this means the macro was only invoked conditionally." >&5 paulo@0: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. paulo@0: Usually this means the macro was only invoked conditionally." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then paulo@0: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. paulo@0: Usually this means the macro was only invoked conditionally." >&5 paulo@0: echo "$as_me: error: conditional \"AMDEP\" was never defined. paulo@0: Usually this means the macro was only invoked conditionally." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then paulo@0: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. paulo@0: Usually this means the macro was only invoked conditionally." >&5 paulo@0: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. paulo@0: Usually this means the macro was only invoked conditionally." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then paulo@0: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. paulo@0: Usually this means the macro was only invoked conditionally." >&5 paulo@0: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. paulo@0: Usually this means the macro was only invoked conditionally." >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: paulo@0: : ${CONFIG_STATUS=./config.status} paulo@0: ac_clean_files_save=$ac_clean_files paulo@0: ac_clean_files="$ac_clean_files $CONFIG_STATUS" paulo@0: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 paulo@0: echo "$as_me: creating $CONFIG_STATUS" >&6;} paulo@0: cat >$CONFIG_STATUS <<_ACEOF paulo@0: #! $SHELL paulo@0: # Generated by $as_me. paulo@0: # Run this file to recreate the current configuration. paulo@0: # Compiler output produced by configure, useful for debugging paulo@0: # configure, is in config.log if it exists. paulo@0: paulo@0: debug=false paulo@0: ac_cs_recheck=false paulo@0: ac_cs_silent=false paulo@0: SHELL=\${CONFIG_SHELL-$SHELL} paulo@0: _ACEOF paulo@0: paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: ## --------------------- ## paulo@0: ## M4sh Initialization. ## paulo@0: ## --------------------- ## paulo@0: paulo@0: # Be Bourne compatible paulo@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then paulo@0: emulate sh paulo@0: NULLCMD=: paulo@0: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which paulo@0: # is contrary to our usage. Disable this feature. paulo@0: alias -g '${1+"$@"}'='"$@"' paulo@0: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then paulo@0: set -o posix paulo@0: fi paulo@0: DUALCASE=1; export DUALCASE # for MKS sh paulo@0: paulo@0: # Support unset when possible. paulo@0: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then paulo@0: as_unset=unset paulo@0: else paulo@0: as_unset=false paulo@0: fi paulo@0: paulo@0: paulo@0: # Work around bugs in pre-3.0 UWIN ksh. paulo@0: $as_unset ENV MAIL MAILPATH paulo@0: PS1='$ ' paulo@0: PS2='> ' paulo@0: PS4='+ ' paulo@0: paulo@0: # NLS nuisances. paulo@0: for as_var in \ paulo@0: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ paulo@0: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ paulo@0: LC_TELEPHONE LC_TIME paulo@0: do paulo@0: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then paulo@0: eval $as_var=C; export $as_var paulo@0: else paulo@0: $as_unset $as_var paulo@0: fi paulo@0: done paulo@0: paulo@0: # Required to use basename. paulo@0: if expr a : '\(a\)' >/dev/null 2>&1; then paulo@0: as_expr=expr paulo@0: else paulo@0: as_expr=false paulo@0: fi paulo@0: paulo@0: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then paulo@0: as_basename=basename paulo@0: else paulo@0: as_basename=false paulo@0: fi paulo@0: paulo@0: paulo@0: # Name of the executable. paulo@0: as_me=`$as_basename "$0" || paulo@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ paulo@0: X"$0" : 'X\(//\)$' \| \ paulo@0: X"$0" : 'X\(/\)$' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X/"$0" | paulo@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } paulo@0: /^X\/\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\/\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: paulo@0: paulo@0: # PATH needs CR, and LINENO needs CR and PATH. paulo@0: # Avoid depending upon Character Ranges. paulo@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' paulo@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' paulo@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS paulo@0: as_cr_digits='0123456789' paulo@0: as_cr_alnum=$as_cr_Letters$as_cr_digits paulo@0: paulo@0: # The user is always right. paulo@0: if test "${PATH_SEPARATOR+set}" != set; then paulo@0: echo "#! /bin/sh" >conf$$.sh paulo@0: echo "exit 0" >>conf$$.sh paulo@0: chmod +x conf$$.sh paulo@0: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then paulo@0: PATH_SEPARATOR=';' paulo@0: else paulo@0: PATH_SEPARATOR=: paulo@0: fi paulo@0: rm -f conf$$.sh paulo@0: fi paulo@0: paulo@0: paulo@0: as_lineno_1=$LINENO paulo@0: as_lineno_2=$LINENO paulo@0: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` paulo@0: test "x$as_lineno_1" != "x$as_lineno_2" && paulo@0: test "x$as_lineno_3" = "x$as_lineno_2" || { paulo@0: # Find who we are. Look in the path if we contain no path at all paulo@0: # relative or not. paulo@0: case $0 in paulo@0: *[\\/]* ) as_myself=$0 ;; paulo@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in $PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break paulo@0: done paulo@0: paulo@0: ;; paulo@0: esac paulo@0: # We did not find ourselves, most probably we were run as `sh COMMAND' paulo@0: # in which case we are not to be found in the path. paulo@0: if test "x$as_myself" = x; then paulo@0: as_myself=$0 paulo@0: fi paulo@0: if test ! -f "$as_myself"; then paulo@0: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 paulo@0: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi paulo@0: case $CONFIG_SHELL in paulo@0: '') paulo@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR paulo@0: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH paulo@0: do paulo@0: IFS=$as_save_IFS paulo@0: test -z "$as_dir" && as_dir=. paulo@0: for as_base in sh bash ksh sh5; do paulo@0: case $as_dir in paulo@0: /*) paulo@0: if ("$as_dir/$as_base" -c ' paulo@0: as_lineno_1=$LINENO paulo@0: as_lineno_2=$LINENO paulo@0: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` paulo@0: test "x$as_lineno_1" != "x$as_lineno_2" && paulo@0: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then paulo@0: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } paulo@0: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } paulo@0: CONFIG_SHELL=$as_dir/$as_base paulo@0: export CONFIG_SHELL paulo@0: exec "$CONFIG_SHELL" "$0" ${1+"$@"} paulo@0: fi;; paulo@0: esac paulo@0: done paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: paulo@0: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO paulo@0: # uniformly replaced by the line number. The first 'sed' inserts a paulo@0: # line-number line before each line; the second 'sed' does the real paulo@0: # work. The second script uses 'N' to pair each line-number line paulo@0: # with the numbered line, and appends trailing '-' during paulo@0: # substitution so that $LINENO is not a special case at line end. paulo@0: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the paulo@0: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) paulo@0: sed '=' <$as_myself | paulo@0: sed ' paulo@0: N paulo@0: s,$,-, paulo@0: : loop paulo@0: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, paulo@0: t loop paulo@0: s,-$,, paulo@0: s,^['$as_cr_digits']*\n,, paulo@0: ' >$as_me.lineno && paulo@0: chmod +x $as_me.lineno || paulo@0: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 paulo@0: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: paulo@0: # Don't try to exec as it changes $[0], causing all sort of problems paulo@0: # (the dirname of $[0] is not the place where we might find the paulo@0: # original and so on. Autoconf is especially sensible to this). paulo@0: . ./$as_me.lineno paulo@0: # Exit status is that of the last command. paulo@0: exit paulo@0: } paulo@0: paulo@0: paulo@0: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in paulo@0: *c*,-n*) ECHO_N= ECHO_C=' paulo@0: ' ECHO_T=' ' ;; paulo@0: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; paulo@0: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; paulo@0: esac paulo@0: paulo@0: if expr a : '\(a\)' >/dev/null 2>&1; then paulo@0: as_expr=expr paulo@0: else paulo@0: as_expr=false paulo@0: fi paulo@0: paulo@0: rm -f conf$$ conf$$.exe conf$$.file paulo@0: echo >conf$$.file paulo@0: if ln -s conf$$.file conf$$ 2>/dev/null; then paulo@0: # We could just check for DJGPP; but this test a) works b) is more generic paulo@0: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). paulo@0: if test -f conf$$.exe; then paulo@0: # Don't use ln at all; we don't have any links paulo@0: as_ln_s='cp -p' paulo@0: else paulo@0: as_ln_s='ln -s' paulo@0: fi paulo@0: elif ln conf$$.file conf$$ 2>/dev/null; then paulo@0: as_ln_s=ln paulo@0: else paulo@0: as_ln_s='cp -p' paulo@0: fi paulo@0: rm -f conf$$ conf$$.exe conf$$.file paulo@0: paulo@0: if mkdir -p . 2>/dev/null; then paulo@0: as_mkdir_p=: paulo@0: else paulo@0: test -d ./-p && rmdir ./-p paulo@0: as_mkdir_p=false paulo@0: fi paulo@0: paulo@0: as_executable_p="test -f" paulo@0: paulo@0: # Sed expression to map a string onto a valid CPP name. paulo@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" paulo@0: paulo@0: # Sed expression to map a string onto a valid variable name. paulo@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" paulo@0: paulo@0: paulo@0: # IFS paulo@0: # We need space, tab and new line, in precisely that order. paulo@0: as_nl=' paulo@0: ' paulo@0: IFS=" $as_nl" paulo@0: paulo@0: # CDPATH. paulo@0: $as_unset CDPATH paulo@0: paulo@0: exec 6>&1 paulo@0: paulo@0: # Open the log real soon, to keep \$[0] and so on meaningful, and to paulo@0: # report actual input values of CONFIG_FILES etc. instead of their paulo@0: # values after options handling. Logging --version etc. is OK. paulo@0: exec 5>>config.log paulo@0: { paulo@0: echo paulo@0: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX paulo@0: ## Running $as_me. ## paulo@0: _ASBOX paulo@0: } >&5 paulo@0: cat >&5 <<_CSEOF paulo@0: paulo@0: This file was extended by gift-gnutella $as_me 0.0.11, which was paulo@0: generated by GNU Autoconf 2.59. Invocation command line was paulo@0: paulo@0: CONFIG_FILES = $CONFIG_FILES paulo@0: CONFIG_HEADERS = $CONFIG_HEADERS paulo@0: CONFIG_LINKS = $CONFIG_LINKS paulo@0: CONFIG_COMMANDS = $CONFIG_COMMANDS paulo@0: $ $0 $@ paulo@0: paulo@0: _CSEOF paulo@0: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 paulo@0: echo >&5 paulo@0: _ACEOF paulo@0: paulo@0: # Files that config.status was made for. paulo@0: if test -n "$ac_config_files"; then paulo@0: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS paulo@0: fi paulo@0: paulo@0: if test -n "$ac_config_headers"; then paulo@0: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS paulo@0: fi paulo@0: paulo@0: if test -n "$ac_config_links"; then paulo@0: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS paulo@0: fi paulo@0: paulo@0: if test -n "$ac_config_commands"; then paulo@0: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS paulo@0: fi paulo@0: paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: paulo@0: ac_cs_usage="\ paulo@0: \`$as_me' instantiates files from templates according to the paulo@0: current configuration. paulo@0: paulo@0: Usage: $0 [OPTIONS] [FILE]... paulo@0: paulo@0: -h, --help print this help, then exit paulo@0: -V, --version print version number, then exit paulo@0: -q, --quiet do not print progress messages paulo@0: -d, --debug don't remove temporary files paulo@0: --recheck update $as_me by reconfiguring in the same conditions paulo@0: --file=FILE[:TEMPLATE] paulo@0: instantiate the configuration file FILE paulo@0: --header=FILE[:TEMPLATE] paulo@0: instantiate the configuration header FILE paulo@0: paulo@0: Configuration files: paulo@0: $config_files paulo@0: paulo@0: Configuration headers: paulo@0: $config_headers paulo@0: paulo@0: Configuration commands: paulo@0: $config_commands paulo@0: paulo@0: Report bugs to ." paulo@0: _ACEOF paulo@0: paulo@0: cat >>$CONFIG_STATUS <<_ACEOF paulo@0: ac_cs_version="\\ paulo@0: gift-gnutella config.status 0.0.11 paulo@0: configured by $0, generated by GNU Autoconf 2.59, paulo@0: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" paulo@0: paulo@0: Copyright (C) 2003 Free Software Foundation, Inc. paulo@0: This config.status script is free software; the Free Software Foundation paulo@0: gives unlimited permission to copy, distribute and modify it." paulo@0: srcdir=$srcdir paulo@0: INSTALL="$INSTALL" paulo@0: _ACEOF paulo@0: paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: # If no file are specified by the user, then we need to provide default paulo@0: # value. By we need to know if files were specified by the user. paulo@0: ac_need_defaults=: paulo@0: while test $# != 0 paulo@0: do paulo@0: case $1 in paulo@0: --*=*) paulo@0: ac_option=`expr "x$1" : 'x\([^=]*\)='` paulo@0: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` paulo@0: ac_shift=: paulo@0: ;; paulo@0: -*) paulo@0: ac_option=$1 paulo@0: ac_optarg=$2 paulo@0: ac_shift=shift paulo@0: ;; paulo@0: *) # This is not an option, so the user has probably given explicit paulo@0: # arguments. paulo@0: ac_option=$1 paulo@0: ac_need_defaults=false;; paulo@0: esac paulo@0: paulo@0: case $ac_option in paulo@0: # Handling of the options. paulo@0: _ACEOF paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) paulo@0: ac_cs_recheck=: ;; paulo@0: --version | --vers* | -V ) paulo@0: echo "$ac_cs_version"; exit 0 ;; paulo@0: --he | --h) paulo@0: # Conflict between --help and --header paulo@0: { { echo "$as_me:$LINENO: error: ambiguous option: $1 paulo@0: Try \`$0 --help' for more information." >&5 paulo@0: echo "$as_me: error: ambiguous option: $1 paulo@0: Try \`$0 --help' for more information." >&2;} paulo@0: { (exit 1); exit 1; }; };; paulo@0: --help | --hel | -h ) paulo@0: echo "$ac_cs_usage"; exit 0 ;; paulo@0: --debug | --d* | -d ) paulo@0: debug=: ;; paulo@0: --file | --fil | --fi | --f ) paulo@0: $ac_shift paulo@0: CONFIG_FILES="$CONFIG_FILES $ac_optarg" paulo@0: ac_need_defaults=false;; paulo@0: --header | --heade | --head | --hea ) paulo@0: $ac_shift paulo@0: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" paulo@0: ac_need_defaults=false;; paulo@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ paulo@0: | -silent | --silent | --silen | --sile | --sil | --si | --s) paulo@0: ac_cs_silent=: ;; paulo@0: paulo@0: # This is an error. paulo@0: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 paulo@0: Try \`$0 --help' for more information." >&5 paulo@0: echo "$as_me: error: unrecognized option: $1 paulo@0: Try \`$0 --help' for more information." >&2;} paulo@0: { (exit 1); exit 1; }; } ;; paulo@0: paulo@0: *) ac_config_targets="$ac_config_targets $1" ;; paulo@0: paulo@0: esac paulo@0: shift paulo@0: done paulo@0: paulo@0: ac_configure_extra_args= paulo@0: paulo@0: if $ac_cs_silent; then paulo@0: exec 6>/dev/null paulo@0: ac_configure_extra_args="$ac_configure_extra_args --silent" paulo@0: fi paulo@0: paulo@0: _ACEOF paulo@0: cat >>$CONFIG_STATUS <<_ACEOF paulo@0: if \$ac_cs_recheck; then paulo@0: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 paulo@0: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion paulo@0: fi paulo@0: paulo@0: _ACEOF paulo@0: paulo@0: cat >>$CONFIG_STATUS <<_ACEOF paulo@0: # paulo@0: # INIT-COMMANDS section. paulo@0: # paulo@0: paulo@0: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" paulo@0: paulo@0: _ACEOF paulo@0: paulo@0: paulo@0: paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: for ac_config_target in $ac_config_targets paulo@0: do paulo@0: case "$ac_config_target" in paulo@0: # Handling of arguments. paulo@0: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; paulo@0: "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; paulo@0: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; paulo@0: "src/encoding/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/encoding/Makefile" ;; paulo@0: "src/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/io/Makefile" ;; paulo@0: "src/message/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/message/Makefile" ;; paulo@0: "src/transfer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/transfer/Makefile" ;; paulo@0: "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; paulo@0: "gnutella.spec" ) CONFIG_FILES="$CONFIG_FILES gnutella.spec" ;; paulo@0: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; paulo@0: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; paulo@0: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 paulo@0: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} paulo@0: { (exit 1); exit 1; }; };; paulo@0: esac paulo@0: done paulo@0: paulo@0: # If the user did not use the arguments to specify the items to instantiate, paulo@0: # then the envvar interface is used. Set only those that are not. paulo@0: # We use the long form for the default assignment because of an extremely paulo@0: # bizarre bug on SunOS 4.1.3. paulo@0: if $ac_need_defaults; then paulo@0: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files paulo@0: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers paulo@0: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands paulo@0: fi paulo@0: paulo@0: # Have a temporary directory for convenience. Make it in the build tree paulo@0: # simply because there is no reason to put it here, and in addition, paulo@0: # creating and moving files from /tmp can sometimes cause problems. paulo@0: # Create a temporary directory, and hook for its removal unless debugging. paulo@0: $debug || paulo@0: { paulo@0: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 paulo@0: trap '{ (exit 1); exit 1; }' 1 2 13 15 paulo@0: } paulo@0: paulo@0: # Create a (secure) tmp directory for tmp files. paulo@0: paulo@0: { paulo@0: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && paulo@0: test -n "$tmp" && test -d "$tmp" paulo@0: } || paulo@0: { paulo@0: tmp=./confstat$$-$RANDOM paulo@0: (umask 077 && mkdir $tmp) paulo@0: } || paulo@0: { paulo@0: echo "$me: cannot create a temporary directory in ." >&2 paulo@0: { (exit 1); exit 1; } paulo@0: } paulo@0: paulo@0: _ACEOF paulo@0: paulo@0: cat >>$CONFIG_STATUS <<_ACEOF paulo@0: paulo@0: # paulo@0: # CONFIG_FILES section. paulo@0: # paulo@0: paulo@0: # No need to generate the scripts if there are no CONFIG_FILES. paulo@0: # This happens for instance when ./config.status config.h paulo@0: if test -n "\$CONFIG_FILES"; then paulo@0: # Protect against being on the right side of a sed subst in config.status. paulo@0: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; paulo@0: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF paulo@0: s,@SHELL@,$SHELL,;t t paulo@0: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t paulo@0: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t paulo@0: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t paulo@0: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t paulo@0: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t paulo@0: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t paulo@0: s,@exec_prefix@,$exec_prefix,;t t paulo@0: s,@prefix@,$prefix,;t t paulo@0: s,@program_transform_name@,$program_transform_name,;t t paulo@0: s,@bindir@,$bindir,;t t paulo@0: s,@sbindir@,$sbindir,;t t paulo@0: s,@libexecdir@,$libexecdir,;t t paulo@0: s,@datadir@,$datadir,;t t paulo@0: s,@sysconfdir@,$sysconfdir,;t t paulo@0: s,@sharedstatedir@,$sharedstatedir,;t t paulo@0: s,@localstatedir@,$localstatedir,;t t paulo@0: s,@libdir@,$libdir,;t t paulo@0: s,@includedir@,$includedir,;t t paulo@0: s,@oldincludedir@,$oldincludedir,;t t paulo@0: s,@infodir@,$infodir,;t t paulo@0: s,@mandir@,$mandir,;t t paulo@0: s,@build_alias@,$build_alias,;t t paulo@0: s,@host_alias@,$host_alias,;t t paulo@0: s,@target_alias@,$target_alias,;t t paulo@0: s,@DEFS@,$DEFS,;t t paulo@0: s,@ECHO_C@,$ECHO_C,;t t paulo@0: s,@ECHO_N@,$ECHO_N,;t t paulo@0: s,@ECHO_T@,$ECHO_T,;t t paulo@0: s,@LIBS@,$LIBS,;t t paulo@0: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t paulo@0: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t paulo@0: s,@INSTALL_DATA@,$INSTALL_DATA,;t t paulo@0: s,@CYGPATH_W@,$CYGPATH_W,;t t paulo@0: s,@PACKAGE@,$PACKAGE,;t t paulo@0: s,@VERSION@,$VERSION,;t t paulo@0: s,@ACLOCAL@,$ACLOCAL,;t t paulo@0: s,@AUTOCONF@,$AUTOCONF,;t t paulo@0: s,@AUTOMAKE@,$AUTOMAKE,;t t paulo@0: s,@AUTOHEADER@,$AUTOHEADER,;t t paulo@0: s,@MAKEINFO@,$MAKEINFO,;t t paulo@0: s,@AMTAR@,$AMTAR,;t t paulo@0: s,@install_sh@,$install_sh,;t t paulo@0: s,@STRIP@,$STRIP,;t t paulo@0: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t paulo@0: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t paulo@0: s,@AWK@,$AWK,;t t paulo@0: s,@SET_MAKE@,$SET_MAKE,;t t paulo@0: s,@am__leading_dot@,$am__leading_dot,;t t paulo@0: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t paulo@0: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t paulo@0: s,@MAINT@,$MAINT,;t t paulo@0: s,@CC@,$CC,;t t paulo@0: s,@CFLAGS@,$CFLAGS,;t t paulo@0: s,@LDFLAGS@,$LDFLAGS,;t t paulo@0: s,@CPPFLAGS@,$CPPFLAGS,;t t paulo@0: s,@ac_ct_CC@,$ac_ct_CC,;t t paulo@0: s,@EXEEXT@,$EXEEXT,;t t paulo@0: s,@OBJEXT@,$OBJEXT,;t t paulo@0: s,@DEPDIR@,$DEPDIR,;t t paulo@0: s,@am__include@,$am__include,;t t paulo@0: s,@am__quote@,$am__quote,;t t paulo@0: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t paulo@0: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t paulo@0: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t paulo@0: s,@CCDEPMODE@,$CCDEPMODE,;t t paulo@0: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t paulo@0: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t paulo@0: s,@CPP@,$CPP,;t t paulo@0: s,@EGREP@,$EGREP,;t t paulo@0: s,@build@,$build,;t t paulo@0: s,@build_cpu@,$build_cpu,;t t paulo@0: s,@build_vendor@,$build_vendor,;t t paulo@0: s,@build_os@,$build_os,;t t paulo@0: s,@host@,$host,;t t paulo@0: s,@host_cpu@,$host_cpu,;t t paulo@0: s,@host_vendor@,$host_vendor,;t t paulo@0: s,@host_os@,$host_os,;t t paulo@0: s,@LN_S@,$LN_S,;t t paulo@0: s,@ECHO@,$ECHO,;t t paulo@0: s,@AR@,$AR,;t t paulo@0: s,@ac_ct_AR@,$ac_ct_AR,;t t paulo@0: s,@RANLIB@,$RANLIB,;t t paulo@0: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t paulo@0: s,@CXX@,$CXX,;t t paulo@0: s,@CXXFLAGS@,$CXXFLAGS,;t t paulo@0: s,@ac_ct_CXX@,$ac_ct_CXX,;t t paulo@0: s,@CXXDEPMODE@,$CXXDEPMODE,;t t paulo@0: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t paulo@0: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t paulo@0: s,@CXXCPP@,$CXXCPP,;t t paulo@0: s,@F77@,$F77,;t t paulo@0: s,@FFLAGS@,$FFLAGS,;t t paulo@0: s,@ac_ct_F77@,$ac_ct_F77,;t t paulo@0: s,@LIBTOOL@,$LIBTOOL,;t t paulo@0: s,@PLUGIN_LDFLAGS@,$PLUGIN_LDFLAGS,;t t paulo@0: s,@PKG_CONFIG@,$PKG_CONFIG,;t t paulo@0: s,@GNUTELLA_CFLAGS@,$GNUTELLA_CFLAGS,;t t paulo@0: s,@GNUTELLA_LIBS@,$GNUTELLA_LIBS,;t t paulo@0: s,@USE_ZLIB@,$USE_ZLIB,;t t paulo@0: s,@XML2_CONFIG@,$XML2_CONFIG,;t t paulo@0: s,@LIBXML2_CFLAGS@,$LIBXML2_CFLAGS,;t t paulo@0: s,@LIBXML2_LIBS@,$LIBXML2_LIBS,;t t paulo@0: s,@LIBOBJS@,$LIBOBJS,;t t paulo@0: s,@LTLIBOBJS@,$LTLIBOBJS,;t t paulo@0: CEOF paulo@0: paulo@0: _ACEOF paulo@0: paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: # Split the substitutions into bite-sized pieces for seds with paulo@0: # small command number limits, like on Digital OSF/1 and HP-UX. paulo@0: ac_max_sed_lines=48 paulo@0: ac_sed_frag=1 # Number of current file. paulo@0: ac_beg=1 # First line for current file. paulo@0: ac_end=$ac_max_sed_lines # Line after last line for current file. paulo@0: ac_more_lines=: paulo@0: ac_sed_cmds= paulo@0: while $ac_more_lines; do paulo@0: if test $ac_beg -gt 1; then paulo@0: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag paulo@0: else paulo@0: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag paulo@0: fi paulo@0: if test ! -s $tmp/subs.frag; then paulo@0: ac_more_lines=false paulo@0: else paulo@0: # The purpose of the label and of the branching condition is to paulo@0: # speed up the sed processing (if there are no `@' at all, there paulo@0: # is no need to browse any of the substitutions). paulo@0: # These are the two extra sed commands mentioned above. paulo@0: (echo ':t paulo@0: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed paulo@0: if test -z "$ac_sed_cmds"; then paulo@0: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" paulo@0: else paulo@0: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" paulo@0: fi paulo@0: ac_sed_frag=`expr $ac_sed_frag + 1` paulo@0: ac_beg=$ac_end paulo@0: ac_end=`expr $ac_end + $ac_max_sed_lines` paulo@0: fi paulo@0: done paulo@0: if test -z "$ac_sed_cmds"; then paulo@0: ac_sed_cmds=cat paulo@0: fi paulo@0: fi # test -n "$CONFIG_FILES" paulo@0: paulo@0: _ACEOF paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue paulo@0: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". paulo@0: case $ac_file in paulo@0: - | *:- | *:-:* ) # input from stdin paulo@0: cat >$tmp/stdin paulo@0: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` paulo@0: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; paulo@0: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` paulo@0: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; paulo@0: * ) ac_file_in=$ac_file.in ;; paulo@0: esac paulo@0: paulo@0: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. paulo@0: ac_dir=`(dirname "$ac_file") 2>/dev/null || paulo@0: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$ac_file" : 'X\(//\)[^/]' \| \ paulo@0: X"$ac_file" : 'X\(//\)$' \| \ paulo@0: X"$ac_file" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$ac_file" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: { if $as_mkdir_p; then paulo@0: mkdir -p "$ac_dir" paulo@0: else paulo@0: as_dir="$ac_dir" paulo@0: as_dirs= paulo@0: while test ! -d "$as_dir"; do paulo@0: as_dirs="$as_dir $as_dirs" paulo@0: as_dir=`(dirname "$as_dir") 2>/dev/null || paulo@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$as_dir" : 'X\(//\)[^/]' \| \ paulo@0: X"$as_dir" : 'X\(//\)$' \| \ paulo@0: X"$as_dir" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$as_dir" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: done paulo@0: test ! -n "$as_dirs" || mkdir $as_dirs paulo@0: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 paulo@0: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} paulo@0: { (exit 1); exit 1; }; }; } paulo@0: paulo@0: ac_builddir=. paulo@0: paulo@0: if test "$ac_dir" != .; then paulo@0: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` paulo@0: # A "../" for each directory in $ac_dir_suffix. paulo@0: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` paulo@0: else paulo@0: ac_dir_suffix= ac_top_builddir= paulo@0: fi paulo@0: paulo@0: case $srcdir in paulo@0: .) # No --srcdir option. We are building in place. paulo@0: ac_srcdir=. paulo@0: if test -z "$ac_top_builddir"; then paulo@0: ac_top_srcdir=. paulo@0: else paulo@0: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` paulo@0: fi ;; paulo@0: [\\/]* | ?:[\\/]* ) # Absolute path. paulo@0: ac_srcdir=$srcdir$ac_dir_suffix; paulo@0: ac_top_srcdir=$srcdir ;; paulo@0: *) # Relative path. paulo@0: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix paulo@0: ac_top_srcdir=$ac_top_builddir$srcdir ;; paulo@0: esac paulo@0: paulo@0: # Do not use `cd foo && pwd` to compute absolute paths, because paulo@0: # the directories may not exist. paulo@0: case `pwd` in paulo@0: .) ac_abs_builddir="$ac_dir";; paulo@0: *) paulo@0: case "$ac_dir" in paulo@0: .) ac_abs_builddir=`pwd`;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; paulo@0: *) ac_abs_builddir=`pwd`/"$ac_dir";; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_top_builddir=${ac_top_builddir}.;; paulo@0: *) paulo@0: case ${ac_top_builddir}. in paulo@0: .) ac_abs_top_builddir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; paulo@0: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_srcdir=$ac_srcdir;; paulo@0: *) paulo@0: case $ac_srcdir in paulo@0: .) ac_abs_srcdir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; paulo@0: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_top_srcdir=$ac_top_srcdir;; paulo@0: *) paulo@0: case $ac_top_srcdir in paulo@0: .) ac_abs_top_srcdir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; paulo@0: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; paulo@0: esac;; paulo@0: esac paulo@0: paulo@0: paulo@0: case $INSTALL in paulo@0: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; paulo@0: *) ac_INSTALL=$ac_top_builddir$INSTALL ;; paulo@0: esac paulo@0: paulo@0: # Let's still pretend it is `configure' which instantiates (i.e., don't paulo@0: # use $as_me), people would be surprised to read: paulo@0: # /* config.h. Generated by config.status. */ paulo@0: if test x"$ac_file" = x-; then paulo@0: configure_input= paulo@0: else paulo@0: configure_input="$ac_file. " paulo@0: fi paulo@0: configure_input=$configure_input"Generated from `echo $ac_file_in | paulo@0: sed 's,.*/,,'` by configure." paulo@0: paulo@0: # First look for the input files in the build tree, otherwise in the paulo@0: # src tree. paulo@0: ac_file_inputs=`IFS=: paulo@0: for f in $ac_file_in; do paulo@0: case $f in paulo@0: -) echo $tmp/stdin ;; paulo@0: [\\/$]*) paulo@0: # Absolute (can't be DOS-style, as IFS=:) paulo@0: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 paulo@0: echo "$as_me: error: cannot find input file: $f" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: echo "$f";; paulo@0: *) # Relative paulo@0: if test -f "$f"; then paulo@0: # Build tree paulo@0: echo "$f" paulo@0: elif test -f "$srcdir/$f"; then paulo@0: # Source tree paulo@0: echo "$srcdir/$f" paulo@0: else paulo@0: # /dev/null tree paulo@0: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 paulo@0: echo "$as_me: error: cannot find input file: $f" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi;; paulo@0: esac paulo@0: done` || { (exit 1); exit 1; } paulo@0: paulo@0: if test x"$ac_file" != x-; then paulo@0: { echo "$as_me:$LINENO: creating $ac_file" >&5 paulo@0: echo "$as_me: creating $ac_file" >&6;} paulo@0: rm -f "$ac_file" paulo@0: fi paulo@0: _ACEOF paulo@0: cat >>$CONFIG_STATUS <<_ACEOF paulo@0: sed "$ac_vpsub paulo@0: $extrasub paulo@0: _ACEOF paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: :t paulo@0: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b paulo@0: s,@configure_input@,$configure_input,;t t paulo@0: s,@srcdir@,$ac_srcdir,;t t paulo@0: s,@abs_srcdir@,$ac_abs_srcdir,;t t paulo@0: s,@top_srcdir@,$ac_top_srcdir,;t t paulo@0: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t paulo@0: s,@builddir@,$ac_builddir,;t t paulo@0: s,@abs_builddir@,$ac_abs_builddir,;t t paulo@0: s,@top_builddir@,$ac_top_builddir,;t t paulo@0: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t paulo@0: s,@INSTALL@,$ac_INSTALL,;t t paulo@0: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out paulo@0: rm -f $tmp/stdin paulo@0: if test x"$ac_file" != x-; then paulo@0: mv $tmp/out $ac_file paulo@0: else paulo@0: cat $tmp/out paulo@0: rm -f $tmp/out paulo@0: fi paulo@0: paulo@0: done paulo@0: _ACEOF paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: paulo@0: # paulo@0: # CONFIG_HEADER section. paulo@0: # paulo@0: paulo@0: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where paulo@0: # NAME is the cpp macro being defined and VALUE is the value it is being given. paulo@0: # paulo@0: # ac_d sets the value in "#define NAME VALUE" lines. paulo@0: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' paulo@0: ac_dB='[ ].*$,\1#\2' paulo@0: ac_dC=' ' paulo@0: ac_dD=',;t' paulo@0: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". paulo@0: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' paulo@0: ac_uB='$,\1#\2define\3' paulo@0: ac_uC=' ' paulo@0: ac_uD=',;t' paulo@0: paulo@0: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue paulo@0: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". paulo@0: case $ac_file in paulo@0: - | *:- | *:-:* ) # input from stdin paulo@0: cat >$tmp/stdin paulo@0: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` paulo@0: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; paulo@0: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` paulo@0: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; paulo@0: * ) ac_file_in=$ac_file.in ;; paulo@0: esac paulo@0: paulo@0: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 paulo@0: echo "$as_me: creating $ac_file" >&6;} paulo@0: paulo@0: # First look for the input files in the build tree, otherwise in the paulo@0: # src tree. paulo@0: ac_file_inputs=`IFS=: paulo@0: for f in $ac_file_in; do paulo@0: case $f in paulo@0: -) echo $tmp/stdin ;; paulo@0: [\\/$]*) paulo@0: # Absolute (can't be DOS-style, as IFS=:) paulo@0: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 paulo@0: echo "$as_me: error: cannot find input file: $f" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: # Do quote $f, to prevent DOS paths from being IFS'd. paulo@0: echo "$f";; paulo@0: *) # Relative paulo@0: if test -f "$f"; then paulo@0: # Build tree paulo@0: echo "$f" paulo@0: elif test -f "$srcdir/$f"; then paulo@0: # Source tree paulo@0: echo "$srcdir/$f" paulo@0: else paulo@0: # /dev/null tree paulo@0: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 paulo@0: echo "$as_me: error: cannot find input file: $f" >&2;} paulo@0: { (exit 1); exit 1; }; } paulo@0: fi;; paulo@0: esac paulo@0: done` || { (exit 1); exit 1; } paulo@0: # Remove the trailing spaces. paulo@0: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in paulo@0: paulo@0: _ACEOF paulo@0: paulo@0: # Transform confdefs.h into two sed scripts, `conftest.defines' and paulo@0: # `conftest.undefs', that substitutes the proper values into paulo@0: # config.h.in to produce config.h. The first handles `#define' paulo@0: # templates, and the second `#undef' templates. paulo@0: # And first: Protect against being on the right side of a sed subst in paulo@0: # config.status. Protect against being in an unquoted here document paulo@0: # in config.status. paulo@0: rm -f conftest.defines conftest.undefs paulo@0: # Using a here document instead of a string reduces the quoting nightmare. paulo@0: # Putting comments in sed scripts is not portable. paulo@0: # paulo@0: # `end' is used to avoid that the second main sed command (meant for paulo@0: # 0-ary CPP macros) applies to n-ary macro definitions. paulo@0: # See the Autoconf documentation for `clear'. paulo@0: cat >confdef2sed.sed <<\_ACEOF paulo@0: s/[\\&,]/\\&/g paulo@0: s,[\\$`],\\&,g paulo@0: t clear paulo@0: : clear paulo@0: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp paulo@0: t end paulo@0: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp paulo@0: : end paulo@0: _ACEOF paulo@0: # If some macros were called several times there might be several times paulo@0: # the same #defines, which is useless. Nevertheless, we may not want to paulo@0: # sort them, since we want the *last* AC-DEFINE to be honored. paulo@0: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines paulo@0: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs paulo@0: rm -f confdef2sed.sed paulo@0: paulo@0: # This sed command replaces #undef with comments. This is necessary, for paulo@0: # example, in the case of _POSIX_SOURCE, which is predefined and required paulo@0: # on some systems where configure will not decide to define it. paulo@0: cat >>conftest.undefs <<\_ACEOF paulo@0: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, paulo@0: _ACEOF paulo@0: paulo@0: # Break up conftest.defines because some shells have a limit on the size paulo@0: # of here documents, and old seds have small limits too (100 cmds). paulo@0: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS paulo@0: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS paulo@0: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS paulo@0: echo ' :' >>$CONFIG_STATUS paulo@0: rm -f conftest.tail paulo@0: while grep . conftest.defines >/dev/null paulo@0: do paulo@0: # Write a limited-size here document to $tmp/defines.sed. paulo@0: echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS paulo@0: # Speed up: don't consider the non `#define' lines. paulo@0: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS paulo@0: # Work around the forget-to-reset-the-flag bug. paulo@0: echo 't clr' >>$CONFIG_STATUS paulo@0: echo ': clr' >>$CONFIG_STATUS paulo@0: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS paulo@0: echo 'CEOF paulo@0: sed -f $tmp/defines.sed $tmp/in >$tmp/out paulo@0: rm -f $tmp/in paulo@0: mv $tmp/out $tmp/in paulo@0: ' >>$CONFIG_STATUS paulo@0: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail paulo@0: rm -f conftest.defines paulo@0: mv conftest.tail conftest.defines paulo@0: done paulo@0: rm -f conftest.defines paulo@0: echo ' fi # grep' >>$CONFIG_STATUS paulo@0: echo >>$CONFIG_STATUS paulo@0: paulo@0: # Break up conftest.undefs because some shells have a limit on the size paulo@0: # of here documents, and old seds have small limits too (100 cmds). paulo@0: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS paulo@0: rm -f conftest.tail paulo@0: while grep . conftest.undefs >/dev/null paulo@0: do paulo@0: # Write a limited-size here document to $tmp/undefs.sed. paulo@0: echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS paulo@0: # Speed up: don't consider the non `#undef' paulo@0: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS paulo@0: # Work around the forget-to-reset-the-flag bug. paulo@0: echo 't clr' >>$CONFIG_STATUS paulo@0: echo ': clr' >>$CONFIG_STATUS paulo@0: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS paulo@0: echo 'CEOF paulo@0: sed -f $tmp/undefs.sed $tmp/in >$tmp/out paulo@0: rm -f $tmp/in paulo@0: mv $tmp/out $tmp/in paulo@0: ' >>$CONFIG_STATUS paulo@0: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail paulo@0: rm -f conftest.undefs paulo@0: mv conftest.tail conftest.undefs paulo@0: done paulo@0: rm -f conftest.undefs paulo@0: paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: # Let's still pretend it is `configure' which instantiates (i.e., don't paulo@0: # use $as_me), people would be surprised to read: paulo@0: # /* config.h. Generated by config.status. */ paulo@0: if test x"$ac_file" = x-; then paulo@0: echo "/* Generated by configure. */" >$tmp/config.h paulo@0: else paulo@0: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h paulo@0: fi paulo@0: cat $tmp/in >>$tmp/config.h paulo@0: rm -f $tmp/in paulo@0: if test x"$ac_file" != x-; then paulo@0: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then paulo@0: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 paulo@0: echo "$as_me: $ac_file is unchanged" >&6;} paulo@0: else paulo@0: ac_dir=`(dirname "$ac_file") 2>/dev/null || paulo@0: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$ac_file" : 'X\(//\)[^/]' \| \ paulo@0: X"$ac_file" : 'X\(//\)$' \| \ paulo@0: X"$ac_file" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$ac_file" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: { if $as_mkdir_p; then paulo@0: mkdir -p "$ac_dir" paulo@0: else paulo@0: as_dir="$ac_dir" paulo@0: as_dirs= paulo@0: while test ! -d "$as_dir"; do paulo@0: as_dirs="$as_dir $as_dirs" paulo@0: as_dir=`(dirname "$as_dir") 2>/dev/null || paulo@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$as_dir" : 'X\(//\)[^/]' \| \ paulo@0: X"$as_dir" : 'X\(//\)$' \| \ paulo@0: X"$as_dir" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$as_dir" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: done paulo@0: test ! -n "$as_dirs" || mkdir $as_dirs paulo@0: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 paulo@0: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} paulo@0: { (exit 1); exit 1; }; }; } paulo@0: paulo@0: rm -f $ac_file paulo@0: mv $tmp/config.h $ac_file paulo@0: fi paulo@0: else paulo@0: cat $tmp/config.h paulo@0: rm -f $tmp/config.h paulo@0: fi paulo@0: # Compute $ac_file's index in $config_headers. paulo@0: _am_stamp_count=1 paulo@0: for _am_header in $config_headers :; do paulo@0: case $_am_header in paulo@0: $ac_file | $ac_file:* ) paulo@0: break ;; paulo@0: * ) paulo@0: _am_stamp_count=`expr $_am_stamp_count + 1` ;; paulo@0: esac paulo@0: done paulo@0: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || paulo@0: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X$ac_file : 'X\(//\)[^/]' \| \ paulo@0: X$ac_file : 'X\(//\)$' \| \ paulo@0: X$ac_file : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X$ac_file | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'`/stamp-h$_am_stamp_count paulo@0: done paulo@0: _ACEOF paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: paulo@0: # paulo@0: # CONFIG_COMMANDS section. paulo@0: # paulo@0: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue paulo@0: ac_dest=`echo "$ac_file" | sed 's,:.*,,'` paulo@0: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` paulo@0: ac_dir=`(dirname "$ac_dest") 2>/dev/null || paulo@0: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$ac_dest" : 'X\(//\)[^/]' \| \ paulo@0: X"$ac_dest" : 'X\(//\)$' \| \ paulo@0: X"$ac_dest" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$ac_dest" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: { if $as_mkdir_p; then paulo@0: mkdir -p "$ac_dir" paulo@0: else paulo@0: as_dir="$ac_dir" paulo@0: as_dirs= paulo@0: while test ! -d "$as_dir"; do paulo@0: as_dirs="$as_dir $as_dirs" paulo@0: as_dir=`(dirname "$as_dir") 2>/dev/null || paulo@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$as_dir" : 'X\(//\)[^/]' \| \ paulo@0: X"$as_dir" : 'X\(//\)$' \| \ paulo@0: X"$as_dir" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$as_dir" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: done paulo@0: test ! -n "$as_dirs" || mkdir $as_dirs paulo@0: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 paulo@0: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} paulo@0: { (exit 1); exit 1; }; }; } paulo@0: paulo@0: ac_builddir=. paulo@0: paulo@0: if test "$ac_dir" != .; then paulo@0: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` paulo@0: # A "../" for each directory in $ac_dir_suffix. paulo@0: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` paulo@0: else paulo@0: ac_dir_suffix= ac_top_builddir= paulo@0: fi paulo@0: paulo@0: case $srcdir in paulo@0: .) # No --srcdir option. We are building in place. paulo@0: ac_srcdir=. paulo@0: if test -z "$ac_top_builddir"; then paulo@0: ac_top_srcdir=. paulo@0: else paulo@0: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` paulo@0: fi ;; paulo@0: [\\/]* | ?:[\\/]* ) # Absolute path. paulo@0: ac_srcdir=$srcdir$ac_dir_suffix; paulo@0: ac_top_srcdir=$srcdir ;; paulo@0: *) # Relative path. paulo@0: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix paulo@0: ac_top_srcdir=$ac_top_builddir$srcdir ;; paulo@0: esac paulo@0: paulo@0: # Do not use `cd foo && pwd` to compute absolute paths, because paulo@0: # the directories may not exist. paulo@0: case `pwd` in paulo@0: .) ac_abs_builddir="$ac_dir";; paulo@0: *) paulo@0: case "$ac_dir" in paulo@0: .) ac_abs_builddir=`pwd`;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; paulo@0: *) ac_abs_builddir=`pwd`/"$ac_dir";; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_top_builddir=${ac_top_builddir}.;; paulo@0: *) paulo@0: case ${ac_top_builddir}. in paulo@0: .) ac_abs_top_builddir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; paulo@0: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_srcdir=$ac_srcdir;; paulo@0: *) paulo@0: case $ac_srcdir in paulo@0: .) ac_abs_srcdir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; paulo@0: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; paulo@0: esac;; paulo@0: esac paulo@0: case $ac_abs_builddir in paulo@0: .) ac_abs_top_srcdir=$ac_top_srcdir;; paulo@0: *) paulo@0: case $ac_top_srcdir in paulo@0: .) ac_abs_top_srcdir=$ac_abs_builddir;; paulo@0: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; paulo@0: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; paulo@0: esac;; paulo@0: esac paulo@0: paulo@0: paulo@0: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 paulo@0: echo "$as_me: executing $ac_dest commands" >&6;} paulo@0: case $ac_dest in paulo@0: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do paulo@0: # Strip MF so we end up with the name of the file. paulo@0: mf=`echo "$mf" | sed -e 's/:.*$//'` paulo@0: # Check whether this is an Automake generated Makefile or not. paulo@0: # We used to match only the files named `Makefile.in', but paulo@0: # some people rename them; so instead we look at the file content. paulo@0: # Grep'ing the first line is not enough: some people post-process paulo@0: # each Makefile.in and add a new line on top of each file to say so. paulo@0: # So let's grep whole file. paulo@0: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then paulo@0: dirpart=`(dirname "$mf") 2>/dev/null || paulo@0: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$mf" : 'X\(//\)[^/]' \| \ paulo@0: X"$mf" : 'X\(//\)$' \| \ paulo@0: X"$mf" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$mf" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: else paulo@0: continue paulo@0: fi paulo@0: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue paulo@0: # Extract the definition of DEP_FILES from the Makefile without paulo@0: # running `make'. paulo@0: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` paulo@0: test -z "$DEPDIR" && continue paulo@0: # When using ansi2knr, U may be empty or an underscore; expand it paulo@0: U=`sed -n -e '/^U = / s///p' < "$mf"` paulo@0: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" paulo@0: # We invoke sed twice because it is the simplest approach to paulo@0: # changing $(DEPDIR) to its actual value in the expansion. paulo@0: for file in `sed -n -e ' paulo@0: /^DEP_FILES = .*\\\\$/ { paulo@0: s/^DEP_FILES = // paulo@0: :loop paulo@0: s/\\\\$// paulo@0: p paulo@0: n paulo@0: /\\\\$/ b loop paulo@0: p paulo@0: } paulo@0: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ paulo@0: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do paulo@0: # Make sure the directory exists. paulo@0: test -f "$dirpart/$file" && continue paulo@0: fdir=`(dirname "$file") 2>/dev/null || paulo@0: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$file" : 'X\(//\)[^/]' \| \ paulo@0: X"$file" : 'X\(//\)$' \| \ paulo@0: X"$file" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$file" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: { if $as_mkdir_p; then paulo@0: mkdir -p $dirpart/$fdir paulo@0: else paulo@0: as_dir=$dirpart/$fdir paulo@0: as_dirs= paulo@0: while test ! -d "$as_dir"; do paulo@0: as_dirs="$as_dir $as_dirs" paulo@0: as_dir=`(dirname "$as_dir") 2>/dev/null || paulo@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ paulo@0: X"$as_dir" : 'X\(//\)[^/]' \| \ paulo@0: X"$as_dir" : 'X\(//\)$' \| \ paulo@0: X"$as_dir" : 'X\(/\)' \| \ paulo@0: . : '\(.\)' 2>/dev/null || paulo@0: echo X"$as_dir" | paulo@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } paulo@0: /^X\(\/\/\)[^/].*/{ s//\1/; q; } paulo@0: /^X\(\/\/\)$/{ s//\1/; q; } paulo@0: /^X\(\/\).*/{ s//\1/; q; } paulo@0: s/.*/./; q'` paulo@0: done paulo@0: test ! -n "$as_dirs" || mkdir $as_dirs paulo@0: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 paulo@0: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} paulo@0: { (exit 1); exit 1; }; }; } paulo@0: paulo@0: # echo "creating $dirpart/$file" paulo@0: echo '# dummy' > "$dirpart/$file" paulo@0: done paulo@0: done paulo@0: ;; paulo@0: esac paulo@0: done paulo@0: _ACEOF paulo@0: paulo@0: cat >>$CONFIG_STATUS <<\_ACEOF paulo@0: paulo@0: { (exit 0); exit 0; } paulo@0: _ACEOF paulo@0: chmod +x $CONFIG_STATUS paulo@0: ac_clean_files=$ac_clean_files_save paulo@0: paulo@0: paulo@0: # configure is writing to config.log, and then calls config.status. paulo@0: # config.status does its own redirection, appending to config.log. paulo@0: # Unfortunately, on DOS this fails, as config.log is still kept open paulo@0: # by configure, so config.status won't be able to write to it; its paulo@0: # output is simply discarded. So we exec the FD to /dev/null, paulo@0: # effectively closing config.log, so it can be properly (re)opened and paulo@0: # appended to by config.status. When coming back to configure, we paulo@0: # need to make the FD available again. paulo@0: if test "$no_create" != yes; then paulo@0: ac_cs_success=: paulo@0: ac_config_status_args= paulo@0: test "$silent" = yes && paulo@0: ac_config_status_args="$ac_config_status_args --quiet" paulo@0: exec 5>/dev/null paulo@0: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false paulo@0: exec 5>>config.log paulo@0: # Use ||, not &&, to avoid exiting from the if with $? = 1, which paulo@0: # would make configure fail if this is the last instruction. paulo@0: $ac_cs_success || { (exit 1); exit 1; } paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: echo paulo@0: echo "$PACKAGE_NAME $VERSION" paulo@0: echo paulo@0: echo "-------------------- core ---" paulo@0: echo paulo@0: echo "libgift.................: $libgift_version" paulo@0: echo "libgiftproto............: $libgift_version" paulo@0: echo paulo@0: echo "-------------- extensions ---" paulo@0: echo paulo@0: echo "use zlib................: yes (required)" paulo@0: echo "use libxml..............: $use_libxml" paulo@0: echo paulo@0: echo "-----------------------------" paulo@0: echo paulo@0: paulo@0: paulo@0: paulo@0: libgift_prefix=`pkg-config --variable=prefix libgift` paulo@0: paulo@0: gift_plugin_prefix=$prefix paulo@0: if test x"$prefix" = xNONE; then paulo@0: gift_plugin_prefix=/usr/local paulo@0: fi paulo@0: paulo@0: if test x"$libgift_prefix" != x"$gift_plugin_prefix"; then paulo@0: { echo "$as_me:$LINENO: WARNING: paulo@0: You are trying to install in $gift_plugin_prefix, but I only paulo@0: detected a giFT installation in $libgift_prefix. paulo@0: You may be installing in the wrong place. paulo@0: paulo@0: You should probably supply --prefix=$libgift_prefix paulo@0: to configure. Or, if you have a giFT installation in paulo@0: $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig paulo@0: to the PKG_CONFIG_PATH environment variable, so I can detect it. paulo@0: " >&5 paulo@0: echo "$as_me: WARNING: paulo@0: You are trying to install in $gift_plugin_prefix, but I only paulo@0: detected a giFT installation in $libgift_prefix. paulo@0: You may be installing in the wrong place. paulo@0: paulo@0: You should probably supply --prefix=$libgift_prefix paulo@0: to configure. Or, if you have a giFT installation in paulo@0: $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig paulo@0: to the PKG_CONFIG_PATH environment variable, so I can detect it. paulo@0: " >&2;} paulo@0: fi paulo@0: paulo@0: paulo@0: paulo@0: echo paulo@0: echo "Type 'make' ('gmake' on some systems) to compile gift-gnutella." paulo@0: echo