cannam@89: #! /bin/sh cannam@89: # Guess values for system-dependent variables and create Makefiles. cannam@89: # Generated by GNU Autoconf 2.61 for liblo 0.26. cannam@89: # cannam@89: # Report bugs to . cannam@89: # cannam@89: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, cannam@89: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. cannam@89: # This configure script is free software; the Free Software Foundation cannam@89: # gives unlimited permission to copy, distribute and modify it. cannam@89: ## --------------------- ## cannam@89: ## M4sh Initialization. ## cannam@89: ## --------------------- ## cannam@89: cannam@89: # Be more Bourne compatible cannam@89: DUALCASE=1; export DUALCASE # for MKS sh cannam@89: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then cannam@89: emulate sh cannam@89: NULLCMD=: cannam@89: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which cannam@89: # is contrary to our usage. Disable this feature. cannam@89: alias -g '${1+"$@"}'='"$@"' cannam@89: setopt NO_GLOB_SUBST cannam@89: else cannam@89: case `(set -o) 2>/dev/null` in cannam@89: *posix*) set -o posix ;; cannam@89: esac cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # PATH needs CR cannam@89: # Avoid depending upon Character Ranges. cannam@89: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@89: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@89: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@89: as_cr_digits='0123456789' cannam@89: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@89: cannam@89: # The user is always right. cannam@89: if test "${PATH_SEPARATOR+set}" != set; then cannam@89: echo "#! /bin/sh" >conf$$.sh cannam@89: echo "exit 0" >>conf$$.sh cannam@89: chmod +x conf$$.sh cannam@89: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then cannam@89: PATH_SEPARATOR=';' cannam@89: else cannam@89: PATH_SEPARATOR=: cannam@89: fi cannam@89: rm -f conf$$.sh cannam@89: fi cannam@89: cannam@89: # Support unset when possible. cannam@89: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@89: as_unset=unset cannam@89: else cannam@89: as_unset=false cannam@89: fi cannam@89: cannam@89: cannam@89: # IFS cannam@89: # We need space, tab and new line, in precisely that order. Quoting is cannam@89: # there to prevent editors from complaining about space-tab. cannam@89: # (If _AS_PATH_WALK were called with IFS unset, it would disable word cannam@89: # splitting by setting IFS to empty value.) cannam@89: as_nl=' cannam@89: ' cannam@89: IFS=" "" $as_nl" cannam@89: cannam@89: # Find who we are. Look in the path if we contain no directory separator. cannam@89: case $0 in cannam@89: *[\\/]* ) as_myself=$0 ;; cannam@89: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: ;; cannam@89: esac cannam@89: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@89: # in which case we are not to be found in the path. cannam@89: if test "x$as_myself" = x; then cannam@89: as_myself=$0 cannam@89: fi cannam@89: if test ! -f "$as_myself"; then cannam@89: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 cannam@89: { (exit 1); exit 1; } cannam@89: fi cannam@89: cannam@89: # Work around bugs in pre-3.0 UWIN ksh. cannam@89: for as_var in ENV MAIL MAILPATH cannam@89: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var cannam@89: done cannam@89: PS1='$ ' cannam@89: PS2='> ' cannam@89: PS4='+ ' cannam@89: cannam@89: # NLS nuisances. cannam@89: for as_var in \ cannam@89: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ cannam@89: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ cannam@89: LC_TELEPHONE LC_TIME cannam@89: do cannam@89: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then cannam@89: eval $as_var=C; export $as_var cannam@89: else cannam@89: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var cannam@89: fi cannam@89: done cannam@89: cannam@89: # Required to use basename. cannam@89: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@89: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@89: as_expr=expr cannam@89: else cannam@89: as_expr=false cannam@89: fi cannam@89: cannam@89: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then cannam@89: as_basename=basename cannam@89: else cannam@89: as_basename=false cannam@89: fi cannam@89: cannam@89: cannam@89: # Name of the executable. cannam@89: as_me=`$as_basename -- "$0" || cannam@89: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@89: X"$0" : 'X\(//\)$' \| \ cannam@89: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X/"$0" | cannam@89: sed '/^.*\/\([^/][^/]*\)\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\/\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\/\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'` cannam@89: cannam@89: # CDPATH. cannam@89: $as_unset CDPATH cannam@89: cannam@89: cannam@89: if test "x$CONFIG_SHELL" = x; then cannam@89: if (eval ":") 2>/dev/null; then cannam@89: as_have_required=yes cannam@89: else cannam@89: as_have_required=no cannam@89: fi cannam@89: cannam@89: if test $as_have_required = yes && (eval ": cannam@89: (as_func_return () { cannam@89: (exit \$1) cannam@89: } cannam@89: as_func_success () { cannam@89: as_func_return 0 cannam@89: } cannam@89: as_func_failure () { cannam@89: as_func_return 1 cannam@89: } cannam@89: as_func_ret_success () { cannam@89: return 0 cannam@89: } cannam@89: as_func_ret_failure () { cannam@89: return 1 cannam@89: } cannam@89: cannam@89: exitcode=0 cannam@89: if as_func_success; then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo as_func_success failed. cannam@89: fi cannam@89: cannam@89: if as_func_failure; then cannam@89: exitcode=1 cannam@89: echo as_func_failure succeeded. cannam@89: fi cannam@89: cannam@89: if as_func_ret_success; then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo as_func_ret_success failed. cannam@89: fi cannam@89: cannam@89: if as_func_ret_failure; then cannam@89: exitcode=1 cannam@89: echo as_func_ret_failure succeeded. cannam@89: fi cannam@89: cannam@89: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo positional parameters were not saved. cannam@89: fi cannam@89: cannam@89: test \$exitcode = 0) || { (exit 1); exit 1; } cannam@89: cannam@89: ( cannam@89: as_lineno_1=\$LINENO cannam@89: as_lineno_2=\$LINENO cannam@89: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && cannam@89: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } cannam@89: ") 2> /dev/null; then cannam@89: : cannam@89: else cannam@89: as_candidate_shells= cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: case $as_dir in cannam@89: /*) cannam@89: for as_base in sh bash ksh sh5; do cannam@89: as_candidate_shells="$as_candidate_shells $as_dir/$as_base" cannam@89: done;; cannam@89: esac cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: cannam@89: for as_shell in $as_candidate_shells $SHELL; do cannam@89: # Try only shells that exist, to save several forks. cannam@89: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && cannam@89: { ("$as_shell") 2> /dev/null <<\_ASEOF cannam@89: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then cannam@89: emulate sh cannam@89: NULLCMD=: cannam@89: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which cannam@89: # is contrary to our usage. Disable this feature. cannam@89: alias -g '${1+"$@"}'='"$@"' cannam@89: setopt NO_GLOB_SUBST cannam@89: else cannam@89: case `(set -o) 2>/dev/null` in cannam@89: *posix*) set -o posix ;; cannam@89: esac cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: : cannam@89: _ASEOF cannam@89: }; then cannam@89: CONFIG_SHELL=$as_shell cannam@89: as_have_required=yes cannam@89: if { "$as_shell" 2> /dev/null <<\_ASEOF cannam@89: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then cannam@89: emulate sh cannam@89: NULLCMD=: cannam@89: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which cannam@89: # is contrary to our usage. Disable this feature. cannam@89: alias -g '${1+"$@"}'='"$@"' cannam@89: setopt NO_GLOB_SUBST cannam@89: else cannam@89: case `(set -o) 2>/dev/null` in cannam@89: *posix*) set -o posix ;; cannam@89: esac cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: : cannam@89: (as_func_return () { cannam@89: (exit $1) cannam@89: } cannam@89: as_func_success () { cannam@89: as_func_return 0 cannam@89: } cannam@89: as_func_failure () { cannam@89: as_func_return 1 cannam@89: } cannam@89: as_func_ret_success () { cannam@89: return 0 cannam@89: } cannam@89: as_func_ret_failure () { cannam@89: return 1 cannam@89: } cannam@89: cannam@89: exitcode=0 cannam@89: if as_func_success; then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo as_func_success failed. cannam@89: fi cannam@89: cannam@89: if as_func_failure; then cannam@89: exitcode=1 cannam@89: echo as_func_failure succeeded. cannam@89: fi cannam@89: cannam@89: if as_func_ret_success; then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo as_func_ret_success failed. cannam@89: fi cannam@89: cannam@89: if as_func_ret_failure; then cannam@89: exitcode=1 cannam@89: echo as_func_ret_failure succeeded. cannam@89: fi cannam@89: cannam@89: if ( set x; as_func_ret_success y && test x = "$1" ); then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo positional parameters were not saved. cannam@89: fi cannam@89: cannam@89: test $exitcode = 0) || { (exit 1); exit 1; } cannam@89: cannam@89: ( cannam@89: as_lineno_1=$LINENO cannam@89: as_lineno_2=$LINENO cannam@89: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@89: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } cannam@89: cannam@89: _ASEOF cannam@89: }; then cannam@89: break cannam@89: fi cannam@89: cannam@89: fi cannam@89: cannam@89: done cannam@89: cannam@89: if test "x$CONFIG_SHELL" != x; then cannam@89: for as_var in BASH_ENV ENV cannam@89: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var cannam@89: done cannam@89: export CONFIG_SHELL cannam@89: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} cannam@89: fi cannam@89: cannam@89: cannam@89: if test $as_have_required = no; then cannam@89: echo This script requires a shell more modern than all the cannam@89: echo shells that I found on your system. Please install a cannam@89: echo modern shell, or manually run the script under such a cannam@89: echo shell if you do have one. cannam@89: { (exit 1); exit 1; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: (eval "as_func_return () { cannam@89: (exit \$1) cannam@89: } cannam@89: as_func_success () { cannam@89: as_func_return 0 cannam@89: } cannam@89: as_func_failure () { cannam@89: as_func_return 1 cannam@89: } cannam@89: as_func_ret_success () { cannam@89: return 0 cannam@89: } cannam@89: as_func_ret_failure () { cannam@89: return 1 cannam@89: } cannam@89: cannam@89: exitcode=0 cannam@89: if as_func_success; then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo as_func_success failed. cannam@89: fi cannam@89: cannam@89: if as_func_failure; then cannam@89: exitcode=1 cannam@89: echo as_func_failure succeeded. cannam@89: fi cannam@89: cannam@89: if as_func_ret_success; then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo as_func_ret_success failed. cannam@89: fi cannam@89: cannam@89: if as_func_ret_failure; then cannam@89: exitcode=1 cannam@89: echo as_func_ret_failure succeeded. cannam@89: fi cannam@89: cannam@89: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then cannam@89: : cannam@89: else cannam@89: exitcode=1 cannam@89: echo positional parameters were not saved. cannam@89: fi cannam@89: cannam@89: test \$exitcode = 0") || { cannam@89: echo No shell found that supports shell functions. cannam@89: echo Please tell autoconf@gnu.org about your system, cannam@89: echo including any error possibly output before this cannam@89: echo message cannam@89: } cannam@89: cannam@89: cannam@89: cannam@89: as_lineno_1=$LINENO cannam@89: as_lineno_2=$LINENO cannam@89: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@89: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { cannam@89: cannam@89: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO cannam@89: # uniformly replaced by the line number. The first 'sed' inserts a cannam@89: # line-number line after each line using $LINENO; the second 'sed' cannam@89: # does the real work. The second script uses 'N' to pair each cannam@89: # line-number line with the line containing $LINENO, and appends cannam@89: # trailing '-' during substitution so that $LINENO is not a special cannam@89: # case at line end. cannam@89: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the cannam@89: # scripts with optimization help from Paolo Bonzini. Blame Lee cannam@89: # E. McMahon (1931-1989) for sed's syntax. :-) cannam@89: sed -n ' cannam@89: p cannam@89: /[$]LINENO/= cannam@89: ' <$as_myself | cannam@89: sed ' cannam@89: s/[$]LINENO.*/&-/ cannam@89: t lineno cannam@89: b cannam@89: :lineno cannam@89: N cannam@89: :loop cannam@89: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ cannam@89: t loop cannam@89: s/-\n.*// cannam@89: ' >$as_me.lineno && cannam@89: chmod +x "$as_me.lineno" || cannam@89: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: cannam@89: # Don't try to exec as it changes $[0], causing all sort of problems cannam@89: # (the dirname of $[0] is not the place where we might find the cannam@89: # original and so on. Autoconf is especially sensitive to this). cannam@89: . "./$as_me.lineno" cannam@89: # Exit status is that of the last command. cannam@89: exit cannam@89: } cannam@89: cannam@89: cannam@89: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then cannam@89: as_dirname=dirname cannam@89: else cannam@89: as_dirname=false cannam@89: fi cannam@89: cannam@89: ECHO_C= ECHO_N= ECHO_T= cannam@89: case `echo -n x` in cannam@89: -n*) cannam@89: case `echo 'x\c'` in cannam@89: *c*) ECHO_T=' ';; # ECHO_T is single tab character. cannam@89: *) ECHO_C='\c';; cannam@89: esac;; cannam@89: *) cannam@89: ECHO_N='-n';; cannam@89: esac cannam@89: cannam@89: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@89: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@89: as_expr=expr cannam@89: else cannam@89: as_expr=false cannam@89: fi cannam@89: cannam@89: rm -f conf$$ conf$$.exe conf$$.file cannam@89: if test -d conf$$.dir; then cannam@89: rm -f conf$$.dir/conf$$.file cannam@89: else cannam@89: rm -f conf$$.dir cannam@89: mkdir conf$$.dir cannam@89: fi cannam@89: echo >conf$$.file cannam@89: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@89: as_ln_s='ln -s' cannam@89: # ... but there are two gotchas: cannam@89: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. cannam@89: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. cannam@89: # In both cases, we have to default to `cp -p'. cannam@89: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || cannam@89: as_ln_s='cp -p' cannam@89: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@89: as_ln_s=ln cannam@89: else cannam@89: as_ln_s='cp -p' cannam@89: fi cannam@89: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file cannam@89: rmdir conf$$.dir 2>/dev/null cannam@89: cannam@89: if mkdir -p . 2>/dev/null; then cannam@89: as_mkdir_p=: cannam@89: else cannam@89: test -d ./-p && rmdir ./-p cannam@89: as_mkdir_p=false cannam@89: fi cannam@89: cannam@89: if test -x / >/dev/null 2>&1; then cannam@89: as_test_x='test -x' cannam@89: else cannam@89: if ls -dL / >/dev/null 2>&1; then cannam@89: as_ls_L_option=L cannam@89: else cannam@89: as_ls_L_option= cannam@89: fi cannam@89: as_test_x=' cannam@89: eval sh -c '\'' cannam@89: if test -d "$1"; then cannam@89: test -d "$1/."; cannam@89: else cannam@89: case $1 in cannam@89: -*)set "./$1";; cannam@89: esac; cannam@89: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in cannam@89: ???[sx]*):;;*)false;;esac;fi cannam@89: '\'' sh cannam@89: ' cannam@89: fi cannam@89: as_executable_p=$as_test_x cannam@89: cannam@89: # Sed expression to map a string onto a valid CPP name. cannam@89: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@89: cannam@89: # Sed expression to map a string onto a valid variable name. cannam@89: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Check that we are running under the correct shell. cannam@89: SHELL=${CONFIG_SHELL-/bin/sh} cannam@89: cannam@89: case X$lt_ECHO in cannam@89: X*--fallback-echo) cannam@89: # Remove one level of quotation (which was required for Make). cannam@89: ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` cannam@89: ;; cannam@89: esac cannam@89: cannam@89: ECHO=${lt_ECHO-echo} cannam@89: if test "X$1" = X--no-reexec; then cannam@89: # Discard the --no-reexec flag, and continue. cannam@89: shift cannam@89: elif test "X$1" = X--fallback-echo; then cannam@89: # Avoid inline document here, it may be left over cannam@89: : cannam@89: elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then cannam@89: # Yippee, $ECHO works! cannam@89: : cannam@89: else cannam@89: # Restart under the correct shell. cannam@89: exec $SHELL "$0" --no-reexec ${1+"$@"} cannam@89: fi cannam@89: cannam@89: if test "X$1" = X--fallback-echo; then cannam@89: # used as fallback echo cannam@89: shift cannam@89: cat <<_LT_EOF cannam@89: $* cannam@89: _LT_EOF cannam@89: exit 0 cannam@89: fi cannam@89: cannam@89: # The HP-UX ksh and POSIX shell print the target directory to stdout cannam@89: # if CDPATH is set. cannam@89: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@89: cannam@89: if test -z "$lt_ECHO"; then cannam@89: if test "X${echo_test_string+set}" != Xset; then cannam@89: # find a string as large as possible, as long as the shell can cope with it cannam@89: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do cannam@89: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... cannam@89: if { echo_test_string=`eval $cmd`; } 2>/dev/null && cannam@89: { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null cannam@89: then cannam@89: break cannam@89: fi cannam@89: done cannam@89: fi cannam@89: cannam@89: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && cannam@89: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && cannam@89: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@89: : cannam@89: else cannam@89: # The Solaris, AIX, and Digital Unix default echo programs unquote cannam@89: # backslashes. This makes it impossible to quote backslashes using cannam@89: # echo "$something" | sed 's/\\/\\\\/g' cannam@89: # cannam@89: # So, first we look for a working echo in the user's PATH. cannam@89: cannam@89: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@89: for dir in $PATH /usr/ucb; do cannam@89: IFS="$lt_save_ifs" cannam@89: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && cannam@89: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && cannam@89: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && cannam@89: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@89: ECHO="$dir/echo" cannam@89: break cannam@89: fi cannam@89: done cannam@89: IFS="$lt_save_ifs" cannam@89: cannam@89: if test "X$ECHO" = Xecho; then cannam@89: # We didn't find a better echo, so look for alternatives. cannam@89: if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && cannam@89: echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && cannam@89: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@89: # This shell has a builtin print -r that does the trick. cannam@89: ECHO='print -r' cannam@89: elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && cannam@89: test "X$CONFIG_SHELL" != X/bin/ksh; then cannam@89: # If we have ksh, try running configure again with it. cannam@89: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} cannam@89: export ORIGINAL_CONFIG_SHELL cannam@89: CONFIG_SHELL=/bin/ksh cannam@89: export CONFIG_SHELL cannam@89: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} cannam@89: else cannam@89: # Try using printf. cannam@89: ECHO='printf %s\n' cannam@89: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && cannam@89: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && cannam@89: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@89: # Cool, printf works cannam@89: : cannam@89: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && cannam@89: test "X$echo_testing_string" = 'X\t' && cannam@89: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && cannam@89: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@89: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL cannam@89: export CONFIG_SHELL cannam@89: SHELL="$CONFIG_SHELL" cannam@89: export SHELL cannam@89: ECHO="$CONFIG_SHELL $0 --fallback-echo" cannam@89: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && cannam@89: test "X$echo_testing_string" = 'X\t' && cannam@89: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && cannam@89: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@89: ECHO="$CONFIG_SHELL $0 --fallback-echo" cannam@89: else cannam@89: # maybe with a smaller string... cannam@89: prev=: cannam@89: cannam@89: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do cannam@89: if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null cannam@89: then cannam@89: break cannam@89: fi cannam@89: prev="$cmd" cannam@89: done cannam@89: cannam@89: if test "$prev" != 'sed 50q "$0"'; then cannam@89: echo_test_string=`eval $prev` cannam@89: export echo_test_string cannam@89: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} cannam@89: else cannam@89: # Oops. We lost completely, so just stick with echo. cannam@89: ECHO=echo cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: cannam@89: # Copy echo and quote the copy suitably for passing to libtool from cannam@89: # the Makefile, instead of quoting the original, which is used later. cannam@89: lt_ECHO=$ECHO cannam@89: if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then cannam@89: lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: exec 7<&0 &1 cannam@89: cannam@89: # Name of the host. cannam@89: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, cannam@89: # so uname gets run too. cannam@89: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` cannam@89: cannam@89: # cannam@89: # Initializations. cannam@89: # cannam@89: ac_default_prefix=/usr/local cannam@89: ac_clean_files= cannam@89: ac_config_libobj_dir=. cannam@89: LIBOBJS= cannam@89: cross_compiling=no cannam@89: subdirs= cannam@89: MFLAGS= cannam@89: MAKEFLAGS= cannam@89: SHELL=${CONFIG_SHELL-/bin/sh} cannam@89: cannam@89: # Identity of this package. cannam@89: PACKAGE_NAME='liblo' cannam@89: PACKAGE_TARNAME='liblo' cannam@89: PACKAGE_VERSION='0.26' cannam@89: PACKAGE_STRING='liblo 0.26' cannam@89: PACKAGE_BUGREPORT='liblo-devel@lists.sourceforge.net' cannam@89: cannam@89: ac_unique_file="src/address.c" cannam@89: # Factoring default headers for most tests. cannam@89: ac_includes_default="\ cannam@89: #include cannam@89: #ifdef HAVE_SYS_TYPES_H cannam@89: # include cannam@89: #endif cannam@89: #ifdef HAVE_SYS_STAT_H cannam@89: # include cannam@89: #endif cannam@89: #ifdef STDC_HEADERS cannam@89: # include cannam@89: # include cannam@89: #else cannam@89: # ifdef HAVE_STDLIB_H cannam@89: # include cannam@89: # endif cannam@89: #endif cannam@89: #ifdef HAVE_STRING_H cannam@89: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H cannam@89: # include cannam@89: # endif cannam@89: # include cannam@89: #endif cannam@89: #ifdef HAVE_STRINGS_H cannam@89: # include cannam@89: #endif cannam@89: #ifdef HAVE_INTTYPES_H cannam@89: # include cannam@89: #endif cannam@89: #ifdef HAVE_STDINT_H cannam@89: # include cannam@89: #endif cannam@89: #ifdef HAVE_UNISTD_H cannam@89: # include cannam@89: #endif" cannam@89: cannam@89: ac_subst_vars='SHELL cannam@89: PATH_SEPARATOR cannam@89: PACKAGE_NAME cannam@89: PACKAGE_TARNAME cannam@89: PACKAGE_VERSION cannam@89: PACKAGE_STRING cannam@89: PACKAGE_BUGREPORT cannam@89: exec_prefix cannam@89: prefix cannam@89: program_transform_name cannam@89: bindir cannam@89: sbindir cannam@89: libexecdir cannam@89: datarootdir cannam@89: datadir cannam@89: sysconfdir cannam@89: sharedstatedir cannam@89: localstatedir cannam@89: includedir cannam@89: oldincludedir cannam@89: docdir cannam@89: infodir cannam@89: htmldir cannam@89: dvidir cannam@89: pdfdir cannam@89: psdir cannam@89: libdir cannam@89: localedir cannam@89: mandir cannam@89: DEFS cannam@89: ECHO_C cannam@89: ECHO_N cannam@89: ECHO_T cannam@89: LIBS cannam@89: build_alias cannam@89: host_alias cannam@89: target_alias cannam@89: INSTALL_PROGRAM cannam@89: INSTALL_SCRIPT cannam@89: INSTALL_DATA cannam@89: am__isrc cannam@89: CYGPATH_W cannam@89: PACKAGE cannam@89: VERSION cannam@89: ACLOCAL cannam@89: AUTOCONF cannam@89: AUTOMAKE cannam@89: AUTOHEADER cannam@89: MAKEINFO cannam@89: install_sh cannam@89: STRIP cannam@89: INSTALL_STRIP_PROGRAM cannam@89: mkdir_p cannam@89: AWK cannam@89: SET_MAKE cannam@89: am__leading_dot cannam@89: AMTAR cannam@89: am__tar cannam@89: am__untar cannam@89: LO_SO_VERSION cannam@89: CC cannam@89: CFLAGS cannam@89: LDFLAGS cannam@89: CPPFLAGS cannam@89: ac_ct_CC cannam@89: EXEEXT cannam@89: OBJEXT cannam@89: DEPDIR cannam@89: am__include cannam@89: am__quote cannam@89: AMDEP_TRUE cannam@89: AMDEP_FALSE cannam@89: AMDEPBACKSLASH cannam@89: CCDEPMODE cannam@89: am__fastdepCC_TRUE cannam@89: am__fastdepCC_FALSE cannam@89: LIBTOOL cannam@89: build cannam@89: build_cpu cannam@89: build_vendor cannam@89: build_os cannam@89: host cannam@89: host_cpu cannam@89: host_vendor cannam@89: host_os cannam@89: SED cannam@89: GREP cannam@89: EGREP cannam@89: FGREP cannam@89: LD cannam@89: DUMPBIN cannam@89: ac_ct_DUMPBIN cannam@89: NM cannam@89: LN_S cannam@89: AR cannam@89: RANLIB cannam@89: lt_ECHO cannam@89: DSYMUTIL cannam@89: NMEDIT cannam@89: LIPO cannam@89: OTOOL cannam@89: OTOOL64 cannam@89: CPP cannam@89: DOXYGEN cannam@89: LO_BIGENDIAN cannam@89: LIBOBJS cannam@89: LTLIBOBJS' cannam@89: ac_subst_files='' cannam@89: ac_precious_vars='build_alias cannam@89: host_alias cannam@89: target_alias cannam@89: CC cannam@89: CFLAGS cannam@89: LDFLAGS cannam@89: LIBS cannam@89: CPPFLAGS cannam@89: CPP' cannam@89: cannam@89: cannam@89: # Initialize some variables set by options. cannam@89: ac_init_help= cannam@89: ac_init_version=false cannam@89: # The variables have the same names as the options, with cannam@89: # dashes changed to underlines. cannam@89: cache_file=/dev/null cannam@89: exec_prefix=NONE cannam@89: no_create= cannam@89: no_recursion= cannam@89: prefix=NONE cannam@89: program_prefix=NONE cannam@89: program_suffix=NONE cannam@89: program_transform_name=s,x,x, cannam@89: silent= cannam@89: site= cannam@89: srcdir= cannam@89: verbose= cannam@89: x_includes=NONE cannam@89: x_libraries=NONE cannam@89: cannam@89: # Installation directory options. cannam@89: # These are left unexpanded so users can "make install exec_prefix=/foo" cannam@89: # and all the variables that are supposed to be based on exec_prefix cannam@89: # by default will actually change. cannam@89: # Use braces instead of parens because sh, perl, etc. also accept them. cannam@89: # (The list follows the same order as the GNU Coding Standards.) cannam@89: bindir='${exec_prefix}/bin' cannam@89: sbindir='${exec_prefix}/sbin' cannam@89: libexecdir='${exec_prefix}/libexec' cannam@89: datarootdir='${prefix}/share' cannam@89: datadir='${datarootdir}' cannam@89: sysconfdir='${prefix}/etc' cannam@89: sharedstatedir='${prefix}/com' cannam@89: localstatedir='${prefix}/var' cannam@89: includedir='${prefix}/include' cannam@89: oldincludedir='/usr/include' cannam@89: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' cannam@89: infodir='${datarootdir}/info' cannam@89: htmldir='${docdir}' cannam@89: dvidir='${docdir}' cannam@89: pdfdir='${docdir}' cannam@89: psdir='${docdir}' cannam@89: libdir='${exec_prefix}/lib' cannam@89: localedir='${datarootdir}/locale' cannam@89: mandir='${datarootdir}/man' cannam@89: cannam@89: ac_prev= cannam@89: ac_dashdash= cannam@89: for ac_option cannam@89: do cannam@89: # If the previous option needs an argument, assign it. cannam@89: if test -n "$ac_prev"; then cannam@89: eval $ac_prev=\$ac_option cannam@89: ac_prev= cannam@89: continue cannam@89: fi cannam@89: cannam@89: case $ac_option in cannam@89: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; cannam@89: *) ac_optarg=yes ;; cannam@89: esac cannam@89: cannam@89: # Accept the important Cygnus configure options, so we can diagnose typos. cannam@89: cannam@89: case $ac_dashdash$ac_option in cannam@89: --) cannam@89: ac_dashdash=yes ;; cannam@89: cannam@89: -bindir | --bindir | --bindi | --bind | --bin | --bi) cannam@89: ac_prev=bindir ;; cannam@89: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) cannam@89: bindir=$ac_optarg ;; cannam@89: cannam@89: -build | --build | --buil | --bui | --bu) cannam@89: ac_prev=build_alias ;; cannam@89: -build=* | --build=* | --buil=* | --bui=* | --bu=*) cannam@89: build_alias=$ac_optarg ;; cannam@89: cannam@89: -cache-file | --cache-file | --cache-fil | --cache-fi \ cannam@89: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) cannam@89: ac_prev=cache_file ;; cannam@89: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ cannam@89: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cannam@89: cache_file=$ac_optarg ;; cannam@89: cannam@89: --config-cache | -C) cannam@89: cache_file=config.cache ;; cannam@89: cannam@89: -datadir | --datadir | --datadi | --datad) cannam@89: ac_prev=datadir ;; cannam@89: -datadir=* | --datadir=* | --datadi=* | --datad=*) cannam@89: datadir=$ac_optarg ;; cannam@89: cannam@89: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ cannam@89: | --dataroo | --dataro | --datar) cannam@89: ac_prev=datarootdir ;; cannam@89: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ cannam@89: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) cannam@89: datarootdir=$ac_optarg ;; cannam@89: cannam@89: -disable-* | --disable-*) cannam@89: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` cannam@89: # Reject names that are not valid shell variable names. cannam@89: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@89: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` cannam@89: eval enable_$ac_feature=no ;; cannam@89: cannam@89: -docdir | --docdir | --docdi | --doc | --do) cannam@89: ac_prev=docdir ;; cannam@89: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) cannam@89: docdir=$ac_optarg ;; cannam@89: cannam@89: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) cannam@89: ac_prev=dvidir ;; cannam@89: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) cannam@89: dvidir=$ac_optarg ;; cannam@89: cannam@89: -enable-* | --enable-*) cannam@89: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` cannam@89: # Reject names that are not valid shell variable names. cannam@89: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@89: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` cannam@89: eval enable_$ac_feature=\$ac_optarg ;; cannam@89: cannam@89: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ cannam@89: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ cannam@89: | --exec | --exe | --ex) cannam@89: ac_prev=exec_prefix ;; cannam@89: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ cannam@89: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ cannam@89: | --exec=* | --exe=* | --ex=*) cannam@89: exec_prefix=$ac_optarg ;; cannam@89: cannam@89: -gas | --gas | --ga | --g) cannam@89: # Obsolete; use --with-gas. cannam@89: with_gas=yes ;; cannam@89: cannam@89: -help | --help | --hel | --he | -h) cannam@89: ac_init_help=long ;; cannam@89: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) cannam@89: ac_init_help=recursive ;; cannam@89: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) cannam@89: ac_init_help=short ;; cannam@89: cannam@89: -host | --host | --hos | --ho) cannam@89: ac_prev=host_alias ;; cannam@89: -host=* | --host=* | --hos=* | --ho=*) cannam@89: host_alias=$ac_optarg ;; cannam@89: cannam@89: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) cannam@89: ac_prev=htmldir ;; cannam@89: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ cannam@89: | --ht=*) cannam@89: htmldir=$ac_optarg ;; cannam@89: cannam@89: -includedir | --includedir | --includedi | --included | --include \ cannam@89: | --includ | --inclu | --incl | --inc) cannam@89: ac_prev=includedir ;; cannam@89: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ cannam@89: | --includ=* | --inclu=* | --incl=* | --inc=*) cannam@89: includedir=$ac_optarg ;; cannam@89: cannam@89: -infodir | --infodir | --infodi | --infod | --info | --inf) cannam@89: ac_prev=infodir ;; cannam@89: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) cannam@89: infodir=$ac_optarg ;; cannam@89: cannam@89: -libdir | --libdir | --libdi | --libd) cannam@89: ac_prev=libdir ;; cannam@89: -libdir=* | --libdir=* | --libdi=* | --libd=*) cannam@89: libdir=$ac_optarg ;; cannam@89: cannam@89: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ cannam@89: | --libexe | --libex | --libe) cannam@89: ac_prev=libexecdir ;; cannam@89: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ cannam@89: | --libexe=* | --libex=* | --libe=*) cannam@89: libexecdir=$ac_optarg ;; cannam@89: cannam@89: -localedir | --localedir | --localedi | --localed | --locale) cannam@89: ac_prev=localedir ;; cannam@89: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) cannam@89: localedir=$ac_optarg ;; cannam@89: cannam@89: -localstatedir | --localstatedir | --localstatedi | --localstated \ cannam@89: | --localstate | --localstat | --localsta | --localst | --locals) cannam@89: ac_prev=localstatedir ;; cannam@89: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ cannam@89: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) cannam@89: localstatedir=$ac_optarg ;; cannam@89: cannam@89: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) cannam@89: ac_prev=mandir ;; cannam@89: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) cannam@89: mandir=$ac_optarg ;; cannam@89: cannam@89: -nfp | --nfp | --nf) cannam@89: # Obsolete; use --without-fp. cannam@89: with_fp=no ;; cannam@89: cannam@89: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ cannam@89: | --no-cr | --no-c | -n) cannam@89: no_create=yes ;; cannam@89: cannam@89: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ cannam@89: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) cannam@89: no_recursion=yes ;; cannam@89: cannam@89: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ cannam@89: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ cannam@89: | --oldin | --oldi | --old | --ol | --o) cannam@89: ac_prev=oldincludedir ;; cannam@89: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ cannam@89: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ cannam@89: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) cannam@89: oldincludedir=$ac_optarg ;; cannam@89: cannam@89: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) cannam@89: ac_prev=prefix ;; cannam@89: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) cannam@89: prefix=$ac_optarg ;; cannam@89: cannam@89: -program-prefix | --program-prefix | --program-prefi | --program-pref \ cannam@89: | --program-pre | --program-pr | --program-p) cannam@89: ac_prev=program_prefix ;; cannam@89: -program-prefix=* | --program-prefix=* | --program-prefi=* \ cannam@89: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) cannam@89: program_prefix=$ac_optarg ;; cannam@89: cannam@89: -program-suffix | --program-suffix | --program-suffi | --program-suff \ cannam@89: | --program-suf | --program-su | --program-s) cannam@89: ac_prev=program_suffix ;; cannam@89: -program-suffix=* | --program-suffix=* | --program-suffi=* \ cannam@89: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) cannam@89: program_suffix=$ac_optarg ;; cannam@89: cannam@89: -program-transform-name | --program-transform-name \ cannam@89: | --program-transform-nam | --program-transform-na \ cannam@89: | --program-transform-n | --program-transform- \ cannam@89: | --program-transform | --program-transfor \ cannam@89: | --program-transfo | --program-transf \ cannam@89: | --program-trans | --program-tran \ cannam@89: | --progr-tra | --program-tr | --program-t) cannam@89: ac_prev=program_transform_name ;; cannam@89: -program-transform-name=* | --program-transform-name=* \ cannam@89: | --program-transform-nam=* | --program-transform-na=* \ cannam@89: | --program-transform-n=* | --program-transform-=* \ cannam@89: | --program-transform=* | --program-transfor=* \ cannam@89: | --program-transfo=* | --program-transf=* \ cannam@89: | --program-trans=* | --program-tran=* \ cannam@89: | --progr-tra=* | --program-tr=* | --program-t=*) cannam@89: program_transform_name=$ac_optarg ;; cannam@89: cannam@89: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) cannam@89: ac_prev=pdfdir ;; cannam@89: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) cannam@89: pdfdir=$ac_optarg ;; cannam@89: cannam@89: -psdir | --psdir | --psdi | --psd | --ps) cannam@89: ac_prev=psdir ;; cannam@89: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) cannam@89: psdir=$ac_optarg ;; cannam@89: cannam@89: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@89: | -silent | --silent | --silen | --sile | --sil) cannam@89: silent=yes ;; cannam@89: cannam@89: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) cannam@89: ac_prev=sbindir ;; cannam@89: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ cannam@89: | --sbi=* | --sb=*) cannam@89: sbindir=$ac_optarg ;; cannam@89: cannam@89: -sharedstatedir | --sharedstatedir | --sharedstatedi \ cannam@89: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ cannam@89: | --sharedst | --shareds | --shared | --share | --shar \ cannam@89: | --sha | --sh) cannam@89: ac_prev=sharedstatedir ;; cannam@89: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ cannam@89: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ cannam@89: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ cannam@89: | --sha=* | --sh=*) cannam@89: sharedstatedir=$ac_optarg ;; cannam@89: cannam@89: -site | --site | --sit) cannam@89: ac_prev=site ;; cannam@89: -site=* | --site=* | --sit=*) cannam@89: site=$ac_optarg ;; cannam@89: cannam@89: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) cannam@89: ac_prev=srcdir ;; cannam@89: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) cannam@89: srcdir=$ac_optarg ;; cannam@89: cannam@89: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ cannam@89: | --syscon | --sysco | --sysc | --sys | --sy) cannam@89: ac_prev=sysconfdir ;; cannam@89: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ cannam@89: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) cannam@89: sysconfdir=$ac_optarg ;; cannam@89: cannam@89: -target | --target | --targe | --targ | --tar | --ta | --t) cannam@89: ac_prev=target_alias ;; cannam@89: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) cannam@89: target_alias=$ac_optarg ;; cannam@89: cannam@89: -v | -verbose | --verbose | --verbos | --verbo | --verb) cannam@89: verbose=yes ;; cannam@89: cannam@89: -version | --version | --versio | --versi | --vers | -V) cannam@89: ac_init_version=: ;; cannam@89: cannam@89: -with-* | --with-*) cannam@89: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` cannam@89: # Reject names that are not valid shell variable names. cannam@89: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@89: { echo "$as_me: error: invalid package name: $ac_package" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: ac_package=`echo $ac_package | sed 's/[-.]/_/g'` cannam@89: eval with_$ac_package=\$ac_optarg ;; cannam@89: cannam@89: -without-* | --without-*) cannam@89: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` cannam@89: # Reject names that are not valid shell variable names. cannam@89: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@89: { echo "$as_me: error: invalid package name: $ac_package" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: ac_package=`echo $ac_package | sed 's/[-.]/_/g'` cannam@89: eval with_$ac_package=no ;; cannam@89: cannam@89: --x) cannam@89: # Obsolete; use --with-x. cannam@89: with_x=yes ;; cannam@89: cannam@89: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ cannam@89: | --x-incl | --x-inc | --x-in | --x-i) cannam@89: ac_prev=x_includes ;; cannam@89: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ cannam@89: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) cannam@89: x_includes=$ac_optarg ;; cannam@89: cannam@89: -x-libraries | --x-libraries | --x-librarie | --x-librari \ cannam@89: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) cannam@89: ac_prev=x_libraries ;; cannam@89: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ cannam@89: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) cannam@89: x_libraries=$ac_optarg ;; cannam@89: cannam@89: -*) { echo "$as_me: error: unrecognized option: $ac_option cannam@89: Try \`$0 --help' for more information." >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: ;; cannam@89: cannam@89: *=*) cannam@89: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` cannam@89: # Reject names that are not valid shell variable names. cannam@89: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && cannam@89: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: eval $ac_envvar=\$ac_optarg cannam@89: export $ac_envvar ;; cannam@89: cannam@89: *) cannam@89: # FIXME: should be removed in autoconf 3.0. cannam@89: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 cannam@89: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@89: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 cannam@89: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} cannam@89: ;; cannam@89: cannam@89: esac cannam@89: done cannam@89: cannam@89: if test -n "$ac_prev"; then cannam@89: ac_option=--`echo $ac_prev | sed 's/_/-/g'` cannam@89: { echo "$as_me: error: missing argument to $ac_option" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: # Be sure to have absolute directory names. cannam@89: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ cannam@89: datadir sysconfdir sharedstatedir localstatedir includedir \ cannam@89: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ cannam@89: libdir localedir mandir cannam@89: do cannam@89: eval ac_val=\$$ac_var cannam@89: case $ac_val in cannam@89: [\\/$]* | ?:[\\/]* ) continue;; cannam@89: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; cannam@89: esac cannam@89: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: done cannam@89: cannam@89: # There might be people who depend on the old broken behavior: `$host' cannam@89: # used to hold the argument of --host etc. cannam@89: # FIXME: To remove some day. cannam@89: build=$build_alias cannam@89: host=$host_alias cannam@89: target=$target_alias cannam@89: cannam@89: # FIXME: To remove some day. cannam@89: if test "x$host_alias" != x; then cannam@89: if test "x$build_alias" = x; then cannam@89: cross_compiling=maybe cannam@89: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. cannam@89: If a cross compiler is detected then cross compile mode will be used." >&2 cannam@89: elif test "x$build_alias" != "x$host_alias"; then cannam@89: cross_compiling=yes cannam@89: fi cannam@89: fi cannam@89: cannam@89: ac_tool_prefix= cannam@89: test -n "$host_alias" && ac_tool_prefix=$host_alias- cannam@89: cannam@89: test "$silent" = yes && exec 6>/dev/null cannam@89: cannam@89: cannam@89: ac_pwd=`pwd` && test -n "$ac_pwd" && cannam@89: ac_ls_di=`ls -di .` && cannam@89: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || cannam@89: { echo "$as_me: error: Working directory cannot be determined" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || cannam@89: { echo "$as_me: error: pwd does not report name of working directory" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: cannam@89: cannam@89: # Find the source files, if location was not specified. cannam@89: if test -z "$srcdir"; then cannam@89: ac_srcdir_defaulted=yes cannam@89: # Try the directory containing this script, then the parent directory. cannam@89: ac_confdir=`$as_dirname -- "$0" || cannam@89: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@89: X"$0" : 'X\(//\)[^/]' \| \ cannam@89: X"$0" : 'X\(//\)$' \| \ cannam@89: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X"$0" | cannam@89: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)[^/].*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'` cannam@89: srcdir=$ac_confdir cannam@89: if test ! -r "$srcdir/$ac_unique_file"; then cannam@89: srcdir=.. cannam@89: fi cannam@89: else cannam@89: ac_srcdir_defaulted=no cannam@89: fi cannam@89: if test ! -r "$srcdir/$ac_unique_file"; then cannam@89: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." cannam@89: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" cannam@89: ac_abs_confdir=`( cannam@89: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: pwd)` cannam@89: # When building in place, set srcdir=. cannam@89: if test "$ac_abs_confdir" = "$ac_pwd"; then cannam@89: srcdir=. cannam@89: fi cannam@89: # Remove unnecessary trailing slashes from srcdir. cannam@89: # Double slashes in file names in object file debugging info cannam@89: # mess up M-x gdb in Emacs. cannam@89: case $srcdir in cannam@89: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; cannam@89: esac cannam@89: for ac_var in $ac_precious_vars; do cannam@89: eval ac_env_${ac_var}_set=\${${ac_var}+set} cannam@89: eval ac_env_${ac_var}_value=\$${ac_var} cannam@89: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} cannam@89: eval ac_cv_env_${ac_var}_value=\$${ac_var} cannam@89: done cannam@89: cannam@89: # cannam@89: # Report the --help message. cannam@89: # cannam@89: if test "$ac_init_help" = "long"; then cannam@89: # Omit some internal or obsolete options to make the list less imposing. cannam@89: # This message is too long to be a string in the A/UX 3.1 sh. cannam@89: cat <<_ACEOF cannam@89: \`configure' configures liblo 0.26 to adapt to many kinds of systems. cannam@89: cannam@89: Usage: $0 [OPTION]... [VAR=VALUE]... cannam@89: cannam@89: To assign environment variables (e.g., CC, CFLAGS...), specify them as cannam@89: VAR=VALUE. See below for descriptions of some of the useful variables. cannam@89: cannam@89: Defaults for the options are specified in brackets. cannam@89: cannam@89: Configuration: cannam@89: -h, --help display this help and exit cannam@89: --help=short display options specific to this package cannam@89: --help=recursive display the short help of all the included packages cannam@89: -V, --version display version information and exit cannam@89: -q, --quiet, --silent do not print \`checking...' messages cannam@89: --cache-file=FILE cache test results in FILE [disabled] cannam@89: -C, --config-cache alias for \`--cache-file=config.cache' cannam@89: -n, --no-create do not create output files cannam@89: --srcdir=DIR find the sources in DIR [configure dir or \`..'] cannam@89: cannam@89: Installation directories: cannam@89: --prefix=PREFIX install architecture-independent files in PREFIX cannam@89: [$ac_default_prefix] cannam@89: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX cannam@89: [PREFIX] cannam@89: cannam@89: By default, \`make install' will install all the files in cannam@89: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify cannam@89: an installation prefix other than \`$ac_default_prefix' using \`--prefix', cannam@89: for instance \`--prefix=\$HOME'. cannam@89: cannam@89: For better control, use the options below. cannam@89: cannam@89: Fine tuning of the installation directories: cannam@89: --bindir=DIR user executables [EPREFIX/bin] cannam@89: --sbindir=DIR system admin executables [EPREFIX/sbin] cannam@89: --libexecdir=DIR program executables [EPREFIX/libexec] cannam@89: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] cannam@89: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] cannam@89: --localstatedir=DIR modifiable single-machine data [PREFIX/var] cannam@89: --libdir=DIR object code libraries [EPREFIX/lib] cannam@89: --includedir=DIR C header files [PREFIX/include] cannam@89: --oldincludedir=DIR C header files for non-gcc [/usr/include] cannam@89: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] cannam@89: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] cannam@89: --infodir=DIR info documentation [DATAROOTDIR/info] cannam@89: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] cannam@89: --mandir=DIR man documentation [DATAROOTDIR/man] cannam@89: --docdir=DIR documentation root [DATAROOTDIR/doc/liblo] cannam@89: --htmldir=DIR html documentation [DOCDIR] cannam@89: --dvidir=DIR dvi documentation [DOCDIR] cannam@89: --pdfdir=DIR pdf documentation [DOCDIR] cannam@89: --psdir=DIR ps documentation [DOCDIR] cannam@89: _ACEOF cannam@89: cannam@89: cat <<\_ACEOF cannam@89: cannam@89: Program names: cannam@89: --program-prefix=PREFIX prepend PREFIX to installed program names cannam@89: --program-suffix=SUFFIX append SUFFIX to installed program names cannam@89: --program-transform-name=PROGRAM run sed PROGRAM on installed program names cannam@89: cannam@89: System types: cannam@89: --build=BUILD configure for building on BUILD [guessed] cannam@89: --host=HOST cross-compile to build programs to run on HOST [BUILD] cannam@89: _ACEOF cannam@89: fi cannam@89: cannam@89: if test -n "$ac_init_help"; then cannam@89: case $ac_init_help in cannam@89: short | recursive ) echo "Configuration of liblo 0.26:";; cannam@89: esac cannam@89: cat <<\_ACEOF cannam@89: cannam@89: Optional Features: cannam@89: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) cannam@89: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] cannam@89: --enable-static[=PKGS] build static libraries [default=no] cannam@89: --enable-shared[=PKGS] build shared libraries [default=yes] cannam@89: --enable-ipv6 Enable ipv6 support cannam@89: --disable-dependency-tracking speeds up one-time build cannam@89: --enable-dependency-tracking do not reject slow dependency extractors cannam@89: --enable-fast-install[=PKGS] cannam@89: optimize for fast installation [default=yes] cannam@89: --disable-libtool-lock avoid locking (might break parallel builds) cannam@89: cannam@89: Optional Packages: cannam@89: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] cannam@89: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) cannam@89: --with-pic try to use only PIC/non-PIC objects [default=use cannam@89: both] cannam@89: --with-gnu-ld assume the C compiler uses GNU ld [default=no] cannam@89: cannam@89: Some influential environment variables: cannam@89: CC C compiler command cannam@89: CFLAGS C compiler flags cannam@89: LDFLAGS linker flags, e.g. -L if you have libraries in a cannam@89: nonstandard directory cannam@89: LIBS libraries to pass to the linker, e.g. -l cannam@89: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if cannam@89: you have headers in a nonstandard directory cannam@89: CPP C preprocessor cannam@89: cannam@89: Use these variables to override the choices made by `configure' or to help cannam@89: it to find libraries and programs with nonstandard names/locations. cannam@89: cannam@89: Report bugs to . cannam@89: _ACEOF cannam@89: ac_status=$? cannam@89: fi cannam@89: cannam@89: if test "$ac_init_help" = "recursive"; then cannam@89: # If there are subdirs, report their specific --help. cannam@89: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue cannam@89: test -d "$ac_dir" || continue cannam@89: ac_builddir=. cannam@89: cannam@89: case "$ac_dir" in cannam@89: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@89: *) cannam@89: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` cannam@89: # A ".." for each directory in $ac_dir_suffix. cannam@89: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` cannam@89: case $ac_top_builddir_sub in cannam@89: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@89: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; cannam@89: esac ;; cannam@89: esac cannam@89: ac_abs_top_builddir=$ac_pwd cannam@89: ac_abs_builddir=$ac_pwd$ac_dir_suffix cannam@89: # for backward compatibility: cannam@89: ac_top_builddir=$ac_top_build_prefix cannam@89: cannam@89: case $srcdir in cannam@89: .) # We are building in place. cannam@89: ac_srcdir=. cannam@89: ac_top_srcdir=$ac_top_builddir_sub cannam@89: ac_abs_top_srcdir=$ac_pwd ;; cannam@89: [\\/]* | ?:[\\/]* ) # Absolute name. cannam@89: ac_srcdir=$srcdir$ac_dir_suffix; cannam@89: ac_top_srcdir=$srcdir cannam@89: ac_abs_top_srcdir=$srcdir ;; cannam@89: *) # Relative name. cannam@89: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix cannam@89: ac_top_srcdir=$ac_top_build_prefix$srcdir cannam@89: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; cannam@89: esac cannam@89: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cannam@89: cannam@89: cd "$ac_dir" || { ac_status=$?; continue; } cannam@89: # Check for guested configure. cannam@89: if test -f "$ac_srcdir/configure.gnu"; then cannam@89: echo && cannam@89: $SHELL "$ac_srcdir/configure.gnu" --help=recursive cannam@89: elif test -f "$ac_srcdir/configure"; then cannam@89: echo && cannam@89: $SHELL "$ac_srcdir/configure" --help=recursive cannam@89: else cannam@89: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 cannam@89: fi || ac_status=$? cannam@89: cd "$ac_pwd" || { ac_status=$?; break; } cannam@89: done cannam@89: fi cannam@89: cannam@89: test -n "$ac_init_help" && exit $ac_status cannam@89: if $ac_init_version; then cannam@89: cat <<\_ACEOF cannam@89: liblo configure 0.26 cannam@89: generated by GNU Autoconf 2.61 cannam@89: cannam@89: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, cannam@89: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. cannam@89: This configure script is free software; the Free Software Foundation cannam@89: gives unlimited permission to copy, distribute and modify it. cannam@89: _ACEOF cannam@89: exit cannam@89: fi cannam@89: cat >config.log <<_ACEOF cannam@89: This file contains any messages produced by compilers while cannam@89: running configure, to aid debugging if configure makes a mistake. cannam@89: cannam@89: It was created by liblo $as_me 0.26, which was cannam@89: generated by GNU Autoconf 2.61. Invocation command line was cannam@89: cannam@89: $ $0 $@ cannam@89: cannam@89: _ACEOF cannam@89: exec 5>>config.log cannam@89: { cannam@89: cat <<_ASUNAME cannam@89: ## --------- ## cannam@89: ## Platform. ## cannam@89: ## --------- ## cannam@89: cannam@89: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@89: uname -m = `(uname -m) 2>/dev/null || echo unknown` cannam@89: uname -r = `(uname -r) 2>/dev/null || echo unknown` cannam@89: uname -s = `(uname -s) 2>/dev/null || echo unknown` cannam@89: uname -v = `(uname -v) 2>/dev/null || echo unknown` cannam@89: cannam@89: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` cannam@89: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` cannam@89: cannam@89: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` cannam@89: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` cannam@89: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` cannam@89: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` cannam@89: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` cannam@89: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` cannam@89: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` cannam@89: cannam@89: _ASUNAME cannam@89: cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: echo "PATH: $as_dir" cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: } >&5 cannam@89: cannam@89: cat >&5 <<_ACEOF cannam@89: cannam@89: cannam@89: ## ----------- ## cannam@89: ## Core tests. ## cannam@89: ## ----------- ## cannam@89: cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: # Keep a trace of the command line. cannam@89: # Strip out --no-create and --no-recursion so they do not pile up. cannam@89: # Strip out --silent because we don't want to record it for future runs. cannam@89: # Also quote any args containing shell meta-characters. cannam@89: # Make two passes to allow for proper duplicate-argument suppression. cannam@89: ac_configure_args= cannam@89: ac_configure_args0= cannam@89: ac_configure_args1= cannam@89: ac_must_keep_next=false cannam@89: for ac_pass in 1 2 cannam@89: do cannam@89: for ac_arg cannam@89: do cannam@89: case $ac_arg in cannam@89: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; cannam@89: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@89: | -silent | --silent | --silen | --sile | --sil) cannam@89: continue ;; cannam@89: *\'*) cannam@89: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@89: esac cannam@89: case $ac_pass in cannam@89: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; cannam@89: 2) cannam@89: ac_configure_args1="$ac_configure_args1 '$ac_arg'" cannam@89: if test $ac_must_keep_next = true; then cannam@89: ac_must_keep_next=false # Got value, back to normal. cannam@89: else cannam@89: case $ac_arg in cannam@89: *=* | --config-cache | -C | -disable-* | --disable-* \ cannam@89: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ cannam@89: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ cannam@89: | -with-* | --with-* | -without-* | --without-* | --x) cannam@89: case "$ac_configure_args0 " in cannam@89: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; cannam@89: esac cannam@89: ;; cannam@89: -* ) ac_must_keep_next=true ;; cannam@89: esac cannam@89: fi cannam@89: ac_configure_args="$ac_configure_args '$ac_arg'" cannam@89: ;; cannam@89: esac cannam@89: done cannam@89: done cannam@89: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } cannam@89: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } cannam@89: cannam@89: # When interrupted or exit'd, cleanup temporary files, and complete cannam@89: # config.log. We remove comments because anyway the quotes in there cannam@89: # would cause problems or look ugly. cannam@89: # WARNING: Use '\'' to represent an apostrophe within the trap. cannam@89: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. cannam@89: trap 'exit_status=$? cannam@89: # Save into config.log some information that might help in debugging. cannam@89: { cannam@89: echo cannam@89: cannam@89: cat <<\_ASBOX cannam@89: ## ---------------- ## cannam@89: ## Cache variables. ## cannam@89: ## ---------------- ## cannam@89: _ASBOX cannam@89: echo cannam@89: # The following way of writing the cache mishandles newlines in values, cannam@89: ( cannam@89: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do cannam@89: eval ac_val=\$$ac_var cannam@89: case $ac_val in #( cannam@89: *${as_nl}*) cannam@89: case $ac_var in #( cannam@89: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 cannam@89: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; cannam@89: esac cannam@89: case $ac_var in #( cannam@89: _ | IFS | as_nl) ;; #( cannam@89: *) $as_unset $ac_var ;; cannam@89: esac ;; cannam@89: esac cannam@89: done cannam@89: (set) 2>&1 | cannam@89: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( cannam@89: *${as_nl}ac_space=\ *) cannam@89: sed -n \ cannam@89: "s/'\''/'\''\\\\'\'''\''/g; cannam@89: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" cannam@89: ;; #( cannam@89: *) cannam@89: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" cannam@89: ;; cannam@89: esac | cannam@89: sort cannam@89: ) cannam@89: echo cannam@89: cannam@89: cat <<\_ASBOX cannam@89: ## ----------------- ## cannam@89: ## Output variables. ## cannam@89: ## ----------------- ## cannam@89: _ASBOX cannam@89: echo cannam@89: for ac_var in $ac_subst_vars cannam@89: do cannam@89: eval ac_val=\$$ac_var cannam@89: case $ac_val in cannam@89: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; cannam@89: esac cannam@89: echo "$ac_var='\''$ac_val'\''" cannam@89: done | sort cannam@89: echo cannam@89: cannam@89: if test -n "$ac_subst_files"; then cannam@89: cat <<\_ASBOX cannam@89: ## ------------------- ## cannam@89: ## File substitutions. ## cannam@89: ## ------------------- ## cannam@89: _ASBOX cannam@89: echo cannam@89: for ac_var in $ac_subst_files cannam@89: do cannam@89: eval ac_val=\$$ac_var cannam@89: case $ac_val in cannam@89: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; cannam@89: esac cannam@89: echo "$ac_var='\''$ac_val'\''" cannam@89: done | sort cannam@89: echo cannam@89: fi cannam@89: cannam@89: if test -s confdefs.h; then cannam@89: cat <<\_ASBOX cannam@89: ## ----------- ## cannam@89: ## confdefs.h. ## cannam@89: ## ----------- ## cannam@89: _ASBOX cannam@89: echo cannam@89: cat confdefs.h cannam@89: echo cannam@89: fi cannam@89: test "$ac_signal" != 0 && cannam@89: echo "$as_me: caught signal $ac_signal" cannam@89: echo "$as_me: exit $exit_status" cannam@89: } >&5 cannam@89: rm -f core *.core core.conftest.* && cannam@89: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && cannam@89: exit $exit_status cannam@89: ' 0 cannam@89: for ac_signal in 1 2 13 15; do cannam@89: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal cannam@89: done cannam@89: ac_signal=0 cannam@89: cannam@89: # confdefs.h avoids OS command line length limits that DEFS can exceed. cannam@89: rm -f -r conftest* confdefs.h cannam@89: cannam@89: # Predefined preprocessor variables. cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define PACKAGE_NAME "$PACKAGE_NAME" cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define PACKAGE_VERSION "$PACKAGE_VERSION" cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define PACKAGE_STRING "$PACKAGE_STRING" cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: # Let the site file select an alternate cache file if it wants to. cannam@89: # Prefer explicitly selected file to automatically selected ones. cannam@89: if test -n "$CONFIG_SITE"; then cannam@89: set x "$CONFIG_SITE" cannam@89: elif test "x$prefix" != xNONE; then cannam@89: set x "$prefix/share/config.site" "$prefix/etc/config.site" cannam@89: else cannam@89: set x "$ac_default_prefix/share/config.site" \ cannam@89: "$ac_default_prefix/etc/config.site" cannam@89: fi cannam@89: shift cannam@89: for ac_site_file cannam@89: do cannam@89: if test -r "$ac_site_file"; then cannam@89: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 cannam@89: echo "$as_me: loading site script $ac_site_file" >&6;} cannam@89: sed 's/^/| /' "$ac_site_file" >&5 cannam@89: . "$ac_site_file" cannam@89: fi cannam@89: done cannam@89: cannam@89: if test -r "$cache_file"; then cannam@89: # Some versions of bash will fail to source /dev/null (special cannam@89: # files actually), so we avoid doing that. cannam@89: if test -f "$cache_file"; then cannam@89: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 cannam@89: echo "$as_me: loading cache $cache_file" >&6;} cannam@89: case $cache_file in cannam@89: [\\/]* | ?:[\\/]* ) . "$cache_file";; cannam@89: *) . "./$cache_file";; cannam@89: esac cannam@89: fi cannam@89: else cannam@89: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 cannam@89: echo "$as_me: creating cache $cache_file" >&6;} cannam@89: >$cache_file cannam@89: fi cannam@89: cannam@89: # Check that the precious variables saved in the cache have kept the same cannam@89: # value. cannam@89: ac_cache_corrupted=false cannam@89: for ac_var in $ac_precious_vars; do cannam@89: eval ac_old_set=\$ac_cv_env_${ac_var}_set cannam@89: eval ac_new_set=\$ac_env_${ac_var}_set cannam@89: eval ac_old_val=\$ac_cv_env_${ac_var}_value cannam@89: eval ac_new_val=\$ac_env_${ac_var}_value cannam@89: case $ac_old_set,$ac_new_set in cannam@89: set,) cannam@89: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 cannam@89: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} cannam@89: ac_cache_corrupted=: ;; cannam@89: ,set) cannam@89: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 cannam@89: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} cannam@89: ac_cache_corrupted=: ;; cannam@89: ,);; cannam@89: *) cannam@89: if test "x$ac_old_val" != "x$ac_new_val"; then cannam@89: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 cannam@89: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} cannam@89: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 cannam@89: echo "$as_me: former value: $ac_old_val" >&2;} cannam@89: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 cannam@89: echo "$as_me: current value: $ac_new_val" >&2;} cannam@89: ac_cache_corrupted=: cannam@89: fi;; cannam@89: esac cannam@89: # Pass precious variables to config.status. cannam@89: if test "$ac_new_set" = set; then cannam@89: case $ac_new_val in cannam@89: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@89: *) ac_arg=$ac_var=$ac_new_val ;; cannam@89: esac cannam@89: case " $ac_configure_args " in cannam@89: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. cannam@89: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; cannam@89: esac cannam@89: fi cannam@89: done cannam@89: if $ac_cache_corrupted; then cannam@89: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 cannam@89: echo "$as_me: error: changes in the environment can compromise the build" >&2;} cannam@89: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 cannam@89: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: cannam@89: cannam@89: cannam@89: # libtool version: current:revision:age cannam@89: # cannam@89: # If the library source code has changed at all since the last update, then cannam@89: # increment revision (`c:r:a' becomes `c:r+1:a'). cannam@89: # cannam@89: # If any interfaces have been added, removed, or changed since the last update, cannam@89: # increment current, and set revision to 0. cannam@89: # cannam@89: # If any interfaces have been added since the last public release, then cannam@89: # increment age. cannam@89: # cannam@89: # If any interfaces have been removed since the last public release, then set cannam@89: # age to 0. cannam@89: LO_SO_VERSION=7:0:0 cannam@89: cannam@89: cannam@89: ac_config_headers="$ac_config_headers config.h" cannam@89: cannam@89: cannam@89: am__api_version='1.10' cannam@89: cannam@89: ac_aux_dir= cannam@89: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do cannam@89: if test -f "$ac_dir/install-sh"; then cannam@89: ac_aux_dir=$ac_dir cannam@89: ac_install_sh="$ac_aux_dir/install-sh -c" cannam@89: break cannam@89: elif test -f "$ac_dir/install.sh"; then cannam@89: ac_aux_dir=$ac_dir cannam@89: ac_install_sh="$ac_aux_dir/install.sh -c" cannam@89: break cannam@89: elif test -f "$ac_dir/shtool"; then cannam@89: ac_aux_dir=$ac_dir cannam@89: ac_install_sh="$ac_aux_dir/shtool install -c" cannam@89: break cannam@89: fi cannam@89: done cannam@89: if test -z "$ac_aux_dir"; then cannam@89: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 cannam@89: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: # These three variables are undocumented and unsupported, cannam@89: # and are intended to be withdrawn in a future Autoconf release. cannam@89: # They can cause serious problems if a builder's source tree is in a directory cannam@89: # whose full name contains unusual characters. cannam@89: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. cannam@89: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. cannam@89: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. cannam@89: cannam@89: cannam@89: # Find a good install program. We prefer a C program (faster), cannam@89: # so one script is as good as another. But avoid the broken or cannam@89: # incompatible versions: cannam@89: # SysV /etc/install, /usr/sbin/install cannam@89: # SunOS /usr/etc/install cannam@89: # IRIX /sbin/install cannam@89: # AIX /bin/install cannam@89: # AmigaOS /C/install, which installs bootblocks on floppy discs cannam@89: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag cannam@89: # AFS /usr/afsws/bin/install, which mishandles nonexistent args cannam@89: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" cannam@89: # OS/2's system install, which has a completely different semantic cannam@89: # ./install, which can be erroneously created by make from ./install.sh. cannam@89: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 cannam@89: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } cannam@89: if test -z "$INSTALL"; then cannam@89: if test "${ac_cv_path_install+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: # Account for people who put trailing slashes in PATH elements. cannam@89: case $as_dir/ in cannam@89: ./ | .// | /cC/* | \ cannam@89: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ cannam@89: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ cannam@89: /usr/ucb/* ) ;; cannam@89: *) cannam@89: # OSF1 and SCO ODT 3.0 have their own names for install. cannam@89: # Don't use installbsd from OSF since it installs stuff as root cannam@89: # by default. cannam@89: for ac_prog in ginstall scoinst install; do cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then cannam@89: if test $ac_prog = install && cannam@89: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@89: # AIX install. It has an incompatible calling convention. cannam@89: : cannam@89: elif test $ac_prog = install && cannam@89: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@89: # program-specific install script used by HP pwplus--don't use. cannam@89: : cannam@89: else cannam@89: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" cannam@89: break 3 cannam@89: fi cannam@89: fi cannam@89: done cannam@89: done cannam@89: ;; cannam@89: esac cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: cannam@89: fi cannam@89: if test "${ac_cv_path_install+set}" = set; then cannam@89: INSTALL=$ac_cv_path_install cannam@89: else cannam@89: # As a last resort, use the slow shell script. Don't cache a cannam@89: # value for INSTALL within a source directory, because that will cannam@89: # break other packages using the cache if that directory is cannam@89: # removed, or if the value is a relative name. cannam@89: INSTALL=$ac_install_sh cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $INSTALL" >&5 cannam@89: echo "${ECHO_T}$INSTALL" >&6; } cannam@89: cannam@89: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. cannam@89: # It thinks the first close brace ends the variable substitution. cannam@89: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' cannam@89: cannam@89: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' cannam@89: cannam@89: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 cannam@89: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } cannam@89: # Just in case cannam@89: sleep 1 cannam@89: echo timestamp > conftest.file cannam@89: # Do `set' in a subshell so we don't clobber the current shell's cannam@89: # arguments. Must try -L first in case configure is actually a cannam@89: # symlink; some systems play weird games with the mod time of symlinks cannam@89: # (eg FreeBSD returns the mod time of the symlink's containing cannam@89: # directory). cannam@89: if ( cannam@89: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` cannam@89: if test "$*" = "X"; then cannam@89: # -L didn't work. cannam@89: set X `ls -t $srcdir/configure conftest.file` cannam@89: fi cannam@89: rm -f conftest.file cannam@89: if test "$*" != "X $srcdir/configure conftest.file" \ cannam@89: && test "$*" != "X conftest.file $srcdir/configure"; then cannam@89: cannam@89: # If neither matched, then we have a broken ls. This can happen cannam@89: # if, for instance, CONFIG_SHELL is bash and it inherits a cannam@89: # broken ls alias from the environment. This has actually cannam@89: # happened. Such a system could not be considered "sane". cannam@89: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken cannam@89: alias in your environment" >&5 cannam@89: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken cannam@89: alias in your environment" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: test "$2" = conftest.file cannam@89: ) cannam@89: then cannam@89: # Ok. cannam@89: : cannam@89: else cannam@89: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! cannam@89: Check your system clock" >&5 cannam@89: echo "$as_me: error: newly created file is older than distributed files! cannam@89: Check your system clock" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: yes" >&5 cannam@89: echo "${ECHO_T}yes" >&6; } cannam@89: test "$program_prefix" != NONE && cannam@89: program_transform_name="s&^&$program_prefix&;$program_transform_name" cannam@89: # Use a double $ so make ignores it. cannam@89: test "$program_suffix" != NONE && cannam@89: program_transform_name="s&\$&$program_suffix&;$program_transform_name" cannam@89: # Double any \ or $. echo might interpret backslashes. cannam@89: # By default was `s,x,x', remove it if useless. cannam@89: cat <<\_ACEOF >conftest.sed cannam@89: s/[\\$]/&&/g;s/;s,x,x,$// cannam@89: _ACEOF cannam@89: program_transform_name=`echo $program_transform_name | sed -f conftest.sed` cannam@89: rm -f conftest.sed cannam@89: cannam@89: # expand $ac_aux_dir to an absolute path cannam@89: am_aux_dir=`cd $ac_aux_dir && pwd` cannam@89: cannam@89: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" cannam@89: # Use eval to expand $SHELL cannam@89: if eval "$MISSING --run true"; then cannam@89: am_missing_run="$MISSING --run " cannam@89: else cannam@89: am_missing_run= cannam@89: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 cannam@89: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 cannam@89: echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } cannam@89: if test -z "$MKDIR_P"; then cannam@89: if test "${ac_cv_path_mkdir+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_prog in mkdir gmkdir; do cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue cannam@89: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( cannam@89: 'mkdir (GNU coreutils) '* | \ cannam@89: 'mkdir (coreutils) '* | \ cannam@89: 'mkdir (fileutils) '4.1*) cannam@89: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext cannam@89: break 3;; cannam@89: esac cannam@89: done cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: cannam@89: if test "${ac_cv_path_mkdir+set}" = set; then cannam@89: MKDIR_P="$ac_cv_path_mkdir -p" cannam@89: else cannam@89: # As a last resort, use the slow shell script. Don't cache a cannam@89: # value for MKDIR_P within a source directory, because that will cannam@89: # break other packages using the cache if that directory is cannam@89: # removed, or if the value is a relative name. cannam@89: test -d ./--version && rmdir ./--version cannam@89: MKDIR_P="$ac_install_sh -d" cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 cannam@89: echo "${ECHO_T}$MKDIR_P" >&6; } cannam@89: cannam@89: mkdir_p="$MKDIR_P" cannam@89: case $mkdir_p in cannam@89: [\\/$]* | ?:[\\/]*) ;; cannam@89: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; cannam@89: esac cannam@89: cannam@89: for ac_prog in gawk mawk nawk awk cannam@89: do cannam@89: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@89: set dummy $ac_prog; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_AWK+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$AWK"; then cannam@89: ac_cv_prog_AWK="$AWK" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_AWK="$ac_prog" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: AWK=$ac_cv_prog_AWK cannam@89: if test -n "$AWK"; then cannam@89: { echo "$as_me:$LINENO: result: $AWK" >&5 cannam@89: echo "${ECHO_T}$AWK" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: test -n "$AWK" && break cannam@89: done cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 cannam@89: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } cannam@89: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` cannam@89: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.make <<\_ACEOF cannam@89: SHELL = /bin/sh cannam@89: all: cannam@89: @echo '@@@%%%=$(MAKE)=@@@%%%' cannam@89: _ACEOF cannam@89: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. cannam@89: case `${MAKE-make} -f conftest.make 2>/dev/null` in cannam@89: *@@@%%%=?*=@@@%%%*) cannam@89: eval ac_cv_prog_make_${ac_make}_set=yes;; cannam@89: *) cannam@89: eval ac_cv_prog_make_${ac_make}_set=no;; cannam@89: esac cannam@89: rm -f conftest.make cannam@89: fi cannam@89: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then cannam@89: { echo "$as_me:$LINENO: result: yes" >&5 cannam@89: echo "${ECHO_T}yes" >&6; } cannam@89: SET_MAKE= cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: SET_MAKE="MAKE=${MAKE-make}" cannam@89: fi cannam@89: cannam@89: rm -rf .tst 2>/dev/null cannam@89: mkdir .tst 2>/dev/null cannam@89: if test -d .tst; then cannam@89: am__leading_dot=. cannam@89: else cannam@89: am__leading_dot=_ cannam@89: fi cannam@89: rmdir .tst 2>/dev/null cannam@89: cannam@89: if test "`cd $srcdir && pwd`" != "`pwd`"; then cannam@89: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output cannam@89: # is not polluted with repeated "-I." cannam@89: am__isrc=' -I$(srcdir)' cannam@89: # test to see if srcdir already configured cannam@89: if test -f $srcdir/config.status; then cannam@89: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 cannam@89: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: fi cannam@89: cannam@89: # test whether we have cygpath cannam@89: if test -z "$CYGPATH_W"; then cannam@89: if (cygpath --version) >/dev/null 2>/dev/null; then cannam@89: CYGPATH_W='cygpath -w' cannam@89: else cannam@89: CYGPATH_W=echo cannam@89: fi cannam@89: fi cannam@89: cannam@89: cannam@89: # Define the identity of the package. cannam@89: PACKAGE='liblo' cannam@89: VERSION='0.26' cannam@89: cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define PACKAGE "$PACKAGE" cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define VERSION "$VERSION" cannam@89: _ACEOF cannam@89: cannam@89: # Some tools Automake needs. cannam@89: cannam@89: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} cannam@89: cannam@89: cannam@89: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} cannam@89: cannam@89: cannam@89: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} cannam@89: cannam@89: cannam@89: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} cannam@89: cannam@89: cannam@89: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} cannam@89: cannam@89: install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} cannam@89: cannam@89: # Installed binaries are usually stripped using `strip' when the user cannam@89: # run `make install-strip'. However `strip' might not be the right cannam@89: # tool to use in cross-compilation environments, therefore Automake cannam@89: # will honor the `STRIP' environment variable to overrule this program. cannam@89: if test "$cross_compiling" != no; then cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_STRIP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$STRIP"; then cannam@89: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: STRIP=$ac_cv_prog_STRIP cannam@89: if test -n "$STRIP"; then cannam@89: { echo "$as_me:$LINENO: result: $STRIP" >&5 cannam@89: echo "${ECHO_T}$STRIP" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_STRIP"; then cannam@89: ac_ct_STRIP=$STRIP cannam@89: # Extract the first word of "strip", so it can be a program name with args. cannam@89: set dummy strip; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_STRIP"; then cannam@89: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_STRIP="strip" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@89: if test -n "$ac_ct_STRIP"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 cannam@89: echo "${ECHO_T}$ac_ct_STRIP" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_STRIP" = x; then cannam@89: STRIP=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: STRIP=$ac_ct_STRIP cannam@89: fi cannam@89: else cannam@89: STRIP="$ac_cv_prog_STRIP" cannam@89: fi cannam@89: cannam@89: fi cannam@89: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" cannam@89: cannam@89: # We need awk for the "check" target. The system "awk" is bad on cannam@89: # some platforms. cannam@89: # Always define AMTAR for backward compatibility. cannam@89: cannam@89: AMTAR=${AMTAR-"${am_missing_run}tar"} cannam@89: cannam@89: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Check whether --enable-static was given. cannam@89: if test "${enable_static+set}" = set; then cannam@89: enableval=$enable_static; p=${PACKAGE-default} cannam@89: case $enableval in cannam@89: yes) enable_static=yes ;; cannam@89: no) enable_static=no ;; cannam@89: *) cannam@89: enable_static=no cannam@89: # Look at the argument we got. We use all the common list separators. cannam@89: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@89: for pkg in $enableval; do cannam@89: IFS="$lt_save_ifs" cannam@89: if test "X$pkg" = "X$p"; then cannam@89: enable_static=yes cannam@89: fi cannam@89: done cannam@89: IFS="$lt_save_ifs" cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: enable_static=no cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Check whether --enable-shared was given. cannam@89: if test "${enable_shared+set}" = set; then cannam@89: enableval=$enable_shared; p=${PACKAGE-default} cannam@89: case $enableval in cannam@89: yes) enable_shared=yes ;; cannam@89: no) enable_shared=no ;; cannam@89: *) cannam@89: enable_shared=no cannam@89: # Look at the argument we got. We use all the common list separators. cannam@89: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@89: for pkg in $enableval; do cannam@89: IFS="$lt_save_ifs" cannam@89: if test "X$pkg" = "X$p"; then cannam@89: enable_shared=yes cannam@89: fi cannam@89: done cannam@89: IFS="$lt_save_ifs" cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: enable_shared=yes cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # disable support for ipv6. cannam@89: # Check whether --enable-ipv6 was given. cannam@89: if test "${enable_ipv6+set}" = set; then cannam@89: enableval=$enable_ipv6; want_ipv6=yes cannam@89: fi cannam@89: cannam@89: if test "$want_ipv6" = "yes"; then cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define ENABLE_IPV6 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: # Checks for programs. cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}gcc; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_CC+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$CC"; then cannam@89: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_CC="${ac_tool_prefix}gcc" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: CC=$ac_cv_prog_CC cannam@89: if test -n "$CC"; then cannam@89: { echo "$as_me:$LINENO: result: $CC" >&5 cannam@89: echo "${ECHO_T}$CC" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_CC"; then cannam@89: ac_ct_CC=$CC cannam@89: # Extract the first word of "gcc", so it can be a program name with args. cannam@89: set dummy gcc; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_CC"; then cannam@89: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_CC="gcc" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@89: if test -n "$ac_ct_CC"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 cannam@89: echo "${ECHO_T}$ac_ct_CC" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_CC" = x; then cannam@89: CC="" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: CC=$ac_ct_CC cannam@89: fi cannam@89: else cannam@89: CC="$ac_cv_prog_CC" cannam@89: fi cannam@89: cannam@89: if test -z "$CC"; then cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}cc; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_CC+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$CC"; then cannam@89: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_CC="${ac_tool_prefix}cc" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: CC=$ac_cv_prog_CC cannam@89: if test -n "$CC"; then cannam@89: { echo "$as_me:$LINENO: result: $CC" >&5 cannam@89: echo "${ECHO_T}$CC" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: fi cannam@89: if test -z "$CC"; then cannam@89: # Extract the first word of "cc", so it can be a program name with args. cannam@89: set dummy cc; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_CC+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$CC"; then cannam@89: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@89: else cannam@89: ac_prog_rejected=no cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then cannam@89: ac_prog_rejected=yes cannam@89: continue cannam@89: fi cannam@89: ac_cv_prog_CC="cc" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: if test $ac_prog_rejected = yes; then cannam@89: # We found a bogon in the path, so make sure we never use it. cannam@89: set dummy $ac_cv_prog_CC cannam@89: shift cannam@89: if test $# != 0; then cannam@89: # We chose a different compiler from the bogus one. cannam@89: # However, it has the same basename, so the bogon will be chosen cannam@89: # first if we set CC to just the basename; use the full file name. cannam@89: shift cannam@89: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: CC=$ac_cv_prog_CC cannam@89: if test -n "$CC"; then cannam@89: { echo "$as_me:$LINENO: result: $CC" >&5 cannam@89: echo "${ECHO_T}$CC" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$CC"; then cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: for ac_prog in cl.exe cannam@89: do cannam@89: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@89: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_CC+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$CC"; then cannam@89: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: CC=$ac_cv_prog_CC cannam@89: if test -n "$CC"; then cannam@89: { echo "$as_me:$LINENO: result: $CC" >&5 cannam@89: echo "${ECHO_T}$CC" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: test -n "$CC" && break cannam@89: done cannam@89: fi cannam@89: if test -z "$CC"; then cannam@89: ac_ct_CC=$CC cannam@89: for ac_prog in cl.exe cannam@89: do cannam@89: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@89: set dummy $ac_prog; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_CC"; then cannam@89: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_CC="$ac_prog" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@89: if test -n "$ac_ct_CC"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 cannam@89: echo "${ECHO_T}$ac_ct_CC" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: test -n "$ac_ct_CC" && break cannam@89: done cannam@89: cannam@89: if test "x$ac_ct_CC" = x; then cannam@89: CC="" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: CC=$ac_ct_CC cannam@89: fi cannam@89: fi cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH cannam@89: See \`config.log' for more details." >&5 cannam@89: echo "$as_me: error: no acceptable C compiler found in \$PATH cannam@89: See \`config.log' for more details." >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: cannam@89: # Provide some information about the compiler. cannam@89: echo "$as_me:$LINENO: checking for C compiler version" >&5 cannam@89: ac_compiler=`set X $ac_compile; echo $2` cannam@89: { (ac_try="$ac_compiler --version >&5" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compiler --version >&5") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } cannam@89: { (ac_try="$ac_compiler -v >&5" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compiler -v >&5") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } cannam@89: { (ac_try="$ac_compiler -V >&5" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compiler -V >&5") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } cannam@89: cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: ac_clean_files_save=$ac_clean_files cannam@89: ac_clean_files="$ac_clean_files a.out a.exe b.out" cannam@89: # Try to create an executable without -o first, disregard a.out. cannam@89: # It will help us diagnose broken compilers, and finding out an intuition cannam@89: # of exeext. cannam@89: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 cannam@89: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } cannam@89: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` cannam@89: # cannam@89: # List of possible output files, starting from the most likely. cannam@89: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) cannam@89: # only as a last resort. b.out is created by i960 compilers. cannam@89: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' cannam@89: # cannam@89: # The IRIX 6 linker writes into existing files which may not be cannam@89: # executable, retaining their permissions. Remove them first so a cannam@89: # subsequent execution test works. cannam@89: ac_rmfiles= cannam@89: for ac_file in $ac_files cannam@89: do cannam@89: case $ac_file in cannam@89: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; cannam@89: * ) ac_rmfiles="$ac_rmfiles $ac_file";; cannam@89: esac cannam@89: done cannam@89: rm -f $ac_rmfiles cannam@89: cannam@89: if { (ac_try="$ac_link_default" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link_default") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; then cannam@89: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. cannam@89: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' cannam@89: # in a Makefile. We should not override ac_cv_exeext if it was cached, cannam@89: # so that the user can short-circuit this test for compilers unknown to cannam@89: # Autoconf. cannam@89: for ac_file in $ac_files '' cannam@89: do cannam@89: test -f "$ac_file" || continue cannam@89: case $ac_file in cannam@89: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) cannam@89: ;; cannam@89: [ab].out ) cannam@89: # We found the default executable, but exeext='' is most cannam@89: # certainly right. cannam@89: break;; cannam@89: *.* ) cannam@89: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; cannam@89: then :; else cannam@89: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@89: fi cannam@89: # We set ac_cv_exeext here because the later test for it is not cannam@89: # safe: cross compilers may not add the suffix if given an `-o' cannam@89: # argument, so we may need to know it at that point already. cannam@89: # Even if this section looks crufty: it has the advantage of cannam@89: # actually working. cannam@89: break;; cannam@89: * ) cannam@89: break;; cannam@89: esac cannam@89: done cannam@89: test "$ac_cv_exeext" = no && ac_cv_exeext= cannam@89: cannam@89: else cannam@89: ac_file='' cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: result: $ac_file" >&5 cannam@89: echo "${ECHO_T}$ac_file" >&6; } cannam@89: if test -z "$ac_file"; then cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: { { echo "$as_me:$LINENO: error: C compiler cannot create executables cannam@89: See \`config.log' for more details." >&5 cannam@89: echo "$as_me: error: C compiler cannot create executables cannam@89: See \`config.log' for more details." >&2;} cannam@89: { (exit 77); exit 77; }; } cannam@89: fi cannam@89: cannam@89: ac_exeext=$ac_cv_exeext cannam@89: cannam@89: # Check that the compiler produces executables we can run. If not, either cannam@89: # the compiler is broken, or we cross compile. cannam@89: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 cannam@89: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } cannam@89: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 cannam@89: # If not cross compiling, check that we can run a simple program. cannam@89: if test "$cross_compiling" != yes; then cannam@89: if { ac_try='./$ac_file' cannam@89: { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; }; then cannam@89: cross_compiling=no cannam@89: else cannam@89: if test "$cross_compiling" = maybe; then cannam@89: cross_compiling=yes cannam@89: else cannam@89: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. cannam@89: If you meant to cross compile, use \`--host'. cannam@89: See \`config.log' for more details." >&5 cannam@89: echo "$as_me: error: cannot run C compiled programs. cannam@89: If you meant to cross compile, use \`--host'. cannam@89: See \`config.log' for more details." >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: yes" >&5 cannam@89: echo "${ECHO_T}yes" >&6; } cannam@89: cannam@89: rm -f a.out a.exe conftest$ac_cv_exeext b.out cannam@89: ac_clean_files=$ac_clean_files_save cannam@89: # Check that the compiler produces executables we can run. If not, either cannam@89: # the compiler is broken, or we cross compile. cannam@89: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 cannam@89: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } cannam@89: { echo "$as_me:$LINENO: result: $cross_compiling" >&5 cannam@89: echo "${ECHO_T}$cross_compiling" >&6; } cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for suffix of executables" >&5 cannam@89: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; then cannam@89: # If both `conftest.exe' and `conftest' are `present' (well, observable) cannam@89: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will cannam@89: # work properly (i.e., refer to `conftest.exe'), while it won't with cannam@89: # `rm'. cannam@89: for ac_file in conftest.exe conftest conftest.*; do cannam@89: test -f "$ac_file" || continue cannam@89: case $ac_file in cannam@89: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; cannam@89: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@89: break;; cannam@89: * ) break;; cannam@89: esac cannam@89: done cannam@89: else cannam@89: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link cannam@89: See \`config.log' for more details." >&5 cannam@89: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link cannam@89: See \`config.log' for more details." >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: rm -f conftest$ac_cv_exeext cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 cannam@89: echo "${ECHO_T}$ac_cv_exeext" >&6; } cannam@89: cannam@89: rm -f conftest.$ac_ext cannam@89: EXEEXT=$ac_cv_exeext cannam@89: ac_exeext=$EXEEXT cannam@89: { echo "$as_me:$LINENO: checking for suffix of object files" >&5 cannam@89: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_objext+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.o conftest.obj cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; then cannam@89: for ac_file in conftest.o conftest.obj conftest.*; do cannam@89: test -f "$ac_file" || continue; cannam@89: case $ac_file in cannam@89: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; cannam@89: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` cannam@89: break;; cannam@89: esac cannam@89: done cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile cannam@89: See \`config.log' for more details." >&5 cannam@89: echo "$as_me: error: cannot compute suffix of object files: cannot compile cannam@89: See \`config.log' for more details." >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: rm -f conftest.$ac_cv_objext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 cannam@89: echo "${ECHO_T}$ac_cv_objext" >&6; } cannam@89: OBJEXT=$ac_cv_objext cannam@89: ac_objext=$OBJEXT cannam@89: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 cannam@89: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_c_compiler_gnu+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: #ifndef __GNUC__ cannam@89: choke me cannam@89: #endif cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_compiler_gnu=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_compiler_gnu=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: ac_cv_c_compiler_gnu=$ac_compiler_gnu cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 cannam@89: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } cannam@89: GCC=`test $ac_compiler_gnu = yes && echo yes` cannam@89: ac_test_CFLAGS=${CFLAGS+set} cannam@89: ac_save_CFLAGS=$CFLAGS cannam@89: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 cannam@89: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_cc_g+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_save_c_werror_flag=$ac_c_werror_flag cannam@89: ac_c_werror_flag=yes cannam@89: ac_cv_prog_cc_g=no cannam@89: CFLAGS="-g" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_cv_prog_cc_g=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: CFLAGS="" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: : cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_c_werror_flag=$ac_save_c_werror_flag cannam@89: CFLAGS="-g" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_cv_prog_cc_g=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: ac_c_werror_flag=$ac_save_c_werror_flag cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 cannam@89: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } cannam@89: if test "$ac_test_CFLAGS" = set; then cannam@89: CFLAGS=$ac_save_CFLAGS cannam@89: elif test $ac_cv_prog_cc_g = yes; then cannam@89: if test "$GCC" = yes; then cannam@89: CFLAGS="-g -O2" cannam@89: else cannam@89: CFLAGS="-g" cannam@89: fi cannam@89: else cannam@89: if test "$GCC" = yes; then cannam@89: CFLAGS="-O2" cannam@89: else cannam@89: CFLAGS= cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 cannam@89: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_cc_c89+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_cv_prog_cc_c89=no cannam@89: ac_save_CC=$CC cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: #include cannam@89: #include cannam@89: #include cannam@89: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ cannam@89: struct buf { int x; }; cannam@89: FILE * (*rcsopen) (struct buf *, struct stat *, int); cannam@89: static char *e (p, i) cannam@89: char **p; cannam@89: int i; cannam@89: { cannam@89: return p[i]; cannam@89: } cannam@89: static char *f (char * (*g) (char **, int), char **p, ...) cannam@89: { cannam@89: char *s; cannam@89: va_list v; cannam@89: va_start (v,p); cannam@89: s = g (p, va_arg (v,int)); cannam@89: va_end (v); cannam@89: return s; cannam@89: } cannam@89: cannam@89: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has cannam@89: function prototypes and stuff, but not '\xHH' hex character constants. cannam@89: These don't provoke an error unfortunately, instead are silently treated cannam@89: as 'x'. The following induces an error, until -std is added to get cannam@89: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an cannam@89: array size at least. It's necessary to write '\x00'==0 to get something cannam@89: that's true only with -std. */ cannam@89: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; cannam@89: cannam@89: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters cannam@89: inside strings and character constants. */ cannam@89: #define FOO(x) 'x' cannam@89: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; cannam@89: cannam@89: int test (int i, double x); cannam@89: struct s1 {int (*f) (int a);}; cannam@89: struct s2 {int (*f) (double a);}; cannam@89: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); cannam@89: int argc; cannam@89: char **argv; cannam@89: int cannam@89: main () cannam@89: { cannam@89: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ cannam@89: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" cannam@89: do cannam@89: CC="$ac_save_CC $ac_arg" cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_cv_prog_cc_c89=$ac_arg cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext cannam@89: test "x$ac_cv_prog_cc_c89" != "xno" && break cannam@89: done cannam@89: rm -f conftest.$ac_ext cannam@89: CC=$ac_save_CC cannam@89: cannam@89: fi cannam@89: # AC_CACHE_VAL cannam@89: case "x$ac_cv_prog_cc_c89" in cannam@89: x) cannam@89: { echo "$as_me:$LINENO: result: none needed" >&5 cannam@89: echo "${ECHO_T}none needed" >&6; } ;; cannam@89: xno) cannam@89: { echo "$as_me:$LINENO: result: unsupported" >&5 cannam@89: echo "${ECHO_T}unsupported" >&6; } ;; cannam@89: *) cannam@89: CC="$CC $ac_cv_prog_cc_c89" cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 cannam@89: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; cannam@89: esac cannam@89: cannam@89: cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: DEPDIR="${am__leading_dot}deps" cannam@89: cannam@89: ac_config_commands="$ac_config_commands depfiles" cannam@89: cannam@89: cannam@89: am_make=${MAKE-make} cannam@89: cat > confinc << 'END' cannam@89: am__doit: cannam@89: @echo done cannam@89: .PHONY: am__doit cannam@89: END cannam@89: # If we don't find an include directive, just comment out the code. cannam@89: { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 cannam@89: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } cannam@89: am__include="#" cannam@89: am__quote= cannam@89: _am_result=none cannam@89: # First try GNU make style include. cannam@89: echo "include confinc" > confmf cannam@89: # We grep out `Entering directory' and `Leaving directory' cannam@89: # messages which can occur if `w' ends up in MAKEFLAGS. cannam@89: # In particular we don't look at `^make:' because GNU make might cannam@89: # be invoked under some other name (usually "gmake"), in which cannam@89: # case it prints its new name instead of `make'. cannam@89: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then cannam@89: am__include=include cannam@89: am__quote= cannam@89: _am_result=GNU cannam@89: fi cannam@89: # Now try BSD make style include. cannam@89: if test "$am__include" = "#"; then cannam@89: echo '.include "confinc"' > confmf cannam@89: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then cannam@89: am__include=.include cannam@89: am__quote="\"" cannam@89: _am_result=BSD cannam@89: fi cannam@89: fi cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: result: $_am_result" >&5 cannam@89: echo "${ECHO_T}$_am_result" >&6; } cannam@89: rm -f confinc confmf cannam@89: cannam@89: # Check whether --enable-dependency-tracking was given. cannam@89: if test "${enable_dependency_tracking+set}" = set; then cannam@89: enableval=$enable_dependency_tracking; cannam@89: fi cannam@89: cannam@89: if test "x$enable_dependency_tracking" != xno; then cannam@89: am_depcomp="$ac_aux_dir/depcomp" cannam@89: AMDEPBACKSLASH='\' cannam@89: fi cannam@89: if test "x$enable_dependency_tracking" != xno; then cannam@89: AMDEP_TRUE= cannam@89: AMDEP_FALSE='#' cannam@89: else cannam@89: AMDEP_TRUE='#' cannam@89: AMDEP_FALSE= cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: depcc="$CC" am_compiler_list= cannam@89: cannam@89: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 cannam@89: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } cannam@89: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@89: # We make a subdir and do the tests there. Otherwise we can end up cannam@89: # making bogus files that we don't know about and never remove. For cannam@89: # instance it was reported that on HP-UX the gcc test will end up cannam@89: # making a dummy file named `D' -- because `-MD' means `put the output cannam@89: # in D'. cannam@89: mkdir conftest.dir cannam@89: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@89: # using a relative directory. cannam@89: cp "$am_depcomp" conftest.dir cannam@89: cd conftest.dir cannam@89: # We will build objects and dependencies in a subdirectory because cannam@89: # it helps to detect inapplicable dependency modes. For instance cannam@89: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@89: # side effect of compilation, but ICC will put the dependencies in cannam@89: # the current directory while Tru64 will put them in the object cannam@89: # directory. cannam@89: mkdir sub cannam@89: cannam@89: am_cv_CC_dependencies_compiler_type=none cannam@89: if test "$am_compiler_list" = ""; then cannam@89: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@89: fi cannam@89: for depmode in $am_compiler_list; do cannam@89: # Setup a source with many dependencies, because some compilers cannam@89: # like to wrap large dependency lists on column 80 (with \), and cannam@89: # we should not choose a depcomp mode which is confused by this. cannam@89: # cannam@89: # We need to recreate these files for each test, as the compiler may cannam@89: # overwrite some of them when testing with obscure command lines. cannam@89: # This happens at least with the AIX C compiler. cannam@89: : > sub/conftest.c cannam@89: for i in 1 2 3 4 5 6; do cannam@89: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@89: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with cannam@89: # Solaris 8's {/usr,}/bin/sh. cannam@89: touch sub/conftst$i.h cannam@89: done cannam@89: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@89: cannam@89: case $depmode in cannam@89: nosideeffect) cannam@89: # after this tag, mechanisms are not by side-effect, so they'll cannam@89: # only be used when explicitly requested cannam@89: if test "x$enable_dependency_tracking" = xyes; then cannam@89: continue cannam@89: else cannam@89: break cannam@89: fi cannam@89: ;; cannam@89: none) break ;; cannam@89: esac cannam@89: # We check with `-c' and `-o' for the sake of the "dashmstdout" cannam@89: # mode. It turns out that the SunPro C++ compiler does not properly cannam@89: # handle `-M -o', and we need to detect this. cannam@89: if depmode=$depmode \ cannam@89: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ cannam@89: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@89: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ cannam@89: >/dev/null 2>conftest.err && cannam@89: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && cannam@89: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@89: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && cannam@89: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@89: # icc doesn't choke on unknown options, it will just issue warnings cannam@89: # or remarks (even with -Werror). So we grep stderr for any message cannam@89: # that says an option was ignored or not supported. cannam@89: # When given -MP, icc 7.0 and 7.1 complain thusly: cannam@89: # icc: Command line warning: ignoring option '-M'; no argument required cannam@89: # The diagnosis changed in icc 8.0: cannam@89: # icc: Command line remark: option '-MP' not supported cannam@89: if (grep 'ignoring option' conftest.err || cannam@89: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else cannam@89: am_cv_CC_dependencies_compiler_type=$depmode cannam@89: break cannam@89: fi cannam@89: fi cannam@89: done cannam@89: cannam@89: cd .. cannam@89: rm -rf conftest.dir cannam@89: else cannam@89: am_cv_CC_dependencies_compiler_type=none cannam@89: fi cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 cannam@89: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } cannam@89: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type cannam@89: cannam@89: if cannam@89: test "x$enable_dependency_tracking" != xno \ cannam@89: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then cannam@89: am__fastdepCC_TRUE= cannam@89: am__fastdepCC_FALSE='#' cannam@89: else cannam@89: am__fastdepCC_TRUE='#' cannam@89: am__fastdepCC_FALSE= cannam@89: fi cannam@89: cannam@89: cannam@89: case `pwd` in cannam@89: *\ * | *\ *) cannam@89: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 cannam@89: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; cannam@89: esac cannam@89: cannam@89: cannam@89: cannam@89: macro_version='2.2.4' cannam@89: macro_revision='1.2976' cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: ltmain="$ac_aux_dir/ltmain.sh" cannam@89: cannam@89: # Make sure we can run config.sub. cannam@89: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || cannam@89: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 cannam@89: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: cannam@89: { echo "$as_me:$LINENO: checking build system type" >&5 cannam@89: echo $ECHO_N "checking build system type... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_build+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_build_alias=$build_alias cannam@89: test "x$ac_build_alias" = x && cannam@89: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` cannam@89: test "x$ac_build_alias" = x && cannam@89: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 cannam@89: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || cannam@89: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 cannam@89: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 cannam@89: echo "${ECHO_T}$ac_cv_build" >&6; } cannam@89: case $ac_cv_build in cannam@89: *-*-*) ;; cannam@89: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 cannam@89: echo "$as_me: error: invalid value of canonical build" >&2;} cannam@89: { (exit 1); exit 1; }; };; cannam@89: esac cannam@89: build=$ac_cv_build cannam@89: ac_save_IFS=$IFS; IFS='-' cannam@89: set x $ac_cv_build cannam@89: shift cannam@89: build_cpu=$1 cannam@89: build_vendor=$2 cannam@89: shift; shift cannam@89: # Remember, the first character of IFS is used to create $*, cannam@89: # except with old shells: cannam@89: build_os=$* cannam@89: IFS=$ac_save_IFS cannam@89: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking host system type" >&5 cannam@89: echo $ECHO_N "checking host system type... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_host+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test "x$host_alias" = x; then cannam@89: ac_cv_host=$ac_cv_build cannam@89: else cannam@89: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || cannam@89: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 cannam@89: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 cannam@89: echo "${ECHO_T}$ac_cv_host" >&6; } cannam@89: case $ac_cv_host in cannam@89: *-*-*) ;; cannam@89: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 cannam@89: echo "$as_me: error: invalid value of canonical host" >&2;} cannam@89: { (exit 1); exit 1; }; };; cannam@89: esac cannam@89: host=$ac_cv_host cannam@89: ac_save_IFS=$IFS; IFS='-' cannam@89: set x $ac_cv_host cannam@89: shift cannam@89: host_cpu=$1 cannam@89: host_vendor=$2 cannam@89: shift; shift cannam@89: # Remember, the first character of IFS is used to create $*, cannam@89: # except with old shells: cannam@89: host_os=$* cannam@89: IFS=$ac_save_IFS cannam@89: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 cannam@89: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_path_SED+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ cannam@89: for ac_i in 1 2 3 4 5 6 7; do cannam@89: ac_script="$ac_script$as_nl$ac_script" cannam@89: done cannam@89: echo "$ac_script" | sed 99q >conftest.sed cannam@89: $as_unset ac_script || ac_script= cannam@89: # Extract the first word of "sed gsed" to use in msg output cannam@89: if test -z "$SED"; then cannam@89: set dummy sed gsed; ac_prog_name=$2 cannam@89: if test "${ac_cv_path_SED+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_path_SED_found=false cannam@89: # Loop through the user's path and test for each of PROGNAME-LIST cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_prog in sed gsed; do cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" cannam@89: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue cannam@89: # Check for GNU ac_path_SED and select it if it is found. cannam@89: # Check for GNU $ac_path_SED cannam@89: case `"$ac_path_SED" --version 2>&1` in cannam@89: *GNU*) cannam@89: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; cannam@89: *) cannam@89: ac_count=0 cannam@89: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" cannam@89: while : cannam@89: do cannam@89: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@89: mv "conftest.tmp" "conftest.in" cannam@89: cp "conftest.in" "conftest.nl" cannam@89: echo '' >> "conftest.nl" cannam@89: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@89: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@89: ac_count=`expr $ac_count + 1` cannam@89: if test $ac_count -gt ${ac_path_SED_max-0}; then cannam@89: # Best one so far, save it but keep looking for a better one cannam@89: ac_cv_path_SED="$ac_path_SED" cannam@89: ac_path_SED_max=$ac_count cannam@89: fi cannam@89: # 10*(2^10) chars as input seems more than enough cannam@89: test $ac_count -gt 10 && break cannam@89: done cannam@89: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@89: esac cannam@89: cannam@89: cannam@89: $ac_path_SED_found && break 3 cannam@89: done cannam@89: done cannam@89: cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: SED="$ac_cv_path_SED" cannam@89: if test -z "$SED"; then cannam@89: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 cannam@89: echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: else cannam@89: ac_cv_path_SED=$SED cannam@89: fi cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 cannam@89: echo "${ECHO_T}$ac_cv_path_SED" >&6; } cannam@89: SED="$ac_cv_path_SED" cannam@89: rm -f conftest.sed cannam@89: cannam@89: test -z "$SED" && SED=sed cannam@89: Xsed="$SED -e 1s/^X//" cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 cannam@89: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_path_GREP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: # Extract the first word of "grep ggrep" to use in msg output cannam@89: if test -z "$GREP"; then cannam@89: set dummy grep ggrep; ac_prog_name=$2 cannam@89: if test "${ac_cv_path_GREP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_path_GREP_found=false cannam@89: # Loop through the user's path and test for each of PROGNAME-LIST cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_prog in grep ggrep; do cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" cannam@89: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue cannam@89: # Check for GNU ac_path_GREP and select it if it is found. cannam@89: # Check for GNU $ac_path_GREP cannam@89: case `"$ac_path_GREP" --version 2>&1` in cannam@89: *GNU*) cannam@89: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; cannam@89: *) cannam@89: ac_count=0 cannam@89: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" cannam@89: while : cannam@89: do cannam@89: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@89: mv "conftest.tmp" "conftest.in" cannam@89: cp "conftest.in" "conftest.nl" cannam@89: echo 'GREP' >> "conftest.nl" cannam@89: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@89: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@89: ac_count=`expr $ac_count + 1` cannam@89: if test $ac_count -gt ${ac_path_GREP_max-0}; then cannam@89: # Best one so far, save it but keep looking for a better one cannam@89: ac_cv_path_GREP="$ac_path_GREP" cannam@89: ac_path_GREP_max=$ac_count cannam@89: fi cannam@89: # 10*(2^10) chars as input seems more than enough cannam@89: test $ac_count -gt 10 && break cannam@89: done cannam@89: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@89: esac cannam@89: cannam@89: cannam@89: $ac_path_GREP_found && break 3 cannam@89: done cannam@89: done cannam@89: cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: GREP="$ac_cv_path_GREP" cannam@89: if test -z "$GREP"; then cannam@89: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 cannam@89: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: else cannam@89: ac_cv_path_GREP=$GREP cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 cannam@89: echo "${ECHO_T}$ac_cv_path_GREP" >&6; } cannam@89: GREP="$ac_cv_path_GREP" cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for egrep" >&5 cannam@89: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_path_EGREP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 cannam@89: then ac_cv_path_EGREP="$GREP -E" cannam@89: else cannam@89: # Extract the first word of "egrep" to use in msg output cannam@89: if test -z "$EGREP"; then cannam@89: set dummy egrep; ac_prog_name=$2 cannam@89: if test "${ac_cv_path_EGREP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_path_EGREP_found=false cannam@89: # Loop through the user's path and test for each of PROGNAME-LIST cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_prog in egrep; do cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" cannam@89: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue cannam@89: # Check for GNU ac_path_EGREP and select it if it is found. cannam@89: # Check for GNU $ac_path_EGREP cannam@89: case `"$ac_path_EGREP" --version 2>&1` in cannam@89: *GNU*) cannam@89: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; cannam@89: *) cannam@89: ac_count=0 cannam@89: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" cannam@89: while : cannam@89: do cannam@89: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@89: mv "conftest.tmp" "conftest.in" cannam@89: cp "conftest.in" "conftest.nl" cannam@89: echo 'EGREP' >> "conftest.nl" cannam@89: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@89: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@89: ac_count=`expr $ac_count + 1` cannam@89: if test $ac_count -gt ${ac_path_EGREP_max-0}; then cannam@89: # Best one so far, save it but keep looking for a better one cannam@89: ac_cv_path_EGREP="$ac_path_EGREP" cannam@89: ac_path_EGREP_max=$ac_count cannam@89: fi cannam@89: # 10*(2^10) chars as input seems more than enough cannam@89: test $ac_count -gt 10 && break cannam@89: done cannam@89: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@89: esac cannam@89: cannam@89: cannam@89: $ac_path_EGREP_found && break 3 cannam@89: done cannam@89: done cannam@89: cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: EGREP="$ac_cv_path_EGREP" cannam@89: if test -z "$EGREP"; then cannam@89: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 cannam@89: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: else cannam@89: ac_cv_path_EGREP=$EGREP cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 cannam@89: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } cannam@89: EGREP="$ac_cv_path_EGREP" cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for fgrep" >&5 cannam@89: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_path_FGREP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 cannam@89: then ac_cv_path_FGREP="$GREP -F" cannam@89: else cannam@89: # Extract the first word of "fgrep" to use in msg output cannam@89: if test -z "$FGREP"; then cannam@89: set dummy fgrep; ac_prog_name=$2 cannam@89: if test "${ac_cv_path_FGREP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_path_FGREP_found=false cannam@89: # Loop through the user's path and test for each of PROGNAME-LIST cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_prog in fgrep; do cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" cannam@89: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue cannam@89: # Check for GNU ac_path_FGREP and select it if it is found. cannam@89: # Check for GNU $ac_path_FGREP cannam@89: case `"$ac_path_FGREP" --version 2>&1` in cannam@89: *GNU*) cannam@89: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; cannam@89: *) cannam@89: ac_count=0 cannam@89: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" cannam@89: while : cannam@89: do cannam@89: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@89: mv "conftest.tmp" "conftest.in" cannam@89: cp "conftest.in" "conftest.nl" cannam@89: echo 'FGREP' >> "conftest.nl" cannam@89: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@89: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@89: ac_count=`expr $ac_count + 1` cannam@89: if test $ac_count -gt ${ac_path_FGREP_max-0}; then cannam@89: # Best one so far, save it but keep looking for a better one cannam@89: ac_cv_path_FGREP="$ac_path_FGREP" cannam@89: ac_path_FGREP_max=$ac_count cannam@89: fi cannam@89: # 10*(2^10) chars as input seems more than enough cannam@89: test $ac_count -gt 10 && break cannam@89: done cannam@89: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@89: esac cannam@89: cannam@89: cannam@89: $ac_path_FGREP_found && break 3 cannam@89: done cannam@89: done cannam@89: cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: FGREP="$ac_cv_path_FGREP" cannam@89: if test -z "$FGREP"; then cannam@89: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 cannam@89: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: else cannam@89: ac_cv_path_FGREP=$FGREP cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 cannam@89: echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } cannam@89: FGREP="$ac_cv_path_FGREP" cannam@89: cannam@89: cannam@89: test -z "$GREP" && GREP=grep cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Check whether --with-gnu-ld was given. cannam@89: if test "${with_gnu_ld+set}" = set; then cannam@89: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes cannam@89: else cannam@89: with_gnu_ld=no cannam@89: fi cannam@89: cannam@89: ac_prog=ld cannam@89: if test "$GCC" = yes; then cannam@89: # Check if gcc -print-prog-name=ld gives a path. cannam@89: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 cannam@89: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } cannam@89: case $host in cannam@89: *-*-mingw*) cannam@89: # gcc leaves a trailing carriage return which upsets mingw cannam@89: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@89: *) cannam@89: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@89: esac cannam@89: case $ac_prog in cannam@89: # Accept absolute paths. cannam@89: [\\/]* | ?:[\\/]*) cannam@89: re_direlt='/[^/][^/]*/\.\./' cannam@89: # Canonicalize the pathname of ld cannam@89: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` cannam@89: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do cannam@89: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` cannam@89: done cannam@89: test -z "$LD" && LD="$ac_prog" cannam@89: ;; cannam@89: "") cannam@89: # If it fails, then pretend we aren't using GCC. cannam@89: ac_prog=ld cannam@89: ;; cannam@89: *) cannam@89: # If it is relative, then search for the first ld in PATH. cannam@89: with_gnu_ld=unknown cannam@89: ;; cannam@89: esac cannam@89: elif test "$with_gnu_ld" = yes; then cannam@89: { echo "$as_me:$LINENO: checking for GNU ld" >&5 cannam@89: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 cannam@89: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } cannam@89: fi cannam@89: if test "${lt_cv_path_LD+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -z "$LD"; then cannam@89: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@89: for ac_dir in $PATH; do cannam@89: IFS="$lt_save_ifs" cannam@89: test -z "$ac_dir" && ac_dir=. cannam@89: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@89: lt_cv_path_LD="$ac_dir/$ac_prog" cannam@89: # Check to see if the program is GNU ld. I'd rather use --version, cannam@89: # but apparently some variants of GNU ld only accept -v. cannam@89: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@89: case `"$lt_cv_path_LD" -v 2>&1 &5 cannam@89: echo "${ECHO_T}$LD" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 cannam@89: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 cannam@89: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_prog_gnu_ld+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: # I'd rather use --version here, but apparently some GNU lds only accept -v. cannam@89: case `$LD -v 2>&1 &5 cannam@89: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } cannam@89: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 cannam@89: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_path_NM+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$NM"; then cannam@89: # Let the user override the test. cannam@89: lt_cv_path_NM="$NM" cannam@89: else cannam@89: lt_nm_to_check="${ac_tool_prefix}nm" cannam@89: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then cannam@89: lt_nm_to_check="$lt_nm_to_check nm" cannam@89: fi cannam@89: for lt_tmp_nm in $lt_nm_to_check; do cannam@89: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@89: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do cannam@89: IFS="$lt_save_ifs" cannam@89: test -z "$ac_dir" && ac_dir=. cannam@89: tmp_nm="$ac_dir/$lt_tmp_nm" cannam@89: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then cannam@89: # Check to see if the nm accepts a BSD-compat flag. cannam@89: # Adding the `sed 1q' prevents false positives on HP-UX, which says: cannam@89: # nm: unknown option "B" ignored cannam@89: # Tru64's nm complains that /dev/null is an invalid object file cannam@89: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in cannam@89: */dev/null* | *'Invalid file or object type'*) cannam@89: lt_cv_path_NM="$tmp_nm -B" cannam@89: break cannam@89: ;; cannam@89: *) cannam@89: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in cannam@89: */dev/null*) cannam@89: lt_cv_path_NM="$tmp_nm -p" cannam@89: break cannam@89: ;; cannam@89: *) cannam@89: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but cannam@89: continue # so that we can try to find one that supports BSD flags cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: done cannam@89: IFS="$lt_save_ifs" cannam@89: done cannam@89: : ${lt_cv_path_NM=no} cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 cannam@89: echo "${ECHO_T}$lt_cv_path_NM" >&6; } cannam@89: if test "$lt_cv_path_NM" != "no"; then cannam@89: NM="$lt_cv_path_NM" cannam@89: else cannam@89: # Didn't find any BSD compatible name lister, look for dumpbin. cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: for ac_prog in "dumpbin -symbols" "link -dump -symbols" cannam@89: do cannam@89: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@89: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_DUMPBIN+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$DUMPBIN"; then cannam@89: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: DUMPBIN=$ac_cv_prog_DUMPBIN cannam@89: if test -n "$DUMPBIN"; then cannam@89: { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 cannam@89: echo "${ECHO_T}$DUMPBIN" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: test -n "$DUMPBIN" && break cannam@89: done cannam@89: fi cannam@89: if test -z "$DUMPBIN"; then cannam@89: ac_ct_DUMPBIN=$DUMPBIN cannam@89: for ac_prog in "dumpbin -symbols" "link -dump -symbols" cannam@89: do cannam@89: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@89: set dummy $ac_prog; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_DUMPBIN"; then cannam@89: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN cannam@89: if test -n "$ac_ct_DUMPBIN"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 cannam@89: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: test -n "$ac_ct_DUMPBIN" && break cannam@89: done cannam@89: cannam@89: if test "x$ac_ct_DUMPBIN" = x; then cannam@89: DUMPBIN=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: DUMPBIN=$ac_ct_DUMPBIN cannam@89: fi cannam@89: fi cannam@89: cannam@89: cannam@89: if test "$DUMPBIN" != ":"; then cannam@89: NM="$DUMPBIN" cannam@89: fi cannam@89: fi cannam@89: test -z "$NM" && NM=nm cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 cannam@89: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_nm_interface+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_nm_interface="BSD nm" cannam@89: echo "int some_variable = 0;" > conftest.$ac_ext cannam@89: (eval echo "\"\$as_me:4353: $ac_compile\"" >&5) cannam@89: (eval "$ac_compile" 2>conftest.err) cannam@89: cat conftest.err >&5 cannam@89: (eval echo "\"\$as_me:4356: $NM \\\"conftest.$ac_objext\\\"\"" >&5) cannam@89: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cannam@89: cat conftest.err >&5 cannam@89: (eval echo "\"\$as_me:4359: output\"" >&5) cannam@89: cat conftest.out >&5 cannam@89: if $GREP 'External.*some_variable' conftest.out > /dev/null; then cannam@89: lt_cv_nm_interface="MS dumpbin" cannam@89: fi cannam@89: rm -f conftest* cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 cannam@89: echo "${ECHO_T}$lt_cv_nm_interface" >&6; } cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether ln -s works" >&5 cannam@89: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } cannam@89: LN_S=$as_ln_s cannam@89: if test "$LN_S" = "ln -s"; then cannam@89: { echo "$as_me:$LINENO: result: yes" >&5 cannam@89: echo "${ECHO_T}yes" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 cannam@89: echo "${ECHO_T}no, using $LN_S" >&6; } cannam@89: fi cannam@89: cannam@89: # find the maximum length of command line arguments cannam@89: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 cannam@89: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_sys_max_cmd_len+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: i=0 cannam@89: teststring="ABCD" cannam@89: cannam@89: case $build_os in cannam@89: msdosdjgpp*) cannam@89: # On DJGPP, this test can blow up pretty badly due to problems in libc cannam@89: # (any single argument exceeding 2000 bytes causes a buffer overrun cannam@89: # during glob expansion). Even if it were fixed, the result of this cannam@89: # check would be larger than it should be. cannam@89: lt_cv_sys_max_cmd_len=12288; # 12K is about right cannam@89: ;; cannam@89: cannam@89: gnu*) cannam@89: # Under GNU Hurd, this test is not required because there is cannam@89: # no limit to the length of command line arguments. cannam@89: # Libtool will interpret -1 as no limit whatsoever cannam@89: lt_cv_sys_max_cmd_len=-1; cannam@89: ;; cannam@89: cannam@89: cygwin* | mingw*) cannam@89: # On Win9x/ME, this test blows up -- it succeeds, but takes cannam@89: # about 5 minutes as the teststring grows exponentially. cannam@89: # Worse, since 9x/ME are not pre-emptively multitasking, cannam@89: # you end up with a "frozen" computer, even though with patience cannam@89: # the test eventually succeeds (with a max line length of 256k). cannam@89: # Instead, let's just punt: use the minimum linelength reported by cannam@89: # all of the supported platforms: 8192 (on NT/2K/XP). cannam@89: lt_cv_sys_max_cmd_len=8192; cannam@89: ;; cannam@89: cannam@89: amigaos*) cannam@89: # On AmigaOS with pdksh, this test takes hours, literally. cannam@89: # So we just punt and use a minimum line length of 8192. cannam@89: lt_cv_sys_max_cmd_len=8192; cannam@89: ;; cannam@89: cannam@89: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) cannam@89: # This has been around since 386BSD, at least. Likely further. cannam@89: if test -x /sbin/sysctl; then cannam@89: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` cannam@89: elif test -x /usr/sbin/sysctl; then cannam@89: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` cannam@89: else cannam@89: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs cannam@89: fi cannam@89: # And add a safety zone cannam@89: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` cannam@89: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` cannam@89: ;; cannam@89: cannam@89: interix*) cannam@89: # We know the value 262144 and hardcode it with a safety zone (like BSD) cannam@89: lt_cv_sys_max_cmd_len=196608 cannam@89: ;; cannam@89: cannam@89: osf*) cannam@89: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure cannam@89: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not cannam@89: # nice to cause kernel panics so lets avoid the loop below. cannam@89: # First set a reasonable default. cannam@89: lt_cv_sys_max_cmd_len=16384 cannam@89: # cannam@89: if test -x /sbin/sysconfig; then cannam@89: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in cannam@89: *1*) lt_cv_sys_max_cmd_len=-1 ;; cannam@89: esac cannam@89: fi cannam@89: ;; cannam@89: sco3.2v5*) cannam@89: lt_cv_sys_max_cmd_len=102400 cannam@89: ;; cannam@89: sysv5* | sco5v6* | sysv4.2uw2*) cannam@89: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` cannam@89: if test -n "$kargmax"; then cannam@89: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` cannam@89: else cannam@89: lt_cv_sys_max_cmd_len=32768 cannam@89: fi cannam@89: ;; cannam@89: *) cannam@89: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` cannam@89: if test -n "$lt_cv_sys_max_cmd_len"; then cannam@89: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` cannam@89: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` cannam@89: else cannam@89: # Make teststring a little bigger before we do anything with it. cannam@89: # a 1K string should be a reasonable start. cannam@89: for i in 1 2 3 4 5 6 7 8 ; do cannam@89: teststring=$teststring$teststring cannam@89: done cannam@89: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} cannam@89: # If test is not a shell built-in, we'll probably end up computing a cannam@89: # maximum length that is only half of the actual maximum length, but cannam@89: # we can't tell. cannam@89: while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ cannam@89: = "XX$teststring$teststring"; } >/dev/null 2>&1 && cannam@89: test $i != 17 # 1/2 MB should be enough cannam@89: do cannam@89: i=`expr $i + 1` cannam@89: teststring=$teststring$teststring cannam@89: done cannam@89: # Only check the string length outside the loop. cannam@89: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` cannam@89: teststring= cannam@89: # Add a significant safety factor because C++ compilers can tack on cannam@89: # massive amounts of additional arguments before passing them to the cannam@89: # linker. It appears as though 1/2 is a usable value. cannam@89: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: cannam@89: fi cannam@89: cannam@89: if test -n $lt_cv_sys_max_cmd_len ; then cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 cannam@89: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: none" >&5 cannam@89: echo "${ECHO_T}none" >&6; } cannam@89: fi cannam@89: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: : ${CP="cp -f"} cannam@89: : ${MV="mv -f"} cannam@89: : ${RM="rm -f"} cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 cannam@89: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } cannam@89: # Try some XSI features cannam@89: xsi_shell=no cannam@89: ( _lt_dummy="a/b/c" cannam@89: test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ cannam@89: = c,a/b,, \ cannam@89: && eval 'test $(( 1 + 1 )) -eq 2 \ cannam@89: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ cannam@89: && xsi_shell=yes cannam@89: { echo "$as_me:$LINENO: result: $xsi_shell" >&5 cannam@89: echo "${ECHO_T}$xsi_shell" >&6; } cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 cannam@89: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } cannam@89: lt_shell_append=no cannam@89: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ cannam@89: >/dev/null 2>&1 \ cannam@89: && lt_shell_append=yes cannam@89: { echo "$as_me:$LINENO: result: $lt_shell_append" >&5 cannam@89: echo "${ECHO_T}$lt_shell_append" >&6; } cannam@89: cannam@89: cannam@89: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@89: lt_unset=unset cannam@89: else cannam@89: lt_unset=false cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # test EBCDIC or ASCII cannam@89: case `echo X|tr X '\101'` in cannam@89: A) # ASCII based system cannam@89: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr cannam@89: lt_SP2NL='tr \040 \012' cannam@89: lt_NL2SP='tr \015\012 \040\040' cannam@89: ;; cannam@89: *) # EBCDIC based system cannam@89: lt_SP2NL='tr \100 \n' cannam@89: lt_NL2SP='tr \r\n \100\100' cannam@89: ;; cannam@89: esac cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 cannam@89: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_ld_reload_flag+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_ld_reload_flag='-r' cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 cannam@89: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } cannam@89: reload_flag=$lt_cv_ld_reload_flag cannam@89: case $reload_flag in cannam@89: "" | " "*) ;; cannam@89: *) reload_flag=" $reload_flag" ;; cannam@89: esac cannam@89: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@89: case $host_os in cannam@89: darwin*) cannam@89: if test "$GCC" = yes; then cannam@89: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' cannam@89: else cannam@89: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 cannam@89: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_deplibs_check_method+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_file_magic_cmd='$MAGIC_CMD' cannam@89: lt_cv_file_magic_test_file= cannam@89: lt_cv_deplibs_check_method='unknown' cannam@89: # Need to set the preceding variable on all platforms that support cannam@89: # interlibrary dependencies. cannam@89: # 'none' -- dependencies not supported. cannam@89: # `unknown' -- same as none, but documents that we really don't know. cannam@89: # 'pass_all' -- all dependencies passed with no checks. cannam@89: # 'test_compile' -- check by making test program. cannam@89: # 'file_magic [[regex]]' -- check by looking for files in library path cannam@89: # which responds to the $file_magic_cmd with a given extended regex. cannam@89: # If you have `file' or equivalent on your system and you're not sure cannam@89: # whether `pass_all' will *always* work, you probably want this one. cannam@89: cannam@89: case $host_os in cannam@89: aix[4-9]*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: beos*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: bsdi[45]*) cannam@89: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' cannam@89: lt_cv_file_magic_cmd='/usr/bin/file -L' cannam@89: lt_cv_file_magic_test_file=/shlib/libc.so cannam@89: ;; cannam@89: cannam@89: cygwin*) cannam@89: # func_win32_libid is a shell function defined in ltmain.sh cannam@89: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' cannam@89: lt_cv_file_magic_cmd='func_win32_libid' cannam@89: ;; cannam@89: cannam@89: mingw* | pw32*) cannam@89: # Base MSYS/MinGW do not provide the 'file' command needed by cannam@89: # func_win32_libid shell function, so use a weaker test based on 'objdump', cannam@89: # unless we find 'file', for example because we are cross-compiling. cannam@89: if ( file / ) >/dev/null 2>&1; then cannam@89: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' cannam@89: lt_cv_file_magic_cmd='func_win32_libid' cannam@89: else cannam@89: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' cannam@89: lt_cv_file_magic_cmd='$OBJDUMP -f' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: darwin* | rhapsody*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: freebsd* | dragonfly*) cannam@89: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then cannam@89: case $host_cpu in cannam@89: i*86 ) cannam@89: # Not sure whether the presence of OpenBSD here was a mistake. cannam@89: # Let's accept both of them until this is cleared up. cannam@89: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' cannam@89: lt_cv_file_magic_cmd=/usr/bin/file cannam@89: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: fi cannam@89: ;; cannam@89: cannam@89: gnu*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: hpux10.20* | hpux11*) cannam@89: lt_cv_file_magic_cmd=/usr/bin/file cannam@89: case $host_cpu in cannam@89: ia64*) cannam@89: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' cannam@89: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so cannam@89: ;; cannam@89: hppa*64*) cannam@89: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' cannam@89: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl cannam@89: ;; cannam@89: *) cannam@89: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' cannam@89: lt_cv_file_magic_test_file=/usr/lib/libc.sl cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: interix[3-9]*) cannam@89: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here cannam@89: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' cannam@89: ;; cannam@89: cannam@89: irix5* | irix6* | nonstopux*) cannam@89: case $LD in cannam@89: *-32|*"-32 ") libmagic=32-bit;; cannam@89: *-n32|*"-n32 ") libmagic=N32;; cannam@89: *-64|*"-64 ") libmagic=64-bit;; cannam@89: *) libmagic=never-match;; cannam@89: esac cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: # This must be Linux ELF. cannam@89: linux* | k*bsd*-gnu) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: netbsd* | netbsdelf*-gnu) cannam@89: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then cannam@89: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@89: else cannam@89: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: newos6*) cannam@89: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' cannam@89: lt_cv_file_magic_cmd=/usr/bin/file cannam@89: lt_cv_file_magic_test_file=/usr/lib/libnls.so cannam@89: ;; cannam@89: cannam@89: *nto* | *qnx*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: openbsd*) cannam@89: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@89: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' cannam@89: else cannam@89: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: osf3* | osf4* | osf5*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: rdos*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: solaris*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: cannam@89: sysv4 | sysv4.3*) cannam@89: case $host_vendor in cannam@89: motorola) cannam@89: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' cannam@89: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` cannam@89: ;; cannam@89: ncr) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: sequent) cannam@89: lt_cv_file_magic_cmd='/bin/file' cannam@89: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' cannam@89: ;; cannam@89: sni) cannam@89: lt_cv_file_magic_cmd='/bin/file' cannam@89: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" cannam@89: lt_cv_file_magic_test_file=/lib/libc.so cannam@89: ;; cannam@89: siemens) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: pc) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: tpf*) cannam@89: lt_cv_deplibs_check_method=pass_all cannam@89: ;; cannam@89: esac cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 cannam@89: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } cannam@89: file_magic_cmd=$lt_cv_file_magic_cmd cannam@89: deplibs_check_method=$lt_cv_deplibs_check_method cannam@89: test -z "$deplibs_check_method" && deplibs_check_method=unknown cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}ar; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_AR+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$AR"; then cannam@89: ac_cv_prog_AR="$AR" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_AR="${ac_tool_prefix}ar" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: AR=$ac_cv_prog_AR cannam@89: if test -n "$AR"; then cannam@89: { echo "$as_me:$LINENO: result: $AR" >&5 cannam@89: echo "${ECHO_T}$AR" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_AR"; then cannam@89: ac_ct_AR=$AR cannam@89: # Extract the first word of "ar", so it can be a program name with args. cannam@89: set dummy ar; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_AR"; then cannam@89: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_AR="ar" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_AR=$ac_cv_prog_ac_ct_AR cannam@89: if test -n "$ac_ct_AR"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 cannam@89: echo "${ECHO_T}$ac_ct_AR" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_AR" = x; then cannam@89: AR="false" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: AR=$ac_ct_AR cannam@89: fi cannam@89: else cannam@89: AR="$ac_cv_prog_AR" cannam@89: fi cannam@89: cannam@89: test -z "$AR" && AR=ar cannam@89: test -z "$AR_FLAGS" && AR_FLAGS=cru cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_STRIP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$STRIP"; then cannam@89: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: STRIP=$ac_cv_prog_STRIP cannam@89: if test -n "$STRIP"; then cannam@89: { echo "$as_me:$LINENO: result: $STRIP" >&5 cannam@89: echo "${ECHO_T}$STRIP" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_STRIP"; then cannam@89: ac_ct_STRIP=$STRIP cannam@89: # Extract the first word of "strip", so it can be a program name with args. cannam@89: set dummy strip; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_STRIP"; then cannam@89: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_STRIP="strip" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@89: if test -n "$ac_ct_STRIP"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 cannam@89: echo "${ECHO_T}$ac_ct_STRIP" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_STRIP" = x; then cannam@89: STRIP=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: STRIP=$ac_ct_STRIP cannam@89: fi cannam@89: else cannam@89: STRIP="$ac_cv_prog_STRIP" cannam@89: fi cannam@89: cannam@89: test -z "$STRIP" && STRIP=: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_RANLIB+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$RANLIB"; then cannam@89: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: RANLIB=$ac_cv_prog_RANLIB cannam@89: if test -n "$RANLIB"; then cannam@89: { echo "$as_me:$LINENO: result: $RANLIB" >&5 cannam@89: echo "${ECHO_T}$RANLIB" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_RANLIB"; then cannam@89: ac_ct_RANLIB=$RANLIB cannam@89: # Extract the first word of "ranlib", so it can be a program name with args. cannam@89: set dummy ranlib; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_RANLIB"; then cannam@89: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_RANLIB="ranlib" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB cannam@89: if test -n "$ac_ct_RANLIB"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 cannam@89: echo "${ECHO_T}$ac_ct_RANLIB" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_RANLIB" = x; then cannam@89: RANLIB=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: RANLIB=$ac_ct_RANLIB cannam@89: fi cannam@89: else cannam@89: RANLIB="$ac_cv_prog_RANLIB" cannam@89: fi cannam@89: cannam@89: test -z "$RANLIB" && RANLIB=: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Determine commands to create old-style static archives. cannam@89: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' cannam@89: old_postinstall_cmds='chmod 644 $oldlib' cannam@89: old_postuninstall_cmds= cannam@89: cannam@89: if test -n "$RANLIB"; then cannam@89: case $host_os in cannam@89: openbsd*) cannam@89: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" cannam@89: ;; cannam@89: *) cannam@89: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" cannam@89: ;; cannam@89: esac cannam@89: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # If no C compiler was specified, use CC. cannam@89: LTCC=${LTCC-"$CC"} cannam@89: cannam@89: # If no C compiler flags were specified, use CFLAGS. cannam@89: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@89: cannam@89: # Allow CC to be a program name with arguments. cannam@89: compiler=$CC cannam@89: cannam@89: cannam@89: # Check for command to grab the raw symbol name followed by C symbol from nm. cannam@89: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 cannam@89: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cannam@89: # These are sane defaults that work on at least a few old systems. cannam@89: # [They come from Ultrix. What could be older than Ultrix?!! ;)] cannam@89: cannam@89: # Character class describing NM global symbol codes. cannam@89: symcode='[BCDEGRST]' cannam@89: cannam@89: # Regexp to match symbols that can be accessed directly from C. cannam@89: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' cannam@89: cannam@89: # Define system-specific variables. cannam@89: case $host_os in cannam@89: aix*) cannam@89: symcode='[BCDT]' cannam@89: ;; cannam@89: cygwin* | mingw* | pw32*) cannam@89: symcode='[ABCDGISTW]' cannam@89: ;; cannam@89: hpux*) cannam@89: if test "$host_cpu" = ia64; then cannam@89: symcode='[ABCDEGRST]' cannam@89: fi cannam@89: ;; cannam@89: irix* | nonstopux*) cannam@89: symcode='[BCDEGRST]' cannam@89: ;; cannam@89: osf*) cannam@89: symcode='[BCDEGQRST]' cannam@89: ;; cannam@89: solaris*) cannam@89: symcode='[BDRT]' cannam@89: ;; cannam@89: sco3.2v5*) cannam@89: symcode='[DT]' cannam@89: ;; cannam@89: sysv4.2uw2*) cannam@89: symcode='[DT]' cannam@89: ;; cannam@89: sysv5* | sco5v6* | unixware* | OpenUNIX*) cannam@89: symcode='[ABDT]' cannam@89: ;; cannam@89: sysv4) cannam@89: symcode='[DFNSTU]' cannam@89: ;; cannam@89: esac cannam@89: cannam@89: # If we're using GNU nm, then use its standard symbol codes. cannam@89: case `$NM -V 2>&1` in cannam@89: *GNU* | *'with BFD'*) cannam@89: symcode='[ABCDGIRSTW]' ;; cannam@89: esac cannam@89: cannam@89: # Transform an extracted symbol line into a proper C declaration. cannam@89: # Some systems (esp. on ia64) link data and code symbols differently, cannam@89: # so use this general approach. cannam@89: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" cannam@89: cannam@89: # Transform an extracted symbol line into symbol name and symbol address cannam@89: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" cannam@89: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" cannam@89: cannam@89: # Handle CRLF in mingw tool chain cannam@89: opt_cr= cannam@89: case $build_os in cannam@89: mingw*) cannam@89: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp cannam@89: ;; cannam@89: esac cannam@89: cannam@89: # Try without a prefix underscore, then with it. cannam@89: for ac_symprfx in "" "_"; do cannam@89: cannam@89: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. cannam@89: symxfrm="\\1 $ac_symprfx\\2 \\2" cannam@89: cannam@89: # Write the raw and C identifiers. cannam@89: if test "$lt_cv_nm_interface" = "MS dumpbin"; then cannam@89: # Fake it for dumpbin and say T for any non-static function cannam@89: # and D for any global variable. cannam@89: # Also find C++ and __fastcall symbols from MSVC++, cannam@89: # which start with @ or ?. cannam@89: lt_cv_sys_global_symbol_pipe="$AWK '"\ cannam@89: " {last_section=section; section=\$ 3};"\ cannam@89: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ cannam@89: " \$ 0!~/External *\|/{next};"\ cannam@89: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ cannam@89: " {if(hide[section]) next};"\ cannam@89: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ cannam@89: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ cannam@89: " s[1]~/^[@?]/{print s[1], s[1]; next};"\ cannam@89: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ cannam@89: " ' prfx=^$ac_symprfx" cannam@89: else cannam@89: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" cannam@89: fi cannam@89: cannam@89: # Check to see that the pipe works correctly. cannam@89: pipe_works=no cannam@89: cannam@89: rm -f conftest* cannam@89: cat > conftest.$ac_ext <<_LT_EOF cannam@89: #ifdef __cplusplus cannam@89: extern "C" { cannam@89: #endif cannam@89: char nm_test_var; cannam@89: void nm_test_func(void); cannam@89: void nm_test_func(void){} cannam@89: #ifdef __cplusplus cannam@89: } cannam@89: #endif cannam@89: int main(){nm_test_var='a';nm_test_func();return(0);} cannam@89: _LT_EOF cannam@89: cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@89: (eval $ac_compile) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; then cannam@89: # Now try to grab the symbols. cannam@89: nlist=conftest.nm cannam@89: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 cannam@89: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && test -s "$nlist"; then cannam@89: # Try sorting and uniquifying the output. cannam@89: if sort "$nlist" | uniq > "$nlist"T; then cannam@89: mv -f "$nlist"T "$nlist" cannam@89: else cannam@89: rm -f "$nlist"T cannam@89: fi cannam@89: cannam@89: # Make sure that we snagged all the symbols we need. cannam@89: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then cannam@89: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cannam@89: cat <<_LT_EOF > conftest.$ac_ext cannam@89: #ifdef __cplusplus cannam@89: extern "C" { cannam@89: #endif cannam@89: cannam@89: _LT_EOF cannam@89: # Now generate the symbol file. cannam@89: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cannam@89: cannam@89: cat <<_LT_EOF >> conftest.$ac_ext cannam@89: cannam@89: /* The mapping between symbol names and symbols. */ cannam@89: const struct { cannam@89: const char *name; cannam@89: void *address; cannam@89: } cannam@89: lt__PROGRAM__LTX_preloaded_symbols[] = cannam@89: { cannam@89: { "@PROGRAM@", (void *) 0 }, cannam@89: _LT_EOF cannam@89: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cannam@89: cat <<\_LT_EOF >> conftest.$ac_ext cannam@89: {0, (void *) 0} cannam@89: }; cannam@89: cannam@89: /* This works around a problem in FreeBSD linker */ cannam@89: #ifdef FREEBSD_WORKAROUND cannam@89: static const void *lt_preloaded_setup() { cannam@89: return lt__PROGRAM__LTX_preloaded_symbols; cannam@89: } cannam@89: #endif cannam@89: cannam@89: #ifdef __cplusplus cannam@89: } cannam@89: #endif cannam@89: _LT_EOF cannam@89: # Now try linking the two files. cannam@89: mv conftest.$ac_objext conftstm.$ac_objext cannam@89: lt_save_LIBS="$LIBS" cannam@89: lt_save_CFLAGS="$CFLAGS" cannam@89: LIBS="conftstm.$ac_objext" cannam@89: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@89: (eval $ac_link) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && test -s conftest${ac_exeext}; then cannam@89: pipe_works=yes cannam@89: fi cannam@89: LIBS="$lt_save_LIBS" cannam@89: CFLAGS="$lt_save_CFLAGS" cannam@89: else cannam@89: echo "cannot find nm_test_func in $nlist" >&5 cannam@89: fi cannam@89: else cannam@89: echo "cannot find nm_test_var in $nlist" >&5 cannam@89: fi cannam@89: else cannam@89: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 cannam@89: fi cannam@89: else cannam@89: echo "$progname: failed program was:" >&5 cannam@89: cat conftest.$ac_ext >&5 cannam@89: fi cannam@89: rm -rf conftest* conftst* cannam@89: cannam@89: # Do not use the global_symbol_pipe unless it works. cannam@89: if test "$pipe_works" = yes; then cannam@89: break cannam@89: else cannam@89: lt_cv_sys_global_symbol_pipe= cannam@89: fi cannam@89: done cannam@89: cannam@89: fi cannam@89: cannam@89: if test -z "$lt_cv_sys_global_symbol_pipe"; then cannam@89: lt_cv_sys_global_symbol_to_cdecl= cannam@89: fi cannam@89: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then cannam@89: { echo "$as_me:$LINENO: result: failed" >&5 cannam@89: echo "${ECHO_T}failed" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: ok" >&5 cannam@89: echo "${ECHO_T}ok" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Check whether --enable-libtool-lock was given. cannam@89: if test "${enable_libtool_lock+set}" = set; then cannam@89: enableval=$enable_libtool_lock; cannam@89: fi cannam@89: cannam@89: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes cannam@89: cannam@89: # Some flags need to be propagated to the compiler or linker for good cannam@89: # libtool support. cannam@89: case $host in cannam@89: ia64-*-hpux*) cannam@89: # Find out which ABI we are using. cannam@89: echo 'int i;' > conftest.$ac_ext cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@89: (eval $ac_compile) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; then cannam@89: case `/usr/bin/file conftest.$ac_objext` in cannam@89: *ELF-32*) cannam@89: HPUX_IA64_MODE="32" cannam@89: ;; cannam@89: *ELF-64*) cannam@89: HPUX_IA64_MODE="64" cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: rm -rf conftest* cannam@89: ;; cannam@89: *-*-irix6*) cannam@89: # Find out which ABI we are using. cannam@89: echo '#line 5470 "configure"' > conftest.$ac_ext cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@89: (eval $ac_compile) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; then cannam@89: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@89: case `/usr/bin/file conftest.$ac_objext` in cannam@89: *32-bit*) cannam@89: LD="${LD-ld} -melf32bsmip" cannam@89: ;; cannam@89: *N32*) cannam@89: LD="${LD-ld} -melf32bmipn32" cannam@89: ;; cannam@89: *64-bit*) cannam@89: LD="${LD-ld} -melf64bmip" cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: case `/usr/bin/file conftest.$ac_objext` in cannam@89: *32-bit*) cannam@89: LD="${LD-ld} -32" cannam@89: ;; cannam@89: *N32*) cannam@89: LD="${LD-ld} -n32" cannam@89: ;; cannam@89: *64-bit*) cannam@89: LD="${LD-ld} -64" cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: fi cannam@89: rm -rf conftest* cannam@89: ;; cannam@89: cannam@89: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ cannam@89: s390*-*linux*|s390*-*tpf*|sparc*-*linux*) cannam@89: # Find out which ABI we are using. cannam@89: echo 'int i;' > conftest.$ac_ext cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@89: (eval $ac_compile) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; then cannam@89: case `/usr/bin/file conftest.o` in cannam@89: *32-bit*) cannam@89: case $host in cannam@89: x86_64-*kfreebsd*-gnu) cannam@89: LD="${LD-ld} -m elf_i386_fbsd" cannam@89: ;; cannam@89: x86_64-*linux*) cannam@89: LD="${LD-ld} -m elf_i386" cannam@89: ;; cannam@89: ppc64-*linux*|powerpc64-*linux*) cannam@89: LD="${LD-ld} -m elf32ppclinux" cannam@89: ;; cannam@89: s390x-*linux*) cannam@89: LD="${LD-ld} -m elf_s390" cannam@89: ;; cannam@89: sparc64-*linux*) cannam@89: LD="${LD-ld} -m elf32_sparc" cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: *64-bit*) cannam@89: case $host in cannam@89: x86_64-*kfreebsd*-gnu) cannam@89: LD="${LD-ld} -m elf_x86_64_fbsd" cannam@89: ;; cannam@89: x86_64-*linux*) cannam@89: LD="${LD-ld} -m elf_x86_64" cannam@89: ;; cannam@89: ppc*-*linux*|powerpc*-*linux*) cannam@89: LD="${LD-ld} -m elf64ppc" cannam@89: ;; cannam@89: s390*-*linux*|s390*-*tpf*) cannam@89: LD="${LD-ld} -m elf64_s390" cannam@89: ;; cannam@89: sparc*-*linux*) cannam@89: LD="${LD-ld} -m elf64_sparc" cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: rm -rf conftest* cannam@89: ;; cannam@89: cannam@89: *-*-sco3.2v5*) cannam@89: # On SCO OpenServer 5, we need -belf to get full-featured binaries. cannam@89: SAVE_CFLAGS="$CFLAGS" cannam@89: CFLAGS="$CFLAGS -belf" cannam@89: { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 cannam@89: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_cc_needs_belf+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: lt_cv_cc_needs_belf=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: lt_cv_cc_needs_belf=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 cannam@89: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } cannam@89: if test x"$lt_cv_cc_needs_belf" != x"yes"; then cannam@89: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf cannam@89: CFLAGS="$SAVE_CFLAGS" cannam@89: fi cannam@89: ;; cannam@89: sparc*-*solaris*) cannam@89: # Find out which ABI we are using. cannam@89: echo 'int i;' > conftest.$ac_ext cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@89: (eval $ac_compile) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; then cannam@89: case `/usr/bin/file conftest.o` in cannam@89: *64-bit*) cannam@89: case $lt_cv_prog_gnu_ld in cannam@89: yes*) LD="${LD-ld} -m elf64_sparc" ;; cannam@89: *) cannam@89: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then cannam@89: LD="${LD-ld} -64" cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: rm -rf conftest* cannam@89: ;; cannam@89: esac cannam@89: cannam@89: need_locks="$enable_libtool_lock" cannam@89: cannam@89: cannam@89: case $host_os in cannam@89: rhapsody* | darwin*) cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$DSYMUTIL"; then cannam@89: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: DSYMUTIL=$ac_cv_prog_DSYMUTIL cannam@89: if test -n "$DSYMUTIL"; then cannam@89: { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 cannam@89: echo "${ECHO_T}$DSYMUTIL" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_DSYMUTIL"; then cannam@89: ac_ct_DSYMUTIL=$DSYMUTIL cannam@89: # Extract the first word of "dsymutil", so it can be a program name with args. cannam@89: set dummy dsymutil; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_DSYMUTIL"; then cannam@89: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL cannam@89: if test -n "$ac_ct_DSYMUTIL"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 cannam@89: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_DSYMUTIL" = x; then cannam@89: DSYMUTIL=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: DSYMUTIL=$ac_ct_DSYMUTIL cannam@89: fi cannam@89: else cannam@89: DSYMUTIL="$ac_cv_prog_DSYMUTIL" cannam@89: fi cannam@89: cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}nmedit; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_NMEDIT+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$NMEDIT"; then cannam@89: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: NMEDIT=$ac_cv_prog_NMEDIT cannam@89: if test -n "$NMEDIT"; then cannam@89: { echo "$as_me:$LINENO: result: $NMEDIT" >&5 cannam@89: echo "${ECHO_T}$NMEDIT" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_NMEDIT"; then cannam@89: ac_ct_NMEDIT=$NMEDIT cannam@89: # Extract the first word of "nmedit", so it can be a program name with args. cannam@89: set dummy nmedit; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_NMEDIT"; then cannam@89: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_NMEDIT="nmedit" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT cannam@89: if test -n "$ac_ct_NMEDIT"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 cannam@89: echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_NMEDIT" = x; then cannam@89: NMEDIT=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: NMEDIT=$ac_ct_NMEDIT cannam@89: fi cannam@89: else cannam@89: NMEDIT="$ac_cv_prog_NMEDIT" cannam@89: fi cannam@89: cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}lipo; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_LIPO+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$LIPO"; then cannam@89: ac_cv_prog_LIPO="$LIPO" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_LIPO="${ac_tool_prefix}lipo" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: LIPO=$ac_cv_prog_LIPO cannam@89: if test -n "$LIPO"; then cannam@89: { echo "$as_me:$LINENO: result: $LIPO" >&5 cannam@89: echo "${ECHO_T}$LIPO" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_LIPO"; then cannam@89: ac_ct_LIPO=$LIPO cannam@89: # Extract the first word of "lipo", so it can be a program name with args. cannam@89: set dummy lipo; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_LIPO"; then cannam@89: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_LIPO="lipo" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO cannam@89: if test -n "$ac_ct_LIPO"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 cannam@89: echo "${ECHO_T}$ac_ct_LIPO" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_LIPO" = x; then cannam@89: LIPO=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: LIPO=$ac_ct_LIPO cannam@89: fi cannam@89: else cannam@89: LIPO="$ac_cv_prog_LIPO" cannam@89: fi cannam@89: cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}otool; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_OTOOL+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$OTOOL"; then cannam@89: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_OTOOL="${ac_tool_prefix}otool" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: OTOOL=$ac_cv_prog_OTOOL cannam@89: if test -n "$OTOOL"; then cannam@89: { echo "$as_me:$LINENO: result: $OTOOL" >&5 cannam@89: echo "${ECHO_T}$OTOOL" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_OTOOL"; then cannam@89: ac_ct_OTOOL=$OTOOL cannam@89: # Extract the first word of "otool", so it can be a program name with args. cannam@89: set dummy otool; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_OTOOL"; then cannam@89: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_OTOOL="otool" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL cannam@89: if test -n "$ac_ct_OTOOL"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 cannam@89: echo "${ECHO_T}$ac_ct_OTOOL" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_OTOOL" = x; then cannam@89: OTOOL=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: OTOOL=$ac_ct_OTOOL cannam@89: fi cannam@89: else cannam@89: OTOOL="$ac_cv_prog_OTOOL" cannam@89: fi cannam@89: cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. cannam@89: set dummy ${ac_tool_prefix}otool64; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_OTOOL64+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$OTOOL64"; then cannam@89: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: OTOOL64=$ac_cv_prog_OTOOL64 cannam@89: if test -n "$OTOOL64"; then cannam@89: { echo "$as_me:$LINENO: result: $OTOOL64" >&5 cannam@89: echo "${ECHO_T}$OTOOL64" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: if test -z "$ac_cv_prog_OTOOL64"; then cannam@89: ac_ct_OTOOL64=$OTOOL64 cannam@89: # Extract the first word of "otool64", so it can be a program name with args. cannam@89: set dummy otool64; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$ac_ct_OTOOL64"; then cannam@89: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_ac_ct_OTOOL64="otool64" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 cannam@89: if test -n "$ac_ct_OTOOL64"; then cannam@89: { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 cannam@89: echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: if test "x$ac_ct_OTOOL64" = x; then cannam@89: OTOOL64=":" cannam@89: else cannam@89: case $cross_compiling:$ac_tool_warned in cannam@89: yes:) cannam@89: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&5 cannam@89: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools cannam@89: whose name does not start with the host triplet. If you think this cannam@89: configuration is useful to you, please write to autoconf@gnu.org." >&2;} cannam@89: ac_tool_warned=yes ;; cannam@89: esac cannam@89: OTOOL64=$ac_ct_OTOOL64 cannam@89: fi cannam@89: else cannam@89: OTOOL64="$ac_cv_prog_OTOOL64" cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 cannam@89: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_apple_cc_single_mod+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_apple_cc_single_mod=no cannam@89: if test -z "${LT_MULTI_MODULE}"; then cannam@89: # By default we will add the -single_module flag. You can override cannam@89: # by either setting the environment variable LT_MULTI_MODULE cannam@89: # non-empty at configure time, or by adding -multi_module to the cannam@89: # link flags. cannam@89: rm -rf libconftest.dylib* cannam@89: echo "int foo(void){return 1;}" > conftest.c cannam@89: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ cannam@89: -dynamiclib -Wl,-single_module conftest.c" >&5 cannam@89: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ cannam@89: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err cannam@89: _lt_result=$? cannam@89: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then cannam@89: lt_cv_apple_cc_single_mod=yes cannam@89: else cannam@89: cat conftest.err >&5 cannam@89: fi cannam@89: rm -rf libconftest.dylib* cannam@89: rm -f conftest.* cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 cannam@89: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } cannam@89: { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 cannam@89: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_ld_exported_symbols_list=no cannam@89: save_LDFLAGS=$LDFLAGS cannam@89: echo "_main" > conftest.sym cannam@89: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: lt_cv_ld_exported_symbols_list=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: lt_cv_ld_exported_symbols_list=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LDFLAGS="$save_LDFLAGS" cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 cannam@89: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } cannam@89: case $host_os in cannam@89: rhapsody* | darwin1.[012]) cannam@89: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; cannam@89: darwin1.*) cannam@89: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; cannam@89: darwin*) # darwin 5.x on cannam@89: # if running on 10.5 or later, the deployment target defaults cannam@89: # to the OS version, if on x86, and 10.4, the deployment cannam@89: # target defaults to 10.4. Don't you love it? cannam@89: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in cannam@89: 10.0,*86*-darwin8*|10.0,*-darwin[91]*) cannam@89: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; cannam@89: 10.[012]*) cannam@89: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; cannam@89: 10.*) cannam@89: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; cannam@89: esac cannam@89: ;; cannam@89: esac cannam@89: if test "$lt_cv_apple_cc_single_mod" = "yes"; then cannam@89: _lt_dar_single_mod='$single_module' cannam@89: fi cannam@89: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then cannam@89: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' cannam@89: else cannam@89: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@89: fi cannam@89: if test "$DSYMUTIL" != ":"; then cannam@89: _lt_dsymutil='~$DSYMUTIL $lib || :' cannam@89: else cannam@89: _lt_dsymutil= cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 cannam@89: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } cannam@89: # On Suns, sometimes $CPP names a directory. cannam@89: if test -n "$CPP" && test -d "$CPP"; then cannam@89: CPP= cannam@89: fi cannam@89: if test -z "$CPP"; then cannam@89: if test "${ac_cv_prog_CPP+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: # Double quotes because CPP needs to be expanded cannam@89: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" cannam@89: do cannam@89: ac_preproc_ok=false cannam@89: for ac_c_preproc_warn_flag in '' yes cannam@89: do cannam@89: # Use a header file that comes with gcc, so configuring glibc cannam@89: # with a fresh cross-compiler works. cannam@89: # Prefer to if __STDC__ is defined, since cannam@89: # exists even on freestanding compilers. cannam@89: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@89: # not just through cpp. "Syntax error" is here to catch this case. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #ifdef __STDC__ cannam@89: # include cannam@89: #else cannam@89: # include cannam@89: #endif cannam@89: Syntax error cannam@89: _ACEOF cannam@89: if { (ac_try="$ac_cpp conftest.$ac_ext" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } >/dev/null && { cannam@89: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: }; then cannam@89: : cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: # Broken: fails on valid input. cannam@89: continue cannam@89: fi cannam@89: cannam@89: rm -f conftest.err conftest.$ac_ext cannam@89: cannam@89: # OK, works on sane cases. Now check whether nonexistent headers cannam@89: # can be detected and how. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: _ACEOF cannam@89: if { (ac_try="$ac_cpp conftest.$ac_ext" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } >/dev/null && { cannam@89: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: }; then cannam@89: # Broken: success on invalid input. cannam@89: continue cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: # Passes both tests. cannam@89: ac_preproc_ok=: cannam@89: break cannam@89: fi cannam@89: cannam@89: rm -f conftest.err conftest.$ac_ext cannam@89: cannam@89: done cannam@89: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@89: rm -f conftest.err conftest.$ac_ext cannam@89: if $ac_preproc_ok; then cannam@89: break cannam@89: fi cannam@89: cannam@89: done cannam@89: ac_cv_prog_CPP=$CPP cannam@89: cannam@89: fi cannam@89: CPP=$ac_cv_prog_CPP cannam@89: else cannam@89: ac_cv_prog_CPP=$CPP cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $CPP" >&5 cannam@89: echo "${ECHO_T}$CPP" >&6; } cannam@89: ac_preproc_ok=false cannam@89: for ac_c_preproc_warn_flag in '' yes cannam@89: do cannam@89: # Use a header file that comes with gcc, so configuring glibc cannam@89: # with a fresh cross-compiler works. cannam@89: # Prefer to if __STDC__ is defined, since cannam@89: # exists even on freestanding compilers. cannam@89: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@89: # not just through cpp. "Syntax error" is here to catch this case. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #ifdef __STDC__ cannam@89: # include cannam@89: #else cannam@89: # include cannam@89: #endif cannam@89: Syntax error cannam@89: _ACEOF cannam@89: if { (ac_try="$ac_cpp conftest.$ac_ext" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } >/dev/null && { cannam@89: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: }; then cannam@89: : cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: # Broken: fails on valid input. cannam@89: continue cannam@89: fi cannam@89: cannam@89: rm -f conftest.err conftest.$ac_ext cannam@89: cannam@89: # OK, works on sane cases. Now check whether nonexistent headers cannam@89: # can be detected and how. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: _ACEOF cannam@89: if { (ac_try="$ac_cpp conftest.$ac_ext" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } >/dev/null && { cannam@89: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: }; then cannam@89: # Broken: success on invalid input. cannam@89: continue cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: # Passes both tests. cannam@89: ac_preproc_ok=: cannam@89: break cannam@89: fi cannam@89: cannam@89: rm -f conftest.err conftest.$ac_ext cannam@89: cannam@89: done cannam@89: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@89: rm -f conftest.err conftest.$ac_ext cannam@89: if $ac_preproc_ok; then cannam@89: : cannam@89: else cannam@89: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check cannam@89: See \`config.log' for more details." >&5 cannam@89: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check cannam@89: See \`config.log' for more details." >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 cannam@89: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_header_stdc+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: #include cannam@89: #include cannam@89: #include cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_cv_header_stdc=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_header_stdc=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: cannam@89: if test $ac_cv_header_stdc = yes; then cannam@89: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: cannam@89: _ACEOF cannam@89: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@89: $EGREP "memchr" >/dev/null 2>&1; then cannam@89: : cannam@89: else cannam@89: ac_cv_header_stdc=no cannam@89: fi cannam@89: rm -f conftest* cannam@89: cannam@89: fi cannam@89: cannam@89: if test $ac_cv_header_stdc = yes; then cannam@89: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: cannam@89: _ACEOF cannam@89: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@89: $EGREP "free" >/dev/null 2>&1; then cannam@89: : cannam@89: else cannam@89: ac_cv_header_stdc=no cannam@89: fi cannam@89: rm -f conftest* cannam@89: cannam@89: fi cannam@89: cannam@89: if test $ac_cv_header_stdc = yes; then cannam@89: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@89: if test "$cross_compiling" = yes; then cannam@89: : cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: #include cannam@89: #if ((' ' & 0x0FF) == 0x020) cannam@89: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@89: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@89: #else cannam@89: # define ISLOWER(c) \ cannam@89: (('a' <= (c) && (c) <= 'i') \ cannam@89: || ('j' <= (c) && (c) <= 'r') \ cannam@89: || ('s' <= (c) && (c) <= 'z')) cannam@89: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@89: #endif cannam@89: cannam@89: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@89: int cannam@89: main () cannam@89: { cannam@89: int i; cannam@89: for (i = 0; i < 256; i++) cannam@89: if (XOR (islower (i), ISLOWER (i)) cannam@89: || toupper (i) != TOUPPER (i)) cannam@89: return 2; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@89: { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; }; then cannam@89: : cannam@89: else cannam@89: echo "$as_me: program exited with status $ac_status" >&5 cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ( exit $ac_status ) cannam@89: ac_cv_header_stdc=no cannam@89: fi cannam@89: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 cannam@89: echo "${ECHO_T}$ac_cv_header_stdc" >&6; } cannam@89: if test $ac_cv_header_stdc = yes; then cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define STDC_HEADERS 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: # On IRIX 5.3, sys/types and inttypes.h are conflicting. cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ cannam@89: inttypes.h stdint.h unistd.h cannam@89: do cannam@89: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@89: { echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@89: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } cannam@89: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: $ac_includes_default cannam@89: cannam@89: #include <$ac_header> cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: eval "$as_ac_Header=yes" cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: eval "$as_ac_Header=no" cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: ac_res=`eval echo '${'$as_ac_Header'}'` cannam@89: { echo "$as_me:$LINENO: result: $ac_res" >&5 cannam@89: echo "${ECHO_T}$ac_res" >&6; } cannam@89: if test `eval echo '${'$as_ac_Header'}'` = yes; then cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: done cannam@89: cannam@89: cannam@89: cannam@89: for ac_header in dlfcn.h cannam@89: do cannam@89: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@89: { echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@89: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } cannam@89: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: $ac_includes_default cannam@89: cannam@89: #include <$ac_header> cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: eval "$as_ac_Header=yes" cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: eval "$as_ac_Header=no" cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: ac_res=`eval echo '${'$as_ac_Header'}'` cannam@89: { echo "$as_me:$LINENO: result: $ac_res" >&5 cannam@89: echo "${ECHO_T}$ac_res" >&6; } cannam@89: if test `eval echo '${'$as_ac_Header'}'` = yes; then cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: done cannam@89: cannam@89: cannam@89: cannam@89: # Set options cannam@89: cannam@89: cannam@89: cannam@89: enable_dlopen=no cannam@89: cannam@89: cannam@89: enable_win32_dll=no cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Check whether --with-pic was given. cannam@89: if test "${with_pic+set}" = set; then cannam@89: withval=$with_pic; pic_mode="$withval" cannam@89: else cannam@89: pic_mode=default cannam@89: fi cannam@89: cannam@89: cannam@89: test -z "$pic_mode" && pic_mode=default cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Check whether --enable-fast-install was given. cannam@89: if test "${enable_fast_install+set}" = set; then cannam@89: enableval=$enable_fast_install; p=${PACKAGE-default} cannam@89: case $enableval in cannam@89: yes) enable_fast_install=yes ;; cannam@89: no) enable_fast_install=no ;; cannam@89: *) cannam@89: enable_fast_install=no cannam@89: # Look at the argument we got. We use all the common list separators. cannam@89: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@89: for pkg in $enableval; do cannam@89: IFS="$lt_save_ifs" cannam@89: if test "X$pkg" = "X$p"; then cannam@89: enable_fast_install=yes cannam@89: fi cannam@89: done cannam@89: IFS="$lt_save_ifs" cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: enable_fast_install=yes cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # This can be used to rebuild libtool when needed cannam@89: LIBTOOL_DEPS="$ltmain" cannam@89: cannam@89: # Always use our own libtool. cannam@89: LIBTOOL='$(SHELL) $(top_builddir)/libtool' cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: test -z "$LN_S" && LN_S="ln -s" cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: if test -n "${ZSH_VERSION+set}" ; then cannam@89: setopt NO_GLOB_SUBST cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for objdir" >&5 cannam@89: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_objdir+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: rm -f .libs 2>/dev/null cannam@89: mkdir .libs 2>/dev/null cannam@89: if test -d .libs; then cannam@89: lt_cv_objdir=.libs cannam@89: else cannam@89: # MS-DOS does not allow filenames that begin with a dot. cannam@89: lt_cv_objdir=_libs cannam@89: fi cannam@89: rmdir .libs 2>/dev/null cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 cannam@89: echo "${ECHO_T}$lt_cv_objdir" >&6; } cannam@89: objdir=$lt_cv_objdir cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define LT_OBJDIR "$lt_cv_objdir/" cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: case $host_os in cannam@89: aix3*) cannam@89: # AIX sometimes has problems with the GCC collect2 program. For some cannam@89: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@89: # vanish in a puff of smoke. cannam@89: if test "X${COLLECT_NAMES+set}" != Xset; then cannam@89: COLLECT_NAMES= cannam@89: export COLLECT_NAMES cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: cannam@89: # Sed substitution that helps us do robust quoting. It backslashifies cannam@89: # metacharacters that are still active within double-quoted strings. cannam@89: sed_quote_subst='s/\(["`$\\]\)/\\\1/g' cannam@89: cannam@89: # Same as above, but do not quote variable references. cannam@89: double_quote_subst='s/\(["`\\]\)/\\\1/g' cannam@89: cannam@89: # Sed substitution to delay expansion of an escaped shell variable in a cannam@89: # double_quote_subst'ed string. cannam@89: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' cannam@89: cannam@89: # Sed substitution to delay expansion of an escaped single quote. cannam@89: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' cannam@89: cannam@89: # Sed substitution to avoid accidental globbing in evaled expressions cannam@89: no_glob_subst='s/\*/\\\*/g' cannam@89: cannam@89: # Global variables: cannam@89: ofile=libtool cannam@89: can_build_shared=yes cannam@89: cannam@89: # All known linkers require a `.a' archive for static linking (except MSVC, cannam@89: # which needs '.lib'). cannam@89: libext=a cannam@89: cannam@89: with_gnu_ld="$lt_cv_prog_gnu_ld" cannam@89: cannam@89: old_CC="$CC" cannam@89: old_CFLAGS="$CFLAGS" cannam@89: cannam@89: # Set sane defaults for various variables cannam@89: test -z "$CC" && CC=cc cannam@89: test -z "$LTCC" && LTCC=$CC cannam@89: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS cannam@89: test -z "$LD" && LD=ld cannam@89: test -z "$ac_objext" && ac_objext=o cannam@89: cannam@89: for cc_temp in $compiler""; do cannam@89: case $cc_temp in cannam@89: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@89: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@89: \-*) ;; cannam@89: *) break;; cannam@89: esac cannam@89: done cannam@89: cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cannam@89: cannam@89: cannam@89: # Only perform the check for file, if the check method requires it cannam@89: test -z "$MAGIC_CMD" && MAGIC_CMD=file cannam@89: case $deplibs_check_method in cannam@89: file_magic*) cannam@89: if test "$file_magic_cmd" = '$MAGIC_CMD'; then cannam@89: { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 cannam@89: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: case $MAGIC_CMD in cannam@89: [\\/*] | ?:[\\/]*) cannam@89: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. cannam@89: ;; cannam@89: *) cannam@89: lt_save_MAGIC_CMD="$MAGIC_CMD" cannam@89: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@89: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@89: for ac_dir in $ac_dummy; do cannam@89: IFS="$lt_save_ifs" cannam@89: test -z "$ac_dir" && ac_dir=. cannam@89: if test -f $ac_dir/${ac_tool_prefix}file; then cannam@89: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" cannam@89: if test -n "$file_magic_test_file"; then cannam@89: case $deplibs_check_method in cannam@89: "file_magic "*) cannam@89: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` cannam@89: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@89: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@89: $EGREP "$file_magic_regex" > /dev/null; then cannam@89: : cannam@89: else cannam@89: cat <<_LT_EOF 1>&2 cannam@89: cannam@89: *** Warning: the command libtool uses to detect shared libraries, cannam@89: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@89: *** The result is that libtool may fail to recognize shared libraries cannam@89: *** as such. This will affect the creation of libtool libraries that cannam@89: *** depend on shared libraries, but programs linked with such libtool cannam@89: *** libraries will work regardless of this problem. Nevertheless, you cannam@89: *** may want to report the problem to your system manager and/or to cannam@89: *** bug-libtool@gnu.org cannam@89: cannam@89: _LT_EOF cannam@89: fi ;; cannam@89: esac cannam@89: fi cannam@89: break cannam@89: fi cannam@89: done cannam@89: IFS="$lt_save_ifs" cannam@89: MAGIC_CMD="$lt_save_MAGIC_CMD" cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: cannam@89: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@89: if test -n "$MAGIC_CMD"; then cannam@89: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 cannam@89: echo "${ECHO_T}$MAGIC_CMD" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: if test -z "$lt_cv_path_MAGIC_CMD"; then cannam@89: if test -n "$ac_tool_prefix"; then cannam@89: { echo "$as_me:$LINENO: checking for file" >&5 cannam@89: echo $ECHO_N "checking for file... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: case $MAGIC_CMD in cannam@89: [\\/*] | ?:[\\/]*) cannam@89: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. cannam@89: ;; cannam@89: *) cannam@89: lt_save_MAGIC_CMD="$MAGIC_CMD" cannam@89: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@89: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@89: for ac_dir in $ac_dummy; do cannam@89: IFS="$lt_save_ifs" cannam@89: test -z "$ac_dir" && ac_dir=. cannam@89: if test -f $ac_dir/file; then cannam@89: lt_cv_path_MAGIC_CMD="$ac_dir/file" cannam@89: if test -n "$file_magic_test_file"; then cannam@89: case $deplibs_check_method in cannam@89: "file_magic "*) cannam@89: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` cannam@89: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@89: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@89: $EGREP "$file_magic_regex" > /dev/null; then cannam@89: : cannam@89: else cannam@89: cat <<_LT_EOF 1>&2 cannam@89: cannam@89: *** Warning: the command libtool uses to detect shared libraries, cannam@89: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@89: *** The result is that libtool may fail to recognize shared libraries cannam@89: *** as such. This will affect the creation of libtool libraries that cannam@89: *** depend on shared libraries, but programs linked with such libtool cannam@89: *** libraries will work regardless of this problem. Nevertheless, you cannam@89: *** may want to report the problem to your system manager and/or to cannam@89: *** bug-libtool@gnu.org cannam@89: cannam@89: _LT_EOF cannam@89: fi ;; cannam@89: esac cannam@89: fi cannam@89: break cannam@89: fi cannam@89: done cannam@89: IFS="$lt_save_ifs" cannam@89: MAGIC_CMD="$lt_save_MAGIC_CMD" cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: cannam@89: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@89: if test -n "$MAGIC_CMD"; then cannam@89: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 cannam@89: echo "${ECHO_T}$MAGIC_CMD" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: else cannam@89: MAGIC_CMD=: cannam@89: fi cannam@89: fi cannam@89: cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: cannam@89: # Use C for the default configuration in the libtool script cannam@89: cannam@89: lt_save_CC="$CC" cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: cannam@89: cannam@89: # Source file extension for C test sources. cannam@89: ac_ext=c cannam@89: cannam@89: # Object file extension for compiled C test sources. cannam@89: objext=o cannam@89: objext=$objext cannam@89: cannam@89: # Code to be used in simple compile tests cannam@89: lt_simple_compile_test_code="int some_variable = 0;" cannam@89: cannam@89: # Code to be used in simple link tests cannam@89: lt_simple_link_test_code='int main(){return(0);}' cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # If no C compiler was specified, use CC. cannam@89: LTCC=${LTCC-"$CC"} cannam@89: cannam@89: # If no C compiler flags were specified, use CFLAGS. cannam@89: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@89: cannam@89: # Allow CC to be a program name with arguments. cannam@89: compiler=$CC cannam@89: cannam@89: # Save the default compiler, since it gets overwritten when the other cannam@89: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. cannam@89: compiler_DEFAULT=$CC cannam@89: cannam@89: # save warnings/boilerplate of simple test code cannam@89: ac_outfile=conftest.$ac_objext cannam@89: echo "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@89: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@89: _lt_compiler_boilerplate=`cat conftest.err` cannam@89: $RM conftest* cannam@89: cannam@89: ac_outfile=conftest.$ac_objext cannam@89: echo "$lt_simple_link_test_code" >conftest.$ac_ext cannam@89: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@89: _lt_linker_boilerplate=`cat conftest.err` cannam@89: $RM -r conftest* cannam@89: cannam@89: cannam@89: if test -n "$compiler"; then cannam@89: cannam@89: lt_prog_compiler_no_builtin_flag= cannam@89: cannam@89: if test "$GCC" = yes; then cannam@89: lt_prog_compiler_no_builtin_flag=' -fno-builtin' cannam@89: cannam@89: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 cannam@89: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_prog_compiler_rtti_exceptions=no cannam@89: ac_outfile=conftest.$ac_objext cannam@89: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@89: lt_compiler_flag="-fno-rtti -fno-exceptions" cannam@89: # Insert the option either (1) after the last *FLAGS variable, or cannam@89: # (2) before a word containing "conftest.", or (3) at the end. cannam@89: # Note that $ac_compile itself does not contain backslashes and begins cannam@89: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@89: # The option is referenced via a variable to avoid confusing sed. cannam@89: lt_compile=`echo "$ac_compile" | $SED \ cannam@89: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@89: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@89: -e 's:$: $lt_compiler_flag:'` cannam@89: (eval echo "\"\$as_me:7257: $lt_compile\"" >&5) cannam@89: (eval "$lt_compile" 2>conftest.err) cannam@89: ac_status=$? cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:7261: \$? = $ac_status" >&5 cannam@89: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@89: # The compiler can only warn and ignore the option if not recognized cannam@89: # So say no if there are warnings other than the usual output. cannam@89: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp cannam@89: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@89: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then cannam@89: lt_cv_prog_compiler_rtti_exceptions=yes cannam@89: fi cannam@89: fi cannam@89: $RM conftest* cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 cannam@89: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } cannam@89: cannam@89: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then cannam@89: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" cannam@89: else cannam@89: : cannam@89: fi cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: lt_prog_compiler_wl= cannam@89: lt_prog_compiler_pic= cannam@89: lt_prog_compiler_static= cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 cannam@89: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } cannam@89: cannam@89: if test "$GCC" = yes; then cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: lt_prog_compiler_static='-static' cannam@89: cannam@89: case $host_os in cannam@89: aix*) cannam@89: # All AIX code is PIC. cannam@89: if test "$host_cpu" = ia64; then cannam@89: # AIX 5 now supports IA64 processor cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: amigaos*) cannam@89: case $host_cpu in cannam@89: powerpc) cannam@89: # see comment about AmigaOS4 .so support cannam@89: lt_prog_compiler_pic='-fPIC' cannam@89: ;; cannam@89: m68k) cannam@89: # FIXME: we need at least 68020 code to build shared libraries, but cannam@89: # adding the `-m68020' flag to GCC prevents building anything better, cannam@89: # like `-m68040'. cannam@89: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@89: # PIC is the default for these OSes. cannam@89: ;; cannam@89: cannam@89: mingw* | cygwin* | pw32* | os2*) cannam@89: # This hack is so that the source file can tell whether it is being cannam@89: # built for inclusion in a dll (and should export symbols for example). cannam@89: # Although the cygwin gcc ignores -fPIC, still need this for old-style cannam@89: # (--disable-auto-import) libraries cannam@89: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@89: ;; cannam@89: cannam@89: darwin* | rhapsody*) cannam@89: # PIC is the default on this platform cannam@89: # Common symbols not allowed in MH_DYLIB files cannam@89: lt_prog_compiler_pic='-fno-common' cannam@89: ;; cannam@89: cannam@89: hpux*) cannam@89: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@89: # not for PA HP-UX. cannam@89: case $host_cpu in cannam@89: hppa*64*|ia64*) cannam@89: # +Z the default cannam@89: ;; cannam@89: *) cannam@89: lt_prog_compiler_pic='-fPIC' cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: interix[3-9]*) cannam@89: # Interix 3.x gcc -fpic/-fPIC options generate broken code. cannam@89: # Instead, we relocate shared libraries at runtime. cannam@89: ;; cannam@89: cannam@89: msdosdjgpp*) cannam@89: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@89: # on systems that don't support them. cannam@89: lt_prog_compiler_can_build_shared=no cannam@89: enable_shared=no cannam@89: ;; cannam@89: cannam@89: *nto* | *qnx*) cannam@89: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@89: # it will coredump. cannam@89: lt_prog_compiler_pic='-fPIC -shared' cannam@89: ;; cannam@89: cannam@89: sysv4*MP*) cannam@89: if test -d /usr/nec; then cannam@89: lt_prog_compiler_pic=-Kconform_pic cannam@89: fi cannam@89: ;; cannam@89: cannam@89: *) cannam@89: lt_prog_compiler_pic='-fPIC' cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: # PORTME Check for flag to pass linker flags through the system compiler. cannam@89: case $host_os in cannam@89: aix*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: if test "$host_cpu" = ia64; then cannam@89: # AIX 5 now supports IA64 processor cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: else cannam@89: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: mingw* | cygwin* | pw32* | os2*) cannam@89: # This hack is so that the source file can tell whether it is being cannam@89: # built for inclusion in a dll (and should export symbols for example). cannam@89: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@89: ;; cannam@89: cannam@89: hpux9* | hpux10* | hpux11*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@89: # not for PA HP-UX. cannam@89: case $host_cpu in cannam@89: hppa*64*|ia64*) cannam@89: # +Z the default cannam@89: ;; cannam@89: *) cannam@89: lt_prog_compiler_pic='+Z' cannam@89: ;; cannam@89: esac cannam@89: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@89: lt_prog_compiler_static='${wl}-a ${wl}archive' cannam@89: ;; cannam@89: cannam@89: irix5* | irix6* | nonstopux*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: # PIC (with -KPIC) is the default. cannam@89: lt_prog_compiler_static='-non_shared' cannam@89: ;; cannam@89: cannam@89: linux* | k*bsd*-gnu) cannam@89: case $cc_basename in cannam@89: icc* | ecc* | ifort*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: lt_prog_compiler_pic='-KPIC' cannam@89: lt_prog_compiler_static='-static' cannam@89: ;; cannam@89: pgcc* | pgf77* | pgf90* | pgf95*) cannam@89: # Portland Group compilers (*not* the Pentium gcc compiler, cannam@89: # which looks to be a dead project) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: lt_prog_compiler_pic='-fpic' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: ;; cannam@89: ccc*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: # All Alpha code is PIC. cannam@89: lt_prog_compiler_static='-non_shared' cannam@89: ;; cannam@89: xl*) cannam@89: # IBM XL C 8.0/Fortran 10.1 on PPC cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: lt_prog_compiler_pic='-qpic' cannam@89: lt_prog_compiler_static='-qstaticlink' cannam@89: ;; cannam@89: *) cannam@89: case `$CC -V 2>&1 | sed 5q` in cannam@89: *Sun\ C*) cannam@89: # Sun C 5.9 cannam@89: lt_prog_compiler_pic='-KPIC' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: ;; cannam@89: *Sun\ F*) cannam@89: # Sun Fortran 8.3 passes all unrecognized flags to the linker cannam@89: lt_prog_compiler_pic='-KPIC' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: lt_prog_compiler_wl='' cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: newsos6) cannam@89: lt_prog_compiler_pic='-KPIC' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: ;; cannam@89: cannam@89: *nto* | *qnx*) cannam@89: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@89: # it will coredump. cannam@89: lt_prog_compiler_pic='-fPIC -shared' cannam@89: ;; cannam@89: cannam@89: osf3* | osf4* | osf5*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: # All OSF/1 code is PIC. cannam@89: lt_prog_compiler_static='-non_shared' cannam@89: ;; cannam@89: cannam@89: rdos*) cannam@89: lt_prog_compiler_static='-non_shared' cannam@89: ;; cannam@89: cannam@89: solaris*) cannam@89: lt_prog_compiler_pic='-KPIC' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: case $cc_basename in cannam@89: f77* | f90* | f95*) cannam@89: lt_prog_compiler_wl='-Qoption ld ';; cannam@89: *) cannam@89: lt_prog_compiler_wl='-Wl,';; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: sunos4*) cannam@89: lt_prog_compiler_wl='-Qoption ld ' cannam@89: lt_prog_compiler_pic='-PIC' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: ;; cannam@89: cannam@89: sysv4 | sysv4.2uw2* | sysv4.3*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: lt_prog_compiler_pic='-KPIC' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: ;; cannam@89: cannam@89: sysv4*MP*) cannam@89: if test -d /usr/nec ;then cannam@89: lt_prog_compiler_pic='-Kconform_pic' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: lt_prog_compiler_pic='-KPIC' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: ;; cannam@89: cannam@89: unicos*) cannam@89: lt_prog_compiler_wl='-Wl,' cannam@89: lt_prog_compiler_can_build_shared=no cannam@89: ;; cannam@89: cannam@89: uts4*) cannam@89: lt_prog_compiler_pic='-pic' cannam@89: lt_prog_compiler_static='-Bstatic' cannam@89: ;; cannam@89: cannam@89: *) cannam@89: lt_prog_compiler_can_build_shared=no cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: cannam@89: case $host_os in cannam@89: # For platforms which do not support PIC, -DPIC is meaningless: cannam@89: *djgpp*) cannam@89: lt_prog_compiler_pic= cannam@89: ;; cannam@89: *) cannam@89: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" cannam@89: ;; cannam@89: esac cannam@89: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 cannam@89: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # cannam@89: # Check to make sure the PIC flag actually works. cannam@89: # cannam@89: if test -n "$lt_prog_compiler_pic"; then cannam@89: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 cannam@89: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_prog_compiler_pic_works=no cannam@89: ac_outfile=conftest.$ac_objext cannam@89: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@89: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" cannam@89: # Insert the option either (1) after the last *FLAGS variable, or cannam@89: # (2) before a word containing "conftest.", or (3) at the end. cannam@89: # Note that $ac_compile itself does not contain backslashes and begins cannam@89: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@89: # The option is referenced via a variable to avoid confusing sed. cannam@89: lt_compile=`echo "$ac_compile" | $SED \ cannam@89: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@89: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@89: -e 's:$: $lt_compiler_flag:'` cannam@89: (eval echo "\"\$as_me:7581: $lt_compile\"" >&5) cannam@89: (eval "$lt_compile" 2>conftest.err) cannam@89: ac_status=$? cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:7585: \$? = $ac_status" >&5 cannam@89: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@89: # The compiler can only warn and ignore the option if not recognized cannam@89: # So say no if there are warnings other than the usual output. cannam@89: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp cannam@89: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@89: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then cannam@89: lt_cv_prog_compiler_pic_works=yes cannam@89: fi cannam@89: fi cannam@89: $RM conftest* cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 cannam@89: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } cannam@89: cannam@89: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then cannam@89: case $lt_prog_compiler_pic in cannam@89: "" | " "*) ;; cannam@89: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; cannam@89: esac cannam@89: else cannam@89: lt_prog_compiler_pic= cannam@89: lt_prog_compiler_can_build_shared=no cannam@89: fi cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # cannam@89: # Check to make sure the static flag actually works. cannam@89: # cannam@89: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" cannam@89: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 cannam@89: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_prog_compiler_static_works+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_prog_compiler_static_works=no cannam@89: save_LDFLAGS="$LDFLAGS" cannam@89: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" cannam@89: echo "$lt_simple_link_test_code" > conftest.$ac_ext cannam@89: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@89: # The linker can only warn and ignore the option if not recognized cannam@89: # So say no if there are warnings cannam@89: if test -s conftest.err; then cannam@89: # Append any errors to the config.log. cannam@89: cat conftest.err 1>&5 cannam@89: $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp cannam@89: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@89: if diff conftest.exp conftest.er2 >/dev/null; then cannam@89: lt_cv_prog_compiler_static_works=yes cannam@89: fi cannam@89: else cannam@89: lt_cv_prog_compiler_static_works=yes cannam@89: fi cannam@89: fi cannam@89: $RM -r conftest* cannam@89: LDFLAGS="$save_LDFLAGS" cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 cannam@89: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } cannam@89: cannam@89: if test x"$lt_cv_prog_compiler_static_works" = xyes; then cannam@89: : cannam@89: else cannam@89: lt_prog_compiler_static= cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@89: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_prog_compiler_c_o+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_prog_compiler_c_o=no cannam@89: $RM -r conftest 2>/dev/null cannam@89: mkdir conftest cannam@89: cd conftest cannam@89: mkdir out cannam@89: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@89: cannam@89: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@89: # Insert the option either (1) after the last *FLAGS variable, or cannam@89: # (2) before a word containing "conftest.", or (3) at the end. cannam@89: # Note that $ac_compile itself does not contain backslashes and begins cannam@89: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@89: lt_compile=`echo "$ac_compile" | $SED \ cannam@89: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@89: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@89: -e 's:$: $lt_compiler_flag:'` cannam@89: (eval echo "\"\$as_me:7686: $lt_compile\"" >&5) cannam@89: (eval "$lt_compile" 2>out/conftest.err) cannam@89: ac_status=$? cannam@89: cat out/conftest.err >&5 cannam@89: echo "$as_me:7690: \$? = $ac_status" >&5 cannam@89: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@89: then cannam@89: # The compiler can only warn and ignore the option if not recognized cannam@89: # So say no if there are warnings cannam@89: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp cannam@89: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@89: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@89: lt_cv_prog_compiler_c_o=yes cannam@89: fi cannam@89: fi cannam@89: chmod u+w . 2>&5 cannam@89: $RM conftest* cannam@89: # SGI C++ compiler will create directory out/ii_files/ for cannam@89: # template instantiation cannam@89: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@89: $RM out/* && rmdir out cannam@89: cd .. cannam@89: $RM -r conftest cannam@89: $RM conftest* cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 cannam@89: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@89: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_prog_compiler_c_o+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: lt_cv_prog_compiler_c_o=no cannam@89: $RM -r conftest 2>/dev/null cannam@89: mkdir conftest cannam@89: cd conftest cannam@89: mkdir out cannam@89: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@89: cannam@89: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@89: # Insert the option either (1) after the last *FLAGS variable, or cannam@89: # (2) before a word containing "conftest.", or (3) at the end. cannam@89: # Note that $ac_compile itself does not contain backslashes and begins cannam@89: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@89: lt_compile=`echo "$ac_compile" | $SED \ cannam@89: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@89: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@89: -e 's:$: $lt_compiler_flag:'` cannam@89: (eval echo "\"\$as_me:7741: $lt_compile\"" >&5) cannam@89: (eval "$lt_compile" 2>out/conftest.err) cannam@89: ac_status=$? cannam@89: cat out/conftest.err >&5 cannam@89: echo "$as_me:7745: \$? = $ac_status" >&5 cannam@89: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@89: then cannam@89: # The compiler can only warn and ignore the option if not recognized cannam@89: # So say no if there are warnings cannam@89: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp cannam@89: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@89: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@89: lt_cv_prog_compiler_c_o=yes cannam@89: fi cannam@89: fi cannam@89: chmod u+w . 2>&5 cannam@89: $RM conftest* cannam@89: # SGI C++ compiler will create directory out/ii_files/ for cannam@89: # template instantiation cannam@89: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@89: $RM out/* && rmdir out cannam@89: cd .. cannam@89: $RM -r conftest cannam@89: $RM conftest* cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 cannam@89: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: hard_links="nottested" cannam@89: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then cannam@89: # do not overwrite the value of need_locks provided by the user cannam@89: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 cannam@89: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } cannam@89: hard_links=yes cannam@89: $RM conftest* cannam@89: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@89: touch conftest.a cannam@89: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@89: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@89: { echo "$as_me:$LINENO: result: $hard_links" >&5 cannam@89: echo "${ECHO_T}$hard_links" >&6; } cannam@89: if test "$hard_links" = no; then cannam@89: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 cannam@89: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} cannam@89: need_locks=warn cannam@89: fi cannam@89: else cannam@89: need_locks=no cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@89: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } cannam@89: cannam@89: runpath_var= cannam@89: allow_undefined_flag= cannam@89: always_export_symbols=no cannam@89: archive_cmds= cannam@89: archive_expsym_cmds= cannam@89: compiler_needs_object=no cannam@89: enable_shared_with_static_runtimes=no cannam@89: export_dynamic_flag_spec= cannam@89: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@89: hardcode_automatic=no cannam@89: hardcode_direct=no cannam@89: hardcode_direct_absolute=no cannam@89: hardcode_libdir_flag_spec= cannam@89: hardcode_libdir_flag_spec_ld= cannam@89: hardcode_libdir_separator= cannam@89: hardcode_minus_L=no cannam@89: hardcode_shlibpath_var=unsupported cannam@89: inherit_rpath=no cannam@89: link_all_deplibs=unknown cannam@89: module_cmds= cannam@89: module_expsym_cmds= cannam@89: old_archive_from_new_cmds= cannam@89: old_archive_from_expsyms_cmds= cannam@89: thread_safe_flag_spec= cannam@89: whole_archive_flag_spec= cannam@89: # include_expsyms should be a list of space-separated symbols to be *always* cannam@89: # included in the symbol list cannam@89: include_expsyms= cannam@89: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@89: # it will be wrapped by ` (' and `)$', so one must not match beginning or cannam@89: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', cannam@89: # as well as any symbol that contains `d'. cannam@89: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' cannam@89: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@89: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@89: # the symbol is explicitly referenced. Since portable code cannot cannam@89: # rely on this symbol name, it's probably fine to never include it in cannam@89: # preloaded symbol tables. cannam@89: # Exclude shared library initialization/finalization symbols. cannam@89: extract_expsyms_cmds= cannam@89: cannam@89: case $host_os in cannam@89: cygwin* | mingw* | pw32*) cannam@89: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@89: # When not using gcc, we currently assume that we are using cannam@89: # Microsoft Visual C++. cannam@89: if test "$GCC" != yes; then cannam@89: with_gnu_ld=no cannam@89: fi cannam@89: ;; cannam@89: interix*) cannam@89: # we just hope/assume this is gcc and not c89 (= MSVC++) cannam@89: with_gnu_ld=yes cannam@89: ;; cannam@89: openbsd*) cannam@89: with_gnu_ld=no cannam@89: ;; cannam@89: esac cannam@89: cannam@89: ld_shlibs=yes cannam@89: if test "$with_gnu_ld" = yes; then cannam@89: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@89: wlarc='${wl}' cannam@89: cannam@89: # Set some defaults for GNU ld with shared library support. These cannam@89: # are reset later if shared libraries are not supported. Putting them cannam@89: # here allows them to be overridden if necessary. cannam@89: runpath_var=LD_RUN_PATH cannam@89: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@89: export_dynamic_flag_spec='${wl}--export-dynamic' cannam@89: # ancient GNU ld didn't support --whole-archive et. al. cannam@89: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then cannam@89: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@89: else cannam@89: whole_archive_flag_spec= cannam@89: fi cannam@89: supports_anon_versioning=no cannam@89: case `$LD -v 2>&1` in cannam@89: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@89: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@89: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@89: *\ 2.11.*) ;; # other 2.11 versions cannam@89: *) supports_anon_versioning=yes ;; cannam@89: esac cannam@89: cannam@89: # See if GNU ld supports shared libraries. cannam@89: case $host_os in cannam@89: aix[3-9]*) cannam@89: # On AIX/PPC, the GNU linker is very broken cannam@89: if test "$host_cpu" != ia64; then cannam@89: ld_shlibs=no cannam@89: cat <<_LT_EOF 1>&2 cannam@89: cannam@89: *** Warning: the GNU linker, at least up to release 2.9.1, is reported cannam@89: *** to be unable to reliably create shared libraries on AIX. cannam@89: *** Therefore, libtool is disabling shared libraries support. If you cannam@89: *** really care for shared libraries, you may want to modify your PATH cannam@89: *** so that a non-GNU linker is found, and then restart. cannam@89: cannam@89: _LT_EOF cannam@89: fi cannam@89: ;; cannam@89: cannam@89: amigaos*) cannam@89: case $host_cpu in cannam@89: powerpc) cannam@89: # see comment about AmigaOS4 .so support cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@89: archive_expsym_cmds='' cannam@89: ;; cannam@89: m68k) cannam@89: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' cannam@89: hardcode_libdir_flag_spec='-L$libdir' cannam@89: hardcode_minus_L=yes cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: beos*) cannam@89: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@89: allow_undefined_flag=unsupported cannam@89: # Joseph Beckenbach says some releases of gcc cannam@89: # support --undefined. This deserves some investigation. FIXME cannam@89: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@89: else cannam@89: ld_shlibs=no cannam@89: fi cannam@89: ;; cannam@89: cannam@89: cygwin* | mingw* | pw32*) cannam@89: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, cannam@89: # as there is no search path for DLLs. cannam@89: hardcode_libdir_flag_spec='-L$libdir' cannam@89: allow_undefined_flag=unsupported cannam@89: always_export_symbols=no cannam@89: enable_shared_with_static_runtimes=yes cannam@89: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' cannam@89: cannam@89: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@89: # If the export-symbols file already is a .def file (1st line cannam@89: # is EXPORTS), use it as is; otherwise, prepend... cannam@89: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@89: cp $export_symbols $output_objdir/$soname.def; cannam@89: else cannam@89: echo EXPORTS > $output_objdir/$soname.def; cannam@89: cat $export_symbols >> $output_objdir/$soname.def; cannam@89: fi~ cannam@89: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@89: else cannam@89: ld_shlibs=no cannam@89: fi cannam@89: ;; cannam@89: cannam@89: interix[3-9]*) cannam@89: hardcode_direct=no cannam@89: hardcode_shlibpath_var=no cannam@89: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' cannam@89: export_dynamic_flag_spec='${wl}-E' cannam@89: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. cannam@89: # Instead, shared libraries are loaded at an image base (0x10000000 by cannam@89: # default) and relocated if they conflict, which is a slow very memory cannam@89: # consuming and fragmenting process. To avoid this, we pick a random, cannam@89: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link cannam@89: # time. Moving up from 0x10000000 also allows more sbrk(2) space. cannam@89: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' cannam@89: 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' cannam@89: ;; cannam@89: cannam@89: gnu* | linux* | tpf* | k*bsd*-gnu) cannam@89: tmp_diet=no cannam@89: if test "$host_os" = linux-dietlibc; then cannam@89: case $cc_basename in cannam@89: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) cannam@89: esac cannam@89: fi cannam@89: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ cannam@89: && test "$tmp_diet" = no cannam@89: then cannam@89: tmp_addflag= cannam@89: tmp_sharedflag='-shared' cannam@89: case $cc_basename,$host_cpu in cannam@89: pgcc*) # Portland Group C compiler cannam@89: 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' cannam@89: tmp_addflag=' $pic_flag' cannam@89: ;; cannam@89: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers cannam@89: 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' cannam@89: tmp_addflag=' $pic_flag -Mnomain' ;; cannam@89: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 cannam@89: tmp_addflag=' -i_dynamic' ;; cannam@89: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 cannam@89: tmp_addflag=' -i_dynamic -nofor_main' ;; cannam@89: ifc* | ifort*) # Intel Fortran compiler cannam@89: tmp_addflag=' -nofor_main' ;; cannam@89: xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) cannam@89: tmp_sharedflag='-qmkshrobj' cannam@89: tmp_addflag= ;; cannam@89: esac cannam@89: case `$CC -V 2>&1 | sed 5q` in cannam@89: *Sun\ C*) # Sun C 5.9 cannam@89: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' cannam@89: compiler_needs_object=yes cannam@89: tmp_sharedflag='-G' ;; cannam@89: *Sun\ F*) # Sun Fortran 8.3 cannam@89: tmp_sharedflag='-G' ;; cannam@89: esac cannam@89: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@89: cannam@89: if test "x$supports_anon_versioning" = xyes; then cannam@89: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cannam@89: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@89: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@89: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' cannam@89: fi cannam@89: cannam@89: case $cc_basename in cannam@89: xlf*) cannam@89: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself cannam@89: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' cannam@89: hardcode_libdir_flag_spec= cannam@89: hardcode_libdir_flag_spec_ld='-rpath $libdir' cannam@89: archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' cannam@89: if test "x$supports_anon_versioning" = xyes; then cannam@89: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cannam@89: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@89: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@89: $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: ld_shlibs=no cannam@89: fi cannam@89: ;; cannam@89: cannam@89: netbsd* | netbsdelf*-gnu) cannam@89: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@89: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@89: wlarc= cannam@89: else cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@89: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: solaris*) cannam@89: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then cannam@89: ld_shlibs=no cannam@89: cat <<_LT_EOF 1>&2 cannam@89: cannam@89: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@89: *** create shared libraries on Solaris systems. Therefore, libtool cannam@89: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@89: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@89: *** your PATH or compiler configuration so that the native linker is cannam@89: *** used, and then restart. cannam@89: cannam@89: _LT_EOF cannam@89: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@89: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@89: else cannam@89: ld_shlibs=no cannam@89: fi cannam@89: ;; cannam@89: cannam@89: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) cannam@89: case `$LD -v 2>&1` in cannam@89: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) cannam@89: ld_shlibs=no cannam@89: cat <<_LT_EOF 1>&2 cannam@89: cannam@89: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not cannam@89: *** reliably create shared libraries on SCO systems. Therefore, libtool cannam@89: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@89: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify cannam@89: *** your PATH or compiler configuration so that the native linker is cannam@89: *** used, and then restart. cannam@89: cannam@89: _LT_EOF cannam@89: ;; cannam@89: *) cannam@89: # For security reasons, it is highly recommended that you always cannam@89: # use absolute paths for naming shared libraries, and exclude the cannam@89: # DT_RUNPATH tag from executables and libraries. But doing so cannam@89: # requires that you compile everything twice, which is a pain. cannam@89: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@89: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@89: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@89: else cannam@89: ld_shlibs=no cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: sunos4*) cannam@89: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@89: wlarc= cannam@89: hardcode_direct=yes cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: *) cannam@89: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@89: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' cannam@89: else cannam@89: ld_shlibs=no cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: cannam@89: if test "$ld_shlibs" = no; then cannam@89: runpath_var= cannam@89: hardcode_libdir_flag_spec= cannam@89: export_dynamic_flag_spec= cannam@89: whole_archive_flag_spec= cannam@89: fi cannam@89: else cannam@89: # PORTME fill in a description of your system's linker (not GNU ld) cannam@89: case $host_os in cannam@89: aix3*) cannam@89: allow_undefined_flag=unsupported cannam@89: always_export_symbols=yes cannam@89: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' cannam@89: # Note: this linker hardcodes the directories in LIBPATH if there cannam@89: # are no directories specified by -L. cannam@89: hardcode_minus_L=yes cannam@89: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then cannam@89: # Neither direct hardcoding nor static linking is supported with a cannam@89: # broken collect2. cannam@89: hardcode_direct=unsupported cannam@89: fi cannam@89: ;; cannam@89: cannam@89: aix[4-9]*) cannam@89: if test "$host_cpu" = ia64; then cannam@89: # On IA64, the linker does run time linking by default, so we don't cannam@89: # have to do anything special. cannam@89: aix_use_runtimelinking=no cannam@89: exp_sym_flag='-Bexport' cannam@89: no_entry_flag="" cannam@89: else cannam@89: # If we're using GNU nm, then we don't want the "-C" option. cannam@89: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@89: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then cannam@89: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' cannam@89: else cannam@89: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' cannam@89: fi cannam@89: aix_use_runtimelinking=no cannam@89: cannam@89: # Test if we are trying to use run time linking or normal cannam@89: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@89: # need to do runtime linking. cannam@89: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) cannam@89: for ld_flag in $LDFLAGS; do cannam@89: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then cannam@89: aix_use_runtimelinking=yes cannam@89: break cannam@89: fi cannam@89: done cannam@89: ;; cannam@89: esac cannam@89: cannam@89: exp_sym_flag='-bexport' cannam@89: no_entry_flag='-bnoentry' cannam@89: fi cannam@89: cannam@89: # When large executables or shared objects are built, AIX ld can cannam@89: # have problems creating the table of contents. If linking a library cannam@89: # or program results in "error TOC overflow" add -mminimal-toc to cannam@89: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@89: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@89: cannam@89: archive_cmds='' cannam@89: hardcode_direct=yes cannam@89: hardcode_direct_absolute=yes cannam@89: hardcode_libdir_separator=':' cannam@89: link_all_deplibs=yes cannam@89: file_list_spec='${wl}-f,' cannam@89: cannam@89: if test "$GCC" = yes; then cannam@89: case $host_os in aix4.[012]|aix4.[012].*) cannam@89: # We only want to do this on AIX 4.2 and lower, the check cannam@89: # below for broken collect2 doesn't work under 4.3+ cannam@89: collect2name=`${CC} -print-prog-name=collect2` cannam@89: if test -f "$collect2name" && cannam@89: strings "$collect2name" | $GREP resolve_lib_name >/dev/null cannam@89: then cannam@89: # We have reworked collect2 cannam@89: : cannam@89: else cannam@89: # We have old collect2 cannam@89: hardcode_direct=unsupported cannam@89: # It fails to find uninstalled libraries when the uninstalled cannam@89: # path is not listed in the libpath. Setting hardcode_minus_L cannam@89: # to unsupported forces relinking cannam@89: hardcode_minus_L=yes cannam@89: hardcode_libdir_flag_spec='-L$libdir' cannam@89: hardcode_libdir_separator= cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: shared_flag='-shared' cannam@89: if test "$aix_use_runtimelinking" = yes; then cannam@89: shared_flag="$shared_flag "'${wl}-G' cannam@89: fi cannam@89: link_all_deplibs=no cannam@89: else cannam@89: # not using gcc cannam@89: if test "$host_cpu" = ia64; then cannam@89: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@89: # chokes on -Wl,-G. The following line is correct: cannam@89: shared_flag='-G' cannam@89: else cannam@89: if test "$aix_use_runtimelinking" = yes; then cannam@89: shared_flag='${wl}-G' cannam@89: else cannam@89: shared_flag='${wl}-bM:SRE' cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: cannam@89: # It seems that -bexpall does not export symbols beginning with cannam@89: # underscore (_), so it is better to generate a list of symbols to export. cannam@89: always_export_symbols=yes cannam@89: if test "$aix_use_runtimelinking" = yes; then cannam@89: # Warning - without using the other runtime loading flags (-brtl), cannam@89: # -berok will link without error, but may produce a broken library. cannam@89: allow_undefined_flag='-berok' cannam@89: # Determine the default libpath from the value encoded in an cannam@89: # empty executable. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: cannam@89: lt_aix_libpath_sed=' cannam@89: /Import File Strings/,/^$/ { cannam@89: /^0/ { cannam@89: s/^0 *\(.*\)$/\1/ cannam@89: p cannam@89: } cannam@89: }' cannam@89: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@89: # Check for a 64-bit object if we didn't find anything. cannam@89: if test -z "$aix_libpath"; then cannam@89: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@89: fi cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@89: cannam@89: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@89: 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" cannam@89: else cannam@89: if test "$host_cpu" = ia64; then cannam@89: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' cannam@89: allow_undefined_flag="-z nodefs" cannam@89: 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" cannam@89: else cannam@89: # Determine the default libpath from the value encoded in an cannam@89: # empty executable. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: cannam@89: lt_aix_libpath_sed=' cannam@89: /Import File Strings/,/^$/ { cannam@89: /^0/ { cannam@89: s/^0 *\(.*\)$/\1/ cannam@89: p cannam@89: } cannam@89: }' cannam@89: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@89: # Check for a 64-bit object if we didn't find anything. cannam@89: if test -z "$aix_libpath"; then cannam@89: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@89: fi cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@89: cannam@89: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@89: # Warning - without using the other run time loading flags, cannam@89: # -berok will link without error, but may produce a broken library. cannam@89: no_undefined_flag=' ${wl}-bernotok' cannam@89: allow_undefined_flag=' ${wl}-berok' cannam@89: # Exported symbols can be pulled into shared objects from archives cannam@89: whole_archive_flag_spec='$convenience' cannam@89: archive_cmds_need_lc=yes cannam@89: # This is similar to how AIX traditionally builds its shared libraries. cannam@89: 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' cannam@89: fi cannam@89: fi cannam@89: ;; cannam@89: cannam@89: amigaos*) cannam@89: case $host_cpu in cannam@89: powerpc) cannam@89: # see comment about AmigaOS4 .so support cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@89: archive_expsym_cmds='' cannam@89: ;; cannam@89: m68k) cannam@89: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' cannam@89: hardcode_libdir_flag_spec='-L$libdir' cannam@89: hardcode_minus_L=yes cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: bsdi[45]*) cannam@89: export_dynamic_flag_spec=-rdynamic cannam@89: ;; cannam@89: cannam@89: cygwin* | mingw* | pw32*) cannam@89: # When not using gcc, we currently assume that we are using cannam@89: # Microsoft Visual C++. cannam@89: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@89: # no search path for DLLs. cannam@89: hardcode_libdir_flag_spec=' ' cannam@89: allow_undefined_flag=unsupported cannam@89: # Tell ltmain to make .lib files, not .a files. cannam@89: libext=lib cannam@89: # Tell ltmain to make .dll files, not .so files. cannam@89: shrext_cmds=".dll" cannam@89: # FIXME: Setting linknames here is a bad hack. cannam@89: archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@89: # The linker will automatically build a .lib file if we build a DLL. cannam@89: old_archive_from_new_cmds='true' cannam@89: # FIXME: Should let the user specify the lib program. cannam@89: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' cannam@89: fix_srcfile_path='`cygpath -w "$srcfile"`' cannam@89: enable_shared_with_static_runtimes=yes cannam@89: ;; cannam@89: cannam@89: darwin* | rhapsody*) cannam@89: cannam@89: cannam@89: archive_cmds_need_lc=no cannam@89: hardcode_direct=no cannam@89: hardcode_automatic=yes cannam@89: hardcode_shlibpath_var=unsupported cannam@89: whole_archive_flag_spec='' cannam@89: link_all_deplibs=yes cannam@89: allow_undefined_flag="$_lt_dar_allow_undefined" cannam@89: if test "$GCC" = "yes"; then cannam@89: output_verbose_link_cmd=echo cannam@89: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" cannam@89: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" cannam@89: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" cannam@89: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" cannam@89: cannam@89: else cannam@89: ld_shlibs=no cannam@89: fi cannam@89: cannam@89: ;; cannam@89: cannam@89: dgux*) cannam@89: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_libdir_flag_spec='-L$libdir' cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: freebsd1*) cannam@89: ld_shlibs=no cannam@89: ;; cannam@89: cannam@89: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@89: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@89: # does not break anything, and helps significantly (at the cost of a little cannam@89: # extra space). cannam@89: freebsd2.2*) cannam@89: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@89: hardcode_libdir_flag_spec='-R$libdir' cannam@89: hardcode_direct=yes cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@89: freebsd2*) cannam@89: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_direct=yes cannam@89: hardcode_minus_L=yes cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@89: freebsd* | dragonfly*) cannam@89: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' cannam@89: hardcode_libdir_flag_spec='-R$libdir' cannam@89: hardcode_direct=yes cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: hpux9*) cannam@89: if test "$GCC" = yes; then cannam@89: archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@89: else cannam@89: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' cannam@89: fi cannam@89: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@89: hardcode_libdir_separator=: cannam@89: hardcode_direct=yes cannam@89: cannam@89: # hardcode_minus_L: Not really in the search PATH, cannam@89: # but as the default location of the library. cannam@89: hardcode_minus_L=yes cannam@89: export_dynamic_flag_spec='${wl}-E' cannam@89: ;; cannam@89: cannam@89: hpux10*) cannam@89: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@89: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@89: else cannam@89: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@89: fi cannam@89: if test "$with_gnu_ld" = no; then cannam@89: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@89: hardcode_libdir_flag_spec_ld='+b $libdir' cannam@89: hardcode_libdir_separator=: cannam@89: hardcode_direct=yes cannam@89: hardcode_direct_absolute=yes cannam@89: export_dynamic_flag_spec='${wl}-E' cannam@89: # hardcode_minus_L: Not really in the search PATH, cannam@89: # but as the default location of the library. cannam@89: hardcode_minus_L=yes cannam@89: fi cannam@89: ;; cannam@89: cannam@89: hpux11*) cannam@89: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@89: case $host_cpu in cannam@89: hppa*64*) cannam@89: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: ;; cannam@89: ia64*) cannam@89: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' cannam@89: ;; cannam@89: *) cannam@89: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: case $host_cpu in cannam@89: hppa*64*) cannam@89: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: ;; cannam@89: ia64*) cannam@89: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' cannam@89: ;; cannam@89: *) cannam@89: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: if test "$with_gnu_ld" = no; then cannam@89: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' cannam@89: hardcode_libdir_separator=: cannam@89: cannam@89: case $host_cpu in cannam@89: hppa*64*|ia64*) cannam@89: hardcode_direct=no cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: *) cannam@89: hardcode_direct=yes cannam@89: hardcode_direct_absolute=yes cannam@89: export_dynamic_flag_spec='${wl}-E' cannam@89: cannam@89: # hardcode_minus_L: Not really in the search PATH, cannam@89: # but as the default location of the library. cannam@89: hardcode_minus_L=yes cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: ;; cannam@89: cannam@89: irix5* | irix6* | nonstopux*) cannam@89: if test "$GCC" = yes; then cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@89: # Try to use the -exported_symbol ld option, if it does not cannam@89: # work, assume that -exports_file does not work either and cannam@89: # implicitly export all symbols. cannam@89: save_LDFLAGS="$LDFLAGS" cannam@89: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: int foo(void) {} cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' cannam@89: cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LDFLAGS="$save_LDFLAGS" cannam@89: else cannam@89: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' cannam@89: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' cannam@89: fi cannam@89: archive_cmds_need_lc='no' cannam@89: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@89: hardcode_libdir_separator=: cannam@89: inherit_rpath=yes cannam@89: link_all_deplibs=yes cannam@89: ;; cannam@89: cannam@89: netbsd* | netbsdelf*-gnu) cannam@89: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@89: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@89: else cannam@89: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@89: fi cannam@89: hardcode_libdir_flag_spec='-R$libdir' cannam@89: hardcode_direct=yes cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: newsos6) cannam@89: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_direct=yes cannam@89: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@89: hardcode_libdir_separator=: cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: *nto* | *qnx*) cannam@89: ;; cannam@89: cannam@89: openbsd*) cannam@89: if test -f /usr/libexec/ld.so; then cannam@89: hardcode_direct=yes cannam@89: hardcode_shlibpath_var=no cannam@89: hardcode_direct_absolute=yes cannam@89: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@89: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@89: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' cannam@89: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' cannam@89: export_dynamic_flag_spec='${wl}-E' cannam@89: else cannam@89: case $host_os in cannam@89: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) cannam@89: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_libdir_flag_spec='-R$libdir' cannam@89: ;; cannam@89: *) cannam@89: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@89: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: else cannam@89: ld_shlibs=no cannam@89: fi cannam@89: ;; cannam@89: cannam@89: os2*) cannam@89: hardcode_libdir_flag_spec='-L$libdir' cannam@89: hardcode_minus_L=yes cannam@89: allow_undefined_flag=unsupported cannam@89: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' cannam@89: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' cannam@89: ;; cannam@89: cannam@89: osf3*) cannam@89: if test "$GCC" = yes; then cannam@89: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' cannam@89: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@89: else cannam@89: allow_undefined_flag=' -expect_unresolved \*' cannam@89: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' cannam@89: fi cannam@89: archive_cmds_need_lc='no' cannam@89: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@89: hardcode_libdir_separator=: cannam@89: ;; cannam@89: cannam@89: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@89: if test "$GCC" = yes; then cannam@89: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' cannam@89: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' cannam@89: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' cannam@89: else cannam@89: allow_undefined_flag=' -expect_unresolved \*' cannam@89: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' cannam@89: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ cannam@89: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' cannam@89: cannam@89: # Both c and cxx compiler support -rpath directly cannam@89: hardcode_libdir_flag_spec='-rpath $libdir' cannam@89: fi cannam@89: archive_cmds_need_lc='no' cannam@89: hardcode_libdir_separator=: cannam@89: ;; cannam@89: cannam@89: solaris*) cannam@89: no_undefined_flag=' -z defs' cannam@89: if test "$GCC" = yes; then cannam@89: wlarc='${wl}' cannam@89: archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@89: $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' cannam@89: else cannam@89: case `$CC -V 2>&1` in cannam@89: *"Compilers 5.0"*) cannam@89: wlarc='' cannam@89: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@89: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@89: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' cannam@89: ;; cannam@89: *) cannam@89: wlarc='${wl}' cannam@89: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@89: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: hardcode_libdir_flag_spec='-R$libdir' cannam@89: hardcode_shlibpath_var=no cannam@89: case $host_os in cannam@89: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@89: *) cannam@89: # The compiler driver will combine and reorder linker options, cannam@89: # but understands `-z linker_flag'. GCC discards it without `$wl', cannam@89: # but is careful enough not to reorder. cannam@89: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@89: if test "$GCC" = yes; then cannam@89: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' cannam@89: else cannam@89: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: link_all_deplibs=yes cannam@89: ;; cannam@89: cannam@89: sunos4*) cannam@89: if test "x$host_vendor" = xsequent; then cannam@89: # Use $CC to link under sequent, because it throws in some extra .o cannam@89: # files that make .init and .fini sections work. cannam@89: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: else cannam@89: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@89: fi cannam@89: hardcode_libdir_flag_spec='-L$libdir' cannam@89: hardcode_direct=yes cannam@89: hardcode_minus_L=yes cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: sysv4) cannam@89: case $host_vendor in cannam@89: sni) cannam@89: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_direct=yes # is this really true??? cannam@89: ;; cannam@89: siemens) cannam@89: ## LD is ld it makes a PLAMLIB cannam@89: ## CC just makes a GrossModule. cannam@89: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@89: reload_cmds='$CC -r -o $output$reload_objs' cannam@89: hardcode_direct=no cannam@89: ;; cannam@89: motorola) cannam@89: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_direct=no #Motorola manual says yes, but my tests say they lie cannam@89: ;; cannam@89: esac cannam@89: runpath_var='LD_RUN_PATH' cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: sysv4.3*) cannam@89: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_shlibpath_var=no cannam@89: export_dynamic_flag_spec='-Bexport' cannam@89: ;; cannam@89: cannam@89: sysv4*MP*) cannam@89: if test -d /usr/nec; then cannam@89: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_shlibpath_var=no cannam@89: runpath_var=LD_RUN_PATH cannam@89: hardcode_runpath_var=yes cannam@89: ld_shlibs=yes cannam@89: fi cannam@89: ;; cannam@89: cannam@89: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) cannam@89: no_undefined_flag='${wl}-z,text' cannam@89: archive_cmds_need_lc=no cannam@89: hardcode_shlibpath_var=no cannam@89: runpath_var='LD_RUN_PATH' cannam@89: cannam@89: if test "$GCC" = yes; then cannam@89: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: else cannam@89: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: sysv5* | sco3.2v5* | sco5v6*) cannam@89: # Note: We can NOT use -z defs as we might desire, because we do not cannam@89: # link with -lc, and that would cause any symbols used from libc to cannam@89: # always be unresolved, which means just about no library would cannam@89: # ever link correctly. If we're not using GNU ld we use -z text cannam@89: # though, which does catch some bad symbols but isn't as heavy-handed cannam@89: # as -z defs. cannam@89: no_undefined_flag='${wl}-z,text' cannam@89: allow_undefined_flag='${wl}-z,nodefs' cannam@89: archive_cmds_need_lc=no cannam@89: hardcode_shlibpath_var=no cannam@89: hardcode_libdir_flag_spec='${wl}-R,$libdir' cannam@89: hardcode_libdir_separator=':' cannam@89: link_all_deplibs=yes cannam@89: export_dynamic_flag_spec='${wl}-Bexport' cannam@89: runpath_var='LD_RUN_PATH' cannam@89: cannam@89: if test "$GCC" = yes; then cannam@89: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: else cannam@89: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: uts4*) cannam@89: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@89: hardcode_libdir_flag_spec='-L$libdir' cannam@89: hardcode_shlibpath_var=no cannam@89: ;; cannam@89: cannam@89: *) cannam@89: ld_shlibs=no cannam@89: ;; cannam@89: esac cannam@89: cannam@89: if test x$host_vendor = xsni; then cannam@89: case $host in cannam@89: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@89: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 cannam@89: echo "${ECHO_T}$ld_shlibs" >&6; } cannam@89: test "$ld_shlibs" = no && can_build_shared=no cannam@89: cannam@89: with_gnu_ld=$with_gnu_ld cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # cannam@89: # Do we need to explicitly link libc? cannam@89: # cannam@89: case "x$archive_cmds_need_lc" in cannam@89: x|xyes) cannam@89: # Assume -lc should be added cannam@89: archive_cmds_need_lc=yes cannam@89: cannam@89: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@89: case $archive_cmds in cannam@89: *'~'*) cannam@89: # FIXME: we may have to deal with multi-command sequences. cannam@89: ;; cannam@89: '$CC '*) cannam@89: # Test whether the compiler implicitly links with -lc since on some cannam@89: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@89: # to ld, don't add -lc before -lgcc. cannam@89: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 cannam@89: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } cannam@89: $RM conftest* cannam@89: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@89: cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cannam@89: (eval $ac_compile) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } 2>conftest.err; then cannam@89: soname=conftest cannam@89: lib=conftest cannam@89: libobjs=conftest.$ac_objext cannam@89: deplibs= cannam@89: wl=$lt_prog_compiler_wl cannam@89: pic_flag=$lt_prog_compiler_pic cannam@89: compiler_flags=-v cannam@89: linker_flags=-v cannam@89: verstring= cannam@89: output_objdir=. cannam@89: libname=conftest cannam@89: lt_save_allow_undefined_flag=$allow_undefined_flag cannam@89: allow_undefined_flag= cannam@89: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 cannam@89: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } cannam@89: then cannam@89: archive_cmds_need_lc=no cannam@89: else cannam@89: archive_cmds_need_lc=yes cannam@89: fi cannam@89: allow_undefined_flag=$lt_save_allow_undefined_flag cannam@89: else cannam@89: cat conftest.err 1>&5 cannam@89: fi cannam@89: $RM conftest* cannam@89: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 cannam@89: echo "${ECHO_T}$archive_cmds_need_lc" >&6; } cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 cannam@89: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } cannam@89: cannam@89: if test "$GCC" = yes; then cannam@89: case $host_os in cannam@89: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; cannam@89: *) lt_awk_arg="/^libraries:/" ;; cannam@89: esac cannam@89: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@89: if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then cannam@89: # if the path contains ";" then we assume it to be the separator cannam@89: # otherwise default to the standard path separator (i.e. ":") - it is cannam@89: # assumed that no part of a normal pathname contains ";" but that should cannam@89: # okay in the real world where ";" in dirpaths is itself problematic. cannam@89: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` cannam@89: else cannam@89: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@89: fi cannam@89: # Ok, now we have the path, separated by spaces, we can step through it cannam@89: # and add multilib dir if necessary. cannam@89: lt_tmp_lt_search_path_spec= cannam@89: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` cannam@89: for lt_sys_path in $lt_search_path_spec; do cannam@89: if test -d "$lt_sys_path/$lt_multi_os_dir"; then cannam@89: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" cannam@89: else cannam@89: test -d "$lt_sys_path" && \ cannam@89: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" cannam@89: fi cannam@89: done cannam@89: lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' cannam@89: BEGIN {RS=" "; FS="/|\n";} { cannam@89: lt_foo=""; cannam@89: lt_count=0; cannam@89: for (lt_i = NF; lt_i > 0; lt_i--) { cannam@89: if ($lt_i != "" && $lt_i != ".") { cannam@89: if ($lt_i == "..") { cannam@89: lt_count++; cannam@89: } else { cannam@89: if (lt_count == 0) { cannam@89: lt_foo="/" $lt_i lt_foo; cannam@89: } else { cannam@89: lt_count--; cannam@89: } cannam@89: } cannam@89: } cannam@89: } cannam@89: if (lt_foo != "") { lt_freq[lt_foo]++; } cannam@89: if (lt_freq[lt_foo] == 1) { print lt_foo; } cannam@89: }'` cannam@89: sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` cannam@89: else cannam@89: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@89: fi cannam@89: library_names_spec= cannam@89: libname_spec='lib$name' cannam@89: soname_spec= cannam@89: shrext_cmds=".so" cannam@89: postinstall_cmds= cannam@89: postuninstall_cmds= cannam@89: finish_cmds= cannam@89: finish_eval= cannam@89: shlibpath_var= cannam@89: shlibpath_overrides_runpath=unknown cannam@89: version_type=none cannam@89: dynamic_linker="$host_os ld.so" cannam@89: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@89: need_lib_prefix=unknown cannam@89: hardcode_into_libs=no cannam@89: cannam@89: # when you set need_version to no, make sure it does not cause -set_version cannam@89: # flags to be left without arguments cannam@89: need_version=unknown cannam@89: cannam@89: case $host_os in cannam@89: aix3*) cannam@89: version_type=linux cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@89: shlibpath_var=LIBPATH cannam@89: cannam@89: # AIX 3 has no versioning support, so we append a major version to the name. cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: ;; cannam@89: cannam@89: aix[4-9]*) cannam@89: version_type=linux cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: hardcode_into_libs=yes cannam@89: if test "$host_cpu" = ia64; then cannam@89: # AIX 5 supports IA64 cannam@89: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: else cannam@89: # With GCC up to 2.95.x, collect2 would create an import file cannam@89: # for dependence libraries. The import file would start with cannam@89: # the line `#! .'. This would cause the generated library to cannam@89: # depend on `.', always an invalid library. This was fixed in cannam@89: # development snapshots of GCC prior to 3.0. cannam@89: case $host_os in cannam@89: aix4 | aix4.[01] | aix4.[01].*) cannam@89: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@89: echo ' yes ' cannam@89: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then cannam@89: : cannam@89: else cannam@89: can_build_shared=no cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@89: # soname into executable. Probably we can add versioning support to cannam@89: # collect2, so additional links can be useful in future. cannam@89: if test "$aix_use_runtimelinking" = yes; then cannam@89: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@89: # instead of lib.a to let people know that these are not cannam@89: # typical AIX shared libraries. cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: else cannam@89: # We preserve .a as extension for shared libraries through AIX4.2 cannam@89: # and later when we are not doing run time linking. cannam@89: library_names_spec='${libname}${release}.a $libname.a' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: fi cannam@89: shlibpath_var=LIBPATH cannam@89: fi cannam@89: ;; cannam@89: cannam@89: amigaos*) cannam@89: case $host_cpu in cannam@89: powerpc) cannam@89: # Since July 2007 AmigaOS4 officially supports .so libraries. cannam@89: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: ;; cannam@89: m68k) cannam@89: library_names_spec='$libname.ixlibrary $libname.a' cannam@89: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@89: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: beos*) cannam@89: library_names_spec='${libname}${shared_ext}' cannam@89: dynamic_linker="$host_os ld.so" cannam@89: shlibpath_var=LIBRARY_PATH cannam@89: ;; cannam@89: cannam@89: bsdi[45]*) cannam@89: version_type=linux cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@89: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@89: # the default ld.so.conf also contains /usr/contrib/lib and cannam@89: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@89: # libtool to hard-code these into programs cannam@89: ;; cannam@89: cannam@89: cygwin* | mingw* | pw32*) cannam@89: version_type=windows cannam@89: shrext_cmds=".dll" cannam@89: need_version=no cannam@89: need_lib_prefix=no cannam@89: cannam@89: case $GCC,$host_os in cannam@89: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@89: library_names_spec='$libname.dll.a' cannam@89: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@89: postinstall_cmds='base_file=`basename \${file}`~ cannam@89: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ cannam@89: dldir=$destdir/`dirname \$dlpath`~ cannam@89: test -d \$dldir || mkdir -p \$dldir~ cannam@89: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@89: chmod a+x \$dldir/$dlname~ cannam@89: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@89: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@89: fi' cannam@89: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@89: dlpath=$dir/\$dldll~ cannam@89: $RM \$dlpath' cannam@89: shlibpath_overrides_runpath=yes cannam@89: cannam@89: case $host_os in cannam@89: cygwin*) cannam@89: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@89: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@89: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@89: ;; cannam@89: mingw*) cannam@89: # MinGW DLLs use traditional 'lib' prefix cannam@89: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@89: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@89: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then cannam@89: # It is most probably a Windows format PATH printed by cannam@89: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@89: # path with ; separators, and with drive letters. We can handle the cannam@89: # drive letters (cygwin fileutils understands them), so leave them, cannam@89: # especially as we might pass files found there to a mingw objdump, cannam@89: # which wouldn't understand a cygwinified path. Ahh. cannam@89: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@89: else cannam@89: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@89: fi cannam@89: ;; cannam@89: pw32*) cannam@89: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@89: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: *) cannam@89: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@89: ;; cannam@89: esac cannam@89: dynamic_linker='Win32 ld.exe' cannam@89: # FIXME: first we should search . and the directory the executable is in cannam@89: shlibpath_var=PATH cannam@89: ;; cannam@89: cannam@89: darwin* | rhapsody*) cannam@89: dynamic_linker="$host_os dyld" cannam@89: version_type=darwin cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@89: soname_spec='${libname}${release}${major}$shared_ext' cannam@89: shlibpath_overrides_runpath=yes cannam@89: shlibpath_var=DYLD_LIBRARY_PATH cannam@89: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' cannam@89: cannam@89: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" cannam@89: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@89: ;; cannam@89: cannam@89: dgux*) cannam@89: version_type=linux cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: ;; cannam@89: cannam@89: freebsd1*) cannam@89: dynamic_linker=no cannam@89: ;; cannam@89: cannam@89: freebsd* | dragonfly*) cannam@89: # DragonFly does not have aout. When/if they implement a new cannam@89: # versioning mechanism, adjust this. cannam@89: if test -x /usr/bin/objformat; then cannam@89: objformat=`/usr/bin/objformat` cannam@89: else cannam@89: case $host_os in cannam@89: freebsd[123]*) objformat=aout ;; cannam@89: *) objformat=elf ;; cannam@89: esac cannam@89: fi cannam@89: version_type=freebsd-$objformat cannam@89: case $version_type in cannam@89: freebsd-elf*) cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@89: need_version=no cannam@89: need_lib_prefix=no cannam@89: ;; cannam@89: freebsd-*) cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@89: need_version=yes cannam@89: ;; cannam@89: esac cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: case $host_os in cannam@89: freebsd2*) cannam@89: shlibpath_overrides_runpath=yes cannam@89: ;; cannam@89: freebsd3.[01]* | freebsdelf3.[01]*) cannam@89: shlibpath_overrides_runpath=yes cannam@89: hardcode_into_libs=yes cannam@89: ;; cannam@89: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ cannam@89: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) cannam@89: shlibpath_overrides_runpath=no cannam@89: hardcode_into_libs=yes cannam@89: ;; cannam@89: *) # from 4.6 on, and DragonFly cannam@89: shlibpath_overrides_runpath=yes cannam@89: hardcode_into_libs=yes cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: gnu*) cannam@89: version_type=linux cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: hardcode_into_libs=yes cannam@89: ;; cannam@89: cannam@89: hpux9* | hpux10* | hpux11*) cannam@89: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@89: # link against other versions. cannam@89: version_type=sunos cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: case $host_cpu in cannam@89: ia64*) cannam@89: shrext_cmds='.so' cannam@89: hardcode_into_libs=yes cannam@89: dynamic_linker="$host_os dld.so" cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: if test "X$HPUX_IA64_MODE" = X32; then cannam@89: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@89: else cannam@89: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@89: fi cannam@89: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@89: ;; cannam@89: hppa*64*) cannam@89: shrext_cmds='.sl' cannam@89: hardcode_into_libs=yes cannam@89: dynamic_linker="$host_os dld.sl" cannam@89: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@89: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@89: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@89: ;; cannam@89: *) cannam@89: shrext_cmds='.sl' cannam@89: dynamic_linker="$host_os dld.sl" cannam@89: shlibpath_var=SHLIB_PATH cannam@89: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: ;; cannam@89: esac cannam@89: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@89: postinstall_cmds='chmod 555 $lib' cannam@89: ;; cannam@89: cannam@89: interix[3-9]*) cannam@89: version_type=linux cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=no cannam@89: hardcode_into_libs=yes cannam@89: ;; cannam@89: cannam@89: irix5* | irix6* | nonstopux*) cannam@89: case $host_os in cannam@89: nonstopux*) version_type=nonstopux ;; cannam@89: *) cannam@89: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@89: version_type=linux cannam@89: else cannam@89: version_type=irix cannam@89: fi ;; cannam@89: esac cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@89: case $host_os in cannam@89: irix5* | nonstopux*) cannam@89: libsuff= shlibsuff= cannam@89: ;; cannam@89: *) cannam@89: case $LD in # libtool.m4 will add one of these switches to LD cannam@89: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@89: libsuff= shlibsuff= libmagic=32-bit;; cannam@89: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@89: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@89: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@89: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@89: *) libsuff= shlibsuff= libmagic=never-match;; cannam@89: esac cannam@89: ;; cannam@89: esac cannam@89: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@89: shlibpath_overrides_runpath=no cannam@89: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@89: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@89: hardcode_into_libs=yes cannam@89: ;; cannam@89: cannam@89: # No shared lib support for Linux oldld, aout, or coff. cannam@89: linux*oldld* | linux*aout* | linux*coff*) cannam@89: dynamic_linker=no cannam@89: ;; cannam@89: cannam@89: # This must be Linux ELF. cannam@89: linux* | k*bsd*-gnu) cannam@89: version_type=linux cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=no cannam@89: # Some binutils ld are patched to set DT_RUNPATH cannam@89: save_LDFLAGS=$LDFLAGS cannam@89: save_libdir=$libdir cannam@89: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ cannam@89: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then cannam@89: shlibpath_overrides_runpath=yes cannam@89: fi cannam@89: cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LDFLAGS=$save_LDFLAGS cannam@89: libdir=$save_libdir cannam@89: cannam@89: # This implies no fast_install, which is unacceptable. cannam@89: # Some rework will be needed to allow for fast_install cannam@89: # before this can be enabled. cannam@89: hardcode_into_libs=yes cannam@89: cannam@89: # Append ld.so.conf contents to the search path cannam@89: if test -f /etc/ld.so.conf; then cannam@89: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` cannam@89: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" cannam@89: fi cannam@89: cannam@89: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@89: # powerpc, because MkLinux only supported shared libraries with the cannam@89: # GNU dynamic linker. Since this was broken with cross compilers, cannam@89: # most powerpc-linux boxes support dynamic linking these days and cannam@89: # people can always --disable-shared, the test was removed, and we cannam@89: # assume the GNU/Linux dynamic linker is in use. cannam@89: dynamic_linker='GNU/Linux ld.so' cannam@89: ;; cannam@89: cannam@89: netbsdelf*-gnu) cannam@89: version_type=linux cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=no cannam@89: hardcode_into_libs=yes cannam@89: dynamic_linker='NetBSD ld.elf_so' cannam@89: ;; cannam@89: cannam@89: netbsd*) cannam@89: version_type=sunos cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@89: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@89: dynamic_linker='NetBSD (a.out) ld.so' cannam@89: else cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: dynamic_linker='NetBSD ld.elf_so' cannam@89: fi cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=yes cannam@89: hardcode_into_libs=yes cannam@89: ;; cannam@89: cannam@89: newsos6) cannam@89: version_type=linux cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=yes cannam@89: ;; cannam@89: cannam@89: *nto* | *qnx*) cannam@89: version_type=qnx cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=no cannam@89: hardcode_into_libs=yes cannam@89: dynamic_linker='ldqnx.so' cannam@89: ;; cannam@89: cannam@89: openbsd*) cannam@89: version_type=sunos cannam@89: sys_lib_dlsearch_path_spec="/usr/lib" cannam@89: need_lib_prefix=no cannam@89: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. cannam@89: case $host_os in cannam@89: openbsd3.3 | openbsd3.3.*) need_version=yes ;; cannam@89: *) need_version=no ;; cannam@89: esac cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@89: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@89: case $host_os in cannam@89: openbsd2.[89] | openbsd2.[89].*) cannam@89: shlibpath_overrides_runpath=no cannam@89: ;; cannam@89: *) cannam@89: shlibpath_overrides_runpath=yes cannam@89: ;; cannam@89: esac cannam@89: else cannam@89: shlibpath_overrides_runpath=yes cannam@89: fi cannam@89: ;; cannam@89: cannam@89: os2*) cannam@89: libname_spec='$name' cannam@89: shrext_cmds=".dll" cannam@89: need_lib_prefix=no cannam@89: library_names_spec='$libname${shared_ext} $libname.a' cannam@89: dynamic_linker='OS/2 ld.exe' cannam@89: shlibpath_var=LIBPATH cannam@89: ;; cannam@89: cannam@89: osf3* | osf4* | osf5*) cannam@89: version_type=osf cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@89: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@89: ;; cannam@89: cannam@89: rdos*) cannam@89: dynamic_linker=no cannam@89: ;; cannam@89: cannam@89: solaris*) cannam@89: version_type=linux cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=yes cannam@89: hardcode_into_libs=yes cannam@89: # ldd complains unless libraries are executable cannam@89: postinstall_cmds='chmod +x $lib' cannam@89: ;; cannam@89: cannam@89: sunos4*) cannam@89: version_type=sunos cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@89: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=yes cannam@89: if test "$with_gnu_ld" = yes; then cannam@89: need_lib_prefix=no cannam@89: fi cannam@89: need_version=yes cannam@89: ;; cannam@89: cannam@89: sysv4 | sysv4.3*) cannam@89: version_type=linux cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: case $host_vendor in cannam@89: sni) cannam@89: shlibpath_overrides_runpath=no cannam@89: need_lib_prefix=no cannam@89: runpath_var=LD_RUN_PATH cannam@89: ;; cannam@89: siemens) cannam@89: need_lib_prefix=no cannam@89: ;; cannam@89: motorola) cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: shlibpath_overrides_runpath=no cannam@89: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@89: ;; cannam@89: esac cannam@89: ;; cannam@89: cannam@89: sysv4*MP*) cannam@89: if test -d /usr/nec ;then cannam@89: version_type=linux cannam@89: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@89: soname_spec='$libname${shared_ext}.$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: fi cannam@89: ;; cannam@89: cannam@89: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) cannam@89: version_type=freebsd-elf cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=yes cannam@89: hardcode_into_libs=yes cannam@89: if test "$with_gnu_ld" = yes; then cannam@89: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' cannam@89: else cannam@89: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' cannam@89: case $host_os in cannam@89: sco3.2v5*) cannam@89: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: sys_lib_dlsearch_path_spec='/usr/lib' cannam@89: ;; cannam@89: cannam@89: tpf*) cannam@89: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. cannam@89: version_type=linux cannam@89: need_lib_prefix=no cannam@89: need_version=no cannam@89: library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: shlibpath_overrides_runpath=no cannam@89: hardcode_into_libs=yes cannam@89: ;; cannam@89: cannam@89: uts4*) cannam@89: version_type=linux cannam@89: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@89: soname_spec='${libname}${release}${shared_ext}$major' cannam@89: shlibpath_var=LD_LIBRARY_PATH cannam@89: ;; cannam@89: cannam@89: *) cannam@89: dynamic_linker=no cannam@89: ;; cannam@89: esac cannam@89: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 cannam@89: echo "${ECHO_T}$dynamic_linker" >&6; } cannam@89: test "$dynamic_linker" = no && can_build_shared=no cannam@89: cannam@89: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@89: if test "$GCC" = yes; then cannam@89: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@89: fi cannam@89: cannam@89: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then cannam@89: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" cannam@89: fi cannam@89: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then cannam@89: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 cannam@89: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } cannam@89: hardcode_action= cannam@89: if test -n "$hardcode_libdir_flag_spec" || cannam@89: test -n "$runpath_var" || cannam@89: test "X$hardcode_automatic" = "Xyes" ; then cannam@89: cannam@89: # We can hardcode non-existent directories. cannam@89: if test "$hardcode_direct" != no && cannam@89: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@89: # have to relink, otherwise we might link with an installed library cannam@89: # when we should be linking with a yet-to-be-installed one cannam@89: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && cannam@89: test "$hardcode_minus_L" != no; then cannam@89: # Linking always hardcodes the temporary library directory. cannam@89: hardcode_action=relink cannam@89: else cannam@89: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@89: hardcode_action=immediate cannam@89: fi cannam@89: else cannam@89: # We cannot hardcode anything, or else we can only hardcode existing cannam@89: # directories. cannam@89: hardcode_action=unsupported cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $hardcode_action" >&5 cannam@89: echo "${ECHO_T}$hardcode_action" >&6; } cannam@89: cannam@89: if test "$hardcode_action" = relink || cannam@89: test "$inherit_rpath" = yes; then cannam@89: # Fast installation is not supported cannam@89: enable_fast_install=no cannam@89: elif test "$shlibpath_overrides_runpath" = yes || cannam@89: test "$enable_shared" = no; then cannam@89: # Fast installation is not necessary cannam@89: enable_fast_install=needless cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: if test "x$enable_dlopen" != xyes; then cannam@89: enable_dlopen=unknown cannam@89: enable_dlopen_self=unknown cannam@89: enable_dlopen_self_static=unknown cannam@89: else cannam@89: lt_cv_dlopen=no cannam@89: lt_cv_dlopen_libs= cannam@89: cannam@89: case $host_os in cannam@89: beos*) cannam@89: lt_cv_dlopen="load_add_on" cannam@89: lt_cv_dlopen_libs= cannam@89: lt_cv_dlopen_self=yes cannam@89: ;; cannam@89: cannam@89: mingw* | pw32*) cannam@89: lt_cv_dlopen="LoadLibrary" cannam@89: lt_cv_dlopen_libs= cannam@89: ;; cannam@89: cannam@89: cygwin*) cannam@89: lt_cv_dlopen="dlopen" cannam@89: lt_cv_dlopen_libs= cannam@89: ;; cannam@89: cannam@89: darwin*) cannam@89: # if libdl is installed we need to link against it cannam@89: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@89: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_check_lib_save_LIBS=$LIBS cannam@89: LIBS="-ldl $LIBS" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char dlopen (); cannam@89: int cannam@89: main () cannam@89: { cannam@89: return dlopen (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_lib_dl_dlopen=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_lib_dl_dlopen=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LIBS=$ac_check_lib_save_LIBS cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@89: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } cannam@89: if test $ac_cv_lib_dl_dlopen = yes; then cannam@89: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@89: else cannam@89: cannam@89: lt_cv_dlopen="dyld" cannam@89: lt_cv_dlopen_libs= cannam@89: lt_cv_dlopen_self=yes cannam@89: cannam@89: fi cannam@89: cannam@89: ;; cannam@89: cannam@89: *) cannam@89: { echo "$as_me:$LINENO: checking for shl_load" >&5 cannam@89: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_func_shl_load+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: /* Define shl_load to an innocuous variant, in case declares shl_load. cannam@89: For example, HP-UX 11i declares gettimeofday. */ cannam@89: #define shl_load innocuous_shl_load cannam@89: cannam@89: /* System header to define __stub macros and hopefully few prototypes, cannam@89: which can conflict with char shl_load (); below. cannam@89: Prefer to if __STDC__ is defined, since cannam@89: exists even on freestanding compilers. */ cannam@89: cannam@89: #ifdef __STDC__ cannam@89: # include cannam@89: #else cannam@89: # include cannam@89: #endif cannam@89: cannam@89: #undef shl_load cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char shl_load (); cannam@89: /* The GNU C library defines this for functions which it implements cannam@89: to always fail with ENOSYS. Some functions are actually named cannam@89: something starting with __ and the normal name is an alias. */ cannam@89: #if defined __stub_shl_load || defined __stub___shl_load cannam@89: choke me cannam@89: #endif cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: return shl_load (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_func_shl_load=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_func_shl_load=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 cannam@89: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } cannam@89: if test $ac_cv_func_shl_load = yes; then cannam@89: lt_cv_dlopen="shl_load" cannam@89: else cannam@89: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 cannam@89: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_lib_dld_shl_load+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_check_lib_save_LIBS=$LIBS cannam@89: LIBS="-ldld $LIBS" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char shl_load (); cannam@89: int cannam@89: main () cannam@89: { cannam@89: return shl_load (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_lib_dld_shl_load=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_lib_dld_shl_load=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LIBS=$ac_check_lib_save_LIBS cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 cannam@89: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } cannam@89: if test $ac_cv_lib_dld_shl_load = yes; then cannam@89: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" cannam@89: else cannam@89: { echo "$as_me:$LINENO: checking for dlopen" >&5 cannam@89: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_func_dlopen+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: /* Define dlopen to an innocuous variant, in case declares dlopen. cannam@89: For example, HP-UX 11i declares gettimeofday. */ cannam@89: #define dlopen innocuous_dlopen cannam@89: cannam@89: /* System header to define __stub macros and hopefully few prototypes, cannam@89: which can conflict with char dlopen (); below. cannam@89: Prefer to if __STDC__ is defined, since cannam@89: exists even on freestanding compilers. */ cannam@89: cannam@89: #ifdef __STDC__ cannam@89: # include cannam@89: #else cannam@89: # include cannam@89: #endif cannam@89: cannam@89: #undef dlopen cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char dlopen (); cannam@89: /* The GNU C library defines this for functions which it implements cannam@89: to always fail with ENOSYS. Some functions are actually named cannam@89: something starting with __ and the normal name is an alias. */ cannam@89: #if defined __stub_dlopen || defined __stub___dlopen cannam@89: choke me cannam@89: #endif cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: return dlopen (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_func_dlopen=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_func_dlopen=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 cannam@89: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } cannam@89: if test $ac_cv_func_dlopen = yes; then cannam@89: lt_cv_dlopen="dlopen" cannam@89: else cannam@89: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 cannam@89: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_lib_dl_dlopen+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_check_lib_save_LIBS=$LIBS cannam@89: LIBS="-ldl $LIBS" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char dlopen (); cannam@89: int cannam@89: main () cannam@89: { cannam@89: return dlopen (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_lib_dl_dlopen=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_lib_dl_dlopen=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LIBS=$ac_check_lib_save_LIBS cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 cannam@89: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } cannam@89: if test $ac_cv_lib_dl_dlopen = yes; then cannam@89: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" cannam@89: else cannam@89: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 cannam@89: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_lib_svld_dlopen+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_check_lib_save_LIBS=$LIBS cannam@89: LIBS="-lsvld $LIBS" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char dlopen (); cannam@89: int cannam@89: main () cannam@89: { cannam@89: return dlopen (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_lib_svld_dlopen=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_lib_svld_dlopen=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LIBS=$ac_check_lib_save_LIBS cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 cannam@89: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } cannam@89: if test $ac_cv_lib_svld_dlopen = yes; then cannam@89: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" cannam@89: else cannam@89: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 cannam@89: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_lib_dld_dld_link+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_check_lib_save_LIBS=$LIBS cannam@89: LIBS="-ldld $LIBS" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char dld_link (); cannam@89: int cannam@89: main () cannam@89: { cannam@89: return dld_link (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_lib_dld_dld_link=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_lib_dld_dld_link=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LIBS=$ac_check_lib_save_LIBS cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 cannam@89: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } cannam@89: if test $ac_cv_lib_dld_dld_link = yes; then cannam@89: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: ;; cannam@89: esac cannam@89: cannam@89: if test "x$lt_cv_dlopen" != xno; then cannam@89: enable_dlopen=yes cannam@89: else cannam@89: enable_dlopen=no cannam@89: fi cannam@89: cannam@89: case $lt_cv_dlopen in cannam@89: dlopen) cannam@89: save_CPPFLAGS="$CPPFLAGS" cannam@89: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@89: cannam@89: save_LDFLAGS="$LDFLAGS" cannam@89: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@89: cannam@89: save_LIBS="$LIBS" cannam@89: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 cannam@89: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_dlopen_self+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test "$cross_compiling" = yes; then : cannam@89: lt_cv_dlopen_self=cross cannam@89: else cannam@89: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@89: lt_status=$lt_dlunknown cannam@89: cat > conftest.$ac_ext <<_LT_EOF cannam@89: #line 10502 "configure" cannam@89: #include "confdefs.h" cannam@89: cannam@89: #if HAVE_DLFCN_H cannam@89: #include cannam@89: #endif cannam@89: cannam@89: #include cannam@89: cannam@89: #ifdef RTLD_GLOBAL cannam@89: # define LT_DLGLOBAL RTLD_GLOBAL cannam@89: #else cannam@89: # ifdef DL_GLOBAL cannam@89: # define LT_DLGLOBAL DL_GLOBAL cannam@89: # else cannam@89: # define LT_DLGLOBAL 0 cannam@89: # endif cannam@89: #endif cannam@89: cannam@89: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@89: find out it does not work in some platform. */ cannam@89: #ifndef LT_DLLAZY_OR_NOW cannam@89: # ifdef RTLD_LAZY cannam@89: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@89: # else cannam@89: # ifdef DL_LAZY cannam@89: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@89: # else cannam@89: # ifdef RTLD_NOW cannam@89: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@89: # else cannam@89: # ifdef DL_NOW cannam@89: # define LT_DLLAZY_OR_NOW DL_NOW cannam@89: # else cannam@89: # define LT_DLLAZY_OR_NOW 0 cannam@89: # endif cannam@89: # endif cannam@89: # endif cannam@89: # endif cannam@89: #endif cannam@89: cannam@89: #ifdef __cplusplus cannam@89: extern "C" void exit (int); cannam@89: #endif cannam@89: cannam@89: void fnord() { int i=42;} cannam@89: int main () cannam@89: { cannam@89: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@89: int status = $lt_dlunknown; cannam@89: cannam@89: if (self) cannam@89: { cannam@89: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@89: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@89: /* dlclose (self); */ cannam@89: } cannam@89: else cannam@89: puts (dlerror ()); cannam@89: cannam@89: exit (status); cannam@89: } cannam@89: _LT_EOF cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@89: (eval $ac_link) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@89: (./conftest; exit; ) >&5 2>/dev/null cannam@89: lt_status=$? cannam@89: case x$lt_status in cannam@89: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@89: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@89: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; cannam@89: esac cannam@89: else : cannam@89: # compilation failed cannam@89: lt_cv_dlopen_self=no cannam@89: fi cannam@89: fi cannam@89: rm -fr conftest* cannam@89: cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 cannam@89: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } cannam@89: cannam@89: if test "x$lt_cv_dlopen_self" = xyes; then cannam@89: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" cannam@89: { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 cannam@89: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } cannam@89: if test "${lt_cv_dlopen_self_static+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test "$cross_compiling" = yes; then : cannam@89: lt_cv_dlopen_self_static=cross cannam@89: else cannam@89: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@89: lt_status=$lt_dlunknown cannam@89: cat > conftest.$ac_ext <<_LT_EOF cannam@89: #line 10602 "configure" cannam@89: #include "confdefs.h" cannam@89: cannam@89: #if HAVE_DLFCN_H cannam@89: #include cannam@89: #endif cannam@89: cannam@89: #include cannam@89: cannam@89: #ifdef RTLD_GLOBAL cannam@89: # define LT_DLGLOBAL RTLD_GLOBAL cannam@89: #else cannam@89: # ifdef DL_GLOBAL cannam@89: # define LT_DLGLOBAL DL_GLOBAL cannam@89: # else cannam@89: # define LT_DLGLOBAL 0 cannam@89: # endif cannam@89: #endif cannam@89: cannam@89: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@89: find out it does not work in some platform. */ cannam@89: #ifndef LT_DLLAZY_OR_NOW cannam@89: # ifdef RTLD_LAZY cannam@89: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@89: # else cannam@89: # ifdef DL_LAZY cannam@89: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@89: # else cannam@89: # ifdef RTLD_NOW cannam@89: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@89: # else cannam@89: # ifdef DL_NOW cannam@89: # define LT_DLLAZY_OR_NOW DL_NOW cannam@89: # else cannam@89: # define LT_DLLAZY_OR_NOW 0 cannam@89: # endif cannam@89: # endif cannam@89: # endif cannam@89: # endif cannam@89: #endif cannam@89: cannam@89: #ifdef __cplusplus cannam@89: extern "C" void exit (int); cannam@89: #endif cannam@89: cannam@89: void fnord() { int i=42;} cannam@89: int main () cannam@89: { cannam@89: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@89: int status = $lt_dlunknown; cannam@89: cannam@89: if (self) cannam@89: { cannam@89: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@89: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@89: /* dlclose (self); */ cannam@89: } cannam@89: else cannam@89: puts (dlerror ()); cannam@89: cannam@89: exit (status); cannam@89: } cannam@89: _LT_EOF cannam@89: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 cannam@89: (eval $ac_link) 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then cannam@89: (./conftest; exit; ) >&5 2>/dev/null cannam@89: lt_status=$? cannam@89: case x$lt_status in cannam@89: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@89: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@89: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; cannam@89: esac cannam@89: else : cannam@89: # compilation failed cannam@89: lt_cv_dlopen_self_static=no cannam@89: fi cannam@89: fi cannam@89: rm -fr conftest* cannam@89: cannam@89: cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 cannam@89: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } cannam@89: fi cannam@89: cannam@89: CPPFLAGS="$save_CPPFLAGS" cannam@89: LDFLAGS="$save_LDFLAGS" cannam@89: LIBS="$save_LIBS" cannam@89: ;; cannam@89: esac cannam@89: cannam@89: case $lt_cv_dlopen_self in cannam@89: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@89: *) enable_dlopen_self=unknown ;; cannam@89: esac cannam@89: cannam@89: case $lt_cv_dlopen_self_static in cannam@89: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@89: *) enable_dlopen_self_static=unknown ;; cannam@89: esac cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: striplib= cannam@89: old_striplib= cannam@89: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 cannam@89: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } cannam@89: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then cannam@89: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@89: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@89: { echo "$as_me:$LINENO: result: yes" >&5 cannam@89: echo "${ECHO_T}yes" >&6; } cannam@89: else cannam@89: # FIXME - insert some real tests, host_os isn't really good enough cannam@89: case $host_os in cannam@89: darwin*) cannam@89: if test -n "$STRIP" ; then cannam@89: striplib="$STRIP -x" cannam@89: old_striplib="$STRIP -S" cannam@89: { echo "$as_me:$LINENO: result: yes" >&5 cannam@89: echo "${ECHO_T}yes" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: ;; cannam@89: *) cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: ;; cannam@89: esac cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Report which library types will actually be built cannam@89: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 cannam@89: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } cannam@89: { echo "$as_me:$LINENO: result: $can_build_shared" >&5 cannam@89: echo "${ECHO_T}$can_build_shared" >&6; } cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 cannam@89: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } cannam@89: test "$can_build_shared" = "no" && enable_shared=no cannam@89: cannam@89: # On AIX, shared libraries and static libraries use the same namespace, and cannam@89: # are all built from PIC. cannam@89: case $host_os in cannam@89: aix3*) cannam@89: test "$enable_shared" = yes && enable_static=no cannam@89: if test -n "$RANLIB"; then cannam@89: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@89: postinstall_cmds='$RANLIB $lib' cannam@89: fi cannam@89: ;; cannam@89: cannam@89: aix[4-9]*) cannam@89: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then cannam@89: test "$enable_shared" = yes && enable_static=no cannam@89: fi cannam@89: ;; cannam@89: esac cannam@89: { echo "$as_me:$LINENO: result: $enable_shared" >&5 cannam@89: echo "${ECHO_T}$enable_shared" >&6; } cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 cannam@89: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } cannam@89: # Make sure either enable_shared or enable_static is yes. cannam@89: test "$enable_shared" = yes || enable_static=yes cannam@89: { echo "$as_me:$LINENO: result: $enable_static" >&5 cannam@89: echo "${ECHO_T}$enable_static" >&6; } cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: fi cannam@89: ac_ext=c cannam@89: ac_cpp='$CPP $CPPFLAGS' cannam@89: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@89: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@89: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@89: cannam@89: CC="$lt_save_CC" cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: ac_config_commands="$ac_config_commands libtool" cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Only expand once: cannam@89: cannam@89: cannam@89: if test "x$CC" != xcc; then cannam@89: { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 cannam@89: echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 cannam@89: echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } cannam@89: fi cannam@89: set dummy $CC; ac_cc=`echo $2 | cannam@89: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` cannam@89: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: # Make sure it works both with $CC and with simple cc. cannam@89: # We do the test twice because some compilers refuse to overwrite an cannam@89: # existing .o file with -o, though they will create one. cannam@89: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' cannam@89: rm -f conftest2.* cannam@89: if { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && cannam@89: test -f conftest2.$ac_objext && { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; cannam@89: then cannam@89: eval ac_cv_prog_cc_${ac_cc}_c_o=yes cannam@89: if test "x$CC" != xcc; then cannam@89: # Test first that cc exists at all. cannam@89: if { ac_try='cc -c conftest.$ac_ext >&5' cannam@89: { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; }; then cannam@89: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' cannam@89: rm -f conftest2.* cannam@89: if { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && cannam@89: test -f conftest2.$ac_objext && { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; cannam@89: then cannam@89: # cc works too. cannam@89: : cannam@89: else cannam@89: # cc exists but doesn't like -o. cannam@89: eval ac_cv_prog_cc_${ac_cc}_c_o=no cannam@89: fi cannam@89: fi cannam@89: fi cannam@89: else cannam@89: eval ac_cv_prog_cc_${ac_cc}_c_o=no cannam@89: fi cannam@89: rm -f core conftest* cannam@89: cannam@89: fi cannam@89: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then cannam@89: { echo "$as_me:$LINENO: result: yes" >&5 cannam@89: echo "${ECHO_T}yes" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define NO_MINUS_C_MINUS_O 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: # FIXME: we rely on the cache variable name because cannam@89: # there is no other way. cannam@89: set dummy $CC cannam@89: ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` cannam@89: if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then cannam@89: # Losing compiler, so override with the script. cannam@89: # FIXME: It is wrong to rewrite CC. cannam@89: # But if we don't then we get into trouble of one sort or another. cannam@89: # A longer-term fix would be to have automake use am__CC in this case, cannam@89: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" cannam@89: CC="$am_aux_dir/compile $CC" cannam@89: fi cannam@89: cannam@89: cannam@89: # Extract the first word of "doxygen", so it can be a program name with args. cannam@89: set dummy doxygen; ac_word=$2 cannam@89: { echo "$as_me:$LINENO: checking for $ac_word" >&5 cannam@89: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_prog_DOXYGEN+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: if test -n "$DOXYGEN"; then cannam@89: ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. cannam@89: else cannam@89: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: for ac_exec_ext in '' $ac_executable_extensions; do cannam@89: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then cannam@89: ac_cv_prog_DOXYGEN="doc" cannam@89: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@89: break 2 cannam@89: fi cannam@89: done cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: fi cannam@89: fi cannam@89: DOXYGEN=$ac_cv_prog_DOXYGEN cannam@89: if test -n "$DOXYGEN"; then cannam@89: { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 cannam@89: echo "${ECHO_T}$DOXYGEN" >&6; } cannam@89: else cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # Checks for libraries. cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 cannam@89: echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_check_lib_save_LIBS=$LIBS cannam@89: LIBS="-lpthread $LIBS" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char pthread_create (); cannam@89: int cannam@89: main () cannam@89: { cannam@89: return pthread_create (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_lib_pthread_pthread_create=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_lib_pthread_pthread_create=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LIBS=$ac_check_lib_save_LIBS cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 cannam@89: echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } cannam@89: if test $ac_cv_lib_pthread_pthread_create = yes; then cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define HAVE_LIBPTHREAD 1 cannam@89: _ACEOF cannam@89: cannam@89: LIBS="-lpthread $LIBS" cannam@89: cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for library containing recvfrom" >&5 cannam@89: echo $ECHO_N "checking for library containing recvfrom... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_search_recvfrom+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_func_search_save_LIBS=$LIBS cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char recvfrom (); cannam@89: int cannam@89: main () cannam@89: { cannam@89: return recvfrom (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: for ac_lib in '' socket; do cannam@89: if test -z "$ac_lib"; then cannam@89: ac_res="none required" cannam@89: else cannam@89: ac_res=-l$ac_lib cannam@89: LIBS="-l$ac_lib $ac_func_search_save_LIBS" cannam@89: fi cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_search_recvfrom=$ac_res cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext cannam@89: if test "${ac_cv_search_recvfrom+set}" = set; then cannam@89: break cannam@89: fi cannam@89: done cannam@89: if test "${ac_cv_search_recvfrom+set}" = set; then cannam@89: : cannam@89: else cannam@89: ac_cv_search_recvfrom=no cannam@89: fi cannam@89: rm conftest.$ac_ext cannam@89: LIBS=$ac_func_search_save_LIBS cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_search_recvfrom" >&5 cannam@89: echo "${ECHO_T}$ac_cv_search_recvfrom" >&6; } cannam@89: ac_res=$ac_cv_search_recvfrom cannam@89: if test "$ac_res" != no; then cannam@89: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" cannam@89: cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for log" >&5 cannam@89: echo $ECHO_N "checking for log... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_func_log+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: /* Define log to an innocuous variant, in case declares log. cannam@89: For example, HP-UX 11i declares gettimeofday. */ cannam@89: #define log innocuous_log cannam@89: cannam@89: /* System header to define __stub macros and hopefully few prototypes, cannam@89: which can conflict with char log (); below. cannam@89: Prefer to if __STDC__ is defined, since cannam@89: exists even on freestanding compilers. */ cannam@89: cannam@89: #ifdef __STDC__ cannam@89: # include cannam@89: #else cannam@89: # include cannam@89: #endif cannam@89: cannam@89: #undef log cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char log (); cannam@89: /* The GNU C library defines this for functions which it implements cannam@89: to always fail with ENOSYS. Some functions are actually named cannam@89: something starting with __ and the normal name is an alias. */ cannam@89: #if defined __stub_log || defined __stub___log cannam@89: choke me cannam@89: #endif cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: return log (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_func_log=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_func_log=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_func_log" >&5 cannam@89: echo "${ECHO_T}$ac_cv_func_log" >&6; } cannam@89: if test $ac_cv_func_log = yes; then cannam@89: : cannam@89: else cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for log in -lm" >&5 cannam@89: echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_lib_m_log+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: ac_check_lib_save_LIBS=$LIBS cannam@89: LIBS="-lm $LIBS" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char log (); cannam@89: int cannam@89: main () cannam@89: { cannam@89: return log (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_lib_m_log=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_lib_m_log=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: LIBS=$ac_check_lib_save_LIBS cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 cannam@89: echo "${ECHO_T}$ac_cv_lib_m_log" >&6; } cannam@89: if test $ac_cv_lib_m_log = yes; then cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define HAVE_LIBM 1 cannam@89: _ACEOF cannam@89: cannam@89: LIBS="-lm $LIBS" cannam@89: cannam@89: fi cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: # Checks for header files. cannam@89: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 cannam@89: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_header_stdc+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: #include cannam@89: #include cannam@89: #include cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_cv_header_stdc=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_header_stdc=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: cannam@89: if test $ac_cv_header_stdc = yes; then cannam@89: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: cannam@89: _ACEOF cannam@89: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@89: $EGREP "memchr" >/dev/null 2>&1; then cannam@89: : cannam@89: else cannam@89: ac_cv_header_stdc=no cannam@89: fi cannam@89: rm -f conftest* cannam@89: cannam@89: fi cannam@89: cannam@89: if test $ac_cv_header_stdc = yes; then cannam@89: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: cannam@89: _ACEOF cannam@89: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@89: $EGREP "free" >/dev/null 2>&1; then cannam@89: : cannam@89: else cannam@89: ac_cv_header_stdc=no cannam@89: fi cannam@89: rm -f conftest* cannam@89: cannam@89: fi cannam@89: cannam@89: if test $ac_cv_header_stdc = yes; then cannam@89: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@89: if test "$cross_compiling" = yes; then cannam@89: : cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: #include cannam@89: #if ((' ' & 0x0FF) == 0x020) cannam@89: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@89: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@89: #else cannam@89: # define ISLOWER(c) \ cannam@89: (('a' <= (c) && (c) <= 'i') \ cannam@89: || ('j' <= (c) && (c) <= 'r') \ cannam@89: || ('s' <= (c) && (c) <= 'z')) cannam@89: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@89: #endif cannam@89: cannam@89: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@89: int cannam@89: main () cannam@89: { cannam@89: int i; cannam@89: for (i = 0; i < 256; i++) cannam@89: if (XOR (islower (i), ISLOWER (i)) cannam@89: || toupper (i) != TOUPPER (i)) cannam@89: return 2; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@89: { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; }; then cannam@89: : cannam@89: else cannam@89: echo "$as_me: program exited with status $ac_status" >&5 cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ( exit $ac_status ) cannam@89: ac_cv_header_stdc=no cannam@89: fi cannam@89: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 cannam@89: echo "${ECHO_T}$ac_cv_header_stdc" >&6; } cannam@89: if test $ac_cv_header_stdc = yes; then cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define STDC_HEADERS 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: for ac_header in netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h cannam@89: do cannam@89: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@89: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then cannam@89: { echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@89: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } cannam@89: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: fi cannam@89: ac_res=`eval echo '${'$as_ac_Header'}'` cannam@89: { echo "$as_me:$LINENO: result: $ac_res" >&5 cannam@89: echo "${ECHO_T}$ac_res" >&6; } cannam@89: else cannam@89: # Is the header compilable? cannam@89: { echo "$as_me:$LINENO: checking $ac_header usability" >&5 cannam@89: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: $ac_includes_default cannam@89: #include <$ac_header> cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_header_compiler=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_header_compiler=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 cannam@89: echo "${ECHO_T}$ac_header_compiler" >&6; } cannam@89: cannam@89: # Is the header present? cannam@89: { echo "$as_me:$LINENO: checking $ac_header presence" >&5 cannam@89: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include <$ac_header> cannam@89: _ACEOF cannam@89: if { (ac_try="$ac_cpp conftest.$ac_ext" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } >/dev/null && { cannam@89: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: }; then cannam@89: ac_header_preproc=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_header_preproc=no cannam@89: fi cannam@89: cannam@89: rm -f conftest.err conftest.$ac_ext cannam@89: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 cannam@89: echo "${ECHO_T}$ac_header_preproc" >&6; } cannam@89: cannam@89: # So? What about this header? cannam@89: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in cannam@89: yes:no: ) cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 cannam@89: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 cannam@89: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} cannam@89: ac_header_preproc=yes cannam@89: ;; cannam@89: no:yes:* ) cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 cannam@89: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 cannam@89: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 cannam@89: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 cannam@89: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 cannam@89: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 cannam@89: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} cannam@89: ( cat <<\_ASBOX cannam@89: ## ------------------------------------------------ ## cannam@89: ## Report this to liblo-devel@lists.sourceforge.net ## cannam@89: ## ------------------------------------------------ ## cannam@89: _ASBOX cannam@89: ) | sed "s/^/$as_me: WARNING: /" >&2 cannam@89: ;; cannam@89: esac cannam@89: { echo "$as_me:$LINENO: checking for $ac_header" >&5 cannam@89: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } cannam@89: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: eval "$as_ac_Header=\$ac_header_preproc" cannam@89: fi cannam@89: ac_res=`eval echo '${'$as_ac_Header'}'` cannam@89: { echo "$as_me:$LINENO: result: $ac_res" >&5 cannam@89: echo "${ECHO_T}$ac_res" >&6; } cannam@89: cannam@89: fi cannam@89: if test `eval echo '${'$as_ac_Header'}'` = yes; then cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: done cannam@89: cannam@89: cannam@89: # Checks for typedefs, structures, and compiler characteristics. cannam@89: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 cannam@89: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_c_const+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: /* FIXME: Include the comments suggested by Paul. */ cannam@89: #ifndef __cplusplus cannam@89: /* Ultrix mips cc rejects this. */ cannam@89: typedef int charset[2]; cannam@89: const charset cs; cannam@89: /* SunOS 4.1.1 cc rejects this. */ cannam@89: char const *const *pcpcc; cannam@89: char **ppc; cannam@89: /* NEC SVR4.0.2 mips cc rejects this. */ cannam@89: struct point {int x, y;}; cannam@89: static struct point const zero = {0,0}; cannam@89: /* AIX XL C 1.02.0.0 rejects this. cannam@89: It does not let you subtract one const X* pointer from another in cannam@89: an arm of an if-expression whose if-part is not a constant cannam@89: expression */ cannam@89: const char *g = "string"; cannam@89: pcpcc = &g + (g ? g-g : 0); cannam@89: /* HPUX 7.0 cc rejects these. */ cannam@89: ++pcpcc; cannam@89: ppc = (char**) pcpcc; cannam@89: pcpcc = (char const *const *) ppc; cannam@89: { /* SCO 3.2v4 cc rejects this. */ cannam@89: char *t; cannam@89: char const *s = 0 ? (char *) 0 : (char const *) 0; cannam@89: cannam@89: *t++ = 0; cannam@89: if (s) return 0; cannam@89: } cannam@89: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ cannam@89: int x[] = {25, 17}; cannam@89: const int *foo = &x[0]; cannam@89: ++foo; cannam@89: } cannam@89: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ cannam@89: typedef const int *iptr; cannam@89: iptr p = 0; cannam@89: ++p; cannam@89: } cannam@89: { /* AIX XL C 1.02.0.0 rejects this saying cannam@89: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ cannam@89: struct s { int j; const int *ap[3]; }; cannam@89: struct s *b; b->j = 5; cannam@89: } cannam@89: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ cannam@89: const int foo = 10; cannam@89: if (!foo) return 0; cannam@89: } cannam@89: return !cs[0] && !zero.x; cannam@89: #endif cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_cv_c_const=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_c_const=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 cannam@89: echo "${ECHO_T}$ac_cv_c_const" >&6; } cannam@89: if test $ac_cv_c_const = no; then cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define const cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for size_t" >&5 cannam@89: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_type_size_t+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: $ac_includes_default cannam@89: typedef size_t ac__type_new_; cannam@89: int cannam@89: main () cannam@89: { cannam@89: if ((ac__type_new_ *) 0) cannam@89: return 0; cannam@89: if (sizeof (ac__type_new_)) cannam@89: return 0; cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_cv_type_size_t=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_type_size_t=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 cannam@89: echo "${ECHO_T}$ac_cv_type_size_t" >&6; } cannam@89: if test $ac_cv_type_size_t = yes; then cannam@89: : cannam@89: else cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define size_t unsigned int cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: # Check for features cannam@89: { echo "$as_me:$LINENO: checking for select" >&5 cannam@89: echo $ECHO_N "checking for select... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_func_select+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: /* Define select to an innocuous variant, in case declares select. cannam@89: For example, HP-UX 11i declares gettimeofday. */ cannam@89: #define select innocuous_select cannam@89: cannam@89: /* System header to define __stub macros and hopefully few prototypes, cannam@89: which can conflict with char select (); below. cannam@89: Prefer to if __STDC__ is defined, since cannam@89: exists even on freestanding compilers. */ cannam@89: cannam@89: #ifdef __STDC__ cannam@89: # include cannam@89: #else cannam@89: # include cannam@89: #endif cannam@89: cannam@89: #undef select cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char select (); cannam@89: /* The GNU C library defines this for functions which it implements cannam@89: to always fail with ENOSYS. Some functions are actually named cannam@89: something starting with __ and the normal name is an alias. */ cannam@89: #if defined __stub_select || defined __stub___select cannam@89: choke me cannam@89: #endif cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: return select (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_func_select=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_func_select=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5 cannam@89: echo "${ECHO_T}$ac_cv_func_select" >&6; } cannam@89: if test $ac_cv_func_select = yes; then cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define HAVE_SELECT 1 cannam@89: _ACEOF cannam@89: cannam@89: else cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for select in ws2_32" >&5 cannam@89: echo $ECHO_N "checking for select in ws2_32... $ECHO_C" >&6; } cannam@89: LIBS="$LIBS -lws2_32" cannam@89: # some winsock2 functions require XP, so WINNT=0x501 cannam@89: CFLAGS="$CFLAGS -DWIN32 -D_WIN32_WINNT=0x501" cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: int cannam@89: main () cannam@89: { cannam@89: select(0,0,0,0,0) cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: { echo "$as_me:$LINENO: result: yes" >&5 cannam@89: echo "${ECHO_T}yes" >&6; } cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define HAVE_SELECT 1 cannam@89: _ACEOF cannam@89: cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: { echo "$as_me:$LINENO: result: no" >&5 cannam@89: echo "${ECHO_T}no" >&6; } cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for poll" >&5 cannam@89: echo $ECHO_N "checking for poll... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_func_poll+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: /* Define poll to an innocuous variant, in case declares poll. cannam@89: For example, HP-UX 11i declares gettimeofday. */ cannam@89: #define poll innocuous_poll cannam@89: cannam@89: /* System header to define __stub macros and hopefully few prototypes, cannam@89: which can conflict with char poll (); below. cannam@89: Prefer to if __STDC__ is defined, since cannam@89: exists even on freestanding compilers. */ cannam@89: cannam@89: #ifdef __STDC__ cannam@89: # include cannam@89: #else cannam@89: # include cannam@89: #endif cannam@89: cannam@89: #undef poll cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char poll (); cannam@89: /* The GNU C library defines this for functions which it implements cannam@89: to always fail with ENOSYS. Some functions are actually named cannam@89: something starting with __ and the normal name is an alias. */ cannam@89: #if defined __stub_poll || defined __stub___poll cannam@89: choke me cannam@89: #endif cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: return poll (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_func_poll=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_func_poll=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 cannam@89: echo "${ECHO_T}$ac_cv_func_poll" >&6; } cannam@89: if test $ac_cv_func_poll = yes; then cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define HAVE_POLL 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: { echo "$as_me:$LINENO: checking for inet_aton" >&5 cannam@89: echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_func_inet_aton+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: /* Define inet_aton to an innocuous variant, in case declares inet_aton. cannam@89: For example, HP-UX 11i declares gettimeofday. */ cannam@89: #define inet_aton innocuous_inet_aton cannam@89: cannam@89: /* System header to define __stub macros and hopefully few prototypes, cannam@89: which can conflict with char inet_aton (); below. cannam@89: Prefer to if __STDC__ is defined, since cannam@89: exists even on freestanding compilers. */ cannam@89: cannam@89: #ifdef __STDC__ cannam@89: # include cannam@89: #else cannam@89: # include cannam@89: #endif cannam@89: cannam@89: #undef inet_aton cannam@89: cannam@89: /* Override any GCC internal prototype to avoid an error. cannam@89: Use char because int might match the return type of a GCC cannam@89: builtin and then its argument prototype would still apply. */ cannam@89: #ifdef __cplusplus cannam@89: extern "C" cannam@89: #endif cannam@89: char inet_aton (); cannam@89: /* The GNU C library defines this for functions which it implements cannam@89: to always fail with ENOSYS. Some functions are actually named cannam@89: something starting with __ and the normal name is an alias. */ cannam@89: #if defined __stub_inet_aton || defined __stub___inet_aton cannam@89: choke me cannam@89: #endif cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: return inet_aton (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest$ac_exeext && cannam@89: $as_test_x conftest$ac_exeext; then cannam@89: ac_cv_func_inet_aton=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_func_inet_aton=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ cannam@89: conftest$ac_exeext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5 cannam@89: echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; } cannam@89: if test $ac_cv_func_inet_aton = yes; then cannam@89: cannam@89: cat >>confdefs.h <<\_ACEOF cannam@89: #define HAVE_INET_ATON 1 cannam@89: _ACEOF cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 cannam@89: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } cannam@89: if test "${ac_cv_c_bigendian+set}" = set; then cannam@89: echo $ECHO_N "(cached) $ECHO_C" >&6 cannam@89: else cannam@89: # See if sys/param.h defines the BYTE_ORDER macro. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: #include cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ cannam@89: && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) cannam@89: bogus endian macros cannam@89: #endif cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: # It does; now see whether it defined to BIG_ENDIAN or not. cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: #include cannam@89: #include cannam@89: cannam@89: int cannam@89: main () cannam@89: { cannam@89: #if BYTE_ORDER != BIG_ENDIAN cannam@89: not big endian cannam@89: #endif cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: ac_cv_c_bigendian=yes cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ac_cv_c_bigendian=no cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: # It does not; compile a test program. cannam@89: if test "$cross_compiling" = yes; then cannam@89: # try to guess the endianness by grepping values into an object file cannam@89: ac_cv_c_bigendian=unknown cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; cannam@89: short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; cannam@89: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } cannam@89: short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; cannam@89: short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; cannam@89: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } cannam@89: int cannam@89: main () cannam@89: { cannam@89: _ascii (); _ebcdic (); cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest.$ac_objext cannam@89: if { (ac_try="$ac_compile" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_compile") 2>conftest.er1 cannam@89: ac_status=$? cannam@89: grep -v '^ *+' conftest.er1 >conftest.err cannam@89: rm -f conftest.er1 cannam@89: cat conftest.err >&5 cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { cannam@89: test -z "$ac_c_werror_flag" || cannam@89: test ! -s conftest.err cannam@89: } && test -s conftest.$ac_objext; then cannam@89: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then cannam@89: ac_cv_c_bigendian=yes cannam@89: fi cannam@89: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then cannam@89: if test "$ac_cv_c_bigendian" = unknown; then cannam@89: ac_cv_c_bigendian=no cannam@89: else cannam@89: # finding both strings is unlikely to happen, but who knows? cannam@89: ac_cv_c_bigendian=unknown cannam@89: fi cannam@89: fi cannam@89: else cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: else cannam@89: cat >conftest.$ac_ext <<_ACEOF cannam@89: /* confdefs.h. */ cannam@89: _ACEOF cannam@89: cat confdefs.h >>conftest.$ac_ext cannam@89: cat >>conftest.$ac_ext <<_ACEOF cannam@89: /* end confdefs.h. */ cannam@89: $ac_includes_default cannam@89: int cannam@89: main () cannam@89: { cannam@89: cannam@89: /* Are we little or big endian? From Harbison&Steele. */ cannam@89: union cannam@89: { cannam@89: long int l; cannam@89: char c[sizeof (long int)]; cannam@89: } u; cannam@89: u.l = 1; cannam@89: return u.c[sizeof (long int) - 1] == 1; cannam@89: cannam@89: ; cannam@89: return 0; cannam@89: } cannam@89: _ACEOF cannam@89: rm -f conftest$ac_exeext cannam@89: if { (ac_try="$ac_link" cannam@89: case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_link") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' cannam@89: { (case "(($ac_try" in cannam@89: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@89: *) ac_try_echo=$ac_try;; cannam@89: esac cannam@89: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 cannam@89: (eval "$ac_try") 2>&5 cannam@89: ac_status=$? cannam@89: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@89: (exit $ac_status); }; }; then cannam@89: ac_cv_c_bigendian=no cannam@89: else cannam@89: echo "$as_me: program exited with status $ac_status" >&5 cannam@89: echo "$as_me: failed program was:" >&5 cannam@89: sed 's/^/| /' conftest.$ac_ext >&5 cannam@89: cannam@89: ( exit $ac_status ) cannam@89: ac_cv_c_bigendian=yes cannam@89: fi cannam@89: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: cannam@89: cannam@89: fi cannam@89: cannam@89: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@89: fi cannam@89: { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 cannam@89: echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } cannam@89: case $ac_cv_c_bigendian in cannam@89: yes) cannam@89: LO_BIGENDIAN="1" ;; cannam@89: no) cannam@89: LO_BIGENDIAN="0" ;; cannam@89: *) cannam@89: { { echo "$as_me:$LINENO: error: unknown endianness cannam@89: presetting ac_cv_c_bigendian=no (or yes) will help" >&5 cannam@89: echo "$as_me: error: unknown endianness cannam@89: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} cannam@89: { (exit 1); exit 1; }; } ;; cannam@89: esac cannam@89: cannam@89: cannam@89: cat >>confdefs.h <<_ACEOF cannam@89: #define LO_BIGENDIAN "$LO_BIGENDIAN" cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: cannam@89: ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile examples/Makefile lo/Makefile lo/lo_endian.h liblo.pc doc/Makefile doc/reference.doxygen build/Makefile" cannam@89: cannam@89: cat >confcache <<\_ACEOF cannam@89: # This file is a shell script that caches the results of configure cannam@89: # tests run on this system so they can be shared between configure cannam@89: # scripts and configure runs, see configure's option --config-cache. cannam@89: # It is not useful on other systems. If it contains results you don't cannam@89: # want to keep, you may remove or edit it. cannam@89: # cannam@89: # config.status only pays attention to the cache file if you give it cannam@89: # the --recheck option to rerun configure. cannam@89: # cannam@89: # `ac_cv_env_foo' variables (set or unset) will be overridden when cannam@89: # loading this file, other *unset* `ac_cv_foo' will be assigned the cannam@89: # following values. cannam@89: cannam@89: _ACEOF cannam@89: cannam@89: # The following way of writing the cache mishandles newlines in values, cannam@89: # but we know of no workaround that is simple, portable, and efficient. cannam@89: # So, we kill variables containing newlines. cannam@89: # Ultrix sh set writes to stderr and can't be redirected directly, cannam@89: # and sets the high bit in the cache file unless we assign to the vars. cannam@89: ( cannam@89: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do cannam@89: eval ac_val=\$$ac_var cannam@89: case $ac_val in #( cannam@89: *${as_nl}*) cannam@89: case $ac_var in #( cannam@89: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 cannam@89: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; cannam@89: esac cannam@89: case $ac_var in #( cannam@89: _ | IFS | as_nl) ;; #( cannam@89: *) $as_unset $ac_var ;; cannam@89: esac ;; cannam@89: esac cannam@89: done cannam@89: cannam@89: (set) 2>&1 | cannam@89: case $as_nl`(ac_space=' '; set) 2>&1` in #( cannam@89: *${as_nl}ac_space=\ *) cannam@89: # `set' does not quote correctly, so add quotes (double-quote cannam@89: # substitution turns \\\\ into \\, and sed turns \\ into \). cannam@89: sed -n \ cannam@89: "s/'/'\\\\''/g; cannam@89: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" cannam@89: ;; #( cannam@89: *) cannam@89: # `set' quotes correctly as required by POSIX, so do not add quotes. cannam@89: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" cannam@89: ;; cannam@89: esac | cannam@89: sort cannam@89: ) | cannam@89: sed ' cannam@89: /^ac_cv_env_/b end cannam@89: t clear cannam@89: :clear cannam@89: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ cannam@89: t end cannam@89: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ cannam@89: :end' >>confcache cannam@89: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else cannam@89: if test -w "$cache_file"; then cannam@89: test "x$cache_file" != "x/dev/null" && cannam@89: { echo "$as_me:$LINENO: updating cache $cache_file" >&5 cannam@89: echo "$as_me: updating cache $cache_file" >&6;} cannam@89: cat confcache >$cache_file cannam@89: else cannam@89: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 cannam@89: echo "$as_me: not updating unwritable cache $cache_file" >&6;} cannam@89: fi cannam@89: fi cannam@89: rm -f confcache cannam@89: cannam@89: test "x$prefix" = xNONE && prefix=$ac_default_prefix cannam@89: # Let make expand exec_prefix. cannam@89: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' cannam@89: cannam@89: DEFS=-DHAVE_CONFIG_H cannam@89: cannam@89: ac_libobjs= cannam@89: ac_ltlibobjs= cannam@89: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue cannam@89: # 1. Remove the extension, and $U if already installed. cannam@89: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' cannam@89: ac_i=`echo "$ac_i" | sed "$ac_script"` cannam@89: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR cannam@89: # will be set to the directory where LIBOBJS objects are built. cannam@89: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" cannam@89: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' cannam@89: done cannam@89: LIBOBJS=$ac_libobjs cannam@89: cannam@89: LTLIBOBJS=$ac_ltlibobjs cannam@89: cannam@89: cannam@89: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then cannam@89: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. cannam@89: Usually this means the macro was only invoked conditionally." >&5 cannam@89: echo "$as_me: error: conditional \"AMDEP\" was never defined. cannam@89: Usually this means the macro was only invoked conditionally." >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then cannam@89: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. cannam@89: Usually this means the macro was only invoked conditionally." >&5 cannam@89: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. cannam@89: Usually this means the macro was only invoked conditionally." >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: fi cannam@89: cannam@89: : ${CONFIG_STATUS=./config.status} cannam@89: ac_clean_files_save=$ac_clean_files cannam@89: ac_clean_files="$ac_clean_files $CONFIG_STATUS" cannam@89: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 cannam@89: echo "$as_me: creating $CONFIG_STATUS" >&6;} cannam@89: cat >$CONFIG_STATUS <<_ACEOF cannam@89: #! $SHELL cannam@89: # Generated by $as_me. cannam@89: # Run this file to recreate the current configuration. cannam@89: # Compiler output produced by configure, useful for debugging cannam@89: # configure, is in config.log if it exists. cannam@89: cannam@89: debug=false cannam@89: ac_cs_recheck=false cannam@89: ac_cs_silent=false cannam@89: SHELL=\${CONFIG_SHELL-$SHELL} cannam@89: _ACEOF cannam@89: cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: ## --------------------- ## cannam@89: ## M4sh Initialization. ## cannam@89: ## --------------------- ## cannam@89: cannam@89: # Be more Bourne compatible cannam@89: DUALCASE=1; export DUALCASE # for MKS sh cannam@89: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then cannam@89: emulate sh cannam@89: NULLCMD=: cannam@89: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which cannam@89: # is contrary to our usage. Disable this feature. cannam@89: alias -g '${1+"$@"}'='"$@"' cannam@89: setopt NO_GLOB_SUBST cannam@89: else cannam@89: case `(set -o) 2>/dev/null` in cannam@89: *posix*) set -o posix ;; cannam@89: esac cannam@89: cannam@89: fi cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: # PATH needs CR cannam@89: # Avoid depending upon Character Ranges. cannam@89: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@89: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@89: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@89: as_cr_digits='0123456789' cannam@89: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@89: cannam@89: # The user is always right. cannam@89: if test "${PATH_SEPARATOR+set}" != set; then cannam@89: echo "#! /bin/sh" >conf$$.sh cannam@89: echo "exit 0" >>conf$$.sh cannam@89: chmod +x conf$$.sh cannam@89: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then cannam@89: PATH_SEPARATOR=';' cannam@89: else cannam@89: PATH_SEPARATOR=: cannam@89: fi cannam@89: rm -f conf$$.sh cannam@89: fi cannam@89: cannam@89: # Support unset when possible. cannam@89: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@89: as_unset=unset cannam@89: else cannam@89: as_unset=false cannam@89: fi cannam@89: cannam@89: cannam@89: # IFS cannam@89: # We need space, tab and new line, in precisely that order. Quoting is cannam@89: # there to prevent editors from complaining about space-tab. cannam@89: # (If _AS_PATH_WALK were called with IFS unset, it would disable word cannam@89: # splitting by setting IFS to empty value.) cannam@89: as_nl=' cannam@89: ' cannam@89: IFS=" "" $as_nl" cannam@89: cannam@89: # Find who we are. Look in the path if we contain no directory separator. cannam@89: case $0 in cannam@89: *[\\/]* ) as_myself=$0 ;; cannam@89: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@89: for as_dir in $PATH cannam@89: do cannam@89: IFS=$as_save_IFS cannam@89: test -z "$as_dir" && as_dir=. cannam@89: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@89: done cannam@89: IFS=$as_save_IFS cannam@89: cannam@89: ;; cannam@89: esac cannam@89: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@89: # in which case we are not to be found in the path. cannam@89: if test "x$as_myself" = x; then cannam@89: as_myself=$0 cannam@89: fi cannam@89: if test ! -f "$as_myself"; then cannam@89: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 cannam@89: { (exit 1); exit 1; } cannam@89: fi cannam@89: cannam@89: # Work around bugs in pre-3.0 UWIN ksh. cannam@89: for as_var in ENV MAIL MAILPATH cannam@89: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var cannam@89: done cannam@89: PS1='$ ' cannam@89: PS2='> ' cannam@89: PS4='+ ' cannam@89: cannam@89: # NLS nuisances. cannam@89: for as_var in \ cannam@89: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ cannam@89: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ cannam@89: LC_TELEPHONE LC_TIME cannam@89: do cannam@89: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then cannam@89: eval $as_var=C; export $as_var cannam@89: else cannam@89: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var cannam@89: fi cannam@89: done cannam@89: cannam@89: # Required to use basename. cannam@89: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@89: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@89: as_expr=expr cannam@89: else cannam@89: as_expr=false cannam@89: fi cannam@89: cannam@89: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then cannam@89: as_basename=basename cannam@89: else cannam@89: as_basename=false cannam@89: fi cannam@89: cannam@89: cannam@89: # Name of the executable. cannam@89: as_me=`$as_basename -- "$0" || cannam@89: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@89: X"$0" : 'X\(//\)$' \| \ cannam@89: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X/"$0" | cannam@89: sed '/^.*\/\([^/][^/]*\)\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\/\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\/\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'` cannam@89: cannam@89: # CDPATH. cannam@89: $as_unset CDPATH cannam@89: cannam@89: cannam@89: cannam@89: as_lineno_1=$LINENO cannam@89: as_lineno_2=$LINENO cannam@89: test "x$as_lineno_1" != "x$as_lineno_2" && cannam@89: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { cannam@89: cannam@89: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO cannam@89: # uniformly replaced by the line number. The first 'sed' inserts a cannam@89: # line-number line after each line using $LINENO; the second 'sed' cannam@89: # does the real work. The second script uses 'N' to pair each cannam@89: # line-number line with the line containing $LINENO, and appends cannam@89: # trailing '-' during substitution so that $LINENO is not a special cannam@89: # case at line end. cannam@89: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the cannam@89: # scripts with optimization help from Paolo Bonzini. Blame Lee cannam@89: # E. McMahon (1931-1989) for sed's syntax. :-) cannam@89: sed -n ' cannam@89: p cannam@89: /[$]LINENO/= cannam@89: ' <$as_myself | cannam@89: sed ' cannam@89: s/[$]LINENO.*/&-/ cannam@89: t lineno cannam@89: b cannam@89: :lineno cannam@89: N cannam@89: :loop cannam@89: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ cannam@89: t loop cannam@89: s/-\n.*// cannam@89: ' >$as_me.lineno && cannam@89: chmod +x "$as_me.lineno" || cannam@89: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 cannam@89: { (exit 1); exit 1; }; } cannam@89: cannam@89: # Don't try to exec as it changes $[0], causing all sort of problems cannam@89: # (the dirname of $[0] is not the place where we might find the cannam@89: # original and so on. Autoconf is especially sensitive to this). cannam@89: . "./$as_me.lineno" cannam@89: # Exit status is that of the last command. cannam@89: exit cannam@89: } cannam@89: cannam@89: cannam@89: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then cannam@89: as_dirname=dirname cannam@89: else cannam@89: as_dirname=false cannam@89: fi cannam@89: cannam@89: ECHO_C= ECHO_N= ECHO_T= cannam@89: case `echo -n x` in cannam@89: -n*) cannam@89: case `echo 'x\c'` in cannam@89: *c*) ECHO_T=' ';; # ECHO_T is single tab character. cannam@89: *) ECHO_C='\c';; cannam@89: esac;; cannam@89: *) cannam@89: ECHO_N='-n';; cannam@89: esac cannam@89: cannam@89: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@89: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@89: as_expr=expr cannam@89: else cannam@89: as_expr=false cannam@89: fi cannam@89: cannam@89: rm -f conf$$ conf$$.exe conf$$.file cannam@89: if test -d conf$$.dir; then cannam@89: rm -f conf$$.dir/conf$$.file cannam@89: else cannam@89: rm -f conf$$.dir cannam@89: mkdir conf$$.dir cannam@89: fi cannam@89: echo >conf$$.file cannam@89: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@89: as_ln_s='ln -s' cannam@89: # ... but there are two gotchas: cannam@89: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. cannam@89: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. cannam@89: # In both cases, we have to default to `cp -p'. cannam@89: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || cannam@89: as_ln_s='cp -p' cannam@89: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@89: as_ln_s=ln cannam@89: else cannam@89: as_ln_s='cp -p' cannam@89: fi cannam@89: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file cannam@89: rmdir conf$$.dir 2>/dev/null cannam@89: cannam@89: if mkdir -p . 2>/dev/null; then cannam@89: as_mkdir_p=: cannam@89: else cannam@89: test -d ./-p && rmdir ./-p cannam@89: as_mkdir_p=false cannam@89: fi cannam@89: cannam@89: if test -x / >/dev/null 2>&1; then cannam@89: as_test_x='test -x' cannam@89: else cannam@89: if ls -dL / >/dev/null 2>&1; then cannam@89: as_ls_L_option=L cannam@89: else cannam@89: as_ls_L_option= cannam@89: fi cannam@89: as_test_x=' cannam@89: eval sh -c '\'' cannam@89: if test -d "$1"; then cannam@89: test -d "$1/."; cannam@89: else cannam@89: case $1 in cannam@89: -*)set "./$1";; cannam@89: esac; cannam@89: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in cannam@89: ???[sx]*):;;*)false;;esac;fi cannam@89: '\'' sh cannam@89: ' cannam@89: fi cannam@89: as_executable_p=$as_test_x cannam@89: cannam@89: # Sed expression to map a string onto a valid CPP name. cannam@89: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@89: cannam@89: # Sed expression to map a string onto a valid variable name. cannam@89: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@89: cannam@89: cannam@89: exec 6>&1 cannam@89: cannam@89: # Save the log message, to keep $[0] and so on meaningful, and to cannam@89: # report actual input values of CONFIG_FILES etc. instead of their cannam@89: # values after options handling. cannam@89: ac_log=" cannam@89: This file was extended by liblo $as_me 0.26, which was cannam@89: generated by GNU Autoconf 2.61. Invocation command line was cannam@89: cannam@89: CONFIG_FILES = $CONFIG_FILES cannam@89: CONFIG_HEADERS = $CONFIG_HEADERS cannam@89: CONFIG_LINKS = $CONFIG_LINKS cannam@89: CONFIG_COMMANDS = $CONFIG_COMMANDS cannam@89: $ $0 $@ cannam@89: cannam@89: on `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@89: " cannam@89: cannam@89: _ACEOF cannam@89: cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: # Files that config.status was made for. cannam@89: config_files="$ac_config_files" cannam@89: config_headers="$ac_config_headers" cannam@89: config_commands="$ac_config_commands" cannam@89: cannam@89: _ACEOF cannam@89: cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: ac_cs_usage="\ cannam@89: \`$as_me' instantiates files from templates according to the cannam@89: current configuration. cannam@89: cannam@89: Usage: $0 [OPTIONS] [FILE]... cannam@89: cannam@89: -h, --help print this help, then exit cannam@89: -V, --version print version number and configuration settings, then exit cannam@89: -q, --quiet do not print progress messages cannam@89: -d, --debug don't remove temporary files cannam@89: --recheck update $as_me by reconfiguring in the same conditions cannam@89: --file=FILE[:TEMPLATE] cannam@89: instantiate the configuration file FILE cannam@89: --header=FILE[:TEMPLATE] cannam@89: instantiate the configuration header FILE cannam@89: cannam@89: Configuration files: cannam@89: $config_files cannam@89: cannam@89: Configuration headers: cannam@89: $config_headers cannam@89: cannam@89: Configuration commands: cannam@89: $config_commands cannam@89: cannam@89: Report bugs to ." cannam@89: cannam@89: _ACEOF cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: ac_cs_version="\\ cannam@89: liblo config.status 0.26 cannam@89: configured by $0, generated by GNU Autoconf 2.61, cannam@89: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" cannam@89: cannam@89: Copyright (C) 2006 Free Software Foundation, Inc. cannam@89: This config.status script is free software; the Free Software Foundation cannam@89: gives unlimited permission to copy, distribute and modify it." cannam@89: cannam@89: ac_pwd='$ac_pwd' cannam@89: srcdir='$srcdir' cannam@89: INSTALL='$INSTALL' cannam@89: MKDIR_P='$MKDIR_P' cannam@89: _ACEOF cannam@89: cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: # If no file are specified by the user, then we need to provide default cannam@89: # value. By we need to know if files were specified by the user. cannam@89: ac_need_defaults=: cannam@89: while test $# != 0 cannam@89: do cannam@89: case $1 in cannam@89: --*=*) cannam@89: ac_option=`expr "X$1" : 'X\([^=]*\)='` cannam@89: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` cannam@89: ac_shift=: cannam@89: ;; cannam@89: *) cannam@89: ac_option=$1 cannam@89: ac_optarg=$2 cannam@89: ac_shift=shift cannam@89: ;; cannam@89: esac cannam@89: cannam@89: case $ac_option in cannam@89: # Handling of the options. cannam@89: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) cannam@89: ac_cs_recheck=: ;; cannam@89: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) cannam@89: echo "$ac_cs_version"; exit ;; cannam@89: --debug | --debu | --deb | --de | --d | -d ) cannam@89: debug=: ;; cannam@89: --file | --fil | --fi | --f ) cannam@89: $ac_shift cannam@89: CONFIG_FILES="$CONFIG_FILES $ac_optarg" cannam@89: ac_need_defaults=false;; cannam@89: --header | --heade | --head | --hea ) cannam@89: $ac_shift cannam@89: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" cannam@89: ac_need_defaults=false;; cannam@89: --he | --h) cannam@89: # Conflict between --help and --header cannam@89: { echo "$as_me: error: ambiguous option: $1 cannam@89: Try \`$0 --help' for more information." >&2 cannam@89: { (exit 1); exit 1; }; };; cannam@89: --help | --hel | -h ) cannam@89: echo "$ac_cs_usage"; exit ;; cannam@89: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@89: | -silent | --silent | --silen | --sile | --sil | --si | --s) cannam@89: ac_cs_silent=: ;; cannam@89: cannam@89: # This is an error. cannam@89: -*) { echo "$as_me: error: unrecognized option: $1 cannam@89: Try \`$0 --help' for more information." >&2 cannam@89: { (exit 1); exit 1; }; } ;; cannam@89: cannam@89: *) ac_config_targets="$ac_config_targets $1" cannam@89: ac_need_defaults=false ;; cannam@89: cannam@89: esac cannam@89: shift cannam@89: done cannam@89: cannam@89: ac_configure_extra_args= cannam@89: cannam@89: if $ac_cs_silent; then cannam@89: exec 6>/dev/null cannam@89: ac_configure_extra_args="$ac_configure_extra_args --silent" cannam@89: fi cannam@89: cannam@89: _ACEOF cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: if \$ac_cs_recheck; then cannam@89: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 cannam@89: CONFIG_SHELL=$SHELL cannam@89: export CONFIG_SHELL cannam@89: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion cannam@89: fi cannam@89: cannam@89: _ACEOF cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: exec 5>>config.log cannam@89: { cannam@89: echo cannam@89: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX cannam@89: ## Running $as_me. ## cannam@89: _ASBOX cannam@89: echo "$ac_log" cannam@89: } >&5 cannam@89: cannam@89: _ACEOF cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: # cannam@89: # INIT-COMMANDS cannam@89: # cannam@89: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" cannam@89: cannam@89: cannam@89: # The HP-UX ksh and POSIX shell print the target directory to stdout cannam@89: # if CDPATH is set. cannam@89: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@89: cannam@89: sed_quote_subst='$sed_quote_subst' cannam@89: double_quote_subst='$double_quote_subst' cannam@89: delay_variable_subst='$delay_variable_subst' cannam@89: enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' cannam@89: cannam@89: LTCC='$LTCC' cannam@89: LTCFLAGS='$LTCFLAGS' cannam@89: compiler='$compiler_DEFAULT' cannam@89: cannam@89: # Quote evaled strings. cannam@89: for var in SED \ cannam@89: GREP \ cannam@89: EGREP \ cannam@89: FGREP \ cannam@89: LD \ cannam@89: NM \ cannam@89: LN_S \ cannam@89: lt_SP2NL \ cannam@89: lt_NL2SP \ cannam@89: reload_flag \ cannam@89: deplibs_check_method \ cannam@89: file_magic_cmd \ cannam@89: AR \ cannam@89: AR_FLAGS \ cannam@89: STRIP \ cannam@89: RANLIB \ cannam@89: CC \ cannam@89: CFLAGS \ cannam@89: compiler \ cannam@89: lt_cv_sys_global_symbol_pipe \ cannam@89: lt_cv_sys_global_symbol_to_cdecl \ cannam@89: lt_cv_sys_global_symbol_to_c_name_address \ cannam@89: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ cannam@89: SHELL \ cannam@89: ECHO \ cannam@89: lt_prog_compiler_no_builtin_flag \ cannam@89: lt_prog_compiler_wl \ cannam@89: lt_prog_compiler_pic \ cannam@89: lt_prog_compiler_static \ cannam@89: lt_cv_prog_compiler_c_o \ cannam@89: need_locks \ cannam@89: DSYMUTIL \ cannam@89: NMEDIT \ cannam@89: LIPO \ cannam@89: OTOOL \ cannam@89: OTOOL64 \ cannam@89: shrext_cmds \ cannam@89: export_dynamic_flag_spec \ cannam@89: whole_archive_flag_spec \ cannam@89: compiler_needs_object \ cannam@89: with_gnu_ld \ cannam@89: allow_undefined_flag \ cannam@89: no_undefined_flag \ cannam@89: hardcode_libdir_flag_spec \ cannam@89: hardcode_libdir_flag_spec_ld \ cannam@89: hardcode_libdir_separator \ cannam@89: fix_srcfile_path \ cannam@89: exclude_expsyms \ cannam@89: include_expsyms \ cannam@89: file_list_spec \ cannam@89: variables_saved_for_relink \ cannam@89: libname_spec \ cannam@89: library_names_spec \ cannam@89: soname_spec \ cannam@89: finish_eval \ cannam@89: old_striplib \ cannam@89: striplib; do cannam@89: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in cannam@89: *[\\\\\\\`\\"\\\$]*) cannam@89: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" cannam@89: ;; cannam@89: *) cannam@89: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" cannam@89: ;; cannam@89: esac cannam@89: done cannam@89: cannam@89: # Double-quote double-evaled strings. cannam@89: for var in reload_cmds \ cannam@89: old_postinstall_cmds \ cannam@89: old_postuninstall_cmds \ cannam@89: old_archive_cmds \ cannam@89: extract_expsyms_cmds \ cannam@89: old_archive_from_new_cmds \ cannam@89: old_archive_from_expsyms_cmds \ cannam@89: archive_cmds \ cannam@89: archive_expsym_cmds \ cannam@89: module_cmds \ cannam@89: module_expsym_cmds \ cannam@89: export_symbols_cmds \ cannam@89: prelink_cmds \ cannam@89: postinstall_cmds \ cannam@89: postuninstall_cmds \ cannam@89: finish_cmds \ cannam@89: sys_lib_search_path_spec \ cannam@89: sys_lib_dlsearch_path_spec; do cannam@89: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in cannam@89: *[\\\\\\\`\\"\\\$]*) cannam@89: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" cannam@89: ;; cannam@89: *) cannam@89: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" cannam@89: ;; cannam@89: esac cannam@89: done cannam@89: cannam@89: # Fix-up fallback echo if it was mangled by the above quoting rules. cannam@89: case \$lt_ECHO in cannam@89: *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` cannam@89: ;; cannam@89: esac cannam@89: cannam@89: ac_aux_dir='$ac_aux_dir' cannam@89: xsi_shell='$xsi_shell' cannam@89: lt_shell_append='$lt_shell_append' cannam@89: cannam@89: # See if we are running on zsh, and set the options which allow our cannam@89: # commands through without removal of \ escapes INIT. cannam@89: if test -n "\${ZSH_VERSION+set}" ; then cannam@89: setopt NO_GLOB_SUBST cannam@89: fi cannam@89: cannam@89: cannam@89: PACKAGE='$PACKAGE' cannam@89: VERSION='$VERSION' cannam@89: TIMESTAMP='$TIMESTAMP' cannam@89: RM='$RM' cannam@89: ofile='$ofile' cannam@89: cannam@89: cannam@89: cannam@89: cannam@89: _ACEOF cannam@89: cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: cannam@89: # Handling of arguments. cannam@89: for ac_config_target in $ac_config_targets cannam@89: do cannam@89: case $ac_config_target in cannam@89: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; cannam@89: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; cannam@89: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; cannam@89: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; cannam@89: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; cannam@89: "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; cannam@89: "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; cannam@89: "lo/Makefile") CONFIG_FILES="$CONFIG_FILES lo/Makefile" ;; cannam@89: "lo/lo_endian.h") CONFIG_FILES="$CONFIG_FILES lo/lo_endian.h" ;; cannam@89: "liblo.pc") CONFIG_FILES="$CONFIG_FILES liblo.pc" ;; cannam@89: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; cannam@89: "doc/reference.doxygen") CONFIG_FILES="$CONFIG_FILES doc/reference.doxygen" ;; cannam@89: "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; cannam@89: cannam@89: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 cannam@89: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} cannam@89: { (exit 1); exit 1; }; };; cannam@89: esac cannam@89: done cannam@89: cannam@89: cannam@89: # If the user did not use the arguments to specify the items to instantiate, cannam@89: # then the envvar interface is used. Set only those that are not. cannam@89: # We use the long form for the default assignment because of an extremely cannam@89: # bizarre bug on SunOS 4.1.3. cannam@89: if $ac_need_defaults; then cannam@89: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files cannam@89: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers cannam@89: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands cannam@89: fi cannam@89: cannam@89: # Have a temporary directory for convenience. Make it in the build tree cannam@89: # simply because there is no reason against having it here, and in addition, cannam@89: # creating and moving files from /tmp can sometimes cause problems. cannam@89: # Hook for its removal unless debugging. cannam@89: # Note that there is a small window in which the directory will not be cleaned: cannam@89: # after its creation but before its name has been assigned to `$tmp'. cannam@89: $debug || cannam@89: { cannam@89: tmp= cannam@89: trap 'exit_status=$? cannam@89: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status cannam@89: ' 0 cannam@89: trap '{ (exit 1); exit 1; }' 1 2 13 15 cannam@89: } cannam@89: # Create a (secure) tmp directory for tmp files. cannam@89: cannam@89: { cannam@89: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && cannam@89: test -n "$tmp" && test -d "$tmp" cannam@89: } || cannam@89: { cannam@89: tmp=./conf$$-$RANDOM cannam@89: (umask 077 && mkdir "$tmp") cannam@89: } || cannam@89: { cannam@89: echo "$me: cannot create a temporary directory in ." >&2 cannam@89: { (exit 1); exit 1; } cannam@89: } cannam@89: cannam@89: # cannam@89: # Set up the sed scripts for CONFIG_FILES section. cannam@89: # cannam@89: cannam@89: # No need to generate the scripts if there are no CONFIG_FILES. cannam@89: # This happens for instance when ./config.status config.h cannam@89: if test -n "$CONFIG_FILES"; then cannam@89: cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: cannam@89: ac_delim='%!_!# ' cannam@89: for ac_last_try in false false false false false :; do cannam@89: cat >conf$$subs.sed <<_ACEOF cannam@89: SHELL!$SHELL$ac_delim cannam@89: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim cannam@89: PACKAGE_NAME!$PACKAGE_NAME$ac_delim cannam@89: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim cannam@89: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim cannam@89: PACKAGE_STRING!$PACKAGE_STRING$ac_delim cannam@89: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim cannam@89: exec_prefix!$exec_prefix$ac_delim cannam@89: prefix!$prefix$ac_delim cannam@89: program_transform_name!$program_transform_name$ac_delim cannam@89: bindir!$bindir$ac_delim cannam@89: sbindir!$sbindir$ac_delim cannam@89: libexecdir!$libexecdir$ac_delim cannam@89: datarootdir!$datarootdir$ac_delim cannam@89: datadir!$datadir$ac_delim cannam@89: sysconfdir!$sysconfdir$ac_delim cannam@89: sharedstatedir!$sharedstatedir$ac_delim cannam@89: localstatedir!$localstatedir$ac_delim cannam@89: includedir!$includedir$ac_delim cannam@89: oldincludedir!$oldincludedir$ac_delim cannam@89: docdir!$docdir$ac_delim cannam@89: infodir!$infodir$ac_delim cannam@89: htmldir!$htmldir$ac_delim cannam@89: dvidir!$dvidir$ac_delim cannam@89: pdfdir!$pdfdir$ac_delim cannam@89: psdir!$psdir$ac_delim cannam@89: libdir!$libdir$ac_delim cannam@89: localedir!$localedir$ac_delim cannam@89: mandir!$mandir$ac_delim cannam@89: DEFS!$DEFS$ac_delim cannam@89: ECHO_C!$ECHO_C$ac_delim cannam@89: ECHO_N!$ECHO_N$ac_delim cannam@89: ECHO_T!$ECHO_T$ac_delim cannam@89: LIBS!$LIBS$ac_delim cannam@89: build_alias!$build_alias$ac_delim cannam@89: host_alias!$host_alias$ac_delim cannam@89: target_alias!$target_alias$ac_delim cannam@89: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim cannam@89: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim cannam@89: INSTALL_DATA!$INSTALL_DATA$ac_delim cannam@89: am__isrc!$am__isrc$ac_delim cannam@89: CYGPATH_W!$CYGPATH_W$ac_delim cannam@89: PACKAGE!$PACKAGE$ac_delim cannam@89: VERSION!$VERSION$ac_delim cannam@89: ACLOCAL!$ACLOCAL$ac_delim cannam@89: AUTOCONF!$AUTOCONF$ac_delim cannam@89: AUTOMAKE!$AUTOMAKE$ac_delim cannam@89: AUTOHEADER!$AUTOHEADER$ac_delim cannam@89: MAKEINFO!$MAKEINFO$ac_delim cannam@89: install_sh!$install_sh$ac_delim cannam@89: STRIP!$STRIP$ac_delim cannam@89: INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim cannam@89: mkdir_p!$mkdir_p$ac_delim cannam@89: AWK!$AWK$ac_delim cannam@89: SET_MAKE!$SET_MAKE$ac_delim cannam@89: am__leading_dot!$am__leading_dot$ac_delim cannam@89: AMTAR!$AMTAR$ac_delim cannam@89: am__tar!$am__tar$ac_delim cannam@89: am__untar!$am__untar$ac_delim cannam@89: LO_SO_VERSION!$LO_SO_VERSION$ac_delim cannam@89: CC!$CC$ac_delim cannam@89: CFLAGS!$CFLAGS$ac_delim cannam@89: LDFLAGS!$LDFLAGS$ac_delim cannam@89: CPPFLAGS!$CPPFLAGS$ac_delim cannam@89: ac_ct_CC!$ac_ct_CC$ac_delim cannam@89: EXEEXT!$EXEEXT$ac_delim cannam@89: OBJEXT!$OBJEXT$ac_delim cannam@89: DEPDIR!$DEPDIR$ac_delim cannam@89: am__include!$am__include$ac_delim cannam@89: am__quote!$am__quote$ac_delim cannam@89: AMDEP_TRUE!$AMDEP_TRUE$ac_delim cannam@89: AMDEP_FALSE!$AMDEP_FALSE$ac_delim cannam@89: AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim cannam@89: CCDEPMODE!$CCDEPMODE$ac_delim cannam@89: am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim cannam@89: am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim cannam@89: LIBTOOL!$LIBTOOL$ac_delim cannam@89: build!$build$ac_delim cannam@89: build_cpu!$build_cpu$ac_delim cannam@89: build_vendor!$build_vendor$ac_delim cannam@89: build_os!$build_os$ac_delim cannam@89: host!$host$ac_delim cannam@89: host_cpu!$host_cpu$ac_delim cannam@89: host_vendor!$host_vendor$ac_delim cannam@89: host_os!$host_os$ac_delim cannam@89: SED!$SED$ac_delim cannam@89: GREP!$GREP$ac_delim cannam@89: EGREP!$EGREP$ac_delim cannam@89: FGREP!$FGREP$ac_delim cannam@89: LD!$LD$ac_delim cannam@89: DUMPBIN!$DUMPBIN$ac_delim cannam@89: ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim cannam@89: NM!$NM$ac_delim cannam@89: LN_S!$LN_S$ac_delim cannam@89: AR!$AR$ac_delim cannam@89: RANLIB!$RANLIB$ac_delim cannam@89: lt_ECHO!$lt_ECHO$ac_delim cannam@89: _ACEOF cannam@89: cannam@89: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then cannam@89: break cannam@89: elif $ac_last_try; then cannam@89: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 cannam@89: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: else cannam@89: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " cannam@89: fi cannam@89: done cannam@89: cannam@89: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` cannam@89: if test -n "$ac_eof"; then cannam@89: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` cannam@89: ac_eof=`expr $ac_eof + 1` cannam@89: fi cannam@89: cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof cannam@89: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b cannam@89: _ACEOF cannam@89: sed ' cannam@89: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g cannam@89: s/^/s,@/; s/!/@,|#_!!_#|/ cannam@89: :n cannam@89: t n cannam@89: s/'"$ac_delim"'$/,g/; t cannam@89: s/$/\\/; p cannam@89: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n cannam@89: ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF cannam@89: CEOF$ac_eof cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: ac_delim='%!_!# ' cannam@89: for ac_last_try in false false false false false :; do cannam@89: cat >conf$$subs.sed <<_ACEOF cannam@89: DSYMUTIL!$DSYMUTIL$ac_delim cannam@89: NMEDIT!$NMEDIT$ac_delim cannam@89: LIPO!$LIPO$ac_delim cannam@89: OTOOL!$OTOOL$ac_delim cannam@89: OTOOL64!$OTOOL64$ac_delim cannam@89: CPP!$CPP$ac_delim cannam@89: DOXYGEN!$DOXYGEN$ac_delim cannam@89: LO_BIGENDIAN!$LO_BIGENDIAN$ac_delim cannam@89: LIBOBJS!$LIBOBJS$ac_delim cannam@89: LTLIBOBJS!$LTLIBOBJS$ac_delim cannam@89: _ACEOF cannam@89: cannam@89: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then cannam@89: break cannam@89: elif $ac_last_try; then cannam@89: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 cannam@89: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} cannam@89: { (exit 1); exit 1; }; } cannam@89: else cannam@89: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " cannam@89: fi cannam@89: done cannam@89: cannam@89: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` cannam@89: if test -n "$ac_eof"; then cannam@89: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` cannam@89: ac_eof=`expr $ac_eof + 1` cannam@89: fi cannam@89: cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof cannam@89: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end cannam@89: _ACEOF cannam@89: sed ' cannam@89: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g cannam@89: s/^/s,@/; s/!/@,|#_!!_#|/ cannam@89: :n cannam@89: t n cannam@89: s/'"$ac_delim"'$/,g/; t cannam@89: s/$/\\/; p cannam@89: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n cannam@89: ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF cannam@89: :end cannam@89: s/|#_!!_#|//g cannam@89: CEOF$ac_eof cannam@89: _ACEOF cannam@89: cannam@89: cannam@89: # VPATH may cause trouble with some makes, so we remove $(srcdir), cannam@89: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and cannam@89: # trailing colons and then remove the whole line if VPATH becomes empty cannam@89: # (actually we leave an empty line to preserve line numbers). cannam@89: if test "x$srcdir" = x.; then cannam@89: ac_vpsub='/^[ ]*VPATH[ ]*=/{ cannam@89: s/:*\$(srcdir):*/:/ cannam@89: s/:*\${srcdir}:*/:/ cannam@89: s/:*@srcdir@:*/:/ cannam@89: s/^\([^=]*=[ ]*\):*/\1/ cannam@89: s/:*$// cannam@89: s/^[^=]*=[ ]*$// cannam@89: }' cannam@89: fi cannam@89: cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: fi # test -n "$CONFIG_FILES" cannam@89: cannam@89: cannam@89: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS cannam@89: do cannam@89: case $ac_tag in cannam@89: :[FHLC]) ac_mode=$ac_tag; continue;; cannam@89: esac cannam@89: case $ac_mode$ac_tag in cannam@89: :[FHL]*:*);; cannam@89: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 cannam@89: echo "$as_me: error: Invalid tag $ac_tag." >&2;} cannam@89: { (exit 1); exit 1; }; };; cannam@89: :[FH]-) ac_tag=-:-;; cannam@89: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; cannam@89: esac cannam@89: ac_save_IFS=$IFS cannam@89: IFS=: cannam@89: set x $ac_tag cannam@89: IFS=$ac_save_IFS cannam@89: shift cannam@89: ac_file=$1 cannam@89: shift cannam@89: cannam@89: case $ac_mode in cannam@89: :L) ac_source=$1;; cannam@89: :[FH]) cannam@89: ac_file_inputs= cannam@89: for ac_f cannam@89: do cannam@89: case $ac_f in cannam@89: -) ac_f="$tmp/stdin";; cannam@89: *) # Look for the file first in the build tree, then in the source tree cannam@89: # (if the path is not absolute). The absolute path cannot be DOS-style, cannam@89: # because $ac_f cannot contain `:'. cannam@89: test -f "$ac_f" || cannam@89: case $ac_f in cannam@89: [\\/$]*) false;; cannam@89: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; cannam@89: esac || cannam@89: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 cannam@89: echo "$as_me: error: cannot find input file: $ac_f" >&2;} cannam@89: { (exit 1); exit 1; }; };; cannam@89: esac cannam@89: ac_file_inputs="$ac_file_inputs $ac_f" cannam@89: done cannam@89: cannam@89: # Let's still pretend it is `configure' which instantiates (i.e., don't cannam@89: # use $as_me), people would be surprised to read: cannam@89: # /* config.h. Generated by config.status. */ cannam@89: configure_input="Generated from "`IFS=: cannam@89: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." cannam@89: if test x"$ac_file" != x-; then cannam@89: configure_input="$ac_file. $configure_input" cannam@89: { echo "$as_me:$LINENO: creating $ac_file" >&5 cannam@89: echo "$as_me: creating $ac_file" >&6;} cannam@89: fi cannam@89: cannam@89: case $ac_tag in cannam@89: *:-:* | *:-) cat >"$tmp/stdin";; cannam@89: esac cannam@89: ;; cannam@89: esac cannam@89: cannam@89: ac_dir=`$as_dirname -- "$ac_file" || cannam@89: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@89: X"$ac_file" : 'X\(//\)[^/]' \| \ cannam@89: X"$ac_file" : 'X\(//\)$' \| \ cannam@89: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X"$ac_file" | cannam@89: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)[^/].*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'` cannam@89: { as_dir="$ac_dir" cannam@89: case $as_dir in #( cannam@89: -*) as_dir=./$as_dir;; cannam@89: esac cannam@89: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { cannam@89: as_dirs= cannam@89: while :; do cannam@89: case $as_dir in #( cannam@89: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( cannam@89: *) as_qdir=$as_dir;; cannam@89: esac cannam@89: as_dirs="'$as_qdir' $as_dirs" cannam@89: as_dir=`$as_dirname -- "$as_dir" || cannam@89: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@89: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@89: X"$as_dir" : 'X\(//\)$' \| \ cannam@89: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X"$as_dir" | cannam@89: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)[^/].*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'` cannam@89: test -d "$as_dir" && break cannam@89: done cannam@89: test -z "$as_dirs" || eval "mkdir $as_dirs" cannam@89: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 cannam@89: echo "$as_me: error: cannot create directory $as_dir" >&2;} cannam@89: { (exit 1); exit 1; }; }; } cannam@89: ac_builddir=. cannam@89: cannam@89: case "$ac_dir" in cannam@89: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@89: *) cannam@89: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` cannam@89: # A ".." for each directory in $ac_dir_suffix. cannam@89: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` cannam@89: case $ac_top_builddir_sub in cannam@89: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@89: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; cannam@89: esac ;; cannam@89: esac cannam@89: ac_abs_top_builddir=$ac_pwd cannam@89: ac_abs_builddir=$ac_pwd$ac_dir_suffix cannam@89: # for backward compatibility: cannam@89: ac_top_builddir=$ac_top_build_prefix cannam@89: cannam@89: case $srcdir in cannam@89: .) # We are building in place. cannam@89: ac_srcdir=. cannam@89: ac_top_srcdir=$ac_top_builddir_sub cannam@89: ac_abs_top_srcdir=$ac_pwd ;; cannam@89: [\\/]* | ?:[\\/]* ) # Absolute name. cannam@89: ac_srcdir=$srcdir$ac_dir_suffix; cannam@89: ac_top_srcdir=$srcdir cannam@89: ac_abs_top_srcdir=$srcdir ;; cannam@89: *) # Relative name. cannam@89: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix cannam@89: ac_top_srcdir=$ac_top_build_prefix$srcdir cannam@89: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; cannam@89: esac cannam@89: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cannam@89: cannam@89: cannam@89: case $ac_mode in cannam@89: :F) cannam@89: # cannam@89: # CONFIG_FILE cannam@89: # cannam@89: cannam@89: case $INSTALL in cannam@89: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; cannam@89: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; cannam@89: esac cannam@89: ac_MKDIR_P=$MKDIR_P cannam@89: case $MKDIR_P in cannam@89: [\\/$]* | ?:[\\/]* ) ;; cannam@89: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; cannam@89: esac cannam@89: _ACEOF cannam@89: cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: # If the template does not know about datarootdir, expand it. cannam@89: # FIXME: This hack should be removed a few years after 2.60. cannam@89: ac_datarootdir_hack=; ac_datarootdir_seen= cannam@89: cannam@89: case `sed -n '/datarootdir/ { cannam@89: p cannam@89: q cannam@89: } cannam@89: /@datadir@/p cannam@89: /@docdir@/p cannam@89: /@infodir@/p cannam@89: /@localedir@/p cannam@89: /@mandir@/p cannam@89: ' $ac_file_inputs` in cannam@89: *datarootdir*) ac_datarootdir_seen=yes;; cannam@89: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 cannam@89: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} cannam@89: _ACEOF cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: ac_datarootdir_hack=' cannam@89: s&@datadir@&$datadir&g cannam@89: s&@docdir@&$docdir&g cannam@89: s&@infodir@&$infodir&g cannam@89: s&@localedir@&$localedir&g cannam@89: s&@mandir@&$mandir&g cannam@89: s&\\\${datarootdir}&$datarootdir&g' ;; cannam@89: esac cannam@89: _ACEOF cannam@89: cannam@89: # Neutralize VPATH when `$srcdir' = `.'. cannam@89: # Shell code in configure.ac might set extrasub. cannam@89: # FIXME: do we really want to maintain this feature? cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: sed "$ac_vpsub cannam@89: $extrasub cannam@89: _ACEOF cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: :t cannam@89: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b cannam@89: s&@configure_input@&$configure_input&;t t cannam@89: s&@top_builddir@&$ac_top_builddir_sub&;t t cannam@89: s&@srcdir@&$ac_srcdir&;t t cannam@89: s&@abs_srcdir@&$ac_abs_srcdir&;t t cannam@89: s&@top_srcdir@&$ac_top_srcdir&;t t cannam@89: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t cannam@89: s&@builddir@&$ac_builddir&;t t cannam@89: s&@abs_builddir@&$ac_abs_builddir&;t t cannam@89: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t cannam@89: s&@INSTALL@&$ac_INSTALL&;t t cannam@89: s&@MKDIR_P@&$ac_MKDIR_P&;t t cannam@89: $ac_datarootdir_hack cannam@89: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out cannam@89: cannam@89: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && cannam@89: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && cannam@89: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && cannam@89: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' cannam@89: which seems to be undefined. Please make sure it is defined." >&5 cannam@89: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' cannam@89: which seems to be undefined. Please make sure it is defined." >&2;} cannam@89: cannam@89: rm -f "$tmp/stdin" cannam@89: case $ac_file in cannam@89: -) cat "$tmp/out"; rm -f "$tmp/out";; cannam@89: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; cannam@89: esac cannam@89: ;; cannam@89: :H) cannam@89: # cannam@89: # CONFIG_HEADER cannam@89: # cannam@89: _ACEOF cannam@89: cannam@89: # Transform confdefs.h into a sed script `conftest.defines', that cannam@89: # substitutes the proper values into config.h.in to produce config.h. cannam@89: rm -f conftest.defines conftest.tail cannam@89: # First, append a space to every undef/define line, to ease matching. cannam@89: echo 's/$/ /' >conftest.defines cannam@89: # Then, protect against being on the right side of a sed subst, or in cannam@89: # an unquoted here document, in config.status. If some macros were cannam@89: # called several times there might be several #defines for the same cannam@89: # symbol, which is useless. But do not sort them, since the last cannam@89: # AC_DEFINE must be honored. cannam@89: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* cannam@89: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where cannam@89: # NAME is the cpp macro being defined, VALUE is the value it is being given. cannam@89: # PARAMS is the parameter list in the macro definition--in most cases, it's cannam@89: # just an empty string. cannam@89: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' cannam@89: ac_dB='\\)[ (].*,\\1define\\2' cannam@89: ac_dC=' ' cannam@89: ac_dD=' ,' cannam@89: cannam@89: uniq confdefs.h | cannam@89: sed -n ' cannam@89: t rset cannam@89: :rset cannam@89: s/^[ ]*#[ ]*define[ ][ ]*// cannam@89: t ok cannam@89: d cannam@89: :ok cannam@89: s/[\\&,]/\\&/g cannam@89: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p cannam@89: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p cannam@89: ' >>conftest.defines cannam@89: cannam@89: # Remove the space that was appended to ease matching. cannam@89: # Then replace #undef with comments. This is necessary, for cannam@89: # example, in the case of _POSIX_SOURCE, which is predefined and required cannam@89: # on some systems where configure will not decide to define it. cannam@89: # (The regexp can be short, since the line contains either #define or #undef.) cannam@89: echo 's/ $// cannam@89: s,^[ #]*u.*,/* & */,' >>conftest.defines cannam@89: cannam@89: # Break up conftest.defines: cannam@89: ac_max_sed_lines=50 cannam@89: cannam@89: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" cannam@89: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" cannam@89: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" cannam@89: # et cetera. cannam@89: ac_in='$ac_file_inputs' cannam@89: ac_out='"$tmp/out1"' cannam@89: ac_nxt='"$tmp/out2"' cannam@89: cannam@89: while : cannam@89: do cannam@89: # Write a here document: cannam@89: cat >>$CONFIG_STATUS <<_ACEOF cannam@89: # First, check the format of the line: cannam@89: cat >"\$tmp/defines.sed" <<\\CEOF cannam@89: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def cannam@89: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def cannam@89: b cannam@89: :def cannam@89: _ACEOF cannam@89: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS cannam@89: echo 'CEOF cannam@89: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS cannam@89: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in cannam@89: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail cannam@89: grep . conftest.tail >/dev/null || break cannam@89: rm -f conftest.defines cannam@89: mv conftest.tail conftest.defines cannam@89: done cannam@89: rm -f conftest.defines conftest.tail cannam@89: cannam@89: echo "ac_result=$ac_in" >>$CONFIG_STATUS cannam@89: cat >>$CONFIG_STATUS <<\_ACEOF cannam@89: if test x"$ac_file" != x-; then cannam@89: echo "/* $configure_input */" >"$tmp/config.h" cannam@89: cat "$ac_result" >>"$tmp/config.h" cannam@89: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then cannam@89: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 cannam@89: echo "$as_me: $ac_file is unchanged" >&6;} cannam@89: else cannam@89: rm -f $ac_file cannam@89: mv "$tmp/config.h" $ac_file cannam@89: fi cannam@89: else cannam@89: echo "/* $configure_input */" cannam@89: cat "$ac_result" cannam@89: fi cannam@89: rm -f "$tmp/out12" cannam@89: # Compute $ac_file's index in $config_headers. cannam@89: _am_arg=$ac_file cannam@89: _am_stamp_count=1 cannam@89: for _am_header in $config_headers :; do cannam@89: case $_am_header in cannam@89: $_am_arg | $_am_arg:* ) cannam@89: break ;; cannam@89: * ) cannam@89: _am_stamp_count=`expr $_am_stamp_count + 1` ;; cannam@89: esac cannam@89: done cannam@89: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || cannam@89: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@89: X"$_am_arg" : 'X\(//\)[^/]' \| \ cannam@89: X"$_am_arg" : 'X\(//\)$' \| \ cannam@89: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X"$_am_arg" | cannam@89: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)[^/].*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'`/stamp-h$_am_stamp_count cannam@89: ;; cannam@89: cannam@89: :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 cannam@89: echo "$as_me: executing $ac_file commands" >&6;} cannam@89: ;; cannam@89: esac cannam@89: cannam@89: cannam@89: case $ac_file$ac_mode in cannam@89: "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do cannam@89: # Strip MF so we end up with the name of the file. cannam@89: mf=`echo "$mf" | sed -e 's/:.*$//'` cannam@89: # Check whether this is an Automake generated Makefile or not. cannam@89: # We used to match only the files named `Makefile.in', but cannam@89: # some people rename them; so instead we look at the file content. cannam@89: # Grep'ing the first line is not enough: some people post-process cannam@89: # each Makefile.in and add a new line on top of each file to say so. cannam@89: # Grep'ing the whole file is not good either: AIX grep has a line cannam@89: # limit of 2048, but all sed's we know have understand at least 4000. cannam@89: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then cannam@89: dirpart=`$as_dirname -- "$mf" || cannam@89: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@89: X"$mf" : 'X\(//\)[^/]' \| \ cannam@89: X"$mf" : 'X\(//\)$' \| \ cannam@89: X"$mf" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X"$mf" | cannam@89: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)[^/].*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'` cannam@89: else cannam@89: continue cannam@89: fi cannam@89: # Extract the definition of DEPDIR, am__include, and am__quote cannam@89: # from the Makefile without running `make'. cannam@89: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` cannam@89: test -z "$DEPDIR" && continue cannam@89: am__include=`sed -n 's/^am__include = //p' < "$mf"` cannam@89: test -z "am__include" && continue cannam@89: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` cannam@89: # When using ansi2knr, U may be empty or an underscore; expand it cannam@89: U=`sed -n 's/^U = //p' < "$mf"` cannam@89: # Find all dependency output files, they are included files with cannam@89: # $(DEPDIR) in their names. We invoke sed twice because it is the cannam@89: # simplest approach to changing $(DEPDIR) to its actual value in the cannam@89: # expansion. cannam@89: for file in `sed -n " cannam@89: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ cannam@89: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do cannam@89: # Make sure the directory exists. cannam@89: test -f "$dirpart/$file" && continue cannam@89: fdir=`$as_dirname -- "$file" || cannam@89: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@89: X"$file" : 'X\(//\)[^/]' \| \ cannam@89: X"$file" : 'X\(//\)$' \| \ cannam@89: X"$file" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X"$file" | cannam@89: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)[^/].*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'` cannam@89: { as_dir=$dirpart/$fdir cannam@89: case $as_dir in #( cannam@89: -*) as_dir=./$as_dir;; cannam@89: esac cannam@89: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { cannam@89: as_dirs= cannam@89: while :; do cannam@89: case $as_dir in #( cannam@89: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( cannam@89: *) as_qdir=$as_dir;; cannam@89: esac cannam@89: as_dirs="'$as_qdir' $as_dirs" cannam@89: as_dir=`$as_dirname -- "$as_dir" || cannam@89: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@89: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@89: X"$as_dir" : 'X\(//\)$' \| \ cannam@89: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || cannam@89: echo X"$as_dir" | cannam@89: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)[^/].*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\/\)$/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: /^X\(\/\).*/{ cannam@89: s//\1/ cannam@89: q cannam@89: } cannam@89: s/.*/./; q'` cannam@89: test -d "$as_dir" && break cannam@89: done cannam@89: test -z "$as_dirs" || eval "mkdir $as_dirs" cannam@89: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 cannam@89: echo "$as_me: error: cannot create directory $as_dir" >&2;} cannam@89: { (exit 1); exit 1; }; }; } cannam@89: # echo "creating $dirpart/$file" cannam@89: echo '# dummy' > "$dirpart/$file" cannam@89: done cannam@89: done cannam@89: ;; cannam@89: "libtool":C) cannam@89: cannam@89: # See if we are running on zsh, and set the options which allow our cannam@89: # commands through without removal of \ escapes. cannam@89: if test -n "${ZSH_VERSION+set}" ; then cannam@89: setopt NO_GLOB_SUBST cannam@89: fi cannam@89: cannam@89: cfgfile="${ofile}T" cannam@89: trap "$RM \"$cfgfile\"; exit 1" 1 2 15 cannam@89: $RM "$cfgfile" cannam@89: cannam@89: cat <<_LT_EOF >> "$cfgfile" cannam@89: #! $SHELL cannam@89: cannam@89: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. cannam@89: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION cannam@89: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@89: # NOTE: Changes made to this file will be lost: look at ltmain.sh. cannam@89: # cannam@89: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, cannam@89: # 2006, 2007, 2008 Free Software Foundation, Inc. cannam@89: # Written by Gordon Matzigkeit, 1996 cannam@89: # cannam@89: # This file is part of GNU Libtool. cannam@89: # cannam@89: # GNU Libtool is free software; you can redistribute it and/or cannam@89: # modify it under the terms of the GNU General Public License as cannam@89: # published by the Free Software Foundation; either version 2 of cannam@89: # the License, or (at your option) any later version. cannam@89: # cannam@89: # As a special exception to the GNU General Public License, cannam@89: # if you distribute this file as part of a program or library that cannam@89: # is built using GNU Libtool, you may include this file under the cannam@89: # same distribution terms that you use for the rest of that program. cannam@89: # cannam@89: # GNU Libtool is distributed in the hope that it will be useful, cannam@89: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@89: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@89: # GNU General Public License for more details. cannam@89: # cannam@89: # You should have received a copy of the GNU General Public License cannam@89: # along with GNU Libtool; see the file COPYING. If not, a copy cannam@89: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or cannam@89: # obtained by writing to the Free Software Foundation, Inc., cannam@89: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. cannam@89: cannam@89: cannam@89: # The names of the tagged configurations supported by this script. cannam@89: available_tags="" cannam@89: cannam@89: # ### BEGIN LIBTOOL CONFIG cannam@89: cannam@89: # Whether or not to build static libraries. cannam@89: build_old_libs=$enable_static cannam@89: cannam@89: # Whether or not to build shared libraries. cannam@89: build_libtool_libs=$enable_shared cannam@89: cannam@89: # Which release of libtool.m4 was used? cannam@89: macro_version=$macro_version cannam@89: macro_revision=$macro_revision cannam@89: cannam@89: # What type of objects to build. cannam@89: pic_mode=$pic_mode cannam@89: cannam@89: # Whether or not to optimize for fast installation. cannam@89: fast_install=$enable_fast_install cannam@89: cannam@89: # The host system. cannam@89: host_alias=$host_alias cannam@89: host=$host cannam@89: host_os=$host_os cannam@89: cannam@89: # The build system. cannam@89: build_alias=$build_alias cannam@89: build=$build cannam@89: build_os=$build_os cannam@89: cannam@89: # A sed program that does not truncate output. cannam@89: SED=$lt_SED cannam@89: cannam@89: # Sed that helps us avoid accidentally triggering echo(1) options like -n. cannam@89: Xsed="\$SED -e 1s/^X//" cannam@89: cannam@89: # A grep program that handles long lines. cannam@89: GREP=$lt_GREP cannam@89: cannam@89: # An ERE matcher. cannam@89: EGREP=$lt_EGREP cannam@89: cannam@89: # A literal string matcher. cannam@89: FGREP=$lt_FGREP cannam@89: cannam@89: # A BSD- or MS-compatible name lister. cannam@89: NM=$lt_NM cannam@89: cannam@89: # Whether we need soft or hard links. cannam@89: LN_S=$lt_LN_S cannam@89: cannam@89: # What is the maximum length of a command? cannam@89: max_cmd_len=$max_cmd_len cannam@89: cannam@89: # Object file suffix (normally "o"). cannam@89: objext=$ac_objext cannam@89: cannam@89: # Executable file suffix (normally ""). cannam@89: exeext=$exeext cannam@89: cannam@89: # whether the shell understands "unset". cannam@89: lt_unset=$lt_unset cannam@89: cannam@89: # turn spaces into newlines. cannam@89: SP2NL=$lt_lt_SP2NL cannam@89: cannam@89: # turn newlines into spaces. cannam@89: NL2SP=$lt_lt_NL2SP cannam@89: cannam@89: # How to create reloadable object files. cannam@89: reload_flag=$lt_reload_flag cannam@89: reload_cmds=$lt_reload_cmds cannam@89: cannam@89: # Method to check whether dependent libraries are shared objects. cannam@89: deplibs_check_method=$lt_deplibs_check_method cannam@89: cannam@89: # Command to use when deplibs_check_method == "file_magic". cannam@89: file_magic_cmd=$lt_file_magic_cmd cannam@89: cannam@89: # The archiver. cannam@89: AR=$lt_AR cannam@89: AR_FLAGS=$lt_AR_FLAGS cannam@89: cannam@89: # A symbol stripping program. cannam@89: STRIP=$lt_STRIP cannam@89: cannam@89: # Commands used to install an old-style archive. cannam@89: RANLIB=$lt_RANLIB cannam@89: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@89: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@89: cannam@89: # A C compiler. cannam@89: LTCC=$lt_CC cannam@89: cannam@89: # LTCC compiler flags. cannam@89: LTCFLAGS=$lt_CFLAGS cannam@89: cannam@89: # Take the output of nm and produce a listing of raw symbols and C names. cannam@89: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@89: cannam@89: # Transform the output of nm in a proper C declaration. cannam@89: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@89: cannam@89: # Transform the output of nm in a C name address pair. cannam@89: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@89: cannam@89: # Transform the output of nm in a C name address pair when lib prefix is needed. cannam@89: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix cannam@89: cannam@89: # The name of the directory that contains temporary libtool files. cannam@89: objdir=$objdir cannam@89: cannam@89: # Shell to use when invoking shell scripts. cannam@89: SHELL=$lt_SHELL cannam@89: cannam@89: # An echo program that does not interpret backslashes. cannam@89: ECHO=$lt_ECHO cannam@89: cannam@89: # Used to examine libraries when file_magic_cmd begins with "file". cannam@89: MAGIC_CMD=$MAGIC_CMD cannam@89: cannam@89: # Must we lock files when doing compilation? cannam@89: need_locks=$lt_need_locks cannam@89: cannam@89: # Tool to manipulate archived DWARF debug symbol files on Mac OS X. cannam@89: DSYMUTIL=$lt_DSYMUTIL cannam@89: cannam@89: # Tool to change global to local symbols on Mac OS X. cannam@89: NMEDIT=$lt_NMEDIT cannam@89: cannam@89: # Tool to manipulate fat objects and archives on Mac OS X. cannam@89: LIPO=$lt_LIPO cannam@89: cannam@89: # ldd/readelf like tool for Mach-O binaries on Mac OS X. cannam@89: OTOOL=$lt_OTOOL cannam@89: cannam@89: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. cannam@89: OTOOL64=$lt_OTOOL64 cannam@89: cannam@89: # Old archive suffix (normally "a"). cannam@89: libext=$libext cannam@89: cannam@89: # Shared library suffix (normally ".so"). cannam@89: shrext_cmds=$lt_shrext_cmds cannam@89: cannam@89: # The commands to extract the exported symbol list from a shared archive. cannam@89: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@89: cannam@89: # Variables whose values should be saved in libtool wrapper scripts and cannam@89: # restored at link time. cannam@89: variables_saved_for_relink=$lt_variables_saved_for_relink cannam@89: cannam@89: # Do we need the "lib" prefix for modules? cannam@89: need_lib_prefix=$need_lib_prefix cannam@89: cannam@89: # Do we need a version for libraries? cannam@89: need_version=$need_version cannam@89: cannam@89: # Library versioning type. cannam@89: version_type=$version_type cannam@89: cannam@89: # Shared library runtime path variable. cannam@89: runpath_var=$runpath_var cannam@89: cannam@89: # Shared library path variable. cannam@89: shlibpath_var=$shlibpath_var cannam@89: cannam@89: # Is shlibpath searched before the hard-coded library search path? cannam@89: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@89: cannam@89: # Format of library name prefix. cannam@89: libname_spec=$lt_libname_spec cannam@89: cannam@89: # List of archive names. First name is the real one, the rest are links. cannam@89: # The last name is the one that the linker finds with -lNAME cannam@89: library_names_spec=$lt_library_names_spec cannam@89: cannam@89: # The coded name of the library, if different from the real name. cannam@89: soname_spec=$lt_soname_spec cannam@89: cannam@89: # Command to use after installation of a shared archive. cannam@89: postinstall_cmds=$lt_postinstall_cmds cannam@89: cannam@89: # Command to use after uninstallation of a shared archive. cannam@89: postuninstall_cmds=$lt_postuninstall_cmds cannam@89: cannam@89: # Commands used to finish a libtool library installation in a directory. cannam@89: finish_cmds=$lt_finish_cmds cannam@89: cannam@89: # As "finish_cmds", except a single script fragment to be evaled but cannam@89: # not shown. cannam@89: finish_eval=$lt_finish_eval cannam@89: cannam@89: # Whether we should hardcode library paths into libraries. cannam@89: hardcode_into_libs=$hardcode_into_libs cannam@89: cannam@89: # Compile-time system search path for libraries. cannam@89: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@89: cannam@89: # Run-time system search path for libraries. cannam@89: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@89: cannam@89: # Whether dlopen is supported. cannam@89: dlopen_support=$enable_dlopen cannam@89: cannam@89: # Whether dlopen of programs is supported. cannam@89: dlopen_self=$enable_dlopen_self cannam@89: cannam@89: # Whether dlopen of statically linked programs is supported. cannam@89: dlopen_self_static=$enable_dlopen_self_static cannam@89: cannam@89: # Commands to strip libraries. cannam@89: old_striplib=$lt_old_striplib cannam@89: striplib=$lt_striplib cannam@89: cannam@89: cannam@89: # The linker used to build libraries. cannam@89: LD=$lt_LD cannam@89: cannam@89: # Commands used to build an old-style archive. cannam@89: old_archive_cmds=$lt_old_archive_cmds cannam@89: cannam@89: # A language specific compiler. cannam@89: CC=$lt_compiler cannam@89: cannam@89: # Is the compiler the GNU compiler? cannam@89: with_gcc=$GCC cannam@89: cannam@89: # Compiler flag to turn off builtin functions. cannam@89: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag cannam@89: cannam@89: # How to pass a linker flag through the compiler. cannam@89: wl=$lt_lt_prog_compiler_wl cannam@89: cannam@89: # Additional compiler flags for building library objects. cannam@89: pic_flag=$lt_lt_prog_compiler_pic cannam@89: cannam@89: # Compiler flag to prevent dynamic linking. cannam@89: link_static_flag=$lt_lt_prog_compiler_static cannam@89: cannam@89: # Does compiler simultaneously support -c and -o options? cannam@89: compiler_c_o=$lt_lt_cv_prog_compiler_c_o cannam@89: cannam@89: # Whether or not to add -lc for building shared libraries. cannam@89: build_libtool_need_lc=$archive_cmds_need_lc cannam@89: cannam@89: # Whether or not to disallow shared libs when runtime libs are static. cannam@89: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes cannam@89: cannam@89: # Compiler flag to allow reflexive dlopens. cannam@89: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec cannam@89: cannam@89: # Compiler flag to generate shared objects directly from archives. cannam@89: whole_archive_flag_spec=$lt_whole_archive_flag_spec cannam@89: cannam@89: # Whether the compiler copes with passing no objects directly. cannam@89: compiler_needs_object=$lt_compiler_needs_object cannam@89: cannam@89: # Create an old-style archive from a shared archive. cannam@89: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds cannam@89: cannam@89: # Create a temporary old-style archive to link instead of a shared archive. cannam@89: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds cannam@89: cannam@89: # Commands used to build a shared archive. cannam@89: archive_cmds=$lt_archive_cmds cannam@89: archive_expsym_cmds=$lt_archive_expsym_cmds cannam@89: cannam@89: # Commands used to build a loadable module if different from building cannam@89: # a shared archive. cannam@89: module_cmds=$lt_module_cmds cannam@89: module_expsym_cmds=$lt_module_expsym_cmds cannam@89: cannam@89: # Whether we are building with GNU ld or not. cannam@89: with_gnu_ld=$lt_with_gnu_ld cannam@89: cannam@89: # Flag that allows shared libraries with undefined symbols to be built. cannam@89: allow_undefined_flag=$lt_allow_undefined_flag cannam@89: cannam@89: # Flag that enforces no undefined symbols. cannam@89: no_undefined_flag=$lt_no_undefined_flag cannam@89: cannam@89: # Flag to hardcode \$libdir into a binary during linking. cannam@89: # This must work even if \$libdir does not exist cannam@89: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec cannam@89: cannam@89: # If ld is used when linking, flag to hardcode \$libdir into a binary cannam@89: # during linking. This must work even if \$libdir does not exist. cannam@89: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld cannam@89: cannam@89: # Whether we need a single "-rpath" flag with a separated argument. cannam@89: hardcode_libdir_separator=$lt_hardcode_libdir_separator cannam@89: cannam@89: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes cannam@89: # DIR into the resulting binary. cannam@89: hardcode_direct=$hardcode_direct cannam@89: cannam@89: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes cannam@89: # DIR into the resulting binary and the resulting library dependency is cannam@89: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the cannam@89: # library is relocated. cannam@89: hardcode_direct_absolute=$hardcode_direct_absolute cannam@89: cannam@89: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR cannam@89: # into the resulting binary. cannam@89: hardcode_minus_L=$hardcode_minus_L cannam@89: cannam@89: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR cannam@89: # into the resulting binary. cannam@89: hardcode_shlibpath_var=$hardcode_shlibpath_var cannam@89: cannam@89: # Set to "yes" if building a shared library automatically hardcodes DIR cannam@89: # into the library and all subsequent libraries and executables linked cannam@89: # against it. cannam@89: hardcode_automatic=$hardcode_automatic cannam@89: cannam@89: # Set to yes if linker adds runtime paths of dependent libraries cannam@89: # to runtime path list. cannam@89: inherit_rpath=$inherit_rpath cannam@89: cannam@89: # Whether libtool must link a program against all its dependency libraries. cannam@89: link_all_deplibs=$link_all_deplibs cannam@89: cannam@89: # Fix the shell variable \$srcfile for the compiler. cannam@89: fix_srcfile_path=$lt_fix_srcfile_path cannam@89: cannam@89: # Set to "yes" if exported symbols are required. cannam@89: always_export_symbols=$always_export_symbols cannam@89: cannam@89: # The commands to list exported symbols. cannam@89: export_symbols_cmds=$lt_export_symbols_cmds cannam@89: cannam@89: # Symbols that should not be listed in the preloaded symbols. cannam@89: exclude_expsyms=$lt_exclude_expsyms cannam@89: cannam@89: # Symbols that must always be exported. cannam@89: include_expsyms=$lt_include_expsyms cannam@89: cannam@89: # Commands necessary for linking programs (against libraries) with templates. cannam@89: prelink_cmds=$lt_prelink_cmds cannam@89: cannam@89: # Specify filename containing input files. cannam@89: file_list_spec=$lt_file_list_spec cannam@89: cannam@89: # How to hardcode a shared library path into an executable. cannam@89: hardcode_action=$hardcode_action cannam@89: cannam@89: # ### END LIBTOOL CONFIG cannam@89: cannam@89: _LT_EOF cannam@89: cannam@89: case $host_os in cannam@89: aix3*) cannam@89: cat <<\_LT_EOF >> "$cfgfile" cannam@89: # AIX sometimes has problems with the GCC collect2 program. For some cannam@89: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@89: # vanish in a puff of smoke. cannam@89: if test "X${COLLECT_NAMES+set}" != Xset; then cannam@89: COLLECT_NAMES= cannam@89: export COLLECT_NAMES cannam@89: fi cannam@89: _LT_EOF cannam@89: ;; cannam@89: esac cannam@89: cannam@89: cannam@89: ltmain="$ac_aux_dir/ltmain.sh" cannam@89: cannam@89: cannam@89: # We use sed instead of cat because bash on DJGPP gets confused if cannam@89: # if finds mixed CR/LF and LF-only lines. Since sed operates in cannam@89: # text mode, it properly converts lines to CR/LF. This bash problem cannam@89: # is reportedly fixed, but why not run on old versions too? cannam@89: sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ cannam@89: || (rm -f "$cfgfile"; exit 1) cannam@89: cannam@89: case $xsi_shell in cannam@89: yes) cannam@89: cat << \_LT_EOF >> "$cfgfile" cannam@89: cannam@89: # func_dirname file append nondir_replacement cannam@89: # Compute the dirname of FILE. If nonempty, add APPEND to the result, cannam@89: # otherwise set result to NONDIR_REPLACEMENT. cannam@89: func_dirname () cannam@89: { cannam@89: case ${1} in cannam@89: */*) func_dirname_result="${1%/*}${2}" ;; cannam@89: * ) func_dirname_result="${3}" ;; cannam@89: esac cannam@89: } cannam@89: cannam@89: # func_basename file cannam@89: func_basename () cannam@89: { cannam@89: func_basename_result="${1##*/}" cannam@89: } cannam@89: cannam@89: # func_dirname_and_basename file append nondir_replacement cannam@89: # perform func_basename and func_dirname in a single function cannam@89: # call: cannam@89: # dirname: Compute the dirname of FILE. If nonempty, cannam@89: # add APPEND to the result, otherwise set result cannam@89: # to NONDIR_REPLACEMENT. cannam@89: # value returned in "$func_dirname_result" cannam@89: # basename: Compute filename of FILE. cannam@89: # value retuned in "$func_basename_result" cannam@89: # Implementation must be kept synchronized with func_dirname cannam@89: # and func_basename. For efficiency, we do not delegate to cannam@89: # those functions but instead duplicate the functionality here. cannam@89: func_dirname_and_basename () cannam@89: { cannam@89: case ${1} in cannam@89: */*) func_dirname_result="${1%/*}${2}" ;; cannam@89: * ) func_dirname_result="${3}" ;; cannam@89: esac cannam@89: func_basename_result="${1##*/}" cannam@89: } cannam@89: cannam@89: # func_stripname prefix suffix name cannam@89: # strip PREFIX and SUFFIX off of NAME. cannam@89: # PREFIX and SUFFIX must not contain globbing or regex special cannam@89: # characters, hashes, percent signs, but SUFFIX may contain a leading cannam@89: # dot (in which case that matches only a dot). cannam@89: func_stripname () cannam@89: { cannam@89: # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are cannam@89: # positional parameters, so assign one to ordinary parameter first. cannam@89: func_stripname_result=${3} cannam@89: func_stripname_result=${func_stripname_result#"${1}"} cannam@89: func_stripname_result=${func_stripname_result%"${2}"} cannam@89: } cannam@89: cannam@89: # func_opt_split cannam@89: func_opt_split () cannam@89: { cannam@89: func_opt_split_opt=${1%%=*} cannam@89: func_opt_split_arg=${1#*=} cannam@89: } cannam@89: cannam@89: # func_lo2o object cannam@89: func_lo2o () cannam@89: { cannam@89: case ${1} in cannam@89: *.lo) func_lo2o_result=${1%.lo}.${objext} ;; cannam@89: *) func_lo2o_result=${1} ;; cannam@89: esac cannam@89: } cannam@89: cannam@89: # func_xform libobj-or-source cannam@89: func_xform () cannam@89: { cannam@89: func_xform_result=${1%.*}.lo cannam@89: } cannam@89: cannam@89: # func_arith arithmetic-term... cannam@89: func_arith () cannam@89: { cannam@89: func_arith_result=$(( $* )) cannam@89: } cannam@89: cannam@89: # func_len string cannam@89: # STRING may not start with a hyphen. cannam@89: func_len () cannam@89: { cannam@89: func_len_result=${#1} cannam@89: } cannam@89: cannam@89: _LT_EOF cannam@89: ;; cannam@89: *) # Bourne compatible functions. cannam@89: cat << \_LT_EOF >> "$cfgfile" cannam@89: cannam@89: # func_dirname file append nondir_replacement cannam@89: # Compute the dirname of FILE. If nonempty, add APPEND to the result, cannam@89: # otherwise set result to NONDIR_REPLACEMENT. cannam@89: func_dirname () cannam@89: { cannam@89: # Extract subdirectory from the argument. cannam@89: func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` cannam@89: if test "X$func_dirname_result" = "X${1}"; then cannam@89: func_dirname_result="${3}" cannam@89: else cannam@89: func_dirname_result="$func_dirname_result${2}" cannam@89: fi cannam@89: } cannam@89: cannam@89: # func_basename file cannam@89: func_basename () cannam@89: { cannam@89: func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` cannam@89: } cannam@89: cannam@89: cannam@89: # func_stripname prefix suffix name cannam@89: # strip PREFIX and SUFFIX off of NAME. cannam@89: # PREFIX and SUFFIX must not contain globbing or regex special cannam@89: # characters, hashes, percent signs, but SUFFIX may contain a leading cannam@89: # dot (in which case that matches only a dot). cannam@89: # func_strip_suffix prefix name cannam@89: func_stripname () cannam@89: { cannam@89: case ${2} in cannam@89: .*) func_stripname_result=`$ECHO "X${3}" \ cannam@89: | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; cannam@89: *) func_stripname_result=`$ECHO "X${3}" \ cannam@89: | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; cannam@89: esac cannam@89: } cannam@89: cannam@89: # sed scripts: cannam@89: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' cannam@89: my_sed_long_arg='1s/^-[^=]*=//' cannam@89: cannam@89: # func_opt_split cannam@89: func_opt_split () cannam@89: { cannam@89: func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` cannam@89: func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` cannam@89: } cannam@89: cannam@89: # func_lo2o object cannam@89: func_lo2o () cannam@89: { cannam@89: func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` cannam@89: } cannam@89: cannam@89: # func_xform libobj-or-source cannam@89: func_xform () cannam@89: { cannam@89: func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` cannam@89: } cannam@89: cannam@89: # func_arith arithmetic-term... cannam@89: func_arith () cannam@89: { cannam@89: func_arith_result=`expr "$@"` cannam@89: } cannam@89: cannam@89: # func_len string cannam@89: # STRING may not start with a hyphen. cannam@89: func_len () cannam@89: { cannam@89: func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` cannam@89: } cannam@89: cannam@89: _LT_EOF cannam@89: esac cannam@89: cannam@89: case $lt_shell_append in cannam@89: yes) cannam@89: cat << \_LT_EOF >> "$cfgfile" cannam@89: cannam@89: # func_append var value cannam@89: # Append VALUE to the end of shell variable VAR. cannam@89: func_append () cannam@89: { cannam@89: eval "$1+=\$2" cannam@89: } cannam@89: _LT_EOF cannam@89: ;; cannam@89: *) cannam@89: cat << \_LT_EOF >> "$cfgfile" cannam@89: cannam@89: # func_append var value cannam@89: # Append VALUE to the end of shell variable VAR. cannam@89: func_append () cannam@89: { cannam@89: eval "$1=\$$1\$2" cannam@89: } cannam@89: cannam@89: _LT_EOF cannam@89: ;; cannam@89: esac cannam@89: cannam@89: cannam@89: sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ cannam@89: || (rm -f "$cfgfile"; exit 1) cannam@89: cannam@89: mv -f "$cfgfile" "$ofile" || cannam@89: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") cannam@89: chmod +x "$ofile" cannam@89: cannam@89: ;; cannam@89: cannam@89: esac cannam@89: done # for ac_tag cannam@89: cannam@89: cannam@89: { (exit 0); exit 0; } cannam@89: _ACEOF cannam@89: chmod +x $CONFIG_STATUS cannam@89: ac_clean_files=$ac_clean_files_save cannam@89: cannam@89: cannam@89: # configure is writing to config.log, and then calls config.status. cannam@89: # config.status does its own redirection, appending to config.log. cannam@89: # Unfortunately, on DOS this fails, as config.log is still kept open cannam@89: # by configure, so config.status won't be able to write to it; its cannam@89: # output is simply discarded. So we exec the FD to /dev/null, cannam@89: # effectively closing config.log, so it can be properly (re)opened and cannam@89: # appended to by config.status. When coming back to configure, we cannam@89: # need to make the FD available again. cannam@89: if test "$no_create" != yes; then cannam@89: ac_cs_success=: cannam@89: ac_config_status_args= cannam@89: test "$silent" = yes && cannam@89: ac_config_status_args="$ac_config_status_args --quiet" cannam@89: exec 5>/dev/null cannam@89: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false cannam@89: exec 5>>config.log cannam@89: # Use ||, not &&, to avoid exiting from the if with $? = 1, which cannam@89: # would make configure fail if this is the last instruction. cannam@89: $ac_cs_success || { (exit 1); exit 1; } cannam@89: fi cannam@89: