adamc@378: #! /bin/sh adamc@378: # Guess values for system-dependent variables and create Makefiles. adam@1616: # Generated by GNU Autoconf 2.68 for urweb 20111127. adamc@1095: # adamc@378: # adamc@378: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, adam@1315: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software adam@1315: # Foundation, Inc. adamc@1095: # adamc@1095: # adamc@378: # This configure script is free software; the Free Software Foundation adamc@378: # gives unlimited permission to copy, distribute and modify it. adamc@1095: ## -------------------- ## adamc@1095: ## M4sh Initialization. ## adamc@1095: ## -------------------- ## adamc@378: adamc@378: # Be more Bourne compatible adamc@378: DUALCASE=1; export DUALCASE # for MKS sh adamc@1095: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : adamc@378: emulate sh adamc@378: NULLCMD=: adamc@1095: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which adamc@378: # is contrary to our usage. Disable this feature. adamc@378: alias -g '${1+"$@"}'='"$@"' adamc@378: setopt NO_GLOB_SUBST adamc@378: else adamc@1095: case `(set -o) 2>/dev/null` in #( adamc@1095: *posix*) : adamc@1095: set -o posix ;; #( adamc@1095: *) : adamc@1095: ;; adamc@378: esac adamc@378: fi adamc@378: adamc@378: adamc@1095: as_nl=' adamc@1095: ' adamc@1095: export as_nl adamc@1095: # Printing a long string crashes Solaris 7 /usr/bin/printf. adamc@1095: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' adamc@1095: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo adamc@1095: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo adamc@1095: # Prefer a ksh shell builtin over an external printf program on Solaris, adamc@1095: # but without wasting forks for bash or zsh. adamc@1095: if test -z "$BASH_VERSION$ZSH_VERSION" \ adamc@1095: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then adamc@1095: as_echo='print -r --' adamc@1095: as_echo_n='print -rn --' adamc@1095: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then adamc@1095: as_echo='printf %s\n' adamc@1095: as_echo_n='printf %s' adamc@1095: else adamc@1095: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then adamc@1095: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' adamc@1095: as_echo_n='/usr/ucb/echo -n' adamc@1095: else adamc@1095: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' adamc@1095: as_echo_n_body='eval adamc@1095: arg=$1; adamc@1095: case $arg in #( adamc@1095: *"$as_nl"*) adamc@1095: expr "X$arg" : "X\\(.*\\)$as_nl"; adamc@1095: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; adamc@1095: esac; adamc@1095: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" adamc@1095: ' adamc@1095: export as_echo_n_body adamc@1095: as_echo_n='sh -c $as_echo_n_body as_echo' adamc@1095: fi adamc@1095: export as_echo_body adamc@1095: as_echo='sh -c $as_echo_body as_echo' adamc@1095: fi adamc@378: adamc@378: # The user is always right. adamc@378: if test "${PATH_SEPARATOR+set}" != set; then adamc@1095: PATH_SEPARATOR=: adamc@1095: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { adamc@1095: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || adamc@1095: PATH_SEPARATOR=';' adamc@1095: } adamc@378: fi adamc@378: adamc@378: adamc@378: # IFS adamc@378: # We need space, tab and new line, in precisely that order. Quoting is adamc@378: # there to prevent editors from complaining about space-tab. adamc@378: # (If _AS_PATH_WALK were called with IFS unset, it would disable word adamc@378: # splitting by setting IFS to empty value.) adamc@378: IFS=" "" $as_nl" adamc@378: adamc@378: # Find who we are. Look in the path if we contain no directory separator. adam@1599: as_myself= adamc@1095: case $0 in #(( adamc@378: *[\\/]* ) as_myself=$0 ;; adamc@378: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@378: for as_dir in $PATH adamc@378: do adamc@378: IFS=$as_save_IFS adamc@378: test -z "$as_dir" && as_dir=. adamc@1095: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break adamc@1095: done adamc@378: IFS=$as_save_IFS adamc@378: adamc@378: ;; adamc@378: esac adamc@378: # We did not find ourselves, most probably we were run as `sh COMMAND' adamc@378: # in which case we are not to be found in the path. adamc@378: if test "x$as_myself" = x; then adamc@378: as_myself=$0 adamc@378: fi adamc@378: if test ! -f "$as_myself"; then adamc@1095: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 adamc@1095: exit 1 adamc@378: fi adamc@378: adamc@1095: # Unset variables that we do not need and which cause bugs (e.g. in adamc@1095: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" adamc@1095: # suppresses any "Segmentation fault" message there. '((' could adamc@1095: # trigger a bug in pdksh 5.2.14. adamc@1095: for as_var in BASH_ENV ENV MAIL MAILPATH adamc@1095: do eval test x\${$as_var+set} = xset \ adamc@1095: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : adamc@378: done adamc@378: PS1='$ ' adamc@378: PS2='> ' adamc@378: PS4='+ ' adamc@378: adamc@378: # NLS nuisances. adamc@1095: LC_ALL=C adamc@1095: export LC_ALL adamc@1095: LANGUAGE=C adamc@1095: export LANGUAGE adamc@1095: adamc@1095: # CDPATH. adamc@1095: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH adamc@1095: adamc@1095: if test "x$CONFIG_SHELL" = x; then adamc@1095: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : adamc@1095: emulate sh adamc@1095: NULLCMD=: adamc@1095: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which adamc@1095: # is contrary to our usage. Disable this feature. adamc@1095: alias -g '\${1+\"\$@\"}'='\"\$@\"' adamc@1095: setopt NO_GLOB_SUBST adamc@1095: else adamc@1095: case \`(set -o) 2>/dev/null\` in #( adamc@1095: *posix*) : adamc@1095: set -o posix ;; #( adamc@1095: *) : adamc@1095: ;; adamc@1095: esac adamc@1095: fi adamc@1095: " adamc@1095: as_required="as_fn_return () { (exit \$1); } adamc@1095: as_fn_success () { as_fn_return 0; } adamc@1095: as_fn_failure () { as_fn_return 1; } adamc@1095: as_fn_ret_success () { return 0; } adamc@1095: as_fn_ret_failure () { return 1; } adamc@1095: adamc@1095: exitcode=0 adamc@1095: as_fn_success || { exitcode=1; echo as_fn_success failed.; } adamc@1095: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } adamc@1095: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } adamc@1095: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } adamc@1095: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : adamc@1095: adamc@1095: else adamc@1095: exitcode=1; echo positional parameters were not saved. adamc@1095: fi adamc@1095: test x\$exitcode = x0 || exit 1" adamc@1095: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO adamc@1095: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO adamc@1095: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && adamc@1132: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 adam@1459: test \$(( 1 + 1 )) = 2 || exit 1 adam@1459: adam@1459: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( adam@1459: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' adam@1459: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO adam@1459: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO adam@1459: PATH=/empty FPATH=/empty; export PATH FPATH adam@1459: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ adam@1459: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" adamc@1095: if (eval "$as_required") 2>/dev/null; then : adamc@1095: as_have_required=yes adamc@1095: else adamc@1095: as_have_required=no adamc@1095: fi adamc@1095: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : adamc@1095: adamc@1095: else adamc@1095: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1095: as_found=false adamc@1095: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH adamc@378: do adamc@1095: IFS=$as_save_IFS adamc@1095: test -z "$as_dir" && as_dir=. adamc@1095: as_found=: adamc@1095: case $as_dir in #( adamc@1095: /*) adamc@1095: for as_base in sh bash ksh sh5; do adamc@1095: # Try only shells that exist, to save several forks. adamc@1095: as_shell=$as_dir/$as_base adamc@1095: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && adamc@1095: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : adamc@1095: CONFIG_SHELL=$as_shell as_have_required=yes adamc@1095: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : adamc@1095: break 2 adamc@1095: fi adamc@1095: fi adamc@1095: done;; adamc@1095: esac adamc@1095: as_found=false adamc@1095: done adamc@1095: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && adamc@1095: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : adamc@1095: CONFIG_SHELL=$SHELL as_have_required=yes adamc@1095: fi; } adamc@1095: IFS=$as_save_IFS adamc@1095: adamc@1095: adamc@1095: if test "x$CONFIG_SHELL" != x; then : adamc@1095: # We cannot yet assume a decent shell, so we have to provide a adamc@1095: # neutralization value for shells without unset; and this also adamc@1095: # works around shells that cannot unset nonexistent variables. adam@1599: # Preserve -v and -x to the replacement shell. adamc@1095: BASH_ENV=/dev/null adamc@1095: ENV=/dev/null adamc@1095: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV adamc@1095: export CONFIG_SHELL adam@1599: case $- in # (((( adam@1599: *v*x* | *x*v* ) as_opts=-vx ;; adam@1599: *v* ) as_opts=-v ;; adam@1599: *x* ) as_opts=-x ;; adam@1599: * ) as_opts= ;; adam@1599: esac adam@1599: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} adamc@1095: fi adamc@1095: adamc@1095: if test x$as_have_required = xno; then : adamc@1095: $as_echo "$0: This script requires a shell more modern than all" adamc@1095: $as_echo "$0: the shells that I found on your system." adamc@1095: if test x${ZSH_VERSION+set} = xset ; then adamc@1095: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" adamc@1095: $as_echo "$0: be upgraded to zsh 4.3.4 or later." adamc@378: else adamc@1095: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, adamc@1095: $0: including any error possibly output before this adamc@1095: $0: message. Then install a modern shell, or manually run adamc@1095: $0: the script under such a shell if you do have one." adamc@378: fi adamc@1095: exit 1 adamc@1095: fi adamc@1095: fi adamc@1095: fi adamc@1095: SHELL=${CONFIG_SHELL-/bin/sh} adamc@1095: export SHELL adamc@1095: # Unset more variables known to interfere with behavior of common tools. adamc@1095: CLICOLOR_FORCE= GREP_OPTIONS= adamc@1095: unset CLICOLOR_FORCE GREP_OPTIONS adamc@378: adamc@1095: ## --------------------- ## adamc@1095: ## M4sh Shell Functions. ## adamc@1095: ## --------------------- ## adamc@1095: # as_fn_unset VAR adamc@1095: # --------------- adamc@1095: # Portably unset VAR. adamc@1095: as_fn_unset () adamc@1095: { adamc@1095: { eval $1=; unset $1;} adamc@1095: } adamc@1095: as_unset=as_fn_unset adamc@1095: adamc@1095: # as_fn_set_status STATUS adamc@1095: # ----------------------- adamc@1095: # Set $? to STATUS, without forking. adamc@1095: as_fn_set_status () adamc@1095: { adamc@1095: return $1 adamc@1095: } # as_fn_set_status adamc@1095: adamc@1095: # as_fn_exit STATUS adamc@1095: # ----------------- adamc@1095: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. adamc@1095: as_fn_exit () adamc@1095: { adamc@1095: set +e adamc@1095: as_fn_set_status $1 adamc@1095: exit $1 adamc@1095: } # as_fn_exit adamc@1095: adamc@1095: # as_fn_mkdir_p adamc@1095: # ------------- adamc@1095: # Create "$as_dir" as a directory, including parents if necessary. adamc@1095: as_fn_mkdir_p () adamc@1095: { adamc@1095: adamc@1095: case $as_dir in #( adamc@1095: -*) as_dir=./$as_dir;; adamc@1095: esac adamc@1095: test -d "$as_dir" || eval $as_mkdir_p || { adamc@1095: as_dirs= adamc@1095: while :; do adamc@1095: case $as_dir in #( adamc@1095: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( adamc@1095: *) as_qdir=$as_dir;; adamc@1095: esac adamc@1095: as_dirs="'$as_qdir' $as_dirs" adamc@1095: as_dir=`$as_dirname -- "$as_dir" || adamc@1095: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adamc@1095: X"$as_dir" : 'X\(//\)[^/]' \| \ adamc@1095: X"$as_dir" : 'X\(//\)$' \| \ adamc@1095: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || adamc@1095: $as_echo X"$as_dir" | adamc@1095: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adamc@1095: s//\1/ adamc@1095: q adamc@1095: } adamc@1095: /^X\(\/\/\)[^/].*/{ adamc@1095: s//\1/ adamc@1095: q adamc@1095: } adamc@1095: /^X\(\/\/\)$/{ adamc@1095: s//\1/ adamc@1095: q adamc@1095: } adamc@1095: /^X\(\/\).*/{ adamc@1095: s//\1/ adamc@1095: q adamc@1095: } adamc@1095: s/.*/./; q'` adamc@1095: test -d "$as_dir" && break adamc@1095: done adamc@1095: test -z "$as_dirs" || eval "mkdir $as_dirs" adam@1315: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" adamc@1095: adamc@1095: adamc@1095: } # as_fn_mkdir_p adamc@1095: # as_fn_append VAR VALUE adamc@1095: # ---------------------- adamc@1095: # Append the text in VALUE to the end of the definition contained in VAR. Take adamc@1095: # advantage of any shell optimizations that allow amortized linear growth over adamc@1095: # repeated appends, instead of the typical quadratic growth present in naive adamc@1095: # implementations. adamc@1095: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : adamc@1095: eval 'as_fn_append () adamc@1095: { adamc@1095: eval $1+=\$2 adamc@1095: }' adamc@1095: else adamc@1095: as_fn_append () adamc@1095: { adamc@1095: eval $1=\$$1\$2 adamc@1095: } adamc@1095: fi # as_fn_append adamc@1095: adamc@1095: # as_fn_arith ARG... adamc@1095: # ------------------ adamc@1095: # Perform arithmetic evaluation on the ARGs, and store the result in the adamc@1095: # global $as_val. Take advantage of shells that can avoid forks. The arguments adamc@1095: # must be portable across $(()) and expr. adamc@1095: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : adamc@1095: eval 'as_fn_arith () adamc@1095: { adamc@1095: as_val=$(( $* )) adamc@1095: }' adamc@1095: else adamc@1095: as_fn_arith () adamc@1095: { adamc@1095: as_val=`expr "$@" || test $? -eq 1` adamc@1095: } adamc@1095: fi # as_fn_arith adamc@1095: adamc@1095: adam@1315: # as_fn_error STATUS ERROR [LINENO LOG_FD] adam@1315: # ---------------------------------------- adamc@1095: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are adamc@1095: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the adam@1315: # script with STATUS, using 1 if that was 0. adamc@1095: as_fn_error () adamc@1095: { adam@1315: as_status=$1; test $as_status -eq 0 && as_status=1 adam@1315: if test "$4"; then adam@1315: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@1315: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 adam@1315: fi adam@1315: $as_echo "$as_me: error: $2" >&2 adamc@1095: as_fn_exit $as_status adamc@1095: } # as_fn_error adamc@1095: adamc@378: if expr a : '\(a\)' >/dev/null 2>&1 && adamc@378: test "X`expr 00001 : '.*\(...\)'`" = X001; then adamc@378: as_expr=expr adamc@378: else adamc@378: as_expr=false adamc@378: fi adamc@378: adamc@378: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then adamc@378: as_basename=basename adamc@378: else adamc@378: as_basename=false adamc@378: fi adamc@378: adamc@1095: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then adamc@1095: as_dirname=dirname adamc@1095: else adamc@1095: as_dirname=false adamc@1095: fi adamc@378: adamc@378: as_me=`$as_basename -- "$0" || adamc@378: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ adamc@378: X"$0" : 'X\(//\)$' \| \ adamc@378: X"$0" : 'X\(/\)' \| . 2>/dev/null || adamc@1095: $as_echo X/"$0" | adamc@378: sed '/^.*\/\([^/][^/]*\)\/*$/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\/\(\/\/\)$/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\/\(\/\).*/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: s/.*/./; q'` adamc@378: adamc@1095: # Avoid depending upon Character Ranges. adamc@1095: as_cr_letters='abcdefghijklmnopqrstuvwxyz' adamc@1095: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' adamc@1095: as_cr_Letters=$as_cr_letters$as_cr_LETTERS adamc@1095: as_cr_digits='0123456789' adamc@1095: as_cr_alnum=$as_cr_Letters$as_cr_digits adamc@378: adamc@378: adamc@1095: as_lineno_1=$LINENO as_lineno_1a=$LINENO adamc@1095: as_lineno_2=$LINENO as_lineno_2a=$LINENO adamc@1095: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && adamc@1095: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { adamc@1095: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) adamc@378: sed -n ' adamc@378: p adamc@378: /[$]LINENO/= adamc@378: ' <$as_myself | adamc@378: sed ' adamc@378: s/[$]LINENO.*/&-/ adamc@378: t lineno adamc@378: b adamc@378: :lineno adamc@378: N adamc@378: :loop adamc@378: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ adamc@378: t loop adamc@378: s/-\n.*// adamc@378: ' >$as_me.lineno && adamc@378: chmod +x "$as_me.lineno" || adamc@1095: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } adamc@378: adamc@378: # Don't try to exec as it changes $[0], causing all sort of problems adamc@378: # (the dirname of $[0] is not the place where we might find the adamc@378: # original and so on. Autoconf is especially sensitive to this). adamc@378: . "./$as_me.lineno" adamc@378: # Exit status is that of the last command. adamc@378: exit adamc@378: } adamc@378: adamc@378: ECHO_C= ECHO_N= ECHO_T= adamc@1095: case `echo -n x` in #((((( adamc@378: -n*) adamc@1095: case `echo 'xy\c'` in adamc@378: *c*) ECHO_T=' ';; # ECHO_T is single tab character. adamc@1095: xy) ECHO_C='\c';; adamc@1095: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null adamc@1095: ECHO_T=' ';; adamc@378: esac;; adamc@378: *) adamc@378: ECHO_N='-n';; adamc@378: esac adamc@378: adamc@378: rm -f conf$$ conf$$.exe conf$$.file adamc@378: if test -d conf$$.dir; then adamc@378: rm -f conf$$.dir/conf$$.file adamc@378: else adamc@378: rm -f conf$$.dir adamc@1095: mkdir conf$$.dir 2>/dev/null adamc@378: fi adamc@1095: if (echo >conf$$.file) 2>/dev/null; then adamc@1095: if ln -s conf$$.file conf$$ 2>/dev/null; then adamc@1095: as_ln_s='ln -s' adamc@1095: # ... but there are two gotchas: adamc@1095: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. adamc@1095: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. adamc@1095: # In both cases, we have to default to `cp -p'. adamc@1095: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || adamc@1095: as_ln_s='cp -p' adamc@1095: elif ln conf$$.file conf$$ 2>/dev/null; then adamc@1095: as_ln_s=ln adamc@1095: else adamc@378: as_ln_s='cp -p' adamc@1095: fi adamc@378: else adamc@378: as_ln_s='cp -p' adamc@378: fi adamc@378: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file adamc@378: rmdir conf$$.dir 2>/dev/null adamc@378: adamc@378: if mkdir -p . 2>/dev/null; then adamc@1095: as_mkdir_p='mkdir -p "$as_dir"' adamc@378: else adamc@378: test -d ./-p && rmdir ./-p adamc@378: as_mkdir_p=false adamc@378: fi adamc@378: adamc@378: if test -x / >/dev/null 2>&1; then adamc@378: as_test_x='test -x' adamc@378: else adamc@378: if ls -dL / >/dev/null 2>&1; then adamc@378: as_ls_L_option=L adamc@378: else adamc@378: as_ls_L_option= adamc@378: fi adamc@378: as_test_x=' adamc@378: eval sh -c '\'' adamc@378: if test -d "$1"; then adamc@1095: test -d "$1/."; adamc@378: else adamc@1095: case $1 in #( adamc@1095: -*)set "./$1";; adamc@378: esac; adamc@1095: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( adamc@378: ???[sx]*):;;*)false;;esac;fi adamc@378: '\'' sh adamc@378: ' adamc@378: fi adamc@378: as_executable_p=$as_test_x adamc@378: adamc@378: # Sed expression to map a string onto a valid CPP name. adamc@378: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" adamc@378: adamc@378: # Sed expression to map a string onto a valid variable name. adamc@378: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" adamc@378: adamc@1132: SHELL=${CONFIG_SHELL-/bin/sh} adamc@1132: adamc@1132: adamc@1095: test -n "$DJDIR" || exec 7<&0 &1 adamc@378: adamc@378: # Name of the host. adam@1315: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, adamc@378: # so uname gets run too. adamc@378: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` adamc@378: adamc@378: # adamc@378: # Initializations. adamc@378: # adamc@378: ac_default_prefix=/usr/local adamc@378: ac_clean_files= adamc@378: ac_config_libobj_dir=. adamc@378: LIBOBJS= adamc@378: cross_compiling=no adamc@378: subdirs= adamc@378: MFLAGS= adamc@378: MAKEFLAGS= adamc@378: adamc@378: # Identity of this package. adamc@1132: PACKAGE_NAME='urweb' adamc@1132: PACKAGE_TARNAME='urweb' adam@1616: PACKAGE_VERSION='20111127' adam@1616: PACKAGE_STRING='urweb 20111127' adamc@1132: PACKAGE_BUGREPORT='' adamc@1132: PACKAGE_URL='' adamc@1132: adamc@1132: # Factoring default headers for most tests. adamc@1132: ac_includes_default="\ adamc@1132: #include adamc@1132: #ifdef HAVE_SYS_TYPES_H adamc@1132: # include adamc@1132: #endif adamc@1132: #ifdef HAVE_SYS_STAT_H adamc@1132: # include adamc@1132: #endif adamc@1132: #ifdef STDC_HEADERS adamc@1132: # include adamc@1132: # include adamc@1132: #else adamc@1132: # ifdef HAVE_STDLIB_H adamc@1132: # include adamc@1132: # endif adamc@1132: #endif adamc@1132: #ifdef HAVE_STRING_H adamc@1132: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H adamc@1132: # include adamc@1132: # endif adamc@1132: # include adamc@1132: #endif adamc@1132: #ifdef HAVE_STRINGS_H adamc@1132: # include adamc@1132: #endif adamc@1132: #ifdef HAVE_INTTYPES_H adamc@1132: # include adamc@1132: #endif adamc@1132: #ifdef HAVE_STDINT_H adamc@1132: # include adamc@1132: #endif adamc@1132: #ifdef HAVE_UNISTD_H adamc@1132: # include adamc@1132: #endif" adamc@1132: adamc@1132: ac_subst_vars='am__EXEEXT_FALSE adamc@1132: am__EXEEXT_TRUE adamc@1132: LTLIBOBJS adamc@1095: LIBOBJS adam@1464: SQHEADER adam@1464: MSHEADER adam@1464: PGHEADER adam@1523: CCARGS adamc@1095: SITELISP adamc@1095: INCLUDE adamc@1095: LIB adamc@1095: BIN adam@1441: USE_EMACS_FALSE adam@1441: USE_EMACS_TRUE adamc@1165: MLYACC adamc@1165: MLLEX adamc@1165: MLTON adam@1368: OPENSSL_LDFLAGS adam@1368: OPENSSL_LIBS adam@1368: OPENSSL_INCLUDES adam@1368: PKG_CONFIG adam@1528: PTHREAD_CFLAGS adam@1528: PTHREAD_LIBS adam@1528: PTHREAD_CC adam@1528: ax_pthread_config adamc@1132: OTOOL64 adamc@1132: OTOOL adamc@1132: LIPO adamc@1132: NMEDIT adamc@1132: DSYMUTIL adam@1459: MANIFEST_TOOL adamc@1132: RANLIB adam@1459: ac_ct_AR adamc@1132: AR adam@1459: DLLTOOL adamc@1132: OBJDUMP adamc@1132: LN_S adamc@1132: NM adamc@1132: ac_ct_DUMPBIN adamc@1132: DUMPBIN adamc@1132: LD adamc@1132: FGREP adamc@1132: SED adamc@1132: host_os adamc@1132: host_vendor adamc@1132: host_cpu adamc@1132: host adamc@1132: build_os adamc@1132: build_vendor adamc@1132: build_cpu adamc@1132: build adamc@1132: LIBTOOL adamc@1132: am__fastdepCC_FALSE adamc@1132: am__fastdepCC_TRUE adamc@1132: CCDEPMODE adamc@1132: AMDEPBACKSLASH adamc@1132: AMDEP_FALSE adamc@1132: AMDEP_TRUE adamc@1132: am__quote adamc@1132: am__include adamc@1132: DEPDIR adamc@1132: am__untar adamc@1132: am__tar adamc@1132: AMTAR adamc@1132: am__leading_dot adamc@1132: SET_MAKE adamc@1132: AWK adamc@1132: mkdir_p adamc@1132: MKDIR_P adamc@1132: INSTALL_STRIP_PROGRAM adamc@1132: STRIP adamc@1132: install_sh adamc@1132: MAKEINFO adamc@1132: AUTOHEADER adamc@1132: AUTOMAKE adamc@1132: AUTOCONF adamc@1132: ACLOCAL adamc@1132: VERSION adamc@1132: PACKAGE adamc@1132: CYGPATH_W adamc@1132: am__isrc adamc@1132: INSTALL_DATA adamc@1132: INSTALL_SCRIPT adamc@1132: INSTALL_PROGRAM adamc@1149: EGREP adamc@1149: GREP adamc@1149: CPP adamc@1149: OBJEXT adamc@1149: EXEEXT adamc@1149: ac_ct_CC adamc@1149: CPPFLAGS adamc@1149: LDFLAGS adamc@1149: CFLAGS adamc@1149: CC adamc@1095: target_alias adamc@1095: host_alias adamc@1095: build_alias adamc@1095: LIBS adamc@1095: ECHO_T adamc@1095: ECHO_N adamc@1095: ECHO_C adamc@1095: DEFS adamc@1095: mandir adamc@1095: localedir adamc@1095: libdir adamc@1095: psdir adamc@1095: pdfdir adamc@1095: dvidir adamc@1095: htmldir adamc@1095: infodir adamc@1095: docdir adamc@1095: oldincludedir adamc@1095: includedir adamc@1095: localstatedir adamc@1095: sharedstatedir adamc@1095: sysconfdir adamc@1095: datadir adamc@1095: datarootdir adamc@1095: libexecdir adamc@1095: sbindir adamc@1095: bindir adamc@1095: program_transform_name adamc@1095: prefix adamc@1095: exec_prefix adamc@1095: PACKAGE_URL adamc@1095: PACKAGE_BUGREPORT adamc@1095: PACKAGE_STRING adamc@1095: PACKAGE_VERSION adamc@1095: PACKAGE_TARNAME adamc@1095: PACKAGE_NAME adamc@378: PATH_SEPARATOR adamc@1095: SHELL' adamc@378: ac_subst_files='' adamc@1095: ac_user_opts=' adamc@1095: enable_option_checking adamc@1132: enable_dependency_tracking adamc@1132: enable_shared adamc@1132: enable_static adamc@1132: with_pic adamc@1132: enable_fast_install adamc@1132: with_gnu_ld adam@1459: with_sysroot adamc@1132: enable_libtool_lock adam@1368: with_openssl adam@1441: with_emacs adamc@1095: ' adamc@378: ac_precious_vars='build_alias adamc@378: host_alias adamc@1132: target_alias adamc@1132: CC adamc@1132: CFLAGS adamc@1132: LDFLAGS adamc@1132: LIBS adamc@1132: CPPFLAGS adamc@1132: CPP' adamc@378: adamc@378: adamc@378: # Initialize some variables set by options. adamc@378: ac_init_help= adamc@378: ac_init_version=false adamc@1095: ac_unrecognized_opts= adamc@1095: ac_unrecognized_sep= adamc@378: # The variables have the same names as the options, with adamc@378: # dashes changed to underlines. adamc@378: cache_file=/dev/null adamc@378: exec_prefix=NONE adamc@378: no_create= adamc@378: no_recursion= adamc@378: prefix=NONE adamc@378: program_prefix=NONE adamc@378: program_suffix=NONE adamc@378: program_transform_name=s,x,x, adamc@378: silent= adamc@378: site= adamc@378: srcdir= adamc@378: verbose= adamc@378: x_includes=NONE adamc@378: x_libraries=NONE adamc@378: adamc@378: # Installation directory options. adamc@378: # These are left unexpanded so users can "make install exec_prefix=/foo" adamc@378: # and all the variables that are supposed to be based on exec_prefix adamc@378: # by default will actually change. adamc@378: # Use braces instead of parens because sh, perl, etc. also accept them. adamc@378: # (The list follows the same order as the GNU Coding Standards.) adamc@378: bindir='${exec_prefix}/bin' adamc@378: sbindir='${exec_prefix}/sbin' adamc@378: libexecdir='${exec_prefix}/libexec' adamc@378: datarootdir='${prefix}/share' adamc@378: datadir='${datarootdir}' adamc@378: sysconfdir='${prefix}/etc' adamc@378: sharedstatedir='${prefix}/com' adamc@378: localstatedir='${prefix}/var' adamc@378: includedir='${prefix}/include' adamc@378: oldincludedir='/usr/include' adamc@1132: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' adamc@378: infodir='${datarootdir}/info' adamc@378: htmldir='${docdir}' adamc@378: dvidir='${docdir}' adamc@378: pdfdir='${docdir}' adamc@378: psdir='${docdir}' adamc@378: libdir='${exec_prefix}/lib' adamc@378: localedir='${datarootdir}/locale' adamc@378: mandir='${datarootdir}/man' adamc@378: adamc@378: ac_prev= adamc@378: ac_dashdash= adamc@378: for ac_option adamc@378: do adamc@378: # If the previous option needs an argument, assign it. adamc@378: if test -n "$ac_prev"; then adamc@378: eval $ac_prev=\$ac_option adamc@378: ac_prev= adamc@378: continue adamc@378: fi adamc@378: adamc@378: case $ac_option in adam@1315: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; adam@1315: *=) ac_optarg= ;; adam@1315: *) ac_optarg=yes ;; adamc@378: esac adamc@378: adamc@378: # Accept the important Cygnus configure options, so we can diagnose typos. adamc@378: adamc@378: case $ac_dashdash$ac_option in adamc@378: --) adamc@378: ac_dashdash=yes ;; adamc@378: adamc@378: -bindir | --bindir | --bindi | --bind | --bin | --bi) adamc@378: ac_prev=bindir ;; adamc@378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) adamc@378: bindir=$ac_optarg ;; adamc@378: adamc@378: -build | --build | --buil | --bui | --bu) adamc@378: ac_prev=build_alias ;; adamc@378: -build=* | --build=* | --buil=* | --bui=* | --bu=*) adamc@378: build_alias=$ac_optarg ;; adamc@378: adamc@378: -cache-file | --cache-file | --cache-fil | --cache-fi \ adamc@378: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) adamc@378: ac_prev=cache_file ;; adamc@378: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ adamc@378: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) adamc@378: cache_file=$ac_optarg ;; adamc@378: adamc@378: --config-cache | -C) adamc@378: cache_file=config.cache ;; adamc@378: adamc@378: -datadir | --datadir | --datadi | --datad) adamc@378: ac_prev=datadir ;; adamc@378: -datadir=* | --datadir=* | --datadi=* | --datad=*) adamc@378: datadir=$ac_optarg ;; adamc@378: adamc@378: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ adamc@378: | --dataroo | --dataro | --datar) adamc@378: ac_prev=datarootdir ;; adamc@378: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ adamc@378: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) adamc@378: datarootdir=$ac_optarg ;; adamc@378: adamc@378: -disable-* | --disable-*) adamc@1095: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` adamc@378: # Reject names that are not valid shell variable names. adamc@1095: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && adam@1315: as_fn_error $? "invalid feature name: $ac_useropt" adamc@1095: ac_useropt_orig=$ac_useropt adamc@1095: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` adamc@1095: case $ac_user_opts in adamc@1095: *" adamc@1095: "enable_$ac_useropt" adamc@1095: "*) ;; adamc@1095: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" adamc@1095: ac_unrecognized_sep=', ';; adamc@1095: esac adamc@1095: eval enable_$ac_useropt=no ;; adamc@378: adamc@378: -docdir | --docdir | --docdi | --doc | --do) adamc@378: ac_prev=docdir ;; adamc@378: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) adamc@378: docdir=$ac_optarg ;; adamc@378: adamc@378: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) adamc@378: ac_prev=dvidir ;; adamc@378: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) adamc@378: dvidir=$ac_optarg ;; adamc@378: adamc@378: -enable-* | --enable-*) adamc@1095: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` adamc@378: # Reject names that are not valid shell variable names. adamc@1095: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && adam@1315: as_fn_error $? "invalid feature name: $ac_useropt" adamc@1095: ac_useropt_orig=$ac_useropt adamc@1095: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` adamc@1095: case $ac_user_opts in adamc@1095: *" adamc@1095: "enable_$ac_useropt" adamc@1095: "*) ;; adamc@1095: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" adamc@1095: ac_unrecognized_sep=', ';; adamc@1095: esac adamc@1095: eval enable_$ac_useropt=\$ac_optarg ;; adamc@378: adamc@378: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ adamc@378: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ adamc@378: | --exec | --exe | --ex) adamc@378: ac_prev=exec_prefix ;; adamc@378: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ adamc@378: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ adamc@378: | --exec=* | --exe=* | --ex=*) adamc@378: exec_prefix=$ac_optarg ;; adamc@378: adamc@378: -gas | --gas | --ga | --g) adamc@378: # Obsolete; use --with-gas. adamc@378: with_gas=yes ;; adamc@378: adamc@378: -help | --help | --hel | --he | -h) adamc@378: ac_init_help=long ;; adamc@378: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) adamc@378: ac_init_help=recursive ;; adamc@378: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) adamc@378: ac_init_help=short ;; adamc@378: adamc@378: -host | --host | --hos | --ho) adamc@378: ac_prev=host_alias ;; adamc@378: -host=* | --host=* | --hos=* | --ho=*) adamc@378: host_alias=$ac_optarg ;; adamc@378: adamc@378: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) adamc@378: ac_prev=htmldir ;; adamc@378: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ adamc@378: | --ht=*) adamc@378: htmldir=$ac_optarg ;; adamc@378: adamc@378: -includedir | --includedir | --includedi | --included | --include \ adamc@378: | --includ | --inclu | --incl | --inc) adamc@378: ac_prev=includedir ;; adamc@378: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ adamc@378: | --includ=* | --inclu=* | --incl=* | --inc=*) adamc@378: includedir=$ac_optarg ;; adamc@378: adamc@378: -infodir | --infodir | --infodi | --infod | --info | --inf) adamc@378: ac_prev=infodir ;; adamc@378: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) adamc@378: infodir=$ac_optarg ;; adamc@378: adamc@378: -libdir | --libdir | --libdi | --libd) adamc@378: ac_prev=libdir ;; adamc@378: -libdir=* | --libdir=* | --libdi=* | --libd=*) adamc@378: libdir=$ac_optarg ;; adamc@378: adamc@378: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ adamc@378: | --libexe | --libex | --libe) adamc@378: ac_prev=libexecdir ;; adamc@378: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ adamc@378: | --libexe=* | --libex=* | --libe=*) adamc@378: libexecdir=$ac_optarg ;; adamc@378: adamc@378: -localedir | --localedir | --localedi | --localed | --locale) adamc@378: ac_prev=localedir ;; adamc@378: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) adamc@378: localedir=$ac_optarg ;; adamc@378: adamc@378: -localstatedir | --localstatedir | --localstatedi | --localstated \ adamc@378: | --localstate | --localstat | --localsta | --localst | --locals) adamc@378: ac_prev=localstatedir ;; adamc@378: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ adamc@378: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) adamc@378: localstatedir=$ac_optarg ;; adamc@378: adamc@378: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) adamc@378: ac_prev=mandir ;; adamc@378: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) adamc@378: mandir=$ac_optarg ;; adamc@378: adamc@378: -nfp | --nfp | --nf) adamc@378: # Obsolete; use --without-fp. adamc@378: with_fp=no ;; adamc@378: adamc@378: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ adamc@378: | --no-cr | --no-c | -n) adamc@378: no_create=yes ;; adamc@378: adamc@378: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ adamc@378: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) adamc@378: no_recursion=yes ;; adamc@378: adamc@378: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ adamc@378: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ adamc@378: | --oldin | --oldi | --old | --ol | --o) adamc@378: ac_prev=oldincludedir ;; adamc@378: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ adamc@378: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ adamc@378: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) adamc@378: oldincludedir=$ac_optarg ;; adamc@378: adamc@378: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) adamc@378: ac_prev=prefix ;; adamc@378: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) adamc@378: prefix=$ac_optarg ;; adamc@378: adamc@378: -program-prefix | --program-prefix | --program-prefi | --program-pref \ adamc@378: | --program-pre | --program-pr | --program-p) adamc@378: ac_prev=program_prefix ;; adamc@378: -program-prefix=* | --program-prefix=* | --program-prefi=* \ adamc@378: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) adamc@378: program_prefix=$ac_optarg ;; adamc@378: adamc@378: -program-suffix | --program-suffix | --program-suffi | --program-suff \ adamc@378: | --program-suf | --program-su | --program-s) adamc@378: ac_prev=program_suffix ;; adamc@378: -program-suffix=* | --program-suffix=* | --program-suffi=* \ adamc@378: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) adamc@378: program_suffix=$ac_optarg ;; adamc@378: adamc@378: -program-transform-name | --program-transform-name \ adamc@378: | --program-transform-nam | --program-transform-na \ adamc@378: | --program-transform-n | --program-transform- \ adamc@378: | --program-transform | --program-transfor \ adamc@378: | --program-transfo | --program-transf \ adamc@378: | --program-trans | --program-tran \ adamc@378: | --progr-tra | --program-tr | --program-t) adamc@378: ac_prev=program_transform_name ;; adamc@378: -program-transform-name=* | --program-transform-name=* \ adamc@378: | --program-transform-nam=* | --program-transform-na=* \ adamc@378: | --program-transform-n=* | --program-transform-=* \ adamc@378: | --program-transform=* | --program-transfor=* \ adamc@378: | --program-transfo=* | --program-transf=* \ adamc@378: | --program-trans=* | --program-tran=* \ adamc@378: | --progr-tra=* | --program-tr=* | --program-t=*) adamc@378: program_transform_name=$ac_optarg ;; adamc@378: adamc@378: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) adamc@378: ac_prev=pdfdir ;; adamc@378: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) adamc@378: pdfdir=$ac_optarg ;; adamc@378: adamc@378: -psdir | --psdir | --psdi | --psd | --ps) adamc@378: ac_prev=psdir ;; adamc@378: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) adamc@378: psdir=$ac_optarg ;; adamc@378: adamc@378: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ adamc@378: | -silent | --silent | --silen | --sile | --sil) adamc@378: silent=yes ;; adamc@378: adamc@378: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) adamc@378: ac_prev=sbindir ;; adamc@378: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ adamc@378: | --sbi=* | --sb=*) adamc@378: sbindir=$ac_optarg ;; adamc@378: adamc@378: -sharedstatedir | --sharedstatedir | --sharedstatedi \ adamc@378: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ adamc@378: | --sharedst | --shareds | --shared | --share | --shar \ adamc@378: | --sha | --sh) adamc@378: ac_prev=sharedstatedir ;; adamc@378: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ adamc@378: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ adamc@378: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ adamc@378: | --sha=* | --sh=*) adamc@378: sharedstatedir=$ac_optarg ;; adamc@378: adamc@378: -site | --site | --sit) adamc@378: ac_prev=site ;; adamc@378: -site=* | --site=* | --sit=*) adamc@378: site=$ac_optarg ;; adamc@378: adamc@378: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) adamc@378: ac_prev=srcdir ;; adamc@378: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) adamc@378: srcdir=$ac_optarg ;; adamc@378: adamc@378: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ adamc@378: | --syscon | --sysco | --sysc | --sys | --sy) adamc@378: ac_prev=sysconfdir ;; adamc@378: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ adamc@378: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) adamc@378: sysconfdir=$ac_optarg ;; adamc@378: adamc@378: -target | --target | --targe | --targ | --tar | --ta | --t) adamc@378: ac_prev=target_alias ;; adamc@378: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) adamc@378: target_alias=$ac_optarg ;; adamc@378: adamc@378: -v | -verbose | --verbose | --verbos | --verbo | --verb) adamc@378: verbose=yes ;; adamc@378: adamc@378: -version | --version | --versio | --versi | --vers | -V) adamc@378: ac_init_version=: ;; adamc@378: adamc@378: -with-* | --with-*) adamc@1095: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` adamc@378: # Reject names that are not valid shell variable names. adamc@1095: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && adam@1315: as_fn_error $? "invalid package name: $ac_useropt" adamc@1095: ac_useropt_orig=$ac_useropt adamc@1095: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` adamc@1095: case $ac_user_opts in adamc@1095: *" adamc@1095: "with_$ac_useropt" adamc@1095: "*) ;; adamc@1095: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" adamc@1095: ac_unrecognized_sep=', ';; adamc@1095: esac adamc@1095: eval with_$ac_useropt=\$ac_optarg ;; adamc@378: adamc@378: -without-* | --without-*) adamc@1095: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` adamc@378: # Reject names that are not valid shell variable names. adamc@1095: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && adam@1315: as_fn_error $? "invalid package name: $ac_useropt" adamc@1095: ac_useropt_orig=$ac_useropt adamc@1095: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` adamc@1095: case $ac_user_opts in adamc@1095: *" adamc@1095: "with_$ac_useropt" adamc@1095: "*) ;; adamc@1095: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" adamc@1095: ac_unrecognized_sep=', ';; adamc@1095: esac adamc@1095: eval with_$ac_useropt=no ;; adamc@378: adamc@378: --x) adamc@378: # Obsolete; use --with-x. adamc@378: with_x=yes ;; adamc@378: adamc@378: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ adamc@378: | --x-incl | --x-inc | --x-in | --x-i) adamc@378: ac_prev=x_includes ;; adamc@378: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ adamc@378: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) adamc@378: x_includes=$ac_optarg ;; adamc@378: adamc@378: -x-libraries | --x-libraries | --x-librarie | --x-librari \ adamc@378: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) adamc@378: ac_prev=x_libraries ;; adamc@378: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ adamc@378: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) adamc@378: x_libraries=$ac_optarg ;; adamc@378: adam@1315: -*) as_fn_error $? "unrecognized option: \`$ac_option' adam@1315: Try \`$0 --help' for more information" adamc@378: ;; adamc@378: adamc@378: *=*) adamc@378: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` adamc@378: # Reject names that are not valid shell variable names. adamc@1095: case $ac_envvar in #( adamc@1095: '' | [0-9]* | *[!_$as_cr_alnum]* ) adam@1315: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; adamc@1095: esac adamc@378: eval $ac_envvar=\$ac_optarg adamc@378: export $ac_envvar ;; adamc@378: adamc@378: *) adamc@378: # FIXME: should be removed in autoconf 3.0. adamc@1095: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 adamc@378: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && adamc@1095: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 adam@1599: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" adamc@378: ;; adamc@378: adamc@378: esac adamc@378: done adamc@378: adamc@378: if test -n "$ac_prev"; then adamc@378: ac_option=--`echo $ac_prev | sed 's/_/-/g'` adam@1315: as_fn_error $? "missing argument to $ac_option" adamc@378: fi adamc@378: adamc@1095: if test -n "$ac_unrecognized_opts"; then adamc@1095: case $enable_option_checking in adamc@1095: no) ;; adam@1315: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; adamc@1095: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; adamc@1095: esac adamc@1095: fi adamc@1095: adamc@1095: # Check all directory arguments for consistency. adamc@378: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ adamc@378: datadir sysconfdir sharedstatedir localstatedir includedir \ adamc@378: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ adamc@378: libdir localedir mandir adamc@378: do adamc@378: eval ac_val=\$$ac_var adamc@1095: # Remove trailing slashes. adamc@1095: case $ac_val in adamc@1095: */ ) adamc@1095: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` adamc@1095: eval $ac_var=\$ac_val;; adamc@1095: esac adamc@1095: # Be sure to have absolute directory names. adamc@378: case $ac_val in adamc@378: [\\/$]* | ?:[\\/]* ) continue;; adamc@378: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; adamc@378: esac adam@1315: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" adamc@378: done adamc@378: adamc@378: # There might be people who depend on the old broken behavior: `$host' adamc@378: # used to hold the argument of --host etc. adamc@378: # FIXME: To remove some day. adamc@378: build=$build_alias adamc@378: host=$host_alias adamc@378: target=$target_alias adamc@378: adamc@378: # FIXME: To remove some day. adamc@378: if test "x$host_alias" != x; then adamc@378: if test "x$build_alias" = x; then adamc@378: cross_compiling=maybe adam@1315: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. adam@1315: If a cross compiler is detected then cross compile mode will be used" >&2 adamc@378: elif test "x$build_alias" != "x$host_alias"; then adamc@378: cross_compiling=yes adamc@378: fi adamc@378: fi adamc@378: adamc@378: ac_tool_prefix= adamc@378: test -n "$host_alias" && ac_tool_prefix=$host_alias- adamc@378: adamc@378: test "$silent" = yes && exec 6>/dev/null adamc@378: adamc@378: adamc@378: ac_pwd=`pwd` && test -n "$ac_pwd" && adamc@378: ac_ls_di=`ls -di .` && adamc@378: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || adam@1315: as_fn_error $? "working directory cannot be determined" adamc@378: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || adam@1315: as_fn_error $? "pwd does not report name of working directory" adamc@378: adamc@378: adamc@378: # Find the source files, if location was not specified. adamc@378: if test -z "$srcdir"; then adamc@378: ac_srcdir_defaulted=yes adamc@378: # Try the directory containing this script, then the parent directory. adamc@1095: ac_confdir=`$as_dirname -- "$as_myself" || adamc@1095: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adamc@1095: X"$as_myself" : 'X\(//\)[^/]' \| \ adamc@1095: X"$as_myself" : 'X\(//\)$' \| \ adamc@1095: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || adamc@1095: $as_echo X"$as_myself" | adamc@378: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\(\/\/\)[^/].*/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\(\/\/\)$/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\(\/\).*/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: s/.*/./; q'` adamc@378: srcdir=$ac_confdir adamc@378: if test ! -r "$srcdir/$ac_unique_file"; then adamc@378: srcdir=.. adamc@378: fi adamc@378: else adamc@378: ac_srcdir_defaulted=no adamc@378: fi adamc@378: if test ! -r "$srcdir/$ac_unique_file"; then adamc@378: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." adam@1315: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" adamc@378: fi adamc@378: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" adamc@378: ac_abs_confdir=`( adam@1315: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" adamc@378: pwd)` adamc@378: # When building in place, set srcdir=. adamc@378: if test "$ac_abs_confdir" = "$ac_pwd"; then adamc@378: srcdir=. adamc@378: fi adamc@378: # Remove unnecessary trailing slashes from srcdir. adamc@378: # Double slashes in file names in object file debugging info adamc@378: # mess up M-x gdb in Emacs. adamc@378: case $srcdir in adamc@378: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; adamc@378: esac adamc@378: for ac_var in $ac_precious_vars; do adamc@378: eval ac_env_${ac_var}_set=\${${ac_var}+set} adamc@378: eval ac_env_${ac_var}_value=\$${ac_var} adamc@378: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} adamc@378: eval ac_cv_env_${ac_var}_value=\$${ac_var} adamc@378: done adamc@378: adamc@378: # adamc@378: # Report the --help message. adamc@378: # adamc@378: if test "$ac_init_help" = "long"; then adamc@378: # Omit some internal or obsolete options to make the list less imposing. adamc@378: # This message is too long to be a string in the A/UX 3.1 sh. adamc@378: cat <<_ACEOF adam@1616: \`configure' configures urweb 20111127 to adapt to many kinds of systems. adamc@378: adamc@378: Usage: $0 [OPTION]... [VAR=VALUE]... adamc@378: adamc@378: To assign environment variables (e.g., CC, CFLAGS...), specify them as adamc@378: VAR=VALUE. See below for descriptions of some of the useful variables. adamc@378: adamc@378: Defaults for the options are specified in brackets. adamc@378: adamc@378: Configuration: adamc@378: -h, --help display this help and exit adamc@378: --help=short display options specific to this package adamc@378: --help=recursive display the short help of all the included packages adamc@378: -V, --version display version information and exit adam@1315: -q, --quiet, --silent do not print \`checking ...' messages adamc@378: --cache-file=FILE cache test results in FILE [disabled] adamc@378: -C, --config-cache alias for \`--cache-file=config.cache' adamc@378: -n, --no-create do not create output files adamc@378: --srcdir=DIR find the sources in DIR [configure dir or \`..'] adamc@378: adamc@378: Installation directories: adamc@378: --prefix=PREFIX install architecture-independent files in PREFIX adamc@1095: [$ac_default_prefix] adamc@378: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX adamc@1095: [PREFIX] adamc@378: adamc@378: By default, \`make install' will install all the files in adamc@378: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify adamc@378: an installation prefix other than \`$ac_default_prefix' using \`--prefix', adamc@378: for instance \`--prefix=\$HOME'. adamc@378: adamc@378: For better control, use the options below. adamc@378: adamc@378: Fine tuning of the installation directories: adamc@1095: --bindir=DIR user executables [EPREFIX/bin] adamc@1095: --sbindir=DIR system admin executables [EPREFIX/sbin] adamc@1095: --libexecdir=DIR program executables [EPREFIX/libexec] adamc@1095: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] adamc@1095: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] adamc@1095: --localstatedir=DIR modifiable single-machine data [PREFIX/var] adamc@1095: --libdir=DIR object code libraries [EPREFIX/lib] adamc@1095: --includedir=DIR C header files [PREFIX/include] adamc@1095: --oldincludedir=DIR C header files for non-gcc [/usr/include] adamc@1095: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] adamc@1095: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] adamc@1095: --infodir=DIR info documentation [DATAROOTDIR/info] adamc@1095: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] adamc@1095: --mandir=DIR man documentation [DATAROOTDIR/man] adamc@1132: --docdir=DIR documentation root [DATAROOTDIR/doc/urweb] adamc@1095: --htmldir=DIR html documentation [DOCDIR] adamc@1095: --dvidir=DIR dvi documentation [DOCDIR] adamc@1095: --pdfdir=DIR pdf documentation [DOCDIR] adamc@1095: --psdir=DIR ps documentation [DOCDIR] adamc@378: _ACEOF adamc@378: adamc@378: cat <<\_ACEOF adamc@1132: adamc@1132: Program names: adamc@1132: --program-prefix=PREFIX prepend PREFIX to installed program names adamc@1132: --program-suffix=SUFFIX append SUFFIX to installed program names adamc@1132: --program-transform-name=PROGRAM run sed PROGRAM on installed program names adamc@1132: adamc@1132: System types: adamc@1132: --build=BUILD configure for building on BUILD [guessed] adamc@1132: --host=HOST cross-compile to build programs to run on HOST [BUILD] adamc@378: _ACEOF adamc@378: fi adamc@378: adamc@378: if test -n "$ac_init_help"; then adamc@1132: case $ac_init_help in adam@1616: short | recursive ) echo "Configuration of urweb 20111127:";; adamc@1132: esac adamc@378: cat <<\_ACEOF adamc@378: adamc@1132: Optional Features: adamc@1132: --disable-option-checking ignore unrecognized --enable/--with options adamc@1132: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) adamc@1132: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] adamc@1132: --disable-dependency-tracking speeds up one-time build adamc@1132: --enable-dependency-tracking do not reject slow dependency extractors adamc@1132: --enable-shared[=PKGS] build shared libraries [default=yes] adamc@1132: --enable-static[=PKGS] build static libraries [default=yes] adamc@1132: --enable-fast-install[=PKGS] adamc@1132: optimize for fast installation [default=yes] adamc@1132: --disable-libtool-lock avoid locking (might break parallel builds) adamc@1132: adamc@1132: Optional Packages: adamc@1132: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] adamc@1132: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) adam@1599: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use adamc@1132: both] adamc@1132: --with-gnu-ld assume the C compiler uses GNU ld [default=no] adam@1459: --with-sysroot=DIR Search for dependent libraries within DIR adam@1459: (or the compiler's sysroot if not specified). adam@1368: --with-openssl=DIR root of the OpenSSL directory adam@1441: --without-emacs disable installation of Emacs mode adamc@1132: adamc@1132: Some influential environment variables: adamc@1132: CC C compiler command adamc@1132: CFLAGS C compiler flags adamc@1132: LDFLAGS linker flags, e.g. -L if you have libraries in a adamc@1132: nonstandard directory adamc@1132: LIBS libraries to pass to the linker, e.g. -l adamc@1132: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if adamc@1132: you have headers in a nonstandard directory adamc@1132: CPP C preprocessor adamc@1132: adamc@1132: Use these variables to override the choices made by `configure' or to help adamc@1132: it to find libraries and programs with nonstandard names/locations. adamc@1132: adamc@1095: Report bugs to the package provider. adamc@378: _ACEOF adamc@378: ac_status=$? adamc@378: fi adamc@378: adamc@378: if test "$ac_init_help" = "recursive"; then adamc@378: # If there are subdirs, report their specific --help. adamc@378: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue adamc@1095: test -d "$ac_dir" || adamc@1095: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || adamc@1095: continue adamc@378: ac_builddir=. adamc@378: adamc@378: case "$ac_dir" in adamc@378: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; adamc@378: *) adamc@1095: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` adamc@378: # A ".." for each directory in $ac_dir_suffix. adamc@1095: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` adamc@378: case $ac_top_builddir_sub in adamc@378: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; adamc@378: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; adamc@378: esac ;; adamc@378: esac adamc@378: ac_abs_top_builddir=$ac_pwd adamc@378: ac_abs_builddir=$ac_pwd$ac_dir_suffix adamc@378: # for backward compatibility: adamc@378: ac_top_builddir=$ac_top_build_prefix adamc@378: adamc@378: case $srcdir in adamc@378: .) # We are building in place. adamc@378: ac_srcdir=. adamc@378: ac_top_srcdir=$ac_top_builddir_sub adamc@378: ac_abs_top_srcdir=$ac_pwd ;; adamc@378: [\\/]* | ?:[\\/]* ) # Absolute name. adamc@378: ac_srcdir=$srcdir$ac_dir_suffix; adamc@378: ac_top_srcdir=$srcdir adamc@378: ac_abs_top_srcdir=$srcdir ;; adamc@378: *) # Relative name. adamc@378: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix adamc@378: ac_top_srcdir=$ac_top_build_prefix$srcdir adamc@378: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; adamc@378: esac adamc@378: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix adamc@378: adamc@378: cd "$ac_dir" || { ac_status=$?; continue; } adamc@378: # Check for guested configure. adamc@378: if test -f "$ac_srcdir/configure.gnu"; then adamc@378: echo && adamc@378: $SHELL "$ac_srcdir/configure.gnu" --help=recursive adamc@378: elif test -f "$ac_srcdir/configure"; then adamc@378: echo && adamc@378: $SHELL "$ac_srcdir/configure" --help=recursive adamc@378: else adamc@1095: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 adamc@378: fi || ac_status=$? adamc@378: cd "$ac_pwd" || { ac_status=$?; break; } adamc@378: done adamc@378: fi adamc@378: adamc@378: test -n "$ac_init_help" && exit $ac_status adamc@378: if $ac_init_version; then adamc@378: cat <<\_ACEOF adam@1616: urweb configure 20111127 adam@1599: generated by GNU Autoconf 2.68 adam@1315: adam@1315: Copyright (C) 2010 Free Software Foundation, Inc. adamc@378: This configure script is free software; the Free Software Foundation adamc@378: gives unlimited permission to copy, distribute and modify it. adamc@378: _ACEOF adamc@378: exit adamc@378: fi adamc@1095: adamc@1095: ## ------------------------ ## adamc@1095: ## Autoconf initialization. ## adamc@1095: ## ------------------------ ## adamc@1132: adamc@1132: # ac_fn_c_try_compile LINENO adamc@1132: # -------------------------- adamc@1132: # Try to compile conftest.$ac_ext, and return whether this succeeded. adamc@1132: ac_fn_c_try_compile () adamc@1132: { adamc@1132: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adamc@1132: rm -f conftest.$ac_objext adamc@1132: if { { ac_try="$ac_compile" adamc@1132: case "(($ac_try" in adamc@1132: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1132: *) ac_try_echo=$ac_try;; adamc@1132: esac adamc@1132: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1132: $as_echo "$ac_try_echo"; } >&5 adamc@1132: (eval "$ac_compile") 2>conftest.err adamc@1132: ac_status=$? adamc@1132: if test -s conftest.err; then adamc@1132: grep -v '^ *+' conftest.err >conftest.er1 adamc@1132: cat conftest.er1 >&5 adamc@1132: mv -f conftest.er1 conftest.err adamc@1132: fi adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; } && { adamc@1132: test -z "$ac_c_werror_flag" || adamc@1132: test ! -s conftest.err adamc@1132: } && test -s conftest.$ac_objext; then : adamc@1132: ac_retval=0 adamc@1132: else adamc@1132: $as_echo "$as_me: failed program was:" >&5 adamc@1132: sed 's/^/| /' conftest.$ac_ext >&5 adamc@1132: adamc@1132: ac_retval=1 adamc@1132: fi adam@1599: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adamc@1132: as_fn_set_status $ac_retval adamc@1132: adamc@1132: } # ac_fn_c_try_compile adamc@1132: adamc@1149: # ac_fn_c_try_cpp LINENO adamc@1149: # ---------------------- adamc@1149: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. adamc@1149: ac_fn_c_try_cpp () adamc@1149: { adamc@1149: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adamc@1149: if { { ac_try="$ac_cpp conftest.$ac_ext" adamc@1149: case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err adamc@1149: ac_status=$? adamc@1149: if test -s conftest.err; then adamc@1149: grep -v '^ *+' conftest.err >conftest.er1 adamc@1149: cat conftest.er1 >&5 adamc@1149: mv -f conftest.er1 conftest.err adamc@1149: fi adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@1315: test $ac_status = 0; } > conftest.i && { adamc@1149: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || adamc@1149: test ! -s conftest.err adamc@1149: }; then : adamc@1149: ac_retval=0 adamc@1149: else adamc@1149: $as_echo "$as_me: failed program was:" >&5 adamc@1149: sed 's/^/| /' conftest.$ac_ext >&5 adamc@1149: adamc@1149: ac_retval=1 adamc@1149: fi adam@1599: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adamc@1149: as_fn_set_status $ac_retval adamc@1149: adamc@1149: } # ac_fn_c_try_cpp adamc@1149: adamc@1149: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES adamc@1149: # ------------------------------------------------------- adamc@1149: # Tests whether HEADER exists, giving a warning if it cannot be compiled using adamc@1149: # the include files in INCLUDES and setting the cache variable VAR adamc@1149: # accordingly. adamc@1149: ac_fn_c_check_header_mongrel () adamc@1149: { adamc@1149: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@1599: if eval \${$3+:} false; then : adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 adamc@1149: $as_echo_n "checking for $2... " >&6; } adam@1599: if eval \${$3+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: fi adamc@1149: eval ac_res=\$$3 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 adamc@1149: $as_echo "$ac_res" >&6; } adamc@1149: else adamc@1149: # Is the header compilable? adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 adamc@1149: $as_echo_n "checking $2 usability... " >&6; } adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: $4 adamc@1149: #include <$2> adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_header_compiler=yes adamc@1149: else adamc@1149: ac_header_compiler=no adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 adamc@1149: $as_echo "$ac_header_compiler" >&6; } adamc@1149: adamc@1149: # Is the header present? adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 adamc@1149: $as_echo_n "checking $2 presence... " >&6; } adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include <$2> adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_cpp "$LINENO"; then : adamc@1149: ac_header_preproc=yes adamc@1149: else adamc@1149: ac_header_preproc=no adamc@1149: fi adam@1315: rm -f conftest.err conftest.i conftest.$ac_ext adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 adamc@1149: $as_echo "$ac_header_preproc" >&6; } adamc@1149: adamc@1149: # So? What about this header? adamc@1149: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( adamc@1149: yes:no: ) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 adamc@1149: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 adamc@1149: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} adamc@1149: ;; adamc@1149: no:yes:* ) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 adamc@1149: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 adamc@1149: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 adamc@1149: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 adamc@1149: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 adamc@1149: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} adamc@1149: ;; adamc@1149: esac adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 adamc@1149: $as_echo_n "checking for $2... " >&6; } adam@1599: if eval \${$3+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: eval "$3=\$ac_header_compiler" adamc@1149: fi adamc@1149: eval ac_res=\$$3 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 adamc@1149: $as_echo "$ac_res" >&6; } adamc@1149: fi adam@1599: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adamc@1149: adamc@1149: } # ac_fn_c_check_header_mongrel adamc@1149: adamc@1149: # ac_fn_c_try_run LINENO adamc@1149: # ---------------------- adamc@1149: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes adamc@1149: # that executables *can* be run. adamc@1149: ac_fn_c_try_run () adamc@1149: { adamc@1149: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adamc@1149: if { { ac_try="$ac_link" adamc@1149: case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_link") 2>&5 adamc@1149: ac_status=$? adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' adamc@1149: { { case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_try") 2>&5 adamc@1149: ac_status=$? adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; }; }; then : adamc@1149: ac_retval=0 adamc@1149: else adamc@1149: $as_echo "$as_me: program exited with status $ac_status" >&5 adamc@1149: $as_echo "$as_me: failed program was:" >&5 adamc@1149: sed 's/^/| /' conftest.$ac_ext >&5 adamc@1149: adamc@1149: ac_retval=$ac_status adamc@1149: fi adamc@1149: rm -rf conftest.dSYM conftest_ipa8_conftest.oo adam@1599: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adamc@1149: as_fn_set_status $ac_retval adamc@1149: adamc@1149: } # ac_fn_c_try_run adamc@1149: adamc@1149: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES adamc@1149: # ------------------------------------------------------- adamc@1149: # Tests whether HEADER exists and can be compiled using the include files in adamc@1149: # INCLUDES, setting the cache variable VAR accordingly. adamc@1149: ac_fn_c_check_header_compile () adamc@1149: { adamc@1149: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 adamc@1149: $as_echo_n "checking for $2... " >&6; } adam@1599: if eval \${$3+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: $4 adamc@1149: #include <$2> adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: eval "$3=yes" adamc@1149: else adamc@1149: eval "$3=no" adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: fi adamc@1149: eval ac_res=\$$3 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 adamc@1149: $as_echo "$ac_res" >&6; } adam@1599: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adamc@1149: adamc@1149: } # ac_fn_c_check_header_compile adamc@1149: adamc@1132: # ac_fn_c_try_link LINENO adamc@1132: # ----------------------- adamc@1132: # Try to link conftest.$ac_ext, and return whether this succeeded. adamc@1132: ac_fn_c_try_link () adamc@1132: { adamc@1132: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adamc@1132: rm -f conftest.$ac_objext conftest$ac_exeext adamc@1132: if { { ac_try="$ac_link" adamc@1132: case "(($ac_try" in adamc@1132: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1132: *) ac_try_echo=$ac_try;; adamc@1132: esac adamc@1132: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1132: $as_echo "$ac_try_echo"; } >&5 adamc@1132: (eval "$ac_link") 2>conftest.err adamc@1132: ac_status=$? adamc@1132: if test -s conftest.err; then adamc@1132: grep -v '^ *+' conftest.err >conftest.er1 adamc@1132: cat conftest.er1 >&5 adamc@1132: mv -f conftest.er1 conftest.err adamc@1132: fi adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; } && { adamc@1132: test -z "$ac_c_werror_flag" || adamc@1132: test ! -s conftest.err adamc@1132: } && test -s conftest$ac_exeext && { adamc@1132: test "$cross_compiling" = yes || adamc@1132: $as_test_x conftest$ac_exeext adamc@1132: }; then : adamc@1132: ac_retval=0 adamc@1132: else adamc@1132: $as_echo "$as_me: failed program was:" >&5 adamc@1132: sed 's/^/| /' conftest.$ac_ext >&5 adamc@1132: adamc@1132: ac_retval=1 adamc@1132: fi adamc@1132: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information adamc@1132: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would adamc@1132: # interfere with the next link command; also delete a directory that is adamc@1132: # left behind by Apple's compiler. We do this before executing the actions. adamc@1132: rm -rf conftest.dSYM conftest_ipa8_conftest.oo adam@1599: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adamc@1132: as_fn_set_status $ac_retval adamc@1132: adamc@1132: } # ac_fn_c_try_link adamc@1132: adamc@1132: # ac_fn_c_check_func LINENO FUNC VAR adamc@1132: # ---------------------------------- adamc@1132: # Tests whether FUNC exists, setting the cache variable VAR accordingly adamc@1132: ac_fn_c_check_func () adamc@1132: { adamc@1132: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 adamc@1132: $as_echo_n "checking for $2... " >&6; } adam@1599: if eval \${$3+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: /* Define $2 to an innocuous variant, in case declares $2. adamc@1132: For example, HP-UX 11i declares gettimeofday. */ adamc@1132: #define $2 innocuous_$2 adamc@1132: adamc@1132: /* System header to define __stub macros and hopefully few prototypes, adamc@1132: which can conflict with char $2 (); below. adamc@1132: Prefer to if __STDC__ is defined, since adamc@1132: exists even on freestanding compilers. */ adamc@1132: adamc@1132: #ifdef __STDC__ adamc@1132: # include adamc@1132: #else adamc@1132: # include adamc@1132: #endif adamc@1132: adamc@1132: #undef $2 adamc@1132: adamc@1132: /* Override any GCC internal prototype to avoid an error. adamc@1132: Use char because int might match the return type of a GCC adamc@1132: builtin and then its argument prototype would still apply. */ adamc@1132: #ifdef __cplusplus adamc@1132: extern "C" adamc@1132: #endif adamc@1132: char $2 (); adamc@1132: /* The GNU C library defines this for functions which it implements adamc@1132: to always fail with ENOSYS. Some functions are actually named adamc@1132: something starting with __ and the normal name is an alias. */ adamc@1132: #if defined __stub_$2 || defined __stub___$2 adamc@1132: choke me adamc@1132: #endif adamc@1132: adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: return $2 (); adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: eval "$3=yes" adamc@1132: else adamc@1132: eval "$3=no" adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adamc@1132: fi adamc@1132: eval ac_res=\$$3 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 adamc@1132: $as_echo "$ac_res" >&6; } adam@1599: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adamc@1132: adamc@1132: } # ac_fn_c_check_func adamc@378: cat >config.log <<_ACEOF adamc@378: This file contains any messages produced by compilers while adamc@378: running configure, to aid debugging if configure makes a mistake. adamc@378: adam@1616: It was created by urweb $as_me 20111127, which was adam@1599: generated by GNU Autoconf 2.68. Invocation command line was adamc@378: adamc@378: $ $0 $@ adamc@378: adamc@378: _ACEOF adamc@378: exec 5>>config.log adamc@378: { adamc@378: cat <<_ASUNAME adamc@378: ## --------- ## adamc@378: ## Platform. ## adamc@378: ## --------- ## adamc@378: adamc@378: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` adamc@378: uname -m = `(uname -m) 2>/dev/null || echo unknown` adamc@378: uname -r = `(uname -r) 2>/dev/null || echo unknown` adamc@378: uname -s = `(uname -s) 2>/dev/null || echo unknown` adamc@378: uname -v = `(uname -v) 2>/dev/null || echo unknown` adamc@378: adamc@378: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` adamc@378: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` adamc@378: adamc@378: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` adamc@378: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` adamc@378: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` adamc@378: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` adamc@378: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` adamc@378: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` adamc@378: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` adamc@378: adamc@378: _ASUNAME adamc@378: adamc@378: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@378: for as_dir in $PATH adamc@378: do adamc@378: IFS=$as_save_IFS adamc@378: test -z "$as_dir" && as_dir=. adamc@1095: $as_echo "PATH: $as_dir" adamc@1095: done adamc@378: IFS=$as_save_IFS adamc@378: adamc@378: } >&5 adamc@378: adamc@378: cat >&5 <<_ACEOF adamc@378: adamc@378: adamc@378: ## ----------- ## adamc@378: ## Core tests. ## adamc@378: ## ----------- ## adamc@378: adamc@378: _ACEOF adamc@378: adamc@378: adamc@378: # Keep a trace of the command line. adamc@378: # Strip out --no-create and --no-recursion so they do not pile up. adamc@378: # Strip out --silent because we don't want to record it for future runs. adamc@378: # Also quote any args containing shell meta-characters. adamc@378: # Make two passes to allow for proper duplicate-argument suppression. adamc@378: ac_configure_args= adamc@378: ac_configure_args0= adamc@378: ac_configure_args1= adamc@378: ac_must_keep_next=false adamc@378: for ac_pass in 1 2 adamc@378: do adamc@378: for ac_arg adamc@378: do adamc@378: case $ac_arg in adamc@378: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; adamc@378: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ adamc@378: | -silent | --silent | --silen | --sile | --sil) adamc@378: continue ;; adamc@378: *\'*) adamc@1095: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; adamc@378: esac adamc@378: case $ac_pass in adamc@1095: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; adamc@378: 2) adamc@1095: as_fn_append ac_configure_args1 " '$ac_arg'" adamc@378: if test $ac_must_keep_next = true; then adamc@378: ac_must_keep_next=false # Got value, back to normal. adamc@378: else adamc@378: case $ac_arg in adamc@378: *=* | --config-cache | -C | -disable-* | --disable-* \ adamc@378: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ adamc@378: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ adamc@378: | -with-* | --with-* | -without-* | --without-* | --x) adamc@378: case "$ac_configure_args0 " in adamc@378: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; adamc@378: esac adamc@378: ;; adamc@378: -* ) ac_must_keep_next=true ;; adamc@378: esac adamc@378: fi adamc@1095: as_fn_append ac_configure_args " '$ac_arg'" adamc@378: ;; adamc@378: esac adamc@378: done adamc@378: done adamc@1095: { ac_configure_args0=; unset ac_configure_args0;} adamc@1095: { ac_configure_args1=; unset ac_configure_args1;} adamc@378: adamc@378: # When interrupted or exit'd, cleanup temporary files, and complete adamc@378: # config.log. We remove comments because anyway the quotes in there adamc@378: # would cause problems or look ugly. adamc@378: # WARNING: Use '\'' to represent an apostrophe within the trap. adamc@378: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. adamc@378: trap 'exit_status=$? adamc@378: # Save into config.log some information that might help in debugging. adamc@378: { adamc@378: echo adamc@378: adam@1315: $as_echo "## ---------------- ## adamc@378: ## Cache variables. ## adam@1315: ## ---------------- ##" adamc@378: echo adamc@378: # The following way of writing the cache mishandles newlines in values, adamc@378: ( adamc@378: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do adamc@378: eval ac_val=\$$ac_var adamc@378: case $ac_val in #( adamc@378: *${as_nl}*) adamc@378: case $ac_var in #( adamc@1095: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 adamc@1095: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; adamc@378: esac adamc@378: case $ac_var in #( adamc@378: _ | IFS | as_nl) ;; #( adamc@1095: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( adamc@1095: *) { eval $ac_var=; unset $ac_var;} ;; adamc@378: esac ;; adamc@378: esac adamc@378: done adamc@378: (set) 2>&1 | adamc@378: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( adamc@378: *${as_nl}ac_space=\ *) adamc@378: sed -n \ adamc@378: "s/'\''/'\''\\\\'\'''\''/g; adamc@378: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" adamc@378: ;; #( adamc@378: *) adamc@378: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" adamc@378: ;; adamc@378: esac | adamc@378: sort adamc@378: ) adamc@378: echo adamc@378: adam@1315: $as_echo "## ----------------- ## adamc@378: ## Output variables. ## adam@1315: ## ----------------- ##" adamc@378: echo adamc@378: for ac_var in $ac_subst_vars adamc@378: do adamc@378: eval ac_val=\$$ac_var adamc@378: case $ac_val in adamc@1095: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; adamc@378: esac adamc@1095: $as_echo "$ac_var='\''$ac_val'\''" adamc@378: done | sort adamc@378: echo adamc@378: adamc@378: if test -n "$ac_subst_files"; then adam@1315: $as_echo "## ------------------- ## adamc@378: ## File substitutions. ## adam@1315: ## ------------------- ##" adamc@378: echo adamc@378: for ac_var in $ac_subst_files adamc@378: do adamc@378: eval ac_val=\$$ac_var adamc@378: case $ac_val in adamc@1095: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; adamc@378: esac adamc@1095: $as_echo "$ac_var='\''$ac_val'\''" adamc@378: done | sort adamc@378: echo adamc@378: fi adamc@378: adamc@378: if test -s confdefs.h; then adam@1315: $as_echo "## ----------- ## adamc@378: ## confdefs.h. ## adam@1315: ## ----------- ##" adamc@378: echo adamc@378: cat confdefs.h adamc@378: echo adamc@378: fi adamc@378: test "$ac_signal" != 0 && adamc@1095: $as_echo "$as_me: caught signal $ac_signal" adamc@1095: $as_echo "$as_me: exit $exit_status" adamc@378: } >&5 adamc@378: rm -f core *.core core.conftest.* && adamc@378: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && adamc@378: exit $exit_status adamc@378: ' 0 adamc@378: for ac_signal in 1 2 13 15; do adamc@1095: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal adamc@378: done adamc@378: ac_signal=0 adamc@378: adamc@378: # confdefs.h avoids OS command line length limits that DEFS can exceed. adamc@378: rm -f -r conftest* confdefs.h adamc@378: adamc@1095: $as_echo "/* confdefs.h */" > confdefs.h adamc@1095: adamc@378: # Predefined preprocessor variables. adamc@378: adamc@378: cat >>confdefs.h <<_ACEOF adamc@378: #define PACKAGE_NAME "$PACKAGE_NAME" adamc@378: _ACEOF adamc@378: adamc@378: cat >>confdefs.h <<_ACEOF adamc@378: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" adamc@378: _ACEOF adamc@378: adamc@378: cat >>confdefs.h <<_ACEOF adamc@378: #define PACKAGE_VERSION "$PACKAGE_VERSION" adamc@378: _ACEOF adamc@378: adamc@378: cat >>confdefs.h <<_ACEOF adamc@378: #define PACKAGE_STRING "$PACKAGE_STRING" adamc@378: _ACEOF adamc@378: adamc@378: cat >>confdefs.h <<_ACEOF adamc@378: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" adamc@378: _ACEOF adamc@378: adamc@1095: cat >>confdefs.h <<_ACEOF adamc@1095: #define PACKAGE_URL "$PACKAGE_URL" adamc@1095: _ACEOF adamc@1095: adamc@378: adamc@378: # Let the site file select an alternate cache file if it wants to. adamc@1095: # Prefer an explicitly selected file to automatically selected ones. adamc@1095: ac_site_file1=NONE adamc@1095: ac_site_file2=NONE adamc@378: if test -n "$CONFIG_SITE"; then adam@1315: # We do not want a PATH search for config.site. adam@1315: case $CONFIG_SITE in #(( adam@1315: -*) ac_site_file1=./$CONFIG_SITE;; adam@1315: */*) ac_site_file1=$CONFIG_SITE;; adam@1315: *) ac_site_file1=./$CONFIG_SITE;; adam@1315: esac adamc@378: elif test "x$prefix" != xNONE; then adamc@1095: ac_site_file1=$prefix/share/config.site adamc@1095: ac_site_file2=$prefix/etc/config.site adamc@378: else adamc@1095: ac_site_file1=$ac_default_prefix/share/config.site adamc@1095: ac_site_file2=$ac_default_prefix/etc/config.site adamc@378: fi adamc@1095: for ac_site_file in "$ac_site_file1" "$ac_site_file2" adamc@378: do adamc@1095: test "x$ac_site_file" = xNONE && continue adamc@1095: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 adamc@1095: $as_echo "$as_me: loading site script $ac_site_file" >&6;} adamc@378: sed 's/^/| /' "$ac_site_file" >&5 adam@1315: . "$ac_site_file" \ adam@1315: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@1315: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@1315: as_fn_error $? "failed to load site script $ac_site_file adam@1599: See \`config.log' for more details" "$LINENO" 5; } adamc@378: fi adamc@378: done adamc@378: adamc@378: if test -r "$cache_file"; then adamc@1095: # Some versions of bash will fail to source /dev/null (special files adamc@1095: # actually), so we avoid doing that. DJGPP emulates it as a regular file. adamc@1095: if test /dev/null != "$cache_file" && test -f "$cache_file"; then adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 adamc@1095: $as_echo "$as_me: loading cache $cache_file" >&6;} adamc@378: case $cache_file in adamc@378: [\\/]* | ?:[\\/]* ) . "$cache_file";; adamc@378: *) . "./$cache_file";; adamc@378: esac adamc@378: fi adamc@378: else adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 adamc@1095: $as_echo "$as_me: creating cache $cache_file" >&6;} adamc@378: >$cache_file adamc@378: fi adamc@378: adamc@378: # Check that the precious variables saved in the cache have kept the same adamc@378: # value. adamc@378: ac_cache_corrupted=false adamc@378: for ac_var in $ac_precious_vars; do adamc@378: eval ac_old_set=\$ac_cv_env_${ac_var}_set adamc@378: eval ac_new_set=\$ac_env_${ac_var}_set adamc@378: eval ac_old_val=\$ac_cv_env_${ac_var}_value adamc@378: eval ac_new_val=\$ac_env_${ac_var}_value adamc@378: case $ac_old_set,$ac_new_set in adamc@378: set,) adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 adamc@1095: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} adamc@378: ac_cache_corrupted=: ;; adamc@378: ,set) adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 adamc@1095: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} adamc@378: ac_cache_corrupted=: ;; adamc@378: ,);; adamc@378: *) adamc@378: if test "x$ac_old_val" != "x$ac_new_val"; then adamc@1095: # differences in whitespace do not lead to failure. adamc@1095: ac_old_val_w=`echo x $ac_old_val` adamc@1095: ac_new_val_w=`echo x $ac_new_val` adamc@1095: if test "$ac_old_val_w" != "$ac_new_val_w"; then adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 adamc@1095: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} adamc@1095: ac_cache_corrupted=: adamc@1095: else adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 adamc@1095: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} adamc@1095: eval $ac_var=\$ac_old_val adamc@1095: fi adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 adamc@1095: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 adamc@1095: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} adamc@378: fi;; adamc@378: esac adamc@378: # Pass precious variables to config.status. adamc@378: if test "$ac_new_set" = set; then adamc@378: case $ac_new_val in adamc@1095: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; adamc@378: *) ac_arg=$ac_var=$ac_new_val ;; adamc@378: esac adamc@378: case " $ac_configure_args " in adamc@378: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. adamc@1095: *) as_fn_append ac_configure_args " '$ac_arg'" ;; adamc@378: esac adamc@378: fi adamc@378: done adamc@378: if $ac_cache_corrupted; then adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adamc@1095: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 adamc@1095: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} adam@1315: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 adamc@378: fi adamc@1095: ## -------------------- ## adamc@1095: ## Main body of script. ## adamc@1095: ## -------------------- ## adamc@378: adamc@378: ac_ext=c adamc@378: ac_cpp='$CPP $CPPFLAGS' adamc@378: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@378: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@378: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@378: adamc@378: adam@1617: WORKING_VERSION=1 adamc@1149: ac_ext=c adamc@1149: ac_cpp='$CPP $CPPFLAGS' adamc@1149: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1149: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1149: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1149: if test -n "$ac_tool_prefix"; then adamc@1149: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. adamc@1149: set dummy ${ac_tool_prefix}gcc; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$CC"; then adamc@1149: ac_cv_prog_CC="$CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_CC="${ac_tool_prefix}gcc" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: CC=$ac_cv_prog_CC adamc@1149: if test -n "$CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adamc@1149: $as_echo "$CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: fi adamc@1149: if test -z "$ac_cv_prog_CC"; then adamc@1149: ac_ct_CC=$CC adamc@1149: # Extract the first word of "gcc", so it can be a program name with args. adamc@1149: set dummy gcc; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$ac_ct_CC"; then adamc@1149: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_ac_ct_CC="gcc" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: ac_ct_CC=$ac_cv_prog_ac_ct_CC adamc@1149: if test -n "$ac_ct_CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 adamc@1149: $as_echo "$ac_ct_CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: if test "x$ac_ct_CC" = x; then adamc@1149: CC="" adamc@1149: else adamc@1149: case $cross_compiling:$ac_tool_warned in adamc@1149: yes:) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1149: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1149: ac_tool_warned=yes ;; adamc@1149: esac adamc@1149: CC=$ac_ct_CC adamc@1149: fi adamc@1149: else adamc@1149: CC="$ac_cv_prog_CC" adamc@1149: fi adamc@1149: adamc@1149: if test -z "$CC"; then adamc@1149: if test -n "$ac_tool_prefix"; then adamc@1149: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. adamc@1149: set dummy ${ac_tool_prefix}cc; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$CC"; then adamc@1149: ac_cv_prog_CC="$CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_CC="${ac_tool_prefix}cc" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: CC=$ac_cv_prog_CC adamc@1149: if test -n "$CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adamc@1149: $as_echo "$CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: if test -z "$CC"; then adamc@1149: # Extract the first word of "cc", so it can be a program name with args. adamc@1149: set dummy cc; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$CC"; then adamc@1149: ac_cv_prog_CC="$CC" # Let the user override the test. adamc@1149: else adamc@1149: ac_prog_rejected=no adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then adamc@1149: ac_prog_rejected=yes adamc@1149: continue adamc@1149: fi adamc@1149: ac_cv_prog_CC="cc" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: if test $ac_prog_rejected = yes; then adamc@1149: # We found a bogon in the path, so make sure we never use it. adamc@1149: set dummy $ac_cv_prog_CC adamc@1149: shift adamc@1149: if test $# != 0; then adamc@1149: # We chose a different compiler from the bogus one. adamc@1149: # However, it has the same basename, so the bogon will be chosen adamc@1149: # first if we set CC to just the basename; use the full file name. adamc@1149: shift adamc@1149: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" adamc@1149: fi adamc@1149: fi adamc@1149: fi adamc@1149: fi adamc@1149: CC=$ac_cv_prog_CC adamc@1149: if test -n "$CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adamc@1149: $as_echo "$CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: fi adamc@1149: if test -z "$CC"; then adamc@1149: if test -n "$ac_tool_prefix"; then adamc@1149: for ac_prog in cl.exe adamc@1149: do adamc@1149: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. adamc@1149: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$CC"; then adamc@1149: ac_cv_prog_CC="$CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: CC=$ac_cv_prog_CC adamc@1149: if test -n "$CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adamc@1149: $as_echo "$CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: test -n "$CC" && break adamc@1149: done adamc@1149: fi adamc@1149: if test -z "$CC"; then adamc@1149: ac_ct_CC=$CC adamc@1149: for ac_prog in cl.exe adamc@1149: do adamc@1149: # Extract the first word of "$ac_prog", so it can be a program name with args. adamc@1149: set dummy $ac_prog; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$ac_ct_CC"; then adamc@1149: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_ac_ct_CC="$ac_prog" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: ac_ct_CC=$ac_cv_prog_ac_ct_CC adamc@1149: if test -n "$ac_ct_CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 adamc@1149: $as_echo "$ac_ct_CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: test -n "$ac_ct_CC" && break adamc@1149: done adamc@1149: adamc@1149: if test "x$ac_ct_CC" = x; then adamc@1149: CC="" adamc@1149: else adamc@1149: case $cross_compiling:$ac_tool_warned in adamc@1149: yes:) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1149: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1149: ac_tool_warned=yes ;; adamc@1149: esac adamc@1149: CC=$ac_ct_CC adamc@1149: fi adamc@1149: fi adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adamc@1149: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@1315: as_fn_error $? "no acceptable C compiler found in \$PATH adam@1599: See \`config.log' for more details" "$LINENO" 5; } adamc@1149: adamc@1149: # Provide some information about the compiler. adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 adamc@1149: set X $ac_compile adamc@1149: ac_compiler=$2 adamc@1149: for ac_option in --version -v -V -qversion; do adamc@1149: { { ac_try="$ac_compiler $ac_option >&5" adamc@1149: case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_compiler $ac_option >&5") 2>conftest.err adamc@1149: ac_status=$? adamc@1149: if test -s conftest.err; then adamc@1149: sed '10a\ adamc@1149: ... rest of stderr output deleted ... adamc@1149: 10q' conftest.err >conftest.er1 adamc@1149: cat conftest.er1 >&5 adamc@1149: fi adamc@1149: rm -f conftest.er1 conftest.err adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; } adamc@1149: done adamc@1149: adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: ac_clean_files_save=$ac_clean_files adamc@1149: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" adamc@1149: # Try to create an executable without -o first, disregard a.out. adamc@1149: # It will help us diagnose broken compilers, and finding out an intuition adamc@1149: # of exeext. adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 adamc@1149: $as_echo_n "checking whether the C compiler works... " >&6; } adamc@1149: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` adamc@1149: adamc@1149: # The possible output files: adamc@1149: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" adamc@1149: adamc@1149: ac_rmfiles= adamc@1149: for ac_file in $ac_files adamc@1149: do adamc@1149: case $ac_file in adamc@1149: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; adamc@1149: * ) ac_rmfiles="$ac_rmfiles $ac_file";; adamc@1149: esac adamc@1149: done adamc@1149: rm -f $ac_rmfiles adamc@1149: adamc@1149: if { { ac_try="$ac_link_default" adamc@1149: case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_link_default") 2>&5 adamc@1149: ac_status=$? adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; }; then : adamc@1149: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. adamc@1149: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' adamc@1149: # in a Makefile. We should not override ac_cv_exeext if it was cached, adamc@1149: # so that the user can short-circuit this test for compilers unknown to adamc@1149: # Autoconf. adamc@1149: for ac_file in $ac_files '' adamc@1149: do adamc@1149: test -f "$ac_file" || continue adamc@1149: case $ac_file in adamc@1149: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) adamc@1149: ;; adamc@1149: [ab].out ) adamc@1149: # We found the default executable, but exeext='' is most adamc@1149: # certainly right. adamc@1149: break;; adamc@1149: *.* ) adamc@1149: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; adamc@1149: then :; else adamc@1149: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` adamc@1149: fi adamc@1149: # We set ac_cv_exeext here because the later test for it is not adamc@1149: # safe: cross compilers may not add the suffix if given an `-o' adamc@1149: # argument, so we may need to know it at that point already. adamc@1149: # Even if this section looks crufty: it has the advantage of adamc@1149: # actually working. adamc@1149: break;; adamc@1149: * ) adamc@1149: break;; adamc@1149: esac adamc@1149: done adamc@1149: test "$ac_cv_exeext" = no && ac_cv_exeext= adamc@1149: adamc@1149: else adamc@1149: ac_file='' adamc@1149: fi adamc@1149: if test -z "$ac_file"; then : adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: $as_echo "$as_me: failed program was:" >&5 adamc@1149: sed 's/^/| /' conftest.$ac_ext >&5 adamc@1149: adamc@1149: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adamc@1149: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@1315: as_fn_error 77 "C compiler cannot create executables adam@1599: See \`config.log' for more details" "$LINENO" 5; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adamc@1149: $as_echo "yes" >&6; } adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 adamc@1149: $as_echo_n "checking for C compiler default output file name... " >&6; } adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 adamc@1149: $as_echo "$ac_file" >&6; } adamc@1149: ac_exeext=$ac_cv_exeext adamc@1149: adamc@1149: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out adamc@1149: ac_clean_files=$ac_clean_files_save adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 adamc@1149: $as_echo_n "checking for suffix of executables... " >&6; } adamc@1149: if { { ac_try="$ac_link" adamc@1149: case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_link") 2>&5 adamc@1149: ac_status=$? adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; }; then : adamc@1149: # If both `conftest.exe' and `conftest' are `present' (well, observable) adamc@1149: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will adamc@1149: # work properly (i.e., refer to `conftest.exe'), while it won't with adamc@1149: # `rm'. adamc@1149: for ac_file in conftest.exe conftest conftest.*; do adamc@1149: test -f "$ac_file" || continue adamc@1149: case $ac_file in adamc@1149: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; adamc@1149: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` adamc@1149: break;; adamc@1149: * ) break;; adamc@1149: esac adamc@1149: done adamc@1149: else adamc@1149: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adamc@1149: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@1315: as_fn_error $? "cannot compute suffix of executables: cannot compile and link adam@1599: See \`config.log' for more details" "$LINENO" 5; } adamc@1149: fi adamc@1149: rm -f conftest conftest$ac_cv_exeext adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 adamc@1149: $as_echo "$ac_cv_exeext" >&6; } adamc@1149: adamc@1149: rm -f conftest.$ac_ext adamc@1149: EXEEXT=$ac_cv_exeext adamc@1149: ac_exeext=$EXEEXT adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: FILE *f = fopen ("conftest.out", "w"); adamc@1149: return ferror (f) || fclose (f) != 0; adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: ac_clean_files="$ac_clean_files conftest.out" adamc@1149: # Check that the compiler produces executables we can run. If not, either adamc@1149: # the compiler is broken, or we cross compile. adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 adamc@1149: $as_echo_n "checking whether we are cross compiling... " >&6; } adamc@1149: if test "$cross_compiling" != yes; then adamc@1149: { { ac_try="$ac_link" adamc@1149: case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_link") 2>&5 adamc@1149: ac_status=$? adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; } adamc@1149: if { ac_try='./conftest$ac_cv_exeext' adamc@1149: { { case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_try") 2>&5 adamc@1149: ac_status=$? adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; }; }; then adamc@1149: cross_compiling=no adamc@1149: else adamc@1149: if test "$cross_compiling" = maybe; then adamc@1149: cross_compiling=yes adamc@1149: else adamc@1149: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adamc@1149: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@1315: as_fn_error $? "cannot run C compiled programs. adamc@1149: If you meant to cross compile, use \`--host'. adam@1599: See \`config.log' for more details" "$LINENO" 5; } adamc@1149: fi adamc@1149: fi adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 adamc@1149: $as_echo "$cross_compiling" >&6; } adamc@1149: adamc@1149: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out adamc@1149: ac_clean_files=$ac_clean_files_save adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 adamc@1149: $as_echo_n "checking for suffix of object files... " >&6; } adam@1599: if ${ac_cv_objext+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: rm -f conftest.o conftest.obj adamc@1149: if { { ac_try="$ac_compile" adamc@1149: case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_compile") 2>&5 adamc@1149: ac_status=$? adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; }; then : adamc@1149: for ac_file in conftest.o conftest.obj conftest.*; do adamc@1149: test -f "$ac_file" || continue; adamc@1149: case $ac_file in adamc@1149: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; adamc@1149: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` adamc@1149: break;; adamc@1149: esac adamc@1149: done adamc@1149: else adamc@1149: $as_echo "$as_me: failed program was:" >&5 adamc@1149: sed 's/^/| /' conftest.$ac_ext >&5 adamc@1149: adamc@1149: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adamc@1149: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@1315: as_fn_error $? "cannot compute suffix of object files: cannot compile adam@1599: See \`config.log' for more details" "$LINENO" 5; } adamc@1149: fi adamc@1149: rm -f conftest.$ac_cv_objext conftest.$ac_ext adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 adamc@1149: $as_echo "$ac_cv_objext" >&6; } adamc@1149: OBJEXT=$ac_cv_objext adamc@1149: ac_objext=$OBJEXT adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 adamc@1149: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } adam@1599: if ${ac_cv_c_compiler_gnu+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: #ifndef __GNUC__ adamc@1149: choke me adamc@1149: #endif adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_compiler_gnu=yes adamc@1149: else adamc@1149: ac_compiler_gnu=no adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: ac_cv_c_compiler_gnu=$ac_compiler_gnu adamc@1149: adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 adamc@1149: $as_echo "$ac_cv_c_compiler_gnu" >&6; } adamc@1149: if test $ac_compiler_gnu = yes; then adamc@1149: GCC=yes adamc@1149: else adamc@1149: GCC= adamc@1149: fi adamc@1149: ac_test_CFLAGS=${CFLAGS+set} adamc@1149: ac_save_CFLAGS=$CFLAGS adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 adamc@1149: $as_echo_n "checking whether $CC accepts -g... " >&6; } adam@1599: if ${ac_cv_prog_cc_g+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: ac_save_c_werror_flag=$ac_c_werror_flag adamc@1149: ac_c_werror_flag=yes adamc@1149: ac_cv_prog_cc_g=no adamc@1149: CFLAGS="-g" adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_cv_prog_cc_g=yes adamc@1149: else adamc@1149: CFLAGS="" adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: adamc@1149: else adamc@1149: ac_c_werror_flag=$ac_save_c_werror_flag adamc@1149: CFLAGS="-g" adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_cv_prog_cc_g=yes adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: ac_c_werror_flag=$ac_save_c_werror_flag adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 adamc@1149: $as_echo "$ac_cv_prog_cc_g" >&6; } adamc@1149: if test "$ac_test_CFLAGS" = set; then adamc@1149: CFLAGS=$ac_save_CFLAGS adamc@1149: elif test $ac_cv_prog_cc_g = yes; then adamc@1149: if test "$GCC" = yes; then adamc@1149: CFLAGS="-g -O2" adamc@1149: else adamc@1149: CFLAGS="-g" adamc@1149: fi adamc@1149: else adamc@1149: if test "$GCC" = yes; then adamc@1149: CFLAGS="-O2" adamc@1149: else adamc@1149: CFLAGS= adamc@1149: fi adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 adamc@1149: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } adam@1599: if ${ac_cv_prog_cc_c89+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: ac_cv_prog_cc_c89=no adamc@1149: ac_save_CC=$CC adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: #include adamc@1149: #include adamc@1149: #include adamc@1149: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ adamc@1149: struct buf { int x; }; adamc@1149: FILE * (*rcsopen) (struct buf *, struct stat *, int); adamc@1149: static char *e (p, i) adamc@1149: char **p; adamc@1149: int i; adamc@1149: { adamc@1149: return p[i]; adamc@1149: } adamc@1149: static char *f (char * (*g) (char **, int), char **p, ...) adamc@1149: { adamc@1149: char *s; adamc@1149: va_list v; adamc@1149: va_start (v,p); adamc@1149: s = g (p, va_arg (v,int)); adamc@1149: va_end (v); adamc@1149: return s; adamc@1149: } adamc@1149: adamc@1149: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has adamc@1149: function prototypes and stuff, but not '\xHH' hex character constants. adamc@1149: These don't provoke an error unfortunately, instead are silently treated adamc@1149: as 'x'. The following induces an error, until -std is added to get adamc@1149: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an adamc@1149: array size at least. It's necessary to write '\x00'==0 to get something adamc@1149: that's true only with -std. */ adamc@1149: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; adamc@1149: adamc@1149: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters adamc@1149: inside strings and character constants. */ adamc@1149: #define FOO(x) 'x' adamc@1149: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; adamc@1149: adamc@1149: int test (int i, double x); adamc@1149: struct s1 {int (*f) (int a);}; adamc@1149: struct s2 {int (*f) (double a);}; adamc@1149: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); adamc@1149: int argc; adamc@1149: char **argv; adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ adamc@1149: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" adamc@1149: do adamc@1149: CC="$ac_save_CC $ac_arg" adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_cv_prog_cc_c89=$ac_arg adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext adamc@1149: test "x$ac_cv_prog_cc_c89" != "xno" && break adamc@1149: done adamc@1149: rm -f conftest.$ac_ext adamc@1149: CC=$ac_save_CC adamc@1149: adamc@1149: fi adamc@1149: # AC_CACHE_VAL adamc@1149: case "x$ac_cv_prog_cc_c89" in adamc@1149: x) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 adamc@1149: $as_echo "none needed" >&6; } ;; adamc@1149: xno) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 adamc@1149: $as_echo "unsupported" >&6; } ;; adamc@1149: *) adamc@1149: CC="$CC $ac_cv_prog_cc_c89" adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 adamc@1149: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; adamc@1149: esac adamc@1149: if test "x$ac_cv_prog_cc_c89" != xno; then : adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: ac_ext=c adamc@1149: ac_cpp='$CPP $CPPFLAGS' adamc@1149: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1149: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1149: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1149: adamc@1149: adamc@1149: ac_ext=c adamc@1149: ac_cpp='$CPP $CPPFLAGS' adamc@1149: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1149: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1149: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 adamc@1149: $as_echo_n "checking how to run the C preprocessor... " >&6; } adamc@1149: # On Suns, sometimes $CPP names a directory. adamc@1149: if test -n "$CPP" && test -d "$CPP"; then adamc@1149: CPP= adamc@1149: fi adamc@1149: if test -z "$CPP"; then adam@1599: if ${ac_cv_prog_CPP+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: # Double quotes because CPP needs to be expanded adamc@1149: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" adamc@1149: do adamc@1149: ac_preproc_ok=false adamc@1149: for ac_c_preproc_warn_flag in '' yes adamc@1149: do adamc@1149: # Use a header file that comes with gcc, so configuring glibc adamc@1149: # with a fresh cross-compiler works. adamc@1149: # Prefer to if __STDC__ is defined, since adamc@1149: # exists even on freestanding compilers. adamc@1149: # On the NeXT, cc -E runs the code through the compiler's parser, adamc@1149: # not just through cpp. "Syntax error" is here to catch this case. adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #ifdef __STDC__ adamc@1149: # include adamc@1149: #else adamc@1149: # include adamc@1149: #endif adamc@1149: Syntax error adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_cpp "$LINENO"; then : adamc@1149: adamc@1149: else adamc@1149: # Broken: fails on valid input. adamc@1149: continue adamc@1149: fi adam@1315: rm -f conftest.err conftest.i conftest.$ac_ext adamc@1149: adamc@1149: # OK, works on sane cases. Now check whether nonexistent headers adamc@1149: # can be detected and how. adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_cpp "$LINENO"; then : adamc@1149: # Broken: success on invalid input. adamc@1149: continue adamc@1149: else adamc@1149: # Passes both tests. adamc@1149: ac_preproc_ok=: adamc@1149: break adamc@1149: fi adam@1315: rm -f conftest.err conftest.i conftest.$ac_ext adamc@1149: adamc@1149: done adamc@1149: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. adam@1315: rm -f conftest.i conftest.err conftest.$ac_ext adamc@1149: if $ac_preproc_ok; then : adamc@1149: break adamc@1149: fi adamc@1149: adamc@1149: done adamc@1149: ac_cv_prog_CPP=$CPP adamc@1149: adamc@1149: fi adamc@1149: CPP=$ac_cv_prog_CPP adamc@1149: else adamc@1149: ac_cv_prog_CPP=$CPP adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 adamc@1149: $as_echo "$CPP" >&6; } adamc@1149: ac_preproc_ok=false adamc@1149: for ac_c_preproc_warn_flag in '' yes adamc@1149: do adamc@1149: # Use a header file that comes with gcc, so configuring glibc adamc@1149: # with a fresh cross-compiler works. adamc@1149: # Prefer to if __STDC__ is defined, since adamc@1149: # exists even on freestanding compilers. adamc@1149: # On the NeXT, cc -E runs the code through the compiler's parser, adamc@1149: # not just through cpp. "Syntax error" is here to catch this case. adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #ifdef __STDC__ adamc@1149: # include adamc@1149: #else adamc@1149: # include adamc@1149: #endif adamc@1149: Syntax error adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_cpp "$LINENO"; then : adamc@1149: adamc@1149: else adamc@1149: # Broken: fails on valid input. adamc@1149: continue adamc@1149: fi adam@1315: rm -f conftest.err conftest.i conftest.$ac_ext adamc@1149: adamc@1149: # OK, works on sane cases. Now check whether nonexistent headers adamc@1149: # can be detected and how. adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_cpp "$LINENO"; then : adamc@1149: # Broken: success on invalid input. adamc@1149: continue adamc@1149: else adamc@1149: # Passes both tests. adamc@1149: ac_preproc_ok=: adamc@1149: break adamc@1149: fi adam@1315: rm -f conftest.err conftest.i conftest.$ac_ext adamc@1149: adamc@1149: done adamc@1149: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. adam@1315: rm -f conftest.i conftest.err conftest.$ac_ext adamc@1149: if $ac_preproc_ok; then : adamc@1149: adamc@1149: else adamc@1149: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adamc@1149: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@1315: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check adam@1599: See \`config.log' for more details" "$LINENO" 5; } adamc@1149: fi adamc@1149: adamc@1149: ac_ext=c adamc@1149: ac_cpp='$CPP $CPPFLAGS' adamc@1149: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1149: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1149: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1149: adamc@1149: adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 adamc@1149: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } adam@1599: if ${ac_cv_path_GREP+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -z "$GREP"; then adamc@1149: ac_path_GREP_found=false adamc@1149: # Loop through the user's path and test for each of PROGNAME-LIST adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_prog in grep ggrep; do adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" adamc@1149: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue adamc@1149: # Check for GNU ac_path_GREP and select it if it is found. adamc@1149: # Check for GNU $ac_path_GREP adamc@1149: case `"$ac_path_GREP" --version 2>&1` in adamc@1149: *GNU*) adamc@1149: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; adamc@1149: *) adamc@1149: ac_count=0 adamc@1149: $as_echo_n 0123456789 >"conftest.in" adamc@1149: while : adamc@1149: do adamc@1149: cat "conftest.in" "conftest.in" >"conftest.tmp" adamc@1149: mv "conftest.tmp" "conftest.in" adamc@1149: cp "conftest.in" "conftest.nl" adamc@1149: $as_echo 'GREP' >> "conftest.nl" adamc@1149: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break adamc@1149: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break adamc@1149: as_fn_arith $ac_count + 1 && ac_count=$as_val adamc@1149: if test $ac_count -gt ${ac_path_GREP_max-0}; then adamc@1149: # Best one so far, save it but keep looking for a better one adamc@1149: ac_cv_path_GREP="$ac_path_GREP" adamc@1149: ac_path_GREP_max=$ac_count adamc@1149: fi adamc@1149: # 10*(2^10) chars as input seems more than enough adamc@1149: test $ac_count -gt 10 && break adamc@1149: done adamc@1149: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; adamc@1149: esac adamc@1149: adamc@1149: $ac_path_GREP_found && break 3 adamc@1149: done adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: if test -z "$ac_cv_path_GREP"; then adam@1315: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 adamc@1149: fi adamc@1149: else adamc@1149: ac_cv_path_GREP=$GREP adamc@1149: fi adamc@1149: adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 adamc@1149: $as_echo "$ac_cv_path_GREP" >&6; } adamc@1149: GREP="$ac_cv_path_GREP" adamc@1149: adamc@1149: adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 adamc@1149: $as_echo_n "checking for egrep... " >&6; } adam@1599: if ${ac_cv_path_EGREP+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 adamc@1149: then ac_cv_path_EGREP="$GREP -E" adamc@1149: else adamc@1149: if test -z "$EGREP"; then adamc@1149: ac_path_EGREP_found=false adamc@1149: # Loop through the user's path and test for each of PROGNAME-LIST adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_prog in egrep; do adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" adamc@1149: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue adamc@1149: # Check for GNU ac_path_EGREP and select it if it is found. adamc@1149: # Check for GNU $ac_path_EGREP adamc@1149: case `"$ac_path_EGREP" --version 2>&1` in adamc@1149: *GNU*) adamc@1149: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; adamc@1149: *) adamc@1149: ac_count=0 adamc@1149: $as_echo_n 0123456789 >"conftest.in" adamc@1149: while : adamc@1149: do adamc@1149: cat "conftest.in" "conftest.in" >"conftest.tmp" adamc@1149: mv "conftest.tmp" "conftest.in" adamc@1149: cp "conftest.in" "conftest.nl" adamc@1149: $as_echo 'EGREP' >> "conftest.nl" adamc@1149: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break adamc@1149: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break adamc@1149: as_fn_arith $ac_count + 1 && ac_count=$as_val adamc@1149: if test $ac_count -gt ${ac_path_EGREP_max-0}; then adamc@1149: # Best one so far, save it but keep looking for a better one adamc@1149: ac_cv_path_EGREP="$ac_path_EGREP" adamc@1149: ac_path_EGREP_max=$ac_count adamc@1149: fi adamc@1149: # 10*(2^10) chars as input seems more than enough adamc@1149: test $ac_count -gt 10 && break adamc@1149: done adamc@1149: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; adamc@1149: esac adamc@1149: adamc@1149: $ac_path_EGREP_found && break 3 adamc@1149: done adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: if test -z "$ac_cv_path_EGREP"; then adam@1315: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 adamc@1149: fi adamc@1149: else adamc@1149: ac_cv_path_EGREP=$EGREP adamc@1149: fi adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 adamc@1149: $as_echo "$ac_cv_path_EGREP" >&6; } adamc@1149: EGREP="$ac_cv_path_EGREP" adamc@1149: adamc@1149: adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 adamc@1149: $as_echo_n "checking for ANSI C header files... " >&6; } adam@1599: if ${ac_cv_header_stdc+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: #include adamc@1149: #include adamc@1149: #include adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_cv_header_stdc=yes adamc@1149: else adamc@1149: ac_cv_header_stdc=no adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: adamc@1149: if test $ac_cv_header_stdc = yes; then adamc@1149: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: adamc@1149: _ACEOF adamc@1149: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | adamc@1149: $EGREP "memchr" >/dev/null 2>&1; then : adamc@1149: adamc@1149: else adamc@1149: ac_cv_header_stdc=no adamc@1149: fi adamc@1149: rm -f conftest* adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: if test $ac_cv_header_stdc = yes; then adamc@1149: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: adamc@1149: _ACEOF adamc@1149: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | adamc@1149: $EGREP "free" >/dev/null 2>&1; then : adamc@1149: adamc@1149: else adamc@1149: ac_cv_header_stdc=no adamc@1149: fi adamc@1149: rm -f conftest* adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: if test $ac_cv_header_stdc = yes; then adamc@1149: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. adamc@1149: if test "$cross_compiling" = yes; then : adamc@1149: : adamc@1149: else adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: #include adamc@1149: #if ((' ' & 0x0FF) == 0x020) adamc@1149: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') adamc@1149: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) adamc@1149: #else adamc@1149: # define ISLOWER(c) \ adamc@1149: (('a' <= (c) && (c) <= 'i') \ adamc@1149: || ('j' <= (c) && (c) <= 'r') \ adamc@1149: || ('s' <= (c) && (c) <= 'z')) adamc@1149: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) adamc@1149: #endif adamc@1149: adamc@1149: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: int i; adamc@1149: for (i = 0; i < 256; i++) adamc@1149: if (XOR (islower (i), ISLOWER (i)) adamc@1149: || toupper (i) != TOUPPER (i)) adamc@1149: return 2; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_run "$LINENO"; then : adamc@1149: adamc@1149: else adamc@1149: ac_cv_header_stdc=no adamc@1149: fi adamc@1149: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ adamc@1149: conftest.$ac_objext conftest.beam conftest.$ac_ext adamc@1149: fi adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 adamc@1149: $as_echo "$ac_cv_header_stdc" >&6; } adamc@1149: if test $ac_cv_header_stdc = yes; then adamc@1149: adamc@1149: $as_echo "#define STDC_HEADERS 1" >>confdefs.h adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: # On IRIX 5.3, sys/types and inttypes.h are conflicting. adamc@1149: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ adamc@1149: inttypes.h stdint.h unistd.h adamc@1149: do : adamc@1149: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` adamc@1149: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default adamc@1149: " adam@1315: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : adamc@1149: cat >>confdefs.h <<_ACEOF adamc@1149: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 adamc@1149: _ACEOF adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: done adamc@1149: adamc@1149: adamc@1149: adamc@1149: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" adam@1599: if test "x$ac_cv_header_minix_config_h" = xyes; then : adamc@1149: MINIX=yes adamc@1149: else adamc@1149: MINIX= adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: if test "$MINIX" = yes; then adamc@1149: adamc@1149: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h adamc@1149: adamc@1149: adamc@1149: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h adamc@1149: adamc@1149: adamc@1149: $as_echo "#define _MINIX 1" >>confdefs.h adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 adamc@1149: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } adam@1599: if ${ac_cv_safe_to_define___extensions__+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: # define __EXTENSIONS__ 1 adamc@1149: $ac_includes_default adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_cv_safe_to_define___extensions__=yes adamc@1149: else adamc@1149: ac_cv_safe_to_define___extensions__=no adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 adamc@1149: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } adamc@1149: test $ac_cv_safe_to_define___extensions__ = yes && adamc@1149: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h adamc@1149: adamc@1149: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h adamc@1149: adamc@1149: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h adamc@1149: adamc@1149: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h adamc@1149: adamc@1149: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h adamc@1149: adamc@1149: adamc@1132: am__api_version='1.11' adamc@1132: adamc@1132: ac_aux_dir= adamc@1132: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do adam@1315: if test -f "$ac_dir/install-sh"; then adam@1315: ac_aux_dir=$ac_dir adam@1315: ac_install_sh="$ac_aux_dir/install-sh -c" adam@1315: break adam@1315: elif test -f "$ac_dir/install.sh"; then adam@1315: ac_aux_dir=$ac_dir adam@1315: ac_install_sh="$ac_aux_dir/install.sh -c" adam@1315: break adam@1315: elif test -f "$ac_dir/shtool"; then adam@1315: ac_aux_dir=$ac_dir adam@1315: ac_install_sh="$ac_aux_dir/shtool install -c" adam@1315: break adam@1315: fi adamc@1132: done adamc@1132: if test -z "$ac_aux_dir"; then adam@1315: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 adamc@1132: fi adamc@1132: adamc@1132: # These three variables are undocumented and unsupported, adamc@1132: # and are intended to be withdrawn in a future Autoconf release. adamc@1132: # They can cause serious problems if a builder's source tree is in a directory adamc@1132: # whose full name contains unusual characters. adamc@1132: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. adamc@1132: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. adamc@1132: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. adamc@1132: adamc@1132: adamc@1132: # Find a good install program. We prefer a C program (faster), adamc@1132: # so one script is as good as another. But avoid the broken or adamc@1132: # incompatible versions: adamc@1132: # SysV /etc/install, /usr/sbin/install adamc@1132: # SunOS /usr/etc/install adamc@1132: # IRIX /sbin/install adamc@1132: # AIX /bin/install adamc@1132: # AmigaOS /C/install, which installs bootblocks on floppy discs adamc@1132: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag adamc@1132: # AFS /usr/afsws/bin/install, which mishandles nonexistent args adamc@1132: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" adamc@1132: # OS/2's system install, which has a completely different semantic adamc@1132: # ./install, which can be erroneously created by make from ./install.sh. adamc@1132: # Reject install programs that cannot install multiple files. adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 adamc@1132: $as_echo_n "checking for a BSD-compatible install... " >&6; } adamc@1132: if test -z "$INSTALL"; then adam@1599: if ${ac_cv_path_install+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: # Account for people who put trailing slashes in PATH elements. adamc@1132: case $as_dir/ in #(( adamc@1132: ./ | .// | /[cC]/* | \ adamc@1132: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ adamc@1132: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ adamc@1132: /usr/ucb/* ) ;; adamc@1132: *) adamc@1132: # OSF1 and SCO ODT 3.0 have their own names for install. adamc@1132: # Don't use installbsd from OSF since it installs stuff as root adamc@1132: # by default. adamc@1132: for ac_prog in ginstall scoinst install; do adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then adamc@1132: if test $ac_prog = install && adamc@1132: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then adamc@1132: # AIX install. It has an incompatible calling convention. adamc@1132: : adamc@1132: elif test $ac_prog = install && adamc@1132: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then adamc@1132: # program-specific install script used by HP pwplus--don't use. adamc@1132: : adamc@1132: else adamc@1132: rm -rf conftest.one conftest.two conftest.dir adamc@1132: echo one > conftest.one adamc@1132: echo two > conftest.two adamc@1132: mkdir conftest.dir adamc@1132: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && adamc@1132: test -s conftest.one && test -s conftest.two && adamc@1132: test -s conftest.dir/conftest.one && adamc@1132: test -s conftest.dir/conftest.two adamc@1132: then adamc@1132: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" adamc@1132: break 3 adamc@1132: fi adamc@1132: fi adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: rm -rf conftest.one conftest.two conftest.dir adamc@1132: adamc@1132: fi adamc@1132: if test "${ac_cv_path_install+set}" = set; then adamc@1132: INSTALL=$ac_cv_path_install adamc@1132: else adamc@1132: # As a last resort, use the slow shell script. Don't cache a adamc@1132: # value for INSTALL within a source directory, because that will adamc@1132: # break other packages using the cache if that directory is adamc@1132: # removed, or if the value is a relative name. adamc@1132: INSTALL=$ac_install_sh adamc@1132: fi adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 adamc@1132: $as_echo "$INSTALL" >&6; } adamc@1132: adamc@1132: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. adamc@1132: # It thinks the first close brace ends the variable substitution. adamc@1132: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' adamc@1132: adamc@1132: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' adamc@1132: adamc@1132: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 adamc@1132: $as_echo_n "checking whether build environment is sane... " >&6; } adamc@1132: # Just in case adamc@1132: sleep 1 adamc@1132: echo timestamp > conftest.file adamc@1132: # Reject unsafe characters in $srcdir or the absolute working directory adamc@1132: # name. Accept space and tab only in the latter. adamc@1132: am_lf=' adamc@1132: ' adamc@1132: case `pwd` in adamc@1132: *[\\\"\#\$\&\'\`$am_lf]*) adam@1599: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; adamc@1132: esac adamc@1132: case $srcdir in adamc@1132: *[\\\"\#\$\&\'\`$am_lf\ \ ]*) adam@1599: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; adamc@1132: esac adamc@1132: adamc@1132: # Do `set' in a subshell so we don't clobber the current shell's adamc@1132: # arguments. Must try -L first in case configure is actually a adamc@1132: # symlink; some systems play weird games with the mod time of symlinks adamc@1132: # (eg FreeBSD returns the mod time of the symlink's containing adamc@1132: # directory). adamc@1132: if ( adamc@1132: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` adamc@1132: if test "$*" = "X"; then adamc@1132: # -L didn't work. adamc@1132: set X `ls -t "$srcdir/configure" conftest.file` adamc@1132: fi adamc@1132: rm -f conftest.file adamc@1132: if test "$*" != "X $srcdir/configure conftest.file" \ adamc@1132: && test "$*" != "X conftest.file $srcdir/configure"; then adamc@1132: adamc@1132: # If neither matched, then we have a broken ls. This can happen adamc@1132: # if, for instance, CONFIG_SHELL is bash and it inherits a adamc@1132: # broken ls alias from the environment. This has actually adamc@1132: # happened. Such a system could not be considered "sane". adam@1315: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken adamc@1132: alias in your environment" "$LINENO" 5 adamc@1132: fi adamc@1132: adamc@1132: test "$2" = conftest.file adamc@1132: ) adamc@1132: then adamc@1132: # Ok. adamc@1132: : adamc@1132: else adam@1315: as_fn_error $? "newly created file is older than distributed files! adamc@1132: Check your system clock" "$LINENO" 5 adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adamc@1132: $as_echo "yes" >&6; } adamc@1132: test "$program_prefix" != NONE && adamc@1132: program_transform_name="s&^&$program_prefix&;$program_transform_name" adamc@1132: # Use a double $ so make ignores it. adamc@1132: test "$program_suffix" != NONE && adamc@1132: program_transform_name="s&\$&$program_suffix&;$program_transform_name" adamc@1132: # Double any \ or $. adamc@1132: # By default was `s,x,x', remove it if useless. adamc@1132: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' adamc@1132: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` adamc@1132: adamc@1132: # expand $ac_aux_dir to an absolute path adamc@1132: am_aux_dir=`cd $ac_aux_dir && pwd` adamc@1132: adamc@1132: if test x"${MISSING+set}" != xset; then adamc@1132: case $am_aux_dir in adamc@1132: *\ * | *\ *) adamc@1132: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; adamc@1132: *) adamc@1132: MISSING="\${SHELL} $am_aux_dir/missing" ;; adamc@1132: esac adamc@1132: fi adamc@1132: # Use eval to expand $SHELL adamc@1132: if eval "$MISSING --run true"; then adamc@1132: am_missing_run="$MISSING --run " adamc@1132: else adamc@1132: am_missing_run= adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 adamc@1132: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} adamc@1132: fi adamc@1132: adamc@1132: if test x"${install_sh}" != xset; then adamc@1132: case $am_aux_dir in adamc@1132: *\ * | *\ *) adamc@1132: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; adamc@1132: *) adamc@1132: install_sh="\${SHELL} $am_aux_dir/install-sh" adamc@1132: esac adamc@1132: fi adamc@1132: adamc@1132: # Installed binaries are usually stripped using `strip' when the user adamc@1132: # run `make install-strip'. However `strip' might not be the right adamc@1132: # tool to use in cross-compilation environments, therefore Automake adamc@1132: # will honor the `STRIP' environment variable to overrule this program. adamc@1132: if test "$cross_compiling" != no; then adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}strip; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_STRIP+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$STRIP"; then adamc@1132: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_STRIP="${ac_tool_prefix}strip" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: STRIP=$ac_cv_prog_STRIP adamc@1132: if test -n "$STRIP"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 adamc@1132: $as_echo "$STRIP" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_STRIP"; then adamc@1132: ac_ct_STRIP=$STRIP adamc@1132: # Extract the first word of "strip", so it can be a program name with args. adamc@1132: set dummy strip; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_STRIP"; then adamc@1132: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_STRIP="strip" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP adamc@1132: if test -n "$ac_ct_STRIP"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 adamc@1132: $as_echo "$ac_ct_STRIP" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_STRIP" = x; then adamc@1132: STRIP=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: STRIP=$ac_ct_STRIP adamc@1132: fi adamc@1132: else adamc@1132: STRIP="$ac_cv_prog_STRIP" adamc@1132: fi adamc@1132: adamc@1132: fi adamc@1132: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 adamc@1132: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } adamc@1132: if test -z "$MKDIR_P"; then adam@1599: if ${ac_cv_path_mkdir+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_prog in mkdir gmkdir; do adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue adamc@1132: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( adamc@1132: 'mkdir (GNU coreutils) '* | \ adamc@1132: 'mkdir (coreutils) '* | \ adamc@1132: 'mkdir (fileutils) '4.1*) adamc@1132: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext adamc@1132: break 3;; adamc@1132: esac adamc@1132: done adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: test -d ./--version && rmdir ./--version adamc@1132: if test "${ac_cv_path_mkdir+set}" = set; then adamc@1132: MKDIR_P="$ac_cv_path_mkdir -p" adamc@1132: else adamc@1132: # As a last resort, use the slow shell script. Don't cache a adamc@1132: # value for MKDIR_P within a source directory, because that will adamc@1132: # break other packages using the cache if that directory is adamc@1132: # removed, or if the value is a relative name. adamc@1132: MKDIR_P="$ac_install_sh -d" adamc@1132: fi adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 adamc@1132: $as_echo "$MKDIR_P" >&6; } adamc@1132: adamc@1132: mkdir_p="$MKDIR_P" adamc@1132: case $mkdir_p in adamc@1132: [\\/$]* | ?:[\\/]*) ;; adamc@1132: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; adamc@1132: esac adamc@1132: adamc@1132: for ac_prog in gawk mawk nawk awk adamc@1132: do adamc@1132: # Extract the first word of "$ac_prog", so it can be a program name with args. adamc@1132: set dummy $ac_prog; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_AWK+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$AWK"; then adamc@1132: ac_cv_prog_AWK="$AWK" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_AWK="$ac_prog" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: AWK=$ac_cv_prog_AWK adamc@1132: if test -n "$AWK"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 adamc@1132: $as_echo "$AWK" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: test -n "$AWK" && break adamc@1132: done adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 adamc@1132: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } adamc@1132: set x ${MAKE-make} adamc@1132: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` adam@1599: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: cat >conftest.make <<\_ACEOF adamc@1132: SHELL = /bin/sh adamc@1132: all: adamc@1132: @echo '@@@%%%=$(MAKE)=@@@%%%' adamc@1132: _ACEOF adam@1315: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. adamc@1132: case `${MAKE-make} -f conftest.make 2>/dev/null` in adamc@1132: *@@@%%%=?*=@@@%%%*) adamc@1132: eval ac_cv_prog_make_${ac_make}_set=yes;; adamc@1132: *) adamc@1132: eval ac_cv_prog_make_${ac_make}_set=no;; adamc@1132: esac adamc@1132: rm -f conftest.make adamc@1132: fi adamc@1132: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adamc@1132: $as_echo "yes" >&6; } adamc@1132: SET_MAKE= adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: SET_MAKE="MAKE=${MAKE-make}" adamc@1132: fi adamc@1132: adamc@1132: rm -rf .tst 2>/dev/null adamc@1132: mkdir .tst 2>/dev/null adamc@1132: if test -d .tst; then adamc@1132: am__leading_dot=. adamc@1132: else adamc@1132: am__leading_dot=_ adamc@1132: fi adamc@1132: rmdir .tst 2>/dev/null adamc@1132: adamc@1132: DEPDIR="${am__leading_dot}deps" adamc@1132: adamc@1132: ac_config_commands="$ac_config_commands depfiles" adamc@1132: adamc@1132: adamc@1132: am_make=${MAKE-make} adamc@1132: cat > confinc << 'END' adamc@1132: am__doit: adamc@1132: @echo this is the am__doit target adamc@1132: .PHONY: am__doit adamc@1132: END adamc@1132: # If we don't find an include directive, just comment out the code. adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 adamc@1132: $as_echo_n "checking for style of include used by $am_make... " >&6; } adamc@1132: am__include="#" adamc@1132: am__quote= adamc@1132: _am_result=none adamc@1132: # First try GNU make style include. adamc@1132: echo "include confinc" > confmf adamc@1132: # Ignore all kinds of additional output from `make'. adamc@1132: case `$am_make -s -f confmf 2> /dev/null` in #( adamc@1132: *the\ am__doit\ target*) adamc@1132: am__include=include adamc@1132: am__quote= adamc@1132: _am_result=GNU adamc@1132: ;; adamc@1132: esac adamc@1132: # Now try BSD make style include. adamc@1132: if test "$am__include" = "#"; then adamc@1132: echo '.include "confinc"' > confmf adamc@1132: case `$am_make -s -f confmf 2> /dev/null` in #( adamc@1132: *the\ am__doit\ target*) adamc@1132: am__include=.include adamc@1132: am__quote="\"" adamc@1132: _am_result=BSD adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 adamc@1132: $as_echo "$_am_result" >&6; } adamc@1132: rm -f confinc confmf adamc@1132: adamc@1132: # Check whether --enable-dependency-tracking was given. adamc@1132: if test "${enable_dependency_tracking+set}" = set; then : adamc@1132: enableval=$enable_dependency_tracking; adamc@1132: fi adamc@1132: adamc@1132: if test "x$enable_dependency_tracking" != xno; then adamc@1132: am_depcomp="$ac_aux_dir/depcomp" adamc@1132: AMDEPBACKSLASH='\' adamc@1132: fi adamc@1132: if test "x$enable_dependency_tracking" != xno; then adamc@1132: AMDEP_TRUE= adamc@1132: AMDEP_FALSE='#' adamc@1132: else adamc@1132: AMDEP_TRUE='#' adamc@1132: AMDEP_FALSE= adamc@1132: fi adamc@1132: adamc@1132: adamc@1149: if test "`cd $srcdir && pwd`" != "`pwd`"; then adamc@1149: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output adamc@1149: # is not polluted with repeated "-I." adamc@1149: am__isrc=' -I$(srcdir)' adamc@1149: # test to see if srcdir already configured adamc@1149: if test -f $srcdir/config.status; then adam@1315: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 adamc@1149: fi adamc@1149: fi adamc@1149: adamc@1149: # test whether we have cygpath adamc@1149: if test -z "$CYGPATH_W"; then adamc@1149: if (cygpath --version) >/dev/null 2>/dev/null; then adamc@1149: CYGPATH_W='cygpath -w' adamc@1149: else adamc@1149: CYGPATH_W=echo adamc@1149: fi adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: # Define the identity of the package. adamc@1149: PACKAGE='urweb' adam@1616: VERSION='20111127' adamc@1149: adamc@1149: adamc@1149: # Some tools Automake needs. adamc@1149: adamc@1149: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} adamc@1149: adamc@1149: adamc@1149: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} adamc@1149: adamc@1149: adamc@1149: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} adamc@1149: adamc@1149: adamc@1149: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} adamc@1149: adamc@1149: adamc@1149: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} adamc@1149: adamc@1149: # We need awk for the "check" target. The system "awk" is bad on adamc@1149: # some platforms. adamc@1149: # Always define AMTAR for backward compatibility. adamc@1149: adamc@1149: AMTAR=${AMTAR-"${am_missing_run}tar"} adamc@1149: adamc@1149: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' adamc@1149: adamc@1149: adamc@1149: adamc@1132: adamc@1132: depcc="$CC" am_compiler_list= adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 adamc@1132: $as_echo_n "checking dependency style of $depcc... " >&6; } adam@1599: if ${am_cv_CC_dependencies_compiler_type+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then adamc@1132: # We make a subdir and do the tests there. Otherwise we can end up adamc@1132: # making bogus files that we don't know about and never remove. For adamc@1132: # instance it was reported that on HP-UX the gcc test will end up adamc@1132: # making a dummy file named `D' -- because `-MD' means `put the output adamc@1132: # in D'. adamc@1132: mkdir conftest.dir adamc@1132: # Copy depcomp to subdir because otherwise we won't find it if we're adamc@1132: # using a relative directory. adamc@1132: cp "$am_depcomp" conftest.dir adamc@1132: cd conftest.dir adamc@1132: # We will build objects and dependencies in a subdirectory because adamc@1132: # it helps to detect inapplicable dependency modes. For instance adamc@1132: # both Tru64's cc and ICC support -MD to output dependencies as a adamc@1132: # side effect of compilation, but ICC will put the dependencies in adamc@1132: # the current directory while Tru64 will put them in the object adamc@1132: # directory. adamc@1132: mkdir sub adamc@1132: adamc@1132: am_cv_CC_dependencies_compiler_type=none adamc@1132: if test "$am_compiler_list" = ""; then adamc@1132: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` adamc@1132: fi adamc@1132: am__universal=false adamc@1132: case " $depcc " in #( adamc@1132: *\ -arch\ *\ -arch\ *) am__universal=true ;; adamc@1132: esac adamc@1132: adamc@1132: for depmode in $am_compiler_list; do adamc@1132: # Setup a source with many dependencies, because some compilers adamc@1132: # like to wrap large dependency lists on column 80 (with \), and adamc@1132: # we should not choose a depcomp mode which is confused by this. adamc@1132: # adamc@1132: # We need to recreate these files for each test, as the compiler may adamc@1132: # overwrite some of them when testing with obscure command lines. adamc@1132: # This happens at least with the AIX C compiler. adamc@1132: : > sub/conftest.c adamc@1132: for i in 1 2 3 4 5 6; do adamc@1132: echo '#include "conftst'$i'.h"' >> sub/conftest.c adamc@1132: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with adamc@1132: # Solaris 8's {/usr,}/bin/sh. adamc@1132: touch sub/conftst$i.h adamc@1132: done adamc@1132: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf adamc@1132: adamc@1132: # We check with `-c' and `-o' for the sake of the "dashmstdout" adamc@1132: # mode. It turns out that the SunPro C++ compiler does not properly adamc@1132: # handle `-M -o', and we need to detect this. Also, some Intel adamc@1132: # versions had trouble with output in subdirs adamc@1132: am__obj=sub/conftest.${OBJEXT-o} adamc@1132: am__minus_obj="-o $am__obj" adamc@1132: case $depmode in adamc@1132: gcc) adamc@1132: # This depmode causes a compiler race in universal mode. adamc@1132: test "$am__universal" = false || continue adamc@1132: ;; adamc@1132: nosideeffect) adamc@1132: # after this tag, mechanisms are not by side-effect, so they'll adamc@1132: # only be used when explicitly requested adamc@1132: if test "x$enable_dependency_tracking" = xyes; then adamc@1132: continue adamc@1132: else adamc@1132: break adamc@1132: fi adamc@1132: ;; adamc@1132: msvisualcpp | msvcmsys) adamc@1132: # This compiler won't grok `-c -o', but also, the minuso test has adamc@1132: # not run yet. These depmodes are late enough in the game, and adamc@1132: # so weak that their functioning should not be impacted. adamc@1132: am__obj=conftest.${OBJEXT-o} adamc@1132: am__minus_obj= adamc@1132: ;; adamc@1132: none) break ;; adamc@1132: esac adamc@1132: if depmode=$depmode \ adamc@1132: source=sub/conftest.c object=$am__obj \ adamc@1132: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ adamc@1132: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ adamc@1132: >/dev/null 2>conftest.err && adamc@1132: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && adamc@1132: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && adamc@1132: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && adamc@1132: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then adamc@1132: # icc doesn't choke on unknown options, it will just issue warnings adamc@1132: # or remarks (even with -Werror). So we grep stderr for any message adamc@1132: # that says an option was ignored or not supported. adamc@1132: # When given -MP, icc 7.0 and 7.1 complain thusly: adamc@1132: # icc: Command line warning: ignoring option '-M'; no argument required adamc@1132: # The diagnosis changed in icc 8.0: adamc@1132: # icc: Command line remark: option '-MP' not supported adamc@1132: if (grep 'ignoring option' conftest.err || adamc@1132: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else adamc@1132: am_cv_CC_dependencies_compiler_type=$depmode adamc@1132: break adamc@1132: fi adamc@1132: fi adamc@1132: done adamc@1132: adamc@1132: cd .. adamc@1132: rm -rf conftest.dir adamc@1132: else adamc@1132: am_cv_CC_dependencies_compiler_type=none adamc@1132: fi adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 adamc@1132: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } adamc@1132: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type adamc@1132: adamc@1132: if adamc@1132: test "x$enable_dependency_tracking" != xno \ adamc@1132: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then adamc@1132: am__fastdepCC_TRUE= adamc@1132: am__fastdepCC_FALSE='#' adamc@1132: else adamc@1132: am__fastdepCC_TRUE='#' adamc@1132: am__fastdepCC_FALSE= adamc@1132: fi adamc@1132: adamc@1132: adamc@1149: adamc@1149: ac_ext=c adamc@1149: ac_cpp='$CPP $CPPFLAGS' adamc@1149: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1149: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1149: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1149: if test -n "$ac_tool_prefix"; then adamc@1149: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. adamc@1149: set dummy ${ac_tool_prefix}gcc; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$CC"; then adamc@1149: ac_cv_prog_CC="$CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_CC="${ac_tool_prefix}gcc" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: CC=$ac_cv_prog_CC adamc@1149: if test -n "$CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adamc@1149: $as_echo "$CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: fi adamc@1149: if test -z "$ac_cv_prog_CC"; then adamc@1149: ac_ct_CC=$CC adamc@1149: # Extract the first word of "gcc", so it can be a program name with args. adamc@1149: set dummy gcc; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$ac_ct_CC"; then adamc@1149: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_ac_ct_CC="gcc" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: ac_ct_CC=$ac_cv_prog_ac_ct_CC adamc@1149: if test -n "$ac_ct_CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 adamc@1149: $as_echo "$ac_ct_CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: if test "x$ac_ct_CC" = x; then adamc@1149: CC="" adamc@1149: else adamc@1149: case $cross_compiling:$ac_tool_warned in adamc@1149: yes:) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1149: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1149: ac_tool_warned=yes ;; adamc@1149: esac adamc@1149: CC=$ac_ct_CC adamc@1149: fi adamc@1149: else adamc@1149: CC="$ac_cv_prog_CC" adamc@1149: fi adamc@1149: adamc@1149: if test -z "$CC"; then adamc@1149: if test -n "$ac_tool_prefix"; then adamc@1149: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. adamc@1149: set dummy ${ac_tool_prefix}cc; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$CC"; then adamc@1149: ac_cv_prog_CC="$CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_CC="${ac_tool_prefix}cc" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: CC=$ac_cv_prog_CC adamc@1149: if test -n "$CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adamc@1149: $as_echo "$CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: if test -z "$CC"; then adamc@1149: # Extract the first word of "cc", so it can be a program name with args. adamc@1149: set dummy cc; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$CC"; then adamc@1149: ac_cv_prog_CC="$CC" # Let the user override the test. adamc@1149: else adamc@1149: ac_prog_rejected=no adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then adamc@1149: ac_prog_rejected=yes adamc@1149: continue adamc@1149: fi adamc@1149: ac_cv_prog_CC="cc" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: if test $ac_prog_rejected = yes; then adamc@1149: # We found a bogon in the path, so make sure we never use it. adamc@1149: set dummy $ac_cv_prog_CC adamc@1149: shift adamc@1149: if test $# != 0; then adamc@1149: # We chose a different compiler from the bogus one. adamc@1149: # However, it has the same basename, so the bogon will be chosen adamc@1149: # first if we set CC to just the basename; use the full file name. adamc@1149: shift adamc@1149: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" adamc@1149: fi adamc@1149: fi adamc@1149: fi adamc@1149: fi adamc@1149: CC=$ac_cv_prog_CC adamc@1149: if test -n "$CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adamc@1149: $as_echo "$CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: fi adamc@1149: if test -z "$CC"; then adamc@1149: if test -n "$ac_tool_prefix"; then adamc@1149: for ac_prog in cl.exe adamc@1149: do adamc@1149: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. adamc@1149: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$CC"; then adamc@1149: ac_cv_prog_CC="$CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: CC=$ac_cv_prog_CC adamc@1149: if test -n "$CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adamc@1149: $as_echo "$CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: test -n "$CC" && break adamc@1149: done adamc@1149: fi adamc@1149: if test -z "$CC"; then adamc@1149: ac_ct_CC=$CC adamc@1149: for ac_prog in cl.exe adamc@1149: do adamc@1149: # Extract the first word of "$ac_prog", so it can be a program name with args. adamc@1149: set dummy $ac_prog; ac_word=$2 adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1149: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_CC+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: if test -n "$ac_ct_CC"; then adamc@1149: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. adamc@1149: else adamc@1149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1149: for as_dir in $PATH adamc@1149: do adamc@1149: IFS=$as_save_IFS adamc@1149: test -z "$as_dir" && as_dir=. adamc@1149: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1149: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1149: ac_cv_prog_ac_ct_CC="$ac_prog" adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1149: break 2 adamc@1149: fi adamc@1149: done adamc@1149: done adamc@1149: IFS=$as_save_IFS adamc@1149: adamc@1149: fi adamc@1149: fi adamc@1149: ac_ct_CC=$ac_cv_prog_ac_ct_CC adamc@1149: if test -n "$ac_ct_CC"; then adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 adamc@1149: $as_echo "$ac_ct_CC" >&6; } adamc@1149: else adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1149: $as_echo "no" >&6; } adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: test -n "$ac_ct_CC" && break adamc@1149: done adamc@1149: adamc@1149: if test "x$ac_ct_CC" = x; then adamc@1149: CC="" adamc@1149: else adamc@1149: case $cross_compiling:$ac_tool_warned in adamc@1149: yes:) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1149: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1149: ac_tool_warned=yes ;; adamc@1149: esac adamc@1149: CC=$ac_ct_CC adamc@1149: fi adamc@1149: fi adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: adamc@1149: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adamc@1149: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@1315: as_fn_error $? "no acceptable C compiler found in \$PATH adam@1599: See \`config.log' for more details" "$LINENO" 5; } adamc@1149: adamc@1149: # Provide some information about the compiler. adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 adamc@1149: set X $ac_compile adamc@1149: ac_compiler=$2 adamc@1149: for ac_option in --version -v -V -qversion; do adamc@1149: { { ac_try="$ac_compiler $ac_option >&5" adamc@1149: case "(($ac_try" in adamc@1149: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adamc@1149: *) ac_try_echo=$ac_try;; adamc@1149: esac adamc@1149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adamc@1149: $as_echo "$ac_try_echo"; } >&5 adamc@1149: (eval "$ac_compiler $ac_option >&5") 2>conftest.err adamc@1149: ac_status=$? adamc@1149: if test -s conftest.err; then adamc@1149: sed '10a\ adamc@1149: ... rest of stderr output deleted ... adamc@1149: 10q' conftest.err >conftest.er1 adamc@1149: cat conftest.er1 >&5 adamc@1149: fi adamc@1149: rm -f conftest.er1 conftest.err adamc@1149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1149: test $ac_status = 0; } adamc@1149: done adamc@1149: adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 adamc@1149: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } adam@1599: if ${ac_cv_c_compiler_gnu+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: #ifndef __GNUC__ adamc@1149: choke me adamc@1149: #endif adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_compiler_gnu=yes adamc@1149: else adamc@1149: ac_compiler_gnu=no adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: ac_cv_c_compiler_gnu=$ac_compiler_gnu adamc@1149: adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 adamc@1149: $as_echo "$ac_cv_c_compiler_gnu" >&6; } adamc@1149: if test $ac_compiler_gnu = yes; then adamc@1149: GCC=yes adamc@1149: else adamc@1149: GCC= adamc@1149: fi adamc@1149: ac_test_CFLAGS=${CFLAGS+set} adamc@1149: ac_save_CFLAGS=$CFLAGS adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 adamc@1149: $as_echo_n "checking whether $CC accepts -g... " >&6; } adam@1599: if ${ac_cv_prog_cc_g+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: ac_save_c_werror_flag=$ac_c_werror_flag adamc@1149: ac_c_werror_flag=yes adamc@1149: ac_cv_prog_cc_g=no adamc@1149: CFLAGS="-g" adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_cv_prog_cc_g=yes adamc@1149: else adamc@1149: CFLAGS="" adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: adamc@1149: else adamc@1149: ac_c_werror_flag=$ac_save_c_werror_flag adamc@1149: CFLAGS="-g" adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_cv_prog_cc_g=yes adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adamc@1149: ac_c_werror_flag=$ac_save_c_werror_flag adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 adamc@1149: $as_echo "$ac_cv_prog_cc_g" >&6; } adamc@1149: if test "$ac_test_CFLAGS" = set; then adamc@1149: CFLAGS=$ac_save_CFLAGS adamc@1149: elif test $ac_cv_prog_cc_g = yes; then adamc@1149: if test "$GCC" = yes; then adamc@1149: CFLAGS="-g -O2" adamc@1149: else adamc@1149: CFLAGS="-g" adamc@1149: fi adamc@1149: else adamc@1149: if test "$GCC" = yes; then adamc@1149: CFLAGS="-O2" adamc@1149: else adamc@1149: CFLAGS= adamc@1149: fi adamc@1149: fi adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 adamc@1149: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } adam@1599: if ${ac_cv_prog_cc_c89+:} false; then : adamc@1149: $as_echo_n "(cached) " >&6 adamc@1149: else adamc@1149: ac_cv_prog_cc_c89=no adamc@1149: ac_save_CC=$CC adamc@1149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1149: /* end confdefs.h. */ adamc@1149: #include adamc@1149: #include adamc@1149: #include adamc@1149: #include adamc@1149: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ adamc@1149: struct buf { int x; }; adamc@1149: FILE * (*rcsopen) (struct buf *, struct stat *, int); adamc@1149: static char *e (p, i) adamc@1149: char **p; adamc@1149: int i; adamc@1149: { adamc@1149: return p[i]; adamc@1149: } adamc@1149: static char *f (char * (*g) (char **, int), char **p, ...) adamc@1149: { adamc@1149: char *s; adamc@1149: va_list v; adamc@1149: va_start (v,p); adamc@1149: s = g (p, va_arg (v,int)); adamc@1149: va_end (v); adamc@1149: return s; adamc@1149: } adamc@1149: adamc@1149: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has adamc@1149: function prototypes and stuff, but not '\xHH' hex character constants. adamc@1149: These don't provoke an error unfortunately, instead are silently treated adamc@1149: as 'x'. The following induces an error, until -std is added to get adamc@1149: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an adamc@1149: array size at least. It's necessary to write '\x00'==0 to get something adamc@1149: that's true only with -std. */ adamc@1149: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; adamc@1149: adamc@1149: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters adamc@1149: inside strings and character constants. */ adamc@1149: #define FOO(x) 'x' adamc@1149: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; adamc@1149: adamc@1149: int test (int i, double x); adamc@1149: struct s1 {int (*f) (int a);}; adamc@1149: struct s2 {int (*f) (double a);}; adamc@1149: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); adamc@1149: int argc; adamc@1149: char **argv; adamc@1149: int adamc@1149: main () adamc@1149: { adamc@1149: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; adamc@1149: ; adamc@1149: return 0; adamc@1149: } adamc@1149: _ACEOF adamc@1149: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ adamc@1149: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" adamc@1149: do adamc@1149: CC="$ac_save_CC $ac_arg" adamc@1149: if ac_fn_c_try_compile "$LINENO"; then : adamc@1149: ac_cv_prog_cc_c89=$ac_arg adamc@1149: fi adamc@1149: rm -f core conftest.err conftest.$ac_objext adamc@1149: test "x$ac_cv_prog_cc_c89" != "xno" && break adamc@1149: done adamc@1149: rm -f conftest.$ac_ext adamc@1149: CC=$ac_save_CC adamc@1149: adamc@1149: fi adamc@1149: # AC_CACHE_VAL adamc@1149: case "x$ac_cv_prog_cc_c89" in adamc@1149: x) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 adamc@1149: $as_echo "none needed" >&6; } ;; adamc@1149: xno) adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 adamc@1149: $as_echo "unsupported" >&6; } ;; adamc@1149: *) adamc@1149: CC="$CC $ac_cv_prog_cc_c89" adamc@1149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 adamc@1149: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; adamc@1149: esac adamc@1149: if test "x$ac_cv_prog_cc_c89" != xno; then : adamc@1149: adamc@1149: fi adamc@1149: adamc@1149: ac_ext=c adamc@1149: ac_cpp='$CPP $CPPFLAGS' adamc@1149: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1149: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1149: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1149: adamc@1132: case `pwd` in adamc@1132: *\ * | *\ *) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 adamc@1132: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; adamc@1132: esac adamc@1132: adamc@1132: adamc@1132: adam@1599: macro_version='2.4.2' adam@1599: macro_revision='1.3337' adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: ltmain="$ac_aux_dir/ltmain.sh" adamc@1132: adamc@1132: # Make sure we can run config.sub. adamc@1132: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || adam@1315: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 adamc@1132: $as_echo_n "checking build system type... " >&6; } adam@1599: if ${ac_cv_build+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: ac_build_alias=$build_alias adamc@1132: test "x$ac_build_alias" = x && adamc@1132: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` adamc@1132: test "x$ac_build_alias" = x && adam@1315: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 adamc@1132: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || adam@1315: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 adamc@1132: $as_echo "$ac_cv_build" >&6; } adamc@1132: case $ac_cv_build in adamc@1132: *-*-*) ;; adam@1599: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; adamc@1132: esac adamc@1132: build=$ac_cv_build adamc@1132: ac_save_IFS=$IFS; IFS='-' adamc@1132: set x $ac_cv_build adamc@1132: shift adamc@1132: build_cpu=$1 adamc@1132: build_vendor=$2 adamc@1132: shift; shift adamc@1132: # Remember, the first character of IFS is used to create $*, adamc@1132: # except with old shells: adamc@1132: build_os=$* adamc@1132: IFS=$ac_save_IFS adamc@1132: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 adamc@1132: $as_echo_n "checking host system type... " >&6; } adam@1599: if ${ac_cv_host+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test "x$host_alias" = x; then adamc@1132: ac_cv_host=$ac_cv_build adamc@1132: else adamc@1132: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || adam@1315: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 adamc@1132: fi adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 adamc@1132: $as_echo "$ac_cv_host" >&6; } adamc@1132: case $ac_cv_host in adamc@1132: *-*-*) ;; adam@1599: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; adamc@1132: esac adamc@1132: host=$ac_cv_host adamc@1132: ac_save_IFS=$IFS; IFS='-' adamc@1132: set x $ac_cv_host adamc@1132: shift adamc@1132: host_cpu=$1 adamc@1132: host_vendor=$2 adamc@1132: shift; shift adamc@1132: # Remember, the first character of IFS is used to create $*, adamc@1132: # except with old shells: adamc@1132: host_os=$* adamc@1132: IFS=$ac_save_IFS adamc@1132: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac adamc@1132: adamc@1132: adam@1459: # Backslashify metacharacters that are still active within adam@1459: # double-quoted strings. adam@1459: sed_quote_subst='s/\(["`$\\]\)/\\\1/g' adam@1459: adam@1459: # Same as above, but do not quote variable references. adam@1459: double_quote_subst='s/\(["`\\]\)/\\\1/g' adam@1459: adam@1459: # Sed substitution to delay expansion of an escaped shell variable in a adam@1459: # double_quote_subst'ed string. adam@1459: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' adam@1459: adam@1459: # Sed substitution to delay expansion of an escaped single quote. adam@1459: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' adam@1459: adam@1459: # Sed substitution to avoid accidental globbing in evaled expressions adam@1459: no_glob_subst='s/\*/\\\*/g' adam@1459: adam@1459: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' adam@1459: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO adam@1459: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO adam@1459: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 adam@1459: $as_echo_n "checking how to print strings... " >&6; } adam@1459: # Test print first, because it will be a builtin if present. adam@1459: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ adam@1459: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then adam@1459: ECHO='print -r --' adam@1459: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then adam@1459: ECHO='printf %s\n' adam@1459: else adam@1459: # Use this function as a fallback that always works. adam@1459: func_fallback_echo () adam@1459: { adam@1459: eval 'cat <<_LTECHO_EOF adam@1459: $1 adam@1459: _LTECHO_EOF' adam@1459: } adam@1459: ECHO='func_fallback_echo' adam@1459: fi adam@1459: adam@1459: # func_echo_all arg... adam@1459: # Invoke $ECHO with all args, space-separated. adam@1459: func_echo_all () adam@1459: { adam@1459: $ECHO "" adam@1459: } adam@1459: adam@1459: case "$ECHO" in adam@1459: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 adam@1459: $as_echo "printf" >&6; } ;; adam@1459: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 adam@1459: $as_echo "print -r" >&6; } ;; adam@1459: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 adam@1459: $as_echo "cat" >&6; } ;; adam@1459: esac adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 adamc@1132: $as_echo_n "checking for a sed that does not truncate output... " >&6; } adam@1599: if ${ac_cv_path_SED+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ adamc@1132: for ac_i in 1 2 3 4 5 6 7; do adamc@1132: ac_script="$ac_script$as_nl$ac_script" adamc@1132: done adamc@1132: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed adamc@1132: { ac_script=; unset ac_script;} adamc@1132: if test -z "$SED"; then adamc@1132: ac_path_SED_found=false adamc@1132: # Loop through the user's path and test for each of PROGNAME-LIST adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_prog in sed gsed; do adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" adamc@1132: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue adamc@1132: # Check for GNU ac_path_SED and select it if it is found. adamc@1132: # Check for GNU $ac_path_SED adamc@1132: case `"$ac_path_SED" --version 2>&1` in adamc@1132: *GNU*) adamc@1132: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; adamc@1132: *) adamc@1132: ac_count=0 adamc@1132: $as_echo_n 0123456789 >"conftest.in" adamc@1132: while : adamc@1132: do adamc@1132: cat "conftest.in" "conftest.in" >"conftest.tmp" adamc@1132: mv "conftest.tmp" "conftest.in" adamc@1132: cp "conftest.in" "conftest.nl" adamc@1132: $as_echo '' >> "conftest.nl" adamc@1132: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break adamc@1132: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break adamc@1132: as_fn_arith $ac_count + 1 && ac_count=$as_val adamc@1132: if test $ac_count -gt ${ac_path_SED_max-0}; then adamc@1132: # Best one so far, save it but keep looking for a better one adamc@1132: ac_cv_path_SED="$ac_path_SED" adamc@1132: ac_path_SED_max=$ac_count adamc@1132: fi adamc@1132: # 10*(2^10) chars as input seems more than enough adamc@1132: test $ac_count -gt 10 && break adamc@1132: done adamc@1132: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; adamc@1132: esac adamc@1132: adamc@1132: $ac_path_SED_found && break 3 adamc@1132: done adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: if test -z "$ac_cv_path_SED"; then adam@1315: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 adamc@1132: fi adamc@1132: else adamc@1132: ac_cv_path_SED=$SED adamc@1132: fi adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 adamc@1132: $as_echo "$ac_cv_path_SED" >&6; } adamc@1132: SED="$ac_cv_path_SED" adamc@1132: rm -f conftest.sed adamc@1132: adamc@1132: test -z "$SED" && SED=sed adamc@1132: Xsed="$SED -e 1s/^X//" adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 adamc@1132: $as_echo_n "checking for fgrep... " >&6; } adam@1599: if ${ac_cv_path_FGREP+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 adamc@1132: then ac_cv_path_FGREP="$GREP -F" adamc@1132: else adamc@1132: if test -z "$FGREP"; then adamc@1132: ac_path_FGREP_found=false adamc@1132: # Loop through the user's path and test for each of PROGNAME-LIST adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_prog in fgrep; do adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" adamc@1132: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue adamc@1132: # Check for GNU ac_path_FGREP and select it if it is found. adamc@1132: # Check for GNU $ac_path_FGREP adamc@1132: case `"$ac_path_FGREP" --version 2>&1` in adamc@1132: *GNU*) adamc@1132: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; adamc@1132: *) adamc@1132: ac_count=0 adamc@1132: $as_echo_n 0123456789 >"conftest.in" adamc@1132: while : adamc@1132: do adamc@1132: cat "conftest.in" "conftest.in" >"conftest.tmp" adamc@1132: mv "conftest.tmp" "conftest.in" adamc@1132: cp "conftest.in" "conftest.nl" adamc@1132: $as_echo 'FGREP' >> "conftest.nl" adamc@1132: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break adamc@1132: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break adamc@1132: as_fn_arith $ac_count + 1 && ac_count=$as_val adamc@1132: if test $ac_count -gt ${ac_path_FGREP_max-0}; then adamc@1132: # Best one so far, save it but keep looking for a better one adamc@1132: ac_cv_path_FGREP="$ac_path_FGREP" adamc@1132: ac_path_FGREP_max=$ac_count adamc@1132: fi adamc@1132: # 10*(2^10) chars as input seems more than enough adamc@1132: test $ac_count -gt 10 && break adamc@1132: done adamc@1132: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; adamc@1132: esac adamc@1132: adamc@1132: $ac_path_FGREP_found && break 3 adamc@1132: done adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: if test -z "$ac_cv_path_FGREP"; then adam@1315: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 adamc@1132: fi adamc@1132: else adamc@1132: ac_cv_path_FGREP=$FGREP adamc@1132: fi adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 adamc@1132: $as_echo "$ac_cv_path_FGREP" >&6; } adamc@1132: FGREP="$ac_cv_path_FGREP" adamc@1132: adamc@1132: adamc@1132: test -z "$GREP" && GREP=grep adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # Check whether --with-gnu-ld was given. adamc@1132: if test "${with_gnu_ld+set}" = set; then : adamc@1132: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes adamc@1132: else adamc@1132: with_gnu_ld=no adamc@1132: fi adamc@1132: adamc@1132: ac_prog=ld adamc@1132: if test "$GCC" = yes; then adamc@1132: # Check if gcc -print-prog-name=ld gives a path. adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 adamc@1132: $as_echo_n "checking for ld used by $CC... " >&6; } adamc@1132: case $host in adamc@1132: *-*-mingw*) adamc@1132: # gcc leaves a trailing carriage return which upsets mingw adamc@1132: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; adamc@1132: *) adamc@1132: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; adamc@1132: esac adamc@1132: case $ac_prog in adamc@1132: # Accept absolute paths. adamc@1132: [\\/]* | ?:[\\/]*) adamc@1132: re_direlt='/[^/][^/]*/\.\./' adamc@1132: # Canonicalize the pathname of ld adamc@1132: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` adamc@1132: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do adamc@1132: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` adamc@1132: done adamc@1132: test -z "$LD" && LD="$ac_prog" adamc@1132: ;; adamc@1132: "") adamc@1132: # If it fails, then pretend we aren't using GCC. adamc@1132: ac_prog=ld adamc@1132: ;; adamc@1132: *) adamc@1132: # If it is relative, then search for the first ld in PATH. adamc@1132: with_gnu_ld=unknown adamc@1132: ;; adamc@1132: esac adamc@1132: elif test "$with_gnu_ld" = yes; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 adamc@1132: $as_echo_n "checking for GNU ld... " >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 adamc@1132: $as_echo_n "checking for non-GNU ld... " >&6; } adamc@1132: fi adam@1599: if ${lt_cv_path_LD+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -z "$LD"; then adamc@1132: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR adamc@1132: for ac_dir in $PATH; do adamc@1132: IFS="$lt_save_ifs" adamc@1132: test -z "$ac_dir" && ac_dir=. adamc@1132: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then adamc@1132: lt_cv_path_LD="$ac_dir/$ac_prog" adamc@1132: # Check to see if the program is GNU ld. I'd rather use --version, adamc@1132: # but apparently some variants of GNU ld only accept -v. adamc@1132: # Break only if it was the GNU/non-GNU ld that we prefer. adamc@1132: case `"$lt_cv_path_LD" -v 2>&1 &5 adamc@1132: $as_echo "$LD" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adam@1315: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 adamc@1132: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } adam@1599: if ${lt_cv_prog_gnu_ld+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: # I'd rather use --version here, but apparently some GNU lds only accept -v. adamc@1132: case `$LD -v 2>&1 &5 adamc@1132: $as_echo "$lt_cv_prog_gnu_ld" >&6; } adamc@1132: with_gnu_ld=$lt_cv_prog_gnu_ld adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 adamc@1132: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } adam@1599: if ${lt_cv_path_NM+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$NM"; then adamc@1132: # Let the user override the test. adamc@1132: lt_cv_path_NM="$NM" adamc@1132: else adamc@1132: lt_nm_to_check="${ac_tool_prefix}nm" adamc@1132: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then adamc@1132: lt_nm_to_check="$lt_nm_to_check nm" adamc@1132: fi adamc@1132: for lt_tmp_nm in $lt_nm_to_check; do adamc@1132: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR adamc@1132: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do adamc@1132: IFS="$lt_save_ifs" adamc@1132: test -z "$ac_dir" && ac_dir=. adamc@1132: tmp_nm="$ac_dir/$lt_tmp_nm" adamc@1132: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then adamc@1132: # Check to see if the nm accepts a BSD-compat flag. adamc@1132: # Adding the `sed 1q' prevents false positives on HP-UX, which says: adamc@1132: # nm: unknown option "B" ignored adamc@1132: # Tru64's nm complains that /dev/null is an invalid object file adamc@1132: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in adamc@1132: */dev/null* | *'Invalid file or object type'*) adamc@1132: lt_cv_path_NM="$tmp_nm -B" adamc@1132: break adamc@1132: ;; adamc@1132: *) adamc@1132: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in adamc@1132: */dev/null*) adamc@1132: lt_cv_path_NM="$tmp_nm -p" adamc@1132: break adamc@1132: ;; adamc@1132: *) adamc@1132: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but adamc@1132: continue # so that we can try to find one that supports BSD flags adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: done adamc@1132: IFS="$lt_save_ifs" adamc@1132: done adamc@1132: : ${lt_cv_path_NM=no} adamc@1132: fi adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 adamc@1132: $as_echo "$lt_cv_path_NM" >&6; } adamc@1132: if test "$lt_cv_path_NM" != "no"; then adamc@1132: NM="$lt_cv_path_NM" adamc@1132: else adamc@1132: # Didn't find any BSD compatible name lister, look for dumpbin. adam@1459: if test -n "$DUMPBIN"; then : adam@1459: # Let the user override the test. adam@1459: else adam@1459: if test -n "$ac_tool_prefix"; then adam@1459: for ac_prog in dumpbin "link -dump" adamc@1132: do adamc@1132: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. adamc@1132: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_DUMPBIN+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$DUMPBIN"; then adamc@1132: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: DUMPBIN=$ac_cv_prog_DUMPBIN adamc@1132: if test -n "$DUMPBIN"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 adamc@1132: $as_echo "$DUMPBIN" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: test -n "$DUMPBIN" && break adamc@1132: done adamc@1132: fi adamc@1132: if test -z "$DUMPBIN"; then adamc@1132: ac_ct_DUMPBIN=$DUMPBIN adam@1459: for ac_prog in dumpbin "link -dump" adamc@1132: do adamc@1132: # Extract the first word of "$ac_prog", so it can be a program name with args. adamc@1132: set dummy $ac_prog; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_DUMPBIN"; then adamc@1132: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN adamc@1132: if test -n "$ac_ct_DUMPBIN"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 adamc@1132: $as_echo "$ac_ct_DUMPBIN" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: test -n "$ac_ct_DUMPBIN" && break adamc@1132: done adamc@1132: adamc@1132: if test "x$ac_ct_DUMPBIN" = x; then adamc@1132: DUMPBIN=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: DUMPBIN=$ac_ct_DUMPBIN adamc@1132: fi adamc@1132: fi adamc@1132: adam@1459: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in adam@1459: *COFF*) adam@1459: DUMPBIN="$DUMPBIN -symbols" adam@1459: ;; adam@1459: *) adam@1459: DUMPBIN=: adam@1459: ;; adam@1459: esac adam@1459: fi adamc@1132: adamc@1132: if test "$DUMPBIN" != ":"; then adamc@1132: NM="$DUMPBIN" adamc@1132: fi adamc@1132: fi adamc@1132: test -z "$NM" && NM=nm adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 adamc@1132: $as_echo_n "checking the name lister ($NM) interface... " >&6; } adam@1599: if ${lt_cv_nm_interface+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_nm_interface="BSD nm" adamc@1132: echo "int some_variable = 0;" > conftest.$ac_ext adam@1459: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) adamc@1132: (eval "$ac_compile" 2>conftest.err) adamc@1132: cat conftest.err >&5 adam@1459: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) adamc@1132: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) adamc@1132: cat conftest.err >&5 adam@1459: (eval echo "\"\$as_me:$LINENO: output\"" >&5) adamc@1132: cat conftest.out >&5 adamc@1132: if $GREP 'External.*some_variable' conftest.out > /dev/null; then adamc@1132: lt_cv_nm_interface="MS dumpbin" adamc@1132: fi adamc@1132: rm -f conftest* adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 adamc@1132: $as_echo "$lt_cv_nm_interface" >&6; } adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 adamc@1132: $as_echo_n "checking whether ln -s works... " >&6; } adamc@1132: LN_S=$as_ln_s adamc@1132: if test "$LN_S" = "ln -s"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adamc@1132: $as_echo "yes" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 adamc@1132: $as_echo "no, using $LN_S" >&6; } adamc@1132: fi adamc@1132: adamc@1132: # find the maximum length of command line arguments adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 adamc@1132: $as_echo_n "checking the maximum length of command line arguments... " >&6; } adam@1599: if ${lt_cv_sys_max_cmd_len+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: i=0 adamc@1132: teststring="ABCD" adamc@1132: adamc@1132: case $build_os in adamc@1132: msdosdjgpp*) adamc@1132: # On DJGPP, this test can blow up pretty badly due to problems in libc adamc@1132: # (any single argument exceeding 2000 bytes causes a buffer overrun adamc@1132: # during glob expansion). Even if it were fixed, the result of this adamc@1132: # check would be larger than it should be. adamc@1132: lt_cv_sys_max_cmd_len=12288; # 12K is about right adamc@1132: ;; adamc@1132: adamc@1132: gnu*) adamc@1132: # Under GNU Hurd, this test is not required because there is adamc@1132: # no limit to the length of command line arguments. adamc@1132: # Libtool will interpret -1 as no limit whatsoever adamc@1132: lt_cv_sys_max_cmd_len=-1; adamc@1132: ;; adamc@1132: adamc@1132: cygwin* | mingw* | cegcc*) adamc@1132: # On Win9x/ME, this test blows up -- it succeeds, but takes adamc@1132: # about 5 minutes as the teststring grows exponentially. adamc@1132: # Worse, since 9x/ME are not pre-emptively multitasking, adamc@1132: # you end up with a "frozen" computer, even though with patience adamc@1132: # the test eventually succeeds (with a max line length of 256k). adamc@1132: # Instead, let's just punt: use the minimum linelength reported by adamc@1132: # all of the supported platforms: 8192 (on NT/2K/XP). adamc@1132: lt_cv_sys_max_cmd_len=8192; adamc@1132: ;; adamc@1132: adam@1459: mint*) adam@1459: # On MiNT this can take a long time and run out of memory. adam@1459: lt_cv_sys_max_cmd_len=8192; adam@1459: ;; adam@1459: adamc@1132: amigaos*) adamc@1132: # On AmigaOS with pdksh, this test takes hours, literally. adamc@1132: # So we just punt and use a minimum line length of 8192. adamc@1132: lt_cv_sys_max_cmd_len=8192; adamc@1132: ;; adamc@1132: adamc@1132: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) adamc@1132: # This has been around since 386BSD, at least. Likely further. adamc@1132: if test -x /sbin/sysctl; then adamc@1132: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` adamc@1132: elif test -x /usr/sbin/sysctl; then adamc@1132: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` adamc@1132: else adamc@1132: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs adamc@1132: fi adamc@1132: # And add a safety zone adamc@1132: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` adamc@1132: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` adamc@1132: ;; adamc@1132: adamc@1132: interix*) adamc@1132: # We know the value 262144 and hardcode it with a safety zone (like BSD) adamc@1132: lt_cv_sys_max_cmd_len=196608 adamc@1132: ;; adamc@1132: adam@1599: os2*) adam@1599: # The test takes a long time on OS/2. adam@1599: lt_cv_sys_max_cmd_len=8192 adam@1599: ;; adam@1599: adamc@1132: osf*) adamc@1132: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure adamc@1132: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not adamc@1132: # nice to cause kernel panics so lets avoid the loop below. adamc@1132: # First set a reasonable default. adamc@1132: lt_cv_sys_max_cmd_len=16384 adamc@1132: # adamc@1132: if test -x /sbin/sysconfig; then adamc@1132: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in adamc@1132: *1*) lt_cv_sys_max_cmd_len=-1 ;; adamc@1132: esac adamc@1132: fi adamc@1132: ;; adamc@1132: sco3.2v5*) adamc@1132: lt_cv_sys_max_cmd_len=102400 adamc@1132: ;; adamc@1132: sysv5* | sco5v6* | sysv4.2uw2*) adamc@1132: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` adamc@1132: if test -n "$kargmax"; then adamc@1132: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` adamc@1132: else adamc@1132: lt_cv_sys_max_cmd_len=32768 adamc@1132: fi adamc@1132: ;; adamc@1132: *) adamc@1132: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` adamc@1132: if test -n "$lt_cv_sys_max_cmd_len"; then adamc@1132: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` adamc@1132: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` adamc@1132: else adamc@1132: # Make teststring a little bigger before we do anything with it. adamc@1132: # a 1K string should be a reasonable start. adamc@1132: for i in 1 2 3 4 5 6 7 8 ; do adamc@1132: teststring=$teststring$teststring adamc@1132: done adamc@1132: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} adamc@1132: # If test is not a shell built-in, we'll probably end up computing a adamc@1132: # maximum length that is only half of the actual maximum length, but adamc@1132: # we can't tell. adam@1599: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ adam@1459: = "X$teststring$teststring"; } >/dev/null 2>&1 && adamc@1132: test $i != 17 # 1/2 MB should be enough adamc@1132: do adamc@1132: i=`expr $i + 1` adamc@1132: teststring=$teststring$teststring adamc@1132: done adamc@1132: # Only check the string length outside the loop. adamc@1132: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` adamc@1132: teststring= adamc@1132: # Add a significant safety factor because C++ compilers can tack on adamc@1132: # massive amounts of additional arguments before passing them to the adamc@1132: # linker. It appears as though 1/2 is a usable value. adamc@1132: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: if test -n $lt_cv_sys_max_cmd_len ; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 adamc@1132: $as_echo "$lt_cv_sys_max_cmd_len" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 adamc@1132: $as_echo "none" >&6; } adamc@1132: fi adamc@1132: max_cmd_len=$lt_cv_sys_max_cmd_len adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: : ${CP="cp -f"} adamc@1132: : ${MV="mv -f"} adamc@1132: : ${RM="rm -f"} adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 adamc@1132: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } adamc@1132: # Try some XSI features adamc@1132: xsi_shell=no adamc@1132: ( _lt_dummy="a/b/c" adam@1459: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ adam@1459: = c,a/b,b/c, \ adamc@1132: && eval 'test $(( 1 + 1 )) -eq 2 \ adamc@1132: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ adamc@1132: && xsi_shell=yes adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 adamc@1132: $as_echo "$xsi_shell" >&6; } adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 adamc@1132: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } adamc@1132: lt_shell_append=no adamc@1132: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ adamc@1132: >/dev/null 2>&1 \ adamc@1132: && lt_shell_append=yes adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 adamc@1132: $as_echo "$lt_shell_append" >&6; } adamc@1132: adamc@1132: adamc@1132: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then adamc@1132: lt_unset=unset adamc@1132: else adamc@1132: lt_unset=false adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # test EBCDIC or ASCII adamc@1132: case `echo X|tr X '\101'` in adamc@1132: A) # ASCII based system adamc@1132: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr adamc@1132: lt_SP2NL='tr \040 \012' adamc@1132: lt_NL2SP='tr \015\012 \040\040' adamc@1132: ;; adamc@1132: *) # EBCDIC based system adamc@1132: lt_SP2NL='tr \100 \n' adamc@1132: lt_NL2SP='tr \r\n \100\100' adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 adam@1459: $as_echo_n "checking how to convert $build file names to $host format... " >&6; } adam@1599: if ${lt_cv_to_host_file_cmd+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: case $host in adam@1459: *-*-mingw* ) adam@1459: case $build in adam@1459: *-*-mingw* ) # actually msys adam@1459: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 adam@1459: ;; adam@1459: *-*-cygwin* ) adam@1459: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 adam@1459: ;; adam@1459: * ) # otherwise, assume *nix adam@1459: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 adam@1459: ;; adam@1459: esac adam@1459: ;; adam@1459: *-*-cygwin* ) adam@1459: case $build in adam@1459: *-*-mingw* ) # actually msys adam@1459: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin adam@1459: ;; adam@1459: *-*-cygwin* ) adam@1459: lt_cv_to_host_file_cmd=func_convert_file_noop adam@1459: ;; adam@1459: * ) # otherwise, assume *nix adam@1459: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin adam@1459: ;; adam@1459: esac adam@1459: ;; adam@1459: * ) # unhandled hosts (and "normal" native builds) adam@1459: lt_cv_to_host_file_cmd=func_convert_file_noop adam@1459: ;; adam@1459: esac adam@1459: adam@1459: fi adam@1459: adam@1459: to_host_file_cmd=$lt_cv_to_host_file_cmd adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 adam@1459: $as_echo "$lt_cv_to_host_file_cmd" >&6; } adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 adam@1459: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } adam@1599: if ${lt_cv_to_tool_file_cmd+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: #assume ordinary cross tools, or native build. adam@1459: lt_cv_to_tool_file_cmd=func_convert_file_noop adam@1459: case $host in adam@1459: *-*-mingw* ) adam@1459: case $build in adam@1459: *-*-mingw* ) # actually msys adam@1459: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 adam@1459: ;; adam@1459: esac adam@1459: ;; adam@1459: esac adam@1459: adam@1459: fi adam@1459: adam@1459: to_tool_file_cmd=$lt_cv_to_tool_file_cmd adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 adam@1459: $as_echo "$lt_cv_to_tool_file_cmd" >&6; } adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 adamc@1132: $as_echo_n "checking for $LD option to reload object files... " >&6; } adam@1599: if ${lt_cv_ld_reload_flag+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_ld_reload_flag='-r' adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 adamc@1132: $as_echo "$lt_cv_ld_reload_flag" >&6; } adamc@1132: reload_flag=$lt_cv_ld_reload_flag adamc@1132: case $reload_flag in adamc@1132: "" | " "*) ;; adamc@1132: *) reload_flag=" $reload_flag" ;; adamc@1132: esac adamc@1132: reload_cmds='$LD$reload_flag -o $output$reload_objs' adamc@1132: case $host_os in adam@1459: cygwin* | mingw* | pw32* | cegcc*) adam@1459: if test "$GCC" != yes; then adam@1459: reload_cmds=false adam@1459: fi adam@1459: ;; adamc@1132: darwin*) adamc@1132: if test "$GCC" = yes; then adamc@1132: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' adamc@1132: else adamc@1132: reload_cmds='$LD$reload_flag -o $output$reload_objs' adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}objdump; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_OBJDUMP+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$OBJDUMP"; then adamc@1132: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: OBJDUMP=$ac_cv_prog_OBJDUMP adamc@1132: if test -n "$OBJDUMP"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 adamc@1132: $as_echo "$OBJDUMP" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_OBJDUMP"; then adamc@1132: ac_ct_OBJDUMP=$OBJDUMP adamc@1132: # Extract the first word of "objdump", so it can be a program name with args. adamc@1132: set dummy objdump; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_OBJDUMP"; then adamc@1132: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_OBJDUMP="objdump" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP adamc@1132: if test -n "$ac_ct_OBJDUMP"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 adamc@1132: $as_echo "$ac_ct_OBJDUMP" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_OBJDUMP" = x; then adamc@1132: OBJDUMP="false" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: OBJDUMP=$ac_ct_OBJDUMP adamc@1132: fi adamc@1132: else adamc@1132: OBJDUMP="$ac_cv_prog_OBJDUMP" adamc@1132: fi adamc@1132: adamc@1132: test -z "$OBJDUMP" && OBJDUMP=objdump adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 adamc@1132: $as_echo_n "checking how to recognize dependent libraries... " >&6; } adam@1599: if ${lt_cv_deplibs_check_method+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_file_magic_cmd='$MAGIC_CMD' adamc@1132: lt_cv_file_magic_test_file= adamc@1132: lt_cv_deplibs_check_method='unknown' adamc@1132: # Need to set the preceding variable on all platforms that support adamc@1132: # interlibrary dependencies. adamc@1132: # 'none' -- dependencies not supported. adamc@1132: # `unknown' -- same as none, but documents that we really don't know. adamc@1132: # 'pass_all' -- all dependencies passed with no checks. adamc@1132: # 'test_compile' -- check by making test program. adamc@1132: # 'file_magic [[regex]]' -- check by looking for files in library path adamc@1132: # which responds to the $file_magic_cmd with a given extended regex. adamc@1132: # If you have `file' or equivalent on your system and you're not sure adamc@1132: # whether `pass_all' will *always* work, you probably want this one. adamc@1132: adamc@1132: case $host_os in adamc@1132: aix[4-9]*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: beos*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: bsdi[45]*) adamc@1132: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' adamc@1132: lt_cv_file_magic_cmd='/usr/bin/file -L' adamc@1132: lt_cv_file_magic_test_file=/shlib/libc.so adamc@1132: ;; adamc@1132: adamc@1132: cygwin*) adamc@1132: # func_win32_libid is a shell function defined in ltmain.sh adamc@1132: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' adamc@1132: lt_cv_file_magic_cmd='func_win32_libid' adamc@1132: ;; adamc@1132: adamc@1132: mingw* | pw32*) adamc@1132: # Base MSYS/MinGW do not provide the 'file' command needed by adamc@1132: # func_win32_libid shell function, so use a weaker test based on 'objdump', adamc@1132: # unless we find 'file', for example because we are cross-compiling. adam@1459: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. adam@1459: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then adamc@1132: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' adamc@1132: lt_cv_file_magic_cmd='func_win32_libid' adamc@1132: else adam@1459: # Keep this pattern in sync with the one in func_win32_libid. adam@1459: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' adamc@1132: lt_cv_file_magic_cmd='$OBJDUMP -f' adamc@1132: fi adamc@1132: ;; adamc@1132: adam@1459: cegcc*) adamc@1132: # use the weaker test based on 'objdump'. See mingw*. adamc@1132: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' adamc@1132: lt_cv_file_magic_cmd='$OBJDUMP -f' adamc@1132: ;; adamc@1132: adamc@1132: darwin* | rhapsody*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: freebsd* | dragonfly*) adamc@1132: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then adamc@1132: case $host_cpu in adamc@1132: i*86 ) adamc@1132: # Not sure whether the presence of OpenBSD here was a mistake. adamc@1132: # Let's accept both of them until this is cleared up. adamc@1132: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' adamc@1132: lt_cv_file_magic_cmd=/usr/bin/file adamc@1132: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` adamc@1132: ;; adamc@1132: esac adamc@1132: else adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: gnu*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adam@1459: haiku*) adam@1459: lt_cv_deplibs_check_method=pass_all adam@1459: ;; adam@1459: adamc@1132: hpux10.20* | hpux11*) adamc@1132: lt_cv_file_magic_cmd=/usr/bin/file adamc@1132: case $host_cpu in adamc@1132: ia64*) adamc@1132: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' adamc@1132: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so adamc@1132: ;; adamc@1132: hppa*64*) adam@1459: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' adamc@1132: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl adamc@1132: ;; adamc@1132: *) adam@1459: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' adamc@1132: lt_cv_file_magic_test_file=/usr/lib/libc.sl adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: interix[3-9]*) adamc@1132: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here adamc@1132: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' adamc@1132: ;; adamc@1132: adamc@1132: irix5* | irix6* | nonstopux*) adamc@1132: case $LD in adamc@1132: *-32|*"-32 ") libmagic=32-bit;; adamc@1132: *-n32|*"-n32 ") libmagic=N32;; adamc@1132: *-64|*"-64 ") libmagic=64-bit;; adamc@1132: *) libmagic=never-match;; adamc@1132: esac adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adam@1599: # This must be glibc/ELF. adamc@1132: linux* | k*bsd*-gnu | kopensolaris*-gnu) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: netbsd* | netbsdelf*-gnu) adamc@1132: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then adamc@1132: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' adamc@1132: else adamc@1132: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: newos6*) adamc@1132: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' adamc@1132: lt_cv_file_magic_cmd=/usr/bin/file adamc@1132: lt_cv_file_magic_test_file=/usr/lib/libnls.so adamc@1132: ;; adamc@1132: adamc@1132: *nto* | *qnx*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: openbsd*) adamc@1132: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then adamc@1132: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' adamc@1132: else adamc@1132: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: osf3* | osf4* | osf5*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: rdos*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: solaris*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: adamc@1132: sysv4 | sysv4.3*) adamc@1132: case $host_vendor in adamc@1132: motorola) adamc@1132: 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]' adamc@1132: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` adamc@1132: ;; adamc@1132: ncr) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: sequent) adamc@1132: lt_cv_file_magic_cmd='/bin/file' adamc@1132: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' adamc@1132: ;; adamc@1132: sni) adamc@1132: lt_cv_file_magic_cmd='/bin/file' adamc@1132: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" adamc@1132: lt_cv_file_magic_test_file=/lib/libc.so adamc@1132: ;; adamc@1132: siemens) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: pc) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: tpf*) adamc@1132: lt_cv_deplibs_check_method=pass_all adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 adamc@1132: $as_echo "$lt_cv_deplibs_check_method" >&6; } adam@1459: adam@1459: file_magic_glob= adam@1459: want_nocaseglob=no adam@1459: if test "$build" = "$host"; then adam@1459: case $host_os in adam@1459: mingw* | pw32*) adam@1459: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then adam@1459: want_nocaseglob=yes adam@1459: else adam@1459: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` adam@1459: fi adam@1459: ;; adam@1459: esac adam@1459: fi adam@1459: adamc@1132: file_magic_cmd=$lt_cv_file_magic_cmd adamc@1132: deplibs_check_method=$lt_cv_deplibs_check_method adamc@1132: test -z "$deplibs_check_method" && deplibs_check_method=unknown adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adamc@1132: if test -n "$ac_tool_prefix"; then adam@1459: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. adam@1459: set dummy ${ac_tool_prefix}dlltool; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_DLLTOOL+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: if test -n "$DLLTOOL"; then adam@1459: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1459: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" adam@1459: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@1459: break 2 adam@1459: fi adam@1459: done adam@1459: done adam@1459: IFS=$as_save_IFS adam@1459: adam@1459: fi adam@1459: fi adam@1459: DLLTOOL=$ac_cv_prog_DLLTOOL adam@1459: if test -n "$DLLTOOL"; then adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 adam@1459: $as_echo "$DLLTOOL" >&6; } adam@1459: else adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1459: $as_echo "no" >&6; } adam@1459: fi adam@1459: adam@1459: adam@1459: fi adam@1459: if test -z "$ac_cv_prog_DLLTOOL"; then adam@1459: ac_ct_DLLTOOL=$DLLTOOL adam@1459: # Extract the first word of "dlltool", so it can be a program name with args. adam@1459: set dummy dlltool; ac_word=$2 adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@1459: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: if test -n "$ac_ct_DLLTOOL"; then adam@1459: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. adam@1459: else adam@1459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@1459: for as_dir in $PATH adam@1459: do adam@1459: IFS=$as_save_IFS adam@1459: test -z "$as_dir" && as_dir=. adam@1459: for ac_exec_ext in '' $ac_executable_extensions; do adam@1459: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1459: ac_cv_prog_ac_ct_DLLTOOL="dlltool" adam@1459: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@1459: break 2 adam@1459: fi adam@1459: done adam@1459: done adam@1459: IFS=$as_save_IFS adam@1459: adam@1459: fi adam@1459: fi adam@1459: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL adam@1459: if test -n "$ac_ct_DLLTOOL"; then adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 adam@1459: $as_echo "$ac_ct_DLLTOOL" >&6; } adam@1459: else adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1459: $as_echo "no" >&6; } adam@1459: fi adam@1459: adam@1459: if test "x$ac_ct_DLLTOOL" = x; then adam@1459: DLLTOOL="false" adam@1459: else adam@1459: case $cross_compiling:$ac_tool_warned in adam@1459: yes:) adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@1459: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@1459: ac_tool_warned=yes ;; adam@1459: esac adam@1459: DLLTOOL=$ac_ct_DLLTOOL adam@1459: fi adam@1459: else adam@1459: DLLTOOL="$ac_cv_prog_DLLTOOL" adam@1459: fi adam@1459: adam@1459: test -z "$DLLTOOL" && DLLTOOL=dlltool adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 adam@1459: $as_echo_n "checking how to associate runtime and link libraries... " >&6; } adam@1599: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: lt_cv_sharedlib_from_linklib_cmd='unknown' adam@1459: adam@1459: case $host_os in adam@1459: cygwin* | mingw* | pw32* | cegcc*) adam@1459: # two different shell functions defined in ltmain.sh adam@1459: # decide which to use based on capabilities of $DLLTOOL adam@1459: case `$DLLTOOL --help 2>&1` in adam@1459: *--identify-strict*) adam@1459: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib adam@1459: ;; adam@1459: *) adam@1459: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback adam@1459: ;; adam@1459: esac adam@1459: ;; adam@1459: *) adam@1459: # fallback: assume linklib IS sharedlib adam@1459: lt_cv_sharedlib_from_linklib_cmd="$ECHO" adam@1459: ;; adam@1459: esac adam@1459: adam@1459: fi adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 adam@1459: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } adam@1459: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd adam@1459: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: if test -n "$ac_tool_prefix"; then adam@1459: for ac_prog in ar adam@1459: do adam@1459: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. adam@1459: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@1459: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_AR+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: if test -n "$AR"; then adam@1459: ac_cv_prog_AR="$AR" # Let the user override the test. adam@1459: else adam@1459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@1459: for as_dir in $PATH adam@1459: do adam@1459: IFS=$as_save_IFS adam@1459: test -z "$as_dir" && as_dir=. adam@1459: for ac_exec_ext in '' $ac_executable_extensions; do adam@1459: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1459: ac_cv_prog_AR="$ac_tool_prefix$ac_prog" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: AR=$ac_cv_prog_AR adamc@1132: if test -n "$AR"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 adamc@1132: $as_echo "$AR" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adam@1459: test -n "$AR" && break adam@1459: done adam@1459: fi adam@1459: if test -z "$AR"; then adamc@1132: ac_ct_AR=$AR adam@1459: for ac_prog in ar adam@1459: do adam@1459: # Extract the first word of "$ac_prog", so it can be a program name with args. adam@1459: set dummy $ac_prog; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_AR+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_AR"; then adamc@1132: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1459: ac_cv_prog_ac_ct_AR="$ac_prog" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_AR=$ac_cv_prog_ac_ct_AR adamc@1132: if test -n "$ac_ct_AR"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 adamc@1132: $as_echo "$ac_ct_AR" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adam@1459: adam@1459: test -n "$ac_ct_AR" && break adam@1459: done adam@1459: adamc@1132: if test "x$ac_ct_AR" = x; then adamc@1132: AR="false" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: AR=$ac_ct_AR adamc@1132: fi adam@1459: fi adam@1459: adam@1459: : ${AR=ar} adam@1459: : ${AR_FLAGS=cru} adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 adam@1459: $as_echo_n "checking for archiver @FILE support... " >&6; } adam@1599: if ${lt_cv_ar_at_file+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: lt_cv_ar_at_file=no adam@1459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@1459: /* end confdefs.h. */ adam@1459: adam@1459: int adam@1459: main () adam@1459: { adam@1459: adam@1459: ; adam@1459: return 0; adam@1459: } adam@1459: _ACEOF adam@1459: if ac_fn_c_try_compile "$LINENO"; then : adam@1459: echo conftest.$ac_objext > conftest.lst adam@1459: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' adam@1459: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 adam@1459: (eval $lt_ar_try) 2>&5 adam@1459: ac_status=$? adam@1459: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@1459: test $ac_status = 0; } adam@1459: if test "$ac_status" -eq 0; then adam@1459: # Ensure the archiver fails upon bogus file names. adam@1459: rm -f conftest.$ac_objext libconftest.a adam@1459: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 adam@1459: (eval $lt_ar_try) 2>&5 adam@1459: ac_status=$? adam@1459: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@1459: test $ac_status = 0; } adam@1459: if test "$ac_status" -ne 0; then adam@1459: lt_cv_ar_at_file=@ adam@1459: fi adam@1459: fi adam@1459: rm -f conftest.* libconftest.a adam@1459: adam@1459: fi adam@1459: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@1459: adam@1459: fi adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 adam@1459: $as_echo "$lt_cv_ar_at_file" >&6; } adam@1459: adam@1459: if test "x$lt_cv_ar_at_file" = xno; then adam@1459: archiver_list_spec= adam@1459: else adam@1459: archiver_list_spec=$lt_cv_ar_at_file adam@1459: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}strip; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_STRIP+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$STRIP"; then adamc@1132: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_STRIP="${ac_tool_prefix}strip" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: STRIP=$ac_cv_prog_STRIP adamc@1132: if test -n "$STRIP"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 adamc@1132: $as_echo "$STRIP" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_STRIP"; then adamc@1132: ac_ct_STRIP=$STRIP adamc@1132: # Extract the first word of "strip", so it can be a program name with args. adamc@1132: set dummy strip; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_STRIP"; then adamc@1132: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_STRIP="strip" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP adamc@1132: if test -n "$ac_ct_STRIP"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 adamc@1132: $as_echo "$ac_ct_STRIP" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_STRIP" = x; then adamc@1132: STRIP=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: STRIP=$ac_ct_STRIP adamc@1132: fi adamc@1132: else adamc@1132: STRIP="$ac_cv_prog_STRIP" adamc@1132: fi adamc@1132: adamc@1132: test -z "$STRIP" && STRIP=: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_RANLIB+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$RANLIB"; then adamc@1132: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: RANLIB=$ac_cv_prog_RANLIB adamc@1132: if test -n "$RANLIB"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 adamc@1132: $as_echo "$RANLIB" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_RANLIB"; then adamc@1132: ac_ct_RANLIB=$RANLIB adamc@1132: # Extract the first word of "ranlib", so it can be a program name with args. adamc@1132: set dummy ranlib; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_RANLIB"; then adamc@1132: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_RANLIB="ranlib" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB adamc@1132: if test -n "$ac_ct_RANLIB"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 adamc@1132: $as_echo "$ac_ct_RANLIB" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_RANLIB" = x; then adamc@1132: RANLIB=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: RANLIB=$ac_ct_RANLIB adamc@1132: fi adamc@1132: else adamc@1132: RANLIB="$ac_cv_prog_RANLIB" adamc@1132: fi adamc@1132: adamc@1132: test -z "$RANLIB" && RANLIB=: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # Determine commands to create old-style static archives. adamc@1132: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' adamc@1132: old_postinstall_cmds='chmod 644 $oldlib' adamc@1132: old_postuninstall_cmds= adamc@1132: adamc@1132: if test -n "$RANLIB"; then adamc@1132: case $host_os in adamc@1132: openbsd*) adam@1599: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" adamc@1132: ;; adamc@1132: *) adam@1599: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" adamc@1132: ;; adamc@1132: esac adam@1599: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" adamc@1132: fi adamc@1132: adam@1459: case $host_os in adam@1459: darwin*) adam@1459: lock_old_archive_extraction=yes ;; adam@1459: *) adam@1459: lock_old_archive_extraction=no ;; adam@1459: esac adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # If no C compiler was specified, use CC. adamc@1132: LTCC=${LTCC-"$CC"} adamc@1132: adamc@1132: # If no C compiler flags were specified, use CFLAGS. adamc@1132: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} adamc@1132: adamc@1132: # Allow CC to be a program name with arguments. adamc@1132: compiler=$CC adamc@1132: adamc@1132: adamc@1132: # Check for command to grab the raw symbol name followed by C symbol from nm. adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 adamc@1132: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } adam@1599: if ${lt_cv_sys_global_symbol_pipe+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: adamc@1132: # These are sane defaults that work on at least a few old systems. adamc@1132: # [They come from Ultrix. What could be older than Ultrix?!! ;)] adamc@1132: adamc@1132: # Character class describing NM global symbol codes. adamc@1132: symcode='[BCDEGRST]' adamc@1132: adamc@1132: # Regexp to match symbols that can be accessed directly from C. adamc@1132: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' adamc@1132: adamc@1132: # Define system-specific variables. adamc@1132: case $host_os in adamc@1132: aix*) adamc@1132: symcode='[BCDT]' adamc@1132: ;; adamc@1132: cygwin* | mingw* | pw32* | cegcc*) adamc@1132: symcode='[ABCDGISTW]' adamc@1132: ;; adamc@1132: hpux*) adamc@1132: if test "$host_cpu" = ia64; then adamc@1132: symcode='[ABCDEGRST]' adamc@1132: fi adamc@1132: ;; adamc@1132: irix* | nonstopux*) adamc@1132: symcode='[BCDEGRST]' adamc@1132: ;; adamc@1132: osf*) adamc@1132: symcode='[BCDEGQRST]' adamc@1132: ;; adamc@1132: solaris*) adamc@1132: symcode='[BDRT]' adamc@1132: ;; adamc@1132: sco3.2v5*) adamc@1132: symcode='[DT]' adamc@1132: ;; adamc@1132: sysv4.2uw2*) adamc@1132: symcode='[DT]' adamc@1132: ;; adamc@1132: sysv5* | sco5v6* | unixware* | OpenUNIX*) adamc@1132: symcode='[ABDT]' adamc@1132: ;; adamc@1132: sysv4) adamc@1132: symcode='[DFNSTU]' adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: # If we're using GNU nm, then use its standard symbol codes. adamc@1132: case `$NM -V 2>&1` in adamc@1132: *GNU* | *'with BFD'*) adamc@1132: symcode='[ABCDGIRSTW]' ;; adamc@1132: esac adamc@1132: adamc@1132: # Transform an extracted symbol line into a proper C declaration. adamc@1132: # Some systems (esp. on ia64) link data and code symbols differently, adamc@1132: # so use this general approach. adamc@1132: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" adamc@1132: adamc@1132: # Transform an extracted symbol line into symbol name and symbol address adam@1459: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" adam@1459: 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'" adamc@1132: adamc@1132: # Handle CRLF in mingw tool chain adamc@1132: opt_cr= adamc@1132: case $build_os in adamc@1132: mingw*) adamc@1132: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: # Try without a prefix underscore, then with it. adamc@1132: for ac_symprfx in "" "_"; do adamc@1132: adamc@1132: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. adamc@1132: symxfrm="\\1 $ac_symprfx\\2 \\2" adamc@1132: adamc@1132: # Write the raw and C identifiers. adamc@1132: if test "$lt_cv_nm_interface" = "MS dumpbin"; then adamc@1132: # Fake it for dumpbin and say T for any non-static function adamc@1132: # and D for any global variable. adamc@1132: # Also find C++ and __fastcall symbols from MSVC++, adamc@1132: # which start with @ or ?. adamc@1132: lt_cv_sys_global_symbol_pipe="$AWK '"\ adamc@1132: " {last_section=section; section=\$ 3};"\ adam@1599: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ adamc@1132: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ adamc@1132: " \$ 0!~/External *\|/{next};"\ adamc@1132: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ adamc@1132: " {if(hide[section]) next};"\ adamc@1132: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ adamc@1132: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ adamc@1132: " s[1]~/^[@?]/{print s[1], s[1]; next};"\ adamc@1132: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ adamc@1132: " ' prfx=^$ac_symprfx" adamc@1132: else adamc@1132: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" adamc@1132: fi adam@1459: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" adamc@1132: adamc@1132: # Check to see that the pipe works correctly. adamc@1132: pipe_works=no adamc@1132: adamc@1132: rm -f conftest* adamc@1132: cat > conftest.$ac_ext <<_LT_EOF adamc@1132: #ifdef __cplusplus adamc@1132: extern "C" { adamc@1132: #endif adamc@1132: char nm_test_var; adamc@1132: void nm_test_func(void); adamc@1132: void nm_test_func(void){} adamc@1132: #ifdef __cplusplus adamc@1132: } adamc@1132: #endif adamc@1132: int main(){nm_test_var='a';nm_test_func();return(0);} adamc@1132: _LT_EOF adamc@1132: adamc@1132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adamc@1132: (eval $ac_compile) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; }; then adamc@1132: # Now try to grab the symbols. adamc@1132: nlist=conftest.nm adam@1459: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 adam@1459: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; } && test -s "$nlist"; then adamc@1132: # Try sorting and uniquifying the output. adamc@1132: if sort "$nlist" | uniq > "$nlist"T; then adamc@1132: mv -f "$nlist"T "$nlist" adamc@1132: else adamc@1132: rm -f "$nlist"T adamc@1132: fi adamc@1132: adamc@1132: # Make sure that we snagged all the symbols we need. adamc@1132: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then adamc@1132: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then adamc@1132: cat <<_LT_EOF > conftest.$ac_ext adam@1459: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ adam@1459: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) adam@1459: /* DATA imports from DLLs on WIN32 con't be const, because runtime adam@1459: relocations are performed -- see ld's documentation on pseudo-relocs. */ adam@1459: # define LT_DLSYM_CONST adam@1459: #elif defined(__osf__) adam@1459: /* This system does not cope well with relocations in const data. */ adam@1459: # define LT_DLSYM_CONST adam@1459: #else adam@1459: # define LT_DLSYM_CONST const adam@1459: #endif adam@1459: adamc@1132: #ifdef __cplusplus adamc@1132: extern "C" { adamc@1132: #endif adamc@1132: adamc@1132: _LT_EOF adamc@1132: # Now generate the symbol file. adamc@1132: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' adamc@1132: adamc@1132: cat <<_LT_EOF >> conftest.$ac_ext adamc@1132: adamc@1132: /* The mapping between symbol names and symbols. */ adam@1459: LT_DLSYM_CONST struct { adamc@1132: const char *name; adamc@1132: void *address; adamc@1132: } adamc@1132: lt__PROGRAM__LTX_preloaded_symbols[] = adamc@1132: { adamc@1132: { "@PROGRAM@", (void *) 0 }, adamc@1132: _LT_EOF adamc@1132: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext adamc@1132: cat <<\_LT_EOF >> conftest.$ac_ext adamc@1132: {0, (void *) 0} adamc@1132: }; adamc@1132: adamc@1132: /* This works around a problem in FreeBSD linker */ adamc@1132: #ifdef FREEBSD_WORKAROUND adamc@1132: static const void *lt_preloaded_setup() { adamc@1132: return lt__PROGRAM__LTX_preloaded_symbols; adamc@1132: } adamc@1132: #endif adamc@1132: adamc@1132: #ifdef __cplusplus adamc@1132: } adamc@1132: #endif adamc@1132: _LT_EOF adamc@1132: # Now try linking the two files. adamc@1132: mv conftest.$ac_objext conftstm.$ac_objext adam@1459: lt_globsym_save_LIBS=$LIBS adam@1459: lt_globsym_save_CFLAGS=$CFLAGS adamc@1132: LIBS="conftstm.$ac_objext" adamc@1132: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" adamc@1132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 adamc@1132: (eval $ac_link) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; } && test -s conftest${ac_exeext}; then adamc@1132: pipe_works=yes adamc@1132: fi adam@1459: LIBS=$lt_globsym_save_LIBS adam@1459: CFLAGS=$lt_globsym_save_CFLAGS adamc@1132: else adamc@1132: echo "cannot find nm_test_func in $nlist" >&5 adamc@1132: fi adamc@1132: else adamc@1132: echo "cannot find nm_test_var in $nlist" >&5 adamc@1132: fi adamc@1132: else adamc@1132: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 adamc@1132: fi adamc@1132: else adamc@1132: echo "$progname: failed program was:" >&5 adamc@1132: cat conftest.$ac_ext >&5 adamc@1132: fi adamc@1132: rm -rf conftest* conftst* adamc@1132: adamc@1132: # Do not use the global_symbol_pipe unless it works. adamc@1132: if test "$pipe_works" = yes; then adamc@1132: break adamc@1132: else adamc@1132: lt_cv_sys_global_symbol_pipe= adamc@1132: fi adamc@1132: done adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: if test -z "$lt_cv_sys_global_symbol_pipe"; then adamc@1132: lt_cv_sys_global_symbol_to_cdecl= adamc@1132: fi adamc@1132: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 adamc@1132: $as_echo "failed" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 adamc@1132: $as_echo "ok" >&6; } adamc@1132: fi adamc@1132: adam@1459: # Response file support. adam@1459: if test "$lt_cv_nm_interface" = "MS dumpbin"; then adam@1459: nm_file_list_spec='@' adam@1459: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then adam@1459: nm_file_list_spec='@' adam@1459: fi adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 adam@1459: $as_echo_n "checking for sysroot... " >&6; } adam@1459: adam@1459: # Check whether --with-sysroot was given. adam@1459: if test "${with_sysroot+set}" = set; then : adam@1459: withval=$with_sysroot; adam@1459: else adam@1459: with_sysroot=no adam@1459: fi adam@1459: adam@1459: adam@1459: lt_sysroot= adam@1459: case ${with_sysroot} in #( adam@1459: yes) adam@1459: if test "$GCC" = yes; then adam@1459: lt_sysroot=`$CC --print-sysroot 2>/dev/null` adam@1459: fi adam@1459: ;; #( adam@1459: /*) adam@1459: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` adam@1459: ;; #( adam@1459: no|'') adam@1459: ;; #( adam@1459: *) adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 adam@1459: $as_echo "${with_sysroot}" >&6; } adam@1459: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 adam@1459: ;; adam@1459: esac adam@1459: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 adam@1459: $as_echo "${lt_sysroot:-no}" >&6; } adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # Check whether --enable-libtool-lock was given. adamc@1132: if test "${enable_libtool_lock+set}" = set; then : adamc@1132: enableval=$enable_libtool_lock; adamc@1132: fi adamc@1132: adamc@1132: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes adamc@1132: adamc@1132: # Some flags need to be propagated to the compiler or linker for good adamc@1132: # libtool support. adamc@1132: case $host in adamc@1132: ia64-*-hpux*) adamc@1132: # Find out which ABI we are using. adamc@1132: echo 'int i;' > conftest.$ac_ext adamc@1132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adamc@1132: (eval $ac_compile) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; }; then adamc@1132: case `/usr/bin/file conftest.$ac_objext` in adamc@1132: *ELF-32*) adamc@1132: HPUX_IA64_MODE="32" adamc@1132: ;; adamc@1132: *ELF-64*) adamc@1132: HPUX_IA64_MODE="64" adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: rm -rf conftest* adamc@1132: ;; adamc@1132: *-*-irix6*) adamc@1132: # Find out which ABI we are using. adam@1459: echo '#line '$LINENO' "configure"' > conftest.$ac_ext adamc@1132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adamc@1132: (eval $ac_compile) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; }; then adamc@1132: if test "$lt_cv_prog_gnu_ld" = yes; then adamc@1132: case `/usr/bin/file conftest.$ac_objext` in adamc@1132: *32-bit*) adamc@1132: LD="${LD-ld} -melf32bsmip" adamc@1132: ;; adamc@1132: *N32*) adamc@1132: LD="${LD-ld} -melf32bmipn32" adamc@1132: ;; adamc@1132: *64-bit*) adamc@1132: LD="${LD-ld} -melf64bmip" adamc@1132: ;; adamc@1132: esac adamc@1132: else adamc@1132: case `/usr/bin/file conftest.$ac_objext` in adamc@1132: *32-bit*) adamc@1132: LD="${LD-ld} -32" adamc@1132: ;; adamc@1132: *N32*) adamc@1132: LD="${LD-ld} -n32" adamc@1132: ;; adamc@1132: *64-bit*) adamc@1132: LD="${LD-ld} -64" adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: fi adamc@1132: rm -rf conftest* adamc@1132: ;; adamc@1132: adamc@1132: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ adamc@1132: s390*-*linux*|s390*-*tpf*|sparc*-*linux*) adamc@1132: # Find out which ABI we are using. adamc@1132: echo 'int i;' > conftest.$ac_ext adamc@1132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adamc@1132: (eval $ac_compile) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; }; then adamc@1132: case `/usr/bin/file conftest.o` in adamc@1132: *32-bit*) adamc@1132: case $host in adamc@1132: x86_64-*kfreebsd*-gnu) adamc@1132: LD="${LD-ld} -m elf_i386_fbsd" adamc@1132: ;; adamc@1132: x86_64-*linux*) adamc@1132: LD="${LD-ld} -m elf_i386" adamc@1132: ;; adamc@1132: ppc64-*linux*|powerpc64-*linux*) adamc@1132: LD="${LD-ld} -m elf32ppclinux" adamc@1132: ;; adamc@1132: s390x-*linux*) adamc@1132: LD="${LD-ld} -m elf_s390" adamc@1132: ;; adamc@1132: sparc64-*linux*) adamc@1132: LD="${LD-ld} -m elf32_sparc" adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: *64-bit*) adamc@1132: case $host in adamc@1132: x86_64-*kfreebsd*-gnu) adamc@1132: LD="${LD-ld} -m elf_x86_64_fbsd" adamc@1132: ;; adamc@1132: x86_64-*linux*) adamc@1132: LD="${LD-ld} -m elf_x86_64" adamc@1132: ;; adamc@1132: ppc*-*linux*|powerpc*-*linux*) adamc@1132: LD="${LD-ld} -m elf64ppc" adamc@1132: ;; adamc@1132: s390*-*linux*|s390*-*tpf*) adamc@1132: LD="${LD-ld} -m elf64_s390" adamc@1132: ;; adamc@1132: sparc*-*linux*) adamc@1132: LD="${LD-ld} -m elf64_sparc" adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: rm -rf conftest* adamc@1132: ;; adamc@1132: adamc@1132: *-*-sco3.2v5*) adamc@1132: # On SCO OpenServer 5, we need -belf to get full-featured binaries. adamc@1132: SAVE_CFLAGS="$CFLAGS" adamc@1132: CFLAGS="$CFLAGS -belf" adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 adamc@1132: $as_echo_n "checking whether the C compiler needs -belf... " >&6; } adam@1599: if ${lt_cv_cc_needs_belf+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: ac_ext=c adamc@1132: ac_cpp='$CPP $CPPFLAGS' adamc@1132: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1132: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1132: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1132: adamc@1132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: lt_cv_cc_needs_belf=yes adamc@1132: else adamc@1132: lt_cv_cc_needs_belf=no adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adamc@1132: ac_ext=c adamc@1132: ac_cpp='$CPP $CPPFLAGS' adamc@1132: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1132: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1132: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 adamc@1132: $as_echo "$lt_cv_cc_needs_belf" >&6; } adamc@1132: if test x"$lt_cv_cc_needs_belf" != x"yes"; then adamc@1132: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf adamc@1132: CFLAGS="$SAVE_CFLAGS" adamc@1132: fi adamc@1132: ;; adam@1599: *-*solaris*) adamc@1132: # Find out which ABI we are using. adamc@1132: echo 'int i;' > conftest.$ac_ext adamc@1132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adamc@1132: (eval $ac_compile) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; }; then adamc@1132: case `/usr/bin/file conftest.o` in adamc@1132: *64-bit*) adamc@1132: case $lt_cv_prog_gnu_ld in adam@1599: yes*) adam@1599: case $host in adam@1599: i?86-*-solaris*) adam@1599: LD="${LD-ld} -m elf_x86_64" adam@1599: ;; adam@1599: sparc*-*-solaris*) adam@1599: LD="${LD-ld} -m elf64_sparc" adam@1599: ;; adam@1599: esac adam@1599: # GNU ld 2.21 introduced _sol2 emulations. Use them if available. adam@1599: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then adam@1599: LD="${LD-ld}_sol2" adam@1599: fi adam@1599: ;; adamc@1132: *) adamc@1132: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then adamc@1132: LD="${LD-ld} -64" adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: rm -rf conftest* adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: need_locks="$enable_libtool_lock" adamc@1132: adam@1459: if test -n "$ac_tool_prefix"; then adam@1459: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. adam@1459: set dummy ${ac_tool_prefix}mt; ac_word=$2 adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@1459: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: if test -n "$MANIFEST_TOOL"; then adam@1459: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. adam@1459: else adam@1459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@1459: for as_dir in $PATH adam@1459: do adam@1459: IFS=$as_save_IFS adam@1459: test -z "$as_dir" && as_dir=. adam@1459: for ac_exec_ext in '' $ac_executable_extensions; do adam@1459: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1459: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" adam@1459: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@1459: break 2 adam@1459: fi adam@1459: done adam@1459: done adam@1459: IFS=$as_save_IFS adam@1459: adam@1459: fi adam@1459: fi adam@1459: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL adam@1459: if test -n "$MANIFEST_TOOL"; then adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 adam@1459: $as_echo "$MANIFEST_TOOL" >&6; } adam@1459: else adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1459: $as_echo "no" >&6; } adam@1459: fi adam@1459: adam@1459: adam@1459: fi adam@1459: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then adam@1459: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL adam@1459: # Extract the first word of "mt", so it can be a program name with args. adam@1459: set dummy mt; ac_word=$2 adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@1459: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: if test -n "$ac_ct_MANIFEST_TOOL"; then adam@1459: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. adam@1459: else adam@1459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@1459: for as_dir in $PATH adam@1459: do adam@1459: IFS=$as_save_IFS adam@1459: test -z "$as_dir" && as_dir=. adam@1459: for ac_exec_ext in '' $ac_executable_extensions; do adam@1459: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1459: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" adam@1459: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@1459: break 2 adam@1459: fi adam@1459: done adam@1459: done adam@1459: IFS=$as_save_IFS adam@1459: adam@1459: fi adam@1459: fi adam@1459: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL adam@1459: if test -n "$ac_ct_MANIFEST_TOOL"; then adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 adam@1459: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } adam@1459: else adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1459: $as_echo "no" >&6; } adam@1459: fi adam@1459: adam@1459: if test "x$ac_ct_MANIFEST_TOOL" = x; then adam@1459: MANIFEST_TOOL=":" adam@1459: else adam@1459: case $cross_compiling:$ac_tool_warned in adam@1459: yes:) adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@1459: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@1459: ac_tool_warned=yes ;; adam@1459: esac adam@1459: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL adam@1459: fi adam@1459: else adam@1459: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" adam@1459: fi adam@1459: adam@1459: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 adam@1459: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } adam@1599: if ${lt_cv_path_mainfest_tool+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: lt_cv_path_mainfest_tool=no adam@1459: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 adam@1459: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out adam@1459: cat conftest.err >&5 adam@1459: if $GREP 'Manifest Tool' conftest.out > /dev/null; then adam@1459: lt_cv_path_mainfest_tool=yes adam@1459: fi adam@1459: rm -f conftest* adam@1459: fi adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 adam@1459: $as_echo "$lt_cv_path_mainfest_tool" >&6; } adam@1459: if test "x$lt_cv_path_mainfest_tool" != xyes; then adam@1459: MANIFEST_TOOL=: adam@1459: fi adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adamc@1132: adamc@1132: case $host_os in adamc@1132: rhapsody* | darwin*) adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_DSYMUTIL+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$DSYMUTIL"; then adamc@1132: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: DSYMUTIL=$ac_cv_prog_DSYMUTIL adamc@1132: if test -n "$DSYMUTIL"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 adamc@1132: $as_echo "$DSYMUTIL" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_DSYMUTIL"; then adamc@1132: ac_ct_DSYMUTIL=$DSYMUTIL adamc@1132: # Extract the first word of "dsymutil", so it can be a program name with args. adamc@1132: set dummy dsymutil; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_DSYMUTIL"; then adamc@1132: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL adamc@1132: if test -n "$ac_ct_DSYMUTIL"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 adamc@1132: $as_echo "$ac_ct_DSYMUTIL" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_DSYMUTIL" = x; then adamc@1132: DSYMUTIL=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: DSYMUTIL=$ac_ct_DSYMUTIL adamc@1132: fi adamc@1132: else adamc@1132: DSYMUTIL="$ac_cv_prog_DSYMUTIL" adamc@1132: fi adamc@1132: adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}nmedit; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_NMEDIT+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$NMEDIT"; then adamc@1132: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: NMEDIT=$ac_cv_prog_NMEDIT adamc@1132: if test -n "$NMEDIT"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 adamc@1132: $as_echo "$NMEDIT" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_NMEDIT"; then adamc@1132: ac_ct_NMEDIT=$NMEDIT adamc@1132: # Extract the first word of "nmedit", so it can be a program name with args. adamc@1132: set dummy nmedit; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_NMEDIT"; then adamc@1132: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_NMEDIT="nmedit" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT adamc@1132: if test -n "$ac_ct_NMEDIT"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 adamc@1132: $as_echo "$ac_ct_NMEDIT" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_NMEDIT" = x; then adamc@1132: NMEDIT=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: NMEDIT=$ac_ct_NMEDIT adamc@1132: fi adamc@1132: else adamc@1132: NMEDIT="$ac_cv_prog_NMEDIT" adamc@1132: fi adamc@1132: adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}lipo; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_LIPO+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$LIPO"; then adamc@1132: ac_cv_prog_LIPO="$LIPO" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_LIPO="${ac_tool_prefix}lipo" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: LIPO=$ac_cv_prog_LIPO adamc@1132: if test -n "$LIPO"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 adamc@1132: $as_echo "$LIPO" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_LIPO"; then adamc@1132: ac_ct_LIPO=$LIPO adamc@1132: # Extract the first word of "lipo", so it can be a program name with args. adamc@1132: set dummy lipo; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_LIPO+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_LIPO"; then adamc@1132: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_LIPO="lipo" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO adamc@1132: if test -n "$ac_ct_LIPO"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 adamc@1132: $as_echo "$ac_ct_LIPO" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_LIPO" = x; then adamc@1132: LIPO=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: LIPO=$ac_ct_LIPO adamc@1132: fi adamc@1132: else adamc@1132: LIPO="$ac_cv_prog_LIPO" adamc@1132: fi adamc@1132: adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}otool; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_OTOOL+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$OTOOL"; then adamc@1132: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_OTOOL="${ac_tool_prefix}otool" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: OTOOL=$ac_cv_prog_OTOOL adamc@1132: if test -n "$OTOOL"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 adamc@1132: $as_echo "$OTOOL" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_OTOOL"; then adamc@1132: ac_ct_OTOOL=$OTOOL adamc@1132: # Extract the first word of "otool", so it can be a program name with args. adamc@1132: set dummy otool; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_OTOOL"; then adamc@1132: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_OTOOL="otool" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL adamc@1132: if test -n "$ac_ct_OTOOL"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 adamc@1132: $as_echo "$ac_ct_OTOOL" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_OTOOL" = x; then adamc@1132: OTOOL=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: OTOOL=$ac_ct_OTOOL adamc@1132: fi adamc@1132: else adamc@1132: OTOOL="$ac_cv_prog_OTOOL" adamc@1132: fi adamc@1132: adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. adamc@1132: set dummy ${ac_tool_prefix}otool64; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_OTOOL64+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$OTOOL64"; then adamc@1132: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: OTOOL64=$ac_cv_prog_OTOOL64 adamc@1132: if test -n "$OTOOL64"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 adamc@1132: $as_echo "$OTOOL64" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: if test -z "$ac_cv_prog_OTOOL64"; then adamc@1132: ac_ct_OTOOL64=$OTOOL64 adamc@1132: # Extract the first word of "otool64", so it can be a program name with args. adamc@1132: set dummy otool64; ac_word=$2 adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1132: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test -n "$ac_ct_OTOOL64"; then adamc@1132: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. adamc@1132: else adamc@1132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1132: for as_dir in $PATH adamc@1132: do adamc@1132: IFS=$as_save_IFS adamc@1132: test -z "$as_dir" && as_dir=. adamc@1132: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1132: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1132: ac_cv_prog_ac_ct_OTOOL64="otool64" adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1132: break 2 adamc@1132: fi adamc@1132: done adamc@1132: done adamc@1132: IFS=$as_save_IFS adamc@1132: adamc@1132: fi adamc@1132: fi adamc@1132: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 adamc@1132: if test -n "$ac_ct_OTOOL64"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 adamc@1132: $as_echo "$ac_ct_OTOOL64" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: if test "x$ac_ct_OTOOL64" = x; then adamc@1132: OTOOL64=":" adamc@1132: else adamc@1132: case $cross_compiling:$ac_tool_warned in adamc@1132: yes:) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adamc@1132: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adamc@1132: ac_tool_warned=yes ;; adamc@1132: esac adamc@1132: OTOOL64=$ac_ct_OTOOL64 adamc@1132: fi adamc@1132: else adamc@1132: OTOOL64="$ac_cv_prog_OTOOL64" adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 adamc@1132: $as_echo_n "checking for -single_module linker flag... " >&6; } adam@1599: if ${lt_cv_apple_cc_single_mod+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_apple_cc_single_mod=no adamc@1132: if test -z "${LT_MULTI_MODULE}"; then adamc@1132: # By default we will add the -single_module flag. You can override adamc@1132: # by either setting the environment variable LT_MULTI_MODULE adamc@1132: # non-empty at configure time, or by adding -multi_module to the adamc@1132: # link flags. adamc@1132: rm -rf libconftest.dylib* adamc@1132: echo "int foo(void){return 1;}" > conftest.c adamc@1132: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ adamc@1132: -dynamiclib -Wl,-single_module conftest.c" >&5 adamc@1132: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ adamc@1132: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err adamc@1132: _lt_result=$? adam@1599: # If there is a non-empty error log, and "single_module" adam@1599: # appears in it, assume the flag caused a linker warning adam@1599: if test -s conftest.err && $GREP single_module conftest.err; then adam@1599: cat conftest.err >&5 adam@1599: # Otherwise, if the output was created with a 0 exit code from adam@1599: # the compiler, it worked. adam@1599: elif test -f libconftest.dylib && test $_lt_result -eq 0; then adamc@1132: lt_cv_apple_cc_single_mod=yes adamc@1132: else adamc@1132: cat conftest.err >&5 adamc@1132: fi adamc@1132: rm -rf libconftest.dylib* adamc@1132: rm -f conftest.* adamc@1132: fi adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 adamc@1132: $as_echo "$lt_cv_apple_cc_single_mod" >&6; } adam@1599: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 adamc@1132: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } adam@1599: if ${lt_cv_ld_exported_symbols_list+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_ld_exported_symbols_list=no adamc@1132: save_LDFLAGS=$LDFLAGS adamc@1132: echo "_main" > conftest.sym adamc@1132: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" adamc@1132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: lt_cv_ld_exported_symbols_list=yes adamc@1132: else adamc@1132: lt_cv_ld_exported_symbols_list=no adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adamc@1132: LDFLAGS="$save_LDFLAGS" adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 adamc@1132: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } adam@1599: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 adam@1459: $as_echo_n "checking for -force_load linker flag... " >&6; } adam@1599: if ${lt_cv_ld_force_load+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: lt_cv_ld_force_load=no adam@1459: cat > conftest.c << _LT_EOF adam@1459: int forced_loaded() { return 2;} adam@1459: _LT_EOF adam@1459: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 adam@1459: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 adam@1459: echo "$AR cru libconftest.a conftest.o" >&5 adam@1459: $AR cru libconftest.a conftest.o 2>&5 adam@1459: echo "$RANLIB libconftest.a" >&5 adam@1459: $RANLIB libconftest.a 2>&5 adam@1459: cat > conftest.c << _LT_EOF adam@1459: int main() { return 0;} adam@1459: _LT_EOF adam@1459: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 adam@1459: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err adam@1459: _lt_result=$? adam@1599: if test -s conftest.err && $GREP force_load conftest.err; then adam@1599: cat conftest.err >&5 adam@1599: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then adam@1459: lt_cv_ld_force_load=yes adam@1459: else adam@1459: cat conftest.err >&5 adam@1459: fi adam@1459: rm -f conftest.err libconftest.a conftest conftest.c adam@1459: rm -rf conftest.dSYM adam@1459: adam@1459: fi adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 adam@1459: $as_echo "$lt_cv_ld_force_load" >&6; } adamc@1132: case $host_os in adamc@1132: rhapsody* | darwin1.[012]) adamc@1132: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; adamc@1132: darwin1.*) adamc@1132: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; adamc@1132: darwin*) # darwin 5.x on adamc@1132: # if running on 10.5 or later, the deployment target defaults adamc@1132: # to the OS version, if on x86, and 10.4, the deployment adamc@1132: # target defaults to 10.4. Don't you love it? adamc@1132: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in adamc@1132: 10.0,*86*-darwin8*|10.0,*-darwin[91]*) adamc@1132: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; adamc@1132: 10.[012]*) adamc@1132: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; adamc@1132: 10.*) adamc@1132: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; adamc@1132: esac adamc@1132: ;; adamc@1132: esac adamc@1132: if test "$lt_cv_apple_cc_single_mod" = "yes"; then adamc@1132: _lt_dar_single_mod='$single_module' adamc@1132: fi adamc@1132: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then adamc@1132: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' adamc@1132: else adamc@1132: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' adamc@1132: fi adam@1459: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then adamc@1132: _lt_dsymutil='~$DSYMUTIL $lib || :' adamc@1132: else adamc@1132: _lt_dsymutil= adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: for ac_header in dlfcn.h adamc@1132: do : adamc@1132: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default adamc@1132: " adam@1599: if test "x$ac_cv_header_dlfcn_h" = xyes; then : adamc@1132: cat >>confdefs.h <<_ACEOF adamc@1132: #define HAVE_DLFCN_H 1 adamc@1132: _ACEOF adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: done adamc@1132: adamc@1132: adamc@1132: adam@1459: adam@1459: adamc@1132: # Set options adamc@1132: adamc@1132: adamc@1132: adamc@1132: enable_dlopen=no adamc@1132: adamc@1132: adamc@1132: enable_win32_dll=no adamc@1132: adamc@1132: adamc@1132: # Check whether --enable-shared was given. adamc@1132: if test "${enable_shared+set}" = set; then : adamc@1132: enableval=$enable_shared; p=${PACKAGE-default} adamc@1132: case $enableval in adamc@1132: yes) enable_shared=yes ;; adamc@1132: no) enable_shared=no ;; adamc@1132: *) adamc@1132: enable_shared=no adamc@1132: # Look at the argument we got. We use all the common list separators. adamc@1132: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," adamc@1132: for pkg in $enableval; do adamc@1132: IFS="$lt_save_ifs" adamc@1132: if test "X$pkg" = "X$p"; then adamc@1132: enable_shared=yes adamc@1132: fi adamc@1132: done adamc@1132: IFS="$lt_save_ifs" adamc@1132: ;; adamc@1132: esac adamc@1132: else adamc@1132: enable_shared=yes adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # Check whether --enable-static was given. adamc@1132: if test "${enable_static+set}" = set; then : adamc@1132: enableval=$enable_static; p=${PACKAGE-default} adamc@1132: case $enableval in adamc@1132: yes) enable_static=yes ;; adamc@1132: no) enable_static=no ;; adamc@1132: *) adamc@1132: enable_static=no adamc@1132: # Look at the argument we got. We use all the common list separators. adamc@1132: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," adamc@1132: for pkg in $enableval; do adamc@1132: IFS="$lt_save_ifs" adamc@1132: if test "X$pkg" = "X$p"; then adamc@1132: enable_static=yes adamc@1132: fi adamc@1132: done adamc@1132: IFS="$lt_save_ifs" adamc@1132: ;; adamc@1132: esac adamc@1132: else adamc@1132: enable_static=yes adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # Check whether --with-pic was given. adamc@1132: if test "${with_pic+set}" = set; then : adam@1599: withval=$with_pic; lt_p=${PACKAGE-default} adam@1599: case $withval in adam@1599: yes|no) pic_mode=$withval ;; adam@1599: *) adam@1599: pic_mode=default adam@1599: # Look at the argument we got. We use all the common list separators. adam@1599: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," adam@1599: for lt_pkg in $withval; do adam@1599: IFS="$lt_save_ifs" adam@1599: if test "X$lt_pkg" = "X$lt_p"; then adam@1599: pic_mode=yes adam@1599: fi adam@1599: done adam@1599: IFS="$lt_save_ifs" adam@1599: ;; adam@1599: esac adamc@1132: else adamc@1132: pic_mode=default adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: test -z "$pic_mode" && pic_mode=default adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # Check whether --enable-fast-install was given. adamc@1132: if test "${enable_fast_install+set}" = set; then : adamc@1132: enableval=$enable_fast_install; p=${PACKAGE-default} adamc@1132: case $enableval in adamc@1132: yes) enable_fast_install=yes ;; adamc@1132: no) enable_fast_install=no ;; adamc@1132: *) adamc@1132: enable_fast_install=no adamc@1132: # Look at the argument we got. We use all the common list separators. adamc@1132: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," adamc@1132: for pkg in $enableval; do adamc@1132: IFS="$lt_save_ifs" adamc@1132: if test "X$pkg" = "X$p"; then adamc@1132: enable_fast_install=yes adamc@1132: fi adamc@1132: done adamc@1132: IFS="$lt_save_ifs" adamc@1132: ;; adamc@1132: esac adamc@1132: else adamc@1132: enable_fast_install=yes adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # This can be used to rebuild libtool when needed adamc@1132: LIBTOOL_DEPS="$ltmain" adamc@1132: adamc@1132: # Always use our own libtool. adamc@1132: LIBTOOL='$(SHELL) $(top_builddir)/libtool' adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adam@1459: adam@1599: adam@1599: adam@1599: adam@1599: adamc@1132: test -z "$LN_S" && LN_S="ln -s" adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: if test -n "${ZSH_VERSION+set}" ; then adamc@1132: setopt NO_GLOB_SUBST adamc@1132: fi adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 adamc@1132: $as_echo_n "checking for objdir... " >&6; } adam@1599: if ${lt_cv_objdir+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: rm -f .libs 2>/dev/null adamc@1132: mkdir .libs 2>/dev/null adamc@1132: if test -d .libs; then adamc@1132: lt_cv_objdir=.libs adamc@1132: else adamc@1132: # MS-DOS does not allow filenames that begin with a dot. adamc@1132: lt_cv_objdir=_libs adamc@1132: fi adamc@1132: rmdir .libs 2>/dev/null adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 adamc@1132: $as_echo "$lt_cv_objdir" >&6; } adamc@1132: objdir=$lt_cv_objdir adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: cat >>confdefs.h <<_ACEOF adamc@1132: #define LT_OBJDIR "$lt_cv_objdir/" adamc@1132: _ACEOF adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: case $host_os in adamc@1132: aix3*) adamc@1132: # AIX sometimes has problems with the GCC collect2 program. For some adamc@1132: # reason, if we set the COLLECT_NAMES environment variable, the problems adamc@1132: # vanish in a puff of smoke. adamc@1132: if test "X${COLLECT_NAMES+set}" != Xset; then adamc@1132: COLLECT_NAMES= adamc@1132: export COLLECT_NAMES adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: # Global variables: adamc@1132: ofile=libtool adamc@1132: can_build_shared=yes adamc@1132: adamc@1132: # All known linkers require a `.a' archive for static linking (except MSVC, adamc@1132: # which needs '.lib'). adamc@1132: libext=a adamc@1132: adamc@1132: with_gnu_ld="$lt_cv_prog_gnu_ld" adamc@1132: adamc@1132: old_CC="$CC" adamc@1132: old_CFLAGS="$CFLAGS" adamc@1132: adamc@1132: # Set sane defaults for various variables adamc@1132: test -z "$CC" && CC=cc adamc@1132: test -z "$LTCC" && LTCC=$CC adamc@1132: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS adamc@1132: test -z "$LD" && LD=ld adamc@1132: test -z "$ac_objext" && ac_objext=o adamc@1132: adamc@1132: for cc_temp in $compiler""; do adamc@1132: case $cc_temp in adamc@1132: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; adamc@1132: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; adamc@1132: \-*) ;; adamc@1132: *) break;; adamc@1132: esac adamc@1132: done adam@1459: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` adamc@1132: adamc@1132: adamc@1132: # Only perform the check for file, if the check method requires it adamc@1132: test -z "$MAGIC_CMD" && MAGIC_CMD=file adamc@1132: case $deplibs_check_method in adamc@1132: file_magic*) adamc@1132: if test "$file_magic_cmd" = '$MAGIC_CMD'; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 adamc@1132: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } adam@1599: if ${lt_cv_path_MAGIC_CMD+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: case $MAGIC_CMD in adamc@1132: [\\/*] | ?:[\\/]*) adamc@1132: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. adamc@1132: ;; adamc@1132: *) adamc@1132: lt_save_MAGIC_CMD="$MAGIC_CMD" adamc@1132: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR adamc@1132: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" adamc@1132: for ac_dir in $ac_dummy; do adamc@1132: IFS="$lt_save_ifs" adamc@1132: test -z "$ac_dir" && ac_dir=. adamc@1132: if test -f $ac_dir/${ac_tool_prefix}file; then adamc@1132: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" adamc@1132: if test -n "$file_magic_test_file"; then adamc@1132: case $deplibs_check_method in adamc@1132: "file_magic "*) adamc@1132: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` adamc@1132: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" adamc@1132: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | adamc@1132: $EGREP "$file_magic_regex" > /dev/null; then adamc@1132: : adamc@1132: else adamc@1132: cat <<_LT_EOF 1>&2 adamc@1132: adamc@1132: *** Warning: the command libtool uses to detect shared libraries, adamc@1132: *** $file_magic_cmd, produces output that libtool cannot recognize. adamc@1132: *** The result is that libtool may fail to recognize shared libraries adamc@1132: *** as such. This will affect the creation of libtool libraries that adamc@1132: *** depend on shared libraries, but programs linked with such libtool adamc@1132: *** libraries will work regardless of this problem. Nevertheless, you adamc@1132: *** may want to report the problem to your system manager and/or to adamc@1132: *** bug-libtool@gnu.org adamc@1132: adamc@1132: _LT_EOF adamc@1132: fi ;; adamc@1132: esac adamc@1132: fi adamc@1132: break adamc@1132: fi adamc@1132: done adamc@1132: IFS="$lt_save_ifs" adamc@1132: MAGIC_CMD="$lt_save_MAGIC_CMD" adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: adamc@1132: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" adamc@1132: if test -n "$MAGIC_CMD"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 adamc@1132: $as_echo "$MAGIC_CMD" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: if test -z "$lt_cv_path_MAGIC_CMD"; then adamc@1132: if test -n "$ac_tool_prefix"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 adamc@1132: $as_echo_n "checking for file... " >&6; } adam@1599: if ${lt_cv_path_MAGIC_CMD+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: case $MAGIC_CMD in adamc@1132: [\\/*] | ?:[\\/]*) adamc@1132: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. adamc@1132: ;; adamc@1132: *) adamc@1132: lt_save_MAGIC_CMD="$MAGIC_CMD" adamc@1132: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR adamc@1132: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" adamc@1132: for ac_dir in $ac_dummy; do adamc@1132: IFS="$lt_save_ifs" adamc@1132: test -z "$ac_dir" && ac_dir=. adamc@1132: if test -f $ac_dir/file; then adamc@1132: lt_cv_path_MAGIC_CMD="$ac_dir/file" adamc@1132: if test -n "$file_magic_test_file"; then adamc@1132: case $deplibs_check_method in adamc@1132: "file_magic "*) adamc@1132: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` adamc@1132: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" adamc@1132: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | adamc@1132: $EGREP "$file_magic_regex" > /dev/null; then adamc@1132: : adamc@1132: else adamc@1132: cat <<_LT_EOF 1>&2 adamc@1132: adamc@1132: *** Warning: the command libtool uses to detect shared libraries, adamc@1132: *** $file_magic_cmd, produces output that libtool cannot recognize. adamc@1132: *** The result is that libtool may fail to recognize shared libraries adamc@1132: *** as such. This will affect the creation of libtool libraries that adamc@1132: *** depend on shared libraries, but programs linked with such libtool adamc@1132: *** libraries will work regardless of this problem. Nevertheless, you adamc@1132: *** may want to report the problem to your system manager and/or to adamc@1132: *** bug-libtool@gnu.org adamc@1132: adamc@1132: _LT_EOF adamc@1132: fi ;; adamc@1132: esac adamc@1132: fi adamc@1132: break adamc@1132: fi adamc@1132: done adamc@1132: IFS="$lt_save_ifs" adamc@1132: MAGIC_CMD="$lt_save_MAGIC_CMD" adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: adamc@1132: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" adamc@1132: if test -n "$MAGIC_CMD"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 adamc@1132: $as_echo "$MAGIC_CMD" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: else adamc@1132: MAGIC_CMD=: adamc@1132: fi adamc@1132: fi adamc@1132: adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: # Use C for the default configuration in the libtool script adamc@1132: adamc@1132: lt_save_CC="$CC" adamc@1132: ac_ext=c adamc@1132: ac_cpp='$CPP $CPPFLAGS' adamc@1132: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1132: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1132: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1132: adamc@1132: adamc@1132: # Source file extension for C test sources. adamc@1132: ac_ext=c adamc@1132: adamc@1132: # Object file extension for compiled C test sources. adamc@1132: objext=o adamc@1132: objext=$objext adamc@1132: adamc@1132: # Code to be used in simple compile tests adamc@1132: lt_simple_compile_test_code="int some_variable = 0;" adamc@1132: adamc@1132: # Code to be used in simple link tests adamc@1132: lt_simple_link_test_code='int main(){return(0);}' adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # If no C compiler was specified, use CC. adamc@1132: LTCC=${LTCC-"$CC"} adamc@1132: adamc@1132: # If no C compiler flags were specified, use CFLAGS. adamc@1132: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} adamc@1132: adamc@1132: # Allow CC to be a program name with arguments. adamc@1132: compiler=$CC adamc@1132: adamc@1132: # Save the default compiler, since it gets overwritten when the other adamc@1132: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. adamc@1132: compiler_DEFAULT=$CC adamc@1132: adamc@1132: # save warnings/boilerplate of simple test code adamc@1132: ac_outfile=conftest.$ac_objext adamc@1132: echo "$lt_simple_compile_test_code" >conftest.$ac_ext adamc@1132: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err adamc@1132: _lt_compiler_boilerplate=`cat conftest.err` adamc@1132: $RM conftest* adamc@1132: adamc@1132: ac_outfile=conftest.$ac_objext adamc@1132: echo "$lt_simple_link_test_code" >conftest.$ac_ext adamc@1132: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err adamc@1132: _lt_linker_boilerplate=`cat conftest.err` adamc@1132: $RM -r conftest* adamc@1132: adamc@1132: adamc@1141: ## CAVEAT EMPTOR: adamc@1141: ## There is no encapsulation within the following macros, do not change adamc@1141: ## the running order or otherwise move them around unless you know exactly adamc@1141: ## what you are doing... adamc@1132: if test -n "$compiler"; then adamc@1132: adamc@1132: lt_prog_compiler_no_builtin_flag= adamc@1132: adamc@1132: if test "$GCC" = yes; then adam@1459: case $cc_basename in adam@1459: nvcc*) adam@1459: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; adam@1459: *) adam@1459: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; adam@1459: esac adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 adamc@1132: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } adam@1599: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_prog_compiler_rtti_exceptions=no adamc@1132: ac_outfile=conftest.$ac_objext adamc@1132: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adamc@1132: lt_compiler_flag="-fno-rtti -fno-exceptions" adamc@1132: # Insert the option either (1) after the last *FLAGS variable, or adamc@1132: # (2) before a word containing "conftest.", or (3) at the end. adamc@1132: # Note that $ac_compile itself does not contain backslashes and begins adamc@1132: # with a dollar sign (not a hyphen), so the echo should work correctly. adamc@1132: # The option is referenced via a variable to avoid confusing sed. adamc@1132: lt_compile=`echo "$ac_compile" | $SED \ adamc@1132: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ adamc@1132: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ adamc@1132: -e 's:$: $lt_compiler_flag:'` adam@1459: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) adamc@1132: (eval "$lt_compile" 2>conftest.err) adamc@1132: ac_status=$? adamc@1132: cat conftest.err >&5 adam@1459: echo "$as_me:$LINENO: \$? = $ac_status" >&5 adamc@1132: if (exit $ac_status) && test -s "$ac_outfile"; then adamc@1132: # The compiler can only warn and ignore the option if not recognized adamc@1132: # So say no if there are warnings other than the usual output. adam@1459: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp adamc@1132: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 adamc@1132: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then adamc@1132: lt_cv_prog_compiler_rtti_exceptions=yes adamc@1132: fi adamc@1132: fi adamc@1132: $RM conftest* adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 adamc@1132: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } adamc@1132: adamc@1132: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then adamc@1132: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" adamc@1132: else adamc@1132: : adamc@1132: fi adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: lt_prog_compiler_wl= adamc@1132: lt_prog_compiler_pic= adamc@1132: lt_prog_compiler_static= adamc@1132: adamc@1132: adamc@1132: if test "$GCC" = yes; then adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_static='-static' adamc@1132: adamc@1132: case $host_os in adamc@1132: aix*) adamc@1132: # All AIX code is PIC. adamc@1132: if test "$host_cpu" = ia64; then adamc@1132: # AIX 5 now supports IA64 processor adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: amigaos*) adamc@1132: case $host_cpu in adamc@1132: powerpc) adamc@1132: # see comment about AmigaOS4 .so support adamc@1132: lt_prog_compiler_pic='-fPIC' adamc@1132: ;; adamc@1132: m68k) adamc@1132: # FIXME: we need at least 68020 code to build shared libraries, but adamc@1132: # adding the `-m68020' flag to GCC prevents building anything better, adamc@1132: # like `-m68040'. adamc@1132: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) adamc@1132: # PIC is the default for these OSes. adamc@1132: ;; adamc@1132: adamc@1132: mingw* | cygwin* | pw32* | os2* | cegcc*) adamc@1132: # This hack is so that the source file can tell whether it is being adamc@1132: # built for inclusion in a dll (and should export symbols for example). adamc@1132: # Although the cygwin gcc ignores -fPIC, still need this for old-style adamc@1132: # (--disable-auto-import) libraries adamc@1132: lt_prog_compiler_pic='-DDLL_EXPORT' adamc@1132: ;; adamc@1132: adamc@1132: darwin* | rhapsody*) adamc@1132: # PIC is the default on this platform adamc@1132: # Common symbols not allowed in MH_DYLIB files adamc@1132: lt_prog_compiler_pic='-fno-common' adamc@1132: ;; adamc@1132: adam@1459: haiku*) adam@1459: # PIC is the default for Haiku. adam@1459: # The "-static" flag exists, but is broken. adam@1459: lt_prog_compiler_static= adam@1459: ;; adam@1459: adamc@1132: hpux*) adamc@1132: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit adamc@1132: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag adamc@1132: # sets the default TLS model and affects inlining. adamc@1132: case $host_cpu in adamc@1132: hppa*64*) adamc@1132: # +Z the default adamc@1132: ;; adamc@1132: *) adamc@1132: lt_prog_compiler_pic='-fPIC' adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: interix[3-9]*) adamc@1132: # Interix 3.x gcc -fpic/-fPIC options generate broken code. adamc@1132: # Instead, we relocate shared libraries at runtime. adamc@1132: ;; adamc@1132: adamc@1132: msdosdjgpp*) adamc@1132: # Just because we use GCC doesn't mean we suddenly get shared libraries adamc@1132: # on systems that don't support them. adamc@1132: lt_prog_compiler_can_build_shared=no adamc@1132: enable_shared=no adamc@1132: ;; adamc@1132: adamc@1132: *nto* | *qnx*) adamc@1132: # QNX uses GNU C++, but need to define -shared option too, otherwise adamc@1132: # it will coredump. adamc@1132: lt_prog_compiler_pic='-fPIC -shared' adamc@1132: ;; adamc@1132: adamc@1132: sysv4*MP*) adamc@1132: if test -d /usr/nec; then adamc@1132: lt_prog_compiler_pic=-Kconform_pic adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: *) adamc@1132: lt_prog_compiler_pic='-fPIC' adamc@1132: ;; adamc@1132: esac adam@1459: adam@1459: case $cc_basename in adam@1459: nvcc*) # Cuda Compiler Driver 2.2 adam@1459: lt_prog_compiler_wl='-Xlinker ' adam@1599: if test -n "$lt_prog_compiler_pic"; then adam@1599: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" adam@1599: fi adam@1459: ;; adam@1459: esac adamc@1132: else adamc@1132: # PORTME Check for flag to pass linker flags through the system compiler. adamc@1132: case $host_os in adamc@1132: aix*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: if test "$host_cpu" = ia64; then adamc@1132: # AIX 5 now supports IA64 processor adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: else adamc@1132: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: mingw* | cygwin* | pw32* | os2* | cegcc*) adamc@1132: # This hack is so that the source file can tell whether it is being adamc@1132: # built for inclusion in a dll (and should export symbols for example). adamc@1132: lt_prog_compiler_pic='-DDLL_EXPORT' adamc@1132: ;; adamc@1132: adamc@1132: hpux9* | hpux10* | hpux11*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but adamc@1132: # not for PA HP-UX. adamc@1132: case $host_cpu in adamc@1132: hppa*64*|ia64*) adamc@1132: # +Z the default adamc@1132: ;; adamc@1132: *) adamc@1132: lt_prog_compiler_pic='+Z' adamc@1132: ;; adamc@1132: esac adamc@1132: # Is there a better lt_prog_compiler_static that works with the bundled CC? adamc@1132: lt_prog_compiler_static='${wl}-a ${wl}archive' adamc@1132: ;; adamc@1132: adamc@1132: irix5* | irix6* | nonstopux*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: # PIC (with -KPIC) is the default. adamc@1132: lt_prog_compiler_static='-non_shared' adamc@1132: ;; adamc@1132: adamc@1132: linux* | k*bsd*-gnu | kopensolaris*-gnu) adamc@1132: case $cc_basename in adamc@1132: # old Intel for x86_64 which still supported -KPIC. adamc@1132: ecc*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_pic='-KPIC' adamc@1132: lt_prog_compiler_static='-static' adamc@1132: ;; adamc@1132: # icc used to be incompatible with GCC. adamc@1132: # ICC 10 doesn't accept -KPIC any more. adamc@1132: icc* | ifort*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_pic='-fPIC' adamc@1132: lt_prog_compiler_static='-static' adamc@1132: ;; adamc@1132: # Lahey Fortran 8.1. adamc@1132: lf95*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_pic='--shared' adamc@1132: lt_prog_compiler_static='--static' adamc@1132: ;; adam@1459: nagfor*) adam@1459: # NAG Fortran compiler adam@1459: lt_prog_compiler_wl='-Wl,-Wl,,' adam@1459: lt_prog_compiler_pic='-PIC' adam@1459: lt_prog_compiler_static='-Bstatic' adam@1459: ;; adam@1459: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) adamc@1132: # Portland Group compilers (*not* the Pentium gcc compiler, adamc@1132: # which looks to be a dead project) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_pic='-fpic' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: ;; adamc@1132: ccc*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: # All Alpha code is PIC. adamc@1132: lt_prog_compiler_static='-non_shared' adamc@1132: ;; adam@1459: xl* | bgxl* | bgf* | mpixl*) adam@1459: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_pic='-qpic' adamc@1132: lt_prog_compiler_static='-qstaticlink' adamc@1132: ;; adamc@1132: *) adamc@1132: case `$CC -V 2>&1 | sed 5q` in adam@1599: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) adam@1459: # Sun Fortran 8.3 passes all unrecognized flags to the linker adam@1459: lt_prog_compiler_pic='-KPIC' adam@1459: lt_prog_compiler_static='-Bstatic' adam@1459: lt_prog_compiler_wl='' adam@1459: ;; adam@1599: *Sun\ F* | *Sun*Fortran*) adam@1599: lt_prog_compiler_pic='-KPIC' adam@1599: lt_prog_compiler_static='-Bstatic' adam@1599: lt_prog_compiler_wl='-Qoption ld ' adam@1599: ;; adamc@1132: *Sun\ C*) adamc@1132: # Sun C 5.9 adamc@1132: lt_prog_compiler_pic='-KPIC' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: ;; adam@1599: *Intel*\ [CF]*Compiler*) adam@1599: lt_prog_compiler_wl='-Wl,' adam@1599: lt_prog_compiler_pic='-fPIC' adam@1599: lt_prog_compiler_static='-static' adam@1599: ;; adam@1599: *Portland\ Group*) adam@1599: lt_prog_compiler_wl='-Wl,' adam@1599: lt_prog_compiler_pic='-fpic' adam@1599: lt_prog_compiler_static='-Bstatic' adam@1599: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: newsos6) adamc@1132: lt_prog_compiler_pic='-KPIC' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: ;; adamc@1132: adamc@1132: *nto* | *qnx*) adamc@1132: # QNX uses GNU C++, but need to define -shared option too, otherwise adamc@1132: # it will coredump. adamc@1132: lt_prog_compiler_pic='-fPIC -shared' adamc@1132: ;; adamc@1132: adamc@1132: osf3* | osf4* | osf5*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: # All OSF/1 code is PIC. adamc@1132: lt_prog_compiler_static='-non_shared' adamc@1132: ;; adamc@1132: adamc@1132: rdos*) adamc@1132: lt_prog_compiler_static='-non_shared' adamc@1132: ;; adamc@1132: adamc@1132: solaris*) adamc@1132: lt_prog_compiler_pic='-KPIC' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: case $cc_basename in adam@1459: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) adamc@1132: lt_prog_compiler_wl='-Qoption ld ';; adamc@1132: *) adamc@1132: lt_prog_compiler_wl='-Wl,';; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: sunos4*) adamc@1132: lt_prog_compiler_wl='-Qoption ld ' adamc@1132: lt_prog_compiler_pic='-PIC' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: ;; adamc@1132: adamc@1132: sysv4 | sysv4.2uw2* | sysv4.3*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_pic='-KPIC' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: ;; adamc@1132: adamc@1132: sysv4*MP*) adamc@1132: if test -d /usr/nec ;then adamc@1132: lt_prog_compiler_pic='-Kconform_pic' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_pic='-KPIC' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: ;; adamc@1132: adamc@1132: unicos*) adamc@1132: lt_prog_compiler_wl='-Wl,' adamc@1132: lt_prog_compiler_can_build_shared=no adamc@1132: ;; adamc@1132: adamc@1132: uts4*) adamc@1132: lt_prog_compiler_pic='-pic' adamc@1132: lt_prog_compiler_static='-Bstatic' adamc@1132: ;; adamc@1132: adamc@1132: *) adamc@1132: lt_prog_compiler_can_build_shared=no adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: adamc@1132: case $host_os in adamc@1132: # For platforms which do not support PIC, -DPIC is meaningless: adamc@1132: *djgpp*) adamc@1132: lt_prog_compiler_pic= adamc@1132: ;; adamc@1132: *) adamc@1132: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" adamc@1132: ;; adamc@1132: esac adam@1459: adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 adam@1459: $as_echo_n "checking for $compiler option to produce PIC... " >&6; } adam@1599: if ${lt_cv_prog_compiler_pic+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic adam@1459: fi adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 adam@1459: $as_echo "$lt_cv_prog_compiler_pic" >&6; } adam@1459: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic adamc@1132: adamc@1132: # adamc@1132: # Check to make sure the PIC flag actually works. adamc@1132: # adamc@1132: if test -n "$lt_prog_compiler_pic"; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 adamc@1132: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } adam@1599: if ${lt_cv_prog_compiler_pic_works+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_prog_compiler_pic_works=no adamc@1132: ac_outfile=conftest.$ac_objext adamc@1132: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adamc@1132: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" adamc@1132: # Insert the option either (1) after the last *FLAGS variable, or adamc@1132: # (2) before a word containing "conftest.", or (3) at the end. adamc@1132: # Note that $ac_compile itself does not contain backslashes and begins adamc@1132: # with a dollar sign (not a hyphen), so the echo should work correctly. adamc@1132: # The option is referenced via a variable to avoid confusing sed. adamc@1132: lt_compile=`echo "$ac_compile" | $SED \ adamc@1132: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ adamc@1132: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ adamc@1132: -e 's:$: $lt_compiler_flag:'` adam@1459: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) adamc@1132: (eval "$lt_compile" 2>conftest.err) adamc@1132: ac_status=$? adamc@1132: cat conftest.err >&5 adam@1459: echo "$as_me:$LINENO: \$? = $ac_status" >&5 adamc@1132: if (exit $ac_status) && test -s "$ac_outfile"; then adamc@1132: # The compiler can only warn and ignore the option if not recognized adamc@1132: # So say no if there are warnings other than the usual output. adam@1459: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp adamc@1132: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 adamc@1132: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then adamc@1132: lt_cv_prog_compiler_pic_works=yes adamc@1132: fi adamc@1132: fi adamc@1132: $RM conftest* adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 adamc@1132: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } adamc@1132: adamc@1132: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then adamc@1132: case $lt_prog_compiler_pic in adamc@1132: "" | " "*) ;; adamc@1132: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; adamc@1132: esac adamc@1132: else adamc@1132: lt_prog_compiler_pic= adamc@1132: lt_prog_compiler_can_build_shared=no adamc@1132: fi adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adamc@1132: # adamc@1132: # Check to make sure the static flag actually works. adamc@1132: # adamc@1132: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 adamc@1132: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } adam@1599: if ${lt_cv_prog_compiler_static_works+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_prog_compiler_static_works=no adamc@1132: save_LDFLAGS="$LDFLAGS" adamc@1132: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" adamc@1132: echo "$lt_simple_link_test_code" > conftest.$ac_ext adamc@1132: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then adamc@1132: # The linker can only warn and ignore the option if not recognized adamc@1132: # So say no if there are warnings adamc@1132: if test -s conftest.err; then adamc@1132: # Append any errors to the config.log. adamc@1132: cat conftest.err 1>&5 adam@1459: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp adamc@1132: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 adamc@1132: if diff conftest.exp conftest.er2 >/dev/null; then adamc@1132: lt_cv_prog_compiler_static_works=yes adamc@1132: fi adamc@1132: else adamc@1132: lt_cv_prog_compiler_static_works=yes adamc@1132: fi adamc@1132: fi adamc@1132: $RM -r conftest* adamc@1132: LDFLAGS="$save_LDFLAGS" adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 adamc@1132: $as_echo "$lt_cv_prog_compiler_static_works" >&6; } adamc@1132: adamc@1132: if test x"$lt_cv_prog_compiler_static_works" = xyes; then adamc@1132: : adamc@1132: else adamc@1132: lt_prog_compiler_static= adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 adamc@1132: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } adam@1599: if ${lt_cv_prog_compiler_c_o+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_prog_compiler_c_o=no adamc@1132: $RM -r conftest 2>/dev/null adamc@1132: mkdir conftest adamc@1132: cd conftest adamc@1132: mkdir out adamc@1132: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adamc@1132: adamc@1132: lt_compiler_flag="-o out/conftest2.$ac_objext" adamc@1132: # Insert the option either (1) after the last *FLAGS variable, or adamc@1132: # (2) before a word containing "conftest.", or (3) at the end. adamc@1132: # Note that $ac_compile itself does not contain backslashes and begins adamc@1132: # with a dollar sign (not a hyphen), so the echo should work correctly. adamc@1132: lt_compile=`echo "$ac_compile" | $SED \ adamc@1132: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ adamc@1132: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ adamc@1132: -e 's:$: $lt_compiler_flag:'` adam@1459: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) adamc@1132: (eval "$lt_compile" 2>out/conftest.err) adamc@1132: ac_status=$? adamc@1132: cat out/conftest.err >&5 adam@1459: echo "$as_me:$LINENO: \$? = $ac_status" >&5 adamc@1132: if (exit $ac_status) && test -s out/conftest2.$ac_objext adamc@1132: then adamc@1132: # The compiler can only warn and ignore the option if not recognized adamc@1132: # So say no if there are warnings adam@1459: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp adamc@1132: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 adamc@1132: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then adamc@1132: lt_cv_prog_compiler_c_o=yes adamc@1132: fi adamc@1132: fi adamc@1132: chmod u+w . 2>&5 adamc@1132: $RM conftest* adamc@1132: # SGI C++ compiler will create directory out/ii_files/ for adamc@1132: # template instantiation adamc@1132: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files adamc@1132: $RM out/* && rmdir out adamc@1132: cd .. adamc@1132: $RM -r conftest adamc@1132: $RM conftest* adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 adamc@1132: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 adamc@1132: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } adam@1599: if ${lt_cv_prog_compiler_c_o+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: lt_cv_prog_compiler_c_o=no adamc@1132: $RM -r conftest 2>/dev/null adamc@1132: mkdir conftest adamc@1132: cd conftest adamc@1132: mkdir out adamc@1132: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adamc@1132: adamc@1132: lt_compiler_flag="-o out/conftest2.$ac_objext" adamc@1132: # Insert the option either (1) after the last *FLAGS variable, or adamc@1132: # (2) before a word containing "conftest.", or (3) at the end. adamc@1132: # Note that $ac_compile itself does not contain backslashes and begins adamc@1132: # with a dollar sign (not a hyphen), so the echo should work correctly. adamc@1132: lt_compile=`echo "$ac_compile" | $SED \ adamc@1132: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ adamc@1132: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ adamc@1132: -e 's:$: $lt_compiler_flag:'` adam@1459: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) adamc@1132: (eval "$lt_compile" 2>out/conftest.err) adamc@1132: ac_status=$? adamc@1132: cat out/conftest.err >&5 adam@1459: echo "$as_me:$LINENO: \$? = $ac_status" >&5 adamc@1132: if (exit $ac_status) && test -s out/conftest2.$ac_objext adamc@1132: then adamc@1132: # The compiler can only warn and ignore the option if not recognized adamc@1132: # So say no if there are warnings adam@1459: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp adamc@1132: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 adamc@1132: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then adamc@1132: lt_cv_prog_compiler_c_o=yes adamc@1132: fi adamc@1132: fi adamc@1132: chmod u+w . 2>&5 adamc@1132: $RM conftest* adamc@1132: # SGI C++ compiler will create directory out/ii_files/ for adamc@1132: # template instantiation adamc@1132: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files adamc@1132: $RM out/* && rmdir out adamc@1132: cd .. adamc@1132: $RM -r conftest adamc@1132: $RM conftest* adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 adamc@1132: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: hard_links="nottested" adamc@1132: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then adamc@1132: # do not overwrite the value of need_locks provided by the user adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 adamc@1132: $as_echo_n "checking if we can lock with hard links... " >&6; } adamc@1132: hard_links=yes adamc@1132: $RM conftest* adamc@1132: ln conftest.a conftest.b 2>/dev/null && hard_links=no adamc@1132: touch conftest.a adamc@1132: ln conftest.a conftest.b 2>&5 || hard_links=no adamc@1132: ln conftest.a conftest.b 2>/dev/null && hard_links=no adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 adamc@1132: $as_echo "$hard_links" >&6; } adamc@1132: if test "$hard_links" = no; then adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 adamc@1132: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} adamc@1132: need_locks=warn adamc@1132: fi adamc@1132: else adamc@1132: need_locks=no adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 adamc@1132: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } adamc@1132: adamc@1132: runpath_var= adamc@1132: allow_undefined_flag= adamc@1132: always_export_symbols=no adamc@1132: archive_cmds= adamc@1132: archive_expsym_cmds= adamc@1132: compiler_needs_object=no adamc@1132: enable_shared_with_static_runtimes=no adamc@1132: export_dynamic_flag_spec= adamc@1132: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' adamc@1132: hardcode_automatic=no adamc@1132: hardcode_direct=no adamc@1132: hardcode_direct_absolute=no adamc@1132: hardcode_libdir_flag_spec= adamc@1132: hardcode_libdir_separator= adamc@1132: hardcode_minus_L=no adamc@1132: hardcode_shlibpath_var=unsupported adamc@1132: inherit_rpath=no adamc@1132: link_all_deplibs=unknown adamc@1132: module_cmds= adamc@1132: module_expsym_cmds= adamc@1132: old_archive_from_new_cmds= adamc@1132: old_archive_from_expsyms_cmds= adamc@1132: thread_safe_flag_spec= adamc@1132: whole_archive_flag_spec= adamc@1132: # include_expsyms should be a list of space-separated symbols to be *always* adamc@1132: # included in the symbol list adamc@1132: include_expsyms= adamc@1132: # exclude_expsyms can be an extended regexp of symbols to exclude adamc@1132: # it will be wrapped by ` (' and `)$', so one must not match beginning or adamc@1132: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', adamc@1132: # as well as any symbol that contains `d'. adamc@1132: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' adamc@1132: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out adamc@1132: # platforms (ab)use it in PIC code, but their linkers get confused if adamc@1132: # the symbol is explicitly referenced. Since portable code cannot adamc@1132: # rely on this symbol name, it's probably fine to never include it in adamc@1132: # preloaded symbol tables. adamc@1132: # Exclude shared library initialization/finalization symbols. adamc@1132: extract_expsyms_cmds= adamc@1132: adamc@1132: case $host_os in adamc@1132: cygwin* | mingw* | pw32* | cegcc*) adamc@1132: # FIXME: the MSVC++ port hasn't been tested in a loooong time adamc@1132: # When not using gcc, we currently assume that we are using adamc@1132: # Microsoft Visual C++. adamc@1132: if test "$GCC" != yes; then adamc@1132: with_gnu_ld=no adamc@1132: fi adamc@1132: ;; adamc@1132: interix*) adamc@1132: # we just hope/assume this is gcc and not c89 (= MSVC++) adamc@1132: with_gnu_ld=yes adamc@1132: ;; adamc@1132: openbsd*) adamc@1132: with_gnu_ld=no adamc@1132: ;; adam@1459: linux* | k*bsd*-gnu | gnu*) adamc@1132: link_all_deplibs=no adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: ld_shlibs=yes adam@1459: adam@1459: # On some targets, GNU ld is compatible enough with the native linker adam@1459: # that we're better off using the native interface for both. adam@1459: lt_use_gnu_ld_interface=no adamc@1132: if test "$with_gnu_ld" = yes; then adam@1459: case $host_os in adam@1459: aix*) adam@1459: # The AIX port of GNU ld has always aspired to compatibility adam@1459: # with the native linker. However, as the warning in the GNU ld adam@1459: # block says, versions before 2.19.5* couldn't really create working adam@1459: # shared libraries, regardless of the interface used. adam@1459: case `$LD -v 2>&1` in adam@1459: *\ \(GNU\ Binutils\)\ 2.19.5*) ;; adam@1459: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; adam@1459: *\ \(GNU\ Binutils\)\ [3-9]*) ;; adam@1459: *) adam@1459: lt_use_gnu_ld_interface=yes adam@1459: ;; adam@1459: esac adam@1459: ;; adam@1459: *) adam@1459: lt_use_gnu_ld_interface=yes adam@1459: ;; adam@1459: esac adam@1459: fi adam@1459: adam@1459: if test "$lt_use_gnu_ld_interface" = yes; then adamc@1132: # If archive_cmds runs LD, not CC, wlarc should be empty adamc@1132: wlarc='${wl}' adamc@1132: adamc@1132: # Set some defaults for GNU ld with shared library support. These adamc@1132: # are reset later if shared libraries are not supported. Putting them adamc@1132: # here allows them to be overridden if necessary. adamc@1132: runpath_var=LD_RUN_PATH adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adamc@1132: export_dynamic_flag_spec='${wl}--export-dynamic' adamc@1132: # ancient GNU ld didn't support --whole-archive et. al. adamc@1132: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then adamc@1132: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' adamc@1132: else adamc@1132: whole_archive_flag_spec= adamc@1132: fi adamc@1132: supports_anon_versioning=no adamc@1132: case `$LD -v 2>&1` in adamc@1132: *GNU\ gold*) supports_anon_versioning=yes ;; adamc@1132: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 adamc@1132: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... adamc@1132: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... adamc@1132: *\ 2.11.*) ;; # other 2.11 versions adamc@1132: *) supports_anon_versioning=yes ;; adamc@1132: esac adamc@1132: adamc@1132: # See if GNU ld supports shared libraries. adamc@1132: case $host_os in adamc@1132: aix[3-9]*) adamc@1132: # On AIX/PPC, the GNU linker is very broken adamc@1132: if test "$host_cpu" != ia64; then adamc@1132: ld_shlibs=no adamc@1132: cat <<_LT_EOF 1>&2 adamc@1132: adam@1459: *** Warning: the GNU linker, at least up to release 2.19, is reported adamc@1132: *** to be unable to reliably create shared libraries on AIX. adamc@1132: *** Therefore, libtool is disabling shared libraries support. If you adam@1459: *** really care for shared libraries, you may want to install binutils adam@1459: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. adam@1459: *** You will then need to restart the configuration process. adamc@1132: adamc@1132: _LT_EOF adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: amigaos*) adamc@1132: case $host_cpu in adamc@1132: powerpc) adamc@1132: # see comment about AmigaOS4 .so support adamc@1132: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adamc@1132: archive_expsym_cmds='' adamc@1132: ;; adamc@1132: m68k) adamc@1132: 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)' adamc@1132: hardcode_libdir_flag_spec='-L$libdir' adamc@1132: hardcode_minus_L=yes adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: beos*) adamc@1132: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then adamc@1132: allow_undefined_flag=unsupported adamc@1132: # Joseph Beckenbach says some releases of gcc adamc@1132: # support --undefined. This deserves some investigation. FIXME adamc@1132: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adamc@1132: else adamc@1132: ld_shlibs=no adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: cygwin* | mingw* | pw32* | cegcc*) adamc@1132: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, adamc@1132: # as there is no search path for DLLs. adamc@1132: hardcode_libdir_flag_spec='-L$libdir' adam@1459: export_dynamic_flag_spec='${wl}--export-all-symbols' adamc@1132: allow_undefined_flag=unsupported adamc@1132: always_export_symbols=no adamc@1132: enable_shared_with_static_runtimes=yes adam@1459: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' adam@1459: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' adamc@1132: adamc@1132: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then adamc@1132: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' adamc@1132: # If the export-symbols file already is a .def file (1st line adamc@1132: # is EXPORTS), use it as is; otherwise, prepend... adamc@1132: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then adamc@1132: cp $export_symbols $output_objdir/$soname.def; adamc@1132: else adamc@1132: echo EXPORTS > $output_objdir/$soname.def; adamc@1132: cat $export_symbols >> $output_objdir/$soname.def; adamc@1132: fi~ adamc@1132: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' adamc@1132: else adamc@1132: ld_shlibs=no adamc@1132: fi adamc@1132: ;; adamc@1132: adam@1459: haiku*) adam@1459: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@1459: link_all_deplibs=yes adam@1459: ;; adam@1459: adamc@1132: interix[3-9]*) adamc@1132: hardcode_direct=no adamc@1132: hardcode_shlibpath_var=no adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' adamc@1132: export_dynamic_flag_spec='${wl}-E' adamc@1132: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. adamc@1132: # Instead, shared libraries are loaded at an image base (0x10000000 by adamc@1132: # default) and relocated if they conflict, which is a slow very memory adamc@1132: # consuming and fragmenting process. To avoid this, we pick a random, adamc@1132: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link adamc@1132: # time. Moving up from 0x10000000 also allows more sbrk(2) space. adamc@1132: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' adamc@1132: 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' adamc@1132: ;; adamc@1132: adamc@1132: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) adamc@1132: tmp_diet=no adamc@1132: if test "$host_os" = linux-dietlibc; then adamc@1132: case $cc_basename in adamc@1132: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) adamc@1132: esac adamc@1132: fi adamc@1132: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ adamc@1132: && test "$tmp_diet" = no adamc@1132: then adam@1459: tmp_addflag=' $pic_flag' adamc@1132: tmp_sharedflag='-shared' adamc@1132: case $cc_basename,$host_cpu in adamc@1132: pgcc*) # Portland Group C compiler adam@1459: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' adamc@1132: tmp_addflag=' $pic_flag' adamc@1132: ;; adam@1459: pgf77* | pgf90* | pgf95* | pgfortran*) adam@1459: # Portland Group f77 and f90 compilers adam@1459: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' adamc@1132: tmp_addflag=' $pic_flag -Mnomain' ;; adamc@1132: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 adamc@1132: tmp_addflag=' -i_dynamic' ;; adamc@1132: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 adamc@1132: tmp_addflag=' -i_dynamic -nofor_main' ;; adamc@1132: ifc* | ifort*) # Intel Fortran compiler adamc@1132: tmp_addflag=' -nofor_main' ;; adamc@1132: lf95*) # Lahey Fortran 8.1 adamc@1132: whole_archive_flag_spec= adamc@1132: tmp_sharedflag='--shared' ;; adam@1459: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) adamc@1132: tmp_sharedflag='-qmkshrobj' adamc@1132: tmp_addflag= ;; adam@1459: nvcc*) # Cuda Compiler Driver 2.2 adam@1459: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' adam@1459: compiler_needs_object=yes adam@1459: ;; adamc@1132: esac adamc@1132: case `$CC -V 2>&1 | sed 5q` in adamc@1132: *Sun\ C*) # Sun C 5.9 adam@1459: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' adamc@1132: compiler_needs_object=yes adamc@1132: tmp_sharedflag='-G' ;; adamc@1132: *Sun\ F*) # Sun Fortran 8.3 adamc@1132: tmp_sharedflag='-G' ;; adamc@1132: esac adamc@1132: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adamc@1132: adamc@1132: if test "x$supports_anon_versioning" = xyes; then adamc@1132: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ adamc@1132: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ adamc@1132: echo "local: *; };" >> $output_objdir/$libname.ver~ adamc@1132: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' adamc@1132: fi adamc@1132: adamc@1132: case $cc_basename in adam@1459: xlf* | bgf* | bgxlf* | mpixlf*) adamc@1132: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself adamc@1132: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' adam@1599: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adam@1459: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' adamc@1132: if test "x$supports_anon_versioning" = xyes; then adamc@1132: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ adamc@1132: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ adamc@1132: echo "local: *; };" >> $output_objdir/$libname.ver~ adam@1459: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: else adamc@1132: ld_shlibs=no adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: netbsd* | netbsdelf*-gnu) adamc@1132: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then adamc@1132: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' adamc@1132: wlarc= adamc@1132: else adam@1459: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@1459: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: solaris*) adamc@1132: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then adamc@1132: ld_shlibs=no adamc@1132: cat <<_LT_EOF 1>&2 adamc@1132: adamc@1132: *** Warning: The releases 2.8.* of the GNU linker cannot reliably adamc@1132: *** create shared libraries on Solaris systems. Therefore, libtool adamc@1132: *** is disabling shared libraries support. We urge you to upgrade GNU adamc@1132: *** binutils to release 2.9.1 or newer. Another option is to modify adamc@1132: *** your PATH or compiler configuration so that the native linker is adamc@1132: *** used, and then restart. adamc@1132: adamc@1132: _LT_EOF adamc@1132: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then adam@1459: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@1459: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' adamc@1132: else adamc@1132: ld_shlibs=no adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) adamc@1132: case `$LD -v 2>&1` in adamc@1132: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) adamc@1132: ld_shlibs=no adamc@1132: cat <<_LT_EOF 1>&2 adamc@1132: adamc@1132: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not adamc@1132: *** reliably create shared libraries on SCO systems. Therefore, libtool adamc@1132: *** is disabling shared libraries support. We urge you to upgrade GNU adamc@1132: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify adamc@1132: *** your PATH or compiler configuration so that the native linker is adamc@1132: *** used, and then restart. adamc@1132: adamc@1132: _LT_EOF adamc@1132: ;; adamc@1132: *) adamc@1132: # For security reasons, it is highly recommended that you always adamc@1132: # use absolute paths for naming shared libraries, and exclude the adamc@1132: # DT_RUNPATH tag from executables and libraries. But doing so adamc@1132: # requires that you compile everything twice, which is a pain. adamc@1132: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adamc@1132: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adamc@1132: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' adamc@1132: else adamc@1132: ld_shlibs=no adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: sunos4*) adamc@1132: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' adamc@1132: wlarc= adamc@1132: hardcode_direct=yes adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: *) adamc@1132: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then adam@1459: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@1459: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' adamc@1132: else adamc@1132: ld_shlibs=no adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: if test "$ld_shlibs" = no; then adamc@1132: runpath_var= adamc@1132: hardcode_libdir_flag_spec= adamc@1132: export_dynamic_flag_spec= adamc@1132: whole_archive_flag_spec= adamc@1132: fi adamc@1132: else adamc@1132: # PORTME fill in a description of your system's linker (not GNU ld) adamc@1132: case $host_os in adamc@1132: aix3*) adamc@1132: allow_undefined_flag=unsupported adamc@1132: always_export_symbols=yes adamc@1132: 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' adamc@1132: # Note: this linker hardcodes the directories in LIBPATH if there adamc@1132: # are no directories specified by -L. adamc@1132: hardcode_minus_L=yes adamc@1132: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then adamc@1132: # Neither direct hardcoding nor static linking is supported with a adamc@1132: # broken collect2. adamc@1132: hardcode_direct=unsupported adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: aix[4-9]*) adamc@1132: if test "$host_cpu" = ia64; then adamc@1132: # On IA64, the linker does run time linking by default, so we don't adamc@1132: # have to do anything special. adamc@1132: aix_use_runtimelinking=no adamc@1132: exp_sym_flag='-Bexport' adamc@1132: no_entry_flag="" adamc@1132: else adamc@1132: # If we're using GNU nm, then we don't want the "-C" option. adamc@1132: # -C means demangle to AIX nm, but means don't demangle with GNU nm adam@1459: # Also, AIX nm treats weak defined symbols like other global adam@1459: # defined symbols, whereas GNU nm marks them as "W". adamc@1132: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then adam@1459: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' adamc@1132: else adamc@1132: 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' adamc@1132: fi adamc@1132: aix_use_runtimelinking=no adamc@1132: adamc@1132: # Test if we are trying to use run time linking or normal adamc@1132: # AIX style linking. If -brtl is somewhere in LDFLAGS, we adamc@1132: # need to do runtime linking. adamc@1132: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) adamc@1132: for ld_flag in $LDFLAGS; do adamc@1132: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then adamc@1132: aix_use_runtimelinking=yes adamc@1132: break adamc@1132: fi adamc@1132: done adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: exp_sym_flag='-bexport' adamc@1132: no_entry_flag='-bnoentry' adamc@1132: fi adamc@1132: adamc@1132: # When large executables or shared objects are built, AIX ld can adamc@1132: # have problems creating the table of contents. If linking a library adamc@1132: # or program results in "error TOC overflow" add -mminimal-toc to adamc@1132: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not adamc@1132: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. adamc@1132: adamc@1132: archive_cmds='' adamc@1132: hardcode_direct=yes adamc@1132: hardcode_direct_absolute=yes adamc@1132: hardcode_libdir_separator=':' adamc@1132: link_all_deplibs=yes adamc@1132: file_list_spec='${wl}-f,' adamc@1132: adamc@1132: if test "$GCC" = yes; then adamc@1132: case $host_os in aix4.[012]|aix4.[012].*) adamc@1132: # We only want to do this on AIX 4.2 and lower, the check adamc@1132: # below for broken collect2 doesn't work under 4.3+ adamc@1132: collect2name=`${CC} -print-prog-name=collect2` adamc@1132: if test -f "$collect2name" && adamc@1132: strings "$collect2name" | $GREP resolve_lib_name >/dev/null adamc@1132: then adamc@1132: # We have reworked collect2 adamc@1132: : adamc@1132: else adamc@1132: # We have old collect2 adamc@1132: hardcode_direct=unsupported adamc@1132: # It fails to find uninstalled libraries when the uninstalled adamc@1132: # path is not listed in the libpath. Setting hardcode_minus_L adamc@1132: # to unsupported forces relinking adamc@1132: hardcode_minus_L=yes adamc@1132: hardcode_libdir_flag_spec='-L$libdir' adamc@1132: hardcode_libdir_separator= adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: shared_flag='-shared' adamc@1132: if test "$aix_use_runtimelinking" = yes; then adamc@1132: shared_flag="$shared_flag "'${wl}-G' adamc@1132: fi adamc@1132: link_all_deplibs=no adamc@1132: else adamc@1132: # not using gcc adamc@1132: if test "$host_cpu" = ia64; then adamc@1132: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release adamc@1132: # chokes on -Wl,-G. The following line is correct: adamc@1132: shared_flag='-G' adamc@1132: else adamc@1132: if test "$aix_use_runtimelinking" = yes; then adamc@1132: shared_flag='${wl}-G' adamc@1132: else adamc@1132: shared_flag='${wl}-bM:SRE' adamc@1132: fi adamc@1132: fi adamc@1132: fi adamc@1132: adamc@1132: export_dynamic_flag_spec='${wl}-bexpall' adamc@1132: # It seems that -bexpall does not export symbols beginning with adamc@1132: # underscore (_), so it is better to generate a list of symbols to export. adamc@1132: always_export_symbols=yes adamc@1132: if test "$aix_use_runtimelinking" = yes; then adamc@1132: # Warning - without using the other runtime loading flags (-brtl), adamc@1132: # -berok will link without error, but may produce a broken library. adamc@1132: allow_undefined_flag='-berok' adamc@1132: # Determine the default libpath from the value encoded in an adamc@1132: # empty executable. adam@1459: if test "${lt_cv_aix_libpath+set}" = set; then adam@1459: aix_libpath=$lt_cv_aix_libpath adam@1459: else adam@1599: if ${lt_cv_aix_libpath_+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: adam@1459: lt_aix_libpath_sed=' adam@1459: /Import File Strings/,/^$/ { adam@1459: /^0/ { adam@1459: s/^0 *\([^ ]*\) *$/\1/ adam@1459: p adam@1459: } adam@1459: }' adam@1459: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` adam@1459: # Check for a 64-bit object if we didn't find anything. adam@1459: if test -z "$lt_cv_aix_libpath_"; then adam@1459: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` adam@1459: fi adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adam@1459: if test -z "$lt_cv_aix_libpath_"; then adam@1459: lt_cv_aix_libpath_="/usr/lib:/lib" adam@1459: fi adam@1459: adam@1459: fi adam@1459: adam@1459: aix_libpath=$lt_cv_aix_libpath_ adam@1459: fi adamc@1132: adamc@1132: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" adam@1459: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" adamc@1132: else adamc@1132: if test "$host_cpu" = ia64; then adamc@1132: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' adamc@1132: allow_undefined_flag="-z nodefs" adamc@1132: 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" adamc@1132: else adamc@1132: # Determine the default libpath from the value encoded in an adamc@1132: # empty executable. adam@1459: if test "${lt_cv_aix_libpath+set}" = set; then adam@1459: aix_libpath=$lt_cv_aix_libpath adam@1459: else adam@1599: if ${lt_cv_aix_libpath_+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: adam@1459: lt_aix_libpath_sed=' adam@1459: /Import File Strings/,/^$/ { adam@1459: /^0/ { adam@1459: s/^0 *\([^ ]*\) *$/\1/ adam@1459: p adam@1459: } adam@1459: }' adam@1459: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` adam@1459: # Check for a 64-bit object if we didn't find anything. adam@1459: if test -z "$lt_cv_aix_libpath_"; then adam@1459: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` adam@1459: fi adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adam@1459: if test -z "$lt_cv_aix_libpath_"; then adam@1459: lt_cv_aix_libpath_="/usr/lib:/lib" adam@1459: fi adam@1459: adam@1459: fi adam@1459: adam@1459: aix_libpath=$lt_cv_aix_libpath_ adam@1459: fi adamc@1132: adamc@1132: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" adamc@1132: # Warning - without using the other run time loading flags, adamc@1132: # -berok will link without error, but may produce a broken library. adamc@1132: no_undefined_flag=' ${wl}-bernotok' adamc@1132: allow_undefined_flag=' ${wl}-berok' adam@1459: if test "$with_gnu_ld" = yes; then adam@1459: # We only use this code for GNU lds that support --whole-archive. adam@1459: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' adam@1459: else adam@1459: # Exported symbols can be pulled into shared objects from archives adam@1459: whole_archive_flag_spec='$convenience' adam@1459: fi adamc@1132: archive_cmds_need_lc=yes adamc@1132: # This is similar to how AIX traditionally builds its shared libraries. adamc@1132: 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' adamc@1132: fi adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: amigaos*) adamc@1132: case $host_cpu in adamc@1132: powerpc) adamc@1132: # see comment about AmigaOS4 .so support adamc@1132: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adamc@1132: archive_expsym_cmds='' adamc@1132: ;; adamc@1132: m68k) adamc@1132: 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)' adamc@1132: hardcode_libdir_flag_spec='-L$libdir' adamc@1132: hardcode_minus_L=yes adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: bsdi[45]*) adamc@1132: export_dynamic_flag_spec=-rdynamic adamc@1132: ;; adamc@1132: adamc@1132: cygwin* | mingw* | pw32* | cegcc*) adamc@1132: # When not using gcc, we currently assume that we are using adamc@1132: # Microsoft Visual C++. adamc@1132: # hardcode_libdir_flag_spec is actually meaningless, as there is adamc@1132: # no search path for DLLs. adam@1459: case $cc_basename in adam@1459: cl*) adam@1459: # Native MSVC adam@1459: hardcode_libdir_flag_spec=' ' adam@1459: allow_undefined_flag=unsupported adam@1459: always_export_symbols=yes adam@1459: file_list_spec='@' adam@1459: # Tell ltmain to make .lib files, not .a files. adam@1459: libext=lib adam@1459: # Tell ltmain to make .dll files, not .so files. adam@1459: shrext_cmds=".dll" adam@1459: # FIXME: Setting linknames here is a bad hack. adam@1459: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' adam@1459: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then adam@1459: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; adam@1459: else adam@1459: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; adam@1459: fi~ adam@1459: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ adam@1459: linknames=' adam@1459: # The linker will not automatically build a static lib if we build a DLL. adam@1459: # _LT_TAGVAR(old_archive_from_new_cmds, )='true' adam@1459: enable_shared_with_static_runtimes=yes adam@1599: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' adam@1459: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' adam@1459: # Don't use ranlib adam@1459: old_postinstall_cmds='chmod 644 $oldlib' adam@1459: postlink_cmds='lt_outputfile="@OUTPUT@"~ adam@1459: lt_tool_outputfile="@TOOL_OUTPUT@"~ adam@1459: case $lt_outputfile in adam@1459: *.exe|*.EXE) ;; adam@1459: *) adam@1459: lt_outputfile="$lt_outputfile.exe" adam@1459: lt_tool_outputfile="$lt_tool_outputfile.exe" adam@1459: ;; adam@1459: esac~ adam@1459: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then adam@1459: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; adam@1459: $RM "$lt_outputfile.manifest"; adam@1459: fi' adam@1459: ;; adam@1459: *) adam@1459: # Assume MSVC wrapper adam@1459: hardcode_libdir_flag_spec=' ' adam@1459: allow_undefined_flag=unsupported adam@1459: # Tell ltmain to make .lib files, not .a files. adam@1459: libext=lib adam@1459: # Tell ltmain to make .dll files, not .so files. adam@1459: shrext_cmds=".dll" adam@1459: # FIXME: Setting linknames here is a bad hack. adam@1459: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' adam@1459: # The linker will automatically build a .lib file if we build a DLL. adam@1459: old_archive_from_new_cmds='true' adam@1459: # FIXME: Should let the user specify the lib program. adam@1459: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' adam@1459: enable_shared_with_static_runtimes=yes adam@1459: ;; adam@1459: esac adamc@1132: ;; adamc@1132: adamc@1132: darwin* | rhapsody*) adamc@1132: adamc@1132: adamc@1132: archive_cmds_need_lc=no adamc@1132: hardcode_direct=no adamc@1132: hardcode_automatic=yes adamc@1132: hardcode_shlibpath_var=unsupported adam@1459: if test "$lt_cv_ld_force_load" = "yes"; then adam@1459: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' adam@1599: adam@1459: else adam@1459: whole_archive_flag_spec='' adam@1459: fi adamc@1132: link_all_deplibs=yes adamc@1132: allow_undefined_flag="$_lt_dar_allow_undefined" adamc@1132: case $cc_basename in adamc@1132: ifort*) _lt_dar_can_shared=yes ;; adamc@1132: *) _lt_dar_can_shared=$GCC ;; adamc@1132: esac adamc@1132: if test "$_lt_dar_can_shared" = "yes"; then adam@1459: output_verbose_link_cmd=func_echo_all adamc@1132: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" adamc@1132: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" adamc@1132: 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}" adamc@1132: 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}" adamc@1132: adamc@1132: else adamc@1132: ld_shlibs=no adamc@1132: fi adamc@1132: adamc@1132: ;; adamc@1132: adamc@1132: dgux*) adamc@1132: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_libdir_flag_spec='-L$libdir' adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor adamc@1132: # support. Future versions do this automatically, but an explicit c++rt0.o adamc@1132: # does not break anything, and helps significantly (at the cost of a little adamc@1132: # extra space). adamc@1132: freebsd2.2*) adamc@1132: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' adamc@1132: hardcode_libdir_flag_spec='-R$libdir' adamc@1132: hardcode_direct=yes adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: # Unfortunately, older versions of FreeBSD 2 do not have this feature. adam@1599: freebsd2.*) adamc@1132: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_direct=yes adamc@1132: hardcode_minus_L=yes adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. adamc@1132: freebsd* | dragonfly*) adam@1459: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: hardcode_libdir_flag_spec='-R$libdir' adamc@1132: hardcode_direct=yes adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: hpux9*) adamc@1132: if test "$GCC" = yes; then adam@1459: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' adamc@1132: else adamc@1132: 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' adamc@1132: fi adamc@1132: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' adamc@1132: hardcode_libdir_separator=: adamc@1132: hardcode_direct=yes adamc@1132: adamc@1132: # hardcode_minus_L: Not really in the search PATH, adamc@1132: # but as the default location of the library. adamc@1132: hardcode_minus_L=yes adamc@1132: export_dynamic_flag_spec='${wl}-E' adamc@1132: ;; adamc@1132: adamc@1132: hpux10*) adam@1459: if test "$GCC" = yes && test "$with_gnu_ld" = no; then adam@1459: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: else adamc@1132: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' adamc@1132: fi adamc@1132: if test "$with_gnu_ld" = no; then adamc@1132: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' adamc@1132: hardcode_libdir_separator=: adamc@1132: hardcode_direct=yes adamc@1132: hardcode_direct_absolute=yes adamc@1132: export_dynamic_flag_spec='${wl}-E' adamc@1132: # hardcode_minus_L: Not really in the search PATH, adamc@1132: # but as the default location of the library. adamc@1132: hardcode_minus_L=yes adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: hpux11*) adam@1459: if test "$GCC" = yes && test "$with_gnu_ld" = no; then adamc@1132: case $host_cpu in adamc@1132: hppa*64*) adamc@1132: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: ;; adamc@1132: ia64*) adam@1459: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: ;; adamc@1132: *) adam@1459: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: ;; adamc@1132: esac adamc@1132: else adamc@1132: case $host_cpu in adamc@1132: hppa*64*) adamc@1132: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: ;; adamc@1132: ia64*) adamc@1132: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: ;; adamc@1132: *) adam@1459: adam@1459: # Older versions of the 11.00 compiler do not understand -b yet adam@1459: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 adam@1459: $as_echo_n "checking if $CC understands -b... " >&6; } adam@1599: if ${lt_cv_prog_compiler__b+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: lt_cv_prog_compiler__b=no adam@1459: save_LDFLAGS="$LDFLAGS" adam@1459: LDFLAGS="$LDFLAGS -b" adam@1459: echo "$lt_simple_link_test_code" > conftest.$ac_ext adam@1459: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then adam@1459: # The linker can only warn and ignore the option if not recognized adam@1459: # So say no if there are warnings adam@1459: if test -s conftest.err; then adam@1459: # Append any errors to the config.log. adam@1459: cat conftest.err 1>&5 adam@1459: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp adam@1459: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 adam@1459: if diff conftest.exp conftest.er2 >/dev/null; then adam@1459: lt_cv_prog_compiler__b=yes adam@1459: fi adam@1459: else adam@1459: lt_cv_prog_compiler__b=yes adam@1459: fi adam@1459: fi adam@1459: $RM -r conftest* adam@1459: LDFLAGS="$save_LDFLAGS" adam@1459: adam@1459: fi adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 adam@1459: $as_echo "$lt_cv_prog_compiler__b" >&6; } adam@1459: adam@1459: if test x"$lt_cv_prog_compiler__b" = xyes; then adam@1459: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' adam@1459: else adam@1459: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' adam@1459: fi adam@1459: adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: if test "$with_gnu_ld" = no; then adamc@1132: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' adamc@1132: hardcode_libdir_separator=: adamc@1132: adamc@1132: case $host_cpu in adamc@1132: hppa*64*|ia64*) adamc@1132: hardcode_direct=no adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: *) adamc@1132: hardcode_direct=yes adamc@1132: hardcode_direct_absolute=yes adamc@1132: export_dynamic_flag_spec='${wl}-E' adamc@1132: adamc@1132: # hardcode_minus_L: Not really in the search PATH, adamc@1132: # but as the default location of the library. adamc@1132: hardcode_minus_L=yes adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: irix5* | irix6* | nonstopux*) adamc@1132: if test "$GCC" = yes; then adam@1459: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' adamc@1132: # Try to use the -exported_symbol ld option, if it does not adamc@1132: # work, assume that -exports_file does not work either and adamc@1132: # implicitly export all symbols. adam@1459: # This should be the same for all languages, so no per-tag cache variable. adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 adam@1459: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } adam@1599: if ${lt_cv_irix_exported_symbol+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: save_LDFLAGS="$LDFLAGS" adam@1459: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" adam@1459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adam@1459: int foo (void) { return 0; } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adam@1459: lt_cv_irix_exported_symbol=yes adam@1459: else adam@1459: lt_cv_irix_exported_symbol=no adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adam@1459: LDFLAGS="$save_LDFLAGS" adam@1459: fi adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 adam@1459: $as_echo "$lt_cv_irix_exported_symbol" >&6; } adam@1459: if test "$lt_cv_irix_exported_symbol" = yes; then adam@1459: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' adam@1459: fi adamc@1132: else adam@1459: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' adam@1459: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' adamc@1132: fi adamc@1132: archive_cmds_need_lc='no' adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adamc@1132: hardcode_libdir_separator=: adamc@1132: inherit_rpath=yes adamc@1132: link_all_deplibs=yes adamc@1132: ;; adamc@1132: adamc@1132: netbsd* | netbsdelf*-gnu) adamc@1132: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then adamc@1132: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out adamc@1132: else adamc@1132: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF adamc@1132: fi adamc@1132: hardcode_libdir_flag_spec='-R$libdir' adamc@1132: hardcode_direct=yes adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: newsos6) adamc@1132: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_direct=yes adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adamc@1132: hardcode_libdir_separator=: adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: *nto* | *qnx*) adamc@1132: ;; adamc@1132: adamc@1132: openbsd*) adamc@1132: if test -f /usr/libexec/ld.so; then adamc@1132: hardcode_direct=yes adamc@1132: hardcode_shlibpath_var=no adamc@1132: hardcode_direct_absolute=yes adamc@1132: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then adamc@1132: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' adamc@1132: export_dynamic_flag_spec='${wl}-E' adamc@1132: else adamc@1132: case $host_os in adamc@1132: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) adamc@1132: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_libdir_flag_spec='-R$libdir' adamc@1132: ;; adamc@1132: *) adamc@1132: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: else adamc@1132: ld_shlibs=no adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: os2*) adamc@1132: hardcode_libdir_flag_spec='-L$libdir' adamc@1132: hardcode_minus_L=yes adamc@1132: allow_undefined_flag=unsupported adam@1459: 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' adamc@1132: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' adamc@1132: ;; adamc@1132: adamc@1132: osf3*) adamc@1132: if test "$GCC" = yes; then adamc@1132: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' adam@1459: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' adamc@1132: else adamc@1132: allow_undefined_flag=' -expect_unresolved \*' adam@1459: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' adamc@1132: fi adamc@1132: archive_cmds_need_lc='no' adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adamc@1132: hardcode_libdir_separator=: adamc@1132: ;; adamc@1132: adamc@1132: osf4* | osf5*) # as osf3* with the addition of -msym flag adamc@1132: if test "$GCC" = yes; then adamc@1132: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' adam@1459: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' adamc@1132: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adamc@1132: else adamc@1132: allow_undefined_flag=' -expect_unresolved \*' adam@1459: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' adamc@1132: 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~ adam@1459: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' adamc@1132: adamc@1132: # Both c and cxx compiler support -rpath directly adamc@1132: hardcode_libdir_flag_spec='-rpath $libdir' adamc@1132: fi adamc@1132: archive_cmds_need_lc='no' adamc@1132: hardcode_libdir_separator=: adamc@1132: ;; adamc@1132: adamc@1132: solaris*) adamc@1132: no_undefined_flag=' -z defs' adamc@1132: if test "$GCC" = yes; then adamc@1132: wlarc='${wl}' adam@1459: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ adam@1459: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' adamc@1132: else adamc@1132: case `$CC -V 2>&1` in adamc@1132: *"Compilers 5.0"*) adamc@1132: wlarc='' adamc@1132: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' adamc@1132: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ adamc@1132: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' adamc@1132: ;; adamc@1132: *) adamc@1132: wlarc='${wl}' adamc@1132: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ adamc@1132: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: hardcode_libdir_flag_spec='-R$libdir' adamc@1132: hardcode_shlibpath_var=no adamc@1132: case $host_os in adamc@1132: solaris2.[0-5] | solaris2.[0-5].*) ;; adamc@1132: *) adamc@1132: # The compiler driver will combine and reorder linker options, adamc@1132: # but understands `-z linker_flag'. GCC discards it without `$wl', adamc@1132: # but is careful enough not to reorder. adamc@1132: # Supported since Solaris 2.6 (maybe 2.5.1?) adamc@1132: if test "$GCC" = yes; then adamc@1132: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' adamc@1132: else adamc@1132: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: link_all_deplibs=yes adamc@1132: ;; adamc@1132: adamc@1132: sunos4*) adamc@1132: if test "x$host_vendor" = xsequent; then adamc@1132: # Use $CC to link under sequent, because it throws in some extra .o adamc@1132: # files that make .init and .fini sections work. adamc@1132: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: else adamc@1132: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' adamc@1132: fi adamc@1132: hardcode_libdir_flag_spec='-L$libdir' adamc@1132: hardcode_direct=yes adamc@1132: hardcode_minus_L=yes adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: sysv4) adamc@1132: case $host_vendor in adamc@1132: sni) adamc@1132: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_direct=yes # is this really true??? adamc@1132: ;; adamc@1132: siemens) adamc@1132: ## LD is ld it makes a PLAMLIB adamc@1132: ## CC just makes a GrossModule. adamc@1132: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' adamc@1132: reload_cmds='$CC -r -o $output$reload_objs' adamc@1132: hardcode_direct=no adamc@1132: ;; adamc@1132: motorola) adamc@1132: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_direct=no #Motorola manual says yes, but my tests say they lie adamc@1132: ;; adamc@1132: esac adamc@1132: runpath_var='LD_RUN_PATH' adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: sysv4.3*) adamc@1132: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_shlibpath_var=no adamc@1132: export_dynamic_flag_spec='-Bexport' adamc@1132: ;; adamc@1132: adamc@1132: sysv4*MP*) adamc@1132: if test -d /usr/nec; then adamc@1132: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_shlibpath_var=no adamc@1132: runpath_var=LD_RUN_PATH adamc@1132: hardcode_runpath_var=yes adamc@1132: ld_shlibs=yes adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) adamc@1132: no_undefined_flag='${wl}-z,text' adamc@1132: archive_cmds_need_lc=no adamc@1132: hardcode_shlibpath_var=no adamc@1132: runpath_var='LD_RUN_PATH' adamc@1132: adamc@1132: if test "$GCC" = yes; then adamc@1132: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: else adamc@1132: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: sysv5* | sco3.2v5* | sco5v6*) adamc@1132: # Note: We can NOT use -z defs as we might desire, because we do not adamc@1132: # link with -lc, and that would cause any symbols used from libc to adamc@1132: # always be unresolved, which means just about no library would adamc@1132: # ever link correctly. If we're not using GNU ld we use -z text adamc@1132: # though, which does catch some bad symbols but isn't as heavy-handed adamc@1132: # as -z defs. adamc@1132: no_undefined_flag='${wl}-z,text' adamc@1132: allow_undefined_flag='${wl}-z,nodefs' adamc@1132: archive_cmds_need_lc=no adamc@1132: hardcode_shlibpath_var=no adamc@1132: hardcode_libdir_flag_spec='${wl}-R,$libdir' adamc@1132: hardcode_libdir_separator=':' adamc@1132: link_all_deplibs=yes adamc@1132: export_dynamic_flag_spec='${wl}-Bexport' adamc@1132: runpath_var='LD_RUN_PATH' adamc@1132: adamc@1132: if test "$GCC" = yes; then adamc@1132: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: else adamc@1132: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: uts4*) adamc@1132: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adamc@1132: hardcode_libdir_flag_spec='-L$libdir' adamc@1132: hardcode_shlibpath_var=no adamc@1132: ;; adamc@1132: adamc@1132: *) adamc@1132: ld_shlibs=no adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: if test x$host_vendor = xsni; then adamc@1132: case $host in adamc@1132: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) adamc@1132: export_dynamic_flag_spec='${wl}-Blargedynsym' adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: fi adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 adamc@1132: $as_echo "$ld_shlibs" >&6; } adamc@1132: test "$ld_shlibs" = no && can_build_shared=no adamc@1132: adamc@1132: with_gnu_ld=$with_gnu_ld adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # adamc@1132: # Do we need to explicitly link libc? adamc@1132: # adamc@1132: case "x$archive_cmds_need_lc" in adamc@1132: x|xyes) adamc@1132: # Assume -lc should be added adamc@1132: archive_cmds_need_lc=yes adamc@1132: adamc@1132: if test "$enable_shared" = yes && test "$GCC" = yes; then adamc@1132: case $archive_cmds in adamc@1132: *'~'*) adamc@1132: # FIXME: we may have to deal with multi-command sequences. adamc@1132: ;; adamc@1132: '$CC '*) adamc@1132: # Test whether the compiler implicitly links with -lc since on some adamc@1132: # systems, -lgcc has to come before -lc. If gcc already passes -lc adamc@1132: # to ld, don't add -lc before -lgcc. adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 adamc@1132: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } adam@1599: if ${lt_cv_archive_cmds_need_lc+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: $RM conftest* adam@1459: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adam@1459: adam@1459: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adamc@1132: (eval $ac_compile) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; } 2>conftest.err; then adam@1459: soname=conftest adam@1459: lib=conftest adam@1459: libobjs=conftest.$ac_objext adam@1459: deplibs= adam@1459: wl=$lt_prog_compiler_wl adam@1459: pic_flag=$lt_prog_compiler_pic adam@1459: compiler_flags=-v adam@1459: linker_flags=-v adam@1459: verstring= adam@1459: output_objdir=. adam@1459: libname=conftest adam@1459: lt_save_allow_undefined_flag=$allow_undefined_flag adam@1459: allow_undefined_flag= adam@1459: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 adamc@1132: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; } adam@1459: then adam@1459: lt_cv_archive_cmds_need_lc=no adam@1459: else adam@1459: lt_cv_archive_cmds_need_lc=yes adam@1459: fi adam@1459: allow_undefined_flag=$lt_save_allow_undefined_flag adam@1459: else adam@1459: cat conftest.err 1>&5 adam@1459: fi adam@1459: $RM conftest* adam@1459: adam@1459: fi adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 adam@1459: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } adam@1459: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 adamc@1132: $as_echo_n "checking dynamic linker characteristics... " >&6; } adamc@1132: adamc@1132: if test "$GCC" = yes; then adamc@1132: case $host_os in adamc@1132: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; adamc@1132: *) lt_awk_arg="/^libraries:/" ;; adamc@1132: esac adam@1459: case $host_os in adam@1459: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; adam@1459: *) lt_sed_strip_eq="s,=/,/,g" ;; adam@1459: esac adam@1459: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` adam@1459: case $lt_search_path_spec in adam@1459: *\;*) adamc@1132: # if the path contains ";" then we assume it to be the separator adamc@1132: # otherwise default to the standard path separator (i.e. ":") - it is adamc@1132: # assumed that no part of a normal pathname contains ";" but that should adamc@1132: # okay in the real world where ";" in dirpaths is itself problematic. adam@1459: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` adam@1459: ;; adam@1459: *) adam@1459: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` adam@1459: ;; adam@1459: esac adamc@1132: # Ok, now we have the path, separated by spaces, we can step through it adamc@1132: # and add multilib dir if necessary. adamc@1132: lt_tmp_lt_search_path_spec= adamc@1132: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` adamc@1132: for lt_sys_path in $lt_search_path_spec; do adamc@1132: if test -d "$lt_sys_path/$lt_multi_os_dir"; then adamc@1132: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" adamc@1132: else adamc@1132: test -d "$lt_sys_path" && \ adamc@1132: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" adamc@1132: fi adamc@1132: done adam@1459: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' adamc@1132: BEGIN {RS=" "; FS="/|\n";} { adamc@1132: lt_foo=""; adamc@1132: lt_count=0; adamc@1132: for (lt_i = NF; lt_i > 0; lt_i--) { adamc@1132: if ($lt_i != "" && $lt_i != ".") { adamc@1132: if ($lt_i == "..") { adamc@1132: lt_count++; adamc@1132: } else { adamc@1132: if (lt_count == 0) { adamc@1132: lt_foo="/" $lt_i lt_foo; adamc@1132: } else { adamc@1132: lt_count--; adamc@1132: } adamc@1132: } adamc@1132: } adamc@1132: } adamc@1132: if (lt_foo != "") { lt_freq[lt_foo]++; } adamc@1132: if (lt_freq[lt_foo] == 1) { print lt_foo; } adamc@1132: }'` adam@1459: # AWK program above erroneously prepends '/' to C:/dos/paths adam@1459: # for these hosts. adam@1459: case $host_os in adam@1459: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ adam@1459: $SED 's,/\([A-Za-z]:\),\1,g'` ;; adam@1459: esac adam@1459: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` adamc@1132: else adamc@1132: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" adamc@1132: fi adamc@1132: library_names_spec= adamc@1132: libname_spec='lib$name' adamc@1132: soname_spec= adamc@1132: shrext_cmds=".so" adamc@1132: postinstall_cmds= adamc@1132: postuninstall_cmds= adamc@1132: finish_cmds= adamc@1132: finish_eval= adamc@1132: shlibpath_var= adamc@1132: shlibpath_overrides_runpath=unknown adamc@1132: version_type=none adamc@1132: dynamic_linker="$host_os ld.so" adamc@1132: sys_lib_dlsearch_path_spec="/lib /usr/lib" adamc@1132: need_lib_prefix=unknown adamc@1132: hardcode_into_libs=no adamc@1132: adamc@1132: # when you set need_version to no, make sure it does not cause -set_version adamc@1132: # flags to be left without arguments adamc@1132: need_version=unknown adamc@1132: adamc@1132: case $host_os in adamc@1132: aix3*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' adamc@1132: shlibpath_var=LIBPATH adamc@1132: adamc@1132: # AIX 3 has no versioning support, so we append a major version to the name. adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: ;; adamc@1132: adamc@1132: aix[4-9]*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: hardcode_into_libs=yes adamc@1132: if test "$host_cpu" = ia64; then adamc@1132: # AIX 5 supports IA64 adamc@1132: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: else adamc@1132: # With GCC up to 2.95.x, collect2 would create an import file adamc@1132: # for dependence libraries. The import file would start with adamc@1132: # the line `#! .'. This would cause the generated library to adamc@1132: # depend on `.', always an invalid library. This was fixed in adamc@1132: # development snapshots of GCC prior to 3.0. adamc@1132: case $host_os in adamc@1132: aix4 | aix4.[01] | aix4.[01].*) adamc@1132: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' adamc@1132: echo ' yes ' adamc@1132: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then adamc@1132: : adamc@1132: else adamc@1132: can_build_shared=no adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct adamc@1132: # soname into executable. Probably we can add versioning support to adamc@1132: # collect2, so additional links can be useful in future. adamc@1132: if test "$aix_use_runtimelinking" = yes; then adamc@1132: # If using run time linking (on AIX 4.2 or later) use lib.so adamc@1132: # instead of lib.a to let people know that these are not adamc@1132: # typical AIX shared libraries. adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: else adamc@1132: # We preserve .a as extension for shared libraries through AIX4.2 adamc@1132: # and later when we are not doing run time linking. adamc@1132: library_names_spec='${libname}${release}.a $libname.a' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: fi adamc@1132: shlibpath_var=LIBPATH adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: amigaos*) adamc@1132: case $host_cpu in adamc@1132: powerpc) adamc@1132: # Since July 2007 AmigaOS4 officially supports .so libraries. adamc@1132: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: ;; adamc@1132: m68k) adamc@1132: library_names_spec='$libname.ixlibrary $libname.a' adamc@1132: # Create ${libname}_ixlibrary.a entries in /sys/libs. adam@1459: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: beos*) adamc@1132: library_names_spec='${libname}${shared_ext}' adamc@1132: dynamic_linker="$host_os ld.so" adamc@1132: shlibpath_var=LIBRARY_PATH adamc@1132: ;; adamc@1132: adamc@1132: bsdi[45]*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" adamc@1132: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" adamc@1132: # the default ld.so.conf also contains /usr/contrib/lib and adamc@1132: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow adamc@1132: # libtool to hard-code these into programs adamc@1132: ;; adamc@1132: adamc@1132: cygwin* | mingw* | pw32* | cegcc*) adamc@1132: version_type=windows adamc@1132: shrext_cmds=".dll" adamc@1132: need_version=no adamc@1132: need_lib_prefix=no adamc@1132: adam@1459: case $GCC,$cc_basename in adam@1459: yes,*) adam@1459: # gcc adamc@1132: library_names_spec='$libname.dll.a' adamc@1132: # DLL is installed to $(libdir)/../bin by postinstall_cmds adamc@1132: postinstall_cmds='base_file=`basename \${file}`~ adamc@1132: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ adamc@1132: dldir=$destdir/`dirname \$dlpath`~ adamc@1132: test -d \$dldir || mkdir -p \$dldir~ adamc@1132: $install_prog $dir/$dlname \$dldir/$dlname~ adamc@1132: chmod a+x \$dldir/$dlname~ adamc@1132: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then adamc@1132: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; adamc@1132: fi' adamc@1132: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ adamc@1132: dlpath=$dir/\$dldll~ adamc@1132: $RM \$dlpath' adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: adamc@1132: case $host_os in adamc@1132: cygwin*) adamc@1132: # Cygwin DLLs use 'cyg' prefix rather than 'lib' adamc@1132: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' adam@1459: adam@1459: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" adamc@1132: ;; adamc@1132: mingw* | cegcc*) adamc@1132: # MinGW DLLs use traditional 'lib' prefix adamc@1132: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' adamc@1132: ;; adamc@1132: pw32*) adamc@1132: # pw32 DLLs use 'pw' prefix rather than 'lib' adamc@1132: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' adamc@1132: ;; adamc@1132: esac adam@1459: dynamic_linker='Win32 ld.exe' adam@1459: ;; adam@1459: adam@1459: *,cl*) adam@1459: # Native MSVC adam@1459: libname_spec='$name' adam@1459: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' adam@1459: library_names_spec='${libname}.dll.lib' adam@1459: adam@1459: case $build_os in adam@1459: mingw*) adam@1459: sys_lib_search_path_spec= adam@1459: lt_save_ifs=$IFS adam@1459: IFS=';' adam@1459: for lt_path in $LIB adam@1459: do adam@1459: IFS=$lt_save_ifs adam@1459: # Let DOS variable expansion print the short 8.3 style file name. adam@1459: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` adam@1459: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" adam@1459: done adam@1459: IFS=$lt_save_ifs adam@1459: # Convert to MSYS style. adam@1459: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` adam@1459: ;; adam@1459: cygwin*) adam@1459: # Convert to unix form, then to dos form, then back to unix form adam@1459: # but this time dos style (no spaces!) so that the unix form looks adam@1459: # like /cygdrive/c/PROGRA~1:/cygdr... adam@1459: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` adam@1459: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` adam@1459: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` adam@1459: ;; adam@1459: *) adam@1459: sys_lib_search_path_spec="$LIB" adam@1459: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then adam@1459: # It is most probably a Windows format PATH. adam@1459: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` adam@1459: else adam@1459: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` adam@1459: fi adam@1459: # FIXME: find the short name or the path components, as spaces are adam@1459: # common. (e.g. "Program Files" -> "PROGRA~1") adam@1459: ;; adam@1459: esac adam@1459: adam@1459: # DLL is installed to $(libdir)/../bin by postinstall_cmds adam@1459: postinstall_cmds='base_file=`basename \${file}`~ adam@1459: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ adam@1459: dldir=$destdir/`dirname \$dlpath`~ adam@1459: test -d \$dldir || mkdir -p \$dldir~ adam@1459: $install_prog $dir/$dlname \$dldir/$dlname' adam@1459: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ adam@1459: dlpath=$dir/\$dldll~ adam@1459: $RM \$dlpath' adam@1459: shlibpath_overrides_runpath=yes adam@1459: dynamic_linker='Win32 link.exe' adamc@1132: ;; adamc@1132: adamc@1132: *) adam@1459: # Assume MSVC wrapper adamc@1132: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' adam@1459: dynamic_linker='Win32 ld.exe' adamc@1132: ;; adamc@1132: esac adamc@1132: # FIXME: first we should search . and the directory the executable is in adamc@1132: shlibpath_var=PATH adamc@1132: ;; adamc@1132: adamc@1132: darwin* | rhapsody*) adamc@1132: dynamic_linker="$host_os dyld" adamc@1132: version_type=darwin adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' adamc@1132: soname_spec='${libname}${release}${major}$shared_ext' adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: shlibpath_var=DYLD_LIBRARY_PATH adamc@1132: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' adamc@1132: adamc@1132: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" adamc@1132: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' adamc@1132: ;; adamc@1132: adamc@1132: dgux*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: ;; adamc@1132: adamc@1132: freebsd* | dragonfly*) adamc@1132: # DragonFly does not have aout. When/if they implement a new adamc@1132: # versioning mechanism, adjust this. adamc@1132: if test -x /usr/bin/objformat; then adamc@1132: objformat=`/usr/bin/objformat` adamc@1132: else adamc@1132: case $host_os in adam@1599: freebsd[23].*) objformat=aout ;; adamc@1132: *) objformat=elf ;; adamc@1132: esac adamc@1132: fi adamc@1132: version_type=freebsd-$objformat adamc@1132: case $version_type in adamc@1132: freebsd-elf*) adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' adamc@1132: need_version=no adamc@1132: need_lib_prefix=no adamc@1132: ;; adamc@1132: freebsd-*) adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' adamc@1132: need_version=yes adamc@1132: ;; adamc@1132: esac adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: case $host_os in adam@1599: freebsd2.*) adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: ;; adamc@1132: freebsd3.[01]* | freebsdelf3.[01]*) adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: hardcode_into_libs=yes adamc@1132: ;; adamc@1132: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ adamc@1132: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) adamc@1132: shlibpath_overrides_runpath=no adamc@1132: hardcode_into_libs=yes adamc@1132: ;; adamc@1132: *) # from 4.6 on, and DragonFly adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: hardcode_into_libs=yes adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: gnu*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adam@1459: shlibpath_overrides_runpath=no adam@1459: hardcode_into_libs=yes adam@1459: ;; adam@1459: adam@1459: haiku*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adam@1459: need_lib_prefix=no adam@1459: need_version=no adam@1459: dynamic_linker="$host_os runtime_loader" adam@1459: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' adam@1459: soname_spec='${libname}${release}${shared_ext}$major' adam@1459: shlibpath_var=LIBRARY_PATH adam@1459: shlibpath_overrides_runpath=yes adam@1459: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' adamc@1132: hardcode_into_libs=yes adamc@1132: ;; adamc@1132: adamc@1132: hpux9* | hpux10* | hpux11*) adamc@1132: # Give a soname corresponding to the major version so that dld.sl refuses to adamc@1132: # link against other versions. adamc@1132: version_type=sunos adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: case $host_cpu in adamc@1132: ia64*) adamc@1132: shrext_cmds='.so' adamc@1132: hardcode_into_libs=yes adamc@1132: dynamic_linker="$host_os dld.so" adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: if test "X$HPUX_IA64_MODE" = X32; then adamc@1132: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" adamc@1132: else adamc@1132: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" adamc@1132: fi adamc@1132: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec adamc@1132: ;; adamc@1132: hppa*64*) adamc@1132: shrext_cmds='.sl' adamc@1132: hardcode_into_libs=yes adamc@1132: dynamic_linker="$host_os dld.sl" adamc@1132: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH adamc@1132: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" adamc@1132: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec adamc@1132: ;; adamc@1132: *) adamc@1132: shrext_cmds='.sl' adamc@1132: dynamic_linker="$host_os dld.sl" adamc@1132: shlibpath_var=SHLIB_PATH adamc@1132: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: ;; adamc@1132: esac adam@1459: # HP-UX runs *really* slowly unless shared libraries are mode 555, ... adamc@1132: postinstall_cmds='chmod 555 $lib' adam@1459: # or fails outright, so override atomically: adam@1459: install_override_mode=555 adamc@1132: ;; adamc@1132: adamc@1132: interix[3-9]*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=no adamc@1132: hardcode_into_libs=yes adamc@1132: ;; adamc@1132: adamc@1132: irix5* | irix6* | nonstopux*) adamc@1132: case $host_os in adamc@1132: nonstopux*) version_type=nonstopux ;; adamc@1132: *) adamc@1132: if test "$lt_cv_prog_gnu_ld" = yes; then adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: else adamc@1132: version_type=irix adamc@1132: fi ;; adamc@1132: esac adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' adamc@1132: case $host_os in adamc@1132: irix5* | nonstopux*) adamc@1132: libsuff= shlibsuff= adamc@1132: ;; adamc@1132: *) adamc@1132: case $LD in # libtool.m4 will add one of these switches to LD adamc@1132: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") adamc@1132: libsuff= shlibsuff= libmagic=32-bit;; adamc@1132: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") adamc@1132: libsuff=32 shlibsuff=N32 libmagic=N32;; adamc@1132: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") adamc@1132: libsuff=64 shlibsuff=64 libmagic=64-bit;; adamc@1132: *) libsuff= shlibsuff= libmagic=never-match;; adamc@1132: esac adamc@1132: ;; adamc@1132: esac adamc@1132: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH adamc@1132: shlibpath_overrides_runpath=no adamc@1132: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" adamc@1132: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" adamc@1132: hardcode_into_libs=yes adamc@1132: ;; adamc@1132: adamc@1132: # No shared lib support for Linux oldld, aout, or coff. adamc@1132: linux*oldld* | linux*aout* | linux*coff*) adamc@1132: dynamic_linker=no adamc@1132: ;; adamc@1132: adam@1599: # This must be glibc/ELF. adamc@1132: linux* | k*bsd*-gnu | kopensolaris*-gnu) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=no adam@1459: adamc@1132: # Some binutils ld are patched to set DT_RUNPATH adam@1599: if ${lt_cv_shlibpath_overrides_runpath+:} false; then : adam@1459: $as_echo_n "(cached) " >&6 adam@1459: else adam@1459: lt_cv_shlibpath_overrides_runpath=no adam@1459: save_LDFLAGS=$LDFLAGS adam@1459: save_libdir=$libdir adam@1459: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ adam@1459: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" adam@1459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : adam@1459: lt_cv_shlibpath_overrides_runpath=yes adamc@1132: fi adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adam@1459: LDFLAGS=$save_LDFLAGS adam@1459: libdir=$save_libdir adam@1459: adam@1459: fi adam@1459: adam@1459: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath adamc@1132: adamc@1132: # This implies no fast_install, which is unacceptable. adamc@1132: # Some rework will be needed to allow for fast_install adamc@1132: # before this can be enabled. adamc@1132: hardcode_into_libs=yes adamc@1132: adamc@1132: # Append ld.so.conf contents to the search path adamc@1132: if test -f /etc/ld.so.conf; then adam@1459: 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;s/"//g;/^$/d' | tr '\n' ' '` adamc@1132: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" adamc@1132: fi adamc@1132: adamc@1132: # We used to test for /lib/ld.so.1 and disable shared libraries on adamc@1132: # powerpc, because MkLinux only supported shared libraries with the adamc@1132: # GNU dynamic linker. Since this was broken with cross compilers, adamc@1132: # most powerpc-linux boxes support dynamic linking these days and adamc@1132: # people can always --disable-shared, the test was removed, and we adamc@1132: # assume the GNU/Linux dynamic linker is in use. adamc@1132: dynamic_linker='GNU/Linux ld.so' adamc@1132: ;; adamc@1132: adamc@1132: netbsdelf*-gnu) adamc@1132: version_type=linux adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=no adamc@1132: hardcode_into_libs=yes adamc@1132: dynamic_linker='NetBSD ld.elf_so' adamc@1132: ;; adamc@1132: adamc@1132: netbsd*) adamc@1132: version_type=sunos adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' adamc@1132: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' adamc@1132: dynamic_linker='NetBSD (a.out) ld.so' adamc@1132: else adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: dynamic_linker='NetBSD ld.elf_so' adamc@1132: fi adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: hardcode_into_libs=yes adamc@1132: ;; adamc@1132: adamc@1132: newsos6) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: ;; adamc@1132: adamc@1132: *nto* | *qnx*) adamc@1132: version_type=qnx adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=no adamc@1132: hardcode_into_libs=yes adamc@1132: dynamic_linker='ldqnx.so' adamc@1132: ;; adamc@1132: adamc@1132: openbsd*) adamc@1132: version_type=sunos adamc@1132: sys_lib_dlsearch_path_spec="/usr/lib" adamc@1132: need_lib_prefix=no adamc@1132: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. adamc@1132: case $host_os in adamc@1132: openbsd3.3 | openbsd3.3.*) need_version=yes ;; adamc@1132: *) need_version=no ;; adamc@1132: esac adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' adamc@1132: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then adamc@1132: case $host_os in adamc@1132: openbsd2.[89] | openbsd2.[89].*) adamc@1132: shlibpath_overrides_runpath=no adamc@1132: ;; adamc@1132: *) adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: ;; adamc@1132: esac adamc@1132: else adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: os2*) adamc@1132: libname_spec='$name' adamc@1132: shrext_cmds=".dll" adamc@1132: need_lib_prefix=no adamc@1132: library_names_spec='$libname${shared_ext} $libname.a' adamc@1132: dynamic_linker='OS/2 ld.exe' adamc@1132: shlibpath_var=LIBPATH adamc@1132: ;; adamc@1132: adamc@1132: osf3* | osf4* | osf5*) adamc@1132: version_type=osf adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" adamc@1132: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" adamc@1132: ;; adamc@1132: adamc@1132: rdos*) adamc@1132: dynamic_linker=no adamc@1132: ;; adamc@1132: adamc@1132: solaris*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: hardcode_into_libs=yes adamc@1132: # ldd complains unless libraries are executable adamc@1132: postinstall_cmds='chmod +x $lib' adamc@1132: ;; adamc@1132: adamc@1132: sunos4*) adamc@1132: version_type=sunos adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' adamc@1132: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: if test "$with_gnu_ld" = yes; then adamc@1132: need_lib_prefix=no adamc@1132: fi adamc@1132: need_version=yes adamc@1132: ;; adamc@1132: adamc@1132: sysv4 | sysv4.3*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: case $host_vendor in adamc@1132: sni) adamc@1132: shlibpath_overrides_runpath=no adamc@1132: need_lib_prefix=no adamc@1132: runpath_var=LD_RUN_PATH adamc@1132: ;; adamc@1132: siemens) adamc@1132: need_lib_prefix=no adamc@1132: ;; adamc@1132: motorola) adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: shlibpath_overrides_runpath=no adamc@1132: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' adamc@1132: ;; adamc@1132: esac adamc@1132: ;; adamc@1132: adamc@1132: sysv4*MP*) adamc@1132: if test -d /usr/nec ;then adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' adamc@1132: soname_spec='$libname${shared_ext}.$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) adamc@1132: version_type=freebsd-elf adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=yes adamc@1132: hardcode_into_libs=yes adamc@1132: if test "$with_gnu_ld" = yes; then adamc@1132: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' adamc@1132: else adamc@1132: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' adamc@1132: case $host_os in adamc@1132: sco3.2v5*) adamc@1132: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: sys_lib_dlsearch_path_spec='/usr/lib' adamc@1132: ;; adamc@1132: adamc@1132: tpf*) adamc@1132: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: need_lib_prefix=no adamc@1132: need_version=no adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: shlibpath_overrides_runpath=no adamc@1132: hardcode_into_libs=yes adamc@1132: ;; adamc@1132: adamc@1132: uts4*) adam@1599: version_type=linux # correct to gnu/linux during the next big refactor adamc@1132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adamc@1132: soname_spec='${libname}${release}${shared_ext}$major' adamc@1132: shlibpath_var=LD_LIBRARY_PATH adamc@1132: ;; adamc@1132: adamc@1132: *) adamc@1132: dynamic_linker=no adamc@1132: ;; adamc@1132: esac adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 adamc@1132: $as_echo "$dynamic_linker" >&6; } adamc@1132: test "$dynamic_linker" = no && can_build_shared=no adamc@1132: adamc@1132: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" adamc@1132: if test "$GCC" = yes; then adamc@1132: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" adamc@1132: fi adamc@1132: adamc@1132: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then adamc@1132: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" adamc@1132: fi adamc@1132: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then adamc@1132: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adam@1459: adam@1459: adam@1459: adam@1459: adam@1459: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 adamc@1132: $as_echo_n "checking how to hardcode library paths into programs... " >&6; } adamc@1132: hardcode_action= adamc@1132: if test -n "$hardcode_libdir_flag_spec" || adamc@1132: test -n "$runpath_var" || adamc@1132: test "X$hardcode_automatic" = "Xyes" ; then adamc@1132: adamc@1132: # We can hardcode non-existent directories. adamc@1132: if test "$hardcode_direct" != no && adamc@1132: # If the only mechanism to avoid hardcoding is shlibpath_var, we adamc@1132: # have to relink, otherwise we might link with an installed library adamc@1132: # when we should be linking with a yet-to-be-installed one adamc@1132: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && adamc@1132: test "$hardcode_minus_L" != no; then adamc@1132: # Linking always hardcodes the temporary library directory. adamc@1132: hardcode_action=relink adamc@1132: else adamc@1132: # We can link without hardcoding, and we can hardcode nonexisting dirs. adamc@1132: hardcode_action=immediate adamc@1132: fi adamc@1132: else adamc@1132: # We cannot hardcode anything, or else we can only hardcode existing adamc@1132: # directories. adamc@1132: hardcode_action=unsupported adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 adamc@1132: $as_echo "$hardcode_action" >&6; } adamc@1132: adamc@1132: if test "$hardcode_action" = relink || adamc@1132: test "$inherit_rpath" = yes; then adamc@1132: # Fast installation is not supported adamc@1132: enable_fast_install=no adamc@1132: elif test "$shlibpath_overrides_runpath" = yes || adamc@1132: test "$enable_shared" = no; then adamc@1132: # Fast installation is not necessary adamc@1132: enable_fast_install=needless adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: if test "x$enable_dlopen" != xyes; then adamc@1132: enable_dlopen=unknown adamc@1132: enable_dlopen_self=unknown adamc@1132: enable_dlopen_self_static=unknown adamc@1132: else adamc@1132: lt_cv_dlopen=no adamc@1132: lt_cv_dlopen_libs= adamc@1132: adamc@1132: case $host_os in adamc@1132: beos*) adamc@1132: lt_cv_dlopen="load_add_on" adamc@1132: lt_cv_dlopen_libs= adamc@1132: lt_cv_dlopen_self=yes adamc@1132: ;; adamc@1132: adamc@1132: mingw* | pw32* | cegcc*) adamc@1132: lt_cv_dlopen="LoadLibrary" adamc@1132: lt_cv_dlopen_libs= adamc@1132: ;; adamc@1132: adamc@1132: cygwin*) adamc@1132: lt_cv_dlopen="dlopen" adamc@1132: lt_cv_dlopen_libs= adamc@1132: ;; adamc@1132: adamc@1132: darwin*) adamc@1132: # if libdl is installed we need to link against it adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 adamc@1132: $as_echo_n "checking for dlopen in -ldl... " >&6; } adam@1599: if ${ac_cv_lib_dl_dlopen+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: ac_check_lib_save_LIBS=$LIBS adamc@1132: LIBS="-ldl $LIBS" adamc@1132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: /* Override any GCC internal prototype to avoid an error. adamc@1132: Use char because int might match the return type of a GCC adamc@1132: builtin and then its argument prototype would still apply. */ adamc@1132: #ifdef __cplusplus adamc@1132: extern "C" adamc@1132: #endif adamc@1132: char dlopen (); adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: return dlopen (); adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: ac_cv_lib_dl_dlopen=yes adamc@1132: else adamc@1132: ac_cv_lib_dl_dlopen=no adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adamc@1132: LIBS=$ac_check_lib_save_LIBS adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 adamc@1132: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } adam@1599: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : adamc@1132: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" adamc@1132: else adamc@1132: adamc@1132: lt_cv_dlopen="dyld" adamc@1132: lt_cv_dlopen_libs= adamc@1132: lt_cv_dlopen_self=yes adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: ;; adamc@1132: adamc@1132: *) adamc@1132: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" adam@1599: if test "x$ac_cv_func_shl_load" = xyes; then : adamc@1132: lt_cv_dlopen="shl_load" adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 adamc@1132: $as_echo_n "checking for shl_load in -ldld... " >&6; } adam@1599: if ${ac_cv_lib_dld_shl_load+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: ac_check_lib_save_LIBS=$LIBS adamc@1132: LIBS="-ldld $LIBS" adamc@1132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: /* Override any GCC internal prototype to avoid an error. adamc@1132: Use char because int might match the return type of a GCC adamc@1132: builtin and then its argument prototype would still apply. */ adamc@1132: #ifdef __cplusplus adamc@1132: extern "C" adamc@1132: #endif adamc@1132: char shl_load (); adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: return shl_load (); adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: ac_cv_lib_dld_shl_load=yes adamc@1132: else adamc@1132: ac_cv_lib_dld_shl_load=no adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adamc@1132: LIBS=$ac_check_lib_save_LIBS adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 adamc@1132: $as_echo "$ac_cv_lib_dld_shl_load" >&6; } adam@1599: if test "x$ac_cv_lib_dld_shl_load" = xyes; then : adamc@1132: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" adamc@1132: else adamc@1132: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" adam@1599: if test "x$ac_cv_func_dlopen" = xyes; then : adamc@1132: lt_cv_dlopen="dlopen" adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 adamc@1132: $as_echo_n "checking for dlopen in -ldl... " >&6; } adam@1599: if ${ac_cv_lib_dl_dlopen+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: ac_check_lib_save_LIBS=$LIBS adamc@1132: LIBS="-ldl $LIBS" adamc@1132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: /* Override any GCC internal prototype to avoid an error. adamc@1132: Use char because int might match the return type of a GCC adamc@1132: builtin and then its argument prototype would still apply. */ adamc@1132: #ifdef __cplusplus adamc@1132: extern "C" adamc@1132: #endif adamc@1132: char dlopen (); adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: return dlopen (); adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: ac_cv_lib_dl_dlopen=yes adamc@1132: else adamc@1132: ac_cv_lib_dl_dlopen=no adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adamc@1132: LIBS=$ac_check_lib_save_LIBS adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 adamc@1132: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } adam@1599: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : adamc@1132: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 adamc@1132: $as_echo_n "checking for dlopen in -lsvld... " >&6; } adam@1599: if ${ac_cv_lib_svld_dlopen+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: ac_check_lib_save_LIBS=$LIBS adamc@1132: LIBS="-lsvld $LIBS" adamc@1132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: /* Override any GCC internal prototype to avoid an error. adamc@1132: Use char because int might match the return type of a GCC adamc@1132: builtin and then its argument prototype would still apply. */ adamc@1132: #ifdef __cplusplus adamc@1132: extern "C" adamc@1132: #endif adamc@1132: char dlopen (); adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: return dlopen (); adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: ac_cv_lib_svld_dlopen=yes adamc@1132: else adamc@1132: ac_cv_lib_svld_dlopen=no adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adamc@1132: LIBS=$ac_check_lib_save_LIBS adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 adamc@1132: $as_echo "$ac_cv_lib_svld_dlopen" >&6; } adam@1599: if test "x$ac_cv_lib_svld_dlopen" = xyes; then : adamc@1132: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 adamc@1132: $as_echo_n "checking for dld_link in -ldld... " >&6; } adam@1599: if ${ac_cv_lib_dld_dld_link+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: ac_check_lib_save_LIBS=$LIBS adamc@1132: LIBS="-ldld $LIBS" adamc@1132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1132: /* end confdefs.h. */ adamc@1132: adamc@1132: /* Override any GCC internal prototype to avoid an error. adamc@1132: Use char because int might match the return type of a GCC adamc@1132: builtin and then its argument prototype would still apply. */ adamc@1132: #ifdef __cplusplus adamc@1132: extern "C" adamc@1132: #endif adamc@1132: char dld_link (); adamc@1132: int adamc@1132: main () adamc@1132: { adamc@1132: return dld_link (); adamc@1132: ; adamc@1132: return 0; adamc@1132: } adamc@1132: _ACEOF adamc@1132: if ac_fn_c_try_link "$LINENO"; then : adamc@1132: ac_cv_lib_dld_dld_link=yes adamc@1132: else adamc@1132: ac_cv_lib_dld_dld_link=no adamc@1132: fi adamc@1132: rm -f core conftest.err conftest.$ac_objext \ adamc@1132: conftest$ac_exeext conftest.$ac_ext adamc@1132: LIBS=$ac_check_lib_save_LIBS adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 adamc@1132: $as_echo "$ac_cv_lib_dld_dld_link" >&6; } adam@1599: if test "x$ac_cv_lib_dld_dld_link" = xyes; then : adamc@1132: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: if test "x$lt_cv_dlopen" != xno; then adamc@1132: enable_dlopen=yes adamc@1132: else adamc@1132: enable_dlopen=no adamc@1132: fi adamc@1132: adamc@1132: case $lt_cv_dlopen in adamc@1132: dlopen) adamc@1132: save_CPPFLAGS="$CPPFLAGS" adamc@1132: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" adamc@1132: adamc@1132: save_LDFLAGS="$LDFLAGS" adamc@1132: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" adamc@1132: adamc@1132: save_LIBS="$LIBS" adamc@1132: LIBS="$lt_cv_dlopen_libs $LIBS" adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 adamc@1132: $as_echo_n "checking whether a program can dlopen itself... " >&6; } adam@1599: if ${lt_cv_dlopen_self+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test "$cross_compiling" = yes; then : adamc@1132: lt_cv_dlopen_self=cross adamc@1132: else adamc@1132: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 adamc@1132: lt_status=$lt_dlunknown adamc@1132: cat > conftest.$ac_ext <<_LT_EOF adam@1459: #line $LINENO "configure" adamc@1132: #include "confdefs.h" adamc@1132: adamc@1132: #if HAVE_DLFCN_H adamc@1132: #include adamc@1132: #endif adamc@1132: adamc@1132: #include adamc@1132: adamc@1132: #ifdef RTLD_GLOBAL adamc@1132: # define LT_DLGLOBAL RTLD_GLOBAL adamc@1132: #else adamc@1132: # ifdef DL_GLOBAL adamc@1132: # define LT_DLGLOBAL DL_GLOBAL adamc@1132: # else adamc@1132: # define LT_DLGLOBAL 0 adamc@1132: # endif adamc@1132: #endif adamc@1132: adamc@1132: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we adamc@1132: find out it does not work in some platform. */ adamc@1132: #ifndef LT_DLLAZY_OR_NOW adamc@1132: # ifdef RTLD_LAZY adamc@1132: # define LT_DLLAZY_OR_NOW RTLD_LAZY adamc@1132: # else adamc@1132: # ifdef DL_LAZY adamc@1132: # define LT_DLLAZY_OR_NOW DL_LAZY adamc@1132: # else adamc@1132: # ifdef RTLD_NOW adamc@1132: # define LT_DLLAZY_OR_NOW RTLD_NOW adamc@1132: # else adamc@1132: # ifdef DL_NOW adamc@1132: # define LT_DLLAZY_OR_NOW DL_NOW adamc@1132: # else adamc@1132: # define LT_DLLAZY_OR_NOW 0 adamc@1132: # endif adamc@1132: # endif adamc@1132: # endif adamc@1132: # endif adamc@1132: #endif adamc@1132: adam@1459: /* When -fvisbility=hidden is used, assume the code has been annotated adam@1459: correspondingly for the symbols needed. */ adam@1459: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) adam@1459: int fnord () __attribute__((visibility("default"))); adam@1459: #endif adam@1459: adam@1459: int fnord () { return 42; } adamc@1132: int main () adamc@1132: { adamc@1132: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); adamc@1132: int status = $lt_dlunknown; adamc@1132: adamc@1132: if (self) adamc@1132: { adamc@1132: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; adam@1459: else adam@1459: { adam@1459: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; adam@1459: else puts (dlerror ()); adam@1459: } adamc@1132: /* dlclose (self); */ adamc@1132: } adamc@1132: else adamc@1132: puts (dlerror ()); adamc@1132: adamc@1132: return status; adamc@1132: } adamc@1132: _LT_EOF adamc@1132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 adamc@1132: (eval $ac_link) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then adamc@1132: (./conftest; exit; ) >&5 2>/dev/null adamc@1132: lt_status=$? adamc@1132: case x$lt_status in adamc@1132: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; adamc@1132: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; adamc@1132: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; adamc@1132: esac adamc@1132: else : adamc@1132: # compilation failed adamc@1132: lt_cv_dlopen_self=no adamc@1132: fi adamc@1132: fi adamc@1132: rm -fr conftest* adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 adamc@1132: $as_echo "$lt_cv_dlopen_self" >&6; } adamc@1132: adamc@1132: if test "x$lt_cv_dlopen_self" = xyes; then adamc@1132: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 adamc@1132: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } adam@1599: if ${lt_cv_dlopen_self_static+:} false; then : adamc@1132: $as_echo_n "(cached) " >&6 adamc@1132: else adamc@1132: if test "$cross_compiling" = yes; then : adamc@1132: lt_cv_dlopen_self_static=cross adamc@1132: else adamc@1132: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 adamc@1132: lt_status=$lt_dlunknown adamc@1132: cat > conftest.$ac_ext <<_LT_EOF adam@1459: #line $LINENO "configure" adamc@1132: #include "confdefs.h" adamc@1132: adamc@1132: #if HAVE_DLFCN_H adamc@1132: #include adamc@1132: #endif adamc@1132: adamc@1132: #include adamc@1132: adamc@1132: #ifdef RTLD_GLOBAL adamc@1132: # define LT_DLGLOBAL RTLD_GLOBAL adamc@1132: #else adamc@1132: # ifdef DL_GLOBAL adamc@1132: # define LT_DLGLOBAL DL_GLOBAL adamc@1132: # else adamc@1132: # define LT_DLGLOBAL 0 adamc@1132: # endif adamc@1132: #endif adamc@1132: adamc@1132: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we adamc@1132: find out it does not work in some platform. */ adamc@1132: #ifndef LT_DLLAZY_OR_NOW adamc@1132: # ifdef RTLD_LAZY adamc@1132: # define LT_DLLAZY_OR_NOW RTLD_LAZY adamc@1132: # else adamc@1132: # ifdef DL_LAZY adamc@1132: # define LT_DLLAZY_OR_NOW DL_LAZY adamc@1132: # else adamc@1132: # ifdef RTLD_NOW adamc@1132: # define LT_DLLAZY_OR_NOW RTLD_NOW adamc@1132: # else adamc@1132: # ifdef DL_NOW adamc@1132: # define LT_DLLAZY_OR_NOW DL_NOW adamc@1132: # else adamc@1132: # define LT_DLLAZY_OR_NOW 0 adamc@1132: # endif adamc@1132: # endif adamc@1132: # endif adamc@1132: # endif adamc@1132: #endif adamc@1132: adam@1459: /* When -fvisbility=hidden is used, assume the code has been annotated adam@1459: correspondingly for the symbols needed. */ adam@1459: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) adam@1459: int fnord () __attribute__((visibility("default"))); adam@1459: #endif adam@1459: adam@1459: int fnord () { return 42; } adamc@1132: int main () adamc@1132: { adamc@1132: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); adamc@1132: int status = $lt_dlunknown; adamc@1132: adamc@1132: if (self) adamc@1132: { adamc@1132: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; adam@1459: else adam@1459: { adam@1459: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; adam@1459: else puts (dlerror ()); adam@1459: } adamc@1132: /* dlclose (self); */ adamc@1132: } adamc@1132: else adamc@1132: puts (dlerror ()); adamc@1132: adamc@1132: return status; adamc@1132: } adamc@1132: _LT_EOF adamc@1132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 adamc@1132: (eval $ac_link) 2>&5 adamc@1132: ac_status=$? adamc@1132: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adamc@1132: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then adamc@1132: (./conftest; exit; ) >&5 2>/dev/null adamc@1132: lt_status=$? adamc@1132: case x$lt_status in adamc@1132: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; adamc@1132: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; adamc@1132: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; adamc@1132: esac adamc@1132: else : adamc@1132: # compilation failed adamc@1132: lt_cv_dlopen_self_static=no adamc@1132: fi adamc@1132: fi adamc@1132: rm -fr conftest* adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 adamc@1132: $as_echo "$lt_cv_dlopen_self_static" >&6; } adamc@1132: fi adamc@1132: adamc@1132: CPPFLAGS="$save_CPPFLAGS" adamc@1132: LDFLAGS="$save_LDFLAGS" adamc@1132: LIBS="$save_LIBS" adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: case $lt_cv_dlopen_self in adamc@1132: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; adamc@1132: *) enable_dlopen_self=unknown ;; adamc@1132: esac adamc@1132: adamc@1132: case $lt_cv_dlopen_self_static in adamc@1132: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; adamc@1132: *) enable_dlopen_self_static=unknown ;; adamc@1132: esac adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: striplib= adamc@1132: old_striplib= adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 adamc@1132: $as_echo_n "checking whether stripping libraries is possible... " >&6; } adamc@1132: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then adamc@1132: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" adamc@1132: test -z "$striplib" && striplib="$STRIP --strip-unneeded" adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adamc@1132: $as_echo "yes" >&6; } adamc@1132: else adamc@1132: # FIXME - insert some real tests, host_os isn't really good enough adamc@1132: case $host_os in adamc@1132: darwin*) adamc@1132: if test -n "$STRIP" ; then adamc@1132: striplib="$STRIP -x" adamc@1132: old_striplib="$STRIP -S" adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adamc@1132: $as_echo "yes" >&6; } adamc@1132: else adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: fi adamc@1132: ;; adamc@1132: *) adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1132: $as_echo "no" >&6; } adamc@1132: ;; adamc@1132: esac adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # Report which library types will actually be built adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 adamc@1132: $as_echo_n "checking if libtool supports shared libraries... " >&6; } adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 adamc@1132: $as_echo "$can_build_shared" >&6; } adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 adamc@1132: $as_echo_n "checking whether to build shared libraries... " >&6; } adamc@1132: test "$can_build_shared" = "no" && enable_shared=no adamc@1132: adamc@1132: # On AIX, shared libraries and static libraries use the same namespace, and adamc@1132: # are all built from PIC. adamc@1132: case $host_os in adamc@1132: aix3*) adamc@1132: test "$enable_shared" = yes && enable_static=no adamc@1132: if test -n "$RANLIB"; then adamc@1132: archive_cmds="$archive_cmds~\$RANLIB \$lib" adamc@1132: postinstall_cmds='$RANLIB $lib' adamc@1132: fi adamc@1132: ;; adamc@1132: adamc@1132: aix[4-9]*) adamc@1132: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then adamc@1132: test "$enable_shared" = yes && enable_static=no adamc@1132: fi adamc@1132: ;; adamc@1132: esac adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 adamc@1132: $as_echo "$enable_shared" >&6; } adamc@1132: adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 adamc@1132: $as_echo_n "checking whether to build static libraries... " >&6; } adamc@1132: # Make sure either enable_shared or enable_static is yes. adamc@1132: test "$enable_shared" = yes || enable_static=yes adamc@1132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 adamc@1132: $as_echo "$enable_static" >&6; } adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: fi adamc@1132: ac_ext=c adamc@1132: ac_cpp='$CPP $CPPFLAGS' adamc@1132: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adamc@1132: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adamc@1132: ac_compiler_gnu=$ac_cv_c_compiler_gnu adamc@1132: adamc@1132: CC="$lt_save_CC" adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adam@1599: adam@1599: adamc@1132: ac_config_commands="$ac_config_commands libtool" adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: # Only expand once: adamc@1132: adamc@1132: adamc@378: adamc@1263: ac_config_headers="$ac_config_headers config.h" adamc@1263: adamc@1141: adam@1317: adam@1528: adam@1528: ac_ext=c adam@1528: ac_cpp='$CPP $CPPFLAGS' adam@1528: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@1528: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@1528: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@1528: adam@1528: ax_pthread_ok=no adam@1528: adam@1528: # We used to check for pthread.h first, but this fails if pthread.h adam@1528: # requires special compiler flags (e.g. on True64 or Sequent). adam@1528: # It gets checked for in the link test anyway. adam@1528: adam@1528: # First of all, check if the user has set any of the PTHREAD_LIBS, adam@1528: # etcetera environment variables, and if threads linking works using adam@1528: # them: adam@1528: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then adam@1528: save_CFLAGS="$CFLAGS" adam@1528: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" adam@1528: save_LIBS="$LIBS" adam@1528: LIBS="$PTHREAD_LIBS $LIBS" adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 adam@1528: $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } adam@1528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@1528: /* end confdefs.h. */ adam@1528: adam@1528: /* Override any GCC internal prototype to avoid an error. adam@1528: Use char because int might match the return type of a GCC adam@1528: builtin and then its argument prototype would still apply. */ adam@1528: #ifdef __cplusplus adam@1528: extern "C" adam@1528: #endif adam@1528: char pthread_join (); adam@1528: int adam@1528: main () adam@1528: { adam@1528: return pthread_join (); adam@1528: ; adam@1528: return 0; adam@1528: } adam@1528: _ACEOF adam@1528: if ac_fn_c_try_link "$LINENO"; then : adam@1528: ax_pthread_ok=yes adam@1528: fi adam@1528: rm -f core conftest.err conftest.$ac_objext \ adam@1528: conftest$ac_exeext conftest.$ac_ext adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 adam@1528: $as_echo "$ax_pthread_ok" >&6; } adam@1528: if test x"$ax_pthread_ok" = xno; then adam@1528: PTHREAD_LIBS="" adam@1528: PTHREAD_CFLAGS="" adam@1528: fi adam@1528: LIBS="$save_LIBS" adam@1528: CFLAGS="$save_CFLAGS" adam@1528: fi adam@1528: adam@1528: # We must check for the threads library under a number of different adam@1528: # names; the ordering is very important because some systems adam@1528: # (e.g. DEC) have both -lpthread and -lpthreads, where one of the adam@1528: # libraries is broken (non-POSIX). adam@1528: adam@1528: # Create a list of thread flags to try. Items starting with a "-" are adam@1528: # C compiler flags, and other items are library names, except for "none" adam@1528: # which indicates that we try without any flags at all, and "pthread-config" adam@1528: # which is a program returning the flags for the Pth emulation library. adam@1528: adam@1528: ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" adam@1528: adam@1528: # The ordering *is* (sometimes) important. Some notes on the adam@1528: # individual items follow: adam@1528: adam@1528: # pthreads: AIX (must check this before -lpthread) adam@1528: # none: in case threads are in libc; should be tried before -Kthread and adam@1528: # other compiler flags to prevent continual compiler warnings adam@1528: # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) adam@1528: # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) adam@1528: # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) adam@1528: # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) adam@1528: # -pthreads: Solaris/gcc adam@1528: # -mthreads: Mingw32/gcc, Lynx/gcc adam@1528: # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it adam@1528: # doesn't hurt to check since this sometimes defines pthreads too; adam@1528: # also defines -D_REENTRANT) adam@1528: # ... -mt is also the pthreads flag for HP/aCC adam@1528: # pthread: Linux, etcetera adam@1528: # --thread-safe: KAI C++ adam@1528: # pthread-config: use pthread-config program (for GNU Pth library) adam@1528: adam@1528: case "${host_cpu}-${host_os}" in adam@1528: *solaris*) adam@1528: adam@1528: # On Solaris (at least, for some versions), libc contains stubbed adam@1528: # (non-functional) versions of the pthreads routines, so link-based adam@1528: # tests will erroneously succeed. (We need to link with -pthreads/-mt/ adam@1528: # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather adam@1528: # a function called by this macro, so we could check for that, but adam@1528: # who knows whether they'll stub that too in a future libc.) So, adam@1528: # we'll just look for -pthreads and -lpthread first: adam@1528: adam@1528: ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" adam@1528: ;; adam@1528: adam@1528: *-darwin*) adam@1528: ax_pthread_flags="-pthread $ax_pthread_flags" adam@1528: ;; adam@1528: esac adam@1528: adam@1528: if test x"$ax_pthread_ok" = xno; then adam@1528: for flag in $ax_pthread_flags; do adam@1528: adam@1528: case $flag in adam@1528: none) adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 adam@1528: $as_echo_n "checking whether pthreads work without any flags... " >&6; } adam@1528: ;; adam@1528: adam@1528: -*) adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 adam@1528: $as_echo_n "checking whether pthreads work with $flag... " >&6; } adam@1528: PTHREAD_CFLAGS="$flag" adam@1528: ;; adam@1528: adam@1528: pthread-config) adam@1528: # Extract the first word of "pthread-config", so it can be a program name with args. adam@1528: set dummy pthread-config; ac_word=$2 adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@1528: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_ax_pthread_config+:} false; then : adam@1528: $as_echo_n "(cached) " >&6 adam@1528: else adam@1528: if test -n "$ax_pthread_config"; then adam@1528: ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. adam@1528: else adam@1528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@1528: for as_dir in $PATH adam@1528: do adam@1528: IFS=$as_save_IFS adam@1528: test -z "$as_dir" && as_dir=. adam@1528: for ac_exec_ext in '' $ac_executable_extensions; do adam@1528: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1528: ac_cv_prog_ax_pthread_config="yes" adam@1528: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@1528: break 2 adam@1528: fi adam@1528: done adam@1528: done adam@1528: IFS=$as_save_IFS adam@1528: adam@1528: test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" adam@1528: fi adam@1528: fi adam@1528: ax_pthread_config=$ac_cv_prog_ax_pthread_config adam@1528: if test -n "$ax_pthread_config"; then adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 adam@1528: $as_echo "$ax_pthread_config" >&6; } adam@1528: else adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1528: $as_echo "no" >&6; } adam@1528: fi adam@1528: adam@1528: adam@1528: if test x"$ax_pthread_config" = xno; then continue; fi adam@1528: PTHREAD_CFLAGS="`pthread-config --cflags`" adam@1528: PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" adam@1528: ;; adam@1528: adam@1528: *) adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 adam@1528: $as_echo_n "checking for the pthreads library -l$flag... " >&6; } adam@1528: PTHREAD_LIBS="-l$flag" adam@1528: ;; adam@1528: esac adam@1528: adam@1528: save_LIBS="$LIBS" adam@1528: save_CFLAGS="$CFLAGS" adam@1528: LIBS="$PTHREAD_LIBS $LIBS" adam@1528: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" adam@1528: adam@1528: # Check for various functions. We must include pthread.h, adam@1528: # since some functions may be macros. (On the Sequent, we adam@1528: # need a special flag -Kthread to make this header compile.) adam@1528: # We check for pthread_join because it is in -lpthread on IRIX adam@1528: # while pthread_create is in libc. We check for pthread_attr_init adam@1528: # due to DEC craziness with -lpthreads. We check for adam@1528: # pthread_cleanup_push because it is one of the few pthread adam@1528: # functions on Solaris that doesn't have a non-functional libc stub. adam@1528: # We try pthread_create on general principles. adam@1528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@1528: /* end confdefs.h. */ adam@1528: #include adam@1528: static void routine(void *a) { a = 0; } adam@1528: static void *start_routine(void *a) { return a; } adam@1528: int adam@1528: main () adam@1528: { adam@1528: pthread_t th; pthread_attr_t attr; adam@1528: pthread_create(&th, 0, start_routine, 0); adam@1528: pthread_join(th, 0); adam@1528: pthread_attr_init(&attr); adam@1528: pthread_cleanup_push(routine, 0); adam@1528: pthread_cleanup_pop(0) /* ; */ adam@1528: ; adam@1528: return 0; adam@1528: } adam@1528: _ACEOF adam@1528: if ac_fn_c_try_link "$LINENO"; then : adam@1528: ax_pthread_ok=yes adam@1528: fi adam@1528: rm -f core conftest.err conftest.$ac_objext \ adam@1528: conftest$ac_exeext conftest.$ac_ext adam@1528: adam@1528: LIBS="$save_LIBS" adam@1528: CFLAGS="$save_CFLAGS" adam@1528: adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 adam@1528: $as_echo "$ax_pthread_ok" >&6; } adam@1528: if test "x$ax_pthread_ok" = xyes; then adam@1528: break; adam@1528: fi adam@1528: adam@1528: PTHREAD_LIBS="" adam@1528: PTHREAD_CFLAGS="" adam@1528: done adam@1528: fi adam@1528: adam@1528: # Various other checks: adam@1528: if test "x$ax_pthread_ok" = xyes; then adam@1528: save_LIBS="$LIBS" adam@1528: LIBS="$PTHREAD_LIBS $LIBS" adam@1528: save_CFLAGS="$CFLAGS" adam@1528: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" adam@1528: adam@1528: # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 adam@1528: $as_echo_n "checking for joinable pthread attribute... " >&6; } adam@1528: attr_name=unknown adam@1528: for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do adam@1528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@1528: /* end confdefs.h. */ adam@1528: #include adam@1528: int adam@1528: main () adam@1528: { adam@1528: int attr = $attr; return attr /* ; */ adam@1528: ; adam@1528: return 0; adam@1528: } adam@1528: _ACEOF adam@1528: if ac_fn_c_try_link "$LINENO"; then : adam@1528: attr_name=$attr; break adam@1528: fi adam@1528: rm -f core conftest.err conftest.$ac_objext \ adam@1528: conftest$ac_exeext conftest.$ac_ext adam@1528: done adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 adam@1528: $as_echo "$attr_name" >&6; } adam@1528: if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then adam@1528: adam@1528: cat >>confdefs.h <<_ACEOF adam@1528: #define PTHREAD_CREATE_JOINABLE $attr_name adam@1528: _ACEOF adam@1528: adam@1528: fi adam@1528: adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 adam@1528: $as_echo_n "checking if more special flags are required for pthreads... " >&6; } adam@1528: flag=no adam@1528: case "${host_cpu}-${host_os}" in adam@1528: *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; adam@1528: *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; adam@1528: esac adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 adam@1528: $as_echo "${flag}" >&6; } adam@1528: if test "x$flag" != xno; then adam@1528: PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" adam@1528: fi adam@1528: adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 adam@1528: $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } adam@1599: if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : adam@1528: $as_echo_n "(cached) " >&6 adam@1528: else adam@1528: adam@1528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@1528: /* end confdefs.h. */ adam@1528: adam@1528: #include adam@1528: int adam@1528: main () adam@1528: { adam@1528: int i = PTHREAD_PRIO_INHERIT; adam@1528: ; adam@1528: return 0; adam@1528: } adam@1528: _ACEOF adam@1528: if ac_fn_c_try_link "$LINENO"; then : adam@1528: ax_cv_PTHREAD_PRIO_INHERIT=yes adam@1528: else adam@1528: ax_cv_PTHREAD_PRIO_INHERIT=no adam@1528: fi adam@1528: rm -f core conftest.err conftest.$ac_objext \ adam@1528: conftest$ac_exeext conftest.$ac_ext adam@1528: adam@1528: fi adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 adam@1528: $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } adam@1528: if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : adam@1528: adam@1528: $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h adam@1528: adam@1528: fi adam@1528: adam@1528: LIBS="$save_LIBS" adam@1528: CFLAGS="$save_CFLAGS" adam@1528: adam@1528: # More AIX lossage: must compile with xlc_r or cc_r adam@1528: if test x"$GCC" != xyes; then adam@1528: for ac_prog in xlc_r cc_r adam@1528: do adam@1528: # Extract the first word of "$ac_prog", so it can be a program name with args. adam@1528: set dummy $ac_prog; ac_word=$2 adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@1528: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_PTHREAD_CC+:} false; then : adam@1528: $as_echo_n "(cached) " >&6 adam@1528: else adam@1528: if test -n "$PTHREAD_CC"; then adam@1528: ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. adam@1528: else adam@1528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@1528: for as_dir in $PATH adam@1528: do adam@1528: IFS=$as_save_IFS adam@1528: test -z "$as_dir" && as_dir=. adam@1528: for ac_exec_ext in '' $ac_executable_extensions; do adam@1528: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1528: ac_cv_prog_PTHREAD_CC="$ac_prog" adam@1528: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@1528: break 2 adam@1528: fi adam@1528: done adam@1528: done adam@1528: IFS=$as_save_IFS adam@1528: adam@1528: fi adam@1528: fi adam@1528: PTHREAD_CC=$ac_cv_prog_PTHREAD_CC adam@1528: if test -n "$PTHREAD_CC"; then adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 adam@1528: $as_echo "$PTHREAD_CC" >&6; } adam@1528: else adam@1528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1528: $as_echo "no" >&6; } adam@1528: fi adam@1528: adam@1528: adam@1528: test -n "$PTHREAD_CC" && break adam@1528: done adam@1528: test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" adam@1528: adam@1528: else adam@1528: PTHREAD_CC=$CC adam@1528: fi adam@1528: else adam@1528: PTHREAD_CC="$CC" adam@1528: fi adam@1528: adam@1528: adam@1528: adam@1528: adam@1528: adam@1528: # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: adam@1528: if test x"$ax_pthread_ok" = xyes; then adam@1528: echo >/dev/null adam@1528: : adam@1528: else adam@1528: ax_pthread_ok=no adam@1528: echo "Your C compiler does not support POSIX threads."; exit 1 adam@1528: fi adam@1528: ac_ext=c adam@1528: ac_cpp='$CPP $CPPFLAGS' adam@1528: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@1528: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@1528: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@1528: adam@1528: adam@1528: adam@1528: adam@1368: found=false adam@1368: adam@1368: # Check whether --with-openssl was given. adam@1368: if test "${with_openssl+set}" = set; then : adam@1368: withval=$with_openssl; adam@1368: case "$withval" in adam@1368: "" | y | ye | yes | n | no) adam@1368: as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 adam@1368: ;; adam@1368: *) ssldirs="$withval" adam@1368: ;; adam@1368: esac adam@1368: adam@1368: else adam@1368: adam@1368: # if pkg-config is installed and openssl has installed a .pc file, adam@1368: # then use that information and don't search ssldirs adam@1368: # Extract the first word of "pkg-config", so it can be a program name with args. adam@1368: set dummy pkg-config; ac_word=$2 adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@1368: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_path_PKG_CONFIG+:} false; then : adam@1368: $as_echo_n "(cached) " >&6 adam@1368: else adam@1368: case $PKG_CONFIG in adam@1368: [\\/]* | ?:[\\/]*) adam@1368: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. adam@1368: ;; adam@1368: *) adam@1368: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@1368: for as_dir in $PATH adam@1368: do adam@1368: IFS=$as_save_IFS adam@1368: test -z "$as_dir" && as_dir=. adam@1368: for ac_exec_ext in '' $ac_executable_extensions; do adam@1368: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@1368: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" adam@1368: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@1368: break 2 adam@1368: fi adam@1368: done adam@1368: done adam@1368: IFS=$as_save_IFS adam@1368: adam@1368: ;; adam@1368: esac adam@1368: fi adam@1368: PKG_CONFIG=$ac_cv_path_PKG_CONFIG adam@1368: if test -n "$PKG_CONFIG"; then adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 adam@1368: $as_echo "$PKG_CONFIG" >&6; } adam@1368: else adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1368: $as_echo "no" >&6; } adam@1368: fi adam@1368: adam@1368: adam@1368: if test x"$PKG_CONFIG" != x""; then adam@1368: OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` adam@1368: if test $? = 0; then adam@1368: OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` adam@1368: OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` adam@1368: found=true adam@1368: fi adam@1368: fi adam@1368: adam@1368: # no such luck; use some default ssldirs adam@1368: if ! $found; then adam@1368: ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" adam@1368: fi adam@1368: adam@1368: adam@1368: fi adam@1368: adam@1368: adam@1368: adam@1368: # note that we #include , so the OpenSSL headers have to be in adam@1368: # an 'openssl' subdirectory adam@1368: adam@1368: if ! $found; then adam@1368: OPENSSL_INCLUDES= adam@1368: for ssldir in $ssldirs; do adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 adam@1368: $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } adam@1368: if test -f "$ssldir/include/openssl/ssl.h"; then adam@1368: OPENSSL_INCLUDES="-I$ssldir/include" adam@1368: OPENSSL_LDFLAGS="-L$ssldir/lib" adam@1661: OPENSSL_LIBS=" -lcrypto -lssl" adam@1368: found=true adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adam@1368: $as_echo "yes" >&6; } adam@1368: break adam@1368: else adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1368: $as_echo "no" >&6; } adam@1368: fi adam@1368: done adam@1368: adam@1368: # if the file wasn't found, well, go ahead and try the link anyway -- maybe adam@1368: # it will just work! adam@1368: fi adam@1368: adam@1368: # try the preprocessor and linker with our new flags, adam@1368: # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS adam@1368: adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 adam@1368: $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } adam@1368: echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ adam@1368: "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 adam@1368: adam@1368: save_LIBS="$LIBS" adam@1368: save_LDFLAGS="$LDFLAGS" adam@1368: save_CPPFLAGS="$CPPFLAGS" adam@1368: LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" adam@1368: LIBS="$OPENSSL_LIBS $LIBS" adam@1368: CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" adam@1368: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adamc@1165: /* end confdefs.h. */ adam@1368: #include adamc@1165: int adamc@1165: main () adamc@1165: { adam@1368: SSL_new(NULL) adamc@1165: ; adamc@1165: return 0; adamc@1165: } adamc@1165: _ACEOF adamc@1165: if ac_fn_c_try_link "$LINENO"; then : adam@1368: adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adam@1368: $as_echo "yes" >&6; } adam@1368: echo >/dev/null adam@1368: adam@1368: else adam@1368: adam@1368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@1368: $as_echo "no" >&6; } adam@1369: echo "You must install OpenSSL development files."; exit 1 adam@1368: adamc@1165: fi adamc@1165: rm -f core conftest.err conftest.$ac_objext \ adamc@1165: conftest$ac_exeext conftest.$ac_ext adam@1368: CPPFLAGS="$save_CPPFLAGS" adam@1368: LDFLAGS="$save_LDFLAGS" adam@1368: LIBS="$save_LIBS" adam@1368: adam@1368: adam@1368: adamc@1165: adamc@1165: adamc@1165: adamc@1165: # Extract the first word of "mlton", so it can be a program name with args. adamc@1165: set dummy mlton; ac_word=$2 adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1165: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_MLTON+:} false; then : adamc@1165: $as_echo_n "(cached) " >&6 adamc@1165: else adamc@1165: if test -n "$MLTON"; then adamc@1165: ac_cv_prog_MLTON="$MLTON" # Let the user override the test. adamc@1165: else adamc@1165: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1165: for as_dir in $PATH adamc@1165: do adamc@1165: IFS=$as_save_IFS adamc@1165: test -z "$as_dir" && as_dir=. adamc@1165: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1165: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1165: ac_cv_prog_MLTON="yes" adamc@1165: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1165: break 2 adamc@1165: fi adamc@1165: done adamc@1165: done adamc@1165: IFS=$as_save_IFS adamc@1165: adamc@1165: fi adamc@1165: fi adamc@1165: MLTON=$ac_cv_prog_MLTON adamc@1165: if test -n "$MLTON"; then adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLTON" >&5 adamc@1165: $as_echo "$MLTON" >&6; } adamc@1165: else adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1165: $as_echo "no" >&6; } adamc@1165: fi adamc@1165: adamc@1165: adamc@1165: adamc@1165: if test -z $MLTON; then adamc@1165: echo "You must install MLton." adamc@1165: exit 1 adamc@1165: fi adamc@1165: adamc@1165: # Extract the first word of "mllex", so it can be a program name with args. adamc@1165: set dummy mllex; ac_word=$2 adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1165: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_MLLEX+:} false; then : adamc@1165: $as_echo_n "(cached) " >&6 adamc@1165: else adamc@1165: if test -n "$MLLEX"; then adamc@1165: ac_cv_prog_MLLEX="$MLLEX" # Let the user override the test. adamc@1165: else adamc@1165: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1165: for as_dir in $PATH adamc@1165: do adamc@1165: IFS=$as_save_IFS adamc@1165: test -z "$as_dir" && as_dir=. adamc@1165: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1165: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1165: ac_cv_prog_MLLEX="yes" adamc@1165: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1165: break 2 adamc@1165: fi adamc@1165: done adamc@1165: done adamc@1165: IFS=$as_save_IFS adamc@1165: adamc@1165: fi adamc@1165: fi adamc@1165: MLLEX=$ac_cv_prog_MLLEX adamc@1165: if test -n "$MLLEX"; then adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLLEX" >&5 adamc@1165: $as_echo "$MLLEX" >&6; } adamc@1165: else adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1165: $as_echo "no" >&6; } adamc@1165: fi adamc@1165: adamc@1165: adamc@1165: adamc@1165: if test -z $MLLEX; then adamc@1165: echo "You must install MLton (to get mllex)." adamc@1165: exit 1 adamc@1165: fi adamc@1165: adamc@1165: # Extract the first word of "mlyacc", so it can be a program name with args. adamc@1165: set dummy mlyacc; ac_word=$2 adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adamc@1165: $as_echo_n "checking for $ac_word... " >&6; } adam@1599: if ${ac_cv_prog_MLYACC+:} false; then : adamc@1165: $as_echo_n "(cached) " >&6 adamc@1165: else adamc@1165: if test -n "$MLYACC"; then adamc@1165: ac_cv_prog_MLYACC="$MLYACC" # Let the user override the test. adamc@1165: else adamc@1165: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@1165: for as_dir in $PATH adamc@1165: do adamc@1165: IFS=$as_save_IFS adamc@1165: test -z "$as_dir" && as_dir=. adamc@1165: for ac_exec_ext in '' $ac_executable_extensions; do adamc@1165: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adamc@1165: ac_cv_prog_MLYACC="yes" adamc@1165: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adamc@1165: break 2 adamc@1165: fi adamc@1165: done adamc@1165: done adamc@1165: IFS=$as_save_IFS adamc@1165: adamc@1165: fi adamc@1165: fi adamc@1165: MLYACC=$ac_cv_prog_MLYACC adamc@1165: if test -n "$MLYACC"; then adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLYACC" >&5 adamc@1165: $as_echo "$MLYACC" >&6; } adamc@1165: else adamc@1165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adamc@1165: $as_echo "no" >&6; } adamc@1165: fi adamc@1165: adamc@1165: adamc@1165: adamc@1165: if test -z $MLYACC; then adamc@1165: echo "You must install MLton (to get mlyacc)." adamc@1165: exit 1 adamc@1165: fi adamc@1165: adamc@429: if test $prefix = "NONE"; then adamc@429: prefix=/usr/local adamc@429: fi adamc@429: adamc@378: if test -z $BIN; then adamc@429: BIN=$prefix/bin adamc@378: fi adamc@378: adamc@378: if test -z $LIB; then adamc@429: LIB=$prefix/lib/urweb adamc@378: fi adamc@378: adamc@378: if test -z $INCLUDE; then adamc@429: INCLUDE=$prefix/include/urweb adamc@378: fi adamc@378: adamc@378: if test -z $SITELISP; then adamc@429: SITELISP=$prefix/share/emacs/site-lisp/urweb-mode adamc@378: fi adamc@378: adamc@378: adam@1441: # Check whether --with-emacs was given. adam@1441: if test "${with_emacs+set}" = set; then : adam@1441: withval=$with_emacs; adam@1441: else adam@1441: with_emacs=yes adam@1441: fi adam@1441: adam@1441: adam@1441: if test "x$with_emacs" = xyes; then adam@1441: USE_EMACS_TRUE= adam@1441: USE_EMACS_FALSE='#' adam@1441: else adam@1441: USE_EMACS_TRUE='#' adam@1441: USE_EMACS_FALSE= adam@1441: fi adam@1441: adam@1441: adam@1464: if test -z $PGHEADER; then adam@1464: for ac_header in postgresql/libpq-fe.h adam@1464: do : adam@1464: ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" adam@1599: if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : adam@1464: cat >>confdefs.h <<_ACEOF adam@1464: #define HAVE_POSTGRESQL_LIBPQ_FE_H 1 adam@1464: _ACEOF adam@1464: PGHEADER=postgresql/libpq-fe.h adam@1464: fi adam@1464: adam@1464: done adam@1464: adam@1464: fi adam@1464: adam@1464: if test -z $PGHEADER; then adam@1464: PGHEADER=libpq-fe.h adam@1464: fi adam@1464: adam@1464: if test -z $MSHEADER; then adam@1464: for ac_header in mysql/mysql.h adam@1464: do : adam@1464: ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default" adam@1599: if test "x$ac_cv_header_mysql_mysql_h" = xyes; then : adam@1464: cat >>confdefs.h <<_ACEOF adam@1464: #define HAVE_MYSQL_MYSQL_H 1 adam@1464: _ACEOF adam@1464: MSHEADER=mysql/mysql.h adam@1464: fi adam@1464: adam@1464: done adam@1464: adam@1464: fi adam@1464: adam@1464: if test -z $MSHEADER; then adam@1464: MSHEADER=mysql.h adam@1464: fi adam@1464: adam@1464: if test -z $SQHEADER; then adam@1464: SQHEADER=sqlite3.h adam@1464: fi adam@1464: adam@1520: if test $WORKING_VERSION = "1"; then adam@1526: VERSION="$VERSION + `hg identify || (cat .hg_archival.txt | grep 'node\:') || echo ?`" adam@1520: fi adam@1520: adam@1520: adam@1464: adam@1464: adam@1464: adam@1441: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@1132: adam@1474: adam@1528: adam@1528: adamc@1132: ac_config_files="$ac_config_files Makefile src/c/Makefile src/config.sml" adamc@1132: adamc@378: adamc@378: cat >confcache <<\_ACEOF adamc@378: # This file is a shell script that caches the results of configure adamc@378: # tests run on this system so they can be shared between configure adamc@378: # scripts and configure runs, see configure's option --config-cache. adamc@378: # It is not useful on other systems. If it contains results you don't adamc@378: # want to keep, you may remove or edit it. adamc@378: # adamc@378: # config.status only pays attention to the cache file if you give it adamc@378: # the --recheck option to rerun configure. adamc@378: # adamc@378: # `ac_cv_env_foo' variables (set or unset) will be overridden when adamc@378: # loading this file, other *unset* `ac_cv_foo' will be assigned the adamc@378: # following values. adamc@378: adamc@378: _ACEOF adamc@378: adamc@378: # The following way of writing the cache mishandles newlines in values, adamc@378: # but we know of no workaround that is simple, portable, and efficient. adamc@378: # So, we kill variables containing newlines. adamc@378: # Ultrix sh set writes to stderr and can't be redirected directly, adamc@378: # and sets the high bit in the cache file unless we assign to the vars. adamc@378: ( adamc@378: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do adamc@378: eval ac_val=\$$ac_var adamc@378: case $ac_val in #( adamc@378: *${as_nl}*) adamc@378: case $ac_var in #( adamc@1095: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 adamc@1095: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; adamc@378: esac adamc@378: case $ac_var in #( adamc@378: _ | IFS | as_nl) ;; #( adamc@1095: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( adamc@1095: *) { eval $ac_var=; unset $ac_var;} ;; adamc@378: esac ;; adamc@378: esac adamc@378: done adamc@378: adamc@378: (set) 2>&1 | adamc@378: case $as_nl`(ac_space=' '; set) 2>&1` in #( adamc@378: *${as_nl}ac_space=\ *) adamc@1095: # `set' does not quote correctly, so add quotes: double-quote adamc@1095: # substitution turns \\\\ into \\, and sed turns \\ into \. adamc@378: sed -n \ adamc@378: "s/'/'\\\\''/g; adamc@378: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" adamc@378: ;; #( adamc@378: *) adamc@378: # `set' quotes correctly as required by POSIX, so do not add quotes. adamc@378: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" adamc@378: ;; adamc@378: esac | adamc@378: sort adamc@378: ) | adamc@378: sed ' adamc@378: /^ac_cv_env_/b end adamc@378: t clear adamc@378: :clear adamc@378: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ adamc@378: t end adamc@378: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ adamc@378: :end' >>confcache adamc@378: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else adamc@378: if test -w "$cache_file"; then adam@1599: if test "x$cache_file" != "x/dev/null"; then adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 adamc@1095: $as_echo "$as_me: updating cache $cache_file" >&6;} adam@1599: if test ! -f "$cache_file" || test -h "$cache_file"; then adam@1599: cat confcache >"$cache_file" adam@1599: else adam@1599: case $cache_file in #( adam@1599: */* | ?:*) adam@1599: mv -f confcache "$cache_file"$$ && adam@1599: mv -f "$cache_file"$$ "$cache_file" ;; #( adam@1599: *) adam@1599: mv -f confcache "$cache_file" ;; adam@1599: esac adam@1599: fi adam@1599: fi adamc@378: else adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 adamc@1095: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} adamc@378: fi adamc@378: fi adamc@378: rm -f confcache adamc@378: adamc@378: test "x$prefix" = xNONE && prefix=$ac_default_prefix adamc@378: # Let make expand exec_prefix. adamc@378: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' adamc@378: adamc@1263: DEFS=-DHAVE_CONFIG_H adamc@378: adamc@378: ac_libobjs= adamc@378: ac_ltlibobjs= adam@1315: U= adamc@378: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue adamc@378: # 1. Remove the extension, and $U if already installed. adamc@378: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' adamc@1095: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` adamc@378: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR adamc@378: # will be set to the directory where LIBOBJS objects are built. adamc@1095: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" adamc@1095: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' adamc@378: done adamc@378: LIBOBJS=$ac_libobjs adamc@378: adamc@378: LTLIBOBJS=$ac_ltlibobjs adamc@378: adamc@378: adamc@1149: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then adam@1315: as_fn_error $? "conditional \"AMDEP\" was never defined. adamc@1149: Usually this means the macro was only invoked conditionally." "$LINENO" 5 adamc@1149: fi adamc@1149: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then adam@1315: as_fn_error $? "conditional \"am__fastdepCC\" was never defined. adamc@1149: Usually this means the macro was only invoked conditionally." "$LINENO" 5 adamc@1149: fi adamc@1132: if test -n "$EXEEXT"; then adamc@1132: am__EXEEXT_TRUE= adamc@1132: am__EXEEXT_FALSE='#' adamc@1132: else adamc@1132: am__EXEEXT_TRUE='#' adamc@1132: am__EXEEXT_FALSE= adamc@1132: fi adamc@1132: adam@1441: if test -z "${USE_EMACS_TRUE}" && test -z "${USE_EMACS_FALSE}"; then adam@1441: as_fn_error $? "conditional \"USE_EMACS\" was never defined. adam@1441: Usually this means the macro was only invoked conditionally." "$LINENO" 5 adam@1441: fi adamc@378: adam@1599: : "${CONFIG_STATUS=./config.status}" adamc@1095: ac_write_fail=0 adamc@378: ac_clean_files_save=$ac_clean_files adamc@378: ac_clean_files="$ac_clean_files $CONFIG_STATUS" adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 adamc@1095: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} adamc@1095: as_write_fail=0 adamc@1095: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 adamc@378: #! $SHELL adamc@378: # Generated by $as_me. adamc@378: # Run this file to recreate the current configuration. adamc@378: # Compiler output produced by configure, useful for debugging adamc@378: # configure, is in config.log if it exists. adamc@378: adamc@378: debug=false adamc@378: ac_cs_recheck=false adamc@378: ac_cs_silent=false adamc@1095: adamc@378: SHELL=\${CONFIG_SHELL-$SHELL} adamc@1095: export SHELL adamc@1095: _ASEOF adamc@1095: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 adamc@1095: ## -------------------- ## adamc@1095: ## M4sh Initialization. ## adamc@1095: ## -------------------- ## adamc@378: adamc@378: # Be more Bourne compatible adamc@378: DUALCASE=1; export DUALCASE # for MKS sh adamc@1095: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : adamc@378: emulate sh adamc@378: NULLCMD=: adamc@1095: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which adamc@378: # is contrary to our usage. Disable this feature. adamc@378: alias -g '${1+"$@"}'='"$@"' adamc@378: setopt NO_GLOB_SUBST adamc@378: else adamc@1095: case `(set -o) 2>/dev/null` in #( adamc@1095: *posix*) : adamc@1095: set -o posix ;; #( adamc@1095: *) : adamc@1095: ;; adamc@378: esac adamc@378: fi adamc@378: adamc@378: adamc@1095: as_nl=' adamc@1095: ' adamc@1095: export as_nl adamc@1095: # Printing a long string crashes Solaris 7 /usr/bin/printf. adamc@1095: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' adamc@1095: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo adamc@1095: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo adamc@1095: # Prefer a ksh shell builtin over an external printf program on Solaris, adamc@1095: # but without wasting forks for bash or zsh. adamc@1095: if test -z "$BASH_VERSION$ZSH_VERSION" \ adamc@1095: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then adamc@1095: as_echo='print -r --' adamc@1095: as_echo_n='print -rn --' adamc@1095: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then adamc@1095: as_echo='printf %s\n' adamc@1095: as_echo_n='printf %s' adamc@1095: else adamc@1095: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then adamc@1095: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' adamc@1095: as_echo_n='/usr/ucb/echo -n' adamc@1095: else adamc@1095: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' adamc@1095: as_echo_n_body='eval adamc@1095: arg=$1; adamc@1095: case $arg in #( adamc@1095: *"$as_nl"*) adamc@1095: expr "X$arg" : "X\\(.*\\)$as_nl"; adamc@1095: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; adamc@1095: esac; adamc@1095: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" adamc@1095: ' adamc@1095: export as_echo_n_body adamc@1095: as_echo_n='sh -c $as_echo_n_body as_echo' adamc@1095: fi adamc@1095: export as_echo_body adamc@1095: as_echo='sh -c $as_echo_body as_echo' adamc@1095: fi adamc@378: adamc@378: # The user is always right. adamc@378: if test "${PATH_SEPARATOR+set}" != set; then adamc@1095: PATH_SEPARATOR=: adamc@1095: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { adamc@1095: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || adamc@1095: PATH_SEPARATOR=';' adamc@1095: } adamc@378: fi adamc@378: adamc@378: adamc@378: # IFS adamc@378: # We need space, tab and new line, in precisely that order. Quoting is adamc@378: # there to prevent editors from complaining about space-tab. adamc@378: # (If _AS_PATH_WALK were called with IFS unset, it would disable word adamc@378: # splitting by setting IFS to empty value.) adamc@378: IFS=" "" $as_nl" adamc@378: adamc@378: # Find who we are. Look in the path if we contain no directory separator. adam@1599: as_myself= adamc@1095: case $0 in #(( adamc@378: *[\\/]* ) as_myself=$0 ;; adamc@378: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adamc@378: for as_dir in $PATH adamc@378: do adamc@378: IFS=$as_save_IFS adamc@378: test -z "$as_dir" && as_dir=. adamc@1095: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break adamc@1095: done adamc@378: IFS=$as_save_IFS adamc@378: adamc@378: ;; adamc@378: esac adamc@378: # We did not find ourselves, most probably we were run as `sh COMMAND' adamc@378: # in which case we are not to be found in the path. adamc@378: if test "x$as_myself" = x; then adamc@378: as_myself=$0 adamc@378: fi adamc@378: if test ! -f "$as_myself"; then adamc@1095: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 adamc@1095: exit 1 adamc@378: fi adamc@378: adamc@1095: # Unset variables that we do not need and which cause bugs (e.g. in adamc@1095: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" adamc@1095: # suppresses any "Segmentation fault" message there. '((' could adamc@1095: # trigger a bug in pdksh 5.2.14. adamc@1095: for as_var in BASH_ENV ENV MAIL MAILPATH adamc@1095: do eval test x\${$as_var+set} = xset \ adamc@1095: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : adamc@378: done adamc@378: PS1='$ ' adamc@378: PS2='> ' adamc@378: PS4='+ ' adamc@378: adamc@378: # NLS nuisances. adamc@1095: LC_ALL=C adamc@1095: export LC_ALL adamc@1095: LANGUAGE=C adamc@1095: export LANGUAGE adamc@1095: adamc@1095: # CDPATH. adamc@1095: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH adamc@1095: adamc@1095: adam@1315: # as_fn_error STATUS ERROR [LINENO LOG_FD] adam@1315: # ---------------------------------------- adamc@1095: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are adamc@1095: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the adam@1315: # script with STATUS, using 1 if that was 0. adamc@1095: as_fn_error () adamc@1095: { adam@1315: as_status=$1; test $as_status -eq 0 && as_status=1 adam@1315: if test "$4"; then adam@1315: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@1315: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 adam@1315: fi adam@1315: $as_echo "$as_me: error: $2" >&2 adamc@1095: as_fn_exit $as_status adamc@1095: } # as_fn_error adamc@378: adamc@1095: adamc@1095: # as_fn_set_status STATUS adamc@1095: # ----------------------- adamc@1095: # Set $? to STATUS, without forking. adamc@1095: as_fn_set_status () adamc@1095: { adamc@1095: return $1 adamc@1095: } # as_fn_set_status adamc@1095: adamc@1095: # as_fn_exit STATUS adamc@1095: # ----------------- adamc@1095: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. adamc@1095: as_fn_exit () adamc@1095: { adamc@1095: set +e adamc@1095: as_fn_set_status $1 adamc@1095: exit $1 adamc@1095: } # as_fn_exit adamc@1095: adamc@1095: # as_fn_unset VAR adamc@1095: # --------------- adamc@1095: # Portably unset VAR. adamc@1095: as_fn_unset () adamc@1095: { adamc@1095: { eval $1=; unset $1;} adamc@1095: } adamc@1095: as_unset=as_fn_unset adamc@1095: # as_fn_append VAR VALUE adamc@1095: # ---------------------- adamc@1095: # Append the text in VALUE to the end of the definition contained in VAR. Take adamc@1095: # advantage of any shell optimizations that allow amortized linear growth over adamc@1095: # repeated appends, instead of the typical quadratic growth present in naive adamc@1095: # implementations. adamc@1095: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : adamc@1095: eval 'as_fn_append () adamc@1095: { adamc@1095: eval $1+=\$2 adamc@1095: }' adamc@1095: else adamc@1095: as_fn_append () adamc@1095: { adamc@1095: eval $1=\$$1\$2 adamc@1095: } adamc@1095: fi # as_fn_append adamc@1095: adamc@1095: # as_fn_arith ARG... adamc@1095: # ------------------ adamc@1095: # Perform arithmetic evaluation on the ARGs, and store the result in the adamc@1095: # global $as_val. Take advantage of shells that can avoid forks. The arguments adamc@1095: # must be portable across $(()) and expr. adamc@1095: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : adamc@1095: eval 'as_fn_arith () adamc@1095: { adamc@1095: as_val=$(( $* )) adamc@1095: }' adamc@1095: else adamc@1095: as_fn_arith () adamc@1095: { adamc@1095: as_val=`expr "$@" || test $? -eq 1` adamc@1095: } adamc@1095: fi # as_fn_arith adamc@1095: adamc@1095: adamc@378: if expr a : '\(a\)' >/dev/null 2>&1 && adamc@378: test "X`expr 00001 : '.*\(...\)'`" = X001; then adamc@378: as_expr=expr adamc@378: else adamc@378: as_expr=false adamc@378: fi adamc@378: adamc@378: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then adamc@378: as_basename=basename adamc@378: else adamc@378: as_basename=false adamc@378: fi adamc@378: adamc@1095: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then adamc@1095: as_dirname=dirname adamc@1095: else adamc@1095: as_dirname=false adamc@1095: fi adamc@378: adamc@378: as_me=`$as_basename -- "$0" || adamc@378: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ adamc@378: X"$0" : 'X\(//\)$' \| \ adamc@378: X"$0" : 'X\(/\)' \| . 2>/dev/null || adamc@1095: $as_echo X/"$0" | adamc@378: sed '/^.*\/\([^/][^/]*\)\/*$/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\/\(\/\/\)$/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\/\(\/\).*/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: s/.*/./; q'` adamc@378: adamc@1095: # Avoid depending upon Character Ranges. adamc@1095: as_cr_letters='abcdefghijklmnopqrstuvwxyz' adamc@1095: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' adamc@1095: as_cr_Letters=$as_cr_letters$as_cr_LETTERS adamc@1095: as_cr_digits='0123456789' adamc@1095: as_cr_alnum=$as_cr_Letters$as_cr_digits adamc@378: adamc@378: ECHO_C= ECHO_N= ECHO_T= adamc@1095: case `echo -n x` in #((((( adamc@378: -n*) adamc@1095: case `echo 'xy\c'` in adamc@378: *c*) ECHO_T=' ';; # ECHO_T is single tab character. adamc@1095: xy) ECHO_C='\c';; adamc@1095: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null adamc@1095: ECHO_T=' ';; adamc@378: esac;; adamc@378: *) adamc@378: ECHO_N='-n';; adamc@378: esac adamc@378: adamc@378: rm -f conf$$ conf$$.exe conf$$.file adamc@378: if test -d conf$$.dir; then adamc@378: rm -f conf$$.dir/conf$$.file adamc@378: else adamc@378: rm -f conf$$.dir adamc@1095: mkdir conf$$.dir 2>/dev/null adamc@378: fi adamc@1095: if (echo >conf$$.file) 2>/dev/null; then adamc@1095: if ln -s conf$$.file conf$$ 2>/dev/null; then adamc@1095: as_ln_s='ln -s' adamc@1095: # ... but there are two gotchas: adamc@1095: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. adamc@1095: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. adamc@1095: # In both cases, we have to default to `cp -p'. adamc@1095: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || adamc@1095: as_ln_s='cp -p' adamc@1095: elif ln conf$$.file conf$$ 2>/dev/null; then adamc@1095: as_ln_s=ln adamc@1095: else adamc@378: as_ln_s='cp -p' adamc@1095: fi adamc@378: else adamc@378: as_ln_s='cp -p' adamc@378: fi adamc@378: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file adamc@378: rmdir conf$$.dir 2>/dev/null adamc@378: adamc@1095: adamc@1095: # as_fn_mkdir_p adamc@1095: # ------------- adamc@1095: # Create "$as_dir" as a directory, including parents if necessary. adamc@1095: as_fn_mkdir_p () adamc@1095: { adamc@1095: adamc@1095: case $as_dir in #( adamc@1095: -*) as_dir=./$as_dir;; adamc@1095: esac adamc@1095: test -d "$as_dir" || eval $as_mkdir_p || { adamc@1095: as_dirs= adamc@1095: while :; do adamc@1095: case $as_dir in #( adamc@1095: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( adamc@1095: *) as_qdir=$as_dir;; adamc@1095: esac adamc@1095: as_dirs="'$as_qdir' $as_dirs" adamc@1095: as_dir=`$as_dirname -- "$as_dir" || adamc@1095: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adamc@1095: X"$as_dir" : 'X\(//\)[^/]' \| \ adamc@1095: X"$as_dir" : 'X\(//\)$' \| \ adamc@1095: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || adamc@1095: $as_echo X"$as_dir" | adamc@1095: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adamc@1095: s//\1/ adamc@1095: q adamc@1095: } adamc@1095: /^X\(\/\/\)[^/].*/{ adamc@1095: s//\1/ adamc@1095: q adamc@1095: } adamc@1095: /^X\(\/\/\)$/{ adamc@1095: s//\1/ adamc@1095: q adamc@1095: } adamc@1095: /^X\(\/\).*/{ adamc@1095: s//\1/ adamc@1095: q adamc@1095: } adamc@1095: s/.*/./; q'` adamc@1095: test -d "$as_dir" && break adamc@1095: done adamc@1095: test -z "$as_dirs" || eval "mkdir $as_dirs" adam@1315: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" adamc@1095: adamc@1095: adamc@1095: } # as_fn_mkdir_p adamc@378: if mkdir -p . 2>/dev/null; then adamc@1095: as_mkdir_p='mkdir -p "$as_dir"' adamc@378: else adamc@378: test -d ./-p && rmdir ./-p adamc@378: as_mkdir_p=false adamc@378: fi adamc@378: adamc@378: if test -x / >/dev/null 2>&1; then adamc@378: as_test_x='test -x' adamc@378: else adamc@378: if ls -dL / >/dev/null 2>&1; then adamc@378: as_ls_L_option=L adamc@378: else adamc@378: as_ls_L_option= adamc@378: fi adamc@378: as_test_x=' adamc@378: eval sh -c '\'' adamc@378: if test -d "$1"; then adamc@1095: test -d "$1/."; adamc@378: else adamc@1095: case $1 in #( adamc@1095: -*)set "./$1";; adamc@378: esac; adamc@1095: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( adamc@378: ???[sx]*):;;*)false;;esac;fi adamc@378: '\'' sh adamc@378: ' adamc@378: fi adamc@378: as_executable_p=$as_test_x adamc@378: adamc@378: # Sed expression to map a string onto a valid CPP name. adamc@378: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" adamc@378: adamc@378: # Sed expression to map a string onto a valid variable name. adamc@378: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" adamc@378: adamc@378: adamc@378: exec 6>&1 adamc@1095: ## ----------------------------------- ## adamc@1095: ## Main body of $CONFIG_STATUS script. ## adamc@1095: ## ----------------------------------- ## adamc@1095: _ASEOF adamc@1095: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 adamc@378: adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@1095: # Save the log message, to keep $0 and so on meaningful, and to adamc@378: # report actual input values of CONFIG_FILES etc. instead of their adamc@378: # values after options handling. adamc@378: ac_log=" adam@1616: This file was extended by urweb $as_me 20111127, which was adam@1599: generated by GNU Autoconf 2.68. Invocation command line was adamc@378: adamc@378: CONFIG_FILES = $CONFIG_FILES adamc@378: CONFIG_HEADERS = $CONFIG_HEADERS adamc@378: CONFIG_LINKS = $CONFIG_LINKS adamc@378: CONFIG_COMMANDS = $CONFIG_COMMANDS adamc@378: $ $0 $@ adamc@378: adamc@378: on `(hostname || uname -n) 2>/dev/null | sed 1q` adamc@378: " adamc@378: adamc@378: _ACEOF adamc@378: adamc@1095: case $ac_config_files in *" adamc@1095: "*) set x $ac_config_files; shift; ac_config_files=$*;; adamc@1095: esac adamc@1095: adamc@1263: case $ac_config_headers in *" adamc@1263: "*) set x $ac_config_headers; shift; ac_config_headers=$*;; adamc@1263: esac adamc@1095: adamc@1095: adamc@1095: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adamc@378: # Files that config.status was made for. adamc@378: config_files="$ac_config_files" adamc@1263: config_headers="$ac_config_headers" adamc@1132: config_commands="$ac_config_commands" adamc@378: adamc@378: _ACEOF adamc@378: adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@378: ac_cs_usage="\ adamc@1095: \`$as_me' instantiates files and other configuration actions adamc@1095: from templates according to the current configuration. Unless the files adamc@1095: and actions are specified as TAGs, all are instantiated by default. adamc@378: adamc@1095: Usage: $0 [OPTION]... [TAG]... adamc@378: adamc@378: -h, --help print this help, then exit adamc@378: -V, --version print version number and configuration settings, then exit adamc@1095: --config print configuration, then exit adamc@1095: -q, --quiet, --silent adamc@1095: do not print progress messages adamc@378: -d, --debug don't remove temporary files adamc@378: --recheck update $as_me by reconfiguring in the same conditions adamc@1095: --file=FILE[:TEMPLATE] adamc@1095: instantiate the configuration file FILE adamc@1263: --header=FILE[:TEMPLATE] adamc@1263: instantiate the configuration header FILE adamc@378: adamc@378: Configuration files: adamc@378: $config_files adamc@378: adamc@1263: Configuration headers: adamc@1263: $config_headers adamc@1263: adamc@1132: Configuration commands: adamc@1132: $config_commands adamc@1132: adamc@1095: Report bugs to the package provider." adamc@378: adamc@378: _ACEOF adamc@1095: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adamc@1095: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" adamc@378: ac_cs_version="\\ adam@1616: urweb config.status 20111127 adam@1599: configured by $0, generated by GNU Autoconf 2.68, adamc@1095: with options \\"\$ac_cs_config\\" adamc@378: adam@1315: Copyright (C) 2010 Free Software Foundation, Inc. adamc@378: This config.status script is free software; the Free Software Foundation adamc@378: gives unlimited permission to copy, distribute and modify it." adamc@378: adamc@378: ac_pwd='$ac_pwd' adamc@378: srcdir='$srcdir' adamc@1132: INSTALL='$INSTALL' adamc@1132: MKDIR_P='$MKDIR_P' adamc@1132: AWK='$AWK' adamc@1095: test -n "\$AWK" || AWK=awk adamc@378: _ACEOF adamc@378: adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@1095: # The default lists apply if the user does not specify any file. adamc@378: ac_need_defaults=: adamc@378: while test $# != 0 adamc@378: do adamc@378: case $1 in adam@1315: --*=?*) adamc@378: ac_option=`expr "X$1" : 'X\([^=]*\)='` adamc@378: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` adamc@378: ac_shift=: adamc@378: ;; adam@1315: --*=) adam@1315: ac_option=`expr "X$1" : 'X\([^=]*\)='` adam@1315: ac_optarg= adam@1315: ac_shift=: adam@1315: ;; adamc@378: *) adamc@378: ac_option=$1 adamc@378: ac_optarg=$2 adamc@378: ac_shift=shift adamc@378: ;; adamc@378: esac adamc@378: adamc@378: case $ac_option in adamc@378: # Handling of the options. adamc@378: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) adamc@378: ac_cs_recheck=: ;; adamc@378: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) adamc@1095: $as_echo "$ac_cs_version"; exit ;; adamc@1095: --config | --confi | --conf | --con | --co | --c ) adamc@1095: $as_echo "$ac_cs_config"; exit ;; adamc@378: --debug | --debu | --deb | --de | --d | -d ) adamc@378: debug=: ;; adamc@378: --file | --fil | --fi | --f ) adamc@378: $ac_shift adamc@1095: case $ac_optarg in adamc@1095: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; adam@1315: '') as_fn_error $? "missing file argument" ;; adamc@1095: esac adamc@1095: as_fn_append CONFIG_FILES " '$ac_optarg'" adamc@378: ac_need_defaults=false;; adamc@1263: --header | --heade | --head | --hea ) adamc@1263: $ac_shift adamc@1263: case $ac_optarg in adamc@1263: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; adamc@1263: esac adamc@1263: as_fn_append CONFIG_HEADERS " '$ac_optarg'" adamc@1263: ac_need_defaults=false;; adamc@1263: --he | --h) adamc@1263: # Conflict between --help and --header adam@1315: as_fn_error $? "ambiguous option: \`$1' adamc@1263: Try \`$0 --help' for more information.";; adamc@1263: --help | --hel | -h ) adamc@1095: $as_echo "$ac_cs_usage"; exit ;; adamc@378: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ adamc@378: | -silent | --silent | --silen | --sile | --sil | --si | --s) adamc@378: ac_cs_silent=: ;; adamc@378: adamc@378: # This is an error. adam@1315: -*) as_fn_error $? "unrecognized option: \`$1' adamc@1095: Try \`$0 --help' for more information." ;; adamc@378: adamc@1095: *) as_fn_append ac_config_targets " $1" adamc@378: ac_need_defaults=false ;; adamc@378: adamc@378: esac adamc@378: shift adamc@378: done adamc@378: adamc@378: ac_configure_extra_args= adamc@378: adamc@378: if $ac_cs_silent; then adamc@378: exec 6>/dev/null adamc@378: ac_configure_extra_args="$ac_configure_extra_args --silent" adamc@378: fi adamc@378: adamc@378: _ACEOF adamc@1095: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adamc@378: if \$ac_cs_recheck; then adamc@1095: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion adamc@1095: shift adamc@1095: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 adamc@1095: CONFIG_SHELL='$SHELL' adamc@378: export CONFIG_SHELL adamc@1095: exec "\$@" adamc@378: fi adamc@378: adamc@378: _ACEOF adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@378: exec 5>>config.log adamc@378: { adamc@378: echo adamc@378: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX adamc@378: ## Running $as_me. ## adamc@378: _ASBOX adamc@1095: $as_echo "$ac_log" adamc@378: } >&5 adamc@378: adamc@378: _ACEOF adamc@1095: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adamc@1132: # adamc@1132: # INIT-COMMANDS adamc@1132: # adamc@1132: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" adamc@1132: adamc@1132: adamc@1132: # The HP-UX ksh and POSIX shell print the target directory to stdout adamc@1132: # if CDPATH is set. adamc@1132: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH adamc@1132: adamc@1132: sed_quote_subst='$sed_quote_subst' adamc@1132: double_quote_subst='$double_quote_subst' adamc@1132: delay_variable_subst='$delay_variable_subst' adam@1459: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' adam@1459: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' adam@1459: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' adam@1459: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' adam@1459: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' adam@1459: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' adam@1459: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' adam@1459: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' adam@1599: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' adam@1459: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' adam@1459: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' adam@1459: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' adam@1459: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' adam@1459: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' adam@1459: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' adam@1459: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' adam@1459: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' adam@1459: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' adam@1459: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' adam@1459: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' adam@1459: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' adam@1459: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' adam@1459: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' adam@1459: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' adam@1459: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' adam@1459: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' adam@1459: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' adam@1459: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' adam@1459: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' adam@1459: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' adam@1459: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' adam@1459: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' adam@1459: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' adam@1459: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' adam@1459: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' adam@1459: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' adam@1459: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' adam@1459: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' adam@1459: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' adam@1459: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' adam@1459: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' adam@1459: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' adam@1459: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' adam@1459: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' adam@1459: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' adam@1459: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' adam@1459: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' adam@1459: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' adam@1459: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' adam@1459: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' adam@1459: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' adam@1459: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' adam@1459: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' adam@1459: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' adam@1459: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' adam@1459: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' adam@1459: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' adam@1459: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' adam@1459: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' adam@1459: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' adam@1459: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' adam@1459: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' adam@1459: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' adam@1459: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' adam@1459: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' adam@1459: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' adam@1459: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' adam@1459: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' adam@1459: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' adam@1459: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' adam@1459: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' adam@1459: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' adam@1459: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' adam@1459: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' adam@1459: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' adam@1459: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' adam@1459: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' adam@1459: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' adam@1459: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' adam@1459: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' adam@1459: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' adam@1459: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' adam@1459: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' adam@1459: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' adam@1459: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' adam@1459: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' adam@1459: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' adam@1459: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' adam@1459: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' adam@1459: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' adam@1459: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' adam@1459: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' adam@1459: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' adam@1459: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' adam@1459: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' adam@1459: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' adam@1459: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' adam@1459: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' adam@1459: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' adam@1459: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' adam@1459: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' adam@1459: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' adam@1459: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' adam@1459: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' adam@1459: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' adamc@1132: adamc@1132: LTCC='$LTCC' adamc@1132: LTCFLAGS='$LTCFLAGS' adamc@1132: compiler='$compiler_DEFAULT' adamc@1132: adam@1459: # A function that is used when there is no print builtin or printf. adam@1459: func_fallback_echo () adam@1459: { adam@1459: eval 'cat <<_LTECHO_EOF adam@1459: \$1 adam@1459: _LTECHO_EOF' adam@1459: } adam@1459: adamc@1132: # Quote evaled strings. adam@1459: for var in SHELL \ adam@1459: ECHO \ adam@1599: PATH_SEPARATOR \ adam@1459: SED \ adamc@1132: GREP \ adamc@1132: EGREP \ adamc@1132: FGREP \ adamc@1132: LD \ adamc@1132: NM \ adamc@1132: LN_S \ adamc@1132: lt_SP2NL \ adamc@1132: lt_NL2SP \ adamc@1132: reload_flag \ adamc@1132: OBJDUMP \ adamc@1132: deplibs_check_method \ adamc@1132: file_magic_cmd \ adam@1459: file_magic_glob \ adam@1459: want_nocaseglob \ adam@1459: DLLTOOL \ adam@1459: sharedlib_from_linklib_cmd \ adamc@1132: AR \ adamc@1132: AR_FLAGS \ adam@1459: archiver_list_spec \ adamc@1132: STRIP \ adamc@1132: RANLIB \ adamc@1132: CC \ adamc@1132: CFLAGS \ adamc@1132: compiler \ adamc@1132: lt_cv_sys_global_symbol_pipe \ adamc@1132: lt_cv_sys_global_symbol_to_cdecl \ adamc@1132: lt_cv_sys_global_symbol_to_c_name_address \ adamc@1132: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ adam@1459: nm_file_list_spec \ adamc@1132: lt_prog_compiler_no_builtin_flag \ adam@1459: lt_prog_compiler_pic \ adamc@1132: lt_prog_compiler_wl \ adamc@1132: lt_prog_compiler_static \ adamc@1132: lt_cv_prog_compiler_c_o \ adamc@1132: need_locks \ adam@1459: MANIFEST_TOOL \ adamc@1132: DSYMUTIL \ adamc@1132: NMEDIT \ adamc@1132: LIPO \ adamc@1132: OTOOL \ adamc@1132: OTOOL64 \ adamc@1132: shrext_cmds \ adamc@1132: export_dynamic_flag_spec \ adamc@1132: whole_archive_flag_spec \ adamc@1132: compiler_needs_object \ adamc@1132: with_gnu_ld \ adamc@1132: allow_undefined_flag \ adamc@1132: no_undefined_flag \ adamc@1132: hardcode_libdir_flag_spec \ adamc@1132: hardcode_libdir_separator \ adamc@1132: exclude_expsyms \ adamc@1132: include_expsyms \ adamc@1132: file_list_spec \ adamc@1132: variables_saved_for_relink \ adamc@1132: libname_spec \ adamc@1132: library_names_spec \ adamc@1132: soname_spec \ adam@1459: install_override_mode \ adamc@1132: finish_eval \ adamc@1132: old_striplib \ adamc@1132: striplib; do adam@1459: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in adamc@1132: *[\\\\\\\`\\"\\\$]*) adam@1459: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" adamc@1132: ;; adamc@1132: *) adamc@1132: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" adamc@1132: ;; adamc@1132: esac adamc@1132: done adamc@1132: adamc@1132: # Double-quote double-evaled strings. adamc@1132: for var in reload_cmds \ adamc@1132: old_postinstall_cmds \ adamc@1132: old_postuninstall_cmds \ adamc@1132: old_archive_cmds \ adamc@1132: extract_expsyms_cmds \ adamc@1132: old_archive_from_new_cmds \ adamc@1132: old_archive_from_expsyms_cmds \ adamc@1132: archive_cmds \ adamc@1132: archive_expsym_cmds \ adamc@1132: module_cmds \ adamc@1132: module_expsym_cmds \ adamc@1132: export_symbols_cmds \ adamc@1132: prelink_cmds \ adam@1459: postlink_cmds \ adamc@1132: postinstall_cmds \ adamc@1132: postuninstall_cmds \ adamc@1132: finish_cmds \ adamc@1132: sys_lib_search_path_spec \ adamc@1132: sys_lib_dlsearch_path_spec; do adam@1459: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in adamc@1132: *[\\\\\\\`\\"\\\$]*) adam@1459: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" adamc@1132: ;; adamc@1132: *) adamc@1132: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" adamc@1132: ;; adamc@1132: esac adamc@1132: done adamc@1132: adamc@1132: ac_aux_dir='$ac_aux_dir' adamc@1132: xsi_shell='$xsi_shell' adamc@1132: lt_shell_append='$lt_shell_append' adamc@1132: adamc@1132: # See if we are running on zsh, and set the options which allow our adamc@1132: # commands through without removal of \ escapes INIT. adamc@1132: if test -n "\${ZSH_VERSION+set}" ; then adamc@1132: setopt NO_GLOB_SUBST adamc@1132: fi adamc@1132: adamc@1132: adamc@1132: PACKAGE='$PACKAGE' adamc@1132: VERSION='$VERSION' adamc@1132: TIMESTAMP='$TIMESTAMP' adamc@1132: RM='$RM' adamc@1132: ofile='$ofile' adamc@1132: adamc@1132: adamc@1132: adamc@1132: adamc@378: _ACEOF adamc@378: adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@378: adamc@378: # Handling of arguments. adamc@378: for ac_config_target in $ac_config_targets adamc@378: do adamc@378: case $ac_config_target in adamc@1132: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; adamc@1132: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; adamc@1263: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; adamc@378: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; adamc@1132: "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;; adamc@378: "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;; adamc@378: adam@1599: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; adamc@378: esac adamc@378: done adamc@378: adamc@378: adamc@378: # If the user did not use the arguments to specify the items to instantiate, adamc@378: # then the envvar interface is used. Set only those that are not. adamc@378: # We use the long form for the default assignment because of an extremely adamc@378: # bizarre bug on SunOS 4.1.3. adamc@378: if $ac_need_defaults; then adamc@378: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files adamc@1263: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers adamc@1132: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands adamc@378: fi adamc@378: adamc@378: # Have a temporary directory for convenience. Make it in the build tree adamc@378: # simply because there is no reason against having it here, and in addition, adamc@378: # creating and moving files from /tmp can sometimes cause problems. adamc@378: # Hook for its removal unless debugging. adamc@378: # Note that there is a small window in which the directory will not be cleaned: adamc@378: # after its creation but before its name has been assigned to `$tmp'. adamc@378: $debug || adamc@378: { adam@1599: tmp= ac_tmp= adamc@378: trap 'exit_status=$? adam@1599: : "${ac_tmp:=$tmp}" adam@1599: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status adamc@378: ' 0 adamc@1095: trap 'as_fn_exit 1' 1 2 13 15 adamc@378: } adamc@378: # Create a (secure) tmp directory for tmp files. adamc@378: adamc@378: { adamc@378: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && adam@1599: test -d "$tmp" adamc@378: } || adamc@378: { adamc@378: tmp=./conf$$-$RANDOM adamc@378: (umask 077 && mkdir "$tmp") adam@1315: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 adam@1599: ac_tmp=$tmp adamc@378: adamc@1095: # Set up the scripts for CONFIG_FILES section. adamc@1095: # No need to generate them if there are no CONFIG_FILES. adamc@1095: # This happens for instance with `./config.status config.h'. adamc@378: if test -n "$CONFIG_FILES"; then adamc@378: adamc@1095: adamc@1095: ac_cr=`echo X | tr X '\015'` adamc@1095: # On cygwin, bash can eat \r inside `` if the user requested igncr. adamc@1095: # But we know of no other shell where ac_cr would be empty at this adamc@1095: # point, so we can use a bashism as a fallback. adamc@1095: if test "x$ac_cr" = x; then adamc@1095: eval ac_cr=\$\'\\r\' adamc@1095: fi adamc@1095: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` adamc@1095: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then adam@1315: ac_cs_awk_cr='\\r' adamc@1095: else adamc@1095: ac_cs_awk_cr=$ac_cr adamc@1095: fi adamc@1095: adam@1599: echo 'BEGIN {' >"$ac_tmp/subs1.awk" && adamc@378: _ACEOF adamc@378: adamc@378: adamc@1095: { adamc@1095: echo "cat >conf$$subs.awk <<_ACEOF" && adamc@1095: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && adamc@1095: echo "_ACEOF" adamc@1095: } >conf$$subs.sh || adam@1315: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 adam@1315: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` adamc@378: ac_delim='%!_!# ' adamc@378: for ac_last_try in false false false false false :; do adamc@1095: . ./conf$$subs.sh || adam@1315: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 adamc@378: adamc@1095: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` adamc@1095: if test $ac_delim_n = $ac_delim_num; then adamc@378: break adamc@378: elif $ac_last_try; then adam@1315: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 adamc@378: else adamc@378: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " adamc@378: fi adamc@378: done adamc@1095: rm -f conf$$subs.sh adamc@378: adamc@1095: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@1599: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && adamc@1095: _ACEOF adamc@1095: sed -n ' adamc@1095: h adamc@1095: s/^/S["/; s/!.*/"]=/ adamc@1095: p adamc@1095: g adamc@1095: s/^[^!]*!// adamc@1095: :repl adamc@1095: t repl adamc@1095: s/'"$ac_delim"'$// adamc@1095: t delim adamc@1095: :nl adamc@1095: h adamc@1095: s/\(.\{148\}\)..*/\1/ adamc@1095: t more1 adamc@1095: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ adamc@1095: p adamc@1095: n adamc@1095: b repl adamc@1095: :more1 adamc@1095: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ adamc@1095: p adamc@1095: g adamc@1095: s/.\{148\}// adamc@1095: t nl adamc@1095: :delim adamc@1095: h adamc@1095: s/\(.\{148\}\)..*/\1/ adamc@1095: t more2 adamc@1095: s/["\\]/\\&/g; s/^/"/; s/$/"/ adamc@1095: p adamc@1095: b adamc@1095: :more2 adamc@1095: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ adamc@1095: p adamc@1095: g adamc@1095: s/.\{148\}// adamc@1095: t delim adamc@1095: ' >$CONFIG_STATUS || ac_write_fail=1 adamc@1095: rm -f conf$$subs.awk adamc@1095: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adamc@1095: _ACAWK adam@1599: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && adamc@1095: for (key in S) S_is_set[key] = 1 adamc@1095: FS = "" adamc@378: adamc@1095: } adamc@1095: { adamc@1095: line = $ 0 adamc@1095: nfields = split(line, field, "@") adamc@1095: substed = 0 adamc@1095: len = length(field[1]) adamc@1095: for (i = 2; i < nfields; i++) { adamc@1095: key = field[i] adamc@1095: keylen = length(key) adamc@1095: if (S_is_set[key]) { adamc@1095: value = S[key] adamc@1095: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) adamc@1095: len += length(value) + length(field[++i]) adamc@1095: substed = 1 adamc@1095: } else adamc@1095: len += 1 + keylen adamc@1095: } adamc@1095: adamc@1095: print line adamc@1095: } adamc@1095: adamc@1095: _ACAWK adamc@378: _ACEOF adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@1095: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then adamc@1095: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" adamc@1095: else adamc@1095: cat adam@1599: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ adam@1315: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 adam@1315: _ACEOF adam@1315: adam@1315: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), adam@1315: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and adamc@378: # trailing colons and then remove the whole line if VPATH becomes empty adamc@378: # (actually we leave an empty line to preserve line numbers). adamc@378: if test "x$srcdir" = x.; then adam@1315: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ adam@1315: h adam@1315: s/// adam@1315: s/^/:/ adam@1315: s/[ ]*$/:/ adam@1315: s/:\$(srcdir):/:/g adam@1315: s/:\${srcdir}:/:/g adam@1315: s/:@srcdir@:/:/g adam@1315: s/^:*// adamc@378: s/:*$// adam@1315: x adam@1315: s/\(=[ ]*\).*/\1/ adam@1315: G adam@1315: s/\n// adamc@378: s/^[^=]*=[ ]*$// adamc@378: }' adamc@378: fi adamc@378: adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@378: fi # test -n "$CONFIG_FILES" adamc@378: adamc@1263: # Set up the scripts for CONFIG_HEADERS section. adamc@1263: # No need to generate them if there are no CONFIG_HEADERS. adamc@1263: # This happens for instance with `./config.status Makefile'. adamc@1263: if test -n "$CONFIG_HEADERS"; then adam@1599: cat >"$ac_tmp/defines.awk" <<\_ACAWK || adamc@1263: BEGIN { adamc@1263: _ACEOF adamc@1263: adamc@1263: # Transform confdefs.h into an awk script `defines.awk', embedded as adamc@1263: # here-document in config.status, that substitutes the proper values into adamc@1263: # config.h.in to produce config.h. adamc@1263: adamc@1263: # Create a delimiter string that does not exist in confdefs.h, to ease adamc@1263: # handling of long lines. adamc@1263: ac_delim='%!_!# ' adamc@1263: for ac_last_try in false false :; do adam@1599: ac_tt=`sed -n "/$ac_delim/p" confdefs.h` adam@1599: if test -z "$ac_tt"; then adamc@1263: break adamc@1263: elif $ac_last_try; then adam@1315: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 adamc@1263: else adamc@1263: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " adamc@1263: fi adamc@1263: done adamc@1263: adamc@1263: # For the awk script, D is an array of macro values keyed by name, adamc@1263: # likewise P contains macro parameters if any. Preserve backslash adamc@1263: # newline sequences. adamc@1263: adamc@1263: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* adamc@1263: sed -n ' adamc@1263: s/.\{148\}/&'"$ac_delim"'/g adamc@1263: t rset adamc@1263: :rset adamc@1263: s/^[ ]*#[ ]*define[ ][ ]*/ / adamc@1263: t def adamc@1263: d adamc@1263: :def adamc@1263: s/\\$// adamc@1263: t bsnl adamc@1263: s/["\\]/\\&/g adamc@1263: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ adamc@1263: D["\1"]=" \3"/p adamc@1263: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p adamc@1263: d adamc@1263: :bsnl adamc@1263: s/["\\]/\\&/g adamc@1263: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ adamc@1263: D["\1"]=" \3\\\\\\n"\\/p adamc@1263: t cont adamc@1263: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p adamc@1263: t cont adamc@1263: d adamc@1263: :cont adamc@1263: n adamc@1263: s/.\{148\}/&'"$ac_delim"'/g adamc@1263: t clear adamc@1263: :clear adamc@1263: s/\\$// adamc@1263: t bsnlc adamc@1263: s/["\\]/\\&/g; s/^/"/; s/$/"/p adamc@1263: d adamc@1263: :bsnlc adamc@1263: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p adamc@1263: b cont adamc@1263: ' >$CONFIG_STATUS || ac_write_fail=1 adamc@1263: adamc@1263: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adamc@1263: for (key in D) D_is_set[key] = 1 adamc@1263: FS = "" adamc@1263: } adamc@1263: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { adamc@1263: line = \$ 0 adamc@1263: split(line, arg, " ") adamc@1263: if (arg[1] == "#") { adamc@1263: defundef = arg[2] adamc@1263: mac1 = arg[3] adamc@1263: } else { adamc@1263: defundef = substr(arg[1], 2) adamc@1263: mac1 = arg[2] adamc@1263: } adamc@1263: split(mac1, mac2, "(") #) adamc@1263: macro = mac2[1] adamc@1263: prefix = substr(line, 1, index(line, defundef) - 1) adamc@1263: if (D_is_set[macro]) { adamc@1263: # Preserve the white space surrounding the "#". adamc@1263: print prefix "define", macro P[macro] D[macro] adamc@1263: next adamc@1263: } else { adamc@1263: # Replace #undef with comments. This is necessary, for example, adamc@1263: # in the case of _POSIX_SOURCE, which is predefined and required adamc@1263: # on some systems where configure will not decide to define it. adamc@1263: if (defundef == "undef") { adamc@1263: print "/*", prefix defundef, macro, "*/" adamc@1263: next adamc@1263: } adamc@1263: } adamc@1263: } adamc@1263: { print } adamc@1263: _ACAWK adamc@1263: _ACEOF adamc@1263: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@1315: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 adamc@1263: fi # test -n "$CONFIG_HEADERS" adamc@1263: adamc@1263: adamc@1263: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" adamc@1095: shift adamc@1095: for ac_tag adamc@378: do adamc@378: case $ac_tag in adamc@378: :[FHLC]) ac_mode=$ac_tag; continue;; adamc@378: esac adamc@378: case $ac_mode$ac_tag in adamc@378: :[FHL]*:*);; adam@1599: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; adamc@378: :[FH]-) ac_tag=-:-;; adamc@378: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; adamc@378: esac adamc@378: ac_save_IFS=$IFS adamc@378: IFS=: adamc@378: set x $ac_tag adamc@378: IFS=$ac_save_IFS adamc@378: shift adamc@378: ac_file=$1 adamc@378: shift adamc@378: adamc@378: case $ac_mode in adamc@378: :L) ac_source=$1;; adamc@378: :[FH]) adamc@378: ac_file_inputs= adamc@378: for ac_f adamc@378: do adamc@378: case $ac_f in adam@1599: -) ac_f="$ac_tmp/stdin";; adamc@378: *) # Look for the file first in the build tree, then in the source tree adamc@378: # (if the path is not absolute). The absolute path cannot be DOS-style, adamc@378: # because $ac_f cannot contain `:'. adamc@378: test -f "$ac_f" || adamc@378: case $ac_f in adamc@378: [\\/$]*) false;; adamc@378: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; adamc@378: esac || adam@1599: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; adamc@378: esac adamc@1095: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac adamc@1095: as_fn_append ac_file_inputs " '$ac_f'" adamc@378: done adamc@378: adamc@378: # Let's still pretend it is `configure' which instantiates (i.e., don't adamc@378: # use $as_me), people would be surprised to read: adamc@378: # /* config.h. Generated by config.status. */ adamc@1095: configure_input='Generated from '` adamc@1095: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' adamc@1095: `' by configure.' adamc@378: if test x"$ac_file" != x-; then adamc@378: configure_input="$ac_file. $configure_input" adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 adamc@1095: $as_echo "$as_me: creating $ac_file" >&6;} adamc@378: fi adamc@1095: # Neutralize special characters interpreted by sed in replacement strings. adamc@1095: case $configure_input in #( adamc@1095: *\&* | *\|* | *\\* ) adamc@1095: ac_sed_conf_input=`$as_echo "$configure_input" | adamc@1095: sed 's/[\\\\&|]/\\\\&/g'`;; #( adamc@1095: *) ac_sed_conf_input=$configure_input;; adamc@1095: esac adamc@378: adamc@378: case $ac_tag in adam@1599: *:-:* | *:-) cat >"$ac_tmp/stdin" \ adam@1599: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; adamc@378: esac adamc@378: ;; adamc@378: esac adamc@378: adamc@378: ac_dir=`$as_dirname -- "$ac_file" || adamc@378: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adamc@378: X"$ac_file" : 'X\(//\)[^/]' \| \ adamc@378: X"$ac_file" : 'X\(//\)$' \| \ adamc@378: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || adamc@1095: $as_echo X"$ac_file" | adamc@378: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\(\/\/\)[^/].*/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\(\/\/\)$/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: /^X\(\/\).*/{ adamc@378: s//\1/ adamc@378: q adamc@378: } adamc@378: s/.*/./; q'` adamc@1095: as_dir="$ac_dir"; as_fn_mkdir_p adamc@378: ac_builddir=. adamc@378: adamc@378: case "$ac_dir" in adamc@378: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; adamc@378: *) adamc@1095: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` adamc@378: # A ".." for each directory in $ac_dir_suffix. adamc@1095: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` adamc@378: case $ac_top_builddir_sub in adamc@378: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; adamc@378: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; adamc@378: esac ;; adamc@378: esac adamc@378: ac_abs_top_builddir=$ac_pwd adamc@378: ac_abs_builddir=$ac_pwd$ac_dir_suffix adamc@378: # for backward compatibility: adamc@378: ac_top_builddir=$ac_top_build_prefix adamc@378: adamc@378: case $srcdir in adamc@378: .) # We are building in place. adamc@378: ac_srcdir=. adamc@378: ac_top_srcdir=$ac_top_builddir_sub adamc@378: ac_abs_top_srcdir=$ac_pwd ;; adamc@378: [\\/]* | ?:[\\/]* ) # Absolute name. adamc@378: ac_srcdir=$srcdir$ac_dir_suffix; adamc@378: ac_top_srcdir=$srcdir adamc@378: ac_abs_top_srcdir=$srcdir ;; adamc@378: *) # Relative name. adamc@378: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix adamc@378: ac_top_srcdir=$ac_top_build_prefix$srcdir adamc@378: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; adamc@378: esac adamc@378: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix adamc@378: adamc@378: adamc@378: case $ac_mode in adamc@378: :F) adamc@378: # adamc@378: # CONFIG_FILE adamc@378: # adamc@378: adamc@1132: case $INSTALL in adamc@1132: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; adamc@1132: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; adamc@1132: esac adamc@1132: ac_MKDIR_P=$MKDIR_P adamc@1132: case $MKDIR_P in adamc@1132: [\\/$]* | ?:[\\/]* ) ;; adamc@1132: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; adamc@1132: esac adamc@378: _ACEOF adamc@378: adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@378: # If the template does not know about datarootdir, expand it. adamc@378: # FIXME: This hack should be removed a few years after 2.60. adamc@378: ac_datarootdir_hack=; ac_datarootdir_seen= adamc@1095: ac_sed_dataroot=' adamc@1095: /datarootdir/ { adamc@378: p adamc@378: q adamc@378: } adamc@378: /@datadir@/p adamc@378: /@docdir@/p adamc@378: /@infodir@/p adamc@378: /@localedir@/p adamc@1095: /@mandir@/p' adamc@1095: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in adamc@378: *datarootdir*) ac_datarootdir_seen=yes;; adamc@378: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 adamc@1095: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} adamc@378: _ACEOF adamc@1095: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adamc@378: ac_datarootdir_hack=' adamc@378: s&@datadir@&$datadir&g adamc@378: s&@docdir@&$docdir&g adamc@378: s&@infodir@&$infodir&g adamc@378: s&@localedir@&$localedir&g adamc@378: s&@mandir@&$mandir&g adamc@1095: s&\\\${datarootdir}&$datarootdir&g' ;; adamc@378: esac adamc@378: _ACEOF adamc@378: adamc@378: # Neutralize VPATH when `$srcdir' = `.'. adamc@378: # Shell code in configure.ac might set extrasub. adamc@378: # FIXME: do we really want to maintain this feature? adamc@1095: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adamc@1095: ac_sed_extra="$ac_vpsub adamc@378: $extrasub adamc@378: _ACEOF adamc@1095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adamc@378: :t adamc@378: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b adamc@1095: s|@configure_input@|$ac_sed_conf_input|;t t adamc@378: s&@top_builddir@&$ac_top_builddir_sub&;t t adamc@1095: s&@top_build_prefix@&$ac_top_build_prefix&;t t adamc@378: s&@srcdir@&$ac_srcdir&;t t adamc@378: s&@abs_srcdir@&$ac_abs_srcdir&;t t adamc@378: s&@top_srcdir@&$ac_top_srcdir&;t t adamc@378: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t adamc@378: s&@builddir@&$ac_builddir&;t t adamc@378: s&@abs_builddir@&$ac_abs_builddir&;t t adamc@378: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t adamc@1132: s&@INSTALL@&$ac_INSTALL&;t t adamc@1132: s&@MKDIR_P@&$ac_MKDIR_P&;t t adamc@378: $ac_datarootdir_hack adamc@1095: " adam@1599: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ adam@1599: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 adamc@378: adamc@378: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && adam@1599: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && adam@1599: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ adam@1599: "$ac_tmp/out"`; test -z "$ac_out"; } && adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' adam@1315: which seems to be undefined. Please make sure it is defined" >&5 adamc@1095: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' adam@1315: which seems to be undefined. Please make sure it is defined" >&2;} adamc@378: adam@1599: rm -f "$ac_tmp/stdin" adamc@378: case $ac_file in adam@1599: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; adam@1599: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; adamc@1095: esac \ adam@1315: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 adamc@378: ;; adamc@1263: :H) adamc@1263: # adamc@1263: # CONFIG_HEADER adamc@1263: # adamc@1263: if test x"$ac_file" != x-; then adamc@1263: { adamc@1263: $as_echo "/* $configure_input */" \ adam@1599: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" adam@1599: } >"$ac_tmp/config.h" \ adam@1315: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 adam@1599: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then adamc@1263: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 adamc@1263: $as_echo "$as_me: $ac_file is unchanged" >&6;} adamc@1263: else adamc@1263: rm -f "$ac_file" adam@1599: mv "$ac_tmp/config.h" "$ac_file" \ adam@1315: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 adamc@1263: fi adamc@1263: else adamc@1263: $as_echo "/* $configure_input */" \ adam@1599: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ adam@1315: || as_fn_error $? "could not create -" "$LINENO" 5 adamc@1263: fi adamc@1263: # Compute "$ac_file"'s index in $config_headers. adamc@1263: _am_arg="$ac_file" adamc@1263: _am_stamp_count=1 adamc@1263: for _am_header in $config_headers :; do adamc@1263: case $_am_header in adamc@1263: $_am_arg | $_am_arg:* ) adamc@1263: break ;; adamc@1263: * ) adamc@1263: _am_stamp_count=`expr $_am_stamp_count + 1` ;; adamc@1263: esac adamc@1263: done adamc@1263: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || adamc@1263: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adamc@1263: X"$_am_arg" : 'X\(//\)[^/]' \| \ adamc@1263: X"$_am_arg" : 'X\(//\)$' \| \ adamc@1263: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || adamc@1263: $as_echo X"$_am_arg" | adamc@1263: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adamc@1263: s//\1/ adamc@1263: q adamc@1263: } adamc@1263: /^X\(\/\/\)[^/].*/{ adamc@1263: s//\1/ adamc@1263: q adamc@1263: } adamc@1263: /^X\(\/\/\)$/{ adamc@1263: s//\1/ adamc@1263: q adamc@1263: } adamc@1263: /^X\(\/\).*/{ adamc@1263: s//\1/ adamc@1263: q adamc@1263: } adamc@1263: s/.*/./; q'`/stamp-h$_am_stamp_count adamc@1263: ;; adamc@378: adamc@1132: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 adamc@1132: $as_echo "$as_me: executing $ac_file commands" >&6;} adamc@1132: ;; adamc@378: esac adamc@378: adamc@378: adamc@378: case $ac_file$ac_mode in adamc@1132: "depfiles":C) test x"$AMDEP_TRUE" != x"" || { adamc@1132: # Autoconf 2.62 quotes --file arguments for eval, but not when files adamc@1132: # are listed without --file. Let's play safe and only enable the eval adamc@1132: # if we detect the quoting. adamc@1132: case $CONFIG_FILES in adamc@1132: *\'*) eval set x "$CONFIG_FILES" ;; adamc@1132: *) set x $CONFIG_FILES ;; adamc@1132: esac adamc@1132: shift adamc@1132: for mf adamc@1132: do adamc@1132: # Strip MF so we end up with the name of the file. adamc@1132: mf=`echo "$mf" | sed -e 's/:.*$//'` adamc@1132: # Check whether this is an Automake generated Makefile or not. adamc@1132: # We used to match only the files named `Makefile.in', but adamc@1132: # some people rename them; so instead we look at the file content. adamc@1132: # Grep'ing the first line is not enough: some people post-process adamc@1132: # each Makefile.in and add a new line on top of each file to say so. adamc@1132: # Grep'ing the whole file is not good either: AIX grep has a line adamc@1132: # limit of 2048, but all sed's we know have understand at least 4000. adamc@1132: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then adamc@1132: dirpart=`$as_dirname -- "$mf" || adamc@1132: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adamc@1132: X"$mf" : 'X\(//\)[^/]' \| \ adamc@1132: X"$mf" : 'X\(//\)$' \| \ adamc@1132: X"$mf" : 'X\(/\)' \| . 2>/dev/null || adamc@1132: $as_echo X"$mf" | adamc@1132: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adamc@1132: s//\1/ adamc@1132: q adamc@1132: } adamc@1132: /^X\(\/\/\)[^/].*/{ adamc@1132: s//\1/ adamc@1132: q adamc@1132: } adamc@1132: /^X\(\/\/\)$/{ adamc@1132: s//\1/ adamc@1132: q adamc@1132: } adamc@1132: /^X\(\/\).*/{ adamc@1132: s//\1/ adamc@1132: q adamc@1132: } adamc@1132: s/.*/./; q'` adamc@1132: else adamc@1132: continue adamc@1132: fi adamc@1132: # Extract the definition of DEPDIR, am__include, and am__quote adamc@1132: # from the Makefile without running `make'. adamc@1132: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` adamc@1132: test -z "$DEPDIR" && continue adamc@1132: am__include=`sed -n 's/^am__include = //p' < "$mf"` adamc@1132: test -z "am__include" && continue adamc@1132: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` adamc@1132: # When using ansi2knr, U may be empty or an underscore; expand it adamc@1132: U=`sed -n 's/^U = //p' < "$mf"` adamc@1132: # Find all dependency output files, they are included files with adamc@1132: # $(DEPDIR) in their names. We invoke sed twice because it is the adamc@1132: # simplest approach to changing $(DEPDIR) to its actual value in the adamc@1132: # expansion. adamc@1132: for file in `sed -n " adamc@1132: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ adamc@1132: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do adamc@1132: # Make sure the directory exists. adamc@1132: test -f "$dirpart/$file" && continue adamc@1132: fdir=`$as_dirname -- "$file" || adamc@1132: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adamc@1132: X"$file" : 'X\(//\)[^/]' \| \ adamc@1132: X"$file" : 'X\(//\)$' \| \ adamc@1132: X"$file" : 'X\(/\)' \| . 2>/dev/null || adamc@1132: $as_echo X"$file" | adamc@1132: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adamc@1132: s//\1/ adamc@1132: q adamc@1132: } adamc@1132: /^X\(\/\/\)[^/].*/{ adamc@1132: s//\1/ adamc@1132: q adamc@1132: } adamc@1132: /^X\(\/\/\)$/{ adamc@1132: s//\1/ adamc@1132: q adamc@1132: } adamc@1132: /^X\(\/\).*/{ adamc@1132: s//\1/ adamc@1132: q adamc@1132: } adamc@1132: s/.*/./; q'` adamc@1132: as_dir=$dirpart/$fdir; as_fn_mkdir_p adamc@1132: # echo "creating $dirpart/$file" adamc@1132: echo '# dummy' > "$dirpart/$file" adamc@1132: done adamc@1132: done adamc@1132: } adamc@1132: ;; adamc@1132: "libtool":C) adamc@1132: adamc@1132: # See if we are running on zsh, and set the options which allow our adamc@1132: # commands through without removal of \ escapes. adamc@1132: if test -n "${ZSH_VERSION+set}" ; then adamc@1132: setopt NO_GLOB_SUBST adamc@1132: fi adamc@1132: adamc@1132: cfgfile="${ofile}T" adamc@1132: trap "$RM \"$cfgfile\"; exit 1" 1 2 15 adamc@1132: $RM "$cfgfile" adamc@1132: adamc@1132: cat <<_LT_EOF >> "$cfgfile" adamc@1132: #! $SHELL adamc@1132: adamc@1132: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. adamc@1132: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION adamc@1132: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: adamc@1132: # NOTE: Changes made to this file will be lost: look at ltmain.sh. adamc@1132: # adamc@1132: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, adam@1599: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software adam@1599: # Foundation, Inc. adamc@1132: # Written by Gordon Matzigkeit, 1996 adamc@1132: # adamc@1132: # This file is part of GNU Libtool. adamc@1132: # adamc@1132: # GNU Libtool is free software; you can redistribute it and/or adamc@1132: # modify it under the terms of the GNU General Public License as adamc@1132: # published by the Free Software Foundation; either version 2 of adamc@1132: # the License, or (at your option) any later version. adamc@1132: # adamc@1132: # As a special exception to the GNU General Public License, adamc@1132: # if you distribute this file as part of a program or library that adamc@1132: # is built using GNU Libtool, you may include this file under the adamc@1132: # same distribution terms that you use for the rest of that program. adamc@1132: # adamc@1132: # GNU Libtool is distributed in the hope that it will be useful, adamc@1132: # but WITHOUT ANY WARRANTY; without even the implied warranty of adamc@1132: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the adamc@1132: # GNU General Public License for more details. adamc@1132: # adamc@1132: # You should have received a copy of the GNU General Public License adamc@1132: # along with GNU Libtool; see the file COPYING. If not, a copy adamc@1132: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or adamc@1132: # obtained by writing to the Free Software Foundation, Inc., adamc@1132: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. adamc@1132: adamc@1132: adamc@1132: # The names of the tagged configurations supported by this script. adamc@1132: available_tags="" adamc@1132: adamc@1132: # ### BEGIN LIBTOOL CONFIG adamc@1132: adamc@1132: # Which release of libtool.m4 was used? adamc@1132: macro_version=$macro_version adamc@1132: macro_revision=$macro_revision adamc@1132: adamc@1132: # Whether or not to build shared libraries. adamc@1132: build_libtool_libs=$enable_shared adamc@1132: adamc@1132: # Whether or not to build static libraries. adamc@1132: build_old_libs=$enable_static adamc@1132: adamc@1132: # What type of objects to build. adamc@1132: pic_mode=$pic_mode adamc@1132: adamc@1132: # Whether or not to optimize for fast installation. adamc@1132: fast_install=$enable_fast_install adamc@1132: adam@1459: # Shell to use when invoking shell scripts. adam@1459: SHELL=$lt_SHELL adam@1459: adam@1459: # An echo program that protects backslashes. adam@1459: ECHO=$lt_ECHO adam@1459: adam@1599: # The PATH separator for the build system. adam@1599: PATH_SEPARATOR=$lt_PATH_SEPARATOR adam@1599: adamc@1132: # The host system. adamc@1132: host_alias=$host_alias adamc@1132: host=$host adamc@1132: host_os=$host_os adamc@1132: adamc@1132: # The build system. adamc@1132: build_alias=$build_alias adamc@1132: build=$build adamc@1132: build_os=$build_os adamc@1132: adamc@1132: # A sed program that does not truncate output. adamc@1132: SED=$lt_SED adamc@1132: adamc@1132: # Sed that helps us avoid accidentally triggering echo(1) options like -n. adamc@1132: Xsed="\$SED -e 1s/^X//" adamc@1132: adamc@1132: # A grep program that handles long lines. adamc@1132: GREP=$lt_GREP adamc@1132: adamc@1132: # An ERE matcher. adamc@1132: EGREP=$lt_EGREP adamc@1132: adamc@1132: # A literal string matcher. adamc@1132: FGREP=$lt_FGREP adamc@1132: adamc@1132: # A BSD- or MS-compatible name lister. adamc@1132: NM=$lt_NM adamc@1132: adamc@1132: # Whether we need soft or hard links. adamc@1132: LN_S=$lt_LN_S adamc@1132: adamc@1132: # What is the maximum length of a command? adamc@1132: max_cmd_len=$max_cmd_len adamc@1132: adamc@1132: # Object file suffix (normally "o"). adamc@1132: objext=$ac_objext adamc@1132: adamc@1132: # Executable file suffix (normally ""). adamc@1132: exeext=$exeext adamc@1132: adamc@1132: # whether the shell understands "unset". adamc@1132: lt_unset=$lt_unset adamc@1132: adamc@1132: # turn spaces into newlines. adamc@1132: SP2NL=$lt_lt_SP2NL adamc@1132: adamc@1132: # turn newlines into spaces. adamc@1132: NL2SP=$lt_lt_NL2SP adamc@1132: adam@1459: # convert \$build file names to \$host format. adam@1459: to_host_file_cmd=$lt_cv_to_host_file_cmd adam@1459: adam@1459: # convert \$build files to toolchain format. adam@1459: to_tool_file_cmd=$lt_cv_to_tool_file_cmd adamc@1132: adamc@1132: # An object symbol dumper. adamc@1132: OBJDUMP=$lt_OBJDUMP adamc@1132: adamc@1132: # Method to check whether dependent libraries are shared objects. adamc@1132: deplibs_check_method=$lt_deplibs_check_method adamc@1132: adam@1459: # Command to use when deplibs_check_method = "file_magic". adamc@1132: file_magic_cmd=$lt_file_magic_cmd adamc@1132: adam@1459: # How to find potential files when deplibs_check_method = "file_magic". adam@1459: file_magic_glob=$lt_file_magic_glob adam@1459: adam@1459: # Find potential files using nocaseglob when deplibs_check_method = "file_magic". adam@1459: want_nocaseglob=$lt_want_nocaseglob adam@1459: adam@1459: # DLL creation program. adam@1459: DLLTOOL=$lt_DLLTOOL adam@1459: adam@1459: # Command to associate shared and link libraries. adam@1459: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd adam@1459: adamc@1132: # The archiver. adamc@1132: AR=$lt_AR adam@1459: adam@1459: # Flags to create an archive. adamc@1132: AR_FLAGS=$lt_AR_FLAGS adamc@1132: adam@1459: # How to feed a file listing to the archiver. adam@1459: archiver_list_spec=$lt_archiver_list_spec adam@1459: adamc@1132: # A symbol stripping program. adamc@1132: STRIP=$lt_STRIP adamc@1132: adamc@1132: # Commands used to install an old-style archive. adamc@1132: RANLIB=$lt_RANLIB adamc@1132: old_postinstall_cmds=$lt_old_postinstall_cmds adamc@1132: old_postuninstall_cmds=$lt_old_postuninstall_cmds adamc@1132: adam@1459: # Whether to use a lock for old archive extraction. adam@1459: lock_old_archive_extraction=$lock_old_archive_extraction adam@1459: adamc@1132: # A C compiler. adamc@1132: LTCC=$lt_CC adamc@1132: adamc@1132: # LTCC compiler flags. adamc@1132: LTCFLAGS=$lt_CFLAGS adamc@1132: adamc@1132: # Take the output of nm and produce a listing of raw symbols and C names. adamc@1132: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe adamc@1132: adamc@1132: # Transform the output of nm in a proper C declaration. adamc@1132: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl adamc@1132: adamc@1132: # Transform the output of nm in a C name address pair. adamc@1132: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address adamc@1132: adamc@1132: # Transform the output of nm in a C name address pair when lib prefix is needed. adamc@1132: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix adamc@1132: adam@1459: # Specify filename containing input files for \$NM. adam@1459: nm_file_list_spec=$lt_nm_file_list_spec adam@1459: adam@1459: # The root where to search for dependent libraries,and in which our libraries should be installed. adam@1459: lt_sysroot=$lt_sysroot adam@1459: adamc@1132: # The name of the directory that contains temporary libtool files. adamc@1132: objdir=$objdir adamc@1132: adamc@1132: # Used to examine libraries when file_magic_cmd begins with "file". adamc@1132: MAGIC_CMD=$MAGIC_CMD adamc@1132: adamc@1132: # Must we lock files when doing compilation? adamc@1132: need_locks=$lt_need_locks adamc@1132: adam@1459: # Manifest tool. adam@1459: MANIFEST_TOOL=$lt_MANIFEST_TOOL adam@1459: adamc@1132: # Tool to manipulate archived DWARF debug symbol files on Mac OS X. adamc@1132: DSYMUTIL=$lt_DSYMUTIL adamc@1132: adamc@1132: # Tool to change global to local symbols on Mac OS X. adamc@1132: NMEDIT=$lt_NMEDIT adamc@1132: adamc@1132: # Tool to manipulate fat objects and archives on Mac OS X. adamc@1132: LIPO=$lt_LIPO adamc@1132: adamc@1132: # ldd/readelf like tool for Mach-O binaries on Mac OS X. adamc@1132: OTOOL=$lt_OTOOL adamc@1132: adamc@1132: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. adamc@1132: OTOOL64=$lt_OTOOL64 adamc@1132: adamc@1132: # Old archive suffix (normally "a"). adamc@1132: libext=$libext adamc@1132: adamc@1132: # Shared library suffix (normally ".so"). adamc@1132: shrext_cmds=$lt_shrext_cmds adamc@1132: adamc@1132: # The commands to extract the exported symbol list from a shared archive. adamc@1132: extract_expsyms_cmds=$lt_extract_expsyms_cmds adamc@1132: adamc@1132: # Variables whose values should be saved in libtool wrapper scripts and adamc@1132: # restored at link time. adamc@1132: variables_saved_for_relink=$lt_variables_saved_for_relink adamc@1132: adamc@1132: # Do we need the "lib" prefix for modules? adamc@1132: need_lib_prefix=$need_lib_prefix adamc@1132: adamc@1132: # Do we need a version for libraries? adamc@1132: need_version=$need_version adamc@1132: adamc@1132: # Library versioning type. adamc@1132: version_type=$version_type adamc@1132: adamc@1132: # Shared library runtime path variable. adamc@1132: runpath_var=$runpath_var adamc@1132: adamc@1132: # Shared library path variable. adamc@1132: shlibpath_var=$shlibpath_var adamc@1132: adamc@1132: # Is shlibpath searched before the hard-coded library search path? adamc@1132: shlibpath_overrides_runpath=$shlibpath_overrides_runpath adamc@1132: adamc@1132: # Format of library name prefix. adamc@1132: libname_spec=$lt_libname_spec adamc@1132: adamc@1132: # List of archive names. First name is the real one, the rest are links. adamc@1132: # The last name is the one that the linker finds with -lNAME adamc@1132: library_names_spec=$lt_library_names_spec adamc@1132: adamc@1132: # The coded name of the library, if different from the real name. adamc@1132: soname_spec=$lt_soname_spec adamc@1132: adam@1459: # Permission mode override for installation of shared libraries. adam@1459: install_override_mode=$lt_install_override_mode adam@1459: adamc@1132: # Command to use after installation of a shared archive. adamc@1132: postinstall_cmds=$lt_postinstall_cmds adamc@1132: adamc@1132: # Command to use after uninstallation of a shared archive. adamc@1132: postuninstall_cmds=$lt_postuninstall_cmds adamc@1132: adamc@1132: # Commands used to finish a libtool library installation in a directory. adamc@1132: finish_cmds=$lt_finish_cmds adamc@1132: adamc@1132: # As "finish_cmds", except a single script fragment to be evaled but adamc@1132: # not shown. adamc@1132: finish_eval=$lt_finish_eval adamc@1132: adamc@1132: # Whether we should hardcode library paths into libraries. adamc@1132: hardcode_into_libs=$hardcode_into_libs adamc@1132: adamc@1132: # Compile-time system search path for libraries. adamc@1132: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec adamc@1132: adamc@1132: # Run-time system search path for libraries. adamc@1132: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec adamc@1132: adamc@1132: # Whether dlopen is supported. adamc@1132: dlopen_support=$enable_dlopen adamc@1132: adamc@1132: # Whether dlopen of programs is supported. adamc@1132: dlopen_self=$enable_dlopen_self adamc@1132: adamc@1132: # Whether dlopen of statically linked programs is supported. adamc@1132: dlopen_self_static=$enable_dlopen_self_static adamc@1132: adamc@1132: # Commands to strip libraries. adamc@1132: old_striplib=$lt_old_striplib adamc@1132: striplib=$lt_striplib adamc@1132: adamc@1132: adamc@1132: # The linker used to build libraries. adamc@1132: LD=$lt_LD adamc@1132: adam@1459: # How to create reloadable object files. adam@1459: reload_flag=$lt_reload_flag adam@1459: reload_cmds=$lt_reload_cmds adam@1459: adamc@1132: # Commands used to build an old-style archive. adamc@1132: old_archive_cmds=$lt_old_archive_cmds adamc@1132: adamc@1132: # A language specific compiler. adamc@1132: CC=$lt_compiler adamc@1132: adamc@1132: # Is the compiler the GNU compiler? adamc@1132: with_gcc=$GCC adamc@1132: adamc@1132: # Compiler flag to turn off builtin functions. adamc@1132: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag adamc@1132: adam@1459: # Additional compiler flags for building library objects. adam@1459: pic_flag=$lt_lt_prog_compiler_pic adam@1459: adamc@1132: # How to pass a linker flag through the compiler. adamc@1132: wl=$lt_lt_prog_compiler_wl adamc@1132: adamc@1132: # Compiler flag to prevent dynamic linking. adamc@1132: link_static_flag=$lt_lt_prog_compiler_static adamc@1132: adamc@1132: # Does compiler simultaneously support -c and -o options? adamc@1132: compiler_c_o=$lt_lt_cv_prog_compiler_c_o adamc@1132: adamc@1132: # Whether or not to add -lc for building shared libraries. adamc@1132: build_libtool_need_lc=$archive_cmds_need_lc adamc@1132: adamc@1132: # Whether or not to disallow shared libs when runtime libs are static. adamc@1132: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes adamc@1132: adamc@1132: # Compiler flag to allow reflexive dlopens. adamc@1132: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec adamc@1132: adamc@1132: # Compiler flag to generate shared objects directly from archives. adamc@1132: whole_archive_flag_spec=$lt_whole_archive_flag_spec adamc@1132: adamc@1132: # Whether the compiler copes with passing no objects directly. adamc@1132: compiler_needs_object=$lt_compiler_needs_object adamc@1132: adamc@1132: # Create an old-style archive from a shared archive. adamc@1132: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds adamc@1132: adamc@1132: # Create a temporary old-style archive to link instead of a shared archive. adamc@1132: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds adamc@1132: adamc@1132: # Commands used to build a shared archive. adamc@1132: archive_cmds=$lt_archive_cmds adamc@1132: archive_expsym_cmds=$lt_archive_expsym_cmds adamc@1132: adamc@1132: # Commands used to build a loadable module if different from building adamc@1132: # a shared archive. adamc@1132: module_cmds=$lt_module_cmds adamc@1132: module_expsym_cmds=$lt_module_expsym_cmds adamc@1132: adamc@1132: # Whether we are building with GNU ld or not. adamc@1132: with_gnu_ld=$lt_with_gnu_ld adamc@1132: adamc@1132: # Flag that allows shared libraries with undefined symbols to be built. adamc@1132: allow_undefined_flag=$lt_allow_undefined_flag adamc@1132: adamc@1132: # Flag that enforces no undefined symbols. adamc@1132: no_undefined_flag=$lt_no_undefined_flag adamc@1132: adamc@1132: # Flag to hardcode \$libdir into a binary during linking. adamc@1132: # This must work even if \$libdir does not exist adamc@1132: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec adamc@1132: adamc@1132: # Whether we need a single "-rpath" flag with a separated argument. adamc@1132: hardcode_libdir_separator=$lt_hardcode_libdir_separator adamc@1132: adamc@1132: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes adamc@1132: # DIR into the resulting binary. adamc@1132: hardcode_direct=$hardcode_direct adamc@1132: adamc@1132: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes adamc@1132: # DIR into the resulting binary and the resulting library dependency is adamc@1132: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the adamc@1132: # library is relocated. adamc@1132: hardcode_direct_absolute=$hardcode_direct_absolute adamc@1132: adamc@1132: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR adamc@1132: # into the resulting binary. adamc@1132: hardcode_minus_L=$hardcode_minus_L adamc@1132: adamc@1132: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR adamc@1132: # into the resulting binary. adamc@1132: hardcode_shlibpath_var=$hardcode_shlibpath_var adamc@1132: adamc@1132: # Set to "yes" if building a shared library automatically hardcodes DIR adamc@1132: # into the library and all subsequent libraries and executables linked adamc@1132: # against it. adamc@1132: hardcode_automatic=$hardcode_automatic adamc@1132: adamc@1132: # Set to yes if linker adds runtime paths of dependent libraries adamc@1132: # to runtime path list. adamc@1132: inherit_rpath=$inherit_rpath adamc@1132: adamc@1132: # Whether libtool must link a program against all its dependency libraries. adamc@1132: link_all_deplibs=$link_all_deplibs adamc@1132: adamc@1132: # Set to "yes" if exported symbols are required. adamc@1132: always_export_symbols=$always_export_symbols adamc@1132: adamc@1132: # The commands to list exported symbols. adamc@1132: export_symbols_cmds=$lt_export_symbols_cmds adamc@1132: adamc@1132: # Symbols that should not be listed in the preloaded symbols. adamc@1132: exclude_expsyms=$lt_exclude_expsyms adamc@1132: adamc@1132: # Symbols that must always be exported. adamc@1132: include_expsyms=$lt_include_expsyms adamc@1132: adamc@1132: # Commands necessary for linking programs (against libraries) with templates. adamc@1132: prelink_cmds=$lt_prelink_cmds adamc@1132: adam@1459: # Commands necessary for finishing linking programs. adam@1459: postlink_cmds=$lt_postlink_cmds adam@1459: adamc@1132: # Specify filename containing input files. adamc@1132: file_list_spec=$lt_file_list_spec adamc@1132: adamc@1132: # How to hardcode a shared library path into an executable. adamc@1132: hardcode_action=$hardcode_action adamc@1132: adamc@1132: # ### END LIBTOOL CONFIG adamc@1132: adamc@1132: _LT_EOF adamc@1132: adamc@1132: case $host_os in adamc@1132: aix3*) adamc@1132: cat <<\_LT_EOF >> "$cfgfile" adamc@1132: # AIX sometimes has problems with the GCC collect2 program. For some adamc@1132: # reason, if we set the COLLECT_NAMES environment variable, the problems adamc@1132: # vanish in a puff of smoke. adamc@1132: if test "X${COLLECT_NAMES+set}" != Xset; then adamc@1132: COLLECT_NAMES= adamc@1132: export COLLECT_NAMES adamc@1132: fi adamc@1132: _LT_EOF adamc@1132: ;; adamc@1132: esac adamc@1132: adamc@1132: adamc@1132: ltmain="$ac_aux_dir/ltmain.sh" adamc@1132: adamc@1132: adamc@1132: # We use sed instead of cat because bash on DJGPP gets confused if adamc@1132: # if finds mixed CR/LF and LF-only lines. Since sed operates in adamc@1132: # text mode, it properly converts lines to CR/LF. This bash problem adamc@1132: # is reportedly fixed, but why not run on old versions too? adam@1459: sed '$q' "$ltmain" >> "$cfgfile" \ adam@1459: || (rm -f "$cfgfile"; exit 1) adam@1459: adam@1459: if test x"$xsi_shell" = xyes; then adam@1459: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ adam@1459: func_dirname ()\ adam@1459: {\ adam@1459: \ case ${1} in\ adam@1459: \ */*) func_dirname_result="${1%/*}${2}" ;;\ adam@1459: \ * ) func_dirname_result="${3}" ;;\ adam@1459: \ esac\ adam@1459: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_basename ()$/,/^} # func_basename /c\ adam@1459: func_basename ()\ adam@1459: {\ adam@1459: \ func_basename_result="${1##*/}"\ adam@1459: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ adam@1459: func_dirname_and_basename ()\ adam@1459: {\ adam@1459: \ case ${1} in\ adam@1459: \ */*) func_dirname_result="${1%/*}${2}" ;;\ adam@1459: \ * ) func_dirname_result="${3}" ;;\ adam@1459: \ esac\ adam@1459: \ func_basename_result="${1##*/}"\ adam@1459: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ adam@1459: func_stripname ()\ adam@1459: {\ adam@1459: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ adam@1459: \ # positional parameters, so assign one to ordinary parameter first.\ adam@1459: \ func_stripname_result=${3}\ adam@1459: \ func_stripname_result=${func_stripname_result#"${1}"}\ adam@1459: \ func_stripname_result=${func_stripname_result%"${2}"}\ adam@1459: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ adam@1459: func_split_long_opt ()\ adam@1459: {\ adam@1459: \ func_split_long_opt_name=${1%%=*}\ adam@1459: \ func_split_long_opt_arg=${1#*=}\ adam@1459: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ adam@1459: func_split_short_opt ()\ adam@1459: {\ adam@1459: \ func_split_short_opt_arg=${1#??}\ adam@1459: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ adam@1459: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ adam@1459: func_lo2o ()\ adam@1459: {\ adam@1459: \ case ${1} in\ adam@1459: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ adam@1459: \ *) func_lo2o_result=${1} ;;\ adam@1459: \ esac\ adam@1459: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_xform ()$/,/^} # func_xform /c\ adam@1459: func_xform ()\ adam@1459: {\ adam@1459: func_xform_result=${1%.*}.lo\ adam@1459: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_arith ()$/,/^} # func_arith /c\ adam@1459: func_arith ()\ adam@1459: {\ adam@1459: func_arith_result=$(( $* ))\ adam@1459: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_len ()$/,/^} # func_len /c\ adam@1459: func_len ()\ adam@1459: {\ adam@1459: func_len_result=${#1}\ adam@1459: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: fi adam@1459: adam@1459: if test x"$lt_shell_append" = xyes; then adam@1459: sed -e '/^func_append ()$/,/^} # func_append /c\ adam@1459: func_append ()\ adam@1459: {\ adam@1459: eval "${1}+=\\${2}"\ adam@1459: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ adam@1459: func_append_quoted ()\ adam@1459: {\ adam@1459: \ func_quote_for_eval "${2}"\ adam@1459: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ adam@1459: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: adam@1459: adam@1459: # Save a `func_append' function call where possible by direct use of '+=' adam@1459: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: else adam@1459: # Save a `func_append' function call even when '+=' is not available adam@1459: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ adam@1459: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@1459: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@1459: test 0 -eq $? || _lt_function_replace_fail=: adam@1459: fi adam@1459: adam@1459: if test x"$_lt_function_replace_fail" = x":"; then adam@1459: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 adam@1459: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} adam@1459: fi adam@1459: adam@1459: adam@1459: mv -f "$cfgfile" "$ofile" || adamc@1132: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") adamc@1132: chmod +x "$ofile" adamc@1132: adamc@1132: ;; adamc@378: adamc@378: esac adamc@378: done # for ac_tag adamc@378: adamc@378: adamc@1095: as_fn_exit 0 adamc@378: _ACEOF adamc@378: ac_clean_files=$ac_clean_files_save adamc@378: adamc@1095: test $ac_write_fail = 0 || adam@1315: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 adamc@1095: adamc@378: adamc@378: # configure is writing to config.log, and then calls config.status. adamc@378: # config.status does its own redirection, appending to config.log. adamc@378: # Unfortunately, on DOS this fails, as config.log is still kept open adamc@378: # by configure, so config.status won't be able to write to it; its adamc@378: # output is simply discarded. So we exec the FD to /dev/null, adamc@378: # effectively closing config.log, so it can be properly (re)opened and adamc@378: # appended to by config.status. When coming back to configure, we adamc@378: # need to make the FD available again. adamc@378: if test "$no_create" != yes; then adamc@378: ac_cs_success=: adamc@378: ac_config_status_args= adamc@378: test "$silent" = yes && adamc@378: ac_config_status_args="$ac_config_status_args --quiet" adamc@378: exec 5>/dev/null adamc@378: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false adamc@378: exec 5>>config.log adamc@378: # Use ||, not &&, to avoid exiting from the if with $? = 1, which adamc@378: # would make configure fail if this is the last instruction. adam@1315: $ac_cs_success || as_fn_exit 1 adamc@1095: fi adamc@1095: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then adamc@1095: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 adamc@1095: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} adamc@378: fi adamc@378: adamc@378: adamc@378: cat <