adam@0: #! /bin/sh adam@0: # Guess values for system-dependent variables and create Makefiles. adam@12: # Generated by GNU Autoconf 2.68 for urweb_feed 1.0. adam@0: # adam@0: # adam@0: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, adam@0: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software adam@0: # Foundation, Inc. adam@0: # adam@0: # adam@0: # This configure script is free software; the Free Software Foundation adam@0: # gives unlimited permission to copy, distribute and modify it. adam@0: ## -------------------- ## adam@0: ## M4sh Initialization. ## adam@0: ## -------------------- ## adam@0: adam@0: # Be more Bourne compatible adam@0: DUALCASE=1; export DUALCASE # for MKS sh adam@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : adam@0: emulate sh adam@0: NULLCMD=: adam@0: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which adam@0: # is contrary to our usage. Disable this feature. adam@0: alias -g '${1+"$@"}'='"$@"' adam@0: setopt NO_GLOB_SUBST adam@0: else adam@0: case `(set -o) 2>/dev/null` in #( adam@0: *posix*) : adam@0: set -o posix ;; #( adam@0: *) : adam@0: ;; adam@0: esac adam@0: fi adam@0: adam@0: adam@0: as_nl=' adam@0: ' adam@0: export as_nl adam@0: # Printing a long string crashes Solaris 7 /usr/bin/printf. adam@0: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' adam@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo adam@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo adam@0: # Prefer a ksh shell builtin over an external printf program on Solaris, adam@0: # but without wasting forks for bash or zsh. adam@0: if test -z "$BASH_VERSION$ZSH_VERSION" \ adam@0: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then adam@0: as_echo='print -r --' adam@0: as_echo_n='print -rn --' adam@0: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then adam@0: as_echo='printf %s\n' adam@0: as_echo_n='printf %s' adam@0: else adam@0: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then adam@0: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' adam@0: as_echo_n='/usr/ucb/echo -n' adam@0: else adam@0: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' adam@0: as_echo_n_body='eval adam@0: arg=$1; adam@0: case $arg in #( adam@0: *"$as_nl"*) adam@0: expr "X$arg" : "X\\(.*\\)$as_nl"; adam@0: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; adam@0: esac; adam@0: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" adam@0: ' adam@0: export as_echo_n_body adam@0: as_echo_n='sh -c $as_echo_n_body as_echo' adam@0: fi adam@0: export as_echo_body adam@0: as_echo='sh -c $as_echo_body as_echo' adam@0: fi adam@0: adam@0: # The user is always right. adam@0: if test "${PATH_SEPARATOR+set}" != set; then adam@0: PATH_SEPARATOR=: adam@0: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { adam@0: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || adam@0: PATH_SEPARATOR=';' adam@0: } adam@0: fi adam@0: adam@0: adam@0: # IFS adam@0: # We need space, tab and new line, in precisely that order. Quoting is adam@0: # there to prevent editors from complaining about space-tab. adam@0: # (If _AS_PATH_WALK were called with IFS unset, it would disable word adam@0: # splitting by setting IFS to empty value.) adam@0: IFS=" "" $as_nl" adam@0: adam@0: # Find who we are. Look in the path if we contain no directory separator. adam@12: as_myself= adam@0: case $0 in #(( adam@0: *[\\/]* ) as_myself=$0 ;; adam@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: ;; adam@0: esac adam@0: # We did not find ourselves, most probably we were run as `sh COMMAND' adam@0: # in which case we are not to be found in the path. adam@0: if test "x$as_myself" = x; then adam@0: as_myself=$0 adam@0: fi adam@0: if test ! -f "$as_myself"; then adam@0: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 adam@0: exit 1 adam@0: fi adam@0: adam@0: # Unset variables that we do not need and which cause bugs (e.g. in adam@0: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" adam@0: # suppresses any "Segmentation fault" message there. '((' could adam@0: # trigger a bug in pdksh 5.2.14. adam@0: for as_var in BASH_ENV ENV MAIL MAILPATH adam@0: do eval test x\${$as_var+set} = xset \ adam@0: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : adam@0: done adam@0: PS1='$ ' adam@0: PS2='> ' adam@0: PS4='+ ' adam@0: adam@0: # NLS nuisances. adam@0: LC_ALL=C adam@0: export LC_ALL adam@0: LANGUAGE=C adam@0: export LANGUAGE adam@0: adam@0: # CDPATH. adam@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH adam@0: adam@0: if test "x$CONFIG_SHELL" = x; then adam@0: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : adam@0: emulate sh adam@0: NULLCMD=: adam@0: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which adam@0: # is contrary to our usage. Disable this feature. adam@0: alias -g '\${1+\"\$@\"}'='\"\$@\"' adam@0: setopt NO_GLOB_SUBST adam@0: else adam@0: case \`(set -o) 2>/dev/null\` in #( adam@0: *posix*) : adam@0: set -o posix ;; #( adam@0: *) : adam@0: ;; adam@0: esac adam@0: fi adam@0: " adam@0: as_required="as_fn_return () { (exit \$1); } adam@0: as_fn_success () { as_fn_return 0; } adam@0: as_fn_failure () { as_fn_return 1; } adam@0: as_fn_ret_success () { return 0; } adam@0: as_fn_ret_failure () { return 1; } adam@0: adam@0: exitcode=0 adam@0: as_fn_success || { exitcode=1; echo as_fn_success failed.; } adam@0: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } adam@0: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } adam@0: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } adam@0: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : adam@0: adam@0: else adam@0: exitcode=1; echo positional parameters were not saved. adam@0: fi adam@0: test x\$exitcode = x0 || exit 1" adam@0: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO adam@0: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO adam@0: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && adam@0: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 adam@12: test \$(( 1 + 1 )) = 2 || exit 1 adam@12: adam@12: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( adam@12: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' adam@12: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO adam@12: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO adam@12: PATH=/empty FPATH=/empty; export PATH FPATH adam@12: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ adam@12: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" adam@0: if (eval "$as_required") 2>/dev/null; then : adam@0: as_have_required=yes adam@0: else adam@0: as_have_required=no adam@0: fi adam@0: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : adam@0: adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: as_found=false adam@0: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: as_found=: adam@0: case $as_dir in #( adam@0: /*) adam@0: for as_base in sh bash ksh sh5; do adam@0: # Try only shells that exist, to save several forks. adam@0: as_shell=$as_dir/$as_base adam@0: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && adam@0: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : adam@0: CONFIG_SHELL=$as_shell as_have_required=yes adam@0: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : adam@0: break 2 adam@0: fi adam@0: fi adam@0: done;; adam@0: esac adam@0: as_found=false adam@0: done adam@0: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && adam@0: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : adam@0: CONFIG_SHELL=$SHELL as_have_required=yes adam@0: fi; } adam@0: IFS=$as_save_IFS adam@0: adam@0: adam@0: if test "x$CONFIG_SHELL" != x; then : adam@0: # We cannot yet assume a decent shell, so we have to provide a adam@0: # neutralization value for shells without unset; and this also adam@0: # works around shells that cannot unset nonexistent variables. adam@12: # Preserve -v and -x to the replacement shell. adam@0: BASH_ENV=/dev/null adam@0: ENV=/dev/null adam@0: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV adam@0: export CONFIG_SHELL adam@12: case $- in # (((( adam@12: *v*x* | *x*v* ) as_opts=-vx ;; adam@12: *v* ) as_opts=-v ;; adam@12: *x* ) as_opts=-x ;; adam@12: * ) as_opts= ;; adam@12: esac adam@12: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} adam@0: fi adam@0: adam@0: if test x$as_have_required = xno; then : adam@0: $as_echo "$0: This script requires a shell more modern than all" adam@0: $as_echo "$0: the shells that I found on your system." adam@0: if test x${ZSH_VERSION+set} = xset ; then adam@0: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" adam@0: $as_echo "$0: be upgraded to zsh 4.3.4 or later." adam@0: else adam@0: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, adam@0: $0: including any error possibly output before this adam@0: $0: message. Then install a modern shell, or manually run adam@0: $0: the script under such a shell if you do have one." adam@0: fi adam@0: exit 1 adam@0: fi adam@0: fi adam@0: fi adam@0: SHELL=${CONFIG_SHELL-/bin/sh} adam@0: export SHELL adam@0: # Unset more variables known to interfere with behavior of common tools. adam@0: CLICOLOR_FORCE= GREP_OPTIONS= adam@0: unset CLICOLOR_FORCE GREP_OPTIONS adam@0: adam@0: ## --------------------- ## adam@0: ## M4sh Shell Functions. ## adam@0: ## --------------------- ## adam@0: # as_fn_unset VAR adam@0: # --------------- adam@0: # Portably unset VAR. adam@0: as_fn_unset () adam@0: { adam@0: { eval $1=; unset $1;} adam@0: } adam@0: as_unset=as_fn_unset adam@0: adam@0: # as_fn_set_status STATUS adam@0: # ----------------------- adam@0: # Set $? to STATUS, without forking. adam@0: as_fn_set_status () adam@0: { adam@0: return $1 adam@0: } # as_fn_set_status adam@0: adam@0: # as_fn_exit STATUS adam@0: # ----------------- adam@0: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. adam@0: as_fn_exit () adam@0: { adam@0: set +e adam@0: as_fn_set_status $1 adam@0: exit $1 adam@0: } # as_fn_exit adam@0: adam@0: # as_fn_mkdir_p adam@0: # ------------- adam@0: # Create "$as_dir" as a directory, including parents if necessary. adam@0: as_fn_mkdir_p () adam@0: { adam@0: adam@0: case $as_dir in #( adam@0: -*) as_dir=./$as_dir;; adam@0: esac adam@0: test -d "$as_dir" || eval $as_mkdir_p || { adam@0: as_dirs= adam@0: while :; do adam@0: case $as_dir in #( adam@0: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( adam@0: *) as_qdir=$as_dir;; adam@0: esac adam@0: as_dirs="'$as_qdir' $as_dirs" adam@0: as_dir=`$as_dirname -- "$as_dir" || adam@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adam@0: X"$as_dir" : 'X\(//\)[^/]' \| \ adam@0: X"$as_dir" : 'X\(//\)$' \| \ adam@0: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || adam@0: $as_echo X"$as_dir" | adam@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)[^/].*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\).*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: s/.*/./; q'` adam@0: test -d "$as_dir" && break adam@0: done adam@0: test -z "$as_dirs" || eval "mkdir $as_dirs" adam@0: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" adam@0: adam@0: adam@0: } # as_fn_mkdir_p adam@0: # as_fn_append VAR VALUE adam@0: # ---------------------- adam@0: # Append the text in VALUE to the end of the definition contained in VAR. Take adam@0: # advantage of any shell optimizations that allow amortized linear growth over adam@0: # repeated appends, instead of the typical quadratic growth present in naive adam@0: # implementations. adam@0: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : adam@0: eval 'as_fn_append () adam@0: { adam@0: eval $1+=\$2 adam@0: }' adam@0: else adam@0: as_fn_append () adam@0: { adam@0: eval $1=\$$1\$2 adam@0: } adam@0: fi # as_fn_append adam@0: adam@0: # as_fn_arith ARG... adam@0: # ------------------ adam@0: # Perform arithmetic evaluation on the ARGs, and store the result in the adam@0: # global $as_val. Take advantage of shells that can avoid forks. The arguments adam@0: # must be portable across $(()) and expr. adam@0: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : adam@0: eval 'as_fn_arith () adam@0: { adam@0: as_val=$(( $* )) adam@0: }' adam@0: else adam@0: as_fn_arith () adam@0: { adam@0: as_val=`expr "$@" || test $? -eq 1` adam@0: } adam@0: fi # as_fn_arith adam@0: adam@0: adam@0: # as_fn_error STATUS ERROR [LINENO LOG_FD] adam@0: # ---------------------------------------- adam@0: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are adam@0: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the adam@0: # script with STATUS, using 1 if that was 0. adam@0: as_fn_error () adam@0: { adam@0: as_status=$1; test $as_status -eq 0 && as_status=1 adam@0: if test "$4"; then adam@0: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 adam@0: fi adam@0: $as_echo "$as_me: error: $2" >&2 adam@0: as_fn_exit $as_status adam@0: } # as_fn_error adam@0: adam@0: if expr a : '\(a\)' >/dev/null 2>&1 && adam@0: test "X`expr 00001 : '.*\(...\)'`" = X001; then adam@0: as_expr=expr adam@0: else adam@0: as_expr=false adam@0: fi adam@0: adam@0: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then adam@0: as_basename=basename adam@0: else adam@0: as_basename=false adam@0: fi adam@0: adam@0: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then adam@0: as_dirname=dirname adam@0: else adam@0: as_dirname=false adam@0: fi adam@0: adam@0: as_me=`$as_basename -- "$0" || adam@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ adam@0: X"$0" : 'X\(//\)$' \| \ adam@0: X"$0" : 'X\(/\)' \| . 2>/dev/null || adam@0: $as_echo X/"$0" | adam@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\/\(\/\/\)$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\/\(\/\).*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: s/.*/./; q'` adam@0: adam@0: # Avoid depending upon Character Ranges. adam@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' adam@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' adam@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS adam@0: as_cr_digits='0123456789' adam@0: as_cr_alnum=$as_cr_Letters$as_cr_digits adam@0: adam@0: adam@0: as_lineno_1=$LINENO as_lineno_1a=$LINENO adam@0: as_lineno_2=$LINENO as_lineno_2a=$LINENO adam@0: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && adam@0: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { adam@0: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) adam@0: sed -n ' adam@0: p adam@0: /[$]LINENO/= adam@0: ' <$as_myself | adam@0: sed ' adam@0: s/[$]LINENO.*/&-/ adam@0: t lineno adam@0: b adam@0: :lineno adam@0: N adam@0: :loop adam@0: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ adam@0: t loop adam@0: s/-\n.*// adam@0: ' >$as_me.lineno && adam@0: chmod +x "$as_me.lineno" || adam@0: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } adam@0: adam@0: # Don't try to exec as it changes $[0], causing all sort of problems adam@0: # (the dirname of $[0] is not the place where we might find the adam@0: # original and so on. Autoconf is especially sensitive to this). adam@0: . "./$as_me.lineno" adam@0: # Exit status is that of the last command. adam@0: exit adam@0: } adam@0: adam@0: ECHO_C= ECHO_N= ECHO_T= adam@0: case `echo -n x` in #((((( adam@0: -n*) adam@0: case `echo 'xy\c'` in adam@0: *c*) ECHO_T=' ';; # ECHO_T is single tab character. adam@0: xy) ECHO_C='\c';; adam@0: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null adam@0: ECHO_T=' ';; adam@0: esac;; adam@0: *) adam@0: ECHO_N='-n';; adam@0: esac adam@0: adam@0: rm -f conf$$ conf$$.exe conf$$.file adam@0: if test -d conf$$.dir; then adam@0: rm -f conf$$.dir/conf$$.file adam@0: else adam@0: rm -f conf$$.dir adam@0: mkdir conf$$.dir 2>/dev/null adam@0: fi adam@0: if (echo >conf$$.file) 2>/dev/null; then adam@0: if ln -s conf$$.file conf$$ 2>/dev/null; then adam@0: as_ln_s='ln -s' adam@0: # ... but there are two gotchas: adam@0: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. adam@0: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. adam@0: # In both cases, we have to default to `cp -p'. adam@0: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || adam@0: as_ln_s='cp -p' adam@0: elif ln conf$$.file conf$$ 2>/dev/null; then adam@0: as_ln_s=ln adam@0: else adam@0: as_ln_s='cp -p' adam@0: fi adam@0: else adam@0: as_ln_s='cp -p' adam@0: fi adam@0: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file adam@0: rmdir conf$$.dir 2>/dev/null adam@0: adam@0: if mkdir -p . 2>/dev/null; then adam@0: as_mkdir_p='mkdir -p "$as_dir"' adam@0: else adam@0: test -d ./-p && rmdir ./-p adam@0: as_mkdir_p=false adam@0: fi adam@0: adam@0: if test -x / >/dev/null 2>&1; then adam@0: as_test_x='test -x' adam@0: else adam@0: if ls -dL / >/dev/null 2>&1; then adam@0: as_ls_L_option=L adam@0: else adam@0: as_ls_L_option= adam@0: fi adam@0: as_test_x=' adam@0: eval sh -c '\'' adam@0: if test -d "$1"; then adam@0: test -d "$1/."; adam@0: else adam@0: case $1 in #( adam@0: -*)set "./$1";; adam@0: esac; adam@0: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( adam@0: ???[sx]*):;;*)false;;esac;fi adam@0: '\'' sh adam@0: ' adam@0: fi adam@0: as_executable_p=$as_test_x adam@0: adam@0: # Sed expression to map a string onto a valid CPP name. adam@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" adam@0: adam@0: # Sed expression to map a string onto a valid variable name. adam@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" adam@0: adam@0: SHELL=${CONFIG_SHELL-/bin/sh} adam@0: adam@0: adam@0: test -n "$DJDIR" || exec 7<&0 &1 adam@0: adam@0: # Name of the host. adam@0: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, adam@0: # so uname gets run too. adam@0: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` adam@0: adam@0: # adam@0: # Initializations. adam@0: # adam@0: ac_default_prefix=/usr/local adam@0: ac_clean_files= adam@0: ac_config_libobj_dir=. adam@0: LIBOBJS= adam@0: cross_compiling=no adam@0: subdirs= adam@0: MFLAGS= adam@0: MAKEFLAGS= adam@0: adam@0: # Identity of this package. adam@0: PACKAGE_NAME='urweb_feed' adam@0: PACKAGE_TARNAME='urweb_feed' adam@0: PACKAGE_VERSION='1.0' adam@0: PACKAGE_STRING='urweb_feed 1.0' adam@0: PACKAGE_BUGREPORT='' adam@0: PACKAGE_URL='' adam@0: adam@0: # Factoring default headers for most tests. adam@0: ac_includes_default="\ adam@0: #include adam@0: #ifdef HAVE_SYS_TYPES_H adam@0: # include adam@0: #endif adam@0: #ifdef HAVE_SYS_STAT_H adam@0: # include adam@0: #endif adam@0: #ifdef STDC_HEADERS adam@0: # include adam@0: # include adam@0: #else adam@0: # ifdef HAVE_STDLIB_H adam@0: # include adam@0: # endif adam@0: #endif adam@0: #ifdef HAVE_STRING_H adam@0: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H adam@0: # include adam@0: # endif adam@0: # include adam@0: #endif adam@0: #ifdef HAVE_STRINGS_H adam@0: # include adam@0: #endif adam@0: #ifdef HAVE_INTTYPES_H adam@0: # include adam@0: #endif adam@0: #ifdef HAVE_STDINT_H adam@0: # include adam@0: #endif adam@0: #ifdef HAVE_UNISTD_H adam@0: # include adam@0: #endif" adam@0: adam@0: ac_subst_vars='am__EXEEXT_FALSE adam@0: am__EXEEXT_TRUE adam@0: LTLIBOBJS adam@0: LIBOBJS adam@0: INCLUDE adam@0: LIB adam@0: LIBCURL adam@0: LIBCURL_CPPFLAGS adam@0: _libcurl_config adam@0: OTOOL64 adam@0: OTOOL adam@0: LIPO adam@0: NMEDIT adam@0: DSYMUTIL adam@12: MANIFEST_TOOL adam@0: RANLIB adam@12: ac_ct_AR adam@0: AR adam@12: DLLTOOL adam@0: OBJDUMP adam@0: LN_S adam@0: NM adam@0: ac_ct_DUMPBIN adam@0: DUMPBIN adam@0: LD adam@0: FGREP adam@0: SED adam@0: host_os adam@0: host_vendor adam@0: host_cpu adam@0: host adam@0: build_os adam@0: build_vendor adam@0: build_cpu adam@0: build adam@0: LIBTOOL adam@0: am__fastdepCC_FALSE adam@0: am__fastdepCC_TRUE adam@0: CCDEPMODE adam@0: AMDEPBACKSLASH adam@0: AMDEP_FALSE adam@0: AMDEP_TRUE adam@0: am__quote adam@0: am__include adam@0: DEPDIR adam@0: am__untar adam@0: am__tar adam@0: AMTAR adam@0: am__leading_dot adam@0: SET_MAKE adam@0: AWK adam@0: mkdir_p adam@0: MKDIR_P adam@0: INSTALL_STRIP_PROGRAM adam@0: STRIP adam@0: install_sh adam@0: MAKEINFO adam@0: AUTOHEADER adam@0: AUTOMAKE adam@0: AUTOCONF adam@0: ACLOCAL adam@0: VERSION adam@0: PACKAGE adam@0: CYGPATH_W adam@0: am__isrc adam@0: INSTALL_DATA adam@0: INSTALL_SCRIPT adam@0: INSTALL_PROGRAM adam@0: EGREP adam@0: GREP adam@0: CPP adam@0: OBJEXT adam@0: EXEEXT adam@0: ac_ct_CC adam@0: CPPFLAGS adam@0: LDFLAGS adam@0: CFLAGS adam@0: CC adam@0: target_alias adam@0: host_alias adam@0: build_alias adam@0: LIBS adam@0: ECHO_T adam@0: ECHO_N adam@0: ECHO_C adam@0: DEFS adam@0: mandir adam@0: localedir adam@0: libdir adam@0: psdir adam@0: pdfdir adam@0: dvidir adam@0: htmldir adam@0: infodir adam@0: docdir adam@0: oldincludedir adam@0: includedir adam@0: localstatedir adam@0: sharedstatedir adam@0: sysconfdir adam@0: datadir adam@0: datarootdir adam@0: libexecdir adam@0: sbindir adam@0: bindir adam@0: program_transform_name adam@0: prefix adam@0: exec_prefix adam@0: PACKAGE_URL adam@0: PACKAGE_BUGREPORT adam@0: PACKAGE_STRING adam@0: PACKAGE_VERSION adam@0: PACKAGE_TARNAME adam@0: PACKAGE_NAME adam@0: PATH_SEPARATOR adam@0: SHELL' adam@0: ac_subst_files='' adam@0: ac_user_opts=' adam@0: enable_option_checking adam@0: enable_dependency_tracking adam@0: enable_shared adam@0: enable_static adam@0: with_pic adam@0: enable_fast_install adam@0: with_gnu_ld adam@12: with_sysroot adam@0: enable_libtool_lock adam@0: with_libcurl adam@0: ' adam@0: ac_precious_vars='build_alias adam@0: host_alias adam@0: target_alias adam@0: CC adam@0: CFLAGS adam@0: LDFLAGS adam@0: LIBS adam@0: CPPFLAGS adam@0: CPP' adam@0: adam@0: adam@0: # Initialize some variables set by options. adam@0: ac_init_help= adam@0: ac_init_version=false adam@0: ac_unrecognized_opts= adam@0: ac_unrecognized_sep= adam@0: # The variables have the same names as the options, with adam@0: # dashes changed to underlines. adam@0: cache_file=/dev/null adam@0: exec_prefix=NONE adam@0: no_create= adam@0: no_recursion= adam@0: prefix=NONE adam@0: program_prefix=NONE adam@0: program_suffix=NONE adam@0: program_transform_name=s,x,x, adam@0: silent= adam@0: site= adam@0: srcdir= adam@0: verbose= adam@0: x_includes=NONE adam@0: x_libraries=NONE adam@0: adam@0: # Installation directory options. adam@0: # These are left unexpanded so users can "make install exec_prefix=/foo" adam@0: # and all the variables that are supposed to be based on exec_prefix adam@0: # by default will actually change. adam@0: # Use braces instead of parens because sh, perl, etc. also accept them. adam@0: # (The list follows the same order as the GNU Coding Standards.) adam@0: bindir='${exec_prefix}/bin' adam@0: sbindir='${exec_prefix}/sbin' adam@0: libexecdir='${exec_prefix}/libexec' adam@0: datarootdir='${prefix}/share' adam@0: datadir='${datarootdir}' adam@0: sysconfdir='${prefix}/etc' adam@0: sharedstatedir='${prefix}/com' adam@0: localstatedir='${prefix}/var' adam@0: includedir='${prefix}/include' adam@0: oldincludedir='/usr/include' adam@0: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' adam@0: infodir='${datarootdir}/info' adam@0: htmldir='${docdir}' adam@0: dvidir='${docdir}' adam@0: pdfdir='${docdir}' adam@0: psdir='${docdir}' adam@0: libdir='${exec_prefix}/lib' adam@0: localedir='${datarootdir}/locale' adam@0: mandir='${datarootdir}/man' adam@0: adam@0: ac_prev= adam@0: ac_dashdash= adam@0: for ac_option adam@0: do adam@0: # If the previous option needs an argument, assign it. adam@0: if test -n "$ac_prev"; then adam@0: eval $ac_prev=\$ac_option adam@0: ac_prev= adam@0: continue adam@0: fi adam@0: adam@0: case $ac_option in adam@0: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; adam@0: *=) ac_optarg= ;; adam@0: *) ac_optarg=yes ;; adam@0: esac adam@0: adam@0: # Accept the important Cygnus configure options, so we can diagnose typos. adam@0: adam@0: case $ac_dashdash$ac_option in adam@0: --) adam@0: ac_dashdash=yes ;; adam@0: adam@0: -bindir | --bindir | --bindi | --bind | --bin | --bi) adam@0: ac_prev=bindir ;; adam@0: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) adam@0: bindir=$ac_optarg ;; adam@0: adam@0: -build | --build | --buil | --bui | --bu) adam@0: ac_prev=build_alias ;; adam@0: -build=* | --build=* | --buil=* | --bui=* | --bu=*) adam@0: build_alias=$ac_optarg ;; adam@0: adam@0: -cache-file | --cache-file | --cache-fil | --cache-fi \ adam@0: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) adam@0: ac_prev=cache_file ;; adam@0: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ adam@0: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) adam@0: cache_file=$ac_optarg ;; adam@0: adam@0: --config-cache | -C) adam@0: cache_file=config.cache ;; adam@0: adam@0: -datadir | --datadir | --datadi | --datad) adam@0: ac_prev=datadir ;; adam@0: -datadir=* | --datadir=* | --datadi=* | --datad=*) adam@0: datadir=$ac_optarg ;; adam@0: adam@0: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ adam@0: | --dataroo | --dataro | --datar) adam@0: ac_prev=datarootdir ;; adam@0: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ adam@0: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) adam@0: datarootdir=$ac_optarg ;; adam@0: adam@0: -disable-* | --disable-*) adam@0: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` adam@0: # Reject names that are not valid shell variable names. adam@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && adam@0: as_fn_error $? "invalid feature name: $ac_useropt" adam@0: ac_useropt_orig=$ac_useropt adam@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` adam@0: case $ac_user_opts in adam@0: *" adam@0: "enable_$ac_useropt" adam@0: "*) ;; adam@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" adam@0: ac_unrecognized_sep=', ';; adam@0: esac adam@0: eval enable_$ac_useropt=no ;; adam@0: adam@0: -docdir | --docdir | --docdi | --doc | --do) adam@0: ac_prev=docdir ;; adam@0: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) adam@0: docdir=$ac_optarg ;; adam@0: adam@0: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) adam@0: ac_prev=dvidir ;; adam@0: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) adam@0: dvidir=$ac_optarg ;; adam@0: adam@0: -enable-* | --enable-*) adam@0: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` adam@0: # Reject names that are not valid shell variable names. adam@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && adam@0: as_fn_error $? "invalid feature name: $ac_useropt" adam@0: ac_useropt_orig=$ac_useropt adam@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` adam@0: case $ac_user_opts in adam@0: *" adam@0: "enable_$ac_useropt" adam@0: "*) ;; adam@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" adam@0: ac_unrecognized_sep=', ';; adam@0: esac adam@0: eval enable_$ac_useropt=\$ac_optarg ;; adam@0: adam@0: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ adam@0: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ adam@0: | --exec | --exe | --ex) adam@0: ac_prev=exec_prefix ;; adam@0: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ adam@0: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ adam@0: | --exec=* | --exe=* | --ex=*) adam@0: exec_prefix=$ac_optarg ;; adam@0: adam@0: -gas | --gas | --ga | --g) adam@0: # Obsolete; use --with-gas. adam@0: with_gas=yes ;; adam@0: adam@0: -help | --help | --hel | --he | -h) adam@0: ac_init_help=long ;; adam@0: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) adam@0: ac_init_help=recursive ;; adam@0: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) adam@0: ac_init_help=short ;; adam@0: adam@0: -host | --host | --hos | --ho) adam@0: ac_prev=host_alias ;; adam@0: -host=* | --host=* | --hos=* | --ho=*) adam@0: host_alias=$ac_optarg ;; adam@0: adam@0: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) adam@0: ac_prev=htmldir ;; adam@0: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ adam@0: | --ht=*) adam@0: htmldir=$ac_optarg ;; adam@0: adam@0: -includedir | --includedir | --includedi | --included | --include \ adam@0: | --includ | --inclu | --incl | --inc) adam@0: ac_prev=includedir ;; adam@0: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ adam@0: | --includ=* | --inclu=* | --incl=* | --inc=*) adam@0: includedir=$ac_optarg ;; adam@0: adam@0: -infodir | --infodir | --infodi | --infod | --info | --inf) adam@0: ac_prev=infodir ;; adam@0: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) adam@0: infodir=$ac_optarg ;; adam@0: adam@0: -libdir | --libdir | --libdi | --libd) adam@0: ac_prev=libdir ;; adam@0: -libdir=* | --libdir=* | --libdi=* | --libd=*) adam@0: libdir=$ac_optarg ;; adam@0: adam@0: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ adam@0: | --libexe | --libex | --libe) adam@0: ac_prev=libexecdir ;; adam@0: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ adam@0: | --libexe=* | --libex=* | --libe=*) adam@0: libexecdir=$ac_optarg ;; adam@0: adam@0: -localedir | --localedir | --localedi | --localed | --locale) adam@0: ac_prev=localedir ;; adam@0: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) adam@0: localedir=$ac_optarg ;; adam@0: adam@0: -localstatedir | --localstatedir | --localstatedi | --localstated \ adam@0: | --localstate | --localstat | --localsta | --localst | --locals) adam@0: ac_prev=localstatedir ;; adam@0: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ adam@0: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) adam@0: localstatedir=$ac_optarg ;; adam@0: adam@0: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) adam@0: ac_prev=mandir ;; adam@0: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) adam@0: mandir=$ac_optarg ;; adam@0: adam@0: -nfp | --nfp | --nf) adam@0: # Obsolete; use --without-fp. adam@0: with_fp=no ;; adam@0: adam@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ adam@0: | --no-cr | --no-c | -n) adam@0: no_create=yes ;; adam@0: adam@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ adam@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) adam@0: no_recursion=yes ;; adam@0: adam@0: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ adam@0: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ adam@0: | --oldin | --oldi | --old | --ol | --o) adam@0: ac_prev=oldincludedir ;; adam@0: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ adam@0: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ adam@0: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) adam@0: oldincludedir=$ac_optarg ;; adam@0: adam@0: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) adam@0: ac_prev=prefix ;; adam@0: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) adam@0: prefix=$ac_optarg ;; adam@0: adam@0: -program-prefix | --program-prefix | --program-prefi | --program-pref \ adam@0: | --program-pre | --program-pr | --program-p) adam@0: ac_prev=program_prefix ;; adam@0: -program-prefix=* | --program-prefix=* | --program-prefi=* \ adam@0: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) adam@0: program_prefix=$ac_optarg ;; adam@0: adam@0: -program-suffix | --program-suffix | --program-suffi | --program-suff \ adam@0: | --program-suf | --program-su | --program-s) adam@0: ac_prev=program_suffix ;; adam@0: -program-suffix=* | --program-suffix=* | --program-suffi=* \ adam@0: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) adam@0: program_suffix=$ac_optarg ;; adam@0: adam@0: -program-transform-name | --program-transform-name \ adam@0: | --program-transform-nam | --program-transform-na \ adam@0: | --program-transform-n | --program-transform- \ adam@0: | --program-transform | --program-transfor \ adam@0: | --program-transfo | --program-transf \ adam@0: | --program-trans | --program-tran \ adam@0: | --progr-tra | --program-tr | --program-t) adam@0: ac_prev=program_transform_name ;; adam@0: -program-transform-name=* | --program-transform-name=* \ adam@0: | --program-transform-nam=* | --program-transform-na=* \ adam@0: | --program-transform-n=* | --program-transform-=* \ adam@0: | --program-transform=* | --program-transfor=* \ adam@0: | --program-transfo=* | --program-transf=* \ adam@0: | --program-trans=* | --program-tran=* \ adam@0: | --progr-tra=* | --program-tr=* | --program-t=*) adam@0: program_transform_name=$ac_optarg ;; adam@0: adam@0: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) adam@0: ac_prev=pdfdir ;; adam@0: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) adam@0: pdfdir=$ac_optarg ;; adam@0: adam@0: -psdir | --psdir | --psdi | --psd | --ps) adam@0: ac_prev=psdir ;; adam@0: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) adam@0: psdir=$ac_optarg ;; adam@0: adam@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ adam@0: | -silent | --silent | --silen | --sile | --sil) adam@0: silent=yes ;; adam@0: adam@0: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) adam@0: ac_prev=sbindir ;; adam@0: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ adam@0: | --sbi=* | --sb=*) adam@0: sbindir=$ac_optarg ;; adam@0: adam@0: -sharedstatedir | --sharedstatedir | --sharedstatedi \ adam@0: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ adam@0: | --sharedst | --shareds | --shared | --share | --shar \ adam@0: | --sha | --sh) adam@0: ac_prev=sharedstatedir ;; adam@0: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ adam@0: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ adam@0: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ adam@0: | --sha=* | --sh=*) adam@0: sharedstatedir=$ac_optarg ;; adam@0: adam@0: -site | --site | --sit) adam@0: ac_prev=site ;; adam@0: -site=* | --site=* | --sit=*) adam@0: site=$ac_optarg ;; adam@0: adam@0: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) adam@0: ac_prev=srcdir ;; adam@0: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) adam@0: srcdir=$ac_optarg ;; adam@0: adam@0: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ adam@0: | --syscon | --sysco | --sysc | --sys | --sy) adam@0: ac_prev=sysconfdir ;; adam@0: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ adam@0: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) adam@0: sysconfdir=$ac_optarg ;; adam@0: adam@0: -target | --target | --targe | --targ | --tar | --ta | --t) adam@0: ac_prev=target_alias ;; adam@0: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) adam@0: target_alias=$ac_optarg ;; adam@0: adam@0: -v | -verbose | --verbose | --verbos | --verbo | --verb) adam@0: verbose=yes ;; adam@0: adam@0: -version | --version | --versio | --versi | --vers | -V) adam@0: ac_init_version=: ;; adam@0: adam@0: -with-* | --with-*) adam@0: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` adam@0: # Reject names that are not valid shell variable names. adam@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && adam@0: as_fn_error $? "invalid package name: $ac_useropt" adam@0: ac_useropt_orig=$ac_useropt adam@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` adam@0: case $ac_user_opts in adam@0: *" adam@0: "with_$ac_useropt" adam@0: "*) ;; adam@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" adam@0: ac_unrecognized_sep=', ';; adam@0: esac adam@0: eval with_$ac_useropt=\$ac_optarg ;; adam@0: adam@0: -without-* | --without-*) adam@0: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` adam@0: # Reject names that are not valid shell variable names. adam@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && adam@0: as_fn_error $? "invalid package name: $ac_useropt" adam@0: ac_useropt_orig=$ac_useropt adam@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` adam@0: case $ac_user_opts in adam@0: *" adam@0: "with_$ac_useropt" adam@0: "*) ;; adam@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" adam@0: ac_unrecognized_sep=', ';; adam@0: esac adam@0: eval with_$ac_useropt=no ;; adam@0: adam@0: --x) adam@0: # Obsolete; use --with-x. adam@0: with_x=yes ;; adam@0: adam@0: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ adam@0: | --x-incl | --x-inc | --x-in | --x-i) adam@0: ac_prev=x_includes ;; adam@0: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ adam@0: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) adam@0: x_includes=$ac_optarg ;; adam@0: adam@0: -x-libraries | --x-libraries | --x-librarie | --x-librari \ adam@0: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) adam@0: ac_prev=x_libraries ;; adam@0: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ adam@0: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) adam@0: x_libraries=$ac_optarg ;; adam@0: adam@0: -*) as_fn_error $? "unrecognized option: \`$ac_option' adam@0: Try \`$0 --help' for more information" adam@0: ;; adam@0: adam@0: *=*) adam@0: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` adam@0: # Reject names that are not valid shell variable names. adam@0: case $ac_envvar in #( adam@0: '' | [0-9]* | *[!_$as_cr_alnum]* ) adam@0: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; adam@0: esac adam@0: eval $ac_envvar=\$ac_optarg adam@0: export $ac_envvar ;; adam@0: adam@0: *) adam@0: # FIXME: should be removed in autoconf 3.0. adam@0: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 adam@0: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && adam@0: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 adam@12: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" adam@0: ;; adam@0: adam@0: esac adam@0: done adam@0: adam@0: if test -n "$ac_prev"; then adam@0: ac_option=--`echo $ac_prev | sed 's/_/-/g'` adam@0: as_fn_error $? "missing argument to $ac_option" adam@0: fi adam@0: adam@0: if test -n "$ac_unrecognized_opts"; then adam@0: case $enable_option_checking in adam@0: no) ;; adam@0: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; adam@0: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; adam@0: esac adam@0: fi adam@0: adam@0: # Check all directory arguments for consistency. adam@0: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ adam@0: datadir sysconfdir sharedstatedir localstatedir includedir \ adam@0: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ adam@0: libdir localedir mandir adam@0: do adam@0: eval ac_val=\$$ac_var adam@0: # Remove trailing slashes. adam@0: case $ac_val in adam@0: */ ) adam@0: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` adam@0: eval $ac_var=\$ac_val;; adam@0: esac adam@0: # Be sure to have absolute directory names. adam@0: case $ac_val in adam@0: [\\/$]* | ?:[\\/]* ) continue;; adam@0: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; adam@0: esac adam@0: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" adam@0: done adam@0: adam@0: # There might be people who depend on the old broken behavior: `$host' adam@0: # used to hold the argument of --host etc. adam@0: # FIXME: To remove some day. adam@0: build=$build_alias adam@0: host=$host_alias adam@0: target=$target_alias adam@0: adam@0: # FIXME: To remove some day. adam@0: if test "x$host_alias" != x; then adam@0: if test "x$build_alias" = x; then adam@0: cross_compiling=maybe adam@0: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. adam@0: If a cross compiler is detected then cross compile mode will be used" >&2 adam@0: elif test "x$build_alias" != "x$host_alias"; then adam@0: cross_compiling=yes adam@0: fi adam@0: fi adam@0: adam@0: ac_tool_prefix= adam@0: test -n "$host_alias" && ac_tool_prefix=$host_alias- adam@0: adam@0: test "$silent" = yes && exec 6>/dev/null adam@0: adam@0: adam@0: ac_pwd=`pwd` && test -n "$ac_pwd" && adam@0: ac_ls_di=`ls -di .` && adam@0: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || adam@0: as_fn_error $? "working directory cannot be determined" adam@0: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || adam@0: as_fn_error $? "pwd does not report name of working directory" adam@0: adam@0: adam@0: # Find the source files, if location was not specified. adam@0: if test -z "$srcdir"; then adam@0: ac_srcdir_defaulted=yes adam@0: # Try the directory containing this script, then the parent directory. adam@0: ac_confdir=`$as_dirname -- "$as_myself" || adam@0: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adam@0: X"$as_myself" : 'X\(//\)[^/]' \| \ adam@0: X"$as_myself" : 'X\(//\)$' \| \ adam@0: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || adam@0: $as_echo X"$as_myself" | adam@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)[^/].*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\).*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: s/.*/./; q'` adam@0: srcdir=$ac_confdir adam@0: if test ! -r "$srcdir/$ac_unique_file"; then adam@0: srcdir=.. adam@0: fi adam@0: else adam@0: ac_srcdir_defaulted=no adam@0: fi adam@0: if test ! -r "$srcdir/$ac_unique_file"; then adam@0: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." adam@0: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" adam@0: fi adam@0: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" adam@0: ac_abs_confdir=`( adam@0: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" adam@0: pwd)` adam@0: # When building in place, set srcdir=. adam@0: if test "$ac_abs_confdir" = "$ac_pwd"; then adam@0: srcdir=. adam@0: fi adam@0: # Remove unnecessary trailing slashes from srcdir. adam@0: # Double slashes in file names in object file debugging info adam@0: # mess up M-x gdb in Emacs. adam@0: case $srcdir in adam@0: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; adam@0: esac adam@0: for ac_var in $ac_precious_vars; do adam@0: eval ac_env_${ac_var}_set=\${${ac_var}+set} adam@0: eval ac_env_${ac_var}_value=\$${ac_var} adam@0: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} adam@0: eval ac_cv_env_${ac_var}_value=\$${ac_var} adam@0: done adam@0: adam@0: # adam@0: # Report the --help message. adam@0: # adam@0: if test "$ac_init_help" = "long"; then adam@0: # Omit some internal or obsolete options to make the list less imposing. adam@0: # This message is too long to be a string in the A/UX 3.1 sh. adam@0: cat <<_ACEOF adam@0: \`configure' configures urweb_feed 1.0 to adapt to many kinds of systems. adam@0: adam@0: Usage: $0 [OPTION]... [VAR=VALUE]... adam@0: adam@0: To assign environment variables (e.g., CC, CFLAGS...), specify them as adam@0: VAR=VALUE. See below for descriptions of some of the useful variables. adam@0: adam@0: Defaults for the options are specified in brackets. adam@0: adam@0: Configuration: adam@0: -h, --help display this help and exit adam@0: --help=short display options specific to this package adam@0: --help=recursive display the short help of all the included packages adam@0: -V, --version display version information and exit adam@0: -q, --quiet, --silent do not print \`checking ...' messages adam@0: --cache-file=FILE cache test results in FILE [disabled] adam@0: -C, --config-cache alias for \`--cache-file=config.cache' adam@0: -n, --no-create do not create output files adam@0: --srcdir=DIR find the sources in DIR [configure dir or \`..'] adam@0: adam@0: Installation directories: adam@0: --prefix=PREFIX install architecture-independent files in PREFIX adam@0: [$ac_default_prefix] adam@0: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX adam@0: [PREFIX] adam@0: adam@0: By default, \`make install' will install all the files in adam@0: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify adam@0: an installation prefix other than \`$ac_default_prefix' using \`--prefix', adam@0: for instance \`--prefix=\$HOME'. adam@0: adam@0: For better control, use the options below. adam@0: adam@0: Fine tuning of the installation directories: adam@0: --bindir=DIR user executables [EPREFIX/bin] adam@0: --sbindir=DIR system admin executables [EPREFIX/sbin] adam@0: --libexecdir=DIR program executables [EPREFIX/libexec] adam@0: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] adam@0: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] adam@0: --localstatedir=DIR modifiable single-machine data [PREFIX/var] adam@0: --libdir=DIR object code libraries [EPREFIX/lib] adam@0: --includedir=DIR C header files [PREFIX/include] adam@0: --oldincludedir=DIR C header files for non-gcc [/usr/include] adam@0: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] adam@0: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] adam@0: --infodir=DIR info documentation [DATAROOTDIR/info] adam@0: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] adam@0: --mandir=DIR man documentation [DATAROOTDIR/man] adam@0: --docdir=DIR documentation root [DATAROOTDIR/doc/urweb_feed] adam@0: --htmldir=DIR html documentation [DOCDIR] adam@0: --dvidir=DIR dvi documentation [DOCDIR] adam@0: --pdfdir=DIR pdf documentation [DOCDIR] adam@0: --psdir=DIR ps documentation [DOCDIR] adam@0: _ACEOF adam@0: adam@0: cat <<\_ACEOF adam@0: adam@0: Program names: adam@0: --program-prefix=PREFIX prepend PREFIX to installed program names adam@0: --program-suffix=SUFFIX append SUFFIX to installed program names adam@0: --program-transform-name=PROGRAM run sed PROGRAM on installed program names adam@0: adam@0: System types: adam@0: --build=BUILD configure for building on BUILD [guessed] adam@0: --host=HOST cross-compile to build programs to run on HOST [BUILD] adam@0: _ACEOF adam@0: fi adam@0: adam@0: if test -n "$ac_init_help"; then adam@0: case $ac_init_help in adam@0: short | recursive ) echo "Configuration of urweb_feed 1.0:";; adam@0: esac adam@0: cat <<\_ACEOF adam@0: adam@0: Optional Features: adam@0: --disable-option-checking ignore unrecognized --enable/--with options adam@0: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) adam@0: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] adam@0: --disable-dependency-tracking speeds up one-time build adam@0: --enable-dependency-tracking do not reject slow dependency extractors adam@0: --enable-shared[=PKGS] build shared libraries [default=yes] adam@0: --enable-static[=PKGS] build static libraries [default=yes] adam@0: --enable-fast-install[=PKGS] adam@0: optimize for fast installation [default=yes] adam@0: --disable-libtool-lock avoid locking (might break parallel builds) adam@0: adam@0: Optional Packages: adam@0: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] adam@0: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) adam@0: --with-pic try to use only PIC/non-PIC objects [default=use adam@0: both] adam@0: --with-gnu-ld assume the C compiler uses GNU ld [default=no] adam@12: --with-sysroot=DIR Search for dependent libraries within DIR adam@12: (or the compiler's sysroot if not specified). adam@0: --with-libcurl=DIR look for the curl library in DIR adam@0: adam@0: Some influential environment variables: adam@0: CC C compiler command adam@0: CFLAGS C compiler flags adam@0: LDFLAGS linker flags, e.g. -L if you have libraries in a adam@0: nonstandard directory adam@0: LIBS libraries to pass to the linker, e.g. -l adam@0: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if adam@0: you have headers in a nonstandard directory adam@0: CPP C preprocessor adam@0: adam@0: Use these variables to override the choices made by `configure' or to help adam@0: it to find libraries and programs with nonstandard names/locations. adam@0: adam@0: Report bugs to the package provider. adam@0: _ACEOF adam@0: ac_status=$? adam@0: fi adam@0: adam@0: if test "$ac_init_help" = "recursive"; then adam@0: # If there are subdirs, report their specific --help. adam@0: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue adam@0: test -d "$ac_dir" || adam@0: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || adam@0: continue adam@0: ac_builddir=. adam@0: adam@0: case "$ac_dir" in adam@0: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; adam@0: *) adam@0: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` adam@0: # A ".." for each directory in $ac_dir_suffix. adam@0: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` adam@0: case $ac_top_builddir_sub in adam@0: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; adam@0: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; adam@0: esac ;; adam@0: esac adam@0: ac_abs_top_builddir=$ac_pwd adam@0: ac_abs_builddir=$ac_pwd$ac_dir_suffix adam@0: # for backward compatibility: adam@0: ac_top_builddir=$ac_top_build_prefix adam@0: adam@0: case $srcdir in adam@0: .) # We are building in place. adam@0: ac_srcdir=. adam@0: ac_top_srcdir=$ac_top_builddir_sub adam@0: ac_abs_top_srcdir=$ac_pwd ;; adam@0: [\\/]* | ?:[\\/]* ) # Absolute name. adam@0: ac_srcdir=$srcdir$ac_dir_suffix; adam@0: ac_top_srcdir=$srcdir adam@0: ac_abs_top_srcdir=$srcdir ;; adam@0: *) # Relative name. adam@0: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix adam@0: ac_top_srcdir=$ac_top_build_prefix$srcdir adam@0: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; adam@0: esac adam@0: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix adam@0: adam@0: cd "$ac_dir" || { ac_status=$?; continue; } adam@0: # Check for guested configure. adam@0: if test -f "$ac_srcdir/configure.gnu"; then adam@0: echo && adam@0: $SHELL "$ac_srcdir/configure.gnu" --help=recursive adam@0: elif test -f "$ac_srcdir/configure"; then adam@0: echo && adam@0: $SHELL "$ac_srcdir/configure" --help=recursive adam@0: else adam@0: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 adam@0: fi || ac_status=$? adam@0: cd "$ac_pwd" || { ac_status=$?; break; } adam@0: done adam@0: fi adam@0: adam@0: test -n "$ac_init_help" && exit $ac_status adam@0: if $ac_init_version; then adam@0: cat <<\_ACEOF adam@0: urweb_feed configure 1.0 adam@12: generated by GNU Autoconf 2.68 adam@0: adam@0: Copyright (C) 2010 Free Software Foundation, Inc. adam@0: This configure script is free software; the Free Software Foundation adam@0: gives unlimited permission to copy, distribute and modify it. adam@0: _ACEOF adam@0: exit adam@0: fi adam@0: adam@0: ## ------------------------ ## adam@0: ## Autoconf initialization. ## adam@0: ## ------------------------ ## adam@0: adam@0: # ac_fn_c_try_compile LINENO adam@0: # -------------------------- adam@0: # Try to compile conftest.$ac_ext, and return whether this succeeded. adam@0: ac_fn_c_try_compile () adam@0: { adam@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@0: rm -f conftest.$ac_objext adam@0: if { { ac_try="$ac_compile" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_compile") 2>conftest.err adam@0: ac_status=$? adam@0: if test -s conftest.err; then adam@0: grep -v '^ *+' conftest.err >conftest.er1 adam@0: cat conftest.er1 >&5 adam@0: mv -f conftest.er1 conftest.err adam@0: fi adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } && { adam@0: test -z "$ac_c_werror_flag" || adam@0: test ! -s conftest.err adam@0: } && test -s conftest.$ac_objext; then : adam@0: ac_retval=0 adam@0: else adam@0: $as_echo "$as_me: failed program was:" >&5 adam@0: sed 's/^/| /' conftest.$ac_ext >&5 adam@0: adam@0: ac_retval=1 adam@0: fi adam@12: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adam@0: as_fn_set_status $ac_retval adam@0: adam@0: } # ac_fn_c_try_compile adam@0: adam@0: # ac_fn_c_try_cpp LINENO adam@0: # ---------------------- adam@0: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. adam@0: ac_fn_c_try_cpp () adam@0: { adam@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@0: if { { ac_try="$ac_cpp conftest.$ac_ext" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err adam@0: ac_status=$? adam@0: if test -s conftest.err; then adam@0: grep -v '^ *+' conftest.err >conftest.er1 adam@0: cat conftest.er1 >&5 adam@0: mv -f conftest.er1 conftest.err adam@0: fi adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } > conftest.i && { adam@0: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || adam@0: test ! -s conftest.err adam@0: }; then : adam@0: ac_retval=0 adam@0: else adam@0: $as_echo "$as_me: failed program was:" >&5 adam@0: sed 's/^/| /' conftest.$ac_ext >&5 adam@0: adam@0: ac_retval=1 adam@0: fi adam@12: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adam@0: as_fn_set_status $ac_retval adam@0: adam@0: } # ac_fn_c_try_cpp adam@0: adam@0: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES adam@0: # ------------------------------------------------------- adam@0: # Tests whether HEADER exists, giving a warning if it cannot be compiled using adam@0: # the include files in INCLUDES and setting the cache variable VAR adam@0: # accordingly. adam@0: ac_fn_c_check_header_mongrel () adam@0: { adam@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@12: if eval \${$3+:} false; then : adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 adam@0: $as_echo_n "checking for $2... " >&6; } adam@12: if eval \${$3+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: fi adam@0: eval ac_res=\$$3 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 adam@0: $as_echo "$ac_res" >&6; } adam@0: else adam@0: # Is the header compilable? adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 adam@0: $as_echo_n "checking $2 usability... " >&6; } adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: $4 adam@0: #include <$2> adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_header_compiler=yes adam@0: else adam@0: ac_header_compiler=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 adam@0: $as_echo "$ac_header_compiler" >&6; } adam@0: adam@0: # Is the header present? adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 adam@0: $as_echo_n "checking $2 presence... " >&6; } adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include <$2> adam@0: _ACEOF adam@0: if ac_fn_c_try_cpp "$LINENO"; then : adam@0: ac_header_preproc=yes adam@0: else adam@0: ac_header_preproc=no adam@0: fi adam@0: rm -f conftest.err conftest.i conftest.$ac_ext adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 adam@0: $as_echo "$ac_header_preproc" >&6; } adam@0: adam@0: # So? What about this header? adam@0: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( adam@0: yes:no: ) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 adam@0: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 adam@0: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} adam@0: ;; adam@0: no:yes:* ) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 adam@0: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 adam@0: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 adam@0: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 adam@0: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 adam@0: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} adam@0: ;; adam@0: esac adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 adam@0: $as_echo_n "checking for $2... " >&6; } adam@12: if eval \${$3+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: eval "$3=\$ac_header_compiler" adam@0: fi adam@0: eval ac_res=\$$3 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 adam@0: $as_echo "$ac_res" >&6; } adam@0: fi adam@12: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adam@0: adam@0: } # ac_fn_c_check_header_mongrel adam@0: adam@0: # ac_fn_c_try_run LINENO adam@0: # ---------------------- adam@0: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes adam@0: # that executables *can* be run. adam@0: ac_fn_c_try_run () adam@0: { adam@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@0: if { { ac_try="$ac_link" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_link") 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' adam@0: { { case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_try") 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; }; then : adam@0: ac_retval=0 adam@0: else adam@0: $as_echo "$as_me: program exited with status $ac_status" >&5 adam@0: $as_echo "$as_me: failed program was:" >&5 adam@0: sed 's/^/| /' conftest.$ac_ext >&5 adam@0: adam@0: ac_retval=$ac_status adam@0: fi adam@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo adam@12: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adam@0: as_fn_set_status $ac_retval adam@0: adam@0: } # ac_fn_c_try_run adam@0: adam@0: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES adam@0: # ------------------------------------------------------- adam@0: # Tests whether HEADER exists and can be compiled using the include files in adam@0: # INCLUDES, setting the cache variable VAR accordingly. adam@0: ac_fn_c_check_header_compile () adam@0: { adam@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 adam@0: $as_echo_n "checking for $2... " >&6; } adam@12: if eval \${$3+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: $4 adam@0: #include <$2> adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: eval "$3=yes" adam@0: else adam@0: eval "$3=no" adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: fi adam@0: eval ac_res=\$$3 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 adam@0: $as_echo "$ac_res" >&6; } adam@12: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adam@0: adam@0: } # ac_fn_c_check_header_compile adam@0: adam@0: # ac_fn_c_try_link LINENO adam@0: # ----------------------- adam@0: # Try to link conftest.$ac_ext, and return whether this succeeded. adam@0: ac_fn_c_try_link () adam@0: { adam@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@0: rm -f conftest.$ac_objext conftest$ac_exeext adam@0: if { { ac_try="$ac_link" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_link") 2>conftest.err adam@0: ac_status=$? adam@0: if test -s conftest.err; then adam@0: grep -v '^ *+' conftest.err >conftest.er1 adam@0: cat conftest.er1 >&5 adam@0: mv -f conftest.er1 conftest.err adam@0: fi adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } && { adam@0: test -z "$ac_c_werror_flag" || adam@0: test ! -s conftest.err adam@0: } && test -s conftest$ac_exeext && { adam@0: test "$cross_compiling" = yes || adam@0: $as_test_x conftest$ac_exeext adam@0: }; then : adam@0: ac_retval=0 adam@0: else adam@0: $as_echo "$as_me: failed program was:" >&5 adam@0: sed 's/^/| /' conftest.$ac_ext >&5 adam@0: adam@0: ac_retval=1 adam@0: fi adam@0: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information adam@0: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would adam@0: # interfere with the next link command; also delete a directory that is adam@0: # left behind by Apple's compiler. We do this before executing the actions. adam@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo adam@12: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adam@0: as_fn_set_status $ac_retval adam@0: adam@0: } # ac_fn_c_try_link adam@0: adam@0: # ac_fn_c_check_func LINENO FUNC VAR adam@0: # ---------------------------------- adam@0: # Tests whether FUNC exists, setting the cache variable VAR accordingly adam@0: ac_fn_c_check_func () adam@0: { adam@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 adam@0: $as_echo_n "checking for $2... " >&6; } adam@12: if eval \${$3+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: /* Define $2 to an innocuous variant, in case declares $2. adam@0: For example, HP-UX 11i declares gettimeofday. */ adam@0: #define $2 innocuous_$2 adam@0: adam@0: /* System header to define __stub macros and hopefully few prototypes, adam@0: which can conflict with char $2 (); below. adam@0: Prefer to if __STDC__ is defined, since adam@0: exists even on freestanding compilers. */ adam@0: adam@0: #ifdef __STDC__ adam@0: # include adam@0: #else adam@0: # include adam@0: #endif adam@0: adam@0: #undef $2 adam@0: adam@0: /* Override any GCC internal prototype to avoid an error. adam@0: Use char because int might match the return type of a GCC adam@0: builtin and then its argument prototype would still apply. */ adam@0: #ifdef __cplusplus adam@0: extern "C" adam@0: #endif adam@0: char $2 (); adam@0: /* The GNU C library defines this for functions which it implements adam@0: to always fail with ENOSYS. Some functions are actually named adam@0: something starting with __ and the normal name is an alias. */ adam@0: #if defined __stub_$2 || defined __stub___$2 adam@0: choke me adam@0: #endif adam@0: adam@0: int adam@0: main () adam@0: { adam@0: return $2 (); adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: eval "$3=yes" adam@0: else adam@0: eval "$3=no" adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: fi adam@0: eval ac_res=\$$3 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 adam@0: $as_echo "$ac_res" >&6; } adam@12: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno adam@0: adam@0: } # ac_fn_c_check_func adam@0: cat >config.log <<_ACEOF adam@0: This file contains any messages produced by compilers while adam@0: running configure, to aid debugging if configure makes a mistake. adam@0: adam@0: It was created by urweb_feed $as_me 1.0, which was adam@12: generated by GNU Autoconf 2.68. Invocation command line was adam@0: adam@0: $ $0 $@ adam@0: adam@0: _ACEOF adam@0: exec 5>>config.log adam@0: { adam@0: cat <<_ASUNAME adam@0: ## --------- ## adam@0: ## Platform. ## adam@0: ## --------- ## adam@0: adam@0: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` adam@0: uname -m = `(uname -m) 2>/dev/null || echo unknown` adam@0: uname -r = `(uname -r) 2>/dev/null || echo unknown` adam@0: uname -s = `(uname -s) 2>/dev/null || echo unknown` adam@0: uname -v = `(uname -v) 2>/dev/null || echo unknown` adam@0: adam@0: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` adam@0: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` adam@0: adam@0: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` adam@0: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` adam@0: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` adam@0: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` adam@0: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` adam@0: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` adam@0: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` adam@0: adam@0: _ASUNAME adam@0: adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: $as_echo "PATH: $as_dir" adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: } >&5 adam@0: adam@0: cat >&5 <<_ACEOF adam@0: adam@0: adam@0: ## ----------- ## adam@0: ## Core tests. ## adam@0: ## ----------- ## adam@0: adam@0: _ACEOF adam@0: adam@0: adam@0: # Keep a trace of the command line. adam@0: # Strip out --no-create and --no-recursion so they do not pile up. adam@0: # Strip out --silent because we don't want to record it for future runs. adam@0: # Also quote any args containing shell meta-characters. adam@0: # Make two passes to allow for proper duplicate-argument suppression. adam@0: ac_configure_args= adam@0: ac_configure_args0= adam@0: ac_configure_args1= adam@0: ac_must_keep_next=false adam@0: for ac_pass in 1 2 adam@0: do adam@0: for ac_arg adam@0: do adam@0: case $ac_arg in adam@0: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; adam@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ adam@0: | -silent | --silent | --silen | --sile | --sil) adam@0: continue ;; adam@0: *\'*) adam@0: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; adam@0: esac adam@0: case $ac_pass in adam@0: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; adam@0: 2) adam@0: as_fn_append ac_configure_args1 " '$ac_arg'" adam@0: if test $ac_must_keep_next = true; then adam@0: ac_must_keep_next=false # Got value, back to normal. adam@0: else adam@0: case $ac_arg in adam@0: *=* | --config-cache | -C | -disable-* | --disable-* \ adam@0: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ adam@0: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ adam@0: | -with-* | --with-* | -without-* | --without-* | --x) adam@0: case "$ac_configure_args0 " in adam@0: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; adam@0: esac adam@0: ;; adam@0: -* ) ac_must_keep_next=true ;; adam@0: esac adam@0: fi adam@0: as_fn_append ac_configure_args " '$ac_arg'" adam@0: ;; adam@0: esac adam@0: done adam@0: done adam@0: { ac_configure_args0=; unset ac_configure_args0;} adam@0: { ac_configure_args1=; unset ac_configure_args1;} adam@0: adam@0: # When interrupted or exit'd, cleanup temporary files, and complete adam@0: # config.log. We remove comments because anyway the quotes in there adam@0: # would cause problems or look ugly. adam@0: # WARNING: Use '\'' to represent an apostrophe within the trap. adam@0: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. adam@0: trap 'exit_status=$? adam@0: # Save into config.log some information that might help in debugging. adam@0: { adam@0: echo adam@0: adam@0: $as_echo "## ---------------- ## adam@0: ## Cache variables. ## adam@0: ## ---------------- ##" adam@0: echo adam@0: # The following way of writing the cache mishandles newlines in values, adam@0: ( adam@0: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do adam@0: eval ac_val=\$$ac_var adam@0: case $ac_val in #( adam@0: *${as_nl}*) adam@0: case $ac_var in #( adam@0: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 adam@0: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; adam@0: esac adam@0: case $ac_var in #( adam@0: _ | IFS | as_nl) ;; #( adam@0: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( adam@0: *) { eval $ac_var=; unset $ac_var;} ;; adam@0: esac ;; adam@0: esac adam@0: done adam@0: (set) 2>&1 | adam@0: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( adam@0: *${as_nl}ac_space=\ *) adam@0: sed -n \ adam@0: "s/'\''/'\''\\\\'\'''\''/g; adam@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" adam@0: ;; #( adam@0: *) adam@0: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" adam@0: ;; adam@0: esac | adam@0: sort adam@0: ) adam@0: echo adam@0: adam@0: $as_echo "## ----------------- ## adam@0: ## Output variables. ## adam@0: ## ----------------- ##" adam@0: echo adam@0: for ac_var in $ac_subst_vars adam@0: do adam@0: eval ac_val=\$$ac_var adam@0: case $ac_val in adam@0: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; adam@0: esac adam@0: $as_echo "$ac_var='\''$ac_val'\''" adam@0: done | sort adam@0: echo adam@0: adam@0: if test -n "$ac_subst_files"; then adam@0: $as_echo "## ------------------- ## adam@0: ## File substitutions. ## adam@0: ## ------------------- ##" adam@0: echo adam@0: for ac_var in $ac_subst_files adam@0: do adam@0: eval ac_val=\$$ac_var adam@0: case $ac_val in adam@0: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; adam@0: esac adam@0: $as_echo "$ac_var='\''$ac_val'\''" adam@0: done | sort adam@0: echo adam@0: fi adam@0: adam@0: if test -s confdefs.h; then adam@0: $as_echo "## ----------- ## adam@0: ## confdefs.h. ## adam@0: ## ----------- ##" adam@0: echo adam@0: cat confdefs.h adam@0: echo adam@0: fi adam@0: test "$ac_signal" != 0 && adam@0: $as_echo "$as_me: caught signal $ac_signal" adam@0: $as_echo "$as_me: exit $exit_status" adam@0: } >&5 adam@0: rm -f core *.core core.conftest.* && adam@0: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && adam@0: exit $exit_status adam@0: ' 0 adam@0: for ac_signal in 1 2 13 15; do adam@0: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal adam@0: done adam@0: ac_signal=0 adam@0: adam@0: # confdefs.h avoids OS command line length limits that DEFS can exceed. adam@0: rm -f -r conftest* confdefs.h adam@0: adam@0: $as_echo "/* confdefs.h */" > confdefs.h adam@0: adam@0: # Predefined preprocessor variables. adam@0: adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define PACKAGE_NAME "$PACKAGE_NAME" adam@0: _ACEOF adam@0: adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" adam@0: _ACEOF adam@0: adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define PACKAGE_VERSION "$PACKAGE_VERSION" adam@0: _ACEOF adam@0: adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define PACKAGE_STRING "$PACKAGE_STRING" adam@0: _ACEOF adam@0: adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" adam@0: _ACEOF adam@0: adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define PACKAGE_URL "$PACKAGE_URL" adam@0: _ACEOF adam@0: adam@0: adam@0: # Let the site file select an alternate cache file if it wants to. adam@0: # Prefer an explicitly selected file to automatically selected ones. adam@0: ac_site_file1=NONE adam@0: ac_site_file2=NONE adam@0: if test -n "$CONFIG_SITE"; then adam@0: # We do not want a PATH search for config.site. adam@0: case $CONFIG_SITE in #(( adam@0: -*) ac_site_file1=./$CONFIG_SITE;; adam@0: */*) ac_site_file1=$CONFIG_SITE;; adam@0: *) ac_site_file1=./$CONFIG_SITE;; adam@0: esac adam@0: elif test "x$prefix" != xNONE; then adam@0: ac_site_file1=$prefix/share/config.site adam@0: ac_site_file2=$prefix/etc/config.site adam@0: else adam@0: ac_site_file1=$ac_default_prefix/share/config.site adam@0: ac_site_file2=$ac_default_prefix/etc/config.site adam@0: fi adam@0: for ac_site_file in "$ac_site_file1" "$ac_site_file2" adam@0: do adam@0: test "x$ac_site_file" = xNONE && continue adam@0: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 adam@0: $as_echo "$as_me: loading site script $ac_site_file" >&6;} adam@0: sed 's/^/| /' "$ac_site_file" >&5 adam@0: . "$ac_site_file" \ adam@0: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: as_fn_error $? "failed to load site script $ac_site_file adam@12: See \`config.log' for more details" "$LINENO" 5; } adam@0: fi adam@0: done adam@0: adam@0: if test -r "$cache_file"; then adam@0: # Some versions of bash will fail to source /dev/null (special files adam@0: # actually), so we avoid doing that. DJGPP emulates it as a regular file. adam@0: if test /dev/null != "$cache_file" && test -f "$cache_file"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 adam@0: $as_echo "$as_me: loading cache $cache_file" >&6;} adam@0: case $cache_file in adam@0: [\\/]* | ?:[\\/]* ) . "$cache_file";; adam@0: *) . "./$cache_file";; adam@0: esac adam@0: fi adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 adam@0: $as_echo "$as_me: creating cache $cache_file" >&6;} adam@0: >$cache_file adam@0: fi adam@0: adam@0: # Check that the precious variables saved in the cache have kept the same adam@0: # value. adam@0: ac_cache_corrupted=false adam@0: for ac_var in $ac_precious_vars; do adam@0: eval ac_old_set=\$ac_cv_env_${ac_var}_set adam@0: eval ac_new_set=\$ac_env_${ac_var}_set adam@0: eval ac_old_val=\$ac_cv_env_${ac_var}_value adam@0: eval ac_new_val=\$ac_env_${ac_var}_value adam@0: case $ac_old_set,$ac_new_set in adam@0: set,) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 adam@0: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} adam@0: ac_cache_corrupted=: ;; adam@0: ,set) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 adam@0: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} adam@0: ac_cache_corrupted=: ;; adam@0: ,);; adam@0: *) adam@0: if test "x$ac_old_val" != "x$ac_new_val"; then adam@0: # differences in whitespace do not lead to failure. adam@0: ac_old_val_w=`echo x $ac_old_val` adam@0: ac_new_val_w=`echo x $ac_new_val` adam@0: if test "$ac_old_val_w" != "$ac_new_val_w"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 adam@0: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} adam@0: ac_cache_corrupted=: adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 adam@0: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} adam@0: eval $ac_var=\$ac_old_val adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 adam@0: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 adam@0: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} adam@0: fi;; adam@0: esac adam@0: # Pass precious variables to config.status. adam@0: if test "$ac_new_set" = set; then adam@0: case $ac_new_val in adam@0: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; adam@0: *) ac_arg=$ac_var=$ac_new_val ;; adam@0: esac adam@0: case " $ac_configure_args " in adam@0: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. adam@0: *) as_fn_append ac_configure_args " '$ac_arg'" ;; adam@0: esac adam@0: fi adam@0: done adam@0: if $ac_cache_corrupted; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 adam@0: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} adam@0: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 adam@0: fi adam@0: ## -------------------- ## adam@0: ## Main body of script. ## adam@0: ## -------------------- ## adam@0: adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: adam@0: adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}gcc; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$CC"; then adam@0: ac_cv_prog_CC="$CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_CC="${ac_tool_prefix}gcc" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: CC=$ac_cv_prog_CC adam@0: if test -n "$CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adam@0: $as_echo "$CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_CC"; then adam@0: ac_ct_CC=$CC adam@0: # Extract the first word of "gcc", so it can be a program name with args. adam@0: set dummy gcc; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_CC"; then adam@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_CC="gcc" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC adam@0: if test -n "$ac_ct_CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 adam@0: $as_echo "$ac_ct_CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_CC" = x; then adam@0: CC="" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: CC=$ac_ct_CC adam@0: fi adam@0: else adam@0: CC="$ac_cv_prog_CC" adam@0: fi adam@0: adam@0: if test -z "$CC"; then adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}cc; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$CC"; then adam@0: ac_cv_prog_CC="$CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_CC="${ac_tool_prefix}cc" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: CC=$ac_cv_prog_CC adam@0: if test -n "$CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adam@0: $as_echo "$CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: fi adam@0: if test -z "$CC"; then adam@0: # Extract the first word of "cc", so it can be a program name with args. adam@0: set dummy cc; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$CC"; then adam@0: ac_cv_prog_CC="$CC" # Let the user override the test. adam@0: else adam@0: ac_prog_rejected=no adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then adam@0: ac_prog_rejected=yes adam@0: continue adam@0: fi adam@0: ac_cv_prog_CC="cc" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: if test $ac_prog_rejected = yes; then adam@0: # We found a bogon in the path, so make sure we never use it. adam@0: set dummy $ac_cv_prog_CC adam@0: shift adam@0: if test $# != 0; then adam@0: # We chose a different compiler from the bogus one. adam@0: # However, it has the same basename, so the bogon will be chosen adam@0: # first if we set CC to just the basename; use the full file name. adam@0: shift adam@0: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" adam@0: fi adam@0: fi adam@0: fi adam@0: fi adam@0: CC=$ac_cv_prog_CC adam@0: if test -n "$CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adam@0: $as_echo "$CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$CC"; then adam@0: if test -n "$ac_tool_prefix"; then adam@0: for ac_prog in cl.exe adam@0: do adam@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. adam@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$CC"; then adam@0: ac_cv_prog_CC="$CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: CC=$ac_cv_prog_CC adam@0: if test -n "$CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adam@0: $as_echo "$CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: test -n "$CC" && break adam@0: done adam@0: fi adam@0: if test -z "$CC"; then adam@0: ac_ct_CC=$CC adam@0: for ac_prog in cl.exe adam@0: do adam@0: # Extract the first word of "$ac_prog", so it can be a program name with args. adam@0: set dummy $ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_CC"; then adam@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_CC="$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC adam@0: if test -n "$ac_ct_CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 adam@0: $as_echo "$ac_ct_CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: test -n "$ac_ct_CC" && break adam@0: done adam@0: adam@0: if test "x$ac_ct_CC" = x; then adam@0: CC="" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: CC=$ac_ct_CC adam@0: fi adam@0: fi adam@0: adam@0: fi adam@0: adam@0: adam@0: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: as_fn_error $? "no acceptable C compiler found in \$PATH adam@12: See \`config.log' for more details" "$LINENO" 5; } adam@0: adam@0: # Provide some information about the compiler. adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 adam@0: set X $ac_compile adam@0: ac_compiler=$2 adam@0: for ac_option in --version -v -V -qversion; do adam@0: { { ac_try="$ac_compiler $ac_option >&5" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err adam@0: ac_status=$? adam@0: if test -s conftest.err; then adam@0: sed '10a\ adam@0: ... rest of stderr output deleted ... adam@0: 10q' conftest.err >conftest.er1 adam@0: cat conftest.er1 >&5 adam@0: fi adam@0: rm -f conftest.er1 conftest.err adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } adam@0: done adam@0: adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: ac_clean_files_save=$ac_clean_files adam@0: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" adam@0: # Try to create an executable without -o first, disregard a.out. adam@0: # It will help us diagnose broken compilers, and finding out an intuition adam@0: # of exeext. adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 adam@0: $as_echo_n "checking whether the C compiler works... " >&6; } adam@0: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` adam@0: adam@0: # The possible output files: adam@0: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" adam@0: adam@0: ac_rmfiles= adam@0: for ac_file in $ac_files adam@0: do adam@0: case $ac_file in adam@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; adam@0: * ) ac_rmfiles="$ac_rmfiles $ac_file";; adam@0: esac adam@0: done adam@0: rm -f $ac_rmfiles adam@0: adam@0: if { { ac_try="$ac_link_default" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_link_default") 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; then : adam@0: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. adam@0: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' adam@0: # in a Makefile. We should not override ac_cv_exeext if it was cached, adam@0: # so that the user can short-circuit this test for compilers unknown to adam@0: # Autoconf. adam@0: for ac_file in $ac_files '' adam@0: do adam@0: test -f "$ac_file" || continue adam@0: case $ac_file in adam@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) adam@0: ;; adam@0: [ab].out ) adam@0: # We found the default executable, but exeext='' is most adam@0: # certainly right. adam@0: break;; adam@0: *.* ) adam@0: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; adam@0: then :; else adam@0: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` adam@0: fi adam@0: # We set ac_cv_exeext here because the later test for it is not adam@0: # safe: cross compilers may not add the suffix if given an `-o' adam@0: # argument, so we may need to know it at that point already. adam@0: # Even if this section looks crufty: it has the advantage of adam@0: # actually working. adam@0: break;; adam@0: * ) adam@0: break;; adam@0: esac adam@0: done adam@0: test "$ac_cv_exeext" = no && ac_cv_exeext= adam@0: adam@0: else adam@0: ac_file='' adam@0: fi adam@0: if test -z "$ac_file"; then : adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: $as_echo "$as_me: failed program was:" >&5 adam@0: sed 's/^/| /' conftest.$ac_ext >&5 adam@0: adam@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: as_fn_error 77 "C compiler cannot create executables adam@12: See \`config.log' for more details" "$LINENO" 5; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adam@0: $as_echo "yes" >&6; } adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 adam@0: $as_echo_n "checking for C compiler default output file name... " >&6; } adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 adam@0: $as_echo "$ac_file" >&6; } adam@0: ac_exeext=$ac_cv_exeext adam@0: adam@0: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out adam@0: ac_clean_files=$ac_clean_files_save adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 adam@0: $as_echo_n "checking for suffix of executables... " >&6; } adam@0: if { { ac_try="$ac_link" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_link") 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; then : adam@0: # If both `conftest.exe' and `conftest' are `present' (well, observable) adam@0: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will adam@0: # work properly (i.e., refer to `conftest.exe'), while it won't with adam@0: # `rm'. adam@0: for ac_file in conftest.exe conftest conftest.*; do adam@0: test -f "$ac_file" || continue adam@0: case $ac_file in adam@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; adam@0: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` adam@0: break;; adam@0: * ) break;; adam@0: esac adam@0: done adam@0: else adam@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: as_fn_error $? "cannot compute suffix of executables: cannot compile and link adam@12: See \`config.log' for more details" "$LINENO" 5; } adam@0: fi adam@0: rm -f conftest conftest$ac_cv_exeext adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 adam@0: $as_echo "$ac_cv_exeext" >&6; } adam@0: adam@0: rm -f conftest.$ac_ext adam@0: EXEEXT=$ac_cv_exeext adam@0: ac_exeext=$EXEEXT adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: int adam@0: main () adam@0: { adam@0: FILE *f = fopen ("conftest.out", "w"); adam@0: return ferror (f) || fclose (f) != 0; adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: ac_clean_files="$ac_clean_files conftest.out" adam@0: # Check that the compiler produces executables we can run. If not, either adam@0: # the compiler is broken, or we cross compile. adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 adam@0: $as_echo_n "checking whether we are cross compiling... " >&6; } adam@0: if test "$cross_compiling" != yes; then adam@0: { { ac_try="$ac_link" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_link") 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } adam@0: if { ac_try='./conftest$ac_cv_exeext' adam@0: { { case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_try") 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; }; then adam@0: cross_compiling=no adam@0: else adam@0: if test "$cross_compiling" = maybe; then adam@0: cross_compiling=yes adam@0: else adam@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: as_fn_error $? "cannot run C compiled programs. adam@0: If you meant to cross compile, use \`--host'. adam@12: See \`config.log' for more details" "$LINENO" 5; } adam@0: fi adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 adam@0: $as_echo "$cross_compiling" >&6; } adam@0: adam@0: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out adam@0: ac_clean_files=$ac_clean_files_save adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 adam@0: $as_echo_n "checking for suffix of object files... " >&6; } adam@12: if ${ac_cv_objext+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: rm -f conftest.o conftest.obj adam@0: if { { ac_try="$ac_compile" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_compile") 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; then : adam@0: for ac_file in conftest.o conftest.obj conftest.*; do adam@0: test -f "$ac_file" || continue; adam@0: case $ac_file in adam@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; adam@0: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` adam@0: break;; adam@0: esac adam@0: done adam@0: else adam@0: $as_echo "$as_me: failed program was:" >&5 adam@0: sed 's/^/| /' conftest.$ac_ext >&5 adam@0: adam@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: as_fn_error $? "cannot compute suffix of object files: cannot compile adam@12: See \`config.log' for more details" "$LINENO" 5; } adam@0: fi adam@0: rm -f conftest.$ac_cv_objext conftest.$ac_ext adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 adam@0: $as_echo "$ac_cv_objext" >&6; } adam@0: OBJEXT=$ac_cv_objext adam@0: ac_objext=$OBJEXT adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 adam@0: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } adam@12: if ${ac_cv_c_compiler_gnu+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: #ifndef __GNUC__ adam@0: choke me adam@0: #endif adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_compiler_gnu=yes adam@0: else adam@0: ac_compiler_gnu=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: ac_cv_c_compiler_gnu=$ac_compiler_gnu adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 adam@0: $as_echo "$ac_cv_c_compiler_gnu" >&6; } adam@0: if test $ac_compiler_gnu = yes; then adam@0: GCC=yes adam@0: else adam@0: GCC= adam@0: fi adam@0: ac_test_CFLAGS=${CFLAGS+set} adam@0: ac_save_CFLAGS=$CFLAGS adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 adam@0: $as_echo_n "checking whether $CC accepts -g... " >&6; } adam@12: if ${ac_cv_prog_cc_g+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_save_c_werror_flag=$ac_c_werror_flag adam@0: ac_c_werror_flag=yes adam@0: ac_cv_prog_cc_g=no adam@0: CFLAGS="-g" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_cv_prog_cc_g=yes adam@0: else adam@0: CFLAGS="" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: adam@0: else adam@0: ac_c_werror_flag=$ac_save_c_werror_flag adam@0: CFLAGS="-g" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_cv_prog_cc_g=yes adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: ac_c_werror_flag=$ac_save_c_werror_flag adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 adam@0: $as_echo "$ac_cv_prog_cc_g" >&6; } adam@0: if test "$ac_test_CFLAGS" = set; then adam@0: CFLAGS=$ac_save_CFLAGS adam@0: elif test $ac_cv_prog_cc_g = yes; then adam@0: if test "$GCC" = yes; then adam@0: CFLAGS="-g -O2" adam@0: else adam@0: CFLAGS="-g" adam@0: fi adam@0: else adam@0: if test "$GCC" = yes; then adam@0: CFLAGS="-O2" adam@0: else adam@0: CFLAGS= adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 adam@0: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } adam@12: if ${ac_cv_prog_cc_c89+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_cv_prog_cc_c89=no adam@0: ac_save_CC=$CC adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: #include adam@0: #include adam@0: #include adam@0: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ adam@0: struct buf { int x; }; adam@0: FILE * (*rcsopen) (struct buf *, struct stat *, int); adam@0: static char *e (p, i) adam@0: char **p; adam@0: int i; adam@0: { adam@0: return p[i]; adam@0: } adam@0: static char *f (char * (*g) (char **, int), char **p, ...) adam@0: { adam@0: char *s; adam@0: va_list v; adam@0: va_start (v,p); adam@0: s = g (p, va_arg (v,int)); adam@0: va_end (v); adam@0: return s; adam@0: } adam@0: adam@0: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has adam@0: function prototypes and stuff, but not '\xHH' hex character constants. adam@0: These don't provoke an error unfortunately, instead are silently treated adam@0: as 'x'. The following induces an error, until -std is added to get adam@0: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an adam@0: array size at least. It's necessary to write '\x00'==0 to get something adam@0: that's true only with -std. */ adam@0: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; adam@0: adam@0: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters adam@0: inside strings and character constants. */ adam@0: #define FOO(x) 'x' adam@0: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; adam@0: adam@0: int test (int i, double x); adam@0: struct s1 {int (*f) (int a);}; adam@0: struct s2 {int (*f) (double a);}; adam@0: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); adam@0: int argc; adam@0: char **argv; adam@0: int adam@0: main () adam@0: { adam@0: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ adam@0: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" adam@0: do adam@0: CC="$ac_save_CC $ac_arg" adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_cv_prog_cc_c89=$ac_arg adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext adam@0: test "x$ac_cv_prog_cc_c89" != "xno" && break adam@0: done adam@0: rm -f conftest.$ac_ext adam@0: CC=$ac_save_CC adam@0: adam@0: fi adam@0: # AC_CACHE_VAL adam@0: case "x$ac_cv_prog_cc_c89" in adam@0: x) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 adam@0: $as_echo "none needed" >&6; } ;; adam@0: xno) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 adam@0: $as_echo "unsupported" >&6; } ;; adam@0: *) adam@0: CC="$CC $ac_cv_prog_cc_c89" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 adam@0: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; adam@0: esac adam@0: if test "x$ac_cv_prog_cc_c89" != xno; then : adam@0: adam@0: fi adam@0: adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: adam@0: adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 adam@0: $as_echo_n "checking how to run the C preprocessor... " >&6; } adam@0: # On Suns, sometimes $CPP names a directory. adam@0: if test -n "$CPP" && test -d "$CPP"; then adam@0: CPP= adam@0: fi adam@0: if test -z "$CPP"; then adam@12: if ${ac_cv_prog_CPP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: # Double quotes because CPP needs to be expanded adam@0: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" adam@0: do adam@0: ac_preproc_ok=false adam@0: for ac_c_preproc_warn_flag in '' yes adam@0: do adam@0: # Use a header file that comes with gcc, so configuring glibc adam@0: # with a fresh cross-compiler works. adam@0: # Prefer to if __STDC__ is defined, since adam@0: # exists even on freestanding compilers. adam@0: # On the NeXT, cc -E runs the code through the compiler's parser, adam@0: # not just through cpp. "Syntax error" is here to catch this case. adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #ifdef __STDC__ adam@0: # include adam@0: #else adam@0: # include adam@0: #endif adam@0: Syntax error adam@0: _ACEOF adam@0: if ac_fn_c_try_cpp "$LINENO"; then : adam@0: adam@0: else adam@0: # Broken: fails on valid input. adam@0: continue adam@0: fi adam@0: rm -f conftest.err conftest.i conftest.$ac_ext adam@0: adam@0: # OK, works on sane cases. Now check whether nonexistent headers adam@0: # can be detected and how. adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: _ACEOF adam@0: if ac_fn_c_try_cpp "$LINENO"; then : adam@0: # Broken: success on invalid input. adam@0: continue adam@0: else adam@0: # Passes both tests. adam@0: ac_preproc_ok=: adam@0: break adam@0: fi adam@0: rm -f conftest.err conftest.i conftest.$ac_ext adam@0: adam@0: done adam@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. adam@0: rm -f conftest.i conftest.err conftest.$ac_ext adam@0: if $ac_preproc_ok; then : adam@0: break adam@0: fi adam@0: adam@0: done adam@0: ac_cv_prog_CPP=$CPP adam@0: adam@0: fi adam@0: CPP=$ac_cv_prog_CPP adam@0: else adam@0: ac_cv_prog_CPP=$CPP adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 adam@0: $as_echo "$CPP" >&6; } adam@0: ac_preproc_ok=false adam@0: for ac_c_preproc_warn_flag in '' yes adam@0: do adam@0: # Use a header file that comes with gcc, so configuring glibc adam@0: # with a fresh cross-compiler works. adam@0: # Prefer to if __STDC__ is defined, since adam@0: # exists even on freestanding compilers. adam@0: # On the NeXT, cc -E runs the code through the compiler's parser, adam@0: # not just through cpp. "Syntax error" is here to catch this case. adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #ifdef __STDC__ adam@0: # include adam@0: #else adam@0: # include adam@0: #endif adam@0: Syntax error adam@0: _ACEOF adam@0: if ac_fn_c_try_cpp "$LINENO"; then : adam@0: adam@0: else adam@0: # Broken: fails on valid input. adam@0: continue adam@0: fi adam@0: rm -f conftest.err conftest.i conftest.$ac_ext adam@0: adam@0: # OK, works on sane cases. Now check whether nonexistent headers adam@0: # can be detected and how. adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: _ACEOF adam@0: if ac_fn_c_try_cpp "$LINENO"; then : adam@0: # Broken: success on invalid input. adam@0: continue adam@0: else adam@0: # Passes both tests. adam@0: ac_preproc_ok=: adam@0: break adam@0: fi adam@0: rm -f conftest.err conftest.i conftest.$ac_ext adam@0: adam@0: done adam@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. adam@0: rm -f conftest.i conftest.err conftest.$ac_ext adam@0: if $ac_preproc_ok; then : adam@0: adam@0: else adam@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check adam@12: See \`config.log' for more details" "$LINENO" 5; } adam@0: fi adam@0: adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 adam@0: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } adam@12: if ${ac_cv_path_GREP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -z "$GREP"; then adam@0: ac_path_GREP_found=false adam@0: # Loop through the user's path and test for each of PROGNAME-LIST adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_prog in grep ggrep; do adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" adam@0: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue adam@0: # Check for GNU ac_path_GREP and select it if it is found. adam@0: # Check for GNU $ac_path_GREP adam@0: case `"$ac_path_GREP" --version 2>&1` in adam@0: *GNU*) adam@0: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; adam@0: *) adam@0: ac_count=0 adam@0: $as_echo_n 0123456789 >"conftest.in" adam@0: while : adam@0: do adam@0: cat "conftest.in" "conftest.in" >"conftest.tmp" adam@0: mv "conftest.tmp" "conftest.in" adam@0: cp "conftest.in" "conftest.nl" adam@0: $as_echo 'GREP' >> "conftest.nl" adam@0: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break adam@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break adam@0: as_fn_arith $ac_count + 1 && ac_count=$as_val adam@0: if test $ac_count -gt ${ac_path_GREP_max-0}; then adam@0: # Best one so far, save it but keep looking for a better one adam@0: ac_cv_path_GREP="$ac_path_GREP" adam@0: ac_path_GREP_max=$ac_count adam@0: fi adam@0: # 10*(2^10) chars as input seems more than enough adam@0: test $ac_count -gt 10 && break adam@0: done adam@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; adam@0: esac adam@0: adam@0: $ac_path_GREP_found && break 3 adam@0: done adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: if test -z "$ac_cv_path_GREP"; then adam@0: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 adam@0: fi adam@0: else adam@0: ac_cv_path_GREP=$GREP adam@0: fi adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 adam@0: $as_echo "$ac_cv_path_GREP" >&6; } adam@0: GREP="$ac_cv_path_GREP" adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 adam@0: $as_echo_n "checking for egrep... " >&6; } adam@12: if ${ac_cv_path_EGREP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 adam@0: then ac_cv_path_EGREP="$GREP -E" adam@0: else adam@0: if test -z "$EGREP"; then adam@0: ac_path_EGREP_found=false adam@0: # Loop through the user's path and test for each of PROGNAME-LIST adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_prog in egrep; do adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" adam@0: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue adam@0: # Check for GNU ac_path_EGREP and select it if it is found. adam@0: # Check for GNU $ac_path_EGREP adam@0: case `"$ac_path_EGREP" --version 2>&1` in adam@0: *GNU*) adam@0: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; adam@0: *) adam@0: ac_count=0 adam@0: $as_echo_n 0123456789 >"conftest.in" adam@0: while : adam@0: do adam@0: cat "conftest.in" "conftest.in" >"conftest.tmp" adam@0: mv "conftest.tmp" "conftest.in" adam@0: cp "conftest.in" "conftest.nl" adam@0: $as_echo 'EGREP' >> "conftest.nl" adam@0: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break adam@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break adam@0: as_fn_arith $ac_count + 1 && ac_count=$as_val adam@0: if test $ac_count -gt ${ac_path_EGREP_max-0}; then adam@0: # Best one so far, save it but keep looking for a better one adam@0: ac_cv_path_EGREP="$ac_path_EGREP" adam@0: ac_path_EGREP_max=$ac_count adam@0: fi adam@0: # 10*(2^10) chars as input seems more than enough adam@0: test $ac_count -gt 10 && break adam@0: done adam@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; adam@0: esac adam@0: adam@0: $ac_path_EGREP_found && break 3 adam@0: done adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: if test -z "$ac_cv_path_EGREP"; then adam@0: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 adam@0: fi adam@0: else adam@0: ac_cv_path_EGREP=$EGREP adam@0: fi adam@0: adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 adam@0: $as_echo "$ac_cv_path_EGREP" >&6; } adam@0: EGREP="$ac_cv_path_EGREP" adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 adam@0: $as_echo_n "checking for ANSI C header files... " >&6; } adam@12: if ${ac_cv_header_stdc+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: #include adam@0: #include adam@0: #include adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_cv_header_stdc=yes adam@0: else adam@0: ac_cv_header_stdc=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: adam@0: if test $ac_cv_header_stdc = yes; then adam@0: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: adam@0: _ACEOF adam@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | adam@0: $EGREP "memchr" >/dev/null 2>&1; then : adam@0: adam@0: else adam@0: ac_cv_header_stdc=no adam@0: fi adam@0: rm -f conftest* adam@0: adam@0: fi adam@0: adam@0: if test $ac_cv_header_stdc = yes; then adam@0: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: adam@0: _ACEOF adam@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | adam@0: $EGREP "free" >/dev/null 2>&1; then : adam@0: adam@0: else adam@0: ac_cv_header_stdc=no adam@0: fi adam@0: rm -f conftest* adam@0: adam@0: fi adam@0: adam@0: if test $ac_cv_header_stdc = yes; then adam@0: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. adam@0: if test "$cross_compiling" = yes; then : adam@0: : adam@0: else adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: #include adam@0: #if ((' ' & 0x0FF) == 0x020) adam@0: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') adam@0: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) adam@0: #else adam@0: # define ISLOWER(c) \ adam@0: (('a' <= (c) && (c) <= 'i') \ adam@0: || ('j' <= (c) && (c) <= 'r') \ adam@0: || ('s' <= (c) && (c) <= 'z')) adam@0: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) adam@0: #endif adam@0: adam@0: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) adam@0: int adam@0: main () adam@0: { adam@0: int i; adam@0: for (i = 0; i < 256; i++) adam@0: if (XOR (islower (i), ISLOWER (i)) adam@0: || toupper (i) != TOUPPER (i)) adam@0: return 2; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_run "$LINENO"; then : adam@0: adam@0: else adam@0: ac_cv_header_stdc=no adam@0: fi adam@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ adam@0: conftest.$ac_objext conftest.beam conftest.$ac_ext adam@0: fi adam@0: adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 adam@0: $as_echo "$ac_cv_header_stdc" >&6; } adam@0: if test $ac_cv_header_stdc = yes; then adam@0: adam@0: $as_echo "#define STDC_HEADERS 1" >>confdefs.h adam@0: adam@0: fi adam@0: adam@0: # On IRIX 5.3, sys/types and inttypes.h are conflicting. adam@0: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ adam@0: inttypes.h stdint.h unistd.h adam@0: do : adam@0: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` adam@0: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default adam@0: " adam@0: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 adam@0: _ACEOF adam@0: adam@0: fi adam@0: adam@0: done adam@0: adam@0: adam@0: adam@0: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" adam@12: if test "x$ac_cv_header_minix_config_h" = xyes; then : adam@0: MINIX=yes adam@0: else adam@0: MINIX= adam@0: fi adam@0: adam@0: adam@0: if test "$MINIX" = yes; then adam@0: adam@0: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h adam@0: adam@0: adam@0: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h adam@0: adam@0: adam@0: $as_echo "#define _MINIX 1" >>confdefs.h adam@0: adam@0: fi adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 adam@0: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } adam@12: if ${ac_cv_safe_to_define___extensions__+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: # define __EXTENSIONS__ 1 adam@0: $ac_includes_default adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_cv_safe_to_define___extensions__=yes adam@0: else adam@0: ac_cv_safe_to_define___extensions__=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 adam@0: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } adam@0: test $ac_cv_safe_to_define___extensions__ = yes && adam@0: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h adam@0: adam@0: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h adam@0: adam@0: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h adam@0: adam@0: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h adam@0: adam@0: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h adam@0: adam@0: adam@0: am__api_version='1.11' adam@0: adam@0: ac_aux_dir= adam@0: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do adam@0: if test -f "$ac_dir/install-sh"; then adam@0: ac_aux_dir=$ac_dir adam@0: ac_install_sh="$ac_aux_dir/install-sh -c" adam@0: break adam@0: elif test -f "$ac_dir/install.sh"; then adam@0: ac_aux_dir=$ac_dir adam@0: ac_install_sh="$ac_aux_dir/install.sh -c" adam@0: break adam@0: elif test -f "$ac_dir/shtool"; then adam@0: ac_aux_dir=$ac_dir adam@0: ac_install_sh="$ac_aux_dir/shtool install -c" adam@0: break adam@0: fi adam@0: done adam@0: if test -z "$ac_aux_dir"; then adam@0: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 adam@0: fi adam@0: adam@0: # These three variables are undocumented and unsupported, adam@0: # and are intended to be withdrawn in a future Autoconf release. adam@0: # They can cause serious problems if a builder's source tree is in a directory adam@0: # whose full name contains unusual characters. adam@0: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. adam@0: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. adam@0: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. adam@0: adam@0: adam@0: # Find a good install program. We prefer a C program (faster), adam@0: # so one script is as good as another. But avoid the broken or adam@0: # incompatible versions: adam@0: # SysV /etc/install, /usr/sbin/install adam@0: # SunOS /usr/etc/install adam@0: # IRIX /sbin/install adam@0: # AIX /bin/install adam@0: # AmigaOS /C/install, which installs bootblocks on floppy discs adam@0: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag adam@0: # AFS /usr/afsws/bin/install, which mishandles nonexistent args adam@0: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" adam@0: # OS/2's system install, which has a completely different semantic adam@0: # ./install, which can be erroneously created by make from ./install.sh. adam@0: # Reject install programs that cannot install multiple files. adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 adam@0: $as_echo_n "checking for a BSD-compatible install... " >&6; } adam@0: if test -z "$INSTALL"; then adam@12: if ${ac_cv_path_install+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: # Account for people who put trailing slashes in PATH elements. adam@0: case $as_dir/ in #(( adam@0: ./ | .// | /[cC]/* | \ adam@0: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ adam@0: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ adam@0: /usr/ucb/* ) ;; adam@0: *) adam@0: # OSF1 and SCO ODT 3.0 have their own names for install. adam@0: # Don't use installbsd from OSF since it installs stuff as root adam@0: # by default. adam@0: for ac_prog in ginstall scoinst install; do adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then adam@0: if test $ac_prog = install && adam@0: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then adam@0: # AIX install. It has an incompatible calling convention. adam@0: : adam@0: elif test $ac_prog = install && adam@0: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then adam@0: # program-specific install script used by HP pwplus--don't use. adam@0: : adam@0: else adam@0: rm -rf conftest.one conftest.two conftest.dir adam@0: echo one > conftest.one adam@0: echo two > conftest.two adam@0: mkdir conftest.dir adam@0: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && adam@0: test -s conftest.one && test -s conftest.two && adam@0: test -s conftest.dir/conftest.one && adam@0: test -s conftest.dir/conftest.two adam@0: then adam@0: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" adam@0: break 3 adam@0: fi adam@0: fi adam@0: fi adam@0: done adam@0: done adam@0: ;; adam@0: esac adam@0: adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: rm -rf conftest.one conftest.two conftest.dir adam@0: adam@0: fi adam@0: if test "${ac_cv_path_install+set}" = set; then adam@0: INSTALL=$ac_cv_path_install adam@0: else adam@0: # As a last resort, use the slow shell script. Don't cache a adam@0: # value for INSTALL within a source directory, because that will adam@0: # break other packages using the cache if that directory is adam@0: # removed, or if the value is a relative name. adam@0: INSTALL=$ac_install_sh adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 adam@0: $as_echo "$INSTALL" >&6; } adam@0: adam@0: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. adam@0: # It thinks the first close brace ends the variable substitution. adam@0: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' adam@0: adam@0: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' adam@0: adam@0: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 adam@0: $as_echo_n "checking whether build environment is sane... " >&6; } adam@0: # Just in case adam@0: sleep 1 adam@0: echo timestamp > conftest.file adam@0: # Reject unsafe characters in $srcdir or the absolute working directory adam@0: # name. Accept space and tab only in the latter. adam@0: am_lf=' adam@0: ' adam@0: case `pwd` in adam@0: *[\\\"\#\$\&\'\`$am_lf]*) adam@12: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; adam@0: esac adam@0: case $srcdir in adam@0: *[\\\"\#\$\&\'\`$am_lf\ \ ]*) adam@12: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; adam@0: esac adam@0: adam@0: # Do `set' in a subshell so we don't clobber the current shell's adam@0: # arguments. Must try -L first in case configure is actually a adam@0: # symlink; some systems play weird games with the mod time of symlinks adam@0: # (eg FreeBSD returns the mod time of the symlink's containing adam@0: # directory). adam@0: if ( adam@0: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` adam@0: if test "$*" = "X"; then adam@0: # -L didn't work. adam@0: set X `ls -t "$srcdir/configure" conftest.file` adam@0: fi adam@0: rm -f conftest.file adam@0: if test "$*" != "X $srcdir/configure conftest.file" \ adam@0: && test "$*" != "X conftest.file $srcdir/configure"; then adam@0: adam@0: # If neither matched, then we have a broken ls. This can happen adam@0: # if, for instance, CONFIG_SHELL is bash and it inherits a adam@0: # broken ls alias from the environment. This has actually adam@0: # happened. Such a system could not be considered "sane". adam@0: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken adam@0: alias in your environment" "$LINENO" 5 adam@0: fi adam@0: adam@0: test "$2" = conftest.file adam@0: ) adam@0: then adam@0: # Ok. adam@0: : adam@0: else adam@0: as_fn_error $? "newly created file is older than distributed files! adam@0: Check your system clock" "$LINENO" 5 adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adam@0: $as_echo "yes" >&6; } adam@0: test "$program_prefix" != NONE && adam@0: program_transform_name="s&^&$program_prefix&;$program_transform_name" adam@0: # Use a double $ so make ignores it. adam@0: test "$program_suffix" != NONE && adam@0: program_transform_name="s&\$&$program_suffix&;$program_transform_name" adam@0: # Double any \ or $. adam@0: # By default was `s,x,x', remove it if useless. adam@0: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' adam@0: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` adam@0: adam@0: # expand $ac_aux_dir to an absolute path adam@0: am_aux_dir=`cd $ac_aux_dir && pwd` adam@0: adam@0: if test x"${MISSING+set}" != xset; then adam@0: case $am_aux_dir in adam@0: *\ * | *\ *) adam@0: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; adam@0: *) adam@0: MISSING="\${SHELL} $am_aux_dir/missing" ;; adam@0: esac adam@0: fi adam@0: # Use eval to expand $SHELL adam@0: if eval "$MISSING --run true"; then adam@0: am_missing_run="$MISSING --run " adam@0: else adam@0: am_missing_run= adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 adam@0: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} adam@0: fi adam@0: adam@0: if test x"${install_sh}" != xset; then adam@0: case $am_aux_dir in adam@0: *\ * | *\ *) adam@0: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; adam@0: *) adam@0: install_sh="\${SHELL} $am_aux_dir/install-sh" adam@0: esac adam@0: fi adam@0: adam@0: # Installed binaries are usually stripped using `strip' when the user adam@0: # run `make install-strip'. However `strip' might not be the right adam@0: # tool to use in cross-compilation environments, therefore Automake adam@0: # will honor the `STRIP' environment variable to overrule this program. adam@0: if test "$cross_compiling" != no; then adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}strip; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_STRIP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$STRIP"; then adam@0: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_STRIP="${ac_tool_prefix}strip" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: STRIP=$ac_cv_prog_STRIP adam@0: if test -n "$STRIP"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 adam@0: $as_echo "$STRIP" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_STRIP"; then adam@0: ac_ct_STRIP=$STRIP adam@0: # Extract the first word of "strip", so it can be a program name with args. adam@0: set dummy strip; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_STRIP"; then adam@0: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_STRIP="strip" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP adam@0: if test -n "$ac_ct_STRIP"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 adam@0: $as_echo "$ac_ct_STRIP" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_STRIP" = x; then adam@0: STRIP=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: STRIP=$ac_ct_STRIP adam@0: fi adam@0: else adam@0: STRIP="$ac_cv_prog_STRIP" adam@0: fi adam@0: adam@0: fi adam@0: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 adam@0: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } adam@0: if test -z "$MKDIR_P"; then adam@12: if ${ac_cv_path_mkdir+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_prog in mkdir gmkdir; do adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue adam@0: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( adam@0: 'mkdir (GNU coreutils) '* | \ adam@0: 'mkdir (coreutils) '* | \ adam@0: 'mkdir (fileutils) '4.1*) adam@0: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext adam@0: break 3;; adam@0: esac adam@0: done adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: adam@0: test -d ./--version && rmdir ./--version adam@0: if test "${ac_cv_path_mkdir+set}" = set; then adam@0: MKDIR_P="$ac_cv_path_mkdir -p" adam@0: else adam@0: # As a last resort, use the slow shell script. Don't cache a adam@0: # value for MKDIR_P within a source directory, because that will adam@0: # break other packages using the cache if that directory is adam@0: # removed, or if the value is a relative name. adam@0: MKDIR_P="$ac_install_sh -d" adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 adam@0: $as_echo "$MKDIR_P" >&6; } adam@0: adam@0: mkdir_p="$MKDIR_P" adam@0: case $mkdir_p in adam@0: [\\/$]* | ?:[\\/]*) ;; adam@0: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; adam@0: esac adam@0: adam@0: for ac_prog in gawk mawk nawk awk adam@0: do adam@0: # Extract the first word of "$ac_prog", so it can be a program name with args. adam@0: set dummy $ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_AWK+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$AWK"; then adam@0: ac_cv_prog_AWK="$AWK" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_AWK="$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: AWK=$ac_cv_prog_AWK adam@0: if test -n "$AWK"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 adam@0: $as_echo "$AWK" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: test -n "$AWK" && break adam@0: done adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 adam@0: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } adam@0: set x ${MAKE-make} adam@0: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` adam@12: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: cat >conftest.make <<\_ACEOF adam@0: SHELL = /bin/sh adam@0: all: adam@0: @echo '@@@%%%=$(MAKE)=@@@%%%' adam@0: _ACEOF adam@0: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. adam@0: case `${MAKE-make} -f conftest.make 2>/dev/null` in adam@0: *@@@%%%=?*=@@@%%%*) adam@0: eval ac_cv_prog_make_${ac_make}_set=yes;; adam@0: *) adam@0: eval ac_cv_prog_make_${ac_make}_set=no;; adam@0: esac adam@0: rm -f conftest.make adam@0: fi adam@0: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adam@0: $as_echo "yes" >&6; } adam@0: SET_MAKE= adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: SET_MAKE="MAKE=${MAKE-make}" adam@0: fi adam@0: adam@0: rm -rf .tst 2>/dev/null adam@0: mkdir .tst 2>/dev/null adam@0: if test -d .tst; then adam@0: am__leading_dot=. adam@0: else adam@0: am__leading_dot=_ adam@0: fi adam@0: rmdir .tst 2>/dev/null adam@0: adam@0: DEPDIR="${am__leading_dot}deps" adam@0: adam@0: ac_config_commands="$ac_config_commands depfiles" adam@0: adam@0: adam@0: am_make=${MAKE-make} adam@0: cat > confinc << 'END' adam@0: am__doit: adam@0: @echo this is the am__doit target adam@0: .PHONY: am__doit adam@0: END adam@0: # If we don't find an include directive, just comment out the code. adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 adam@0: $as_echo_n "checking for style of include used by $am_make... " >&6; } adam@0: am__include="#" adam@0: am__quote= adam@0: _am_result=none adam@0: # First try GNU make style include. adam@0: echo "include confinc" > confmf adam@0: # Ignore all kinds of additional output from `make'. adam@0: case `$am_make -s -f confmf 2> /dev/null` in #( adam@0: *the\ am__doit\ target*) adam@0: am__include=include adam@0: am__quote= adam@0: _am_result=GNU adam@0: ;; adam@0: esac adam@0: # Now try BSD make style include. adam@0: if test "$am__include" = "#"; then adam@0: echo '.include "confinc"' > confmf adam@0: case `$am_make -s -f confmf 2> /dev/null` in #( adam@0: *the\ am__doit\ target*) adam@0: am__include=.include adam@0: am__quote="\"" adam@0: _am_result=BSD adam@0: ;; adam@0: esac adam@0: fi adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 adam@0: $as_echo "$_am_result" >&6; } adam@0: rm -f confinc confmf adam@0: adam@0: # Check whether --enable-dependency-tracking was given. adam@0: if test "${enable_dependency_tracking+set}" = set; then : adam@0: enableval=$enable_dependency_tracking; adam@0: fi adam@0: adam@0: if test "x$enable_dependency_tracking" != xno; then adam@0: am_depcomp="$ac_aux_dir/depcomp" adam@0: AMDEPBACKSLASH='\' adam@0: fi adam@0: if test "x$enable_dependency_tracking" != xno; then adam@0: AMDEP_TRUE= adam@0: AMDEP_FALSE='#' adam@0: else adam@0: AMDEP_TRUE='#' adam@0: AMDEP_FALSE= adam@0: fi adam@0: adam@0: adam@0: if test "`cd $srcdir && pwd`" != "`pwd`"; then adam@0: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output adam@0: # is not polluted with repeated "-I." adam@0: am__isrc=' -I$(srcdir)' adam@0: # test to see if srcdir already configured adam@0: if test -f $srcdir/config.status; then adam@0: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 adam@0: fi adam@0: fi adam@0: adam@0: # test whether we have cygpath adam@0: if test -z "$CYGPATH_W"; then adam@0: if (cygpath --version) >/dev/null 2>/dev/null; then adam@0: CYGPATH_W='cygpath -w' adam@0: else adam@0: CYGPATH_W=echo adam@0: fi adam@0: fi adam@0: adam@0: adam@0: # Define the identity of the package. adam@0: PACKAGE='urweb_feed' adam@0: VERSION='1.0' adam@0: adam@0: adam@0: # Some tools Automake needs. adam@0: adam@0: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} adam@0: adam@0: adam@0: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} adam@0: adam@0: adam@0: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} adam@0: adam@0: adam@0: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} adam@0: adam@0: adam@0: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} adam@0: adam@0: # We need awk for the "check" target. The system "awk" is bad on adam@0: # some platforms. adam@0: # Always define AMTAR for backward compatibility. adam@0: adam@0: AMTAR=${AMTAR-"${am_missing_run}tar"} adam@0: adam@0: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' adam@0: adam@0: adam@0: adam@0: adam@0: depcc="$CC" am_compiler_list= adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 adam@0: $as_echo_n "checking dependency style of $depcc... " >&6; } adam@12: if ${am_cv_CC_dependencies_compiler_type+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then adam@0: # We make a subdir and do the tests there. Otherwise we can end up adam@0: # making bogus files that we don't know about and never remove. For adam@0: # instance it was reported that on HP-UX the gcc test will end up adam@0: # making a dummy file named `D' -- because `-MD' means `put the output adam@0: # in D'. adam@0: mkdir conftest.dir adam@0: # Copy depcomp to subdir because otherwise we won't find it if we're adam@0: # using a relative directory. adam@0: cp "$am_depcomp" conftest.dir adam@0: cd conftest.dir adam@0: # We will build objects and dependencies in a subdirectory because adam@0: # it helps to detect inapplicable dependency modes. For instance adam@0: # both Tru64's cc and ICC support -MD to output dependencies as a adam@0: # side effect of compilation, but ICC will put the dependencies in adam@0: # the current directory while Tru64 will put them in the object adam@0: # directory. adam@0: mkdir sub adam@0: adam@0: am_cv_CC_dependencies_compiler_type=none adam@0: if test "$am_compiler_list" = ""; then adam@0: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` adam@0: fi adam@0: am__universal=false adam@0: case " $depcc " in #( adam@0: *\ -arch\ *\ -arch\ *) am__universal=true ;; adam@0: esac adam@0: adam@0: for depmode in $am_compiler_list; do adam@0: # Setup a source with many dependencies, because some compilers adam@0: # like to wrap large dependency lists on column 80 (with \), and adam@0: # we should not choose a depcomp mode which is confused by this. adam@0: # adam@0: # We need to recreate these files for each test, as the compiler may adam@0: # overwrite some of them when testing with obscure command lines. adam@0: # This happens at least with the AIX C compiler. adam@0: : > sub/conftest.c adam@0: for i in 1 2 3 4 5 6; do adam@0: echo '#include "conftst'$i'.h"' >> sub/conftest.c adam@0: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with adam@0: # Solaris 8's {/usr,}/bin/sh. adam@0: touch sub/conftst$i.h adam@0: done adam@0: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf adam@0: adam@0: # We check with `-c' and `-o' for the sake of the "dashmstdout" adam@0: # mode. It turns out that the SunPro C++ compiler does not properly adam@0: # handle `-M -o', and we need to detect this. Also, some Intel adam@0: # versions had trouble with output in subdirs adam@0: am__obj=sub/conftest.${OBJEXT-o} adam@0: am__minus_obj="-o $am__obj" adam@0: case $depmode in adam@0: gcc) adam@0: # This depmode causes a compiler race in universal mode. adam@0: test "$am__universal" = false || continue adam@0: ;; adam@0: nosideeffect) adam@0: # after this tag, mechanisms are not by side-effect, so they'll adam@0: # only be used when explicitly requested adam@0: if test "x$enable_dependency_tracking" = xyes; then adam@0: continue adam@0: else adam@0: break adam@0: fi adam@0: ;; adam@0: msvisualcpp | msvcmsys) adam@0: # This compiler won't grok `-c -o', but also, the minuso test has adam@0: # not run yet. These depmodes are late enough in the game, and adam@0: # so weak that their functioning should not be impacted. adam@0: am__obj=conftest.${OBJEXT-o} adam@0: am__minus_obj= adam@0: ;; adam@0: none) break ;; adam@0: esac adam@0: if depmode=$depmode \ adam@0: source=sub/conftest.c object=$am__obj \ adam@0: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ adam@0: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ adam@0: >/dev/null 2>conftest.err && adam@0: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && adam@0: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && adam@0: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && adam@0: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then adam@0: # icc doesn't choke on unknown options, it will just issue warnings adam@0: # or remarks (even with -Werror). So we grep stderr for any message adam@0: # that says an option was ignored or not supported. adam@0: # When given -MP, icc 7.0 and 7.1 complain thusly: adam@0: # icc: Command line warning: ignoring option '-M'; no argument required adam@0: # The diagnosis changed in icc 8.0: adam@0: # icc: Command line remark: option '-MP' not supported adam@0: if (grep 'ignoring option' conftest.err || adam@0: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else adam@0: am_cv_CC_dependencies_compiler_type=$depmode adam@0: break adam@0: fi adam@0: fi adam@0: done adam@0: adam@0: cd .. adam@0: rm -rf conftest.dir adam@0: else adam@0: am_cv_CC_dependencies_compiler_type=none adam@0: fi adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 adam@0: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } adam@0: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type adam@0: adam@0: if adam@0: test "x$enable_dependency_tracking" != xno \ adam@0: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then adam@0: am__fastdepCC_TRUE= adam@0: am__fastdepCC_FALSE='#' adam@0: else adam@0: am__fastdepCC_TRUE='#' adam@0: am__fastdepCC_FALSE= adam@0: fi adam@0: adam@0: adam@0: adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}gcc; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$CC"; then adam@0: ac_cv_prog_CC="$CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_CC="${ac_tool_prefix}gcc" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: CC=$ac_cv_prog_CC adam@0: if test -n "$CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adam@0: $as_echo "$CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_CC"; then adam@0: ac_ct_CC=$CC adam@0: # Extract the first word of "gcc", so it can be a program name with args. adam@0: set dummy gcc; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_CC"; then adam@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_CC="gcc" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC adam@0: if test -n "$ac_ct_CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 adam@0: $as_echo "$ac_ct_CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_CC" = x; then adam@0: CC="" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: CC=$ac_ct_CC adam@0: fi adam@0: else adam@0: CC="$ac_cv_prog_CC" adam@0: fi adam@0: adam@0: if test -z "$CC"; then adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}cc; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$CC"; then adam@0: ac_cv_prog_CC="$CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_CC="${ac_tool_prefix}cc" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: CC=$ac_cv_prog_CC adam@0: if test -n "$CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adam@0: $as_echo "$CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: fi adam@0: if test -z "$CC"; then adam@0: # Extract the first word of "cc", so it can be a program name with args. adam@0: set dummy cc; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$CC"; then adam@0: ac_cv_prog_CC="$CC" # Let the user override the test. adam@0: else adam@0: ac_prog_rejected=no adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then adam@0: ac_prog_rejected=yes adam@0: continue adam@0: fi adam@0: ac_cv_prog_CC="cc" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: if test $ac_prog_rejected = yes; then adam@0: # We found a bogon in the path, so make sure we never use it. adam@0: set dummy $ac_cv_prog_CC adam@0: shift adam@0: if test $# != 0; then adam@0: # We chose a different compiler from the bogus one. adam@0: # However, it has the same basename, so the bogon will be chosen adam@0: # first if we set CC to just the basename; use the full file name. adam@0: shift adam@0: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" adam@0: fi adam@0: fi adam@0: fi adam@0: fi adam@0: CC=$ac_cv_prog_CC adam@0: if test -n "$CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adam@0: $as_echo "$CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$CC"; then adam@0: if test -n "$ac_tool_prefix"; then adam@0: for ac_prog in cl.exe adam@0: do adam@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. adam@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$CC"; then adam@0: ac_cv_prog_CC="$CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: CC=$ac_cv_prog_CC adam@0: if test -n "$CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 adam@0: $as_echo "$CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: test -n "$CC" && break adam@0: done adam@0: fi adam@0: if test -z "$CC"; then adam@0: ac_ct_CC=$CC adam@0: for ac_prog in cl.exe adam@0: do adam@0: # Extract the first word of "$ac_prog", so it can be a program name with args. adam@0: set dummy $ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_CC+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_CC"; then adam@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_CC="$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC adam@0: if test -n "$ac_ct_CC"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 adam@0: $as_echo "$ac_ct_CC" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: test -n "$ac_ct_CC" && break adam@0: done adam@0: adam@0: if test "x$ac_ct_CC" = x; then adam@0: CC="" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: CC=$ac_ct_CC adam@0: fi adam@0: fi adam@0: adam@0: fi adam@0: adam@0: adam@0: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 adam@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} adam@0: as_fn_error $? "no acceptable C compiler found in \$PATH adam@12: See \`config.log' for more details" "$LINENO" 5; } adam@0: adam@0: # Provide some information about the compiler. adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 adam@0: set X $ac_compile adam@0: ac_compiler=$2 adam@0: for ac_option in --version -v -V -qversion; do adam@0: { { ac_try="$ac_compiler $ac_option >&5" adam@0: case "(($ac_try" in adam@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; adam@0: *) ac_try_echo=$ac_try;; adam@0: esac adam@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" adam@0: $as_echo "$ac_try_echo"; } >&5 adam@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err adam@0: ac_status=$? adam@0: if test -s conftest.err; then adam@0: sed '10a\ adam@0: ... rest of stderr output deleted ... adam@0: 10q' conftest.err >conftest.er1 adam@0: cat conftest.er1 >&5 adam@0: fi adam@0: rm -f conftest.er1 conftest.err adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } adam@0: done adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 adam@0: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } adam@12: if ${ac_cv_c_compiler_gnu+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: #ifndef __GNUC__ adam@0: choke me adam@0: #endif adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_compiler_gnu=yes adam@0: else adam@0: ac_compiler_gnu=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: ac_cv_c_compiler_gnu=$ac_compiler_gnu adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 adam@0: $as_echo "$ac_cv_c_compiler_gnu" >&6; } adam@0: if test $ac_compiler_gnu = yes; then adam@0: GCC=yes adam@0: else adam@0: GCC= adam@0: fi adam@0: ac_test_CFLAGS=${CFLAGS+set} adam@0: ac_save_CFLAGS=$CFLAGS adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 adam@0: $as_echo_n "checking whether $CC accepts -g... " >&6; } adam@12: if ${ac_cv_prog_cc_g+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_save_c_werror_flag=$ac_c_werror_flag adam@0: ac_c_werror_flag=yes adam@0: ac_cv_prog_cc_g=no adam@0: CFLAGS="-g" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_cv_prog_cc_g=yes adam@0: else adam@0: CFLAGS="" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: adam@0: else adam@0: ac_c_werror_flag=$ac_save_c_werror_flag adam@0: CFLAGS="-g" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_cv_prog_cc_g=yes adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@0: ac_c_werror_flag=$ac_save_c_werror_flag adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 adam@0: $as_echo "$ac_cv_prog_cc_g" >&6; } adam@0: if test "$ac_test_CFLAGS" = set; then adam@0: CFLAGS=$ac_save_CFLAGS adam@0: elif test $ac_cv_prog_cc_g = yes; then adam@0: if test "$GCC" = yes; then adam@0: CFLAGS="-g -O2" adam@0: else adam@0: CFLAGS="-g" adam@0: fi adam@0: else adam@0: if test "$GCC" = yes; then adam@0: CFLAGS="-O2" adam@0: else adam@0: CFLAGS= adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 adam@0: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } adam@12: if ${ac_cv_prog_cc_c89+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_cv_prog_cc_c89=no adam@0: ac_save_CC=$CC adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: #include adam@0: #include adam@0: #include adam@0: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ adam@0: struct buf { int x; }; adam@0: FILE * (*rcsopen) (struct buf *, struct stat *, int); adam@0: static char *e (p, i) adam@0: char **p; adam@0: int i; adam@0: { adam@0: return p[i]; adam@0: } adam@0: static char *f (char * (*g) (char **, int), char **p, ...) adam@0: { adam@0: char *s; adam@0: va_list v; adam@0: va_start (v,p); adam@0: s = g (p, va_arg (v,int)); adam@0: va_end (v); adam@0: return s; adam@0: } adam@0: adam@0: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has adam@0: function prototypes and stuff, but not '\xHH' hex character constants. adam@0: These don't provoke an error unfortunately, instead are silently treated adam@0: as 'x'. The following induces an error, until -std is added to get adam@0: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an adam@0: array size at least. It's necessary to write '\x00'==0 to get something adam@0: that's true only with -std. */ adam@0: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; adam@0: adam@0: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters adam@0: inside strings and character constants. */ adam@0: #define FOO(x) 'x' adam@0: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; adam@0: adam@0: int test (int i, double x); adam@0: struct s1 {int (*f) (int a);}; adam@0: struct s2 {int (*f) (double a);}; adam@0: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); adam@0: int argc; adam@0: char **argv; adam@0: int adam@0: main () adam@0: { adam@0: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ adam@0: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" adam@0: do adam@0: CC="$ac_save_CC $ac_arg" adam@0: if ac_fn_c_try_compile "$LINENO"; then : adam@0: ac_cv_prog_cc_c89=$ac_arg adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext adam@0: test "x$ac_cv_prog_cc_c89" != "xno" && break adam@0: done adam@0: rm -f conftest.$ac_ext adam@0: CC=$ac_save_CC adam@0: adam@0: fi adam@0: # AC_CACHE_VAL adam@0: case "x$ac_cv_prog_cc_c89" in adam@0: x) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 adam@0: $as_echo "none needed" >&6; } ;; adam@0: xno) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 adam@0: $as_echo "unsupported" >&6; } ;; adam@0: *) adam@0: CC="$CC $ac_cv_prog_cc_c89" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 adam@0: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; adam@0: esac adam@0: if test "x$ac_cv_prog_cc_c89" != xno; then : adam@0: adam@0: fi adam@0: adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: adam@0: case `pwd` in adam@0: *\ * | *\ *) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 adam@0: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; adam@0: esac adam@0: adam@0: adam@0: adam@12: macro_version='2.4' adam@12: macro_revision='1.3293' adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: ltmain="$ac_aux_dir/ltmain.sh" adam@0: adam@0: # Make sure we can run config.sub. adam@0: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || adam@0: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 adam@0: $as_echo_n "checking build system type... " >&6; } adam@12: if ${ac_cv_build+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_build_alias=$build_alias adam@0: test "x$ac_build_alias" = x && adam@0: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` adam@0: test "x$ac_build_alias" = x && adam@0: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 adam@0: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || adam@0: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 adam@0: $as_echo "$ac_cv_build" >&6; } adam@0: case $ac_cv_build in adam@0: *-*-*) ;; adam@12: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; adam@0: esac adam@0: build=$ac_cv_build adam@0: ac_save_IFS=$IFS; IFS='-' adam@0: set x $ac_cv_build adam@0: shift adam@0: build_cpu=$1 adam@0: build_vendor=$2 adam@0: shift; shift adam@0: # Remember, the first character of IFS is used to create $*, adam@0: # except with old shells: adam@0: build_os=$* adam@0: IFS=$ac_save_IFS adam@0: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 adam@0: $as_echo_n "checking host system type... " >&6; } adam@12: if ${ac_cv_host+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test "x$host_alias" = x; then adam@0: ac_cv_host=$ac_cv_build adam@0: else adam@0: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || adam@0: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 adam@0: fi adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 adam@0: $as_echo "$ac_cv_host" >&6; } adam@0: case $ac_cv_host in adam@0: *-*-*) ;; adam@12: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; adam@0: esac adam@0: host=$ac_cv_host adam@0: ac_save_IFS=$IFS; IFS='-' adam@0: set x $ac_cv_host adam@0: shift adam@0: host_cpu=$1 adam@0: host_vendor=$2 adam@0: shift; shift adam@0: # Remember, the first character of IFS is used to create $*, adam@0: # except with old shells: adam@0: host_os=$* adam@0: IFS=$ac_save_IFS adam@0: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac adam@0: adam@0: adam@12: # Backslashify metacharacters that are still active within adam@12: # double-quoted strings. adam@12: sed_quote_subst='s/\(["`$\\]\)/\\\1/g' adam@12: adam@12: # Same as above, but do not quote variable references. adam@12: double_quote_subst='s/\(["`\\]\)/\\\1/g' adam@12: adam@12: # Sed substitution to delay expansion of an escaped shell variable in a adam@12: # double_quote_subst'ed string. adam@12: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' adam@12: adam@12: # Sed substitution to delay expansion of an escaped single quote. adam@12: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' adam@12: adam@12: # Sed substitution to avoid accidental globbing in evaled expressions adam@12: no_glob_subst='s/\*/\\\*/g' adam@12: adam@12: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' adam@12: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO adam@12: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO adam@12: adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 adam@12: $as_echo_n "checking how to print strings... " >&6; } adam@12: # Test print first, because it will be a builtin if present. adam@12: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ adam@12: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then adam@12: ECHO='print -r --' adam@12: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then adam@12: ECHO='printf %s\n' adam@12: else adam@12: # Use this function as a fallback that always works. adam@12: func_fallback_echo () adam@12: { adam@12: eval 'cat <<_LTECHO_EOF adam@12: $1 adam@12: _LTECHO_EOF' adam@12: } adam@12: ECHO='func_fallback_echo' adam@12: fi adam@12: adam@12: # func_echo_all arg... adam@12: # Invoke $ECHO with all args, space-separated. adam@12: func_echo_all () adam@12: { adam@12: $ECHO "" adam@12: } adam@12: adam@12: case "$ECHO" in adam@12: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 adam@12: $as_echo "printf" >&6; } ;; adam@12: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 adam@12: $as_echo "print -r" >&6; } ;; adam@12: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 adam@12: $as_echo "cat" >&6; } ;; adam@12: esac adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 adam@0: $as_echo_n "checking for a sed that does not truncate output... " >&6; } adam@12: if ${ac_cv_path_SED+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ adam@0: for ac_i in 1 2 3 4 5 6 7; do adam@0: ac_script="$ac_script$as_nl$ac_script" adam@0: done adam@0: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed adam@0: { ac_script=; unset ac_script;} adam@0: if test -z "$SED"; then adam@0: ac_path_SED_found=false adam@0: # Loop through the user's path and test for each of PROGNAME-LIST adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_prog in sed gsed; do adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" adam@0: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue adam@0: # Check for GNU ac_path_SED and select it if it is found. adam@0: # Check for GNU $ac_path_SED adam@0: case `"$ac_path_SED" --version 2>&1` in adam@0: *GNU*) adam@0: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; adam@0: *) adam@0: ac_count=0 adam@0: $as_echo_n 0123456789 >"conftest.in" adam@0: while : adam@0: do adam@0: cat "conftest.in" "conftest.in" >"conftest.tmp" adam@0: mv "conftest.tmp" "conftest.in" adam@0: cp "conftest.in" "conftest.nl" adam@0: $as_echo '' >> "conftest.nl" adam@0: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break adam@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break adam@0: as_fn_arith $ac_count + 1 && ac_count=$as_val adam@0: if test $ac_count -gt ${ac_path_SED_max-0}; then adam@0: # Best one so far, save it but keep looking for a better one adam@0: ac_cv_path_SED="$ac_path_SED" adam@0: ac_path_SED_max=$ac_count adam@0: fi adam@0: # 10*(2^10) chars as input seems more than enough adam@0: test $ac_count -gt 10 && break adam@0: done adam@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; adam@0: esac adam@0: adam@0: $ac_path_SED_found && break 3 adam@0: done adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: if test -z "$ac_cv_path_SED"; then adam@0: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 adam@0: fi adam@0: else adam@0: ac_cv_path_SED=$SED adam@0: fi adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 adam@0: $as_echo "$ac_cv_path_SED" >&6; } adam@0: SED="$ac_cv_path_SED" adam@0: rm -f conftest.sed adam@0: adam@0: test -z "$SED" && SED=sed adam@0: Xsed="$SED -e 1s/^X//" adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 adam@0: $as_echo_n "checking for fgrep... " >&6; } adam@12: if ${ac_cv_path_FGREP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 adam@0: then ac_cv_path_FGREP="$GREP -F" adam@0: else adam@0: if test -z "$FGREP"; then adam@0: ac_path_FGREP_found=false adam@0: # Loop through the user's path and test for each of PROGNAME-LIST adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_prog in fgrep; do adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" adam@0: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue adam@0: # Check for GNU ac_path_FGREP and select it if it is found. adam@0: # Check for GNU $ac_path_FGREP adam@0: case `"$ac_path_FGREP" --version 2>&1` in adam@0: *GNU*) adam@0: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; adam@0: *) adam@0: ac_count=0 adam@0: $as_echo_n 0123456789 >"conftest.in" adam@0: while : adam@0: do adam@0: cat "conftest.in" "conftest.in" >"conftest.tmp" adam@0: mv "conftest.tmp" "conftest.in" adam@0: cp "conftest.in" "conftest.nl" adam@0: $as_echo 'FGREP' >> "conftest.nl" adam@0: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break adam@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break adam@0: as_fn_arith $ac_count + 1 && ac_count=$as_val adam@0: if test $ac_count -gt ${ac_path_FGREP_max-0}; then adam@0: # Best one so far, save it but keep looking for a better one adam@0: ac_cv_path_FGREP="$ac_path_FGREP" adam@0: ac_path_FGREP_max=$ac_count adam@0: fi adam@0: # 10*(2^10) chars as input seems more than enough adam@0: test $ac_count -gt 10 && break adam@0: done adam@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; adam@0: esac adam@0: adam@0: $ac_path_FGREP_found && break 3 adam@0: done adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: if test -z "$ac_cv_path_FGREP"; then adam@0: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 adam@0: fi adam@0: else adam@0: ac_cv_path_FGREP=$FGREP adam@0: fi adam@0: adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 adam@0: $as_echo "$ac_cv_path_FGREP" >&6; } adam@0: FGREP="$ac_cv_path_FGREP" adam@0: adam@0: adam@0: test -z "$GREP" && GREP=grep adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # Check whether --with-gnu-ld was given. adam@0: if test "${with_gnu_ld+set}" = set; then : adam@0: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes adam@0: else adam@0: with_gnu_ld=no adam@0: fi adam@0: adam@0: ac_prog=ld adam@0: if test "$GCC" = yes; then adam@0: # Check if gcc -print-prog-name=ld gives a path. adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 adam@0: $as_echo_n "checking for ld used by $CC... " >&6; } adam@0: case $host in adam@0: *-*-mingw*) adam@0: # gcc leaves a trailing carriage return which upsets mingw adam@0: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; adam@0: *) adam@0: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; adam@0: esac adam@0: case $ac_prog in adam@0: # Accept absolute paths. adam@0: [\\/]* | ?:[\\/]*) adam@0: re_direlt='/[^/][^/]*/\.\./' adam@0: # Canonicalize the pathname of ld adam@0: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` adam@0: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do adam@0: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` adam@0: done adam@0: test -z "$LD" && LD="$ac_prog" adam@0: ;; adam@0: "") adam@0: # If it fails, then pretend we aren't using GCC. adam@0: ac_prog=ld adam@0: ;; adam@0: *) adam@0: # If it is relative, then search for the first ld in PATH. adam@0: with_gnu_ld=unknown adam@0: ;; adam@0: esac adam@0: elif test "$with_gnu_ld" = yes; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 adam@0: $as_echo_n "checking for GNU ld... " >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 adam@0: $as_echo_n "checking for non-GNU ld... " >&6; } adam@0: fi adam@12: if ${lt_cv_path_LD+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -z "$LD"; then adam@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR adam@0: for ac_dir in $PATH; do adam@0: IFS="$lt_save_ifs" adam@0: test -z "$ac_dir" && ac_dir=. adam@0: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then adam@0: lt_cv_path_LD="$ac_dir/$ac_prog" adam@0: # Check to see if the program is GNU ld. I'd rather use --version, adam@0: # but apparently some variants of GNU ld only accept -v. adam@0: # Break only if it was the GNU/non-GNU ld that we prefer. adam@0: case `"$lt_cv_path_LD" -v 2>&1 &5 adam@0: $as_echo "$LD" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 adam@0: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } adam@12: if ${lt_cv_prog_gnu_ld+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: # I'd rather use --version here, but apparently some GNU lds only accept -v. adam@0: case `$LD -v 2>&1 &5 adam@0: $as_echo "$lt_cv_prog_gnu_ld" >&6; } adam@0: with_gnu_ld=$lt_cv_prog_gnu_ld adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 adam@0: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } adam@12: if ${lt_cv_path_NM+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$NM"; then adam@0: # Let the user override the test. adam@0: lt_cv_path_NM="$NM" adam@0: else adam@0: lt_nm_to_check="${ac_tool_prefix}nm" adam@0: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then adam@0: lt_nm_to_check="$lt_nm_to_check nm" adam@0: fi adam@0: for lt_tmp_nm in $lt_nm_to_check; do adam@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR adam@0: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do adam@0: IFS="$lt_save_ifs" adam@0: test -z "$ac_dir" && ac_dir=. adam@0: tmp_nm="$ac_dir/$lt_tmp_nm" adam@0: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then adam@0: # Check to see if the nm accepts a BSD-compat flag. adam@0: # Adding the `sed 1q' prevents false positives on HP-UX, which says: adam@0: # nm: unknown option "B" ignored adam@0: # Tru64's nm complains that /dev/null is an invalid object file adam@0: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in adam@0: */dev/null* | *'Invalid file or object type'*) adam@0: lt_cv_path_NM="$tmp_nm -B" adam@0: break adam@0: ;; adam@0: *) adam@0: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in adam@0: */dev/null*) adam@0: lt_cv_path_NM="$tmp_nm -p" adam@0: break adam@0: ;; adam@0: *) adam@0: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but adam@0: continue # so that we can try to find one that supports BSD flags adam@0: ;; adam@0: esac adam@0: ;; adam@0: esac adam@0: fi adam@0: done adam@0: IFS="$lt_save_ifs" adam@0: done adam@0: : ${lt_cv_path_NM=no} adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 adam@0: $as_echo "$lt_cv_path_NM" >&6; } adam@0: if test "$lt_cv_path_NM" != "no"; then adam@0: NM="$lt_cv_path_NM" adam@0: else adam@0: # Didn't find any BSD compatible name lister, look for dumpbin. adam@12: if test -n "$DUMPBIN"; then : adam@12: # Let the user override the test. adam@12: else adam@12: if test -n "$ac_tool_prefix"; then adam@12: for ac_prog in dumpbin "link -dump" adam@0: do adam@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. adam@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_DUMPBIN+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$DUMPBIN"; then adam@0: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: DUMPBIN=$ac_cv_prog_DUMPBIN adam@0: if test -n "$DUMPBIN"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 adam@0: $as_echo "$DUMPBIN" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: test -n "$DUMPBIN" && break adam@0: done adam@0: fi adam@0: if test -z "$DUMPBIN"; then adam@0: ac_ct_DUMPBIN=$DUMPBIN adam@12: for ac_prog in dumpbin "link -dump" adam@0: do adam@0: # Extract the first word of "$ac_prog", so it can be a program name with args. adam@0: set dummy $ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_DUMPBIN"; then adam@0: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN adam@0: if test -n "$ac_ct_DUMPBIN"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 adam@0: $as_echo "$ac_ct_DUMPBIN" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: test -n "$ac_ct_DUMPBIN" && break adam@0: done adam@0: adam@0: if test "x$ac_ct_DUMPBIN" = x; then adam@0: DUMPBIN=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: DUMPBIN=$ac_ct_DUMPBIN adam@0: fi adam@0: fi adam@0: adam@12: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in adam@12: *COFF*) adam@12: DUMPBIN="$DUMPBIN -symbols" adam@12: ;; adam@12: *) adam@12: DUMPBIN=: adam@12: ;; adam@12: esac adam@12: fi adam@0: adam@0: if test "$DUMPBIN" != ":"; then adam@0: NM="$DUMPBIN" adam@0: fi adam@0: fi adam@0: test -z "$NM" && NM=nm adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 adam@0: $as_echo_n "checking the name lister ($NM) interface... " >&6; } adam@12: if ${lt_cv_nm_interface+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_nm_interface="BSD nm" adam@0: echo "int some_variable = 0;" > conftest.$ac_ext adam@12: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) adam@0: (eval "$ac_compile" 2>conftest.err) adam@0: cat conftest.err >&5 adam@12: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) adam@0: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) adam@0: cat conftest.err >&5 adam@12: (eval echo "\"\$as_me:$LINENO: output\"" >&5) adam@0: cat conftest.out >&5 adam@0: if $GREP 'External.*some_variable' conftest.out > /dev/null; then adam@0: lt_cv_nm_interface="MS dumpbin" adam@0: fi adam@0: rm -f conftest* adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 adam@0: $as_echo "$lt_cv_nm_interface" >&6; } adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 adam@0: $as_echo_n "checking whether ln -s works... " >&6; } adam@0: LN_S=$as_ln_s adam@0: if test "$LN_S" = "ln -s"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adam@0: $as_echo "yes" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 adam@0: $as_echo "no, using $LN_S" >&6; } adam@0: fi adam@0: adam@0: # find the maximum length of command line arguments adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 adam@0: $as_echo_n "checking the maximum length of command line arguments... " >&6; } adam@12: if ${lt_cv_sys_max_cmd_len+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: i=0 adam@0: teststring="ABCD" adam@0: adam@0: case $build_os in adam@0: msdosdjgpp*) adam@0: # On DJGPP, this test can blow up pretty badly due to problems in libc adam@0: # (any single argument exceeding 2000 bytes causes a buffer overrun adam@0: # during glob expansion). Even if it were fixed, the result of this adam@0: # check would be larger than it should be. adam@0: lt_cv_sys_max_cmd_len=12288; # 12K is about right adam@0: ;; adam@0: adam@0: gnu*) adam@0: # Under GNU Hurd, this test is not required because there is adam@0: # no limit to the length of command line arguments. adam@0: # Libtool will interpret -1 as no limit whatsoever adam@0: lt_cv_sys_max_cmd_len=-1; adam@0: ;; adam@0: adam@0: cygwin* | mingw* | cegcc*) adam@0: # On Win9x/ME, this test blows up -- it succeeds, but takes adam@0: # about 5 minutes as the teststring grows exponentially. adam@0: # Worse, since 9x/ME are not pre-emptively multitasking, adam@0: # you end up with a "frozen" computer, even though with patience adam@0: # the test eventually succeeds (with a max line length of 256k). adam@0: # Instead, let's just punt: use the minimum linelength reported by adam@0: # all of the supported platforms: 8192 (on NT/2K/XP). adam@0: lt_cv_sys_max_cmd_len=8192; adam@0: ;; adam@0: adam@12: mint*) adam@12: # On MiNT this can take a long time and run out of memory. adam@12: lt_cv_sys_max_cmd_len=8192; adam@12: ;; adam@12: adam@0: amigaos*) adam@0: # On AmigaOS with pdksh, this test takes hours, literally. adam@0: # So we just punt and use a minimum line length of 8192. adam@0: lt_cv_sys_max_cmd_len=8192; adam@0: ;; adam@0: adam@0: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) adam@0: # This has been around since 386BSD, at least. Likely further. adam@0: if test -x /sbin/sysctl; then adam@0: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` adam@0: elif test -x /usr/sbin/sysctl; then adam@0: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` adam@0: else adam@0: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs adam@0: fi adam@0: # And add a safety zone adam@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` adam@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` adam@0: ;; adam@0: adam@0: interix*) adam@0: # We know the value 262144 and hardcode it with a safety zone (like BSD) adam@0: lt_cv_sys_max_cmd_len=196608 adam@0: ;; adam@0: adam@0: osf*) adam@0: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure adam@0: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not adam@0: # nice to cause kernel panics so lets avoid the loop below. adam@0: # First set a reasonable default. adam@0: lt_cv_sys_max_cmd_len=16384 adam@0: # adam@0: if test -x /sbin/sysconfig; then adam@0: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in adam@0: *1*) lt_cv_sys_max_cmd_len=-1 ;; adam@0: esac adam@0: fi adam@0: ;; adam@0: sco3.2v5*) adam@0: lt_cv_sys_max_cmd_len=102400 adam@0: ;; adam@0: sysv5* | sco5v6* | sysv4.2uw2*) adam@0: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` adam@0: if test -n "$kargmax"; then adam@0: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` adam@0: else adam@0: lt_cv_sys_max_cmd_len=32768 adam@0: fi adam@0: ;; adam@0: *) adam@0: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` adam@0: if test -n "$lt_cv_sys_max_cmd_len"; then adam@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` adam@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` adam@0: else adam@0: # Make teststring a little bigger before we do anything with it. adam@0: # a 1K string should be a reasonable start. adam@0: for i in 1 2 3 4 5 6 7 8 ; do adam@0: teststring=$teststring$teststring adam@0: done adam@0: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} adam@0: # If test is not a shell built-in, we'll probably end up computing a adam@0: # maximum length that is only half of the actual maximum length, but adam@0: # we can't tell. adam@12: while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ adam@12: = "X$teststring$teststring"; } >/dev/null 2>&1 && adam@0: test $i != 17 # 1/2 MB should be enough adam@0: do adam@0: i=`expr $i + 1` adam@0: teststring=$teststring$teststring adam@0: done adam@0: # Only check the string length outside the loop. adam@0: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` adam@0: teststring= adam@0: # Add a significant safety factor because C++ compilers can tack on adam@0: # massive amounts of additional arguments before passing them to the adam@0: # linker. It appears as though 1/2 is a usable value. adam@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` adam@0: fi adam@0: ;; adam@0: esac adam@0: adam@0: fi adam@0: adam@0: if test -n $lt_cv_sys_max_cmd_len ; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 adam@0: $as_echo "$lt_cv_sys_max_cmd_len" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 adam@0: $as_echo "none" >&6; } adam@0: fi adam@0: max_cmd_len=$lt_cv_sys_max_cmd_len adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: : ${CP="cp -f"} adam@0: : ${MV="mv -f"} adam@0: : ${RM="rm -f"} adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 adam@0: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } adam@0: # Try some XSI features adam@0: xsi_shell=no adam@0: ( _lt_dummy="a/b/c" adam@12: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ adam@12: = c,a/b,b/c, \ adam@0: && eval 'test $(( 1 + 1 )) -eq 2 \ adam@0: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ adam@0: && xsi_shell=yes adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 adam@0: $as_echo "$xsi_shell" >&6; } adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 adam@0: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } adam@0: lt_shell_append=no adam@0: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ adam@0: >/dev/null 2>&1 \ adam@0: && lt_shell_append=yes adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 adam@0: $as_echo "$lt_shell_append" >&6; } adam@0: adam@0: adam@0: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then adam@0: lt_unset=unset adam@0: else adam@0: lt_unset=false adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # test EBCDIC or ASCII adam@0: case `echo X|tr X '\101'` in adam@0: A) # ASCII based system adam@0: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr adam@0: lt_SP2NL='tr \040 \012' adam@0: lt_NL2SP='tr \015\012 \040\040' adam@0: ;; adam@0: *) # EBCDIC based system adam@0: lt_SP2NL='tr \100 \n' adam@0: lt_NL2SP='tr \r\n \100\100' adam@0: ;; adam@0: esac adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 adam@12: $as_echo_n "checking how to convert $build file names to $host format... " >&6; } adam@12: if ${lt_cv_to_host_file_cmd+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: case $host in adam@12: *-*-mingw* ) adam@12: case $build in adam@12: *-*-mingw* ) # actually msys adam@12: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 adam@12: ;; adam@12: *-*-cygwin* ) adam@12: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 adam@12: ;; adam@12: * ) # otherwise, assume *nix adam@12: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 adam@12: ;; adam@12: esac adam@12: ;; adam@12: *-*-cygwin* ) adam@12: case $build in adam@12: *-*-mingw* ) # actually msys adam@12: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin adam@12: ;; adam@12: *-*-cygwin* ) adam@12: lt_cv_to_host_file_cmd=func_convert_file_noop adam@12: ;; adam@12: * ) # otherwise, assume *nix adam@12: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin adam@12: ;; adam@12: esac adam@12: ;; adam@12: * ) # unhandled hosts (and "normal" native builds) adam@12: lt_cv_to_host_file_cmd=func_convert_file_noop adam@12: ;; adam@12: esac adam@12: adam@12: fi adam@12: adam@12: to_host_file_cmd=$lt_cv_to_host_file_cmd adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 adam@12: $as_echo "$lt_cv_to_host_file_cmd" >&6; } adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 adam@12: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } adam@12: if ${lt_cv_to_tool_file_cmd+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: #assume ordinary cross tools, or native build. adam@12: lt_cv_to_tool_file_cmd=func_convert_file_noop adam@12: case $host in adam@12: *-*-mingw* ) adam@12: case $build in adam@12: *-*-mingw* ) # actually msys adam@12: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 adam@12: ;; adam@12: esac adam@12: ;; adam@12: esac adam@12: adam@12: fi adam@12: adam@12: to_tool_file_cmd=$lt_cv_to_tool_file_cmd adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 adam@12: $as_echo "$lt_cv_to_tool_file_cmd" >&6; } adam@12: adam@12: adam@12: adam@12: adam@12: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 adam@0: $as_echo_n "checking for $LD option to reload object files... " >&6; } adam@12: if ${lt_cv_ld_reload_flag+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_ld_reload_flag='-r' adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 adam@0: $as_echo "$lt_cv_ld_reload_flag" >&6; } adam@0: reload_flag=$lt_cv_ld_reload_flag adam@0: case $reload_flag in adam@0: "" | " "*) ;; adam@0: *) reload_flag=" $reload_flag" ;; adam@0: esac adam@0: reload_cmds='$LD$reload_flag -o $output$reload_objs' adam@0: case $host_os in adam@12: cygwin* | mingw* | pw32* | cegcc*) adam@12: if test "$GCC" != yes; then adam@12: reload_cmds=false adam@12: fi adam@12: ;; adam@0: darwin*) adam@0: if test "$GCC" = yes; then adam@0: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' adam@0: else adam@0: reload_cmds='$LD$reload_flag -o $output$reload_objs' adam@0: fi adam@0: ;; adam@0: esac adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}objdump; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_OBJDUMP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$OBJDUMP"; then adam@0: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: OBJDUMP=$ac_cv_prog_OBJDUMP adam@0: if test -n "$OBJDUMP"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 adam@0: $as_echo "$OBJDUMP" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_OBJDUMP"; then adam@0: ac_ct_OBJDUMP=$OBJDUMP adam@0: # Extract the first word of "objdump", so it can be a program name with args. adam@0: set dummy objdump; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_OBJDUMP"; then adam@0: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_OBJDUMP="objdump" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP adam@0: if test -n "$ac_ct_OBJDUMP"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 adam@0: $as_echo "$ac_ct_OBJDUMP" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_OBJDUMP" = x; then adam@0: OBJDUMP="false" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: OBJDUMP=$ac_ct_OBJDUMP adam@0: fi adam@0: else adam@0: OBJDUMP="$ac_cv_prog_OBJDUMP" adam@0: fi adam@0: adam@0: test -z "$OBJDUMP" && OBJDUMP=objdump adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 adam@0: $as_echo_n "checking how to recognize dependent libraries... " >&6; } adam@12: if ${lt_cv_deplibs_check_method+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_file_magic_cmd='$MAGIC_CMD' adam@0: lt_cv_file_magic_test_file= adam@0: lt_cv_deplibs_check_method='unknown' adam@0: # Need to set the preceding variable on all platforms that support adam@0: # interlibrary dependencies. adam@0: # 'none' -- dependencies not supported. adam@0: # `unknown' -- same as none, but documents that we really don't know. adam@0: # 'pass_all' -- all dependencies passed with no checks. adam@0: # 'test_compile' -- check by making test program. adam@0: # 'file_magic [[regex]]' -- check by looking for files in library path adam@0: # which responds to the $file_magic_cmd with a given extended regex. adam@0: # If you have `file' or equivalent on your system and you're not sure adam@0: # whether `pass_all' will *always* work, you probably want this one. adam@0: adam@0: case $host_os in adam@0: aix[4-9]*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: beos*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: bsdi[45]*) adam@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' adam@0: lt_cv_file_magic_cmd='/usr/bin/file -L' adam@0: lt_cv_file_magic_test_file=/shlib/libc.so adam@0: ;; adam@0: adam@0: cygwin*) adam@0: # func_win32_libid is a shell function defined in ltmain.sh adam@0: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' adam@0: lt_cv_file_magic_cmd='func_win32_libid' adam@0: ;; adam@0: adam@0: mingw* | pw32*) adam@0: # Base MSYS/MinGW do not provide the 'file' command needed by adam@0: # func_win32_libid shell function, so use a weaker test based on 'objdump', adam@0: # unless we find 'file', for example because we are cross-compiling. adam@12: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. adam@12: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then adam@0: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' adam@0: lt_cv_file_magic_cmd='func_win32_libid' adam@0: else adam@12: # Keep this pattern in sync with the one in func_win32_libid. adam@12: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' adam@0: lt_cv_file_magic_cmd='$OBJDUMP -f' adam@0: fi adam@0: ;; adam@0: adam@12: cegcc*) adam@0: # use the weaker test based on 'objdump'. See mingw*. adam@0: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' adam@0: lt_cv_file_magic_cmd='$OBJDUMP -f' adam@0: ;; adam@0: adam@0: darwin* | rhapsody*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: freebsd* | dragonfly*) adam@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then adam@0: case $host_cpu in adam@0: i*86 ) adam@0: # Not sure whether the presence of OpenBSD here was a mistake. adam@0: # Let's accept both of them until this is cleared up. adam@0: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' adam@0: lt_cv_file_magic_cmd=/usr/bin/file adam@0: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` adam@0: ;; adam@0: esac adam@0: else adam@0: lt_cv_deplibs_check_method=pass_all adam@0: fi adam@0: ;; adam@0: adam@0: gnu*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@12: haiku*) adam@12: lt_cv_deplibs_check_method=pass_all adam@12: ;; adam@12: adam@0: hpux10.20* | hpux11*) adam@0: lt_cv_file_magic_cmd=/usr/bin/file adam@0: case $host_cpu in adam@0: ia64*) adam@0: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' adam@0: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so adam@0: ;; adam@0: hppa*64*) adam@12: 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]' adam@0: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl adam@0: ;; adam@0: *) adam@12: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' adam@0: lt_cv_file_magic_test_file=/usr/lib/libc.sl adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: interix[3-9]*) adam@0: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here adam@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' adam@0: ;; adam@0: adam@0: irix5* | irix6* | nonstopux*) adam@0: case $LD in adam@0: *-32|*"-32 ") libmagic=32-bit;; adam@0: *-n32|*"-n32 ") libmagic=N32;; adam@0: *-64|*"-64 ") libmagic=64-bit;; adam@0: *) libmagic=never-match;; adam@0: esac adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: # This must be Linux ELF. adam@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: netbsd* | netbsdelf*-gnu) adam@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then adam@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' adam@0: else adam@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' adam@0: fi adam@0: ;; adam@0: adam@0: newos6*) adam@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' adam@0: lt_cv_file_magic_cmd=/usr/bin/file adam@0: lt_cv_file_magic_test_file=/usr/lib/libnls.so adam@0: ;; adam@0: adam@0: *nto* | *qnx*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: openbsd*) adam@0: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then adam@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' adam@0: else adam@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' adam@0: fi adam@0: ;; adam@0: adam@0: osf3* | osf4* | osf5*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: rdos*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: solaris*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: adam@0: sysv4 | sysv4.3*) adam@0: case $host_vendor in adam@0: motorola) adam@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' adam@0: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` adam@0: ;; adam@0: ncr) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: sequent) adam@0: lt_cv_file_magic_cmd='/bin/file' adam@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' adam@0: ;; adam@0: sni) adam@0: lt_cv_file_magic_cmd='/bin/file' adam@0: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" adam@0: lt_cv_file_magic_test_file=/lib/libc.so adam@0: ;; adam@0: siemens) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: pc) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: tpf*) adam@0: lt_cv_deplibs_check_method=pass_all adam@0: ;; adam@0: esac adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 adam@0: $as_echo "$lt_cv_deplibs_check_method" >&6; } adam@12: adam@12: file_magic_glob= adam@12: want_nocaseglob=no adam@12: if test "$build" = "$host"; then adam@12: case $host_os in adam@12: mingw* | pw32*) adam@12: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then adam@12: want_nocaseglob=yes adam@12: else adam@12: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` adam@12: fi adam@12: ;; adam@12: esac adam@12: fi adam@12: adam@0: file_magic_cmd=$lt_cv_file_magic_cmd adam@0: deplibs_check_method=$lt_cv_deplibs_check_method adam@0: test -z "$deplibs_check_method" && deplibs_check_method=unknown adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@0: if test -n "$ac_tool_prefix"; then adam@12: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. adam@12: set dummy ${ac_tool_prefix}dlltool; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_DLLTOOL+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: if test -n "$DLLTOOL"; then adam@12: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@12: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" adam@12: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@12: break 2 adam@12: fi adam@12: done adam@12: done adam@12: IFS=$as_save_IFS adam@12: adam@12: fi adam@12: fi adam@12: DLLTOOL=$ac_cv_prog_DLLTOOL adam@12: if test -n "$DLLTOOL"; then adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 adam@12: $as_echo "$DLLTOOL" >&6; } adam@12: else adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@12: $as_echo "no" >&6; } adam@12: fi adam@12: adam@12: adam@12: fi adam@12: if test -z "$ac_cv_prog_DLLTOOL"; then adam@12: ac_ct_DLLTOOL=$DLLTOOL adam@12: # Extract the first word of "dlltool", so it can be a program name with args. adam@12: set dummy dlltool; ac_word=$2 adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@12: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: if test -n "$ac_ct_DLLTOOL"; then adam@12: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. adam@12: else adam@12: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@12: for as_dir in $PATH adam@12: do adam@12: IFS=$as_save_IFS adam@12: test -z "$as_dir" && as_dir=. adam@12: for ac_exec_ext in '' $ac_executable_extensions; do adam@12: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@12: ac_cv_prog_ac_ct_DLLTOOL="dlltool" adam@12: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@12: break 2 adam@12: fi adam@12: done adam@12: done adam@12: IFS=$as_save_IFS adam@12: adam@12: fi adam@12: fi adam@12: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL adam@12: if test -n "$ac_ct_DLLTOOL"; then adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 adam@12: $as_echo "$ac_ct_DLLTOOL" >&6; } adam@12: else adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@12: $as_echo "no" >&6; } adam@12: fi adam@12: adam@12: if test "x$ac_ct_DLLTOOL" = x; then adam@12: DLLTOOL="false" adam@12: else adam@12: case $cross_compiling:$ac_tool_warned in adam@12: yes:) adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@12: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@12: ac_tool_warned=yes ;; adam@12: esac adam@12: DLLTOOL=$ac_ct_DLLTOOL adam@12: fi adam@12: else adam@12: DLLTOOL="$ac_cv_prog_DLLTOOL" adam@12: fi adam@12: adam@12: test -z "$DLLTOOL" && DLLTOOL=dlltool adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 adam@12: $as_echo_n "checking how to associate runtime and link libraries... " >&6; } adam@12: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: lt_cv_sharedlib_from_linklib_cmd='unknown' adam@12: adam@12: case $host_os in adam@12: cygwin* | mingw* | pw32* | cegcc*) adam@12: # two different shell functions defined in ltmain.sh adam@12: # decide which to use based on capabilities of $DLLTOOL adam@12: case `$DLLTOOL --help 2>&1` in adam@12: *--identify-strict*) adam@12: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib adam@12: ;; adam@12: *) adam@12: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback adam@12: ;; adam@12: esac adam@12: ;; adam@12: *) adam@12: # fallback: assume linklib IS sharedlib adam@12: lt_cv_sharedlib_from_linklib_cmd="$ECHO" adam@12: ;; adam@12: esac adam@12: adam@12: fi adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 adam@12: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } adam@12: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd adam@12: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: if test -n "$ac_tool_prefix"; then adam@12: for ac_prog in ar adam@12: do adam@12: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. adam@12: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@12: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_AR+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: if test -n "$AR"; then adam@12: ac_cv_prog_AR="$AR" # Let the user override the test. adam@12: else adam@12: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@12: for as_dir in $PATH adam@12: do adam@12: IFS=$as_save_IFS adam@12: test -z "$as_dir" && as_dir=. adam@12: for ac_exec_ext in '' $ac_executable_extensions; do adam@12: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@12: ac_cv_prog_AR="$ac_tool_prefix$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: AR=$ac_cv_prog_AR adam@0: if test -n "$AR"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 adam@0: $as_echo "$AR" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@12: test -n "$AR" && break adam@12: done adam@12: fi adam@12: if test -z "$AR"; then adam@0: ac_ct_AR=$AR adam@12: for ac_prog in ar adam@12: do adam@12: # Extract the first word of "$ac_prog", so it can be a program name with args. adam@12: set dummy $ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_AR+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_AR"; then adam@0: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@12: ac_cv_prog_ac_ct_AR="$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_AR=$ac_cv_prog_ac_ct_AR adam@0: if test -n "$ac_ct_AR"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 adam@0: $as_echo "$ac_ct_AR" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@12: adam@12: test -n "$ac_ct_AR" && break adam@12: done adam@12: adam@0: if test "x$ac_ct_AR" = x; then adam@0: AR="false" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: AR=$ac_ct_AR adam@0: fi adam@12: fi adam@12: adam@12: : ${AR=ar} adam@12: : ${AR_FLAGS=cru} adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 adam@12: $as_echo_n "checking for archiver @FILE support... " >&6; } adam@12: if ${lt_cv_ar_at_file+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: lt_cv_ar_at_file=no adam@12: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@12: /* end confdefs.h. */ adam@12: adam@12: int adam@12: main () adam@12: { adam@12: adam@12: ; adam@12: return 0; adam@12: } adam@12: _ACEOF adam@12: if ac_fn_c_try_compile "$LINENO"; then : adam@12: echo conftest.$ac_objext > conftest.lst adam@12: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' adam@12: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 adam@12: (eval $lt_ar_try) 2>&5 adam@12: ac_status=$? adam@12: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@12: test $ac_status = 0; } adam@12: if test "$ac_status" -eq 0; then adam@12: # Ensure the archiver fails upon bogus file names. adam@12: rm -f conftest.$ac_objext libconftest.a adam@12: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 adam@12: (eval $lt_ar_try) 2>&5 adam@12: ac_status=$? adam@12: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@12: test $ac_status = 0; } adam@12: if test "$ac_status" -ne 0; then adam@12: lt_cv_ar_at_file=@ adam@12: fi adam@12: fi adam@12: rm -f conftest.* libconftest.a adam@12: adam@12: fi adam@12: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext adam@12: adam@12: fi adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 adam@12: $as_echo "$lt_cv_ar_at_file" >&6; } adam@12: adam@12: if test "x$lt_cv_ar_at_file" = xno; then adam@12: archiver_list_spec= adam@12: else adam@12: archiver_list_spec=$lt_cv_ar_at_file adam@12: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}strip; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_STRIP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$STRIP"; then adam@0: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_STRIP="${ac_tool_prefix}strip" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: STRIP=$ac_cv_prog_STRIP adam@0: if test -n "$STRIP"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 adam@0: $as_echo "$STRIP" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_STRIP"; then adam@0: ac_ct_STRIP=$STRIP adam@0: # Extract the first word of "strip", so it can be a program name with args. adam@0: set dummy strip; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_STRIP"; then adam@0: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_STRIP="strip" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP adam@0: if test -n "$ac_ct_STRIP"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 adam@0: $as_echo "$ac_ct_STRIP" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_STRIP" = x; then adam@0: STRIP=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: STRIP=$ac_ct_STRIP adam@0: fi adam@0: else adam@0: STRIP="$ac_cv_prog_STRIP" adam@0: fi adam@0: adam@0: test -z "$STRIP" && STRIP=: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_RANLIB+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$RANLIB"; then adam@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: RANLIB=$ac_cv_prog_RANLIB adam@0: if test -n "$RANLIB"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 adam@0: $as_echo "$RANLIB" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_RANLIB"; then adam@0: ac_ct_RANLIB=$RANLIB adam@0: # Extract the first word of "ranlib", so it can be a program name with args. adam@0: set dummy ranlib; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_RANLIB"; then adam@0: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_RANLIB="ranlib" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB adam@0: if test -n "$ac_ct_RANLIB"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 adam@0: $as_echo "$ac_ct_RANLIB" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_RANLIB" = x; then adam@0: RANLIB=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: RANLIB=$ac_ct_RANLIB adam@0: fi adam@0: else adam@0: RANLIB="$ac_cv_prog_RANLIB" adam@0: fi adam@0: adam@0: test -z "$RANLIB" && RANLIB=: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # Determine commands to create old-style static archives. adam@0: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' adam@0: old_postinstall_cmds='chmod 644 $oldlib' adam@0: old_postuninstall_cmds= adam@0: adam@0: if test -n "$RANLIB"; then adam@0: case $host_os in adam@0: openbsd*) adam@0: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" adam@0: ;; adam@0: *) adam@0: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" adam@0: ;; adam@0: esac adam@0: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" adam@0: fi adam@0: adam@12: case $host_os in adam@12: darwin*) adam@12: lock_old_archive_extraction=yes ;; adam@12: *) adam@12: lock_old_archive_extraction=no ;; adam@12: esac adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # If no C compiler was specified, use CC. adam@0: LTCC=${LTCC-"$CC"} adam@0: adam@0: # If no C compiler flags were specified, use CFLAGS. adam@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} adam@0: adam@0: # Allow CC to be a program name with arguments. adam@0: compiler=$CC adam@0: adam@0: adam@0: # Check for command to grab the raw symbol name followed by C symbol from nm. adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 adam@0: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } adam@12: if ${lt_cv_sys_global_symbol_pipe+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: adam@0: # These are sane defaults that work on at least a few old systems. adam@0: # [They come from Ultrix. What could be older than Ultrix?!! ;)] adam@0: adam@0: # Character class describing NM global symbol codes. adam@0: symcode='[BCDEGRST]' adam@0: adam@0: # Regexp to match symbols that can be accessed directly from C. adam@0: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' adam@0: adam@0: # Define system-specific variables. adam@0: case $host_os in adam@0: aix*) adam@0: symcode='[BCDT]' adam@0: ;; adam@0: cygwin* | mingw* | pw32* | cegcc*) adam@0: symcode='[ABCDGISTW]' adam@0: ;; adam@0: hpux*) adam@0: if test "$host_cpu" = ia64; then adam@0: symcode='[ABCDEGRST]' adam@0: fi adam@0: ;; adam@0: irix* | nonstopux*) adam@0: symcode='[BCDEGRST]' adam@0: ;; adam@0: osf*) adam@0: symcode='[BCDEGQRST]' adam@0: ;; adam@0: solaris*) adam@0: symcode='[BDRT]' adam@0: ;; adam@0: sco3.2v5*) adam@0: symcode='[DT]' adam@0: ;; adam@0: sysv4.2uw2*) adam@0: symcode='[DT]' adam@0: ;; adam@0: sysv5* | sco5v6* | unixware* | OpenUNIX*) adam@0: symcode='[ABDT]' adam@0: ;; adam@0: sysv4) adam@0: symcode='[DFNSTU]' adam@0: ;; adam@0: esac adam@0: adam@0: # If we're using GNU nm, then use its standard symbol codes. adam@0: case `$NM -V 2>&1` in adam@0: *GNU* | *'with BFD'*) adam@0: symcode='[ABCDGIRSTW]' ;; adam@0: esac adam@0: adam@0: # Transform an extracted symbol line into a proper C declaration. adam@0: # Some systems (esp. on ia64) link data and code symbols differently, adam@0: # so use this general approach. adam@0: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" adam@0: adam@0: # Transform an extracted symbol line into symbol name and symbol address adam@12: 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@12: 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'" adam@0: adam@0: # Handle CRLF in mingw tool chain adam@0: opt_cr= adam@0: case $build_os in adam@0: mingw*) adam@0: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp adam@0: ;; adam@0: esac adam@0: adam@0: # Try without a prefix underscore, then with it. adam@0: for ac_symprfx in "" "_"; do adam@0: adam@0: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. adam@0: symxfrm="\\1 $ac_symprfx\\2 \\2" adam@0: adam@0: # Write the raw and C identifiers. adam@0: if test "$lt_cv_nm_interface" = "MS dumpbin"; then adam@0: # Fake it for dumpbin and say T for any non-static function adam@0: # and D for any global variable. adam@0: # Also find C++ and __fastcall symbols from MSVC++, adam@0: # which start with @ or ?. adam@0: lt_cv_sys_global_symbol_pipe="$AWK '"\ adam@0: " {last_section=section; section=\$ 3};"\ adam@0: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ adam@0: " \$ 0!~/External *\|/{next};"\ adam@0: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ adam@0: " {if(hide[section]) next};"\ adam@0: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ adam@0: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ adam@0: " s[1]~/^[@?]/{print s[1], s[1]; next};"\ adam@0: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ adam@0: " ' prfx=^$ac_symprfx" adam@0: else adam@0: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" adam@0: fi adam@12: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" adam@0: adam@0: # Check to see that the pipe works correctly. adam@0: pipe_works=no adam@0: adam@0: rm -f conftest* adam@0: cat > conftest.$ac_ext <<_LT_EOF adam@0: #ifdef __cplusplus adam@0: extern "C" { adam@0: #endif adam@0: char nm_test_var; adam@0: void nm_test_func(void); adam@0: void nm_test_func(void){} adam@0: #ifdef __cplusplus adam@0: } adam@0: #endif adam@0: int main(){nm_test_var='a';nm_test_func();return(0);} adam@0: _LT_EOF adam@0: adam@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adam@0: (eval $ac_compile) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; then adam@0: # Now try to grab the symbols. adam@0: nlist=conftest.nm adam@12: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 adam@12: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } && test -s "$nlist"; then adam@0: # Try sorting and uniquifying the output. adam@0: if sort "$nlist" | uniq > "$nlist"T; then adam@0: mv -f "$nlist"T "$nlist" adam@0: else adam@0: rm -f "$nlist"T adam@0: fi adam@0: adam@0: # Make sure that we snagged all the symbols we need. adam@0: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then adam@0: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then adam@0: cat <<_LT_EOF > conftest.$ac_ext adam@12: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ adam@12: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) adam@12: /* DATA imports from DLLs on WIN32 con't be const, because runtime adam@12: relocations are performed -- see ld's documentation on pseudo-relocs. */ adam@12: # define LT_DLSYM_CONST adam@12: #elif defined(__osf__) adam@12: /* This system does not cope well with relocations in const data. */ adam@12: # define LT_DLSYM_CONST adam@12: #else adam@12: # define LT_DLSYM_CONST const adam@12: #endif adam@12: adam@0: #ifdef __cplusplus adam@0: extern "C" { adam@0: #endif adam@0: adam@0: _LT_EOF adam@0: # Now generate the symbol file. adam@0: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' adam@0: adam@0: cat <<_LT_EOF >> conftest.$ac_ext adam@0: adam@0: /* The mapping between symbol names and symbols. */ adam@12: LT_DLSYM_CONST struct { adam@0: const char *name; adam@0: void *address; adam@0: } adam@0: lt__PROGRAM__LTX_preloaded_symbols[] = adam@0: { adam@0: { "@PROGRAM@", (void *) 0 }, adam@0: _LT_EOF adam@0: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext adam@0: cat <<\_LT_EOF >> conftest.$ac_ext adam@0: {0, (void *) 0} adam@0: }; adam@0: adam@0: /* This works around a problem in FreeBSD linker */ adam@0: #ifdef FREEBSD_WORKAROUND adam@0: static const void *lt_preloaded_setup() { adam@0: return lt__PROGRAM__LTX_preloaded_symbols; adam@0: } adam@0: #endif adam@0: adam@0: #ifdef __cplusplus adam@0: } adam@0: #endif adam@0: _LT_EOF adam@0: # Now try linking the two files. adam@0: mv conftest.$ac_objext conftstm.$ac_objext adam@12: lt_globsym_save_LIBS=$LIBS adam@12: lt_globsym_save_CFLAGS=$CFLAGS adam@0: LIBS="conftstm.$ac_objext" adam@0: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" adam@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 adam@0: (eval $ac_link) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } && test -s conftest${ac_exeext}; then adam@0: pipe_works=yes adam@0: fi adam@12: LIBS=$lt_globsym_save_LIBS adam@12: CFLAGS=$lt_globsym_save_CFLAGS adam@0: else adam@0: echo "cannot find nm_test_func in $nlist" >&5 adam@0: fi adam@0: else adam@0: echo "cannot find nm_test_var in $nlist" >&5 adam@0: fi adam@0: else adam@0: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 adam@0: fi adam@0: else adam@0: echo "$progname: failed program was:" >&5 adam@0: cat conftest.$ac_ext >&5 adam@0: fi adam@0: rm -rf conftest* conftst* adam@0: adam@0: # Do not use the global_symbol_pipe unless it works. adam@0: if test "$pipe_works" = yes; then adam@0: break adam@0: else adam@0: lt_cv_sys_global_symbol_pipe= adam@0: fi adam@0: done adam@0: adam@0: fi adam@0: adam@0: if test -z "$lt_cv_sys_global_symbol_pipe"; then adam@0: lt_cv_sys_global_symbol_to_cdecl= adam@0: fi adam@0: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 adam@0: $as_echo "failed" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 adam@0: $as_echo "ok" >&6; } adam@0: fi adam@0: adam@12: # Response file support. adam@12: if test "$lt_cv_nm_interface" = "MS dumpbin"; then adam@12: nm_file_list_spec='@' adam@12: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then adam@12: nm_file_list_spec='@' adam@12: fi adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 adam@12: $as_echo_n "checking for sysroot... " >&6; } adam@12: adam@12: # Check whether --with-sysroot was given. adam@12: if test "${with_sysroot+set}" = set; then : adam@12: withval=$with_sysroot; adam@12: else adam@12: with_sysroot=no adam@12: fi adam@12: adam@12: adam@12: lt_sysroot= adam@12: case ${with_sysroot} in #( adam@12: yes) adam@12: if test "$GCC" = yes; then adam@12: lt_sysroot=`$CC --print-sysroot 2>/dev/null` adam@12: fi adam@12: ;; #( adam@12: /*) adam@12: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` adam@12: ;; #( adam@12: no|'') adam@12: ;; #( adam@12: *) adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 adam@12: $as_echo "${with_sysroot}" >&6; } adam@12: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 adam@12: ;; adam@12: esac adam@12: adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 adam@12: $as_echo "${lt_sysroot:-no}" >&6; } adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # Check whether --enable-libtool-lock was given. adam@0: if test "${enable_libtool_lock+set}" = set; then : adam@0: enableval=$enable_libtool_lock; adam@0: fi adam@0: adam@0: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes adam@0: adam@0: # Some flags need to be propagated to the compiler or linker for good adam@0: # libtool support. adam@0: case $host in adam@0: ia64-*-hpux*) adam@0: # Find out which ABI we are using. adam@0: echo 'int i;' > conftest.$ac_ext adam@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adam@0: (eval $ac_compile) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; then adam@0: case `/usr/bin/file conftest.$ac_objext` in adam@0: *ELF-32*) adam@0: HPUX_IA64_MODE="32" adam@0: ;; adam@0: *ELF-64*) adam@0: HPUX_IA64_MODE="64" adam@0: ;; adam@0: esac adam@0: fi adam@0: rm -rf conftest* adam@0: ;; adam@0: *-*-irix6*) adam@0: # Find out which ABI we are using. adam@12: echo '#line '$LINENO' "configure"' > conftest.$ac_ext adam@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adam@0: (eval $ac_compile) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; then adam@0: if test "$lt_cv_prog_gnu_ld" = yes; then adam@0: case `/usr/bin/file conftest.$ac_objext` in adam@0: *32-bit*) adam@0: LD="${LD-ld} -melf32bsmip" adam@0: ;; adam@0: *N32*) adam@0: LD="${LD-ld} -melf32bmipn32" adam@0: ;; adam@0: *64-bit*) adam@0: LD="${LD-ld} -melf64bmip" adam@0: ;; adam@0: esac adam@0: else adam@0: case `/usr/bin/file conftest.$ac_objext` in adam@0: *32-bit*) adam@0: LD="${LD-ld} -32" adam@0: ;; adam@0: *N32*) adam@0: LD="${LD-ld} -n32" adam@0: ;; adam@0: *64-bit*) adam@0: LD="${LD-ld} -64" adam@0: ;; adam@0: esac adam@0: fi adam@0: fi adam@0: rm -rf conftest* adam@0: ;; adam@0: adam@0: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ adam@0: s390*-*linux*|s390*-*tpf*|sparc*-*linux*) adam@0: # Find out which ABI we are using. adam@0: echo 'int i;' > conftest.$ac_ext adam@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adam@0: (eval $ac_compile) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; then adam@0: case `/usr/bin/file conftest.o` in adam@0: *32-bit*) adam@0: case $host in adam@0: x86_64-*kfreebsd*-gnu) adam@0: LD="${LD-ld} -m elf_i386_fbsd" adam@0: ;; adam@0: x86_64-*linux*) adam@0: LD="${LD-ld} -m elf_i386" adam@0: ;; adam@0: ppc64-*linux*|powerpc64-*linux*) adam@0: LD="${LD-ld} -m elf32ppclinux" adam@0: ;; adam@0: s390x-*linux*) adam@0: LD="${LD-ld} -m elf_s390" adam@0: ;; adam@0: sparc64-*linux*) adam@0: LD="${LD-ld} -m elf32_sparc" adam@0: ;; adam@0: esac adam@0: ;; adam@0: *64-bit*) adam@0: case $host in adam@0: x86_64-*kfreebsd*-gnu) adam@0: LD="${LD-ld} -m elf_x86_64_fbsd" adam@0: ;; adam@0: x86_64-*linux*) adam@0: LD="${LD-ld} -m elf_x86_64" adam@0: ;; adam@0: ppc*-*linux*|powerpc*-*linux*) adam@0: LD="${LD-ld} -m elf64ppc" adam@0: ;; adam@0: s390*-*linux*|s390*-*tpf*) adam@0: LD="${LD-ld} -m elf64_s390" adam@0: ;; adam@0: sparc*-*linux*) adam@0: LD="${LD-ld} -m elf64_sparc" adam@0: ;; adam@0: esac adam@0: ;; adam@0: esac adam@0: fi adam@0: rm -rf conftest* adam@0: ;; adam@0: adam@0: *-*-sco3.2v5*) adam@0: # On SCO OpenServer 5, we need -belf to get full-featured binaries. adam@0: SAVE_CFLAGS="$CFLAGS" adam@0: CFLAGS="$CFLAGS -belf" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 adam@0: $as_echo_n "checking whether the C compiler needs -belf... " >&6; } adam@12: if ${lt_cv_cc_needs_belf+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: lt_cv_cc_needs_belf=yes adam@0: else adam@0: lt_cv_cc_needs_belf=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 adam@0: $as_echo "$lt_cv_cc_needs_belf" >&6; } adam@0: if test x"$lt_cv_cc_needs_belf" != x"yes"; then adam@0: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf adam@0: CFLAGS="$SAVE_CFLAGS" adam@0: fi adam@0: ;; adam@0: sparc*-*solaris*) adam@0: # Find out which ABI we are using. adam@0: echo 'int i;' > conftest.$ac_ext adam@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adam@0: (eval $ac_compile) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; }; then adam@0: case `/usr/bin/file conftest.o` in adam@0: *64-bit*) adam@0: case $lt_cv_prog_gnu_ld in adam@0: yes*) LD="${LD-ld} -m elf64_sparc" ;; adam@0: *) adam@0: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then adam@0: LD="${LD-ld} -64" adam@0: fi adam@0: ;; adam@0: esac adam@0: ;; adam@0: esac adam@0: fi adam@0: rm -rf conftest* adam@0: ;; adam@0: esac adam@0: adam@0: need_locks="$enable_libtool_lock" adam@0: adam@12: if test -n "$ac_tool_prefix"; then adam@12: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. adam@12: set dummy ${ac_tool_prefix}mt; ac_word=$2 adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@12: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: if test -n "$MANIFEST_TOOL"; then adam@12: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. adam@12: else adam@12: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@12: for as_dir in $PATH adam@12: do adam@12: IFS=$as_save_IFS adam@12: test -z "$as_dir" && as_dir=. adam@12: for ac_exec_ext in '' $ac_executable_extensions; do adam@12: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@12: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" adam@12: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@12: break 2 adam@12: fi adam@12: done adam@12: done adam@12: IFS=$as_save_IFS adam@12: adam@12: fi adam@12: fi adam@12: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL adam@12: if test -n "$MANIFEST_TOOL"; then adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 adam@12: $as_echo "$MANIFEST_TOOL" >&6; } adam@12: else adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@12: $as_echo "no" >&6; } adam@12: fi adam@12: adam@12: adam@12: fi adam@12: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then adam@12: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL adam@12: # Extract the first word of "mt", so it can be a program name with args. adam@12: set dummy mt; ac_word=$2 adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@12: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: if test -n "$ac_ct_MANIFEST_TOOL"; then adam@12: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. adam@12: else adam@12: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@12: for as_dir in $PATH adam@12: do adam@12: IFS=$as_save_IFS adam@12: test -z "$as_dir" && as_dir=. adam@12: for ac_exec_ext in '' $ac_executable_extensions; do adam@12: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@12: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" adam@12: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@12: break 2 adam@12: fi adam@12: done adam@12: done adam@12: IFS=$as_save_IFS adam@12: adam@12: fi adam@12: fi adam@12: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL adam@12: if test -n "$ac_ct_MANIFEST_TOOL"; then adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 adam@12: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } adam@12: else adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@12: $as_echo "no" >&6; } adam@12: fi adam@12: adam@12: if test "x$ac_ct_MANIFEST_TOOL" = x; then adam@12: MANIFEST_TOOL=":" adam@12: else adam@12: case $cross_compiling:$ac_tool_warned in adam@12: yes:) adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@12: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@12: ac_tool_warned=yes ;; adam@12: esac adam@12: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL adam@12: fi adam@12: else adam@12: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" adam@12: fi adam@12: adam@12: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 adam@12: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } adam@12: if ${lt_cv_path_mainfest_tool+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: lt_cv_path_mainfest_tool=no adam@12: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 adam@12: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out adam@12: cat conftest.err >&5 adam@12: if $GREP 'Manifest Tool' conftest.out > /dev/null; then adam@12: lt_cv_path_mainfest_tool=yes adam@12: fi adam@12: rm -f conftest* adam@12: fi adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 adam@12: $as_echo "$lt_cv_path_mainfest_tool" >&6; } adam@12: if test "x$lt_cv_path_mainfest_tool" != xyes; then adam@12: MANIFEST_TOOL=: adam@12: fi adam@12: adam@12: adam@12: adam@12: adam@12: adam@0: adam@0: case $host_os in adam@0: rhapsody* | darwin*) adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_DSYMUTIL+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$DSYMUTIL"; then adam@0: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: DSYMUTIL=$ac_cv_prog_DSYMUTIL adam@0: if test -n "$DSYMUTIL"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 adam@0: $as_echo "$DSYMUTIL" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_DSYMUTIL"; then adam@0: ac_ct_DSYMUTIL=$DSYMUTIL adam@0: # Extract the first word of "dsymutil", so it can be a program name with args. adam@0: set dummy dsymutil; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_DSYMUTIL"; then adam@0: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL adam@0: if test -n "$ac_ct_DSYMUTIL"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 adam@0: $as_echo "$ac_ct_DSYMUTIL" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_DSYMUTIL" = x; then adam@0: DSYMUTIL=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: DSYMUTIL=$ac_ct_DSYMUTIL adam@0: fi adam@0: else adam@0: DSYMUTIL="$ac_cv_prog_DSYMUTIL" adam@0: fi adam@0: adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}nmedit; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_NMEDIT+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$NMEDIT"; then adam@0: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: NMEDIT=$ac_cv_prog_NMEDIT adam@0: if test -n "$NMEDIT"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 adam@0: $as_echo "$NMEDIT" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_NMEDIT"; then adam@0: ac_ct_NMEDIT=$NMEDIT adam@0: # Extract the first word of "nmedit", so it can be a program name with args. adam@0: set dummy nmedit; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_NMEDIT"; then adam@0: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_NMEDIT="nmedit" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT adam@0: if test -n "$ac_ct_NMEDIT"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 adam@0: $as_echo "$ac_ct_NMEDIT" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_NMEDIT" = x; then adam@0: NMEDIT=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: NMEDIT=$ac_ct_NMEDIT adam@0: fi adam@0: else adam@0: NMEDIT="$ac_cv_prog_NMEDIT" adam@0: fi adam@0: adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}lipo; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_LIPO+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$LIPO"; then adam@0: ac_cv_prog_LIPO="$LIPO" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_LIPO="${ac_tool_prefix}lipo" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: LIPO=$ac_cv_prog_LIPO adam@0: if test -n "$LIPO"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 adam@0: $as_echo "$LIPO" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_LIPO"; then adam@0: ac_ct_LIPO=$LIPO adam@0: # Extract the first word of "lipo", so it can be a program name with args. adam@0: set dummy lipo; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_LIPO+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_LIPO"; then adam@0: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_LIPO="lipo" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO adam@0: if test -n "$ac_ct_LIPO"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 adam@0: $as_echo "$ac_ct_LIPO" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_LIPO" = x; then adam@0: LIPO=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: LIPO=$ac_ct_LIPO adam@0: fi adam@0: else adam@0: LIPO="$ac_cv_prog_LIPO" adam@0: fi adam@0: adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}otool; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_OTOOL+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$OTOOL"; then adam@0: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_OTOOL="${ac_tool_prefix}otool" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: OTOOL=$ac_cv_prog_OTOOL adam@0: if test -n "$OTOOL"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 adam@0: $as_echo "$OTOOL" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_OTOOL"; then adam@0: ac_ct_OTOOL=$OTOOL adam@0: # Extract the first word of "otool", so it can be a program name with args. adam@0: set dummy otool; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_OTOOL"; then adam@0: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_OTOOL="otool" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL adam@0: if test -n "$ac_ct_OTOOL"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 adam@0: $as_echo "$ac_ct_OTOOL" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_OTOOL" = x; then adam@0: OTOOL=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: OTOOL=$ac_ct_OTOOL adam@0: fi adam@0: else adam@0: OTOOL="$ac_cv_prog_OTOOL" adam@0: fi adam@0: adam@0: if test -n "$ac_tool_prefix"; then adam@0: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. adam@0: set dummy ${ac_tool_prefix}otool64; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_OTOOL64+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$OTOOL64"; then adam@0: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: OTOOL64=$ac_cv_prog_OTOOL64 adam@0: if test -n "$OTOOL64"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 adam@0: $as_echo "$OTOOL64" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: if test -z "$ac_cv_prog_OTOOL64"; then adam@0: ac_ct_OTOOL64=$OTOOL64 adam@0: # Extract the first word of "otool64", so it can be a program name with args. adam@0: set dummy otool64; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$ac_ct_OTOOL64"; then adam@0: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_ac_ct_OTOOL64="otool64" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 adam@0: if test -n "$ac_ct_OTOOL64"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 adam@0: $as_echo "$ac_ct_OTOOL64" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: if test "x$ac_ct_OTOOL64" = x; then adam@0: OTOOL64=":" adam@0: else adam@0: case $cross_compiling:$ac_tool_warned in adam@0: yes:) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 adam@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} adam@0: ac_tool_warned=yes ;; adam@0: esac adam@0: OTOOL64=$ac_ct_OTOOL64 adam@0: fi adam@0: else adam@0: OTOOL64="$ac_cv_prog_OTOOL64" adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 adam@0: $as_echo_n "checking for -single_module linker flag... " >&6; } adam@12: if ${lt_cv_apple_cc_single_mod+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_apple_cc_single_mod=no adam@0: if test -z "${LT_MULTI_MODULE}"; then adam@0: # By default we will add the -single_module flag. You can override adam@0: # by either setting the environment variable LT_MULTI_MODULE adam@0: # non-empty at configure time, or by adding -multi_module to the adam@0: # link flags. adam@0: rm -rf libconftest.dylib* adam@0: echo "int foo(void){return 1;}" > conftest.c adam@0: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ adam@0: -dynamiclib -Wl,-single_module conftest.c" >&5 adam@0: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ adam@0: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err adam@0: _lt_result=$? adam@0: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then adam@0: lt_cv_apple_cc_single_mod=yes adam@0: else adam@0: cat conftest.err >&5 adam@0: fi adam@0: rm -rf libconftest.dylib* adam@0: rm -f conftest.* adam@0: fi adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 adam@0: $as_echo "$lt_cv_apple_cc_single_mod" >&6; } adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 adam@0: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } adam@12: if ${lt_cv_ld_exported_symbols_list+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_ld_exported_symbols_list=no adam@0: save_LDFLAGS=$LDFLAGS adam@0: echo "_main" > conftest.sym adam@0: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: lt_cv_ld_exported_symbols_list=yes adam@0: else adam@0: lt_cv_ld_exported_symbols_list=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: LDFLAGS="$save_LDFLAGS" adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 adam@0: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 adam@12: $as_echo_n "checking for -force_load linker flag... " >&6; } adam@12: if ${lt_cv_ld_force_load+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: lt_cv_ld_force_load=no adam@12: cat > conftest.c << _LT_EOF adam@12: int forced_loaded() { return 2;} adam@12: _LT_EOF adam@12: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 adam@12: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 adam@12: echo "$AR cru libconftest.a conftest.o" >&5 adam@12: $AR cru libconftest.a conftest.o 2>&5 adam@12: echo "$RANLIB libconftest.a" >&5 adam@12: $RANLIB libconftest.a 2>&5 adam@12: cat > conftest.c << _LT_EOF adam@12: int main() { return 0;} adam@12: _LT_EOF adam@12: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 adam@12: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err adam@12: _lt_result=$? adam@12: if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then adam@12: lt_cv_ld_force_load=yes adam@12: else adam@12: cat conftest.err >&5 adam@12: fi adam@12: rm -f conftest.err libconftest.a conftest conftest.c adam@12: rm -rf conftest.dSYM adam@12: adam@12: fi adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 adam@12: $as_echo "$lt_cv_ld_force_load" >&6; } adam@0: case $host_os in adam@0: rhapsody* | darwin1.[012]) adam@0: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; adam@0: darwin1.*) adam@0: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; adam@0: darwin*) # darwin 5.x on adam@0: # if running on 10.5 or later, the deployment target defaults adam@0: # to the OS version, if on x86, and 10.4, the deployment adam@0: # target defaults to 10.4. Don't you love it? adam@0: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in adam@0: 10.0,*86*-darwin8*|10.0,*-darwin[91]*) adam@0: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; adam@0: 10.[012]*) adam@0: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; adam@0: 10.*) adam@0: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; adam@0: esac adam@0: ;; adam@0: esac adam@0: if test "$lt_cv_apple_cc_single_mod" = "yes"; then adam@0: _lt_dar_single_mod='$single_module' adam@0: fi adam@0: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then adam@0: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' adam@0: else adam@0: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' adam@0: fi adam@12: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then adam@0: _lt_dsymutil='~$DSYMUTIL $lib || :' adam@0: else adam@0: _lt_dsymutil= adam@0: fi adam@0: ;; adam@0: esac adam@0: adam@0: for ac_header in dlfcn.h adam@0: do : adam@0: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default adam@0: " adam@12: if test "x$ac_cv_header_dlfcn_h" = xyes; then : adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define HAVE_DLFCN_H 1 adam@0: _ACEOF adam@0: adam@0: fi adam@0: adam@0: done adam@0: adam@0: adam@0: adam@12: adam@12: adam@0: # Set options adam@0: adam@0: adam@0: adam@0: enable_dlopen=no adam@0: adam@0: adam@0: enable_win32_dll=no adam@0: adam@0: adam@0: # Check whether --enable-shared was given. adam@0: if test "${enable_shared+set}" = set; then : adam@0: enableval=$enable_shared; p=${PACKAGE-default} adam@0: case $enableval in adam@0: yes) enable_shared=yes ;; adam@0: no) enable_shared=no ;; adam@0: *) adam@0: enable_shared=no adam@0: # Look at the argument we got. We use all the common list separators. adam@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," adam@0: for pkg in $enableval; do adam@0: IFS="$lt_save_ifs" adam@0: if test "X$pkg" = "X$p"; then adam@0: enable_shared=yes adam@0: fi adam@0: done adam@0: IFS="$lt_save_ifs" adam@0: ;; adam@0: esac adam@0: else adam@0: enable_shared=yes adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # Check whether --enable-static was given. adam@0: if test "${enable_static+set}" = set; then : adam@0: enableval=$enable_static; p=${PACKAGE-default} adam@0: case $enableval in adam@0: yes) enable_static=yes ;; adam@0: no) enable_static=no ;; adam@0: *) adam@0: enable_static=no adam@0: # Look at the argument we got. We use all the common list separators. adam@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," adam@0: for pkg in $enableval; do adam@0: IFS="$lt_save_ifs" adam@0: if test "X$pkg" = "X$p"; then adam@0: enable_static=yes adam@0: fi adam@0: done adam@0: IFS="$lt_save_ifs" adam@0: ;; adam@0: esac adam@0: else adam@0: enable_static=yes adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # Check whether --with-pic was given. adam@0: if test "${with_pic+set}" = set; then : adam@0: withval=$with_pic; pic_mode="$withval" adam@0: else adam@0: pic_mode=default adam@0: fi adam@0: adam@0: adam@0: test -z "$pic_mode" && pic_mode=default adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # Check whether --enable-fast-install was given. adam@0: if test "${enable_fast_install+set}" = set; then : adam@0: enableval=$enable_fast_install; p=${PACKAGE-default} adam@0: case $enableval in adam@0: yes) enable_fast_install=yes ;; adam@0: no) enable_fast_install=no ;; adam@0: *) adam@0: enable_fast_install=no adam@0: # Look at the argument we got. We use all the common list separators. adam@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," adam@0: for pkg in $enableval; do adam@0: IFS="$lt_save_ifs" adam@0: if test "X$pkg" = "X$p"; then adam@0: enable_fast_install=yes adam@0: fi adam@0: done adam@0: IFS="$lt_save_ifs" adam@0: ;; adam@0: esac adam@0: else adam@0: enable_fast_install=yes adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # This can be used to rebuild libtool when needed adam@0: LIBTOOL_DEPS="$ltmain" adam@0: adam@0: # Always use our own libtool. adam@0: LIBTOOL='$(SHELL) $(top_builddir)/libtool' adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@12: adam@0: test -z "$LN_S" && LN_S="ln -s" adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: if test -n "${ZSH_VERSION+set}" ; then adam@0: setopt NO_GLOB_SUBST adam@0: fi adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 adam@0: $as_echo_n "checking for objdir... " >&6; } adam@12: if ${lt_cv_objdir+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: rm -f .libs 2>/dev/null adam@0: mkdir .libs 2>/dev/null adam@0: if test -d .libs; then adam@0: lt_cv_objdir=.libs adam@0: else adam@0: # MS-DOS does not allow filenames that begin with a dot. adam@0: lt_cv_objdir=_libs adam@0: fi adam@0: rmdir .libs 2>/dev/null adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 adam@0: $as_echo "$lt_cv_objdir" >&6; } adam@0: objdir=$lt_cv_objdir adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define LT_OBJDIR "$lt_cv_objdir/" adam@0: _ACEOF adam@0: adam@0: adam@0: adam@0: adam@0: case $host_os in adam@0: aix3*) adam@0: # AIX sometimes has problems with the GCC collect2 program. For some adam@0: # reason, if we set the COLLECT_NAMES environment variable, the problems adam@0: # vanish in a puff of smoke. adam@0: if test "X${COLLECT_NAMES+set}" != Xset; then adam@0: COLLECT_NAMES= adam@0: export COLLECT_NAMES adam@0: fi adam@0: ;; adam@0: esac adam@0: adam@0: # Global variables: adam@0: ofile=libtool adam@0: can_build_shared=yes adam@0: adam@0: # All known linkers require a `.a' archive for static linking (except MSVC, adam@0: # which needs '.lib'). adam@0: libext=a adam@0: adam@0: with_gnu_ld="$lt_cv_prog_gnu_ld" adam@0: adam@0: old_CC="$CC" adam@0: old_CFLAGS="$CFLAGS" adam@0: adam@0: # Set sane defaults for various variables adam@0: test -z "$CC" && CC=cc adam@0: test -z "$LTCC" && LTCC=$CC adam@0: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS adam@0: test -z "$LD" && LD=ld adam@0: test -z "$ac_objext" && ac_objext=o adam@0: adam@0: for cc_temp in $compiler""; do adam@0: case $cc_temp in adam@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; adam@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; adam@0: \-*) ;; adam@0: *) break;; adam@0: esac adam@0: done adam@12: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` adam@0: adam@0: adam@0: # Only perform the check for file, if the check method requires it adam@0: test -z "$MAGIC_CMD" && MAGIC_CMD=file adam@0: case $deplibs_check_method in adam@0: file_magic*) adam@0: if test "$file_magic_cmd" = '$MAGIC_CMD'; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 adam@0: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } adam@12: if ${lt_cv_path_MAGIC_CMD+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: case $MAGIC_CMD in adam@0: [\\/*] | ?:[\\/]*) adam@0: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. adam@0: ;; adam@0: *) adam@0: lt_save_MAGIC_CMD="$MAGIC_CMD" adam@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR adam@0: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" adam@0: for ac_dir in $ac_dummy; do adam@0: IFS="$lt_save_ifs" adam@0: test -z "$ac_dir" && ac_dir=. adam@0: if test -f $ac_dir/${ac_tool_prefix}file; then adam@0: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" adam@0: if test -n "$file_magic_test_file"; then adam@0: case $deplibs_check_method in adam@0: "file_magic "*) adam@0: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` adam@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" adam@0: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | adam@0: $EGREP "$file_magic_regex" > /dev/null; then adam@0: : adam@0: else adam@0: cat <<_LT_EOF 1>&2 adam@0: adam@0: *** Warning: the command libtool uses to detect shared libraries, adam@0: *** $file_magic_cmd, produces output that libtool cannot recognize. adam@0: *** The result is that libtool may fail to recognize shared libraries adam@0: *** as such. This will affect the creation of libtool libraries that adam@0: *** depend on shared libraries, but programs linked with such libtool adam@0: *** libraries will work regardless of this problem. Nevertheless, you adam@0: *** may want to report the problem to your system manager and/or to adam@0: *** bug-libtool@gnu.org adam@0: adam@0: _LT_EOF adam@0: fi ;; adam@0: esac adam@0: fi adam@0: break adam@0: fi adam@0: done adam@0: IFS="$lt_save_ifs" adam@0: MAGIC_CMD="$lt_save_MAGIC_CMD" adam@0: ;; adam@0: esac adam@0: fi adam@0: adam@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" adam@0: if test -n "$MAGIC_CMD"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 adam@0: $as_echo "$MAGIC_CMD" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: if test -z "$lt_cv_path_MAGIC_CMD"; then adam@0: if test -n "$ac_tool_prefix"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 adam@0: $as_echo_n "checking for file... " >&6; } adam@12: if ${lt_cv_path_MAGIC_CMD+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: case $MAGIC_CMD in adam@0: [\\/*] | ?:[\\/]*) adam@0: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. adam@0: ;; adam@0: *) adam@0: lt_save_MAGIC_CMD="$MAGIC_CMD" adam@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR adam@0: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" adam@0: for ac_dir in $ac_dummy; do adam@0: IFS="$lt_save_ifs" adam@0: test -z "$ac_dir" && ac_dir=. adam@0: if test -f $ac_dir/file; then adam@0: lt_cv_path_MAGIC_CMD="$ac_dir/file" adam@0: if test -n "$file_magic_test_file"; then adam@0: case $deplibs_check_method in adam@0: "file_magic "*) adam@0: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` adam@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" adam@0: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | adam@0: $EGREP "$file_magic_regex" > /dev/null; then adam@0: : adam@0: else adam@0: cat <<_LT_EOF 1>&2 adam@0: adam@0: *** Warning: the command libtool uses to detect shared libraries, adam@0: *** $file_magic_cmd, produces output that libtool cannot recognize. adam@0: *** The result is that libtool may fail to recognize shared libraries adam@0: *** as such. This will affect the creation of libtool libraries that adam@0: *** depend on shared libraries, but programs linked with such libtool adam@0: *** libraries will work regardless of this problem. Nevertheless, you adam@0: *** may want to report the problem to your system manager and/or to adam@0: *** bug-libtool@gnu.org adam@0: adam@0: _LT_EOF adam@0: fi ;; adam@0: esac adam@0: fi adam@0: break adam@0: fi adam@0: done adam@0: IFS="$lt_save_ifs" adam@0: MAGIC_CMD="$lt_save_MAGIC_CMD" adam@0: ;; adam@0: esac adam@0: fi adam@0: adam@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" adam@0: if test -n "$MAGIC_CMD"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 adam@0: $as_echo "$MAGIC_CMD" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: else adam@0: MAGIC_CMD=: adam@0: fi adam@0: fi adam@0: adam@0: fi adam@0: ;; adam@0: esac adam@0: adam@0: # Use C for the default configuration in the libtool script adam@0: adam@0: lt_save_CC="$CC" adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: adam@0: adam@0: # Source file extension for C test sources. adam@0: ac_ext=c adam@0: adam@0: # Object file extension for compiled C test sources. adam@0: objext=o adam@0: objext=$objext adam@0: adam@0: # Code to be used in simple compile tests adam@0: lt_simple_compile_test_code="int some_variable = 0;" adam@0: adam@0: # Code to be used in simple link tests adam@0: lt_simple_link_test_code='int main(){return(0);}' adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # If no C compiler was specified, use CC. adam@0: LTCC=${LTCC-"$CC"} adam@0: adam@0: # If no C compiler flags were specified, use CFLAGS. adam@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} adam@0: adam@0: # Allow CC to be a program name with arguments. adam@0: compiler=$CC adam@0: adam@0: # Save the default compiler, since it gets overwritten when the other adam@0: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. adam@0: compiler_DEFAULT=$CC adam@0: adam@0: # save warnings/boilerplate of simple test code adam@0: ac_outfile=conftest.$ac_objext adam@0: echo "$lt_simple_compile_test_code" >conftest.$ac_ext adam@0: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err adam@0: _lt_compiler_boilerplate=`cat conftest.err` adam@0: $RM conftest* adam@0: adam@0: ac_outfile=conftest.$ac_objext adam@0: echo "$lt_simple_link_test_code" >conftest.$ac_ext adam@0: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err adam@0: _lt_linker_boilerplate=`cat conftest.err` adam@0: $RM -r conftest* adam@0: adam@0: adam@0: ## CAVEAT EMPTOR: adam@0: ## There is no encapsulation within the following macros, do not change adam@0: ## the running order or otherwise move them around unless you know exactly adam@0: ## what you are doing... adam@0: if test -n "$compiler"; then adam@0: adam@0: lt_prog_compiler_no_builtin_flag= adam@0: adam@0: if test "$GCC" = yes; then adam@12: case $cc_basename in adam@12: nvcc*) adam@12: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; adam@12: *) adam@12: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; adam@12: esac adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 adam@0: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } adam@12: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_prog_compiler_rtti_exceptions=no adam@0: ac_outfile=conftest.$ac_objext adam@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adam@0: lt_compiler_flag="-fno-rtti -fno-exceptions" adam@0: # Insert the option either (1) after the last *FLAGS variable, or adam@0: # (2) before a word containing "conftest.", or (3) at the end. adam@0: # Note that $ac_compile itself does not contain backslashes and begins adam@0: # with a dollar sign (not a hyphen), so the echo should work correctly. adam@0: # The option is referenced via a variable to avoid confusing sed. adam@0: lt_compile=`echo "$ac_compile" | $SED \ adam@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ adam@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ adam@0: -e 's:$: $lt_compiler_flag:'` adam@12: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) adam@0: (eval "$lt_compile" 2>conftest.err) adam@0: ac_status=$? adam@0: cat conftest.err >&5 adam@12: echo "$as_me:$LINENO: \$? = $ac_status" >&5 adam@0: if (exit $ac_status) && test -s "$ac_outfile"; then adam@0: # The compiler can only warn and ignore the option if not recognized adam@0: # So say no if there are warnings other than the usual output. adam@12: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp adam@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 adam@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then adam@0: lt_cv_prog_compiler_rtti_exceptions=yes adam@0: fi adam@0: fi adam@0: $RM conftest* adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 adam@0: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } adam@0: adam@0: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then adam@0: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" adam@0: else adam@0: : adam@0: fi adam@0: adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: lt_prog_compiler_wl= adam@0: lt_prog_compiler_pic= adam@0: lt_prog_compiler_static= adam@0: adam@0: adam@0: if test "$GCC" = yes; then adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_static='-static' adam@0: adam@0: case $host_os in adam@0: aix*) adam@0: # All AIX code is PIC. adam@0: if test "$host_cpu" = ia64; then adam@0: # AIX 5 now supports IA64 processor adam@0: lt_prog_compiler_static='-Bstatic' adam@0: fi adam@0: ;; adam@0: adam@0: amigaos*) adam@0: case $host_cpu in adam@0: powerpc) adam@0: # see comment about AmigaOS4 .so support adam@0: lt_prog_compiler_pic='-fPIC' adam@0: ;; adam@0: m68k) adam@0: # FIXME: we need at least 68020 code to build shared libraries, but adam@0: # adding the `-m68020' flag to GCC prevents building anything better, adam@0: # like `-m68040'. adam@0: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) adam@0: # PIC is the default for these OSes. adam@0: ;; adam@0: adam@0: mingw* | cygwin* | pw32* | os2* | cegcc*) adam@0: # This hack is so that the source file can tell whether it is being adam@0: # built for inclusion in a dll (and should export symbols for example). adam@0: # Although the cygwin gcc ignores -fPIC, still need this for old-style adam@0: # (--disable-auto-import) libraries adam@0: lt_prog_compiler_pic='-DDLL_EXPORT' adam@0: ;; adam@0: adam@0: darwin* | rhapsody*) adam@0: # PIC is the default on this platform adam@0: # Common symbols not allowed in MH_DYLIB files adam@0: lt_prog_compiler_pic='-fno-common' adam@0: ;; adam@0: adam@12: haiku*) adam@12: # PIC is the default for Haiku. adam@12: # The "-static" flag exists, but is broken. adam@12: lt_prog_compiler_static= adam@12: ;; adam@12: adam@0: hpux*) adam@0: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit adam@0: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag adam@0: # sets the default TLS model and affects inlining. adam@0: case $host_cpu in adam@0: hppa*64*) adam@0: # +Z the default adam@0: ;; adam@0: *) adam@0: lt_prog_compiler_pic='-fPIC' adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: interix[3-9]*) adam@0: # Interix 3.x gcc -fpic/-fPIC options generate broken code. adam@0: # Instead, we relocate shared libraries at runtime. adam@0: ;; adam@0: adam@0: msdosdjgpp*) adam@0: # Just because we use GCC doesn't mean we suddenly get shared libraries adam@0: # on systems that don't support them. adam@0: lt_prog_compiler_can_build_shared=no adam@0: enable_shared=no adam@0: ;; adam@0: adam@0: *nto* | *qnx*) adam@0: # QNX uses GNU C++, but need to define -shared option too, otherwise adam@0: # it will coredump. adam@0: lt_prog_compiler_pic='-fPIC -shared' adam@0: ;; adam@0: adam@0: sysv4*MP*) adam@0: if test -d /usr/nec; then adam@0: lt_prog_compiler_pic=-Kconform_pic adam@0: fi adam@0: ;; adam@0: adam@0: *) adam@0: lt_prog_compiler_pic='-fPIC' adam@0: ;; adam@0: esac adam@12: adam@12: case $cc_basename in adam@12: nvcc*) # Cuda Compiler Driver 2.2 adam@12: lt_prog_compiler_wl='-Xlinker ' adam@12: lt_prog_compiler_pic='-Xcompiler -fPIC' adam@12: ;; adam@12: esac adam@0: else adam@0: # PORTME Check for flag to pass linker flags through the system compiler. adam@0: case $host_os in adam@0: aix*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: if test "$host_cpu" = ia64; then adam@0: # AIX 5 now supports IA64 processor adam@0: lt_prog_compiler_static='-Bstatic' adam@0: else adam@0: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' adam@0: fi adam@0: ;; adam@0: adam@0: mingw* | cygwin* | pw32* | os2* | cegcc*) adam@0: # This hack is so that the source file can tell whether it is being adam@0: # built for inclusion in a dll (and should export symbols for example). adam@0: lt_prog_compiler_pic='-DDLL_EXPORT' adam@0: ;; adam@0: adam@0: hpux9* | hpux10* | hpux11*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but adam@0: # not for PA HP-UX. adam@0: case $host_cpu in adam@0: hppa*64*|ia64*) adam@0: # +Z the default adam@0: ;; adam@0: *) adam@0: lt_prog_compiler_pic='+Z' adam@0: ;; adam@0: esac adam@0: # Is there a better lt_prog_compiler_static that works with the bundled CC? adam@0: lt_prog_compiler_static='${wl}-a ${wl}archive' adam@0: ;; adam@0: adam@0: irix5* | irix6* | nonstopux*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: # PIC (with -KPIC) is the default. adam@0: lt_prog_compiler_static='-non_shared' adam@0: ;; adam@0: adam@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) adam@0: case $cc_basename in adam@0: # old Intel for x86_64 which still supported -KPIC. adam@0: ecc*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_pic='-KPIC' adam@0: lt_prog_compiler_static='-static' adam@0: ;; adam@0: # icc used to be incompatible with GCC. adam@0: # ICC 10 doesn't accept -KPIC any more. adam@0: icc* | ifort*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_pic='-fPIC' adam@0: lt_prog_compiler_static='-static' adam@0: ;; adam@0: # Lahey Fortran 8.1. adam@0: lf95*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_pic='--shared' adam@0: lt_prog_compiler_static='--static' adam@0: ;; adam@12: nagfor*) adam@12: # NAG Fortran compiler adam@12: lt_prog_compiler_wl='-Wl,-Wl,,' adam@12: lt_prog_compiler_pic='-PIC' adam@12: lt_prog_compiler_static='-Bstatic' adam@12: ;; adam@12: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) adam@0: # Portland Group compilers (*not* the Pentium gcc compiler, adam@0: # which looks to be a dead project) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_pic='-fpic' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: ;; adam@0: ccc*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: # All Alpha code is PIC. adam@0: lt_prog_compiler_static='-non_shared' adam@0: ;; adam@12: xl* | bgxl* | bgf* | mpixl*) adam@12: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_pic='-qpic' adam@0: lt_prog_compiler_static='-qstaticlink' adam@0: ;; adam@0: *) adam@0: case `$CC -V 2>&1 | sed 5q` in adam@12: *Sun\ F* | *Sun*Fortran*) adam@12: # Sun Fortran 8.3 passes all unrecognized flags to the linker adam@12: lt_prog_compiler_pic='-KPIC' adam@12: lt_prog_compiler_static='-Bstatic' adam@12: lt_prog_compiler_wl='' adam@12: ;; adam@0: *Sun\ C*) adam@0: # Sun C 5.9 adam@0: lt_prog_compiler_pic='-KPIC' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: lt_prog_compiler_wl='-Wl,' adam@0: ;; adam@0: esac adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: newsos6) adam@0: lt_prog_compiler_pic='-KPIC' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: ;; adam@0: adam@0: *nto* | *qnx*) adam@0: # QNX uses GNU C++, but need to define -shared option too, otherwise adam@0: # it will coredump. adam@0: lt_prog_compiler_pic='-fPIC -shared' adam@0: ;; adam@0: adam@0: osf3* | osf4* | osf5*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: # All OSF/1 code is PIC. adam@0: lt_prog_compiler_static='-non_shared' adam@0: ;; adam@0: adam@0: rdos*) adam@0: lt_prog_compiler_static='-non_shared' adam@0: ;; adam@0: adam@0: solaris*) adam@0: lt_prog_compiler_pic='-KPIC' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: case $cc_basename in adam@12: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) adam@0: lt_prog_compiler_wl='-Qoption ld ';; adam@0: *) adam@0: lt_prog_compiler_wl='-Wl,';; adam@0: esac adam@0: ;; adam@0: adam@0: sunos4*) adam@0: lt_prog_compiler_wl='-Qoption ld ' adam@0: lt_prog_compiler_pic='-PIC' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: ;; adam@0: adam@0: sysv4 | sysv4.2uw2* | sysv4.3*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_pic='-KPIC' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: ;; adam@0: adam@0: sysv4*MP*) adam@0: if test -d /usr/nec ;then adam@0: lt_prog_compiler_pic='-Kconform_pic' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: fi adam@0: ;; adam@0: adam@0: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_pic='-KPIC' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: ;; adam@0: adam@0: unicos*) adam@0: lt_prog_compiler_wl='-Wl,' adam@0: lt_prog_compiler_can_build_shared=no adam@0: ;; adam@0: adam@0: uts4*) adam@0: lt_prog_compiler_pic='-pic' adam@0: lt_prog_compiler_static='-Bstatic' adam@0: ;; adam@0: adam@0: *) adam@0: lt_prog_compiler_can_build_shared=no adam@0: ;; adam@0: esac adam@0: fi adam@0: adam@0: case $host_os in adam@0: # For platforms which do not support PIC, -DPIC is meaningless: adam@0: *djgpp*) adam@0: lt_prog_compiler_pic= adam@0: ;; adam@0: *) adam@0: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" adam@0: ;; adam@0: esac adam@12: adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 adam@12: $as_echo_n "checking for $compiler option to produce PIC... " >&6; } adam@12: if ${lt_cv_prog_compiler_pic+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic adam@12: fi adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 adam@12: $as_echo "$lt_cv_prog_compiler_pic" >&6; } adam@12: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic adam@0: adam@0: # adam@0: # Check to make sure the PIC flag actually works. adam@0: # adam@0: if test -n "$lt_prog_compiler_pic"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 adam@0: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } adam@12: if ${lt_cv_prog_compiler_pic_works+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_prog_compiler_pic_works=no adam@0: ac_outfile=conftest.$ac_objext adam@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adam@0: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" adam@0: # Insert the option either (1) after the last *FLAGS variable, or adam@0: # (2) before a word containing "conftest.", or (3) at the end. adam@0: # Note that $ac_compile itself does not contain backslashes and begins adam@0: # with a dollar sign (not a hyphen), so the echo should work correctly. adam@0: # The option is referenced via a variable to avoid confusing sed. adam@0: lt_compile=`echo "$ac_compile" | $SED \ adam@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ adam@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ adam@0: -e 's:$: $lt_compiler_flag:'` adam@12: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) adam@0: (eval "$lt_compile" 2>conftest.err) adam@0: ac_status=$? adam@0: cat conftest.err >&5 adam@12: echo "$as_me:$LINENO: \$? = $ac_status" >&5 adam@0: if (exit $ac_status) && test -s "$ac_outfile"; then adam@0: # The compiler can only warn and ignore the option if not recognized adam@0: # So say no if there are warnings other than the usual output. adam@12: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp adam@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 adam@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then adam@0: lt_cv_prog_compiler_pic_works=yes adam@0: fi adam@0: fi adam@0: $RM conftest* adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 adam@0: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } adam@0: adam@0: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then adam@0: case $lt_prog_compiler_pic in adam@0: "" | " "*) ;; adam@0: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; adam@0: esac adam@0: else adam@0: lt_prog_compiler_pic= adam@0: lt_prog_compiler_can_build_shared=no adam@0: fi adam@0: adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@12: adam@12: adam@12: adam@12: adam@12: adam@0: # adam@0: # Check to make sure the static flag actually works. adam@0: # adam@0: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 adam@0: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } adam@12: if ${lt_cv_prog_compiler_static_works+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_prog_compiler_static_works=no adam@0: save_LDFLAGS="$LDFLAGS" adam@0: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" adam@0: echo "$lt_simple_link_test_code" > conftest.$ac_ext adam@0: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then adam@0: # The linker can only warn and ignore the option if not recognized adam@0: # So say no if there are warnings adam@0: if test -s conftest.err; then adam@0: # Append any errors to the config.log. adam@0: cat conftest.err 1>&5 adam@12: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp adam@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 adam@0: if diff conftest.exp conftest.er2 >/dev/null; then adam@0: lt_cv_prog_compiler_static_works=yes adam@0: fi adam@0: else adam@0: lt_cv_prog_compiler_static_works=yes adam@0: fi adam@0: fi adam@0: $RM -r conftest* adam@0: LDFLAGS="$save_LDFLAGS" adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 adam@0: $as_echo "$lt_cv_prog_compiler_static_works" >&6; } adam@0: adam@0: if test x"$lt_cv_prog_compiler_static_works" = xyes; then adam@0: : adam@0: else adam@0: lt_prog_compiler_static= adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 adam@0: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } adam@12: if ${lt_cv_prog_compiler_c_o+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_prog_compiler_c_o=no adam@0: $RM -r conftest 2>/dev/null adam@0: mkdir conftest adam@0: cd conftest adam@0: mkdir out adam@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adam@0: adam@0: lt_compiler_flag="-o out/conftest2.$ac_objext" adam@0: # Insert the option either (1) after the last *FLAGS variable, or adam@0: # (2) before a word containing "conftest.", or (3) at the end. adam@0: # Note that $ac_compile itself does not contain backslashes and begins adam@0: # with a dollar sign (not a hyphen), so the echo should work correctly. adam@0: lt_compile=`echo "$ac_compile" | $SED \ adam@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ adam@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ adam@0: -e 's:$: $lt_compiler_flag:'` adam@12: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) adam@0: (eval "$lt_compile" 2>out/conftest.err) adam@0: ac_status=$? adam@0: cat out/conftest.err >&5 adam@12: echo "$as_me:$LINENO: \$? = $ac_status" >&5 adam@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext adam@0: then adam@0: # The compiler can only warn and ignore the option if not recognized adam@0: # So say no if there are warnings adam@12: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp adam@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 adam@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then adam@0: lt_cv_prog_compiler_c_o=yes adam@0: fi adam@0: fi adam@0: chmod u+w . 2>&5 adam@0: $RM conftest* adam@0: # SGI C++ compiler will create directory out/ii_files/ for adam@0: # template instantiation adam@0: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files adam@0: $RM out/* && rmdir out adam@0: cd .. adam@0: $RM -r conftest adam@0: $RM conftest* adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 adam@0: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 adam@0: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } adam@12: if ${lt_cv_prog_compiler_c_o+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: lt_cv_prog_compiler_c_o=no adam@0: $RM -r conftest 2>/dev/null adam@0: mkdir conftest adam@0: cd conftest adam@0: mkdir out adam@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adam@0: adam@0: lt_compiler_flag="-o out/conftest2.$ac_objext" adam@0: # Insert the option either (1) after the last *FLAGS variable, or adam@0: # (2) before a word containing "conftest.", or (3) at the end. adam@0: # Note that $ac_compile itself does not contain backslashes and begins adam@0: # with a dollar sign (not a hyphen), so the echo should work correctly. adam@0: lt_compile=`echo "$ac_compile" | $SED \ adam@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ adam@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ adam@0: -e 's:$: $lt_compiler_flag:'` adam@12: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) adam@0: (eval "$lt_compile" 2>out/conftest.err) adam@0: ac_status=$? adam@0: cat out/conftest.err >&5 adam@12: echo "$as_me:$LINENO: \$? = $ac_status" >&5 adam@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext adam@0: then adam@0: # The compiler can only warn and ignore the option if not recognized adam@0: # So say no if there are warnings adam@12: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp adam@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 adam@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then adam@0: lt_cv_prog_compiler_c_o=yes adam@0: fi adam@0: fi adam@0: chmod u+w . 2>&5 adam@0: $RM conftest* adam@0: # SGI C++ compiler will create directory out/ii_files/ for adam@0: # template instantiation adam@0: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files adam@0: $RM out/* && rmdir out adam@0: cd .. adam@0: $RM -r conftest adam@0: $RM conftest* adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 adam@0: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } adam@0: adam@0: adam@0: adam@0: adam@0: hard_links="nottested" adam@0: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then adam@0: # do not overwrite the value of need_locks provided by the user adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 adam@0: $as_echo_n "checking if we can lock with hard links... " >&6; } adam@0: hard_links=yes adam@0: $RM conftest* adam@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no adam@0: touch conftest.a adam@0: ln conftest.a conftest.b 2>&5 || hard_links=no adam@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 adam@0: $as_echo "$hard_links" >&6; } adam@0: if test "$hard_links" = no; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 adam@0: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} adam@0: need_locks=warn adam@0: fi adam@0: else adam@0: need_locks=no adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 adam@0: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } adam@0: adam@0: runpath_var= adam@0: allow_undefined_flag= adam@0: always_export_symbols=no adam@0: archive_cmds= adam@0: archive_expsym_cmds= adam@0: compiler_needs_object=no adam@0: enable_shared_with_static_runtimes=no adam@0: export_dynamic_flag_spec= adam@0: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' adam@0: hardcode_automatic=no adam@0: hardcode_direct=no adam@0: hardcode_direct_absolute=no adam@0: hardcode_libdir_flag_spec= adam@0: hardcode_libdir_flag_spec_ld= adam@0: hardcode_libdir_separator= adam@0: hardcode_minus_L=no adam@0: hardcode_shlibpath_var=unsupported adam@0: inherit_rpath=no adam@0: link_all_deplibs=unknown adam@0: module_cmds= adam@0: module_expsym_cmds= adam@0: old_archive_from_new_cmds= adam@0: old_archive_from_expsyms_cmds= adam@0: thread_safe_flag_spec= adam@0: whole_archive_flag_spec= adam@0: # include_expsyms should be a list of space-separated symbols to be *always* adam@0: # included in the symbol list adam@0: include_expsyms= adam@0: # exclude_expsyms can be an extended regexp of symbols to exclude adam@0: # it will be wrapped by ` (' and `)$', so one must not match beginning or adam@0: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', adam@0: # as well as any symbol that contains `d'. adam@0: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' adam@0: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out adam@0: # platforms (ab)use it in PIC code, but their linkers get confused if adam@0: # the symbol is explicitly referenced. Since portable code cannot adam@0: # rely on this symbol name, it's probably fine to never include it in adam@0: # preloaded symbol tables. adam@0: # Exclude shared library initialization/finalization symbols. adam@0: extract_expsyms_cmds= adam@0: adam@0: case $host_os in adam@0: cygwin* | mingw* | pw32* | cegcc*) adam@0: # FIXME: the MSVC++ port hasn't been tested in a loooong time adam@0: # When not using gcc, we currently assume that we are using adam@0: # Microsoft Visual C++. adam@0: if test "$GCC" != yes; then adam@0: with_gnu_ld=no adam@0: fi adam@0: ;; adam@0: interix*) adam@0: # we just hope/assume this is gcc and not c89 (= MSVC++) adam@0: with_gnu_ld=yes adam@0: ;; adam@0: openbsd*) adam@0: with_gnu_ld=no adam@0: ;; adam@12: linux* | k*bsd*-gnu | gnu*) adam@0: link_all_deplibs=no adam@0: ;; adam@0: esac adam@0: adam@0: ld_shlibs=yes adam@12: adam@12: # On some targets, GNU ld is compatible enough with the native linker adam@12: # that we're better off using the native interface for both. adam@12: lt_use_gnu_ld_interface=no adam@0: if test "$with_gnu_ld" = yes; then adam@12: case $host_os in adam@12: aix*) adam@12: # The AIX port of GNU ld has always aspired to compatibility adam@12: # with the native linker. However, as the warning in the GNU ld adam@12: # block says, versions before 2.19.5* couldn't really create working adam@12: # shared libraries, regardless of the interface used. adam@12: case `$LD -v 2>&1` in adam@12: *\ \(GNU\ Binutils\)\ 2.19.5*) ;; adam@12: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; adam@12: *\ \(GNU\ Binutils\)\ [3-9]*) ;; adam@12: *) adam@12: lt_use_gnu_ld_interface=yes adam@12: ;; adam@12: esac adam@12: ;; adam@12: *) adam@12: lt_use_gnu_ld_interface=yes adam@12: ;; adam@12: esac adam@12: fi adam@12: adam@12: if test "$lt_use_gnu_ld_interface" = yes; then adam@0: # If archive_cmds runs LD, not CC, wlarc should be empty adam@0: wlarc='${wl}' adam@0: adam@0: # Set some defaults for GNU ld with shared library support. These adam@0: # are reset later if shared libraries are not supported. Putting them adam@0: # here allows them to be overridden if necessary. adam@0: runpath_var=LD_RUN_PATH adam@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adam@0: export_dynamic_flag_spec='${wl}--export-dynamic' adam@0: # ancient GNU ld didn't support --whole-archive et. al. adam@0: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then adam@0: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' adam@0: else adam@0: whole_archive_flag_spec= adam@0: fi adam@0: supports_anon_versioning=no adam@0: case `$LD -v 2>&1` in adam@0: *GNU\ gold*) supports_anon_versioning=yes ;; adam@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 adam@0: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... adam@0: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... adam@0: *\ 2.11.*) ;; # other 2.11 versions adam@0: *) supports_anon_versioning=yes ;; adam@0: esac adam@0: adam@0: # See if GNU ld supports shared libraries. adam@0: case $host_os in adam@0: aix[3-9]*) adam@0: # On AIX/PPC, the GNU linker is very broken adam@0: if test "$host_cpu" != ia64; then adam@0: ld_shlibs=no adam@0: cat <<_LT_EOF 1>&2 adam@0: adam@12: *** Warning: the GNU linker, at least up to release 2.19, is reported adam@0: *** to be unable to reliably create shared libraries on AIX. adam@0: *** Therefore, libtool is disabling shared libraries support. If you adam@12: *** really care for shared libraries, you may want to install binutils adam@12: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. adam@12: *** You will then need to restart the configuration process. adam@0: adam@0: _LT_EOF adam@0: fi adam@0: ;; adam@0: adam@0: amigaos*) adam@0: case $host_cpu in adam@0: powerpc) adam@0: # see comment about AmigaOS4 .so support adam@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@0: archive_expsym_cmds='' adam@0: ;; adam@0: m68k) adam@0: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' adam@0: hardcode_libdir_flag_spec='-L$libdir' adam@0: hardcode_minus_L=yes adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: beos*) adam@0: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then adam@0: allow_undefined_flag=unsupported adam@0: # Joseph Beckenbach says some releases of gcc adam@0: # support --undefined. This deserves some investigation. FIXME adam@0: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@0: else adam@0: ld_shlibs=no adam@0: fi adam@0: ;; adam@0: adam@0: cygwin* | mingw* | pw32* | cegcc*) adam@0: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, adam@0: # as there is no search path for DLLs. adam@0: hardcode_libdir_flag_spec='-L$libdir' adam@12: export_dynamic_flag_spec='${wl}--export-all-symbols' adam@0: allow_undefined_flag=unsupported adam@0: always_export_symbols=no adam@0: enable_shared_with_static_runtimes=yes adam@12: 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@12: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' adam@0: adam@0: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then adam@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' adam@0: # If the export-symbols file already is a .def file (1st line adam@0: # is EXPORTS), use it as is; otherwise, prepend... adam@0: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then adam@0: cp $export_symbols $output_objdir/$soname.def; adam@0: else adam@0: echo EXPORTS > $output_objdir/$soname.def; adam@0: cat $export_symbols >> $output_objdir/$soname.def; adam@0: fi~ adam@0: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' adam@0: else adam@0: ld_shlibs=no adam@0: fi adam@0: ;; adam@0: adam@12: haiku*) adam@12: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@12: link_all_deplibs=yes adam@12: ;; adam@12: adam@0: interix[3-9]*) adam@0: hardcode_direct=no adam@0: hardcode_shlibpath_var=no adam@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' adam@0: export_dynamic_flag_spec='${wl}-E' adam@0: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. adam@0: # Instead, shared libraries are loaded at an image base (0x10000000 by adam@0: # default) and relocated if they conflict, which is a slow very memory adam@0: # consuming and fragmenting process. To avoid this, we pick a random, adam@0: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link adam@0: # time. Moving up from 0x10000000 also allows more sbrk(2) space. adam@0: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' adam@0: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' adam@0: ;; adam@0: adam@0: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) adam@0: tmp_diet=no adam@0: if test "$host_os" = linux-dietlibc; then adam@0: case $cc_basename in adam@0: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) adam@0: esac adam@0: fi adam@0: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ adam@0: && test "$tmp_diet" = no adam@0: then adam@12: tmp_addflag=' $pic_flag' adam@0: tmp_sharedflag='-shared' adam@0: case $cc_basename,$host_cpu in adam@0: pgcc*) # Portland Group C compiler adam@12: 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@0: tmp_addflag=' $pic_flag' adam@0: ;; adam@12: pgf77* | pgf90* | pgf95* | pgfortran*) adam@12: # Portland Group f77 and f90 compilers adam@12: 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@0: tmp_addflag=' $pic_flag -Mnomain' ;; adam@0: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 adam@0: tmp_addflag=' -i_dynamic' ;; adam@0: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 adam@0: tmp_addflag=' -i_dynamic -nofor_main' ;; adam@0: ifc* | ifort*) # Intel Fortran compiler adam@0: tmp_addflag=' -nofor_main' ;; adam@0: lf95*) # Lahey Fortran 8.1 adam@0: whole_archive_flag_spec= adam@0: tmp_sharedflag='--shared' ;; adam@12: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) adam@0: tmp_sharedflag='-qmkshrobj' adam@0: tmp_addflag= ;; adam@12: nvcc*) # Cuda Compiler Driver 2.2 adam@12: 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@12: compiler_needs_object=yes adam@12: ;; adam@0: esac adam@0: case `$CC -V 2>&1 | sed 5q` in adam@0: *Sun\ C*) # Sun C 5.9 adam@12: 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' adam@0: compiler_needs_object=yes adam@0: tmp_sharedflag='-G' ;; adam@0: *Sun\ F*) # Sun Fortran 8.3 adam@0: tmp_sharedflag='-G' ;; adam@0: esac adam@0: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@0: adam@0: if test "x$supports_anon_versioning" = xyes; then adam@0: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ adam@0: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ adam@0: echo "local: *; };" >> $output_objdir/$libname.ver~ adam@0: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' adam@0: fi adam@0: adam@0: case $cc_basename in adam@12: xlf* | bgf* | bgxlf* | mpixlf*) adam@0: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself adam@0: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' adam@0: hardcode_libdir_flag_spec= adam@0: hardcode_libdir_flag_spec_ld='-rpath $libdir' adam@12: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' adam@0: if test "x$supports_anon_versioning" = xyes; then adam@0: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ adam@0: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ adam@0: echo "local: *; };" >> $output_objdir/$libname.ver~ adam@12: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' adam@0: fi adam@0: ;; adam@0: esac adam@0: else adam@0: ld_shlibs=no adam@0: fi adam@0: ;; adam@0: adam@0: netbsd* | netbsdelf*-gnu) adam@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then adam@0: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' adam@0: wlarc= adam@0: else adam@12: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@12: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' adam@0: fi adam@0: ;; adam@0: adam@0: solaris*) adam@0: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then adam@0: ld_shlibs=no adam@0: cat <<_LT_EOF 1>&2 adam@0: adam@0: *** Warning: The releases 2.8.* of the GNU linker cannot reliably adam@0: *** create shared libraries on Solaris systems. Therefore, libtool adam@0: *** is disabling shared libraries support. We urge you to upgrade GNU adam@0: *** binutils to release 2.9.1 or newer. Another option is to modify adam@0: *** your PATH or compiler configuration so that the native linker is adam@0: *** used, and then restart. adam@0: adam@0: _LT_EOF adam@0: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then adam@12: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@12: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' adam@0: else adam@0: ld_shlibs=no adam@0: fi adam@0: ;; adam@0: adam@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) adam@0: case `$LD -v 2>&1` in adam@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) adam@0: ld_shlibs=no adam@0: cat <<_LT_EOF 1>&2 adam@0: adam@0: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not adam@0: *** reliably create shared libraries on SCO systems. Therefore, libtool adam@0: *** is disabling shared libraries support. We urge you to upgrade GNU adam@0: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify adam@0: *** your PATH or compiler configuration so that the native linker is adam@0: *** used, and then restart. adam@0: adam@0: _LT_EOF adam@0: ;; adam@0: *) adam@0: # For security reasons, it is highly recommended that you always adam@0: # use absolute paths for naming shared libraries, and exclude the adam@0: # DT_RUNPATH tag from executables and libraries. But doing so adam@0: # requires that you compile everything twice, which is a pain. adam@0: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then adam@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adam@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' adam@0: else adam@0: ld_shlibs=no adam@0: fi adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: sunos4*) adam@0: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' adam@0: wlarc= adam@0: hardcode_direct=yes adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: *) adam@0: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then adam@12: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@12: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' adam@0: else adam@0: ld_shlibs=no adam@0: fi adam@0: ;; adam@0: esac adam@0: adam@0: if test "$ld_shlibs" = no; then adam@0: runpath_var= adam@0: hardcode_libdir_flag_spec= adam@0: export_dynamic_flag_spec= adam@0: whole_archive_flag_spec= adam@0: fi adam@0: else adam@0: # PORTME fill in a description of your system's linker (not GNU ld) adam@0: case $host_os in adam@0: aix3*) adam@0: allow_undefined_flag=unsupported adam@0: always_export_symbols=yes adam@0: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' adam@0: # Note: this linker hardcodes the directories in LIBPATH if there adam@0: # are no directories specified by -L. adam@0: hardcode_minus_L=yes adam@0: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then adam@0: # Neither direct hardcoding nor static linking is supported with a adam@0: # broken collect2. adam@0: hardcode_direct=unsupported adam@0: fi adam@0: ;; adam@0: adam@0: aix[4-9]*) adam@0: if test "$host_cpu" = ia64; then adam@0: # On IA64, the linker does run time linking by default, so we don't adam@0: # have to do anything special. adam@0: aix_use_runtimelinking=no adam@0: exp_sym_flag='-Bexport' adam@0: no_entry_flag="" adam@0: else adam@0: # If we're using GNU nm, then we don't want the "-C" option. adam@0: # -C means demangle to AIX nm, but means don't demangle with GNU nm adam@12: # Also, AIX nm treats weak defined symbols like other global adam@12: # defined symbols, whereas GNU nm marks them as "W". adam@0: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then adam@12: 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' adam@0: else adam@0: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' adam@0: fi adam@0: aix_use_runtimelinking=no adam@0: adam@0: # Test if we are trying to use run time linking or normal adam@0: # AIX style linking. If -brtl is somewhere in LDFLAGS, we adam@0: # need to do runtime linking. adam@0: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) adam@0: for ld_flag in $LDFLAGS; do adam@0: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then adam@0: aix_use_runtimelinking=yes adam@0: break adam@0: fi adam@0: done adam@0: ;; adam@0: esac adam@0: adam@0: exp_sym_flag='-bexport' adam@0: no_entry_flag='-bnoentry' adam@0: fi adam@0: adam@0: # When large executables or shared objects are built, AIX ld can adam@0: # have problems creating the table of contents. If linking a library adam@0: # or program results in "error TOC overflow" add -mminimal-toc to adam@0: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not adam@0: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. adam@0: adam@0: archive_cmds='' adam@0: hardcode_direct=yes adam@0: hardcode_direct_absolute=yes adam@0: hardcode_libdir_separator=':' adam@0: link_all_deplibs=yes adam@0: file_list_spec='${wl}-f,' adam@0: adam@0: if test "$GCC" = yes; then adam@0: case $host_os in aix4.[012]|aix4.[012].*) adam@0: # We only want to do this on AIX 4.2 and lower, the check adam@0: # below for broken collect2 doesn't work under 4.3+ adam@0: collect2name=`${CC} -print-prog-name=collect2` adam@0: if test -f "$collect2name" && adam@0: strings "$collect2name" | $GREP resolve_lib_name >/dev/null adam@0: then adam@0: # We have reworked collect2 adam@0: : adam@0: else adam@0: # We have old collect2 adam@0: hardcode_direct=unsupported adam@0: # It fails to find uninstalled libraries when the uninstalled adam@0: # path is not listed in the libpath. Setting hardcode_minus_L adam@0: # to unsupported forces relinking adam@0: hardcode_minus_L=yes adam@0: hardcode_libdir_flag_spec='-L$libdir' adam@0: hardcode_libdir_separator= adam@0: fi adam@0: ;; adam@0: esac adam@0: shared_flag='-shared' adam@0: if test "$aix_use_runtimelinking" = yes; then adam@0: shared_flag="$shared_flag "'${wl}-G' adam@0: fi adam@0: link_all_deplibs=no adam@0: else adam@0: # not using gcc adam@0: if test "$host_cpu" = ia64; then adam@0: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release adam@0: # chokes on -Wl,-G. The following line is correct: adam@0: shared_flag='-G' adam@0: else adam@0: if test "$aix_use_runtimelinking" = yes; then adam@0: shared_flag='${wl}-G' adam@0: else adam@0: shared_flag='${wl}-bM:SRE' adam@0: fi adam@0: fi adam@0: fi adam@0: adam@0: export_dynamic_flag_spec='${wl}-bexpall' adam@0: # It seems that -bexpall does not export symbols beginning with adam@0: # underscore (_), so it is better to generate a list of symbols to export. adam@0: always_export_symbols=yes adam@0: if test "$aix_use_runtimelinking" = yes; then adam@0: # Warning - without using the other runtime loading flags (-brtl), adam@0: # -berok will link without error, but may produce a broken library. adam@0: allow_undefined_flag='-berok' adam@0: # Determine the default libpath from the value encoded in an adam@0: # empty executable. adam@12: if test "${lt_cv_aix_libpath+set}" = set; then adam@12: aix_libpath=$lt_cv_aix_libpath adam@12: else adam@12: if ${lt_cv_aix_libpath_+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: adam@12: lt_aix_libpath_sed=' adam@12: /Import File Strings/,/^$/ { adam@12: /^0/ { adam@12: s/^0 *\([^ ]*\) *$/\1/ adam@12: p adam@12: } adam@12: }' adam@12: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` adam@12: # Check for a 64-bit object if we didn't find anything. adam@12: if test -z "$lt_cv_aix_libpath_"; then adam@12: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` adam@12: fi adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@12: if test -z "$lt_cv_aix_libpath_"; then adam@12: lt_cv_aix_libpath_="/usr/lib:/lib" adam@12: fi adam@12: adam@12: fi adam@12: adam@12: aix_libpath=$lt_cv_aix_libpath_ adam@12: fi adam@0: adam@0: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" adam@12: 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" adam@0: else adam@0: if test "$host_cpu" = ia64; then adam@0: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' adam@0: allow_undefined_flag="-z nodefs" adam@0: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" adam@0: else adam@0: # Determine the default libpath from the value encoded in an adam@0: # empty executable. adam@12: if test "${lt_cv_aix_libpath+set}" = set; then adam@12: aix_libpath=$lt_cv_aix_libpath adam@12: else adam@12: if ${lt_cv_aix_libpath_+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: adam@12: lt_aix_libpath_sed=' adam@12: /Import File Strings/,/^$/ { adam@12: /^0/ { adam@12: s/^0 *\([^ ]*\) *$/\1/ adam@12: p adam@12: } adam@12: }' adam@12: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` adam@12: # Check for a 64-bit object if we didn't find anything. adam@12: if test -z "$lt_cv_aix_libpath_"; then adam@12: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` adam@12: fi adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@12: if test -z "$lt_cv_aix_libpath_"; then adam@12: lt_cv_aix_libpath_="/usr/lib:/lib" adam@12: fi adam@12: adam@12: fi adam@12: adam@12: aix_libpath=$lt_cv_aix_libpath_ adam@12: fi adam@0: adam@0: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" adam@0: # Warning - without using the other run time loading flags, adam@0: # -berok will link without error, but may produce a broken library. adam@0: no_undefined_flag=' ${wl}-bernotok' adam@0: allow_undefined_flag=' ${wl}-berok' adam@12: if test "$with_gnu_ld" = yes; then adam@12: # We only use this code for GNU lds that support --whole-archive. adam@12: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' adam@12: else adam@12: # Exported symbols can be pulled into shared objects from archives adam@12: whole_archive_flag_spec='$convenience' adam@12: fi adam@0: archive_cmds_need_lc=yes adam@0: # This is similar to how AIX traditionally builds its shared libraries. adam@0: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' adam@0: fi adam@0: fi adam@0: ;; adam@0: adam@0: amigaos*) adam@0: case $host_cpu in adam@0: powerpc) adam@0: # see comment about AmigaOS4 .so support adam@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' adam@0: archive_expsym_cmds='' adam@0: ;; adam@0: m68k) adam@0: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' adam@0: hardcode_libdir_flag_spec='-L$libdir' adam@0: hardcode_minus_L=yes adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: bsdi[45]*) adam@0: export_dynamic_flag_spec=-rdynamic adam@0: ;; adam@0: adam@0: cygwin* | mingw* | pw32* | cegcc*) adam@0: # When not using gcc, we currently assume that we are using adam@0: # Microsoft Visual C++. adam@0: # hardcode_libdir_flag_spec is actually meaningless, as there is adam@0: # no search path for DLLs. adam@12: case $cc_basename in adam@12: cl*) adam@12: # Native MSVC adam@12: hardcode_libdir_flag_spec=' ' adam@12: allow_undefined_flag=unsupported adam@12: always_export_symbols=yes adam@12: file_list_spec='@' adam@12: # Tell ltmain to make .lib files, not .a files. adam@12: libext=lib adam@12: # Tell ltmain to make .dll files, not .so files. adam@12: shrext_cmds=".dll" adam@12: # FIXME: Setting linknames here is a bad hack. adam@12: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' adam@12: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then adam@12: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; adam@12: else adam@12: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; adam@12: fi~ adam@12: $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@12: linknames=' adam@12: # The linker will not automatically build a static lib if we build a DLL. adam@12: # _LT_TAGVAR(old_archive_from_new_cmds, )='true' adam@12: enable_shared_with_static_runtimes=yes adam@12: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' adam@12: # Don't use ranlib adam@12: old_postinstall_cmds='chmod 644 $oldlib' adam@12: postlink_cmds='lt_outputfile="@OUTPUT@"~ adam@12: lt_tool_outputfile="@TOOL_OUTPUT@"~ adam@12: case $lt_outputfile in adam@12: *.exe|*.EXE) ;; adam@12: *) adam@12: lt_outputfile="$lt_outputfile.exe" adam@12: lt_tool_outputfile="$lt_tool_outputfile.exe" adam@12: ;; adam@12: esac~ adam@12: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then adam@12: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; adam@12: $RM "$lt_outputfile.manifest"; adam@12: fi' adam@12: ;; adam@12: *) adam@12: # Assume MSVC wrapper adam@12: hardcode_libdir_flag_spec=' ' adam@12: allow_undefined_flag=unsupported adam@12: # Tell ltmain to make .lib files, not .a files. adam@12: libext=lib adam@12: # Tell ltmain to make .dll files, not .so files. adam@12: shrext_cmds=".dll" adam@12: # FIXME: Setting linknames here is a bad hack. adam@12: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' adam@12: # The linker will automatically build a .lib file if we build a DLL. adam@12: old_archive_from_new_cmds='true' adam@12: # FIXME: Should let the user specify the lib program. adam@12: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' adam@12: enable_shared_with_static_runtimes=yes adam@12: ;; adam@12: esac adam@0: ;; adam@0: adam@0: darwin* | rhapsody*) adam@0: adam@0: adam@0: archive_cmds_need_lc=no adam@0: hardcode_direct=no adam@0: hardcode_automatic=yes adam@0: hardcode_shlibpath_var=unsupported adam@12: if test "$lt_cv_ld_force_load" = "yes"; then adam@12: 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@12: else adam@12: whole_archive_flag_spec='' adam@12: fi adam@0: link_all_deplibs=yes adam@0: allow_undefined_flag="$_lt_dar_allow_undefined" adam@0: case $cc_basename in adam@0: ifort*) _lt_dar_can_shared=yes ;; adam@0: *) _lt_dar_can_shared=$GCC ;; adam@0: esac adam@0: if test "$_lt_dar_can_shared" = "yes"; then adam@12: output_verbose_link_cmd=func_echo_all adam@0: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" adam@0: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" adam@0: 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}" adam@0: 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}" adam@0: adam@0: else adam@0: ld_shlibs=no adam@0: fi adam@0: adam@0: ;; adam@0: adam@0: dgux*) adam@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_libdir_flag_spec='-L$libdir' adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: freebsd1*) adam@0: ld_shlibs=no adam@0: ;; adam@0: adam@0: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor adam@0: # support. Future versions do this automatically, but an explicit c++rt0.o adam@0: # does not break anything, and helps significantly (at the cost of a little adam@0: # extra space). adam@0: freebsd2.2*) adam@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' adam@0: hardcode_libdir_flag_spec='-R$libdir' adam@0: hardcode_direct=yes adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: # Unfortunately, older versions of FreeBSD 2 do not have this feature. adam@0: freebsd2*) adam@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_direct=yes adam@0: hardcode_minus_L=yes adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. adam@0: freebsd* | dragonfly*) adam@12: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' adam@0: hardcode_libdir_flag_spec='-R$libdir' adam@0: hardcode_direct=yes adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: hpux9*) adam@0: if test "$GCC" = yes; then adam@12: 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' adam@0: else adam@0: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' adam@0: fi adam@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' adam@0: hardcode_libdir_separator=: adam@0: hardcode_direct=yes adam@0: adam@0: # hardcode_minus_L: Not really in the search PATH, adam@0: # but as the default location of the library. adam@0: hardcode_minus_L=yes adam@0: export_dynamic_flag_spec='${wl}-E' adam@0: ;; adam@0: adam@0: hpux10*) adam@12: if test "$GCC" = yes && test "$with_gnu_ld" = no; then adam@12: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' adam@0: else adam@0: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' adam@0: fi adam@0: if test "$with_gnu_ld" = no; then adam@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' adam@0: hardcode_libdir_flag_spec_ld='+b $libdir' adam@0: hardcode_libdir_separator=: adam@0: hardcode_direct=yes adam@0: hardcode_direct_absolute=yes adam@0: export_dynamic_flag_spec='${wl}-E' adam@0: # hardcode_minus_L: Not really in the search PATH, adam@0: # but as the default location of the library. adam@0: hardcode_minus_L=yes adam@0: fi adam@0: ;; adam@0: adam@0: hpux11*) adam@12: if test "$GCC" = yes && test "$with_gnu_ld" = no; then adam@0: case $host_cpu in adam@0: hppa*64*) adam@0: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: ;; adam@0: ia64*) adam@12: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' adam@0: ;; adam@0: *) adam@12: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' adam@0: ;; adam@0: esac adam@0: else adam@0: case $host_cpu in adam@0: hppa*64*) adam@0: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: ;; adam@0: ia64*) adam@0: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' adam@0: ;; adam@0: *) adam@12: adam@12: # Older versions of the 11.00 compiler do not understand -b yet adam@12: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 adam@12: $as_echo_n "checking if $CC understands -b... " >&6; } adam@12: if ${lt_cv_prog_compiler__b+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: lt_cv_prog_compiler__b=no adam@12: save_LDFLAGS="$LDFLAGS" adam@12: LDFLAGS="$LDFLAGS -b" adam@12: echo "$lt_simple_link_test_code" > conftest.$ac_ext adam@12: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then adam@12: # The linker can only warn and ignore the option if not recognized adam@12: # So say no if there are warnings adam@12: if test -s conftest.err; then adam@12: # Append any errors to the config.log. adam@12: cat conftest.err 1>&5 adam@12: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp adam@12: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 adam@12: if diff conftest.exp conftest.er2 >/dev/null; then adam@12: lt_cv_prog_compiler__b=yes adam@12: fi adam@12: else adam@12: lt_cv_prog_compiler__b=yes adam@12: fi adam@12: fi adam@12: $RM -r conftest* adam@12: LDFLAGS="$save_LDFLAGS" adam@12: adam@12: fi adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 adam@12: $as_echo "$lt_cv_prog_compiler__b" >&6; } adam@12: adam@12: if test x"$lt_cv_prog_compiler__b" = xyes; then adam@12: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' adam@12: else adam@12: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' adam@12: fi adam@12: adam@0: ;; adam@0: esac adam@0: fi adam@0: if test "$with_gnu_ld" = no; then adam@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' adam@0: hardcode_libdir_separator=: adam@0: adam@0: case $host_cpu in adam@0: hppa*64*|ia64*) adam@0: hardcode_direct=no adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: *) adam@0: hardcode_direct=yes adam@0: hardcode_direct_absolute=yes adam@0: export_dynamic_flag_spec='${wl}-E' adam@0: adam@0: # hardcode_minus_L: Not really in the search PATH, adam@0: # but as the default location of the library. adam@0: hardcode_minus_L=yes adam@0: ;; adam@0: esac adam@0: fi adam@0: ;; adam@0: adam@0: irix5* | irix6* | nonstopux*) adam@0: if test "$GCC" = yes; then adam@12: 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' adam@0: # Try to use the -exported_symbol ld option, if it does not adam@0: # work, assume that -exports_file does not work either and adam@0: # implicitly export all symbols. adam@12: # This should be the same for all languages, so no per-tag cache variable. adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 adam@12: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } adam@12: if ${lt_cv_irix_exported_symbol+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: save_LDFLAGS="$LDFLAGS" adam@12: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" adam@12: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@12: int foo (void) { return 0; } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@12: lt_cv_irix_exported_symbol=yes adam@12: else adam@12: lt_cv_irix_exported_symbol=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@12: LDFLAGS="$save_LDFLAGS" adam@12: fi adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 adam@12: $as_echo "$lt_cv_irix_exported_symbol" >&6; } adam@12: if test "$lt_cv_irix_exported_symbol" = yes; then adam@12: 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@12: fi adam@0: else adam@12: 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@12: 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' adam@0: fi adam@0: archive_cmds_need_lc='no' adam@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adam@0: hardcode_libdir_separator=: adam@0: inherit_rpath=yes adam@0: link_all_deplibs=yes adam@0: ;; adam@0: adam@0: netbsd* | netbsdelf*-gnu) adam@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then adam@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out adam@0: else adam@0: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF adam@0: fi adam@0: hardcode_libdir_flag_spec='-R$libdir' adam@0: hardcode_direct=yes adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: newsos6) adam@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_direct=yes adam@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adam@0: hardcode_libdir_separator=: adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: *nto* | *qnx*) adam@0: ;; adam@0: adam@0: openbsd*) adam@0: if test -f /usr/libexec/ld.so; then adam@0: hardcode_direct=yes adam@0: hardcode_shlibpath_var=no adam@0: hardcode_direct_absolute=yes adam@0: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then adam@0: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' adam@0: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' adam@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' adam@0: export_dynamic_flag_spec='${wl}-E' adam@0: else adam@0: case $host_os in adam@0: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) adam@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_libdir_flag_spec='-R$libdir' adam@0: ;; adam@0: *) adam@0: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' adam@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' adam@0: ;; adam@0: esac adam@0: fi adam@0: else adam@0: ld_shlibs=no adam@0: fi adam@0: ;; adam@0: adam@0: os2*) adam@0: hardcode_libdir_flag_spec='-L$libdir' adam@0: hardcode_minus_L=yes adam@0: allow_undefined_flag=unsupported adam@12: 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' adam@0: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' adam@0: ;; adam@0: adam@0: osf3*) adam@0: if test "$GCC" = yes; then adam@0: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' adam@12: 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' adam@0: else adam@0: allow_undefined_flag=' -expect_unresolved \*' adam@12: 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' adam@0: fi adam@0: archive_cmds_need_lc='no' adam@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adam@0: hardcode_libdir_separator=: adam@0: ;; adam@0: adam@0: osf4* | osf5*) # as osf3* with the addition of -msym flag adam@0: if test "$GCC" = yes; then adam@0: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' adam@12: 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' adam@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' adam@0: else adam@0: allow_undefined_flag=' -expect_unresolved \*' adam@12: 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' adam@0: 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@12: $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' adam@0: adam@0: # Both c and cxx compiler support -rpath directly adam@0: hardcode_libdir_flag_spec='-rpath $libdir' adam@0: fi adam@0: archive_cmds_need_lc='no' adam@0: hardcode_libdir_separator=: adam@0: ;; adam@0: adam@0: solaris*) adam@0: no_undefined_flag=' -z defs' adam@0: if test "$GCC" = yes; then adam@0: wlarc='${wl}' adam@12: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ adam@12: $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' adam@0: else adam@0: case `$CC -V 2>&1` in adam@0: *"Compilers 5.0"*) adam@0: wlarc='' adam@0: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' adam@0: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ adam@0: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' adam@0: ;; adam@0: *) adam@0: wlarc='${wl}' adam@0: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ adam@0: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' adam@0: ;; adam@0: esac adam@0: fi adam@0: hardcode_libdir_flag_spec='-R$libdir' adam@0: hardcode_shlibpath_var=no adam@0: case $host_os in adam@0: solaris2.[0-5] | solaris2.[0-5].*) ;; adam@0: *) adam@0: # The compiler driver will combine and reorder linker options, adam@0: # but understands `-z linker_flag'. GCC discards it without `$wl', adam@0: # but is careful enough not to reorder. adam@0: # Supported since Solaris 2.6 (maybe 2.5.1?) adam@0: if test "$GCC" = yes; then adam@0: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' adam@0: else adam@0: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' adam@0: fi adam@0: ;; adam@0: esac adam@0: link_all_deplibs=yes adam@0: ;; adam@0: adam@0: sunos4*) adam@0: if test "x$host_vendor" = xsequent; then adam@0: # Use $CC to link under sequent, because it throws in some extra .o adam@0: # files that make .init and .fini sections work. adam@0: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: else adam@0: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' adam@0: fi adam@0: hardcode_libdir_flag_spec='-L$libdir' adam@0: hardcode_direct=yes adam@0: hardcode_minus_L=yes adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: sysv4) adam@0: case $host_vendor in adam@0: sni) adam@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_direct=yes # is this really true??? adam@0: ;; adam@0: siemens) adam@0: ## LD is ld it makes a PLAMLIB adam@0: ## CC just makes a GrossModule. adam@0: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' adam@0: reload_cmds='$CC -r -o $output$reload_objs' adam@0: hardcode_direct=no adam@0: ;; adam@0: motorola) adam@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_direct=no #Motorola manual says yes, but my tests say they lie adam@0: ;; adam@0: esac adam@0: runpath_var='LD_RUN_PATH' adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: sysv4.3*) adam@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_shlibpath_var=no adam@0: export_dynamic_flag_spec='-Bexport' adam@0: ;; adam@0: adam@0: sysv4*MP*) adam@0: if test -d /usr/nec; then adam@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_shlibpath_var=no adam@0: runpath_var=LD_RUN_PATH adam@0: hardcode_runpath_var=yes adam@0: ld_shlibs=yes adam@0: fi adam@0: ;; adam@0: adam@0: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) adam@0: no_undefined_flag='${wl}-z,text' adam@0: archive_cmds_need_lc=no adam@0: hardcode_shlibpath_var=no adam@0: runpath_var='LD_RUN_PATH' adam@0: adam@0: if test "$GCC" = yes; then adam@0: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: else adam@0: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: fi adam@0: ;; adam@0: adam@0: sysv5* | sco3.2v5* | sco5v6*) adam@0: # Note: We can NOT use -z defs as we might desire, because we do not adam@0: # link with -lc, and that would cause any symbols used from libc to adam@0: # always be unresolved, which means just about no library would adam@0: # ever link correctly. If we're not using GNU ld we use -z text adam@0: # though, which does catch some bad symbols but isn't as heavy-handed adam@0: # as -z defs. adam@0: no_undefined_flag='${wl}-z,text' adam@0: allow_undefined_flag='${wl}-z,nodefs' adam@0: archive_cmds_need_lc=no adam@0: hardcode_shlibpath_var=no adam@0: hardcode_libdir_flag_spec='${wl}-R,$libdir' adam@0: hardcode_libdir_separator=':' adam@0: link_all_deplibs=yes adam@0: export_dynamic_flag_spec='${wl}-Bexport' adam@0: runpath_var='LD_RUN_PATH' adam@0: adam@0: if test "$GCC" = yes; then adam@0: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: else adam@0: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' adam@0: fi adam@0: ;; adam@0: adam@0: uts4*) adam@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' adam@0: hardcode_libdir_flag_spec='-L$libdir' adam@0: hardcode_shlibpath_var=no adam@0: ;; adam@0: adam@0: *) adam@0: ld_shlibs=no adam@0: ;; adam@0: esac adam@0: adam@0: if test x$host_vendor = xsni; then adam@0: case $host in adam@0: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) adam@0: export_dynamic_flag_spec='${wl}-Blargedynsym' adam@0: ;; adam@0: esac adam@0: fi adam@0: fi adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 adam@0: $as_echo "$ld_shlibs" >&6; } adam@0: test "$ld_shlibs" = no && can_build_shared=no adam@0: adam@0: with_gnu_ld=$with_gnu_ld adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # adam@0: # Do we need to explicitly link libc? adam@0: # adam@0: case "x$archive_cmds_need_lc" in adam@0: x|xyes) adam@0: # Assume -lc should be added adam@0: archive_cmds_need_lc=yes adam@0: adam@0: if test "$enable_shared" = yes && test "$GCC" = yes; then adam@0: case $archive_cmds in adam@0: *'~'*) adam@0: # FIXME: we may have to deal with multi-command sequences. adam@0: ;; adam@0: '$CC '*) adam@0: # Test whether the compiler implicitly links with -lc since on some adam@0: # systems, -lgcc has to come before -lc. If gcc already passes -lc adam@0: # to ld, don't add -lc before -lgcc. adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 adam@0: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } adam@12: if ${lt_cv_archive_cmds_need_lc+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: $RM conftest* adam@12: echo "$lt_simple_compile_test_code" > conftest.$ac_ext adam@12: adam@12: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 adam@0: (eval $ac_compile) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } 2>conftest.err; then adam@12: soname=conftest adam@12: lib=conftest adam@12: libobjs=conftest.$ac_objext adam@12: deplibs= adam@12: wl=$lt_prog_compiler_wl adam@12: pic_flag=$lt_prog_compiler_pic adam@12: compiler_flags=-v adam@12: linker_flags=-v adam@12: verstring= adam@12: output_objdir=. adam@12: libname=conftest adam@12: lt_save_allow_undefined_flag=$allow_undefined_flag adam@12: allow_undefined_flag= adam@12: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 adam@0: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } adam@12: then adam@12: lt_cv_archive_cmds_need_lc=no adam@12: else adam@12: lt_cv_archive_cmds_need_lc=yes adam@12: fi adam@12: allow_undefined_flag=$lt_save_allow_undefined_flag adam@12: else adam@12: cat conftest.err 1>&5 adam@12: fi adam@12: $RM conftest* adam@12: adam@12: fi adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 adam@12: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } adam@12: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc adam@0: ;; adam@0: esac adam@0: fi adam@0: ;; adam@0: esac adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 adam@0: $as_echo_n "checking dynamic linker characteristics... " >&6; } adam@0: adam@0: if test "$GCC" = yes; then adam@0: case $host_os in adam@0: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; adam@0: *) lt_awk_arg="/^libraries:/" ;; adam@0: esac adam@12: case $host_os in adam@12: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; adam@12: *) lt_sed_strip_eq="s,=/,/,g" ;; adam@12: esac adam@12: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` adam@12: case $lt_search_path_spec in adam@12: *\;*) adam@0: # if the path contains ";" then we assume it to be the separator adam@0: # otherwise default to the standard path separator (i.e. ":") - it is adam@0: # assumed that no part of a normal pathname contains ";" but that should adam@0: # okay in the real world where ";" in dirpaths is itself problematic. adam@12: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` adam@12: ;; adam@12: *) adam@12: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` adam@12: ;; adam@12: esac adam@0: # Ok, now we have the path, separated by spaces, we can step through it adam@0: # and add multilib dir if necessary. adam@0: lt_tmp_lt_search_path_spec= adam@0: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` adam@0: for lt_sys_path in $lt_search_path_spec; do adam@0: if test -d "$lt_sys_path/$lt_multi_os_dir"; then adam@0: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" adam@0: else adam@0: test -d "$lt_sys_path" && \ adam@0: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" adam@0: fi adam@0: done adam@12: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' adam@0: BEGIN {RS=" "; FS="/|\n";} { adam@0: lt_foo=""; adam@0: lt_count=0; adam@0: for (lt_i = NF; lt_i > 0; lt_i--) { adam@0: if ($lt_i != "" && $lt_i != ".") { adam@0: if ($lt_i == "..") { adam@0: lt_count++; adam@0: } else { adam@0: if (lt_count == 0) { adam@0: lt_foo="/" $lt_i lt_foo; adam@0: } else { adam@0: lt_count--; adam@0: } adam@0: } adam@0: } adam@0: } adam@0: if (lt_foo != "") { lt_freq[lt_foo]++; } adam@0: if (lt_freq[lt_foo] == 1) { print lt_foo; } adam@0: }'` adam@12: # AWK program above erroneously prepends '/' to C:/dos/paths adam@12: # for these hosts. adam@12: case $host_os in adam@12: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ adam@12: $SED 's,/\([A-Za-z]:\),\1,g'` ;; adam@12: esac adam@12: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` adam@0: else adam@0: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" adam@0: fi adam@0: library_names_spec= adam@0: libname_spec='lib$name' adam@0: soname_spec= adam@0: shrext_cmds=".so" adam@0: postinstall_cmds= adam@0: postuninstall_cmds= adam@0: finish_cmds= adam@0: finish_eval= adam@0: shlibpath_var= adam@0: shlibpath_overrides_runpath=unknown adam@0: version_type=none adam@0: dynamic_linker="$host_os ld.so" adam@0: sys_lib_dlsearch_path_spec="/lib /usr/lib" adam@0: need_lib_prefix=unknown adam@0: hardcode_into_libs=no adam@0: adam@0: # when you set need_version to no, make sure it does not cause -set_version adam@0: # flags to be left without arguments adam@0: need_version=unknown adam@0: adam@0: case $host_os in adam@0: aix3*) adam@0: version_type=linux adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' adam@0: shlibpath_var=LIBPATH adam@0: adam@0: # AIX 3 has no versioning support, so we append a major version to the name. adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: ;; adam@0: adam@0: aix[4-9]*) adam@0: version_type=linux adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: hardcode_into_libs=yes adam@0: if test "$host_cpu" = ia64; then adam@0: # AIX 5 supports IA64 adam@0: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: else adam@0: # With GCC up to 2.95.x, collect2 would create an import file adam@0: # for dependence libraries. The import file would start with adam@0: # the line `#! .'. This would cause the generated library to adam@0: # depend on `.', always an invalid library. This was fixed in adam@0: # development snapshots of GCC prior to 3.0. adam@0: case $host_os in adam@0: aix4 | aix4.[01] | aix4.[01].*) adam@0: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' adam@0: echo ' yes ' adam@0: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then adam@0: : adam@0: else adam@0: can_build_shared=no adam@0: fi adam@0: ;; adam@0: esac adam@0: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct adam@0: # soname into executable. Probably we can add versioning support to adam@0: # collect2, so additional links can be useful in future. adam@0: if test "$aix_use_runtimelinking" = yes; then adam@0: # If using run time linking (on AIX 4.2 or later) use lib.so adam@0: # instead of lib.a to let people know that these are not adam@0: # typical AIX shared libraries. adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: else adam@0: # We preserve .a as extension for shared libraries through AIX4.2 adam@0: # and later when we are not doing run time linking. adam@0: library_names_spec='${libname}${release}.a $libname.a' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: fi adam@0: shlibpath_var=LIBPATH adam@0: fi adam@0: ;; adam@0: adam@0: amigaos*) adam@0: case $host_cpu in adam@0: powerpc) adam@0: # Since July 2007 AmigaOS4 officially supports .so libraries. adam@0: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: ;; adam@0: m68k) adam@0: library_names_spec='$libname.ixlibrary $libname.a' adam@0: # Create ${libname}_ixlibrary.a entries in /sys/libs. adam@12: 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' adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: beos*) adam@0: library_names_spec='${libname}${shared_ext}' adam@0: dynamic_linker="$host_os ld.so" adam@0: shlibpath_var=LIBRARY_PATH adam@0: ;; adam@0: adam@0: bsdi[45]*) adam@0: version_type=linux adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" adam@0: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" adam@0: # the default ld.so.conf also contains /usr/contrib/lib and adam@0: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow adam@0: # libtool to hard-code these into programs adam@0: ;; adam@0: adam@0: cygwin* | mingw* | pw32* | cegcc*) adam@0: version_type=windows adam@0: shrext_cmds=".dll" adam@0: need_version=no adam@0: need_lib_prefix=no adam@0: adam@12: case $GCC,$cc_basename in adam@12: yes,*) adam@12: # gcc adam@0: library_names_spec='$libname.dll.a' adam@0: # DLL is installed to $(libdir)/../bin by postinstall_cmds adam@0: postinstall_cmds='base_file=`basename \${file}`~ adam@0: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ adam@0: dldir=$destdir/`dirname \$dlpath`~ adam@0: test -d \$dldir || mkdir -p \$dldir~ adam@0: $install_prog $dir/$dlname \$dldir/$dlname~ adam@0: chmod a+x \$dldir/$dlname~ adam@0: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then adam@0: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; adam@0: fi' adam@0: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ adam@0: dlpath=$dir/\$dldll~ adam@0: $RM \$dlpath' adam@0: shlibpath_overrides_runpath=yes adam@0: adam@0: case $host_os in adam@0: cygwin*) adam@0: # Cygwin DLLs use 'cyg' prefix rather than 'lib' adam@0: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' adam@12: adam@12: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" adam@0: ;; adam@0: mingw* | cegcc*) adam@0: # MinGW DLLs use traditional 'lib' prefix adam@0: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' adam@0: ;; adam@0: pw32*) adam@0: # pw32 DLLs use 'pw' prefix rather than 'lib' adam@0: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' adam@0: ;; adam@0: esac adam@12: dynamic_linker='Win32 ld.exe' adam@12: ;; adam@12: adam@12: *,cl*) adam@12: # Native MSVC adam@12: libname_spec='$name' adam@12: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' adam@12: library_names_spec='${libname}.dll.lib' adam@12: adam@12: case $build_os in adam@12: mingw*) adam@12: sys_lib_search_path_spec= adam@12: lt_save_ifs=$IFS adam@12: IFS=';' adam@12: for lt_path in $LIB adam@12: do adam@12: IFS=$lt_save_ifs adam@12: # Let DOS variable expansion print the short 8.3 style file name. adam@12: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` adam@12: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" adam@12: done adam@12: IFS=$lt_save_ifs adam@12: # Convert to MSYS style. adam@12: 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@12: ;; adam@12: cygwin*) adam@12: # Convert to unix form, then to dos form, then back to unix form adam@12: # but this time dos style (no spaces!) so that the unix form looks adam@12: # like /cygdrive/c/PROGRA~1:/cygdr... adam@12: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` adam@12: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` adam@12: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` adam@12: ;; adam@12: *) adam@12: sys_lib_search_path_spec="$LIB" adam@12: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then adam@12: # It is most probably a Windows format PATH. adam@12: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` adam@12: else adam@12: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` adam@12: fi adam@12: # FIXME: find the short name or the path components, as spaces are adam@12: # common. (e.g. "Program Files" -> "PROGRA~1") adam@12: ;; adam@12: esac adam@12: adam@12: # DLL is installed to $(libdir)/../bin by postinstall_cmds adam@12: postinstall_cmds='base_file=`basename \${file}`~ adam@12: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ adam@12: dldir=$destdir/`dirname \$dlpath`~ adam@12: test -d \$dldir || mkdir -p \$dldir~ adam@12: $install_prog $dir/$dlname \$dldir/$dlname' adam@12: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ adam@12: dlpath=$dir/\$dldll~ adam@12: $RM \$dlpath' adam@12: shlibpath_overrides_runpath=yes adam@12: dynamic_linker='Win32 link.exe' adam@0: ;; adam@0: adam@0: *) adam@12: # Assume MSVC wrapper adam@0: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' adam@12: dynamic_linker='Win32 ld.exe' adam@0: ;; adam@0: esac adam@0: # FIXME: first we should search . and the directory the executable is in adam@0: shlibpath_var=PATH adam@0: ;; adam@0: adam@0: darwin* | rhapsody*) adam@0: dynamic_linker="$host_os dyld" adam@0: version_type=darwin adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' adam@0: soname_spec='${libname}${release}${major}$shared_ext' adam@0: shlibpath_overrides_runpath=yes adam@0: shlibpath_var=DYLD_LIBRARY_PATH adam@0: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' adam@0: adam@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" adam@0: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' adam@0: ;; adam@0: adam@0: dgux*) adam@0: version_type=linux adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: ;; adam@0: adam@0: freebsd1*) adam@0: dynamic_linker=no adam@0: ;; adam@0: adam@0: freebsd* | dragonfly*) adam@0: # DragonFly does not have aout. When/if they implement a new adam@0: # versioning mechanism, adjust this. adam@0: if test -x /usr/bin/objformat; then adam@0: objformat=`/usr/bin/objformat` adam@0: else adam@0: case $host_os in adam@0: freebsd[123]*) objformat=aout ;; adam@0: *) objformat=elf ;; adam@0: esac adam@0: fi adam@0: version_type=freebsd-$objformat adam@0: case $version_type in adam@0: freebsd-elf*) adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' adam@0: need_version=no adam@0: need_lib_prefix=no adam@0: ;; adam@0: freebsd-*) adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' adam@0: need_version=yes adam@0: ;; adam@0: esac adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: case $host_os in adam@0: freebsd2*) adam@0: shlibpath_overrides_runpath=yes adam@0: ;; adam@0: freebsd3.[01]* | freebsdelf3.[01]*) adam@0: shlibpath_overrides_runpath=yes adam@0: hardcode_into_libs=yes adam@0: ;; adam@0: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ adam@0: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) adam@0: shlibpath_overrides_runpath=no adam@0: hardcode_into_libs=yes adam@0: ;; adam@0: *) # from 4.6 on, and DragonFly adam@0: shlibpath_overrides_runpath=yes adam@0: hardcode_into_libs=yes adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: gnu*) adam@0: version_type=linux adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@12: shlibpath_overrides_runpath=no adam@12: hardcode_into_libs=yes adam@12: ;; adam@12: adam@12: haiku*) adam@12: version_type=linux adam@12: need_lib_prefix=no adam@12: need_version=no adam@12: dynamic_linker="$host_os runtime_loader" adam@12: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' adam@12: soname_spec='${libname}${release}${shared_ext}$major' adam@12: shlibpath_var=LIBRARY_PATH adam@12: shlibpath_overrides_runpath=yes adam@12: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' adam@0: hardcode_into_libs=yes adam@0: ;; adam@0: adam@0: hpux9* | hpux10* | hpux11*) adam@0: # Give a soname corresponding to the major version so that dld.sl refuses to adam@0: # link against other versions. adam@0: version_type=sunos adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: case $host_cpu in adam@0: ia64*) adam@0: shrext_cmds='.so' adam@0: hardcode_into_libs=yes adam@0: dynamic_linker="$host_os dld.so" adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: if test "X$HPUX_IA64_MODE" = X32; then adam@0: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" adam@0: else adam@0: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" adam@0: fi adam@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec adam@0: ;; adam@0: hppa*64*) adam@0: shrext_cmds='.sl' adam@0: hardcode_into_libs=yes adam@0: dynamic_linker="$host_os dld.sl" adam@0: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH adam@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" adam@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec adam@0: ;; adam@0: *) adam@0: shrext_cmds='.sl' adam@0: dynamic_linker="$host_os dld.sl" adam@0: shlibpath_var=SHLIB_PATH adam@0: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: ;; adam@0: esac adam@12: # HP-UX runs *really* slowly unless shared libraries are mode 555, ... adam@0: postinstall_cmds='chmod 555 $lib' adam@12: # or fails outright, so override atomically: adam@12: install_override_mode=555 adam@0: ;; adam@0: adam@0: interix[3-9]*) adam@0: version_type=linux adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=no adam@0: hardcode_into_libs=yes adam@0: ;; adam@0: adam@0: irix5* | irix6* | nonstopux*) adam@0: case $host_os in adam@0: nonstopux*) version_type=nonstopux ;; adam@0: *) adam@0: if test "$lt_cv_prog_gnu_ld" = yes; then adam@0: version_type=linux adam@0: else adam@0: version_type=irix adam@0: fi ;; adam@0: esac adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' adam@0: case $host_os in adam@0: irix5* | nonstopux*) adam@0: libsuff= shlibsuff= adam@0: ;; adam@0: *) adam@0: case $LD in # libtool.m4 will add one of these switches to LD adam@0: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") adam@0: libsuff= shlibsuff= libmagic=32-bit;; adam@0: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") adam@0: libsuff=32 shlibsuff=N32 libmagic=N32;; adam@0: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") adam@0: libsuff=64 shlibsuff=64 libmagic=64-bit;; adam@0: *) libsuff= shlibsuff= libmagic=never-match;; adam@0: esac adam@0: ;; adam@0: esac adam@0: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH adam@0: shlibpath_overrides_runpath=no adam@0: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" adam@0: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" adam@0: hardcode_into_libs=yes adam@0: ;; adam@0: adam@0: # No shared lib support for Linux oldld, aout, or coff. adam@0: linux*oldld* | linux*aout* | linux*coff*) adam@0: dynamic_linker=no adam@0: ;; adam@0: adam@0: # This must be Linux ELF. adam@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) adam@0: version_type=linux adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=no adam@12: adam@0: # Some binutils ld are patched to set DT_RUNPATH adam@12: if ${lt_cv_shlibpath_overrides_runpath+:} false; then : adam@12: $as_echo_n "(cached) " >&6 adam@12: else adam@12: lt_cv_shlibpath_overrides_runpath=no adam@12: save_LDFLAGS=$LDFLAGS adam@12: save_libdir=$libdir adam@12: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ adam@12: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" adam@12: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: int adam@0: main () adam@0: { adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : adam@12: lt_cv_shlibpath_overrides_runpath=yes adam@0: fi adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@12: LDFLAGS=$save_LDFLAGS adam@12: libdir=$save_libdir adam@12: adam@12: fi adam@12: adam@12: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath adam@0: adam@0: # This implies no fast_install, which is unacceptable. adam@0: # Some rework will be needed to allow for fast_install adam@0: # before this can be enabled. adam@0: hardcode_into_libs=yes adam@0: adam@0: # Append ld.so.conf contents to the search path adam@0: if test -f /etc/ld.so.conf; then adam@12: 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' ' '` adam@0: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" adam@0: fi adam@0: adam@0: # We used to test for /lib/ld.so.1 and disable shared libraries on adam@0: # powerpc, because MkLinux only supported shared libraries with the adam@0: # GNU dynamic linker. Since this was broken with cross compilers, adam@0: # most powerpc-linux boxes support dynamic linking these days and adam@0: # people can always --disable-shared, the test was removed, and we adam@0: # assume the GNU/Linux dynamic linker is in use. adam@0: dynamic_linker='GNU/Linux ld.so' adam@0: ;; adam@0: adam@0: netbsdelf*-gnu) adam@0: version_type=linux adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=no adam@0: hardcode_into_libs=yes adam@0: dynamic_linker='NetBSD ld.elf_so' adam@0: ;; adam@0: adam@0: netbsd*) adam@0: version_type=sunos adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' adam@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' adam@0: dynamic_linker='NetBSD (a.out) ld.so' adam@0: else adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: dynamic_linker='NetBSD ld.elf_so' adam@0: fi adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=yes adam@0: hardcode_into_libs=yes adam@0: ;; adam@0: adam@0: newsos6) adam@0: version_type=linux adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=yes adam@0: ;; adam@0: adam@0: *nto* | *qnx*) adam@0: version_type=qnx adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=no adam@0: hardcode_into_libs=yes adam@0: dynamic_linker='ldqnx.so' adam@0: ;; adam@0: adam@0: openbsd*) adam@0: version_type=sunos adam@0: sys_lib_dlsearch_path_spec="/usr/lib" adam@0: need_lib_prefix=no adam@0: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. adam@0: case $host_os in adam@0: openbsd3.3 | openbsd3.3.*) need_version=yes ;; adam@0: *) need_version=no ;; adam@0: esac adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' adam@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then adam@0: case $host_os in adam@0: openbsd2.[89] | openbsd2.[89].*) adam@0: shlibpath_overrides_runpath=no adam@0: ;; adam@0: *) adam@0: shlibpath_overrides_runpath=yes adam@0: ;; adam@0: esac adam@0: else adam@0: shlibpath_overrides_runpath=yes adam@0: fi adam@0: ;; adam@0: adam@0: os2*) adam@0: libname_spec='$name' adam@0: shrext_cmds=".dll" adam@0: need_lib_prefix=no adam@0: library_names_spec='$libname${shared_ext} $libname.a' adam@0: dynamic_linker='OS/2 ld.exe' adam@0: shlibpath_var=LIBPATH adam@0: ;; adam@0: adam@0: osf3* | osf4* | osf5*) adam@0: version_type=osf adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" adam@0: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" adam@0: ;; adam@0: adam@0: rdos*) adam@0: dynamic_linker=no adam@0: ;; adam@0: adam@0: solaris*) adam@0: version_type=linux adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=yes adam@0: hardcode_into_libs=yes adam@0: # ldd complains unless libraries are executable adam@0: postinstall_cmds='chmod +x $lib' adam@0: ;; adam@0: adam@0: sunos4*) adam@0: version_type=sunos adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' adam@0: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=yes adam@0: if test "$with_gnu_ld" = yes; then adam@0: need_lib_prefix=no adam@0: fi adam@0: need_version=yes adam@0: ;; adam@0: adam@0: sysv4 | sysv4.3*) adam@0: version_type=linux adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: case $host_vendor in adam@0: sni) adam@0: shlibpath_overrides_runpath=no adam@0: need_lib_prefix=no adam@0: runpath_var=LD_RUN_PATH adam@0: ;; adam@0: siemens) adam@0: need_lib_prefix=no adam@0: ;; adam@0: motorola) adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: shlibpath_overrides_runpath=no adam@0: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' adam@0: ;; adam@0: esac adam@0: ;; adam@0: adam@0: sysv4*MP*) adam@0: if test -d /usr/nec ;then adam@0: version_type=linux adam@0: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' adam@0: soname_spec='$libname${shared_ext}.$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: fi adam@0: ;; adam@0: adam@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) adam@0: version_type=freebsd-elf adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=yes adam@0: hardcode_into_libs=yes adam@0: if test "$with_gnu_ld" = yes; then adam@0: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' adam@0: else adam@0: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' adam@0: case $host_os in adam@0: sco3.2v5*) adam@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" adam@0: ;; adam@0: esac adam@0: fi adam@0: sys_lib_dlsearch_path_spec='/usr/lib' adam@0: ;; adam@0: adam@0: tpf*) adam@0: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. adam@0: version_type=linux adam@0: need_lib_prefix=no adam@0: need_version=no adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: shlibpath_overrides_runpath=no adam@0: hardcode_into_libs=yes adam@0: ;; adam@0: adam@0: uts4*) adam@0: version_type=linux adam@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' adam@0: soname_spec='${libname}${release}${shared_ext}$major' adam@0: shlibpath_var=LD_LIBRARY_PATH adam@0: ;; adam@0: adam@0: *) adam@0: dynamic_linker=no adam@0: ;; adam@0: esac adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 adam@0: $as_echo "$dynamic_linker" >&6; } adam@0: test "$dynamic_linker" = no && can_build_shared=no adam@0: adam@0: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" adam@0: if test "$GCC" = yes; then adam@0: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" adam@0: fi adam@0: adam@0: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then adam@0: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" adam@0: fi adam@0: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then adam@0: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@12: adam@12: adam@12: adam@12: adam@12: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 adam@0: $as_echo_n "checking how to hardcode library paths into programs... " >&6; } adam@0: hardcode_action= adam@0: if test -n "$hardcode_libdir_flag_spec" || adam@0: test -n "$runpath_var" || adam@0: test "X$hardcode_automatic" = "Xyes" ; then adam@0: adam@0: # We can hardcode non-existent directories. adam@0: if test "$hardcode_direct" != no && adam@0: # If the only mechanism to avoid hardcoding is shlibpath_var, we adam@0: # have to relink, otherwise we might link with an installed library adam@0: # when we should be linking with a yet-to-be-installed one adam@0: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && adam@0: test "$hardcode_minus_L" != no; then adam@0: # Linking always hardcodes the temporary library directory. adam@0: hardcode_action=relink adam@0: else adam@0: # We can link without hardcoding, and we can hardcode nonexisting dirs. adam@0: hardcode_action=immediate adam@0: fi adam@0: else adam@0: # We cannot hardcode anything, or else we can only hardcode existing adam@0: # directories. adam@0: hardcode_action=unsupported adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 adam@0: $as_echo "$hardcode_action" >&6; } adam@0: adam@0: if test "$hardcode_action" = relink || adam@0: test "$inherit_rpath" = yes; then adam@0: # Fast installation is not supported adam@0: enable_fast_install=no adam@0: elif test "$shlibpath_overrides_runpath" = yes || adam@0: test "$enable_shared" = no; then adam@0: # Fast installation is not necessary adam@0: enable_fast_install=needless adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: if test "x$enable_dlopen" != xyes; then adam@0: enable_dlopen=unknown adam@0: enable_dlopen_self=unknown adam@0: enable_dlopen_self_static=unknown adam@0: else adam@0: lt_cv_dlopen=no adam@0: lt_cv_dlopen_libs= adam@0: adam@0: case $host_os in adam@0: beos*) adam@0: lt_cv_dlopen="load_add_on" adam@0: lt_cv_dlopen_libs= adam@0: lt_cv_dlopen_self=yes adam@0: ;; adam@0: adam@0: mingw* | pw32* | cegcc*) adam@0: lt_cv_dlopen="LoadLibrary" adam@0: lt_cv_dlopen_libs= adam@0: ;; adam@0: adam@0: cygwin*) adam@0: lt_cv_dlopen="dlopen" adam@0: lt_cv_dlopen_libs= adam@0: ;; adam@0: adam@0: darwin*) adam@0: # if libdl is installed we need to link against it adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 adam@0: $as_echo_n "checking for dlopen in -ldl... " >&6; } adam@12: if ${ac_cv_lib_dl_dlopen+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_check_lib_save_LIBS=$LIBS adam@0: LIBS="-ldl $LIBS" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: /* Override any GCC internal prototype to avoid an error. adam@0: Use char because int might match the return type of a GCC adam@0: builtin and then its argument prototype would still apply. */ adam@0: #ifdef __cplusplus adam@0: extern "C" adam@0: #endif adam@0: char dlopen (); adam@0: int adam@0: main () adam@0: { adam@0: return dlopen (); adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: ac_cv_lib_dl_dlopen=yes adam@0: else adam@0: ac_cv_lib_dl_dlopen=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: LIBS=$ac_check_lib_save_LIBS adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 adam@0: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } adam@12: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : adam@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" adam@0: else adam@0: adam@0: lt_cv_dlopen="dyld" adam@0: lt_cv_dlopen_libs= adam@0: lt_cv_dlopen_self=yes adam@0: adam@0: fi adam@0: adam@0: ;; adam@0: adam@0: *) adam@0: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" adam@12: if test "x$ac_cv_func_shl_load" = xyes; then : adam@0: lt_cv_dlopen="shl_load" adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 adam@0: $as_echo_n "checking for shl_load in -ldld... " >&6; } adam@12: if ${ac_cv_lib_dld_shl_load+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_check_lib_save_LIBS=$LIBS adam@0: LIBS="-ldld $LIBS" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: /* Override any GCC internal prototype to avoid an error. adam@0: Use char because int might match the return type of a GCC adam@0: builtin and then its argument prototype would still apply. */ adam@0: #ifdef __cplusplus adam@0: extern "C" adam@0: #endif adam@0: char shl_load (); adam@0: int adam@0: main () adam@0: { adam@0: return shl_load (); adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: ac_cv_lib_dld_shl_load=yes adam@0: else adam@0: ac_cv_lib_dld_shl_load=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: LIBS=$ac_check_lib_save_LIBS adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 adam@0: $as_echo "$ac_cv_lib_dld_shl_load" >&6; } adam@12: if test "x$ac_cv_lib_dld_shl_load" = xyes; then : adam@0: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" adam@0: else adam@0: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" adam@12: if test "x$ac_cv_func_dlopen" = xyes; then : adam@0: lt_cv_dlopen="dlopen" adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 adam@0: $as_echo_n "checking for dlopen in -ldl... " >&6; } adam@12: if ${ac_cv_lib_dl_dlopen+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_check_lib_save_LIBS=$LIBS adam@0: LIBS="-ldl $LIBS" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: /* Override any GCC internal prototype to avoid an error. adam@0: Use char because int might match the return type of a GCC adam@0: builtin and then its argument prototype would still apply. */ adam@0: #ifdef __cplusplus adam@0: extern "C" adam@0: #endif adam@0: char dlopen (); adam@0: int adam@0: main () adam@0: { adam@0: return dlopen (); adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: ac_cv_lib_dl_dlopen=yes adam@0: else adam@0: ac_cv_lib_dl_dlopen=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: LIBS=$ac_check_lib_save_LIBS adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 adam@0: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } adam@12: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : adam@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 adam@0: $as_echo_n "checking for dlopen in -lsvld... " >&6; } adam@12: if ${ac_cv_lib_svld_dlopen+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_check_lib_save_LIBS=$LIBS adam@0: LIBS="-lsvld $LIBS" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: /* Override any GCC internal prototype to avoid an error. adam@0: Use char because int might match the return type of a GCC adam@0: builtin and then its argument prototype would still apply. */ adam@0: #ifdef __cplusplus adam@0: extern "C" adam@0: #endif adam@0: char dlopen (); adam@0: int adam@0: main () adam@0: { adam@0: return dlopen (); adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: ac_cv_lib_svld_dlopen=yes adam@0: else adam@0: ac_cv_lib_svld_dlopen=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: LIBS=$ac_check_lib_save_LIBS adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 adam@0: $as_echo "$ac_cv_lib_svld_dlopen" >&6; } adam@12: if test "x$ac_cv_lib_svld_dlopen" = xyes; then : adam@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 adam@0: $as_echo_n "checking for dld_link in -ldld... " >&6; } adam@12: if ${ac_cv_lib_dld_dld_link+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: ac_check_lib_save_LIBS=$LIBS adam@0: LIBS="-ldld $LIBS" adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: adam@0: /* Override any GCC internal prototype to avoid an error. adam@0: Use char because int might match the return type of a GCC adam@0: builtin and then its argument prototype would still apply. */ adam@0: #ifdef __cplusplus adam@0: extern "C" adam@0: #endif adam@0: char dld_link (); adam@0: int adam@0: main () adam@0: { adam@0: return dld_link (); adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: ac_cv_lib_dld_dld_link=yes adam@0: else adam@0: ac_cv_lib_dld_dld_link=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: LIBS=$ac_check_lib_save_LIBS adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 adam@0: $as_echo "$ac_cv_lib_dld_dld_link" >&6; } adam@12: if test "x$ac_cv_lib_dld_dld_link" = xyes; then : adam@0: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" adam@0: fi adam@0: adam@0: adam@0: fi adam@0: adam@0: adam@0: fi adam@0: adam@0: adam@0: fi adam@0: adam@0: adam@0: fi adam@0: adam@0: adam@0: fi adam@0: adam@0: ;; adam@0: esac adam@0: adam@0: if test "x$lt_cv_dlopen" != xno; then adam@0: enable_dlopen=yes adam@0: else adam@0: enable_dlopen=no adam@0: fi adam@0: adam@0: case $lt_cv_dlopen in adam@0: dlopen) adam@0: save_CPPFLAGS="$CPPFLAGS" adam@0: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" adam@0: adam@0: save_LDFLAGS="$LDFLAGS" adam@0: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" adam@0: adam@0: save_LIBS="$LIBS" adam@0: LIBS="$lt_cv_dlopen_libs $LIBS" adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 adam@0: $as_echo_n "checking whether a program can dlopen itself... " >&6; } adam@12: if ${lt_cv_dlopen_self+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test "$cross_compiling" = yes; then : adam@0: lt_cv_dlopen_self=cross adam@0: else adam@0: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 adam@0: lt_status=$lt_dlunknown adam@0: cat > conftest.$ac_ext <<_LT_EOF adam@12: #line $LINENO "configure" adam@0: #include "confdefs.h" adam@0: adam@0: #if HAVE_DLFCN_H adam@0: #include adam@0: #endif adam@0: adam@0: #include adam@0: adam@0: #ifdef RTLD_GLOBAL adam@0: # define LT_DLGLOBAL RTLD_GLOBAL adam@0: #else adam@0: # ifdef DL_GLOBAL adam@0: # define LT_DLGLOBAL DL_GLOBAL adam@0: # else adam@0: # define LT_DLGLOBAL 0 adam@0: # endif adam@0: #endif adam@0: adam@0: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we adam@0: find out it does not work in some platform. */ adam@0: #ifndef LT_DLLAZY_OR_NOW adam@0: # ifdef RTLD_LAZY adam@0: # define LT_DLLAZY_OR_NOW RTLD_LAZY adam@0: # else adam@0: # ifdef DL_LAZY adam@0: # define LT_DLLAZY_OR_NOW DL_LAZY adam@0: # else adam@0: # ifdef RTLD_NOW adam@0: # define LT_DLLAZY_OR_NOW RTLD_NOW adam@0: # else adam@0: # ifdef DL_NOW adam@0: # define LT_DLLAZY_OR_NOW DL_NOW adam@0: # else adam@0: # define LT_DLLAZY_OR_NOW 0 adam@0: # endif adam@0: # endif adam@0: # endif adam@0: # endif adam@0: #endif adam@0: adam@12: /* When -fvisbility=hidden is used, assume the code has been annotated adam@12: correspondingly for the symbols needed. */ adam@12: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) adam@12: int fnord () __attribute__((visibility("default"))); adam@12: #endif adam@12: adam@12: int fnord () { return 42; } adam@0: int main () adam@0: { adam@0: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); adam@0: int status = $lt_dlunknown; adam@0: adam@0: if (self) adam@0: { adam@0: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; adam@12: else adam@12: { adam@12: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; adam@12: else puts (dlerror ()); adam@12: } adam@0: /* dlclose (self); */ adam@0: } adam@0: else adam@0: puts (dlerror ()); adam@0: adam@0: return status; adam@0: } adam@0: _LT_EOF adam@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 adam@0: (eval $ac_link) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then adam@0: (./conftest; exit; ) >&5 2>/dev/null adam@0: lt_status=$? adam@0: case x$lt_status in adam@0: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; adam@0: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; adam@0: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; adam@0: esac adam@0: else : adam@0: # compilation failed adam@0: lt_cv_dlopen_self=no adam@0: fi adam@0: fi adam@0: rm -fr conftest* adam@0: adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 adam@0: $as_echo "$lt_cv_dlopen_self" >&6; } adam@0: adam@0: if test "x$lt_cv_dlopen_self" = xyes; then adam@0: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 adam@0: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } adam@12: if ${lt_cv_dlopen_self_static+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test "$cross_compiling" = yes; then : adam@0: lt_cv_dlopen_self_static=cross adam@0: else adam@0: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 adam@0: lt_status=$lt_dlunknown adam@0: cat > conftest.$ac_ext <<_LT_EOF adam@12: #line $LINENO "configure" adam@0: #include "confdefs.h" adam@0: adam@0: #if HAVE_DLFCN_H adam@0: #include adam@0: #endif adam@0: adam@0: #include adam@0: adam@0: #ifdef RTLD_GLOBAL adam@0: # define LT_DLGLOBAL RTLD_GLOBAL adam@0: #else adam@0: # ifdef DL_GLOBAL adam@0: # define LT_DLGLOBAL DL_GLOBAL adam@0: # else adam@0: # define LT_DLGLOBAL 0 adam@0: # endif adam@0: #endif adam@0: adam@0: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we adam@0: find out it does not work in some platform. */ adam@0: #ifndef LT_DLLAZY_OR_NOW adam@0: # ifdef RTLD_LAZY adam@0: # define LT_DLLAZY_OR_NOW RTLD_LAZY adam@0: # else adam@0: # ifdef DL_LAZY adam@0: # define LT_DLLAZY_OR_NOW DL_LAZY adam@0: # else adam@0: # ifdef RTLD_NOW adam@0: # define LT_DLLAZY_OR_NOW RTLD_NOW adam@0: # else adam@0: # ifdef DL_NOW adam@0: # define LT_DLLAZY_OR_NOW DL_NOW adam@0: # else adam@0: # define LT_DLLAZY_OR_NOW 0 adam@0: # endif adam@0: # endif adam@0: # endif adam@0: # endif adam@0: #endif adam@0: adam@12: /* When -fvisbility=hidden is used, assume the code has been annotated adam@12: correspondingly for the symbols needed. */ adam@12: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) adam@12: int fnord () __attribute__((visibility("default"))); adam@12: #endif adam@12: adam@12: int fnord () { return 42; } adam@0: int main () adam@0: { adam@0: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); adam@0: int status = $lt_dlunknown; adam@0: adam@0: if (self) adam@0: { adam@0: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; adam@12: else adam@12: { adam@12: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; adam@12: else puts (dlerror ()); adam@12: } adam@0: /* dlclose (self); */ adam@0: } adam@0: else adam@0: puts (dlerror ()); adam@0: adam@0: return status; adam@0: } adam@0: _LT_EOF adam@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 adam@0: (eval $ac_link) 2>&5 adam@0: ac_status=$? adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 adam@0: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then adam@0: (./conftest; exit; ) >&5 2>/dev/null adam@0: lt_status=$? adam@0: case x$lt_status in adam@0: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; adam@0: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; adam@0: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; adam@0: esac adam@0: else : adam@0: # compilation failed adam@0: lt_cv_dlopen_self_static=no adam@0: fi adam@0: fi adam@0: rm -fr conftest* adam@0: adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 adam@0: $as_echo "$lt_cv_dlopen_self_static" >&6; } adam@0: fi adam@0: adam@0: CPPFLAGS="$save_CPPFLAGS" adam@0: LDFLAGS="$save_LDFLAGS" adam@0: LIBS="$save_LIBS" adam@0: ;; adam@0: esac adam@0: adam@0: case $lt_cv_dlopen_self in adam@0: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; adam@0: *) enable_dlopen_self=unknown ;; adam@0: esac adam@0: adam@0: case $lt_cv_dlopen_self_static in adam@0: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; adam@0: *) enable_dlopen_self_static=unknown ;; adam@0: esac adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: striplib= adam@0: old_striplib= adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 adam@0: $as_echo_n "checking whether stripping libraries is possible... " >&6; } adam@0: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then adam@0: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" adam@0: test -z "$striplib" && striplib="$STRIP --strip-unneeded" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adam@0: $as_echo "yes" >&6; } adam@0: else adam@0: # FIXME - insert some real tests, host_os isn't really good enough adam@0: case $host_os in adam@0: darwin*) adam@0: if test -n "$STRIP" ; then adam@0: striplib="$STRIP -x" adam@0: old_striplib="$STRIP -S" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 adam@0: $as_echo "yes" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: ;; adam@0: *) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: ;; adam@0: esac adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # Report which library types will actually be built adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 adam@0: $as_echo_n "checking if libtool supports shared libraries... " >&6; } adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 adam@0: $as_echo "$can_build_shared" >&6; } adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 adam@0: $as_echo_n "checking whether to build shared libraries... " >&6; } adam@0: test "$can_build_shared" = "no" && enable_shared=no adam@0: adam@0: # On AIX, shared libraries and static libraries use the same namespace, and adam@0: # are all built from PIC. adam@0: case $host_os in adam@0: aix3*) adam@0: test "$enable_shared" = yes && enable_static=no adam@0: if test -n "$RANLIB"; then adam@0: archive_cmds="$archive_cmds~\$RANLIB \$lib" adam@0: postinstall_cmds='$RANLIB $lib' adam@0: fi adam@0: ;; adam@0: adam@0: aix[4-9]*) adam@0: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then adam@0: test "$enable_shared" = yes && enable_static=no adam@0: fi adam@0: ;; adam@0: esac adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 adam@0: $as_echo "$enable_shared" >&6; } adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 adam@0: $as_echo_n "checking whether to build static libraries... " >&6; } adam@0: # Make sure either enable_shared or enable_static is yes. adam@0: test "$enable_shared" = yes || enable_static=yes adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 adam@0: $as_echo "$enable_static" >&6; } adam@0: adam@0: adam@0: adam@0: adam@0: fi adam@0: ac_ext=c adam@0: ac_cpp='$CPP $CPPFLAGS' adam@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' adam@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' adam@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu adam@0: adam@0: CC="$lt_save_CC" adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: ac_config_commands="$ac_config_commands libtool" adam@0: adam@0: adam@0: adam@0: adam@0: # Only expand once: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: adam@0: # Check whether --with-libcurl was given. adam@0: if test "${with_libcurl+set}" = set; then : adam@0: withval=$with_libcurl; _libcurl_with=$withval adam@0: else adam@0: _libcurl_with=yes adam@0: fi adam@0: adam@0: adam@0: if test "$_libcurl_with" != "no" ; then adam@0: adam@0: for ac_prog in gawk mawk nawk awk adam@0: do adam@0: # Extract the first word of "$ac_prog", so it can be a program name with args. adam@0: set dummy $ac_prog; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_prog_AWK+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: if test -n "$AWK"; then adam@0: ac_cv_prog_AWK="$AWK" # Let the user override the test. adam@0: else adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_prog_AWK="$ac_prog" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: fi adam@0: fi adam@0: AWK=$ac_cv_prog_AWK adam@0: if test -n "$AWK"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 adam@0: $as_echo "$AWK" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: test -n "$AWK" && break adam@0: done adam@0: adam@0: adam@0: _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" adam@0: adam@0: _libcurl_try_link=yes adam@0: adam@0: if test -d "$_libcurl_with" ; then adam@0: LIBCURL_CPPFLAGS="-I$withval/include" adam@0: _libcurl_ldflags="-L$withval/lib" adam@0: # Extract the first word of "curl-config", so it can be a program name with args. adam@0: set dummy curl-config; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_path__libcurl_config+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: case $_libcurl_config in adam@0: [\\/]* | ?:[\\/]*) adam@0: ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. adam@0: ;; adam@0: *) adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in "$withval/bin" adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin"" adam@0: ;; adam@0: esac adam@0: fi adam@0: _libcurl_config=$ac_cv_path__libcurl_config adam@0: if test -n "$_libcurl_config"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 adam@0: $as_echo "$_libcurl_config" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: else adam@0: # Extract the first word of "curl-config", so it can be a program name with args. adam@0: set dummy curl-config; ac_word=$2 adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 adam@0: $as_echo_n "checking for $ac_word... " >&6; } adam@12: if ${ac_cv_path__libcurl_config+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: case $_libcurl_config in adam@0: [\\/]* | ?:[\\/]*) adam@0: ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. adam@0: ;; adam@0: *) adam@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: for ac_exec_ext in '' $ac_executable_extensions; do adam@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then adam@0: ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 adam@0: break 2 adam@0: fi adam@0: done adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: ;; adam@0: esac adam@0: fi adam@0: _libcurl_config=$ac_cv_path__libcurl_config adam@0: if test -n "$_libcurl_config"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 adam@0: $as_echo "$_libcurl_config" >&6; } adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 adam@0: $as_echo "no" >&6; } adam@0: fi adam@0: adam@0: adam@0: fi adam@0: adam@0: if test x$_libcurl_config != "x" ; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 adam@0: $as_echo_n "checking for the version of libcurl... " >&6; } adam@12: if ${libcurl_cv_lib_curl_version+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 adam@0: $as_echo "$libcurl_cv_lib_curl_version" >&6; } adam@0: adam@0: _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` adam@0: _libcurl_wanted=`echo 0 | $_libcurl_version_parse` adam@0: adam@0: if test $_libcurl_wanted -gt 0 ; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5 adam@0: $as_echo_n "checking for libcurl >= version ... " >&6; } adam@12: if ${libcurl_cv_lib_version_ok+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: adam@0: if test $_libcurl_version -ge $_libcurl_wanted ; then adam@0: libcurl_cv_lib_version_ok=yes adam@0: else adam@0: libcurl_cv_lib_version_ok=no adam@0: fi adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 adam@0: $as_echo "$libcurl_cv_lib_version_ok" >&6; } adam@0: fi adam@0: adam@0: if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then adam@0: if test x"$LIBCURL_CPPFLAGS" = "x" ; then adam@0: LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` adam@0: fi adam@0: if test x"$LIBCURL" = "x" ; then adam@0: LIBCURL=`$_libcurl_config --libs` adam@0: adam@0: # This is so silly, but Apple actually has a bug in their adam@0: # curl-config script. Fixed in Tiger, but there are still adam@0: # lots of Panther installs around. adam@0: case "${host}" in adam@0: powerpc-apple-darwin7*) adam@0: LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` adam@0: ;; adam@0: esac adam@0: fi adam@0: adam@0: # All curl-config scripts support --feature adam@0: _libcurl_features=`$_libcurl_config --feature` adam@0: adam@0: # Is it modern enough to have --protocols? (7.12.4) adam@0: if test $_libcurl_version -ge 461828 ; then adam@0: _libcurl_protocols=`$_libcurl_config --protocols` adam@0: fi adam@0: else adam@0: _libcurl_try_link=no adam@0: fi adam@0: adam@0: unset _libcurl_wanted adam@0: fi adam@0: adam@0: if test $_libcurl_try_link = yes ; then adam@0: adam@0: # we didn't find curl-config, so let's see if the user-supplied adam@0: # link line (or failing that, "-lcurl") is enough. adam@0: LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} adam@0: adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 adam@0: $as_echo_n "checking whether libcurl is usable... " >&6; } adam@12: if ${libcurl_cv_lib_curl_usable+:} false; then : adam@0: $as_echo_n "(cached) " >&6 adam@0: else adam@0: adam@0: _libcurl_save_cppflags=$CPPFLAGS adam@0: CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" adam@0: _libcurl_save_libs=$LIBS adam@0: LIBS="$LIBCURL $LIBS" adam@0: adam@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext adam@0: /* end confdefs.h. */ adam@0: #include adam@0: int adam@0: main () adam@0: { adam@0: adam@0: /* Try and use a few common options to force a failure if we are adam@0: missing symbols or can't link. */ adam@0: int x; adam@0: curl_easy_setopt(NULL,CURLOPT_URL,NULL); adam@0: x=CURL_ERROR_SIZE; adam@0: x=CURLOPT_WRITEFUNCTION; adam@0: x=CURLOPT_FILE; adam@0: x=CURLOPT_ERRORBUFFER; adam@0: x=CURLOPT_STDERR; adam@0: x=CURLOPT_VERBOSE; adam@0: adam@0: ; adam@0: return 0; adam@0: } adam@0: _ACEOF adam@0: if ac_fn_c_try_link "$LINENO"; then : adam@0: libcurl_cv_lib_curl_usable=yes adam@0: else adam@0: libcurl_cv_lib_curl_usable=no adam@0: fi adam@0: rm -f core conftest.err conftest.$ac_objext \ adam@0: conftest$ac_exeext conftest.$ac_ext adam@0: adam@0: CPPFLAGS=$_libcurl_save_cppflags adam@0: LIBS=$_libcurl_save_libs adam@0: unset _libcurl_save_cppflags adam@0: unset _libcurl_save_libs adam@0: adam@0: fi adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 adam@0: $as_echo "$libcurl_cv_lib_curl_usable" >&6; } adam@0: adam@0: if test $libcurl_cv_lib_curl_usable = yes ; then adam@0: adam@0: # Does curl_free() exist in this version of libcurl? adam@0: # If not, fake it with free() adam@0: adam@0: _libcurl_save_cppflags=$CPPFLAGS adam@0: CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" adam@0: _libcurl_save_libs=$LIBS adam@0: LIBS="$LIBS $LIBCURL" adam@0: adam@0: ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" adam@12: if test "x$ac_cv_func_curl_free" = xyes; then : adam@0: adam@0: else adam@0: adam@0: $as_echo "#define curl_free free" >>confdefs.h adam@0: adam@0: fi adam@0: adam@0: adam@0: CPPFLAGS=$_libcurl_save_cppflags adam@0: LIBS=$_libcurl_save_libs adam@0: unset _libcurl_save_cppflags adam@0: unset _libcurl_save_libs adam@0: adam@0: adam@0: $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h adam@0: adam@0: adam@0: adam@0: adam@0: for _libcurl_feature in $_libcurl_features ; do adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 adam@0: _ACEOF adam@0: adam@0: eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes adam@0: done adam@0: adam@0: if test "x$_libcurl_protocols" = "x" ; then adam@0: adam@0: # We don't have --protocols, so just assume that all adam@0: # protocols are available adam@0: _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" adam@0: adam@0: if test x$libcurl_feature_SSL = xyes ; then adam@0: _libcurl_protocols="$_libcurl_protocols HTTPS" adam@0: adam@0: # FTPS wasn't standards-compliant until version adam@0: # 7.11.0 (0x070b00 == 461568) adam@0: if test $_libcurl_version -ge 461568; then adam@0: _libcurl_protocols="$_libcurl_protocols FTPS" adam@0: fi adam@0: fi adam@0: adam@0: # RTSP, IMAP, POP3 and SMTP were added in adam@0: # 7.20.0 (0x071400 == 463872) adam@0: if test $_libcurl_version -ge 463872; then adam@0: _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" adam@0: fi adam@0: fi adam@0: adam@0: for _libcurl_protocol in $_libcurl_protocols ; do adam@0: cat >>confdefs.h <<_ACEOF adam@0: #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 adam@0: _ACEOF adam@0: adam@0: eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes adam@0: done adam@0: else adam@0: unset LIBCURL adam@0: unset LIBCURL_CPPFLAGS adam@0: fi adam@0: fi adam@0: adam@0: unset _libcurl_try_link adam@0: unset _libcurl_version_parse adam@0: unset _libcurl_config adam@0: unset _libcurl_feature adam@0: unset _libcurl_features adam@0: unset _libcurl_protocol adam@0: unset _libcurl_protocols adam@0: unset _libcurl_version adam@0: unset _libcurl_ldflags adam@0: fi adam@0: adam@0: if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then adam@0: # This is the IF-NO path adam@0: echo "You must install libcurl development files."; exit 1 adam@0: else adam@0: # This is the IF-YES path adam@0: echo >/dev/null adam@0: fi adam@0: adam@0: unset _libcurl_with adam@0: adam@0: adam@0: if test $prefix = "NONE"; then adam@0: prefix=/usr/local adam@0: fi adam@0: adam@0: if test -z $LIB; then adam@0: LIB=$prefix/lib/urweb adam@0: fi adam@0: adam@0: if test -z $INCLUDE; then adam@0: INCLUDE=$prefix/include/urweb adam@0: fi adam@0: adam@0: adam@0: adam@0: adam@0: ac_config_files="$ac_config_files Makefile src/c/Makefile src/ur/config.urp" adam@0: adam@0: adam@0: cat >confcache <<\_ACEOF adam@0: # This file is a shell script that caches the results of configure adam@0: # tests run on this system so they can be shared between configure adam@0: # scripts and configure runs, see configure's option --config-cache. adam@0: # It is not useful on other systems. If it contains results you don't adam@0: # want to keep, you may remove or edit it. adam@0: # adam@0: # config.status only pays attention to the cache file if you give it adam@0: # the --recheck option to rerun configure. adam@0: # adam@0: # `ac_cv_env_foo' variables (set or unset) will be overridden when adam@0: # loading this file, other *unset* `ac_cv_foo' will be assigned the adam@0: # following values. adam@0: adam@0: _ACEOF adam@0: adam@0: # The following way of writing the cache mishandles newlines in values, adam@0: # but we know of no workaround that is simple, portable, and efficient. adam@0: # So, we kill variables containing newlines. adam@0: # Ultrix sh set writes to stderr and can't be redirected directly, adam@0: # and sets the high bit in the cache file unless we assign to the vars. adam@0: ( adam@0: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do adam@0: eval ac_val=\$$ac_var adam@0: case $ac_val in #( adam@0: *${as_nl}*) adam@0: case $ac_var in #( adam@0: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 adam@0: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; adam@0: esac adam@0: case $ac_var in #( adam@0: _ | IFS | as_nl) ;; #( adam@0: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( adam@0: *) { eval $ac_var=; unset $ac_var;} ;; adam@0: esac ;; adam@0: esac adam@0: done adam@0: adam@0: (set) 2>&1 | adam@0: case $as_nl`(ac_space=' '; set) 2>&1` in #( adam@0: *${as_nl}ac_space=\ *) adam@0: # `set' does not quote correctly, so add quotes: double-quote adam@0: # substitution turns \\\\ into \\, and sed turns \\ into \. adam@0: sed -n \ adam@0: "s/'/'\\\\''/g; adam@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" adam@0: ;; #( adam@0: *) adam@0: # `set' quotes correctly as required by POSIX, so do not add quotes. adam@0: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" adam@0: ;; adam@0: esac | adam@0: sort adam@0: ) | adam@0: sed ' adam@0: /^ac_cv_env_/b end adam@0: t clear adam@0: :clear adam@0: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ adam@0: t end adam@0: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ adam@0: :end' >>confcache adam@0: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else adam@0: if test -w "$cache_file"; then adam@12: if test "x$cache_file" != "x/dev/null"; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 adam@0: $as_echo "$as_me: updating cache $cache_file" >&6;} adam@12: if test ! -f "$cache_file" || test -h "$cache_file"; then adam@12: cat confcache >"$cache_file" adam@12: else adam@12: case $cache_file in #( adam@12: */* | ?:*) adam@12: mv -f confcache "$cache_file"$$ && adam@12: mv -f "$cache_file"$$ "$cache_file" ;; #( adam@12: *) adam@12: mv -f confcache "$cache_file" ;; adam@12: esac adam@12: fi adam@12: fi adam@0: else adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 adam@0: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} adam@0: fi adam@0: fi adam@0: rm -f confcache adam@0: adam@0: test "x$prefix" = xNONE && prefix=$ac_default_prefix adam@0: # Let make expand exec_prefix. adam@0: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' adam@0: adam@0: # Transform confdefs.h into DEFS. adam@0: # Protect against shell expansion while executing Makefile rules. adam@0: # Protect against Makefile macro expansion. adam@0: # adam@0: # If the first sed substitution is executed (which looks for macros that adam@0: # take arguments), then branch to the quote section. Otherwise, adam@0: # look for a macro that doesn't take arguments. adam@0: ac_script=' adam@0: :mline adam@0: /\\$/{ adam@0: N adam@0: s,\\\n,, adam@0: b mline adam@0: } adam@0: t clear adam@0: :clear adam@0: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g adam@0: t quote adam@0: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g adam@0: t quote adam@0: b any adam@0: :quote adam@0: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g adam@0: s/\[/\\&/g adam@0: s/\]/\\&/g adam@0: s/\$/$$/g adam@0: H adam@0: :any adam@0: ${ adam@0: g adam@0: s/^\n// adam@0: s/\n/ /g adam@0: p adam@0: } adam@0: ' adam@0: DEFS=`sed -n "$ac_script" confdefs.h` adam@0: adam@0: adam@0: ac_libobjs= adam@0: ac_ltlibobjs= adam@0: U= adam@0: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue adam@0: # 1. Remove the extension, and $U if already installed. adam@0: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' adam@0: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` adam@0: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR adam@0: # will be set to the directory where LIBOBJS objects are built. adam@0: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" adam@0: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' adam@0: done adam@0: LIBOBJS=$ac_libobjs adam@0: adam@0: LTLIBOBJS=$ac_ltlibobjs adam@0: adam@0: adam@0: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then adam@0: as_fn_error $? "conditional \"AMDEP\" was never defined. adam@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 adam@0: fi adam@0: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then adam@0: as_fn_error $? "conditional \"am__fastdepCC\" was never defined. adam@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 adam@0: fi adam@0: if test -n "$EXEEXT"; then adam@0: am__EXEEXT_TRUE= adam@0: am__EXEEXT_FALSE='#' adam@0: else adam@0: am__EXEEXT_TRUE='#' adam@0: am__EXEEXT_FALSE= adam@0: fi adam@0: adam@0: adam@12: : "${CONFIG_STATUS=./config.status}" adam@0: ac_write_fail=0 adam@0: ac_clean_files_save=$ac_clean_files adam@0: ac_clean_files="$ac_clean_files $CONFIG_STATUS" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 adam@0: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} adam@0: as_write_fail=0 adam@0: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 adam@0: #! $SHELL adam@0: # Generated by $as_me. adam@0: # Run this file to recreate the current configuration. adam@0: # Compiler output produced by configure, useful for debugging adam@0: # configure, is in config.log if it exists. adam@0: adam@0: debug=false adam@0: ac_cs_recheck=false adam@0: ac_cs_silent=false adam@0: adam@0: SHELL=\${CONFIG_SHELL-$SHELL} adam@0: export SHELL adam@0: _ASEOF adam@0: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 adam@0: ## -------------------- ## adam@0: ## M4sh Initialization. ## adam@0: ## -------------------- ## adam@0: adam@0: # Be more Bourne compatible adam@0: DUALCASE=1; export DUALCASE # for MKS sh adam@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : adam@0: emulate sh adam@0: NULLCMD=: adam@0: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which adam@0: # is contrary to our usage. Disable this feature. adam@0: alias -g '${1+"$@"}'='"$@"' adam@0: setopt NO_GLOB_SUBST adam@0: else adam@0: case `(set -o) 2>/dev/null` in #( adam@0: *posix*) : adam@0: set -o posix ;; #( adam@0: *) : adam@0: ;; adam@0: esac adam@0: fi adam@0: adam@0: adam@0: as_nl=' adam@0: ' adam@0: export as_nl adam@0: # Printing a long string crashes Solaris 7 /usr/bin/printf. adam@0: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' adam@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo adam@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo adam@0: # Prefer a ksh shell builtin over an external printf program on Solaris, adam@0: # but without wasting forks for bash or zsh. adam@0: if test -z "$BASH_VERSION$ZSH_VERSION" \ adam@0: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then adam@0: as_echo='print -r --' adam@0: as_echo_n='print -rn --' adam@0: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then adam@0: as_echo='printf %s\n' adam@0: as_echo_n='printf %s' adam@0: else adam@0: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then adam@0: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' adam@0: as_echo_n='/usr/ucb/echo -n' adam@0: else adam@0: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' adam@0: as_echo_n_body='eval adam@0: arg=$1; adam@0: case $arg in #( adam@0: *"$as_nl"*) adam@0: expr "X$arg" : "X\\(.*\\)$as_nl"; adam@0: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; adam@0: esac; adam@0: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" adam@0: ' adam@0: export as_echo_n_body adam@0: as_echo_n='sh -c $as_echo_n_body as_echo' adam@0: fi adam@0: export as_echo_body adam@0: as_echo='sh -c $as_echo_body as_echo' adam@0: fi adam@0: adam@0: # The user is always right. adam@0: if test "${PATH_SEPARATOR+set}" != set; then adam@0: PATH_SEPARATOR=: adam@0: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { adam@0: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || adam@0: PATH_SEPARATOR=';' adam@0: } adam@0: fi adam@0: adam@0: adam@0: # IFS adam@0: # We need space, tab and new line, in precisely that order. Quoting is adam@0: # there to prevent editors from complaining about space-tab. adam@0: # (If _AS_PATH_WALK were called with IFS unset, it would disable word adam@0: # splitting by setting IFS to empty value.) adam@0: IFS=" "" $as_nl" adam@0: adam@0: # Find who we are. Look in the path if we contain no directory separator. adam@12: as_myself= adam@0: case $0 in #(( adam@0: *[\\/]* ) as_myself=$0 ;; adam@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR adam@0: for as_dir in $PATH adam@0: do adam@0: IFS=$as_save_IFS adam@0: test -z "$as_dir" && as_dir=. adam@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break adam@0: done adam@0: IFS=$as_save_IFS adam@0: adam@0: ;; adam@0: esac adam@0: # We did not find ourselves, most probably we were run as `sh COMMAND' adam@0: # in which case we are not to be found in the path. adam@0: if test "x$as_myself" = x; then adam@0: as_myself=$0 adam@0: fi adam@0: if test ! -f "$as_myself"; then adam@0: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 adam@0: exit 1 adam@0: fi adam@0: adam@0: # Unset variables that we do not need and which cause bugs (e.g. in adam@0: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" adam@0: # suppresses any "Segmentation fault" message there. '((' could adam@0: # trigger a bug in pdksh 5.2.14. adam@0: for as_var in BASH_ENV ENV MAIL MAILPATH adam@0: do eval test x\${$as_var+set} = xset \ adam@0: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : adam@0: done adam@0: PS1='$ ' adam@0: PS2='> ' adam@0: PS4='+ ' adam@0: adam@0: # NLS nuisances. adam@0: LC_ALL=C adam@0: export LC_ALL adam@0: LANGUAGE=C adam@0: export LANGUAGE adam@0: adam@0: # CDPATH. adam@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH adam@0: adam@0: adam@0: # as_fn_error STATUS ERROR [LINENO LOG_FD] adam@0: # ---------------------------------------- adam@0: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are adam@0: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the adam@0: # script with STATUS, using 1 if that was 0. adam@0: as_fn_error () adam@0: { adam@0: as_status=$1; test $as_status -eq 0 && as_status=1 adam@0: if test "$4"; then adam@0: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack adam@0: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 adam@0: fi adam@0: $as_echo "$as_me: error: $2" >&2 adam@0: as_fn_exit $as_status adam@0: } # as_fn_error adam@0: adam@0: adam@0: # as_fn_set_status STATUS adam@0: # ----------------------- adam@0: # Set $? to STATUS, without forking. adam@0: as_fn_set_status () adam@0: { adam@0: return $1 adam@0: } # as_fn_set_status adam@0: adam@0: # as_fn_exit STATUS adam@0: # ----------------- adam@0: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. adam@0: as_fn_exit () adam@0: { adam@0: set +e adam@0: as_fn_set_status $1 adam@0: exit $1 adam@0: } # as_fn_exit adam@0: adam@0: # as_fn_unset VAR adam@0: # --------------- adam@0: # Portably unset VAR. adam@0: as_fn_unset () adam@0: { adam@0: { eval $1=; unset $1;} adam@0: } adam@0: as_unset=as_fn_unset adam@0: # as_fn_append VAR VALUE adam@0: # ---------------------- adam@0: # Append the text in VALUE to the end of the definition contained in VAR. Take adam@0: # advantage of any shell optimizations that allow amortized linear growth over adam@0: # repeated appends, instead of the typical quadratic growth present in naive adam@0: # implementations. adam@0: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : adam@0: eval 'as_fn_append () adam@0: { adam@0: eval $1+=\$2 adam@0: }' adam@0: else adam@0: as_fn_append () adam@0: { adam@0: eval $1=\$$1\$2 adam@0: } adam@0: fi # as_fn_append adam@0: adam@0: # as_fn_arith ARG... adam@0: # ------------------ adam@0: # Perform arithmetic evaluation on the ARGs, and store the result in the adam@0: # global $as_val. Take advantage of shells that can avoid forks. The arguments adam@0: # must be portable across $(()) and expr. adam@0: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : adam@0: eval 'as_fn_arith () adam@0: { adam@0: as_val=$(( $* )) adam@0: }' adam@0: else adam@0: as_fn_arith () adam@0: { adam@0: as_val=`expr "$@" || test $? -eq 1` adam@0: } adam@0: fi # as_fn_arith adam@0: adam@0: adam@0: if expr a : '\(a\)' >/dev/null 2>&1 && adam@0: test "X`expr 00001 : '.*\(...\)'`" = X001; then adam@0: as_expr=expr adam@0: else adam@0: as_expr=false adam@0: fi adam@0: adam@0: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then adam@0: as_basename=basename adam@0: else adam@0: as_basename=false adam@0: fi adam@0: adam@0: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then adam@0: as_dirname=dirname adam@0: else adam@0: as_dirname=false adam@0: fi adam@0: adam@0: as_me=`$as_basename -- "$0" || adam@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ adam@0: X"$0" : 'X\(//\)$' \| \ adam@0: X"$0" : 'X\(/\)' \| . 2>/dev/null || adam@0: $as_echo X/"$0" | adam@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\/\(\/\/\)$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\/\(\/\).*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: s/.*/./; q'` adam@0: adam@0: # Avoid depending upon Character Ranges. adam@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' adam@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' adam@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS adam@0: as_cr_digits='0123456789' adam@0: as_cr_alnum=$as_cr_Letters$as_cr_digits adam@0: adam@0: ECHO_C= ECHO_N= ECHO_T= adam@0: case `echo -n x` in #((((( adam@0: -n*) adam@0: case `echo 'xy\c'` in adam@0: *c*) ECHO_T=' ';; # ECHO_T is single tab character. adam@0: xy) ECHO_C='\c';; adam@0: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null adam@0: ECHO_T=' ';; adam@0: esac;; adam@0: *) adam@0: ECHO_N='-n';; adam@0: esac adam@0: adam@0: rm -f conf$$ conf$$.exe conf$$.file adam@0: if test -d conf$$.dir; then adam@0: rm -f conf$$.dir/conf$$.file adam@0: else adam@0: rm -f conf$$.dir adam@0: mkdir conf$$.dir 2>/dev/null adam@0: fi adam@0: if (echo >conf$$.file) 2>/dev/null; then adam@0: if ln -s conf$$.file conf$$ 2>/dev/null; then adam@0: as_ln_s='ln -s' adam@0: # ... but there are two gotchas: adam@0: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. adam@0: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. adam@0: # In both cases, we have to default to `cp -p'. adam@0: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || adam@0: as_ln_s='cp -p' adam@0: elif ln conf$$.file conf$$ 2>/dev/null; then adam@0: as_ln_s=ln adam@0: else adam@0: as_ln_s='cp -p' adam@0: fi adam@0: else adam@0: as_ln_s='cp -p' adam@0: fi adam@0: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file adam@0: rmdir conf$$.dir 2>/dev/null adam@0: adam@0: adam@0: # as_fn_mkdir_p adam@0: # ------------- adam@0: # Create "$as_dir" as a directory, including parents if necessary. adam@0: as_fn_mkdir_p () adam@0: { adam@0: adam@0: case $as_dir in #( adam@0: -*) as_dir=./$as_dir;; adam@0: esac adam@0: test -d "$as_dir" || eval $as_mkdir_p || { adam@0: as_dirs= adam@0: while :; do adam@0: case $as_dir in #( adam@0: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( adam@0: *) as_qdir=$as_dir;; adam@0: esac adam@0: as_dirs="'$as_qdir' $as_dirs" adam@0: as_dir=`$as_dirname -- "$as_dir" || adam@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adam@0: X"$as_dir" : 'X\(//\)[^/]' \| \ adam@0: X"$as_dir" : 'X\(//\)$' \| \ adam@0: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || adam@0: $as_echo X"$as_dir" | adam@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)[^/].*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\).*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: s/.*/./; q'` adam@0: test -d "$as_dir" && break adam@0: done adam@0: test -z "$as_dirs" || eval "mkdir $as_dirs" adam@0: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" adam@0: adam@0: adam@0: } # as_fn_mkdir_p adam@0: if mkdir -p . 2>/dev/null; then adam@0: as_mkdir_p='mkdir -p "$as_dir"' adam@0: else adam@0: test -d ./-p && rmdir ./-p adam@0: as_mkdir_p=false adam@0: fi adam@0: adam@0: if test -x / >/dev/null 2>&1; then adam@0: as_test_x='test -x' adam@0: else adam@0: if ls -dL / >/dev/null 2>&1; then adam@0: as_ls_L_option=L adam@0: else adam@0: as_ls_L_option= adam@0: fi adam@0: as_test_x=' adam@0: eval sh -c '\'' adam@0: if test -d "$1"; then adam@0: test -d "$1/."; adam@0: else adam@0: case $1 in #( adam@0: -*)set "./$1";; adam@0: esac; adam@0: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( adam@0: ???[sx]*):;;*)false;;esac;fi adam@0: '\'' sh adam@0: ' adam@0: fi adam@0: as_executable_p=$as_test_x adam@0: adam@0: # Sed expression to map a string onto a valid CPP name. adam@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" adam@0: adam@0: # Sed expression to map a string onto a valid variable name. adam@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" adam@0: adam@0: adam@0: exec 6>&1 adam@0: ## ----------------------------------- ## adam@0: ## Main body of $CONFIG_STATUS script. ## adam@0: ## ----------------------------------- ## adam@0: _ASEOF adam@0: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 adam@0: adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: # Save the log message, to keep $0 and so on meaningful, and to adam@0: # report actual input values of CONFIG_FILES etc. instead of their adam@0: # values after options handling. adam@0: ac_log=" adam@0: This file was extended by urweb_feed $as_me 1.0, which was adam@12: generated by GNU Autoconf 2.68. Invocation command line was adam@0: adam@0: CONFIG_FILES = $CONFIG_FILES adam@0: CONFIG_HEADERS = $CONFIG_HEADERS adam@0: CONFIG_LINKS = $CONFIG_LINKS adam@0: CONFIG_COMMANDS = $CONFIG_COMMANDS adam@0: $ $0 $@ adam@0: adam@0: on `(hostname || uname -n) 2>/dev/null | sed 1q` adam@0: " adam@0: adam@0: _ACEOF adam@0: adam@0: case $ac_config_files in *" adam@0: "*) set x $ac_config_files; shift; ac_config_files=$*;; adam@0: esac adam@0: adam@0: adam@0: adam@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@0: # Files that config.status was made for. adam@0: config_files="$ac_config_files" adam@0: config_commands="$ac_config_commands" adam@0: adam@0: _ACEOF adam@0: adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: ac_cs_usage="\ adam@0: \`$as_me' instantiates files and other configuration actions adam@0: from templates according to the current configuration. Unless the files adam@0: and actions are specified as TAGs, all are instantiated by default. adam@0: adam@0: Usage: $0 [OPTION]... [TAG]... adam@0: adam@0: -h, --help print this help, then exit adam@0: -V, --version print version number and configuration settings, then exit adam@0: --config print configuration, then exit adam@0: -q, --quiet, --silent adam@0: do not print progress messages adam@0: -d, --debug don't remove temporary files adam@0: --recheck update $as_me by reconfiguring in the same conditions adam@0: --file=FILE[:TEMPLATE] adam@0: instantiate the configuration file FILE adam@0: adam@0: Configuration files: adam@0: $config_files adam@0: adam@0: Configuration commands: adam@0: $config_commands adam@0: adam@0: Report bugs to the package provider." adam@0: adam@0: _ACEOF adam@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@0: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" adam@0: ac_cs_version="\\ adam@0: urweb_feed config.status 1.0 adam@12: configured by $0, generated by GNU Autoconf 2.68, adam@0: with options \\"\$ac_cs_config\\" adam@0: adam@0: Copyright (C) 2010 Free Software Foundation, Inc. adam@0: This config.status script is free software; the Free Software Foundation adam@0: gives unlimited permission to copy, distribute and modify it." adam@0: adam@0: ac_pwd='$ac_pwd' adam@0: srcdir='$srcdir' adam@0: INSTALL='$INSTALL' adam@0: MKDIR_P='$MKDIR_P' adam@0: AWK='$AWK' adam@0: test -n "\$AWK" || AWK=awk adam@0: _ACEOF adam@0: adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: # The default lists apply if the user does not specify any file. adam@0: ac_need_defaults=: adam@0: while test $# != 0 adam@0: do adam@0: case $1 in adam@0: --*=?*) adam@0: ac_option=`expr "X$1" : 'X\([^=]*\)='` adam@0: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` adam@0: ac_shift=: adam@0: ;; adam@0: --*=) adam@0: ac_option=`expr "X$1" : 'X\([^=]*\)='` adam@0: ac_optarg= adam@0: ac_shift=: adam@0: ;; adam@0: *) adam@0: ac_option=$1 adam@0: ac_optarg=$2 adam@0: ac_shift=shift adam@0: ;; adam@0: esac adam@0: adam@0: case $ac_option in adam@0: # Handling of the options. adam@0: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) adam@0: ac_cs_recheck=: ;; adam@0: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) adam@0: $as_echo "$ac_cs_version"; exit ;; adam@0: --config | --confi | --conf | --con | --co | --c ) adam@0: $as_echo "$ac_cs_config"; exit ;; adam@0: --debug | --debu | --deb | --de | --d | -d ) adam@0: debug=: ;; adam@0: --file | --fil | --fi | --f ) adam@0: $ac_shift adam@0: case $ac_optarg in adam@0: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; adam@0: '') as_fn_error $? "missing file argument" ;; adam@0: esac adam@0: as_fn_append CONFIG_FILES " '$ac_optarg'" adam@0: ac_need_defaults=false;; adam@0: --he | --h | --help | --hel | -h ) adam@0: $as_echo "$ac_cs_usage"; exit ;; adam@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ adam@0: | -silent | --silent | --silen | --sile | --sil | --si | --s) adam@0: ac_cs_silent=: ;; adam@0: adam@0: # This is an error. adam@0: -*) as_fn_error $? "unrecognized option: \`$1' adam@0: Try \`$0 --help' for more information." ;; adam@0: adam@0: *) as_fn_append ac_config_targets " $1" adam@0: ac_need_defaults=false ;; adam@0: adam@0: esac adam@0: shift adam@0: done adam@0: adam@0: ac_configure_extra_args= adam@0: adam@0: if $ac_cs_silent; then adam@0: exec 6>/dev/null adam@0: ac_configure_extra_args="$ac_configure_extra_args --silent" adam@0: fi adam@0: adam@0: _ACEOF adam@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@0: if \$ac_cs_recheck; then adam@0: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion adam@0: shift adam@0: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 adam@0: CONFIG_SHELL='$SHELL' adam@0: export CONFIG_SHELL adam@0: exec "\$@" adam@0: fi adam@0: adam@0: _ACEOF adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: exec 5>>config.log adam@0: { adam@0: echo adam@0: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX adam@0: ## Running $as_me. ## adam@0: _ASBOX adam@0: $as_echo "$ac_log" adam@0: } >&5 adam@0: adam@0: _ACEOF adam@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@0: # adam@0: # INIT-COMMANDS adam@0: # adam@0: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" adam@0: adam@0: adam@0: # The HP-UX ksh and POSIX shell print the target directory to stdout adam@0: # if CDPATH is set. adam@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH adam@0: adam@0: sed_quote_subst='$sed_quote_subst' adam@0: double_quote_subst='$double_quote_subst' adam@0: delay_variable_subst='$delay_variable_subst' adam@12: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' adam@12: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' adam@12: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' adam@12: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' adam@12: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' adam@12: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' adam@12: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' adam@12: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' adam@12: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' adam@12: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' adam@12: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' adam@12: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' adam@12: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' adam@12: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' adam@12: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' adam@12: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' adam@12: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' adam@12: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' adam@12: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' adam@12: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' adam@12: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' adam@12: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' adam@12: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' adam@12: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' adam@12: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' adam@12: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' adam@12: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' adam@12: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' adam@12: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' adam@12: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' adam@12: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' adam@12: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' adam@12: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' adam@12: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' adam@12: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' adam@12: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' adam@12: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' adam@12: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' adam@12: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' adam@12: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' adam@12: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' adam@12: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' adam@12: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' adam@12: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' adam@12: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' adam@12: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' adam@12: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' adam@12: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' adam@12: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' adam@12: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' adam@12: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' adam@12: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' adam@12: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' adam@12: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' adam@12: 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@12: 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@12: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' adam@12: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' adam@12: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' adam@12: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' adam@12: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' adam@12: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' adam@12: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' adam@12: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' adam@12: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' adam@12: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' adam@12: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' adam@12: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' adam@12: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' adam@12: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' adam@12: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' adam@12: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' adam@12: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' adam@12: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' adam@12: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' adam@12: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' adam@12: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' adam@12: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' adam@12: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' adam@12: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' adam@12: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' adam@12: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' adam@12: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' adam@12: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' adam@12: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' adam@12: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' adam@12: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' adam@12: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' adam@12: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' adam@12: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' adam@12: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' adam@12: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' adam@12: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' adam@12: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' adam@12: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' adam@12: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' adam@12: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' adam@12: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' adam@12: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' adam@12: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' adam@12: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' adam@12: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' adam@12: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' adam@12: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' adam@12: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' adam@12: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' adam@12: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' adam@12: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' adam@12: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' adam@12: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' adam@12: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' adam@12: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' adam@12: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' adam@12: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' adam@12: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' adam@12: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' adam@12: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' adam@12: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' adam@12: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' adam@12: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' adam@12: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' adam@0: adam@0: LTCC='$LTCC' adam@0: LTCFLAGS='$LTCFLAGS' adam@0: compiler='$compiler_DEFAULT' adam@0: adam@12: # A function that is used when there is no print builtin or printf. adam@12: func_fallback_echo () adam@12: { adam@12: eval 'cat <<_LTECHO_EOF adam@12: \$1 adam@12: _LTECHO_EOF' adam@12: } adam@12: adam@0: # Quote evaled strings. adam@12: for var in SHELL \ adam@12: ECHO \ adam@12: SED \ adam@0: GREP \ adam@0: EGREP \ adam@0: FGREP \ adam@0: LD \ adam@0: NM \ adam@0: LN_S \ adam@0: lt_SP2NL \ adam@0: lt_NL2SP \ adam@0: reload_flag \ adam@0: OBJDUMP \ adam@0: deplibs_check_method \ adam@0: file_magic_cmd \ adam@12: file_magic_glob \ adam@12: want_nocaseglob \ adam@12: DLLTOOL \ adam@12: sharedlib_from_linklib_cmd \ adam@0: AR \ adam@0: AR_FLAGS \ adam@12: archiver_list_spec \ adam@0: STRIP \ adam@0: RANLIB \ adam@0: CC \ adam@0: CFLAGS \ adam@0: compiler \ adam@0: lt_cv_sys_global_symbol_pipe \ adam@0: lt_cv_sys_global_symbol_to_cdecl \ adam@0: lt_cv_sys_global_symbol_to_c_name_address \ adam@0: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ adam@12: nm_file_list_spec \ adam@0: lt_prog_compiler_no_builtin_flag \ adam@12: lt_prog_compiler_pic \ adam@0: lt_prog_compiler_wl \ adam@0: lt_prog_compiler_static \ adam@0: lt_cv_prog_compiler_c_o \ adam@0: need_locks \ adam@12: MANIFEST_TOOL \ adam@0: DSYMUTIL \ adam@0: NMEDIT \ adam@0: LIPO \ adam@0: OTOOL \ adam@0: OTOOL64 \ adam@0: shrext_cmds \ adam@0: export_dynamic_flag_spec \ adam@0: whole_archive_flag_spec \ adam@0: compiler_needs_object \ adam@0: with_gnu_ld \ adam@0: allow_undefined_flag \ adam@0: no_undefined_flag \ adam@0: hardcode_libdir_flag_spec \ adam@0: hardcode_libdir_flag_spec_ld \ adam@0: hardcode_libdir_separator \ adam@0: exclude_expsyms \ adam@0: include_expsyms \ adam@0: file_list_spec \ adam@0: variables_saved_for_relink \ adam@0: libname_spec \ adam@0: library_names_spec \ adam@0: soname_spec \ adam@12: install_override_mode \ adam@0: finish_eval \ adam@0: old_striplib \ adam@0: striplib; do adam@12: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in adam@0: *[\\\\\\\`\\"\\\$]*) adam@12: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" adam@0: ;; adam@0: *) adam@0: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" adam@0: ;; adam@0: esac adam@0: done adam@0: adam@0: # Double-quote double-evaled strings. adam@0: for var in reload_cmds \ adam@0: old_postinstall_cmds \ adam@0: old_postuninstall_cmds \ adam@0: old_archive_cmds \ adam@0: extract_expsyms_cmds \ adam@0: old_archive_from_new_cmds \ adam@0: old_archive_from_expsyms_cmds \ adam@0: archive_cmds \ adam@0: archive_expsym_cmds \ adam@0: module_cmds \ adam@0: module_expsym_cmds \ adam@0: export_symbols_cmds \ adam@0: prelink_cmds \ adam@12: postlink_cmds \ adam@0: postinstall_cmds \ adam@0: postuninstall_cmds \ adam@0: finish_cmds \ adam@0: sys_lib_search_path_spec \ adam@0: sys_lib_dlsearch_path_spec; do adam@12: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in adam@0: *[\\\\\\\`\\"\\\$]*) adam@12: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" adam@0: ;; adam@0: *) adam@0: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" adam@0: ;; adam@0: esac adam@0: done adam@0: adam@0: ac_aux_dir='$ac_aux_dir' adam@0: xsi_shell='$xsi_shell' adam@0: lt_shell_append='$lt_shell_append' adam@0: adam@0: # See if we are running on zsh, and set the options which allow our adam@0: # commands through without removal of \ escapes INIT. adam@0: if test -n "\${ZSH_VERSION+set}" ; then adam@0: setopt NO_GLOB_SUBST adam@0: fi adam@0: adam@0: adam@0: PACKAGE='$PACKAGE' adam@0: VERSION='$VERSION' adam@0: TIMESTAMP='$TIMESTAMP' adam@0: RM='$RM' adam@0: ofile='$ofile' adam@0: adam@0: adam@0: adam@0: adam@0: _ACEOF adam@0: adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: adam@0: # Handling of arguments. adam@0: for ac_config_target in $ac_config_targets adam@0: do adam@0: case $ac_config_target in adam@0: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; adam@0: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; adam@0: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; adam@0: "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;; adam@0: "src/ur/config.urp") CONFIG_FILES="$CONFIG_FILES src/ur/config.urp" ;; adam@0: adam@12: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; adam@0: esac adam@0: done adam@0: adam@0: adam@0: # If the user did not use the arguments to specify the items to instantiate, adam@0: # then the envvar interface is used. Set only those that are not. adam@0: # We use the long form for the default assignment because of an extremely adam@0: # bizarre bug on SunOS 4.1.3. adam@0: if $ac_need_defaults; then adam@0: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files adam@0: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands adam@0: fi adam@0: adam@0: # Have a temporary directory for convenience. Make it in the build tree adam@0: # simply because there is no reason against having it here, and in addition, adam@0: # creating and moving files from /tmp can sometimes cause problems. adam@0: # Hook for its removal unless debugging. adam@0: # Note that there is a small window in which the directory will not be cleaned: adam@0: # after its creation but before its name has been assigned to `$tmp'. adam@0: $debug || adam@0: { adam@12: tmp= ac_tmp= adam@0: trap 'exit_status=$? adam@12: : "${ac_tmp:=$tmp}" adam@12: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status adam@0: ' 0 adam@0: trap 'as_fn_exit 1' 1 2 13 15 adam@0: } adam@0: # Create a (secure) tmp directory for tmp files. adam@0: adam@0: { adam@0: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && adam@12: test -d "$tmp" adam@0: } || adam@0: { adam@0: tmp=./conf$$-$RANDOM adam@0: (umask 077 && mkdir "$tmp") adam@0: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 adam@12: ac_tmp=$tmp adam@0: adam@0: # Set up the scripts for CONFIG_FILES section. adam@0: # No need to generate them if there are no CONFIG_FILES. adam@0: # This happens for instance with `./config.status config.h'. adam@0: if test -n "$CONFIG_FILES"; then adam@0: adam@0: adam@0: ac_cr=`echo X | tr X '\015'` adam@0: # On cygwin, bash can eat \r inside `` if the user requested igncr. adam@0: # But we know of no other shell where ac_cr would be empty at this adam@0: # point, so we can use a bashism as a fallback. adam@0: if test "x$ac_cr" = x; then adam@0: eval ac_cr=\$\'\\r\' adam@0: fi adam@0: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` adam@0: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then adam@0: ac_cs_awk_cr='\\r' adam@0: else adam@0: ac_cs_awk_cr=$ac_cr adam@0: fi adam@0: adam@12: echo 'BEGIN {' >"$ac_tmp/subs1.awk" && adam@0: _ACEOF adam@0: adam@0: adam@0: { adam@0: echo "cat >conf$$subs.awk <<_ACEOF" && adam@0: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && adam@0: echo "_ACEOF" adam@0: } >conf$$subs.sh || adam@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 adam@0: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` adam@0: ac_delim='%!_!# ' adam@0: for ac_last_try in false false false false false :; do adam@0: . ./conf$$subs.sh || adam@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 adam@0: adam@0: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` adam@0: if test $ac_delim_n = $ac_delim_num; then adam@0: break adam@0: elif $ac_last_try; then adam@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 adam@0: else adam@0: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " adam@0: fi adam@0: done adam@0: rm -f conf$$subs.sh adam@0: adam@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@12: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && adam@0: _ACEOF adam@0: sed -n ' adam@0: h adam@0: s/^/S["/; s/!.*/"]=/ adam@0: p adam@0: g adam@0: s/^[^!]*!// adam@0: :repl adam@0: t repl adam@0: s/'"$ac_delim"'$// adam@0: t delim adam@0: :nl adam@0: h adam@0: s/\(.\{148\}\)..*/\1/ adam@0: t more1 adam@0: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ adam@0: p adam@0: n adam@0: b repl adam@0: :more1 adam@0: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ adam@0: p adam@0: g adam@0: s/.\{148\}// adam@0: t nl adam@0: :delim adam@0: h adam@0: s/\(.\{148\}\)..*/\1/ adam@0: t more2 adam@0: s/["\\]/\\&/g; s/^/"/; s/$/"/ adam@0: p adam@0: b adam@0: :more2 adam@0: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ adam@0: p adam@0: g adam@0: s/.\{148\}// adam@0: t delim adam@0: ' >$CONFIG_STATUS || ac_write_fail=1 adam@0: rm -f conf$$subs.awk adam@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@0: _ACAWK adam@12: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && adam@0: for (key in S) S_is_set[key] = 1 adam@0: FS = "" adam@0: adam@0: } adam@0: { adam@0: line = $ 0 adam@0: nfields = split(line, field, "@") adam@0: substed = 0 adam@0: len = length(field[1]) adam@0: for (i = 2; i < nfields; i++) { adam@0: key = field[i] adam@0: keylen = length(key) adam@0: if (S_is_set[key]) { adam@0: value = S[key] adam@0: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) adam@0: len += length(value) + length(field[++i]) adam@0: substed = 1 adam@0: } else adam@0: len += 1 + keylen adam@0: } adam@0: adam@0: print line adam@0: } adam@0: adam@0: _ACAWK adam@0: _ACEOF adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then adam@0: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" adam@0: else adam@0: cat adam@12: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ adam@0: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 adam@0: _ACEOF adam@0: adam@0: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), adam@0: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and adam@0: # trailing colons and then remove the whole line if VPATH becomes empty adam@0: # (actually we leave an empty line to preserve line numbers). adam@0: if test "x$srcdir" = x.; then adam@0: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ adam@0: h adam@0: s/// adam@0: s/^/:/ adam@0: s/[ ]*$/:/ adam@0: s/:\$(srcdir):/:/g adam@0: s/:\${srcdir}:/:/g adam@0: s/:@srcdir@:/:/g adam@0: s/^:*// adam@0: s/:*$// adam@0: x adam@0: s/\(=[ ]*\).*/\1/ adam@0: G adam@0: s/\n// adam@0: s/^[^=]*=[ ]*$// adam@0: }' adam@0: fi adam@0: adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: fi # test -n "$CONFIG_FILES" adam@0: adam@0: adam@0: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" adam@0: shift adam@0: for ac_tag adam@0: do adam@0: case $ac_tag in adam@0: :[FHLC]) ac_mode=$ac_tag; continue;; adam@0: esac adam@0: case $ac_mode$ac_tag in adam@0: :[FHL]*:*);; adam@12: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; adam@0: :[FH]-) ac_tag=-:-;; adam@0: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; adam@0: esac adam@0: ac_save_IFS=$IFS adam@0: IFS=: adam@0: set x $ac_tag adam@0: IFS=$ac_save_IFS adam@0: shift adam@0: ac_file=$1 adam@0: shift adam@0: adam@0: case $ac_mode in adam@0: :L) ac_source=$1;; adam@0: :[FH]) adam@0: ac_file_inputs= adam@0: for ac_f adam@0: do adam@0: case $ac_f in adam@12: -) ac_f="$ac_tmp/stdin";; adam@0: *) # Look for the file first in the build tree, then in the source tree adam@0: # (if the path is not absolute). The absolute path cannot be DOS-style, adam@0: # because $ac_f cannot contain `:'. adam@0: test -f "$ac_f" || adam@0: case $ac_f in adam@0: [\\/$]*) false;; adam@0: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; adam@0: esac || adam@12: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; adam@0: esac adam@0: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac adam@0: as_fn_append ac_file_inputs " '$ac_f'" adam@0: done adam@0: adam@0: # Let's still pretend it is `configure' which instantiates (i.e., don't adam@0: # use $as_me), people would be surprised to read: adam@0: # /* config.h. Generated by config.status. */ adam@0: configure_input='Generated from '` adam@0: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' adam@0: `' by configure.' adam@0: if test x"$ac_file" != x-; then adam@0: configure_input="$ac_file. $configure_input" adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 adam@0: $as_echo "$as_me: creating $ac_file" >&6;} adam@0: fi adam@0: # Neutralize special characters interpreted by sed in replacement strings. adam@0: case $configure_input in #( adam@0: *\&* | *\|* | *\\* ) adam@0: ac_sed_conf_input=`$as_echo "$configure_input" | adam@0: sed 's/[\\\\&|]/\\\\&/g'`;; #( adam@0: *) ac_sed_conf_input=$configure_input;; adam@0: esac adam@0: adam@0: case $ac_tag in adam@12: *:-:* | *:-) cat >"$ac_tmp/stdin" \ adam@12: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; adam@0: esac adam@0: ;; adam@0: esac adam@0: adam@0: ac_dir=`$as_dirname -- "$ac_file" || adam@0: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adam@0: X"$ac_file" : 'X\(//\)[^/]' \| \ adam@0: X"$ac_file" : 'X\(//\)$' \| \ adam@0: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || adam@0: $as_echo X"$ac_file" | adam@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)[^/].*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\).*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: s/.*/./; q'` adam@0: as_dir="$ac_dir"; as_fn_mkdir_p adam@0: ac_builddir=. adam@0: adam@0: case "$ac_dir" in adam@0: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; adam@0: *) adam@0: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` adam@0: # A ".." for each directory in $ac_dir_suffix. adam@0: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` adam@0: case $ac_top_builddir_sub in adam@0: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; adam@0: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; adam@0: esac ;; adam@0: esac adam@0: ac_abs_top_builddir=$ac_pwd adam@0: ac_abs_builddir=$ac_pwd$ac_dir_suffix adam@0: # for backward compatibility: adam@0: ac_top_builddir=$ac_top_build_prefix adam@0: adam@0: case $srcdir in adam@0: .) # We are building in place. adam@0: ac_srcdir=. adam@0: ac_top_srcdir=$ac_top_builddir_sub adam@0: ac_abs_top_srcdir=$ac_pwd ;; adam@0: [\\/]* | ?:[\\/]* ) # Absolute name. adam@0: ac_srcdir=$srcdir$ac_dir_suffix; adam@0: ac_top_srcdir=$srcdir adam@0: ac_abs_top_srcdir=$srcdir ;; adam@0: *) # Relative name. adam@0: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix adam@0: ac_top_srcdir=$ac_top_build_prefix$srcdir adam@0: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; adam@0: esac adam@0: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix adam@0: adam@0: adam@0: case $ac_mode in adam@0: :F) adam@0: # adam@0: # CONFIG_FILE adam@0: # adam@0: adam@0: case $INSTALL in adam@0: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; adam@0: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; adam@0: esac adam@0: ac_MKDIR_P=$MKDIR_P adam@0: case $MKDIR_P in adam@0: [\\/$]* | ?:[\\/]* ) ;; adam@0: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; adam@0: esac adam@0: _ACEOF adam@0: adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: # If the template does not know about datarootdir, expand it. adam@0: # FIXME: This hack should be removed a few years after 2.60. adam@0: ac_datarootdir_hack=; ac_datarootdir_seen= adam@0: ac_sed_dataroot=' adam@0: /datarootdir/ { adam@0: p adam@0: q adam@0: } adam@0: /@datadir@/p adam@0: /@docdir@/p adam@0: /@infodir@/p adam@0: /@localedir@/p adam@0: /@mandir@/p' adam@0: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in adam@0: *datarootdir*) ac_datarootdir_seen=yes;; adam@0: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 adam@0: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} adam@0: _ACEOF adam@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@0: ac_datarootdir_hack=' adam@0: s&@datadir@&$datadir&g adam@0: s&@docdir@&$docdir&g adam@0: s&@infodir@&$infodir&g adam@0: s&@localedir@&$localedir&g adam@0: s&@mandir@&$mandir&g adam@0: s&\\\${datarootdir}&$datarootdir&g' ;; adam@0: esac adam@0: _ACEOF adam@0: adam@0: # Neutralize VPATH when `$srcdir' = `.'. adam@0: # Shell code in configure.ac might set extrasub. adam@0: # FIXME: do we really want to maintain this feature? adam@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 adam@0: ac_sed_extra="$ac_vpsub adam@0: $extrasub adam@0: _ACEOF adam@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 adam@0: :t adam@0: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b adam@0: s|@configure_input@|$ac_sed_conf_input|;t t adam@0: s&@top_builddir@&$ac_top_builddir_sub&;t t adam@0: s&@top_build_prefix@&$ac_top_build_prefix&;t t adam@0: s&@srcdir@&$ac_srcdir&;t t adam@0: s&@abs_srcdir@&$ac_abs_srcdir&;t t adam@0: s&@top_srcdir@&$ac_top_srcdir&;t t adam@0: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t adam@0: s&@builddir@&$ac_builddir&;t t adam@0: s&@abs_builddir@&$ac_abs_builddir&;t t adam@0: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t adam@0: s&@INSTALL@&$ac_INSTALL&;t t adam@0: s&@MKDIR_P@&$ac_MKDIR_P&;t t adam@0: $ac_datarootdir_hack adam@0: " adam@12: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ adam@12: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 adam@0: adam@0: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && adam@12: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && adam@12: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ adam@12: "$ac_tmp/out"`; test -z "$ac_out"; } && adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' adam@0: which seems to be undefined. Please make sure it is defined" >&5 adam@0: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' adam@0: which seems to be undefined. Please make sure it is defined" >&2;} adam@0: adam@12: rm -f "$ac_tmp/stdin" adam@0: case $ac_file in adam@12: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; adam@12: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; adam@0: esac \ adam@0: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 adam@0: ;; adam@0: adam@0: adam@0: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 adam@0: $as_echo "$as_me: executing $ac_file commands" >&6;} adam@0: ;; adam@0: esac adam@0: adam@0: adam@0: case $ac_file$ac_mode in adam@0: "depfiles":C) test x"$AMDEP_TRUE" != x"" || { adam@0: # Autoconf 2.62 quotes --file arguments for eval, but not when files adam@0: # are listed without --file. Let's play safe and only enable the eval adam@0: # if we detect the quoting. adam@0: case $CONFIG_FILES in adam@0: *\'*) eval set x "$CONFIG_FILES" ;; adam@0: *) set x $CONFIG_FILES ;; adam@0: esac adam@0: shift adam@0: for mf adam@0: do adam@0: # Strip MF so we end up with the name of the file. adam@0: mf=`echo "$mf" | sed -e 's/:.*$//'` adam@0: # Check whether this is an Automake generated Makefile or not. adam@0: # We used to match only the files named `Makefile.in', but adam@0: # some people rename them; so instead we look at the file content. adam@0: # Grep'ing the first line is not enough: some people post-process adam@0: # each Makefile.in and add a new line on top of each file to say so. adam@0: # Grep'ing the whole file is not good either: AIX grep has a line adam@0: # limit of 2048, but all sed's we know have understand at least 4000. adam@0: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then adam@0: dirpart=`$as_dirname -- "$mf" || adam@0: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adam@0: X"$mf" : 'X\(//\)[^/]' \| \ adam@0: X"$mf" : 'X\(//\)$' \| \ adam@0: X"$mf" : 'X\(/\)' \| . 2>/dev/null || adam@0: $as_echo X"$mf" | adam@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)[^/].*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\).*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: s/.*/./; q'` adam@0: else adam@0: continue adam@0: fi adam@0: # Extract the definition of DEPDIR, am__include, and am__quote adam@0: # from the Makefile without running `make'. adam@0: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` adam@0: test -z "$DEPDIR" && continue adam@0: am__include=`sed -n 's/^am__include = //p' < "$mf"` adam@0: test -z "am__include" && continue adam@0: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` adam@0: # When using ansi2knr, U may be empty or an underscore; expand it adam@0: U=`sed -n 's/^U = //p' < "$mf"` adam@0: # Find all dependency output files, they are included files with adam@0: # $(DEPDIR) in their names. We invoke sed twice because it is the adam@0: # simplest approach to changing $(DEPDIR) to its actual value in the adam@0: # expansion. adam@0: for file in `sed -n " adam@0: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ adam@0: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do adam@0: # Make sure the directory exists. adam@0: test -f "$dirpart/$file" && continue adam@0: fdir=`$as_dirname -- "$file" || adam@0: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ adam@0: X"$file" : 'X\(//\)[^/]' \| \ adam@0: X"$file" : 'X\(//\)$' \| \ adam@0: X"$file" : 'X\(/\)' \| . 2>/dev/null || adam@0: $as_echo X"$file" | adam@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)[^/].*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\/\)$/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: /^X\(\/\).*/{ adam@0: s//\1/ adam@0: q adam@0: } adam@0: s/.*/./; q'` adam@0: as_dir=$dirpart/$fdir; as_fn_mkdir_p adam@0: # echo "creating $dirpart/$file" adam@0: echo '# dummy' > "$dirpart/$file" adam@0: done adam@0: done adam@0: } adam@0: ;; adam@0: "libtool":C) adam@0: adam@0: # See if we are running on zsh, and set the options which allow our adam@0: # commands through without removal of \ escapes. adam@0: if test -n "${ZSH_VERSION+set}" ; then adam@0: setopt NO_GLOB_SUBST adam@0: fi adam@0: adam@0: cfgfile="${ofile}T" adam@0: trap "$RM \"$cfgfile\"; exit 1" 1 2 15 adam@0: $RM "$cfgfile" adam@0: adam@0: cat <<_LT_EOF >> "$cfgfile" adam@0: #! $SHELL adam@0: adam@0: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. adam@0: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION adam@0: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: adam@0: # NOTE: Changes made to this file will be lost: look at ltmain.sh. adam@0: # adam@0: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, adam@12: # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, adam@12: # Inc. adam@0: # Written by Gordon Matzigkeit, 1996 adam@0: # adam@0: # This file is part of GNU Libtool. adam@0: # adam@0: # GNU Libtool is free software; you can redistribute it and/or adam@0: # modify it under the terms of the GNU General Public License as adam@0: # published by the Free Software Foundation; either version 2 of adam@0: # the License, or (at your option) any later version. adam@0: # adam@0: # As a special exception to the GNU General Public License, adam@0: # if you distribute this file as part of a program or library that adam@0: # is built using GNU Libtool, you may include this file under the adam@0: # same distribution terms that you use for the rest of that program. adam@0: # adam@0: # GNU Libtool is distributed in the hope that it will be useful, adam@0: # but WITHOUT ANY WARRANTY; without even the implied warranty of adam@0: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the adam@0: # GNU General Public License for more details. adam@0: # adam@0: # You should have received a copy of the GNU General Public License adam@0: # along with GNU Libtool; see the file COPYING. If not, a copy adam@0: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or adam@0: # obtained by writing to the Free Software Foundation, Inc., adam@0: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. adam@0: adam@0: adam@0: # The names of the tagged configurations supported by this script. adam@0: available_tags="" adam@0: adam@0: # ### BEGIN LIBTOOL CONFIG adam@0: adam@0: # Which release of libtool.m4 was used? adam@0: macro_version=$macro_version adam@0: macro_revision=$macro_revision adam@0: adam@0: # Whether or not to build shared libraries. adam@0: build_libtool_libs=$enable_shared adam@0: adam@0: # Whether or not to build static libraries. adam@0: build_old_libs=$enable_static adam@0: adam@0: # What type of objects to build. adam@0: pic_mode=$pic_mode adam@0: adam@0: # Whether or not to optimize for fast installation. adam@0: fast_install=$enable_fast_install adam@0: adam@12: # Shell to use when invoking shell scripts. adam@12: SHELL=$lt_SHELL adam@12: adam@12: # An echo program that protects backslashes. adam@12: ECHO=$lt_ECHO adam@12: adam@0: # The host system. adam@0: host_alias=$host_alias adam@0: host=$host adam@0: host_os=$host_os adam@0: adam@0: # The build system. adam@0: build_alias=$build_alias adam@0: build=$build adam@0: build_os=$build_os adam@0: adam@0: # A sed program that does not truncate output. adam@0: SED=$lt_SED adam@0: adam@0: # Sed that helps us avoid accidentally triggering echo(1) options like -n. adam@0: Xsed="\$SED -e 1s/^X//" adam@0: adam@0: # A grep program that handles long lines. adam@0: GREP=$lt_GREP adam@0: adam@0: # An ERE matcher. adam@0: EGREP=$lt_EGREP adam@0: adam@0: # A literal string matcher. adam@0: FGREP=$lt_FGREP adam@0: adam@0: # A BSD- or MS-compatible name lister. adam@0: NM=$lt_NM adam@0: adam@0: # Whether we need soft or hard links. adam@0: LN_S=$lt_LN_S adam@0: adam@0: # What is the maximum length of a command? adam@0: max_cmd_len=$max_cmd_len adam@0: adam@0: # Object file suffix (normally "o"). adam@0: objext=$ac_objext adam@0: adam@0: # Executable file suffix (normally ""). adam@0: exeext=$exeext adam@0: adam@0: # whether the shell understands "unset". adam@0: lt_unset=$lt_unset adam@0: adam@0: # turn spaces into newlines. adam@0: SP2NL=$lt_lt_SP2NL adam@0: adam@0: # turn newlines into spaces. adam@0: NL2SP=$lt_lt_NL2SP adam@0: adam@12: # convert \$build file names to \$host format. adam@12: to_host_file_cmd=$lt_cv_to_host_file_cmd adam@12: adam@12: # convert \$build files to toolchain format. adam@12: to_tool_file_cmd=$lt_cv_to_tool_file_cmd adam@0: adam@0: # An object symbol dumper. adam@0: OBJDUMP=$lt_OBJDUMP adam@0: adam@0: # Method to check whether dependent libraries are shared objects. adam@0: deplibs_check_method=$lt_deplibs_check_method adam@0: adam@12: # Command to use when deplibs_check_method = "file_magic". adam@0: file_magic_cmd=$lt_file_magic_cmd adam@0: adam@12: # How to find potential files when deplibs_check_method = "file_magic". adam@12: file_magic_glob=$lt_file_magic_glob adam@12: adam@12: # Find potential files using nocaseglob when deplibs_check_method = "file_magic". adam@12: want_nocaseglob=$lt_want_nocaseglob adam@12: adam@12: # DLL creation program. adam@12: DLLTOOL=$lt_DLLTOOL adam@12: adam@12: # Command to associate shared and link libraries. adam@12: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd adam@12: adam@0: # The archiver. adam@0: AR=$lt_AR adam@12: adam@12: # Flags to create an archive. adam@0: AR_FLAGS=$lt_AR_FLAGS adam@0: adam@12: # How to feed a file listing to the archiver. adam@12: archiver_list_spec=$lt_archiver_list_spec adam@12: adam@0: # A symbol stripping program. adam@0: STRIP=$lt_STRIP adam@0: adam@0: # Commands used to install an old-style archive. adam@0: RANLIB=$lt_RANLIB adam@0: old_postinstall_cmds=$lt_old_postinstall_cmds adam@0: old_postuninstall_cmds=$lt_old_postuninstall_cmds adam@0: adam@12: # Whether to use a lock for old archive extraction. adam@12: lock_old_archive_extraction=$lock_old_archive_extraction adam@12: adam@0: # A C compiler. adam@0: LTCC=$lt_CC adam@0: adam@0: # LTCC compiler flags. adam@0: LTCFLAGS=$lt_CFLAGS adam@0: adam@0: # Take the output of nm and produce a listing of raw symbols and C names. adam@0: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe adam@0: adam@0: # Transform the output of nm in a proper C declaration. adam@0: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl adam@0: adam@0: # Transform the output of nm in a C name address pair. adam@0: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address adam@0: adam@0: # Transform the output of nm in a C name address pair when lib prefix is needed. adam@0: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix adam@0: adam@12: # Specify filename containing input files for \$NM. adam@12: nm_file_list_spec=$lt_nm_file_list_spec adam@12: adam@12: # The root where to search for dependent libraries,and in which our libraries should be installed. adam@12: lt_sysroot=$lt_sysroot adam@12: adam@0: # The name of the directory that contains temporary libtool files. adam@0: objdir=$objdir adam@0: adam@0: # Used to examine libraries when file_magic_cmd begins with "file". adam@0: MAGIC_CMD=$MAGIC_CMD adam@0: adam@0: # Must we lock files when doing compilation? adam@0: need_locks=$lt_need_locks adam@0: adam@12: # Manifest tool. adam@12: MANIFEST_TOOL=$lt_MANIFEST_TOOL adam@12: adam@0: # Tool to manipulate archived DWARF debug symbol files on Mac OS X. adam@0: DSYMUTIL=$lt_DSYMUTIL adam@0: adam@0: # Tool to change global to local symbols on Mac OS X. adam@0: NMEDIT=$lt_NMEDIT adam@0: adam@0: # Tool to manipulate fat objects and archives on Mac OS X. adam@0: LIPO=$lt_LIPO adam@0: adam@0: # ldd/readelf like tool for Mach-O binaries on Mac OS X. adam@0: OTOOL=$lt_OTOOL adam@0: adam@0: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. adam@0: OTOOL64=$lt_OTOOL64 adam@0: adam@0: # Old archive suffix (normally "a"). adam@0: libext=$libext adam@0: adam@0: # Shared library suffix (normally ".so"). adam@0: shrext_cmds=$lt_shrext_cmds adam@0: adam@0: # The commands to extract the exported symbol list from a shared archive. adam@0: extract_expsyms_cmds=$lt_extract_expsyms_cmds adam@0: adam@0: # Variables whose values should be saved in libtool wrapper scripts and adam@0: # restored at link time. adam@0: variables_saved_for_relink=$lt_variables_saved_for_relink adam@0: adam@0: # Do we need the "lib" prefix for modules? adam@0: need_lib_prefix=$need_lib_prefix adam@0: adam@0: # Do we need a version for libraries? adam@0: need_version=$need_version adam@0: adam@0: # Library versioning type. adam@0: version_type=$version_type adam@0: adam@0: # Shared library runtime path variable. adam@0: runpath_var=$runpath_var adam@0: adam@0: # Shared library path variable. adam@0: shlibpath_var=$shlibpath_var adam@0: adam@0: # Is shlibpath searched before the hard-coded library search path? adam@0: shlibpath_overrides_runpath=$shlibpath_overrides_runpath adam@0: adam@0: # Format of library name prefix. adam@0: libname_spec=$lt_libname_spec adam@0: adam@0: # List of archive names. First name is the real one, the rest are links. adam@0: # The last name is the one that the linker finds with -lNAME adam@0: library_names_spec=$lt_library_names_spec adam@0: adam@0: # The coded name of the library, if different from the real name. adam@0: soname_spec=$lt_soname_spec adam@0: adam@12: # Permission mode override for installation of shared libraries. adam@12: install_override_mode=$lt_install_override_mode adam@12: adam@0: # Command to use after installation of a shared archive. adam@0: postinstall_cmds=$lt_postinstall_cmds adam@0: adam@0: # Command to use after uninstallation of a shared archive. adam@0: postuninstall_cmds=$lt_postuninstall_cmds adam@0: adam@0: # Commands used to finish a libtool library installation in a directory. adam@0: finish_cmds=$lt_finish_cmds adam@0: adam@0: # As "finish_cmds", except a single script fragment to be evaled but adam@0: # not shown. adam@0: finish_eval=$lt_finish_eval adam@0: adam@0: # Whether we should hardcode library paths into libraries. adam@0: hardcode_into_libs=$hardcode_into_libs adam@0: adam@0: # Compile-time system search path for libraries. adam@0: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec adam@0: adam@0: # Run-time system search path for libraries. adam@0: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec adam@0: adam@0: # Whether dlopen is supported. adam@0: dlopen_support=$enable_dlopen adam@0: adam@0: # Whether dlopen of programs is supported. adam@0: dlopen_self=$enable_dlopen_self adam@0: adam@0: # Whether dlopen of statically linked programs is supported. adam@0: dlopen_self_static=$enable_dlopen_self_static adam@0: adam@0: # Commands to strip libraries. adam@0: old_striplib=$lt_old_striplib adam@0: striplib=$lt_striplib adam@0: adam@0: adam@0: # The linker used to build libraries. adam@0: LD=$lt_LD adam@0: adam@12: # How to create reloadable object files. adam@12: reload_flag=$lt_reload_flag adam@12: reload_cmds=$lt_reload_cmds adam@12: adam@0: # Commands used to build an old-style archive. adam@0: old_archive_cmds=$lt_old_archive_cmds adam@0: adam@0: # A language specific compiler. adam@0: CC=$lt_compiler adam@0: adam@0: # Is the compiler the GNU compiler? adam@0: with_gcc=$GCC adam@0: adam@0: # Compiler flag to turn off builtin functions. adam@0: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag adam@0: adam@12: # Additional compiler flags for building library objects. adam@12: pic_flag=$lt_lt_prog_compiler_pic adam@12: adam@0: # How to pass a linker flag through the compiler. adam@0: wl=$lt_lt_prog_compiler_wl adam@0: adam@0: # Compiler flag to prevent dynamic linking. adam@0: link_static_flag=$lt_lt_prog_compiler_static adam@0: adam@0: # Does compiler simultaneously support -c and -o options? adam@0: compiler_c_o=$lt_lt_cv_prog_compiler_c_o adam@0: adam@0: # Whether or not to add -lc for building shared libraries. adam@0: build_libtool_need_lc=$archive_cmds_need_lc adam@0: adam@0: # Whether or not to disallow shared libs when runtime libs are static. adam@0: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes adam@0: adam@0: # Compiler flag to allow reflexive dlopens. adam@0: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec adam@0: adam@0: # Compiler flag to generate shared objects directly from archives. adam@0: whole_archive_flag_spec=$lt_whole_archive_flag_spec adam@0: adam@0: # Whether the compiler copes with passing no objects directly. adam@0: compiler_needs_object=$lt_compiler_needs_object adam@0: adam@0: # Create an old-style archive from a shared archive. adam@0: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds adam@0: adam@0: # Create a temporary old-style archive to link instead of a shared archive. adam@0: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds adam@0: adam@0: # Commands used to build a shared archive. adam@0: archive_cmds=$lt_archive_cmds adam@0: archive_expsym_cmds=$lt_archive_expsym_cmds adam@0: adam@0: # Commands used to build a loadable module if different from building adam@0: # a shared archive. adam@0: module_cmds=$lt_module_cmds adam@0: module_expsym_cmds=$lt_module_expsym_cmds adam@0: adam@0: # Whether we are building with GNU ld or not. adam@0: with_gnu_ld=$lt_with_gnu_ld adam@0: adam@0: # Flag that allows shared libraries with undefined symbols to be built. adam@0: allow_undefined_flag=$lt_allow_undefined_flag adam@0: adam@0: # Flag that enforces no undefined symbols. adam@0: no_undefined_flag=$lt_no_undefined_flag adam@0: adam@0: # Flag to hardcode \$libdir into a binary during linking. adam@0: # This must work even if \$libdir does not exist adam@0: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec adam@0: adam@0: # If ld is used when linking, flag to hardcode \$libdir into a binary adam@0: # during linking. This must work even if \$libdir does not exist. adam@0: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld adam@0: adam@0: # Whether we need a single "-rpath" flag with a separated argument. adam@0: hardcode_libdir_separator=$lt_hardcode_libdir_separator adam@0: adam@0: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes adam@0: # DIR into the resulting binary. adam@0: hardcode_direct=$hardcode_direct adam@0: adam@0: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes adam@0: # DIR into the resulting binary and the resulting library dependency is adam@0: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the adam@0: # library is relocated. adam@0: hardcode_direct_absolute=$hardcode_direct_absolute adam@0: adam@0: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR adam@0: # into the resulting binary. adam@0: hardcode_minus_L=$hardcode_minus_L adam@0: adam@0: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR adam@0: # into the resulting binary. adam@0: hardcode_shlibpath_var=$hardcode_shlibpath_var adam@0: adam@0: # Set to "yes" if building a shared library automatically hardcodes DIR adam@0: # into the library and all subsequent libraries and executables linked adam@0: # against it. adam@0: hardcode_automatic=$hardcode_automatic adam@0: adam@0: # Set to yes if linker adds runtime paths of dependent libraries adam@0: # to runtime path list. adam@0: inherit_rpath=$inherit_rpath adam@0: adam@0: # Whether libtool must link a program against all its dependency libraries. adam@0: link_all_deplibs=$link_all_deplibs adam@0: adam@0: # Set to "yes" if exported symbols are required. adam@0: always_export_symbols=$always_export_symbols adam@0: adam@0: # The commands to list exported symbols. adam@0: export_symbols_cmds=$lt_export_symbols_cmds adam@0: adam@0: # Symbols that should not be listed in the preloaded symbols. adam@0: exclude_expsyms=$lt_exclude_expsyms adam@0: adam@0: # Symbols that must always be exported. adam@0: include_expsyms=$lt_include_expsyms adam@0: adam@0: # Commands necessary for linking programs (against libraries) with templates. adam@0: prelink_cmds=$lt_prelink_cmds adam@0: adam@12: # Commands necessary for finishing linking programs. adam@12: postlink_cmds=$lt_postlink_cmds adam@12: adam@0: # Specify filename containing input files. adam@0: file_list_spec=$lt_file_list_spec adam@0: adam@0: # How to hardcode a shared library path into an executable. adam@0: hardcode_action=$hardcode_action adam@0: adam@0: # ### END LIBTOOL CONFIG adam@0: adam@0: _LT_EOF adam@0: adam@0: case $host_os in adam@0: aix3*) adam@0: cat <<\_LT_EOF >> "$cfgfile" adam@0: # AIX sometimes has problems with the GCC collect2 program. For some adam@0: # reason, if we set the COLLECT_NAMES environment variable, the problems adam@0: # vanish in a puff of smoke. adam@0: if test "X${COLLECT_NAMES+set}" != Xset; then adam@0: COLLECT_NAMES= adam@0: export COLLECT_NAMES adam@0: fi adam@0: _LT_EOF adam@0: ;; adam@0: esac adam@0: adam@0: adam@0: ltmain="$ac_aux_dir/ltmain.sh" adam@0: adam@0: adam@0: # We use sed instead of cat because bash on DJGPP gets confused if adam@0: # if finds mixed CR/LF and LF-only lines. Since sed operates in adam@0: # text mode, it properly converts lines to CR/LF. This bash problem adam@0: # is reportedly fixed, but why not run on old versions too? adam@12: sed '$q' "$ltmain" >> "$cfgfile" \ adam@12: || (rm -f "$cfgfile"; exit 1) adam@12: adam@12: if test x"$xsi_shell" = xyes; then adam@12: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ adam@12: func_dirname ()\ adam@12: {\ adam@12: \ case ${1} in\ adam@12: \ */*) func_dirname_result="${1%/*}${2}" ;;\ adam@12: \ * ) func_dirname_result="${3}" ;;\ adam@12: \ esac\ adam@12: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_basename ()$/,/^} # func_basename /c\ adam@12: func_basename ()\ adam@12: {\ adam@12: \ func_basename_result="${1##*/}"\ adam@12: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ adam@12: func_dirname_and_basename ()\ adam@12: {\ adam@12: \ case ${1} in\ adam@12: \ */*) func_dirname_result="${1%/*}${2}" ;;\ adam@12: \ * ) func_dirname_result="${3}" ;;\ adam@12: \ esac\ adam@12: \ func_basename_result="${1##*/}"\ adam@12: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ adam@12: func_stripname ()\ adam@12: {\ adam@12: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ adam@12: \ # positional parameters, so assign one to ordinary parameter first.\ adam@12: \ func_stripname_result=${3}\ adam@12: \ func_stripname_result=${func_stripname_result#"${1}"}\ adam@12: \ func_stripname_result=${func_stripname_result%"${2}"}\ adam@12: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ adam@12: func_split_long_opt ()\ adam@12: {\ adam@12: \ func_split_long_opt_name=${1%%=*}\ adam@12: \ func_split_long_opt_arg=${1#*=}\ adam@12: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ adam@12: func_split_short_opt ()\ adam@12: {\ adam@12: \ func_split_short_opt_arg=${1#??}\ adam@12: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ adam@12: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ adam@12: func_lo2o ()\ adam@12: {\ adam@12: \ case ${1} in\ adam@12: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ adam@12: \ *) func_lo2o_result=${1} ;;\ adam@12: \ esac\ adam@12: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_xform ()$/,/^} # func_xform /c\ adam@12: func_xform ()\ adam@12: {\ adam@12: func_xform_result=${1%.*}.lo\ adam@12: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_arith ()$/,/^} # func_arith /c\ adam@12: func_arith ()\ adam@12: {\ adam@12: func_arith_result=$(( $* ))\ adam@12: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_len ()$/,/^} # func_len /c\ adam@12: func_len ()\ adam@12: {\ adam@12: func_len_result=${#1}\ adam@12: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: fi adam@12: adam@12: if test x"$lt_shell_append" = xyes; then adam@12: sed -e '/^func_append ()$/,/^} # func_append /c\ adam@12: func_append ()\ adam@12: {\ adam@12: eval "${1}+=\\${2}"\ adam@12: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ adam@12: func_append_quoted ()\ adam@12: {\ adam@12: \ func_quote_for_eval "${2}"\ adam@12: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ adam@12: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: adam@12: adam@12: # Save a `func_append' function call where possible by direct use of '+=' adam@12: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: else adam@12: # Save a `func_append' function call even when '+=' is not available adam@12: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ adam@12: && mv -f "$cfgfile.tmp" "$cfgfile" \ adam@12: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") adam@12: test 0 -eq $? || _lt_function_replace_fail=: adam@12: fi adam@12: adam@12: if test x"$_lt_function_replace_fail" = x":"; then adam@12: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 adam@12: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} adam@12: fi adam@12: adam@12: adam@12: mv -f "$cfgfile" "$ofile" || adam@0: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") adam@0: chmod +x "$ofile" adam@0: adam@0: ;; adam@0: adam@0: esac adam@0: done # for ac_tag adam@0: adam@0: adam@0: as_fn_exit 0 adam@0: _ACEOF adam@0: ac_clean_files=$ac_clean_files_save adam@0: adam@0: test $ac_write_fail = 0 || adam@0: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 adam@0: adam@0: adam@0: # configure is writing to config.log, and then calls config.status. adam@0: # config.status does its own redirection, appending to config.log. adam@0: # Unfortunately, on DOS this fails, as config.log is still kept open adam@0: # by configure, so config.status won't be able to write to it; its adam@0: # output is simply discarded. So we exec the FD to /dev/null, adam@0: # effectively closing config.log, so it can be properly (re)opened and adam@0: # appended to by config.status. When coming back to configure, we adam@0: # need to make the FD available again. adam@0: if test "$no_create" != yes; then adam@0: ac_cs_success=: adam@0: ac_config_status_args= adam@0: test "$silent" = yes && adam@0: ac_config_status_args="$ac_config_status_args --quiet" adam@0: exec 5>/dev/null adam@0: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false adam@0: exec 5>>config.log adam@0: # Use ||, not &&, to avoid exiting from the if with $? = 1, which adam@0: # would make configure fail if this is the last instruction. adam@0: $ac_cs_success || as_fn_exit 1 adam@0: fi adam@0: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then adam@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 adam@0: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} adam@0: fi adam@0: adam@0: adam@0: cat <