michael@0: #! /bin/sh michael@0: # Guess values for system-dependent variables and create Makefiles. michael@0: # Generated by GNU Autoconf 2.65 for glog 0.3.1. michael@0: # michael@0: # Report bugs to . michael@0: # michael@0: # michael@0: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, michael@0: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, michael@0: # Inc. michael@0: # michael@0: # michael@0: # This configure script is free software; the Free Software Foundation michael@0: # gives unlimited permission to copy, distribute and modify it. michael@0: ## -------------------- ## michael@0: ## M4sh Initialization. ## michael@0: ## -------------------- ## michael@0: michael@0: # Be more Bourne compatible michael@0: DUALCASE=1; export DUALCASE # for MKS sh michael@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '${1+"$@"}'='"$@"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case `(set -o) 2>/dev/null` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: as_nl=' michael@0: ' michael@0: export as_nl michael@0: # Printing a long string crashes Solaris 7 /usr/bin/printf. michael@0: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: # Prefer a ksh shell builtin over an external printf program on Solaris, michael@0: # but without wasting forks for bash or zsh. michael@0: if test -z "$BASH_VERSION$ZSH_VERSION" \ michael@0: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='print -r --' michael@0: as_echo_n='print -rn --' michael@0: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='printf %s\n' michael@0: as_echo_n='printf %s' michael@0: else michael@0: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then michael@0: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' michael@0: as_echo_n='/usr/ucb/echo -n' michael@0: else michael@0: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' michael@0: as_echo_n_body='eval michael@0: arg=$1; michael@0: case $arg in #( michael@0: *"$as_nl"*) michael@0: expr "X$arg" : "X\\(.*\\)$as_nl"; michael@0: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; michael@0: esac; michael@0: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" michael@0: ' michael@0: export as_echo_n_body michael@0: as_echo_n='sh -c $as_echo_n_body as_echo' michael@0: fi michael@0: export as_echo_body michael@0: as_echo='sh -c $as_echo_body as_echo' michael@0: fi michael@0: michael@0: # The user is always right. michael@0: if test "${PATH_SEPARATOR+set}" != set; then michael@0: PATH_SEPARATOR=: michael@0: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { michael@0: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || michael@0: PATH_SEPARATOR=';' michael@0: } michael@0: fi michael@0: michael@0: michael@0: # IFS michael@0: # We need space, tab and new line, in precisely that order. Quoting is michael@0: # there to prevent editors from complaining about space-tab. michael@0: # (If _AS_PATH_WALK were called with IFS unset, it would disable word michael@0: # splitting by setting IFS to empty value.) michael@0: IFS=" "" $as_nl" michael@0: michael@0: # Find who we are. Look in the path if we contain no directory separator. michael@0: case $0 in #(( michael@0: *[\\/]* ) as_myself=$0 ;; michael@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: # We did not find ourselves, most probably we were run as `sh COMMAND' michael@0: # in which case we are not to be found in the path. michael@0: if test "x$as_myself" = x; then michael@0: as_myself=$0 michael@0: fi michael@0: if test ! -f "$as_myself"; then michael@0: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 michael@0: exit 1 michael@0: fi michael@0: michael@0: # Unset variables that we do not need and which cause bugs (e.g. in michael@0: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" michael@0: # suppresses any "Segmentation fault" message there. '((' could michael@0: # trigger a bug in pdksh 5.2.14. michael@0: for as_var in BASH_ENV ENV MAIL MAILPATH michael@0: do eval test x\${$as_var+set} = xset \ michael@0: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : michael@0: done michael@0: PS1='$ ' michael@0: PS2='> ' michael@0: PS4='+ ' michael@0: michael@0: # NLS nuisances. michael@0: LC_ALL=C michael@0: export LC_ALL michael@0: LANGUAGE=C michael@0: export LANGUAGE michael@0: michael@0: # CDPATH. michael@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH michael@0: michael@0: if test "x$CONFIG_SHELL" = x; then michael@0: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '\${1+\"\$@\"}'='\"\$@\"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case \`(set -o) 2>/dev/null\` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: " michael@0: as_required="as_fn_return () { (exit \$1); } michael@0: as_fn_success () { as_fn_return 0; } michael@0: as_fn_failure () { as_fn_return 1; } michael@0: as_fn_ret_success () { return 0; } michael@0: as_fn_ret_failure () { return 1; } michael@0: michael@0: exitcode=0 michael@0: as_fn_success || { exitcode=1; echo as_fn_success failed.; } michael@0: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } michael@0: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } michael@0: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } michael@0: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : michael@0: michael@0: else michael@0: exitcode=1; echo positional parameters were not saved. michael@0: fi michael@0: test x\$exitcode = x0 || exit 1" michael@0: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO michael@0: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO michael@0: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && michael@0: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 michael@0: test \$(( 1 + 1 )) = 2 || exit 1" michael@0: if (eval "$as_required") 2>/dev/null; then : michael@0: as_have_required=yes michael@0: else michael@0: as_have_required=no michael@0: fi michael@0: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : michael@0: michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: as_found=false michael@0: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: as_found=: michael@0: case $as_dir in #( michael@0: /*) michael@0: for as_base in sh bash ksh sh5; do michael@0: # Try only shells that exist, to save several forks. michael@0: as_shell=$as_dir/$as_base michael@0: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && michael@0: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : michael@0: CONFIG_SHELL=$as_shell as_have_required=yes michael@0: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : michael@0: break 2 michael@0: fi michael@0: fi michael@0: done;; michael@0: esac michael@0: as_found=false michael@0: done michael@0: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && michael@0: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : michael@0: CONFIG_SHELL=$SHELL as_have_required=yes michael@0: fi; } michael@0: IFS=$as_save_IFS michael@0: michael@0: michael@0: if test "x$CONFIG_SHELL" != x; then : michael@0: # We cannot yet assume a decent shell, so we have to provide a michael@0: # neutralization value for shells without unset; and this also michael@0: # works around shells that cannot unset nonexistent variables. michael@0: BASH_ENV=/dev/null michael@0: ENV=/dev/null michael@0: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV michael@0: export CONFIG_SHELL michael@0: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} michael@0: fi michael@0: michael@0: if test x$as_have_required = xno; then : michael@0: $as_echo "$0: This script requires a shell more modern than all" michael@0: $as_echo "$0: the shells that I found on your system." michael@0: if test x${ZSH_VERSION+set} = xset ; then michael@0: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" michael@0: $as_echo "$0: be upgraded to zsh 4.3.4 or later." michael@0: else michael@0: $as_echo "$0: Please tell bug-autoconf@gnu.org and michael@0: $0: opensource@google.com about your system, including any michael@0: $0: error possibly output before this message. Then install michael@0: $0: a modern shell, or manually run the script under such a michael@0: $0: shell if you do have one." michael@0: fi michael@0: exit 1 michael@0: fi michael@0: fi michael@0: fi michael@0: SHELL=${CONFIG_SHELL-/bin/sh} michael@0: export SHELL michael@0: # Unset more variables known to interfere with behavior of common tools. michael@0: CLICOLOR_FORCE= GREP_OPTIONS= michael@0: unset CLICOLOR_FORCE GREP_OPTIONS michael@0: michael@0: ## --------------------- ## michael@0: ## M4sh Shell Functions. ## michael@0: ## --------------------- ## michael@0: # as_fn_unset VAR michael@0: # --------------- michael@0: # Portably unset VAR. michael@0: as_fn_unset () michael@0: { michael@0: { eval $1=; unset $1;} michael@0: } michael@0: as_unset=as_fn_unset michael@0: michael@0: # as_fn_set_status STATUS michael@0: # ----------------------- michael@0: # Set $? to STATUS, without forking. michael@0: as_fn_set_status () michael@0: { michael@0: return $1 michael@0: } # as_fn_set_status michael@0: michael@0: # as_fn_exit STATUS michael@0: # ----------------- michael@0: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. michael@0: as_fn_exit () michael@0: { michael@0: set +e michael@0: as_fn_set_status $1 michael@0: exit $1 michael@0: } # as_fn_exit michael@0: michael@0: # as_fn_mkdir_p michael@0: # ------------- michael@0: # Create "$as_dir" as a directory, including parents if necessary. michael@0: as_fn_mkdir_p () michael@0: { michael@0: michael@0: case $as_dir in #( michael@0: -*) as_dir=./$as_dir;; michael@0: esac michael@0: test -d "$as_dir" || eval $as_mkdir_p || { michael@0: as_dirs= michael@0: while :; do michael@0: case $as_dir in #( michael@0: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( michael@0: *) as_qdir=$as_dir;; michael@0: esac michael@0: as_dirs="'$as_qdir' $as_dirs" michael@0: as_dir=`$as_dirname -- "$as_dir" || michael@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_dir" : 'X\(//\)[^/]' \| \ michael@0: X"$as_dir" : 'X\(//\)$' \| \ michael@0: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_dir" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: test -d "$as_dir" && break michael@0: done michael@0: test -z "$as_dirs" || eval "mkdir $as_dirs" michael@0: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" michael@0: michael@0: michael@0: } # as_fn_mkdir_p michael@0: # as_fn_append VAR VALUE michael@0: # ---------------------- michael@0: # Append the text in VALUE to the end of the definition contained in VAR. Take michael@0: # advantage of any shell optimizations that allow amortized linear growth over michael@0: # repeated appends, instead of the typical quadratic growth present in naive michael@0: # implementations. michael@0: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : michael@0: eval 'as_fn_append () michael@0: { michael@0: eval $1+=\$2 michael@0: }' michael@0: else michael@0: as_fn_append () michael@0: { michael@0: eval $1=\$$1\$2 michael@0: } michael@0: fi # as_fn_append michael@0: michael@0: # as_fn_arith ARG... michael@0: # ------------------ michael@0: # Perform arithmetic evaluation on the ARGs, and store the result in the michael@0: # global $as_val. Take advantage of shells that can avoid forks. The arguments michael@0: # must be portable across $(()) and expr. michael@0: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : michael@0: eval 'as_fn_arith () michael@0: { michael@0: as_val=$(( $* )) michael@0: }' michael@0: else michael@0: as_fn_arith () michael@0: { michael@0: as_val=`expr "$@" || test $? -eq 1` michael@0: } michael@0: fi # as_fn_arith michael@0: michael@0: michael@0: # as_fn_error ERROR [LINENO LOG_FD] michael@0: # --------------------------------- michael@0: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are michael@0: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the michael@0: # script with status $?, using 1 if that was 0. michael@0: as_fn_error () michael@0: { michael@0: as_status=$?; test $as_status -eq 0 && as_status=1 michael@0: if test "$3"; then michael@0: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 michael@0: fi michael@0: $as_echo "$as_me: error: $1" >&2 michael@0: as_fn_exit $as_status michael@0: } # as_fn_error michael@0: michael@0: if expr a : '\(a\)' >/dev/null 2>&1 && michael@0: test "X`expr 00001 : '.*\(...\)'`" = X001; then michael@0: as_expr=expr michael@0: else michael@0: as_expr=false michael@0: fi michael@0: michael@0: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then michael@0: as_basename=basename michael@0: else michael@0: as_basename=false michael@0: fi michael@0: michael@0: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then michael@0: as_dirname=dirname michael@0: else michael@0: as_dirname=false michael@0: fi michael@0: michael@0: as_me=`$as_basename -- "$0" || michael@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ michael@0: X"$0" : 'X\(//\)$' \| \ michael@0: X"$0" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X/"$0" | michael@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: michael@0: # Avoid depending upon Character Ranges. michael@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' michael@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' michael@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS michael@0: as_cr_digits='0123456789' michael@0: as_cr_alnum=$as_cr_Letters$as_cr_digits michael@0: michael@0: michael@0: as_lineno_1=$LINENO as_lineno_1a=$LINENO michael@0: as_lineno_2=$LINENO as_lineno_2a=$LINENO michael@0: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && michael@0: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { michael@0: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) michael@0: sed -n ' michael@0: p michael@0: /[$]LINENO/= michael@0: ' <$as_myself | michael@0: sed ' michael@0: s/[$]LINENO.*/&-/ michael@0: t lineno michael@0: b michael@0: :lineno michael@0: N michael@0: :loop michael@0: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ michael@0: t loop michael@0: s/-\n.*// michael@0: ' >$as_me.lineno && michael@0: chmod +x "$as_me.lineno" || michael@0: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } michael@0: michael@0: # Don't try to exec as it changes $[0], causing all sort of problems michael@0: # (the dirname of $[0] is not the place where we might find the michael@0: # original and so on. Autoconf is especially sensitive to this). michael@0: . "./$as_me.lineno" michael@0: # Exit status is that of the last command. michael@0: exit michael@0: } michael@0: michael@0: ECHO_C= ECHO_N= ECHO_T= michael@0: case `echo -n x` in #((((( michael@0: -n*) michael@0: case `echo 'xy\c'` in michael@0: *c*) ECHO_T=' ';; # ECHO_T is single tab character. michael@0: xy) ECHO_C='\c';; michael@0: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null michael@0: ECHO_T=' ';; michael@0: esac;; michael@0: *) michael@0: ECHO_N='-n';; michael@0: esac michael@0: michael@0: rm -f conf$$ conf$$.exe conf$$.file michael@0: if test -d conf$$.dir; then michael@0: rm -f conf$$.dir/conf$$.file michael@0: else michael@0: rm -f conf$$.dir michael@0: mkdir conf$$.dir 2>/dev/null michael@0: fi michael@0: if (echo >conf$$.file) 2>/dev/null; then michael@0: if ln -s conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s='ln -s' michael@0: # ... but there are two gotchas: michael@0: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. michael@0: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. michael@0: # In both cases, we have to default to `cp -p'. michael@0: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || michael@0: as_ln_s='cp -p' michael@0: elif ln conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s=ln michael@0: else michael@0: as_ln_s='cp -p' michael@0: fi michael@0: else michael@0: as_ln_s='cp -p' michael@0: fi michael@0: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file michael@0: rmdir conf$$.dir 2>/dev/null michael@0: michael@0: if mkdir -p . 2>/dev/null; then michael@0: as_mkdir_p='mkdir -p "$as_dir"' michael@0: else michael@0: test -d ./-p && rmdir ./-p michael@0: as_mkdir_p=false michael@0: fi michael@0: michael@0: if test -x / >/dev/null 2>&1; then michael@0: as_test_x='test -x' michael@0: else michael@0: if ls -dL / >/dev/null 2>&1; then michael@0: as_ls_L_option=L michael@0: else michael@0: as_ls_L_option= michael@0: fi michael@0: as_test_x=' michael@0: eval sh -c '\'' michael@0: if test -d "$1"; then michael@0: test -d "$1/."; michael@0: else michael@0: case $1 in #( michael@0: -*)set "./$1";; michael@0: esac; michael@0: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( michael@0: ???[sx]*):;;*)false;;esac;fi michael@0: '\'' sh michael@0: ' michael@0: fi michael@0: as_executable_p=$as_test_x michael@0: michael@0: # Sed expression to map a string onto a valid CPP name. michael@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: # Sed expression to map a string onto a valid variable name. michael@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: michael@0: michael@0: # Check that we are running under the correct shell. michael@0: SHELL=${CONFIG_SHELL-/bin/sh} michael@0: michael@0: case X$lt_ECHO in michael@0: X*--fallback-echo) michael@0: # Remove one level of quotation (which was required for Make). michael@0: ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` michael@0: ;; michael@0: esac michael@0: michael@0: ECHO=${lt_ECHO-echo} michael@0: if test "X$1" = X--no-reexec; then michael@0: # Discard the --no-reexec flag, and continue. michael@0: shift michael@0: elif test "X$1" = X--fallback-echo; then michael@0: # Avoid inline document here, it may be left over michael@0: : michael@0: elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then michael@0: # Yippee, $ECHO works! michael@0: : michael@0: else michael@0: # Restart under the correct shell. michael@0: exec $SHELL "$0" --no-reexec ${1+"$@"} michael@0: fi michael@0: michael@0: if test "X$1" = X--fallback-echo; then michael@0: # used as fallback echo michael@0: shift michael@0: cat <<_LT_EOF michael@0: $* michael@0: _LT_EOF michael@0: exit 0 michael@0: fi michael@0: michael@0: # The HP-UX ksh and POSIX shell print the target directory to stdout michael@0: # if CDPATH is set. michael@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH michael@0: michael@0: if test -z "$lt_ECHO"; then michael@0: if test "X${echo_test_string+set}" != Xset; then michael@0: # find a string as large as possible, as long as the shell can cope with it michael@0: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do michael@0: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... michael@0: if { echo_test_string=`eval $cmd`; } 2>/dev/null && michael@0: { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null michael@0: then michael@0: break michael@0: fi michael@0: done michael@0: fi michael@0: michael@0: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && michael@0: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && michael@0: test "X$echo_testing_string" = "X$echo_test_string"; then michael@0: : michael@0: else michael@0: # The Solaris, AIX, and Digital Unix default echo programs unquote michael@0: # backslashes. This makes it impossible to quote backslashes using michael@0: # echo "$something" | sed 's/\\/\\\\/g' michael@0: # michael@0: # So, first we look for a working echo in the user's PATH. michael@0: michael@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR michael@0: for dir in $PATH /usr/ucb; do michael@0: IFS="$lt_save_ifs" michael@0: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && michael@0: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && michael@0: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && michael@0: test "X$echo_testing_string" = "X$echo_test_string"; then michael@0: ECHO="$dir/echo" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$lt_save_ifs" michael@0: michael@0: if test "X$ECHO" = Xecho; then michael@0: # We didn't find a better echo, so look for alternatives. michael@0: if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && michael@0: echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && michael@0: test "X$echo_testing_string" = "X$echo_test_string"; then michael@0: # This shell has a builtin print -r that does the trick. michael@0: ECHO='print -r' michael@0: elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && michael@0: test "X$CONFIG_SHELL" != X/bin/ksh; then michael@0: # If we have ksh, try running configure again with it. michael@0: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} michael@0: export ORIGINAL_CONFIG_SHELL michael@0: CONFIG_SHELL=/bin/ksh michael@0: export CONFIG_SHELL michael@0: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} michael@0: else michael@0: # Try using printf. michael@0: ECHO='printf %s\n' michael@0: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && michael@0: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && michael@0: test "X$echo_testing_string" = "X$echo_test_string"; then michael@0: # Cool, printf works michael@0: : michael@0: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && michael@0: test "X$echo_testing_string" = 'X\t' && michael@0: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && michael@0: test "X$echo_testing_string" = "X$echo_test_string"; then michael@0: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL michael@0: export CONFIG_SHELL michael@0: SHELL="$CONFIG_SHELL" michael@0: export SHELL michael@0: ECHO="$CONFIG_SHELL $0 --fallback-echo" michael@0: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && michael@0: test "X$echo_testing_string" = 'X\t' && michael@0: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && michael@0: test "X$echo_testing_string" = "X$echo_test_string"; then michael@0: ECHO="$CONFIG_SHELL $0 --fallback-echo" michael@0: else michael@0: # maybe with a smaller string... michael@0: prev=: michael@0: michael@0: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do michael@0: if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null michael@0: then michael@0: break michael@0: fi michael@0: prev="$cmd" michael@0: done michael@0: michael@0: if test "$prev" != 'sed 50q "$0"'; then michael@0: echo_test_string=`eval $prev` michael@0: export echo_test_string michael@0: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} michael@0: else michael@0: # Oops. We lost completely, so just stick with echo. michael@0: ECHO=echo michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: # Copy echo and quote the copy suitably for passing to libtool from michael@0: # the Makefile, instead of quoting the original, which is used later. michael@0: lt_ECHO=$ECHO michael@0: if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then michael@0: lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: test -n "$DJDIR" || exec 7<&0 &1 michael@0: michael@0: # Name of the host. michael@0: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, michael@0: # so uname gets run too. michael@0: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: michael@0: # michael@0: # Initializations. michael@0: # michael@0: ac_default_prefix=/usr/local michael@0: ac_clean_files= michael@0: ac_config_libobj_dir=. michael@0: LIBOBJS= michael@0: cross_compiling=no michael@0: subdirs= michael@0: MFLAGS= michael@0: MAKEFLAGS= michael@0: michael@0: # Identity of this package. michael@0: PACKAGE_NAME='glog' michael@0: PACKAGE_TARNAME='glog' michael@0: PACKAGE_VERSION='0.3.1' michael@0: PACKAGE_STRING='glog 0.3.1' michael@0: PACKAGE_BUGREPORT='opensource@google.com' michael@0: PACKAGE_URL='' michael@0: michael@0: ac_unique_file="README" michael@0: # Factoring default headers for most tests. michael@0: ac_includes_default="\ michael@0: #include michael@0: #ifdef HAVE_SYS_TYPES_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_SYS_STAT_H michael@0: # include michael@0: #endif michael@0: #ifdef STDC_HEADERS michael@0: # include michael@0: # include michael@0: #else michael@0: # ifdef HAVE_STDLIB_H michael@0: # include michael@0: # endif michael@0: #endif michael@0: #ifdef HAVE_STRING_H michael@0: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H michael@0: # include michael@0: # endif michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_STRINGS_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_INTTYPES_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_STDINT_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_UNISTD_H michael@0: # include michael@0: #endif" michael@0: michael@0: ac_subst_vars='am__EXEEXT_FALSE michael@0: am__EXEEXT_TRUE michael@0: LTLIBOBJS michael@0: LIBOBJS michael@0: GMOCK_LIBS michael@0: GTEST_LIBS michael@0: GFLAGS_LIBS michael@0: GMOCK_CFLAGS michael@0: GTEST_CFLAGS michael@0: GFLAGS_CFLAGS michael@0: ac_cv_have_libgflags michael@0: ac_cv_have___uint16 michael@0: ac_cv_have_u_int16_t michael@0: ac_cv_have_uint16_t michael@0: ac_cv_have_unistd_h michael@0: ac_cv_have_inttypes_h michael@0: ac_cv_have_systypes_h michael@0: ac_cv_have_stdint_h michael@0: ac_cv_have___builtin_expect michael@0: ac_cv___attribute___printf_4_5 michael@0: ac_cv___attribute___noreturn michael@0: ac_cv_cxx_using_operator michael@0: ac_google_namespace michael@0: ac_google_end_namespace michael@0: ac_google_start_namespace michael@0: UNWIND_LIBS michael@0: HAVE_GMOCK_FALSE michael@0: HAVE_GMOCK_TRUE michael@0: GMOCK_CONFIG michael@0: GTEST_CONFIG michael@0: PTHREAD_CFLAGS michael@0: PTHREAD_LIBS michael@0: PTHREAD_CC michael@0: acx_pthread_config michael@0: X86_64_FALSE michael@0: X86_64_TRUE michael@0: ENABLE_FRAME_POINTERS_FALSE michael@0: ENABLE_FRAME_POINTERS_TRUE michael@0: LIBTOOL_DEPS michael@0: CXXCPP michael@0: OTOOL64 michael@0: OTOOL michael@0: LIPO michael@0: NMEDIT michael@0: DSYMUTIL michael@0: lt_ECHO michael@0: RANLIB michael@0: AR michael@0: OBJDUMP michael@0: LN_S michael@0: NM michael@0: ac_ct_DUMPBIN michael@0: DUMPBIN michael@0: LD michael@0: FGREP michael@0: EGREP michael@0: GREP michael@0: SED michael@0: host_os michael@0: host_vendor michael@0: host_cpu michael@0: host michael@0: build_os michael@0: build_vendor michael@0: build_cpu michael@0: build michael@0: LIBTOOL michael@0: GCC_FALSE michael@0: GCC_TRUE michael@0: am__fastdepCXX_FALSE michael@0: am__fastdepCXX_TRUE michael@0: CXXDEPMODE michael@0: ac_ct_CXX michael@0: CXXFLAGS michael@0: CXX michael@0: CPP michael@0: am__fastdepCC_FALSE michael@0: am__fastdepCC_TRUE michael@0: CCDEPMODE michael@0: AMDEPBACKSLASH michael@0: AMDEP_FALSE michael@0: AMDEP_TRUE michael@0: am__quote michael@0: am__include michael@0: DEPDIR michael@0: OBJEXT michael@0: EXEEXT michael@0: ac_ct_CC michael@0: CPPFLAGS michael@0: LDFLAGS michael@0: CFLAGS michael@0: CC michael@0: am__untar michael@0: am__tar michael@0: AMTAR michael@0: am__leading_dot michael@0: SET_MAKE michael@0: AWK michael@0: mkdir_p michael@0: MKDIR_P michael@0: INSTALL_STRIP_PROGRAM michael@0: STRIP michael@0: install_sh michael@0: MAKEINFO michael@0: AUTOHEADER michael@0: AUTOMAKE michael@0: AUTOCONF michael@0: ACLOCAL michael@0: VERSION michael@0: PACKAGE michael@0: CYGPATH_W michael@0: am__isrc michael@0: INSTALL_DATA michael@0: INSTALL_SCRIPT michael@0: INSTALL_PROGRAM michael@0: target_alias michael@0: host_alias michael@0: build_alias michael@0: LIBS michael@0: ECHO_T michael@0: ECHO_N michael@0: ECHO_C michael@0: DEFS michael@0: mandir michael@0: localedir michael@0: libdir michael@0: psdir michael@0: pdfdir michael@0: dvidir michael@0: htmldir michael@0: infodir michael@0: docdir michael@0: oldincludedir michael@0: includedir michael@0: localstatedir michael@0: sharedstatedir michael@0: sysconfdir michael@0: datadir michael@0: datarootdir michael@0: libexecdir michael@0: sbindir michael@0: bindir michael@0: program_transform_name michael@0: prefix michael@0: exec_prefix michael@0: PACKAGE_URL michael@0: PACKAGE_BUGREPORT michael@0: PACKAGE_STRING michael@0: PACKAGE_VERSION michael@0: PACKAGE_TARNAME michael@0: PACKAGE_NAME michael@0: PATH_SEPARATOR michael@0: SHELL' michael@0: ac_subst_files='' michael@0: ac_user_opts=' michael@0: enable_option_checking michael@0: enable_dependency_tracking michael@0: enable_shared michael@0: enable_static michael@0: with_pic michael@0: enable_fast_install michael@0: with_gnu_ld michael@0: enable_libtool_lock michael@0: enable_frame_pointers michael@0: with_gflags michael@0: enable_namespace michael@0: ' michael@0: ac_precious_vars='build_alias michael@0: host_alias michael@0: target_alias michael@0: CC michael@0: CFLAGS michael@0: LDFLAGS michael@0: LIBS michael@0: CPPFLAGS michael@0: CPP michael@0: CXX michael@0: CXXFLAGS michael@0: CCC michael@0: CXXCPP' michael@0: michael@0: michael@0: # Initialize some variables set by options. michael@0: ac_init_help= michael@0: ac_init_version=false michael@0: ac_unrecognized_opts= michael@0: ac_unrecognized_sep= michael@0: # The variables have the same names as the options, with michael@0: # dashes changed to underlines. michael@0: cache_file=/dev/null michael@0: exec_prefix=NONE michael@0: no_create= michael@0: no_recursion= michael@0: prefix=NONE michael@0: program_prefix=NONE michael@0: program_suffix=NONE michael@0: program_transform_name=s,x,x, michael@0: silent= michael@0: site= michael@0: srcdir= michael@0: verbose= michael@0: x_includes=NONE michael@0: x_libraries=NONE michael@0: michael@0: # Installation directory options. michael@0: # These are left unexpanded so users can "make install exec_prefix=/foo" michael@0: # and all the variables that are supposed to be based on exec_prefix michael@0: # by default will actually change. michael@0: # Use braces instead of parens because sh, perl, etc. also accept them. michael@0: # (The list follows the same order as the GNU Coding Standards.) michael@0: bindir='${exec_prefix}/bin' michael@0: sbindir='${exec_prefix}/sbin' michael@0: libexecdir='${exec_prefix}/libexec' michael@0: datarootdir='${prefix}/share' michael@0: datadir='${datarootdir}' michael@0: sysconfdir='${prefix}/etc' michael@0: sharedstatedir='${prefix}/com' michael@0: localstatedir='${prefix}/var' michael@0: includedir='${prefix}/include' michael@0: oldincludedir='/usr/include' michael@0: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' michael@0: infodir='${datarootdir}/info' michael@0: htmldir='${docdir}' michael@0: dvidir='${docdir}' michael@0: pdfdir='${docdir}' michael@0: psdir='${docdir}' michael@0: libdir='${exec_prefix}/lib' michael@0: localedir='${datarootdir}/locale' michael@0: mandir='${datarootdir}/man' michael@0: michael@0: ac_prev= michael@0: ac_dashdash= michael@0: for ac_option michael@0: do michael@0: # If the previous option needs an argument, assign it. michael@0: if test -n "$ac_prev"; then michael@0: eval $ac_prev=\$ac_option michael@0: ac_prev= michael@0: continue michael@0: fi michael@0: michael@0: case $ac_option in michael@0: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; michael@0: *) ac_optarg=yes ;; michael@0: esac michael@0: michael@0: # Accept the important Cygnus configure options, so we can diagnose typos. michael@0: michael@0: case $ac_dashdash$ac_option in michael@0: --) michael@0: ac_dashdash=yes ;; michael@0: michael@0: -bindir | --bindir | --bindi | --bind | --bin | --bi) michael@0: ac_prev=bindir ;; michael@0: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) michael@0: bindir=$ac_optarg ;; michael@0: michael@0: -build | --build | --buil | --bui | --bu) michael@0: ac_prev=build_alias ;; michael@0: -build=* | --build=* | --buil=* | --bui=* | --bu=*) michael@0: build_alias=$ac_optarg ;; michael@0: michael@0: -cache-file | --cache-file | --cache-fil | --cache-fi \ michael@0: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) michael@0: ac_prev=cache_file ;; michael@0: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ michael@0: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) michael@0: cache_file=$ac_optarg ;; michael@0: michael@0: --config-cache | -C) michael@0: cache_file=config.cache ;; michael@0: michael@0: -datadir | --datadir | --datadi | --datad) michael@0: ac_prev=datadir ;; michael@0: -datadir=* | --datadir=* | --datadi=* | --datad=*) michael@0: datadir=$ac_optarg ;; michael@0: michael@0: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ michael@0: | --dataroo | --dataro | --datar) michael@0: ac_prev=datarootdir ;; michael@0: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ michael@0: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) michael@0: datarootdir=$ac_optarg ;; michael@0: michael@0: -disable-* | --disable-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error "invalid feature name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "enable_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval enable_$ac_useropt=no ;; michael@0: michael@0: -docdir | --docdir | --docdi | --doc | --do) michael@0: ac_prev=docdir ;; michael@0: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) michael@0: docdir=$ac_optarg ;; michael@0: michael@0: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) michael@0: ac_prev=dvidir ;; michael@0: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) michael@0: dvidir=$ac_optarg ;; michael@0: michael@0: -enable-* | --enable-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error "invalid feature name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "enable_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval enable_$ac_useropt=\$ac_optarg ;; michael@0: michael@0: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ michael@0: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ michael@0: | --exec | --exe | --ex) michael@0: ac_prev=exec_prefix ;; michael@0: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ michael@0: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ michael@0: | --exec=* | --exe=* | --ex=*) michael@0: exec_prefix=$ac_optarg ;; michael@0: michael@0: -gas | --gas | --ga | --g) michael@0: # Obsolete; use --with-gas. michael@0: with_gas=yes ;; michael@0: michael@0: -help | --help | --hel | --he | -h) michael@0: ac_init_help=long ;; michael@0: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) michael@0: ac_init_help=recursive ;; michael@0: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) michael@0: ac_init_help=short ;; michael@0: michael@0: -host | --host | --hos | --ho) michael@0: ac_prev=host_alias ;; michael@0: -host=* | --host=* | --hos=* | --ho=*) michael@0: host_alias=$ac_optarg ;; michael@0: michael@0: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) michael@0: ac_prev=htmldir ;; michael@0: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ michael@0: | --ht=*) michael@0: htmldir=$ac_optarg ;; michael@0: michael@0: -includedir | --includedir | --includedi | --included | --include \ michael@0: | --includ | --inclu | --incl | --inc) michael@0: ac_prev=includedir ;; michael@0: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ michael@0: | --includ=* | --inclu=* | --incl=* | --inc=*) michael@0: includedir=$ac_optarg ;; michael@0: michael@0: -infodir | --infodir | --infodi | --infod | --info | --inf) michael@0: ac_prev=infodir ;; michael@0: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) michael@0: infodir=$ac_optarg ;; michael@0: michael@0: -libdir | --libdir | --libdi | --libd) michael@0: ac_prev=libdir ;; michael@0: -libdir=* | --libdir=* | --libdi=* | --libd=*) michael@0: libdir=$ac_optarg ;; michael@0: michael@0: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ michael@0: | --libexe | --libex | --libe) michael@0: ac_prev=libexecdir ;; michael@0: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ michael@0: | --libexe=* | --libex=* | --libe=*) michael@0: libexecdir=$ac_optarg ;; michael@0: michael@0: -localedir | --localedir | --localedi | --localed | --locale) michael@0: ac_prev=localedir ;; michael@0: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) michael@0: localedir=$ac_optarg ;; michael@0: michael@0: -localstatedir | --localstatedir | --localstatedi | --localstated \ michael@0: | --localstate | --localstat | --localsta | --localst | --locals) michael@0: ac_prev=localstatedir ;; michael@0: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ michael@0: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) michael@0: localstatedir=$ac_optarg ;; michael@0: michael@0: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) michael@0: ac_prev=mandir ;; michael@0: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) michael@0: mandir=$ac_optarg ;; michael@0: michael@0: -nfp | --nfp | --nf) michael@0: # Obsolete; use --without-fp. michael@0: with_fp=no ;; michael@0: michael@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ michael@0: | --no-cr | --no-c | -n) michael@0: no_create=yes ;; michael@0: michael@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ michael@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) michael@0: no_recursion=yes ;; michael@0: michael@0: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ michael@0: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ michael@0: | --oldin | --oldi | --old | --ol | --o) michael@0: ac_prev=oldincludedir ;; michael@0: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ michael@0: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ michael@0: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) michael@0: oldincludedir=$ac_optarg ;; michael@0: michael@0: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) michael@0: ac_prev=prefix ;; michael@0: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) michael@0: prefix=$ac_optarg ;; michael@0: michael@0: -program-prefix | --program-prefix | --program-prefi | --program-pref \ michael@0: | --program-pre | --program-pr | --program-p) michael@0: ac_prev=program_prefix ;; michael@0: -program-prefix=* | --program-prefix=* | --program-prefi=* \ michael@0: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) michael@0: program_prefix=$ac_optarg ;; michael@0: michael@0: -program-suffix | --program-suffix | --program-suffi | --program-suff \ michael@0: | --program-suf | --program-su | --program-s) michael@0: ac_prev=program_suffix ;; michael@0: -program-suffix=* | --program-suffix=* | --program-suffi=* \ michael@0: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) michael@0: program_suffix=$ac_optarg ;; michael@0: michael@0: -program-transform-name | --program-transform-name \ michael@0: | --program-transform-nam | --program-transform-na \ michael@0: | --program-transform-n | --program-transform- \ michael@0: | --program-transform | --program-transfor \ michael@0: | --program-transfo | --program-transf \ michael@0: | --program-trans | --program-tran \ michael@0: | --progr-tra | --program-tr | --program-t) michael@0: ac_prev=program_transform_name ;; michael@0: -program-transform-name=* | --program-transform-name=* \ michael@0: | --program-transform-nam=* | --program-transform-na=* \ michael@0: | --program-transform-n=* | --program-transform-=* \ michael@0: | --program-transform=* | --program-transfor=* \ michael@0: | --program-transfo=* | --program-transf=* \ michael@0: | --program-trans=* | --program-tran=* \ michael@0: | --progr-tra=* | --program-tr=* | --program-t=*) michael@0: program_transform_name=$ac_optarg ;; michael@0: michael@0: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) michael@0: ac_prev=pdfdir ;; michael@0: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) michael@0: pdfdir=$ac_optarg ;; michael@0: michael@0: -psdir | --psdir | --psdi | --psd | --ps) michael@0: ac_prev=psdir ;; michael@0: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) michael@0: psdir=$ac_optarg ;; michael@0: michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil) michael@0: silent=yes ;; michael@0: michael@0: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) michael@0: ac_prev=sbindir ;; michael@0: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ michael@0: | --sbi=* | --sb=*) michael@0: sbindir=$ac_optarg ;; michael@0: michael@0: -sharedstatedir | --sharedstatedir | --sharedstatedi \ michael@0: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ michael@0: | --sharedst | --shareds | --shared | --share | --shar \ michael@0: | --sha | --sh) michael@0: ac_prev=sharedstatedir ;; michael@0: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ michael@0: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ michael@0: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ michael@0: | --sha=* | --sh=*) michael@0: sharedstatedir=$ac_optarg ;; michael@0: michael@0: -site | --site | --sit) michael@0: ac_prev=site ;; michael@0: -site=* | --site=* | --sit=*) michael@0: site=$ac_optarg ;; michael@0: michael@0: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) michael@0: ac_prev=srcdir ;; michael@0: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) michael@0: srcdir=$ac_optarg ;; michael@0: michael@0: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ michael@0: | --syscon | --sysco | --sysc | --sys | --sy) michael@0: ac_prev=sysconfdir ;; michael@0: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ michael@0: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) michael@0: sysconfdir=$ac_optarg ;; michael@0: michael@0: -target | --target | --targe | --targ | --tar | --ta | --t) michael@0: ac_prev=target_alias ;; michael@0: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) michael@0: target_alias=$ac_optarg ;; michael@0: michael@0: -v | -verbose | --verbose | --verbos | --verbo | --verb) michael@0: verbose=yes ;; michael@0: michael@0: -version | --version | --versio | --versi | --vers | -V) michael@0: ac_init_version=: ;; michael@0: michael@0: -with-* | --with-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error "invalid package name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "with_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval with_$ac_useropt=\$ac_optarg ;; michael@0: michael@0: -without-* | --without-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error "invalid package name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "with_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval with_$ac_useropt=no ;; michael@0: michael@0: --x) michael@0: # Obsolete; use --with-x. michael@0: with_x=yes ;; michael@0: michael@0: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ michael@0: | --x-incl | --x-inc | --x-in | --x-i) michael@0: ac_prev=x_includes ;; michael@0: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ michael@0: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) michael@0: x_includes=$ac_optarg ;; michael@0: michael@0: -x-libraries | --x-libraries | --x-librarie | --x-librari \ michael@0: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) michael@0: ac_prev=x_libraries ;; michael@0: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ michael@0: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) michael@0: x_libraries=$ac_optarg ;; michael@0: michael@0: -*) as_fn_error "unrecognized option: \`$ac_option' michael@0: Try \`$0 --help' for more information." michael@0: ;; michael@0: michael@0: *=*) michael@0: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` michael@0: # Reject names that are not valid shell variable names. michael@0: case $ac_envvar in #( michael@0: '' | [0-9]* | *[!_$as_cr_alnum]* ) michael@0: as_fn_error "invalid variable name: \`$ac_envvar'" ;; michael@0: esac michael@0: eval $ac_envvar=\$ac_optarg michael@0: export $ac_envvar ;; michael@0: michael@0: *) michael@0: # FIXME: should be removed in autoconf 3.0. michael@0: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 michael@0: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && michael@0: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 michael@0: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} michael@0: ;; michael@0: michael@0: esac michael@0: done michael@0: michael@0: if test -n "$ac_prev"; then michael@0: ac_option=--`echo $ac_prev | sed 's/_/-/g'` michael@0: as_fn_error "missing argument to $ac_option" michael@0: fi michael@0: michael@0: if test -n "$ac_unrecognized_opts"; then michael@0: case $enable_option_checking in michael@0: no) ;; michael@0: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; michael@0: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; michael@0: esac michael@0: fi michael@0: michael@0: # Check all directory arguments for consistency. michael@0: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ michael@0: datadir sysconfdir sharedstatedir localstatedir includedir \ michael@0: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ michael@0: libdir localedir mandir michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: # Remove trailing slashes. michael@0: case $ac_val in michael@0: */ ) michael@0: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` michael@0: eval $ac_var=\$ac_val;; michael@0: esac michael@0: # Be sure to have absolute directory names. michael@0: case $ac_val in michael@0: [\\/$]* | ?:[\\/]* ) continue;; michael@0: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; michael@0: esac michael@0: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" michael@0: done michael@0: michael@0: # There might be people who depend on the old broken behavior: `$host' michael@0: # used to hold the argument of --host etc. michael@0: # FIXME: To remove some day. michael@0: build=$build_alias michael@0: host=$host_alias michael@0: target=$target_alias michael@0: michael@0: # FIXME: To remove some day. michael@0: if test "x$host_alias" != x; then michael@0: if test "x$build_alias" = x; then michael@0: cross_compiling=maybe michael@0: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. michael@0: If a cross compiler is detected then cross compile mode will be used." >&2 michael@0: elif test "x$build_alias" != "x$host_alias"; then michael@0: cross_compiling=yes michael@0: fi michael@0: fi michael@0: michael@0: ac_tool_prefix= michael@0: test -n "$host_alias" && ac_tool_prefix=$host_alias- michael@0: michael@0: test "$silent" = yes && exec 6>/dev/null michael@0: michael@0: michael@0: ac_pwd=`pwd` && test -n "$ac_pwd" && michael@0: ac_ls_di=`ls -di .` && michael@0: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || michael@0: as_fn_error "working directory cannot be determined" michael@0: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || michael@0: as_fn_error "pwd does not report name of working directory" michael@0: michael@0: michael@0: # Find the source files, if location was not specified. michael@0: if test -z "$srcdir"; then michael@0: ac_srcdir_defaulted=yes michael@0: # Try the directory containing this script, then the parent directory. michael@0: ac_confdir=`$as_dirname -- "$as_myself" || michael@0: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_myself" : 'X\(//\)[^/]' \| \ michael@0: X"$as_myself" : 'X\(//\)$' \| \ michael@0: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_myself" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: srcdir=$ac_confdir michael@0: if test ! -r "$srcdir/$ac_unique_file"; then michael@0: srcdir=.. michael@0: fi michael@0: else michael@0: ac_srcdir_defaulted=no michael@0: fi michael@0: if test ! -r "$srcdir/$ac_unique_file"; then michael@0: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." michael@0: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" michael@0: fi michael@0: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" michael@0: ac_abs_confdir=`( michael@0: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" michael@0: pwd)` michael@0: # When building in place, set srcdir=. michael@0: if test "$ac_abs_confdir" = "$ac_pwd"; then michael@0: srcdir=. michael@0: fi michael@0: # Remove unnecessary trailing slashes from srcdir. michael@0: # Double slashes in file names in object file debugging info michael@0: # mess up M-x gdb in Emacs. michael@0: case $srcdir in michael@0: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; michael@0: esac michael@0: for ac_var in $ac_precious_vars; do michael@0: eval ac_env_${ac_var}_set=\${${ac_var}+set} michael@0: eval ac_env_${ac_var}_value=\$${ac_var} michael@0: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} michael@0: eval ac_cv_env_${ac_var}_value=\$${ac_var} michael@0: done michael@0: michael@0: # michael@0: # Report the --help message. michael@0: # michael@0: if test "$ac_init_help" = "long"; then michael@0: # Omit some internal or obsolete options to make the list less imposing. michael@0: # This message is too long to be a string in the A/UX 3.1 sh. michael@0: cat <<_ACEOF michael@0: \`configure' configures glog 0.3.1 to adapt to many kinds of systems. michael@0: michael@0: Usage: $0 [OPTION]... [VAR=VALUE]... michael@0: michael@0: To assign environment variables (e.g., CC, CFLAGS...), specify them as michael@0: VAR=VALUE. See below for descriptions of some of the useful variables. michael@0: michael@0: Defaults for the options are specified in brackets. michael@0: michael@0: Configuration: michael@0: -h, --help display this help and exit michael@0: --help=short display options specific to this package michael@0: --help=recursive display the short help of all the included packages michael@0: -V, --version display version information and exit michael@0: -q, --quiet, --silent do not print \`checking...' messages michael@0: --cache-file=FILE cache test results in FILE [disabled] michael@0: -C, --config-cache alias for \`--cache-file=config.cache' michael@0: -n, --no-create do not create output files michael@0: --srcdir=DIR find the sources in DIR [configure dir or \`..'] michael@0: michael@0: Installation directories: michael@0: --prefix=PREFIX install architecture-independent files in PREFIX michael@0: [$ac_default_prefix] michael@0: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX michael@0: [PREFIX] michael@0: michael@0: By default, \`make install' will install all the files in michael@0: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify michael@0: an installation prefix other than \`$ac_default_prefix' using \`--prefix', michael@0: for instance \`--prefix=\$HOME'. michael@0: michael@0: For better control, use the options below. michael@0: michael@0: Fine tuning of the installation directories: michael@0: --bindir=DIR user executables [EPREFIX/bin] michael@0: --sbindir=DIR system admin executables [EPREFIX/sbin] michael@0: --libexecdir=DIR program executables [EPREFIX/libexec] michael@0: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] michael@0: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] michael@0: --localstatedir=DIR modifiable single-machine data [PREFIX/var] michael@0: --libdir=DIR object code libraries [EPREFIX/lib] michael@0: --includedir=DIR C header files [PREFIX/include] michael@0: --oldincludedir=DIR C header files for non-gcc [/usr/include] michael@0: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] michael@0: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] michael@0: --infodir=DIR info documentation [DATAROOTDIR/info] michael@0: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] michael@0: --mandir=DIR man documentation [DATAROOTDIR/man] michael@0: --docdir=DIR documentation root [DATAROOTDIR/doc/glog] michael@0: --htmldir=DIR html documentation [DOCDIR] michael@0: --dvidir=DIR dvi documentation [DOCDIR] michael@0: --pdfdir=DIR pdf documentation [DOCDIR] michael@0: --psdir=DIR ps documentation [DOCDIR] michael@0: _ACEOF michael@0: michael@0: cat <<\_ACEOF michael@0: michael@0: Program names: michael@0: --program-prefix=PREFIX prepend PREFIX to installed program names michael@0: --program-suffix=SUFFIX append SUFFIX to installed program names michael@0: --program-transform-name=PROGRAM run sed PROGRAM on installed program names michael@0: michael@0: System types: michael@0: --build=BUILD configure for building on BUILD [guessed] michael@0: --host=HOST cross-compile to build programs to run on HOST [BUILD] michael@0: _ACEOF michael@0: fi michael@0: michael@0: if test -n "$ac_init_help"; then michael@0: case $ac_init_help in michael@0: short | recursive ) echo "Configuration of glog 0.3.1:";; michael@0: esac michael@0: cat <<\_ACEOF michael@0: michael@0: Optional Features: michael@0: --disable-option-checking ignore unrecognized --enable/--with options michael@0: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) michael@0: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] michael@0: --disable-dependency-tracking speeds up one-time build michael@0: --enable-dependency-tracking do not reject slow dependency extractors michael@0: --enable-shared[=PKGS] build shared libraries [default=yes] michael@0: --enable-static[=PKGS] build static libraries [default=yes] michael@0: --enable-fast-install[=PKGS] michael@0: optimize for fast installation [default=yes] michael@0: --disable-libtool-lock avoid locking (might break parallel builds) michael@0: --enable-frame-pointers On x86_64 systems, compile with michael@0: -fno-omit-frame-pointer (see INSTALL) michael@0: --enable-namespace=FOO to define these Google michael@0: classes in the FOO namespace. --disable-namespace michael@0: to define them in the global namespace. Default michael@0: is to define them in namespace google. michael@0: michael@0: Optional Packages: michael@0: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] michael@0: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) michael@0: --with-pic try to use only PIC/non-PIC objects [default=use michael@0: both] michael@0: --with-gnu-ld assume the C compiler uses GNU ld [default=no] michael@0: --with-gflags=GFLAGS_DIR michael@0: michael@0: Some influential environment variables: michael@0: CC C compiler command michael@0: CFLAGS C compiler flags michael@0: LDFLAGS linker flags, e.g. -L if you have libraries in a michael@0: nonstandard directory michael@0: LIBS libraries to pass to the linker, e.g. -l michael@0: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if michael@0: you have headers in a nonstandard directory michael@0: CPP C preprocessor michael@0: CXX C++ compiler command michael@0: CXXFLAGS C++ compiler flags michael@0: CXXCPP C++ preprocessor michael@0: michael@0: Use these variables to override the choices made by `configure' or to help michael@0: it to find libraries and programs with nonstandard names/locations. michael@0: michael@0: Report bugs to . michael@0: _ACEOF michael@0: ac_status=$? michael@0: fi michael@0: michael@0: if test "$ac_init_help" = "recursive"; then michael@0: # If there are subdirs, report their specific --help. michael@0: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue michael@0: test -d "$ac_dir" || michael@0: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || michael@0: continue michael@0: ac_builddir=. michael@0: michael@0: case "$ac_dir" in michael@0: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) michael@0: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` michael@0: # A ".." for each directory in $ac_dir_suffix. michael@0: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` michael@0: case $ac_top_builddir_sub in michael@0: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; michael@0: esac ;; michael@0: esac michael@0: ac_abs_top_builddir=$ac_pwd michael@0: ac_abs_builddir=$ac_pwd$ac_dir_suffix michael@0: # for backward compatibility: michael@0: ac_top_builddir=$ac_top_build_prefix michael@0: michael@0: case $srcdir in michael@0: .) # We are building in place. michael@0: ac_srcdir=. michael@0: ac_top_srcdir=$ac_top_builddir_sub michael@0: ac_abs_top_srcdir=$ac_pwd ;; michael@0: [\\/]* | ?:[\\/]* ) # Absolute name. michael@0: ac_srcdir=$srcdir$ac_dir_suffix; michael@0: ac_top_srcdir=$srcdir michael@0: ac_abs_top_srcdir=$srcdir ;; michael@0: *) # Relative name. michael@0: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix michael@0: ac_top_srcdir=$ac_top_build_prefix$srcdir michael@0: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; michael@0: esac michael@0: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix michael@0: michael@0: cd "$ac_dir" || { ac_status=$?; continue; } michael@0: # Check for guested configure. michael@0: if test -f "$ac_srcdir/configure.gnu"; then michael@0: echo && michael@0: $SHELL "$ac_srcdir/configure.gnu" --help=recursive michael@0: elif test -f "$ac_srcdir/configure"; then michael@0: echo && michael@0: $SHELL "$ac_srcdir/configure" --help=recursive michael@0: else michael@0: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 michael@0: fi || ac_status=$? michael@0: cd "$ac_pwd" || { ac_status=$?; break; } michael@0: done michael@0: fi michael@0: michael@0: test -n "$ac_init_help" && exit $ac_status michael@0: if $ac_init_version; then michael@0: cat <<\_ACEOF michael@0: glog configure 0.3.1 michael@0: generated by GNU Autoconf 2.65 michael@0: michael@0: Copyright (C) 2009 Free Software Foundation, Inc. michael@0: This configure script is free software; the Free Software Foundation michael@0: gives unlimited permission to copy, distribute and modify it. michael@0: _ACEOF michael@0: exit michael@0: fi michael@0: michael@0: ## ------------------------ ## michael@0: ## Autoconf initialization. ## michael@0: ## ------------------------ ## michael@0: michael@0: # ac_fn_c_try_compile LINENO michael@0: # -------------------------- michael@0: # Try to compile conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_compile () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest.$ac_objext; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_compile michael@0: michael@0: # ac_fn_c_try_cpp LINENO michael@0: # ---------------------- michael@0: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_cpp () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { { ac_try="$ac_cpp conftest.$ac_ext" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } >/dev/null && { michael@0: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_cpp michael@0: michael@0: # ac_fn_cxx_try_compile LINENO michael@0: # ---------------------------- michael@0: # Try to compile conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_cxx_try_compile () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_cxx_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest.$ac_objext; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_cxx_try_compile michael@0: michael@0: # ac_fn_c_try_link LINENO michael@0: # ----------------------- michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_link () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext conftest$ac_exeext michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest$ac_exeext && { michael@0: test "$cross_compiling" = yes || michael@0: $as_test_x conftest$ac_exeext michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information michael@0: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would michael@0: # interfere with the next link command; also delete a directory that is michael@0: # left behind by Apple's compiler. We do this before executing the actions. michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_link michael@0: michael@0: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES michael@0: # ------------------------------------------------------- michael@0: # Tests whether HEADER exists and can be compiled using the include files in michael@0: # INCLUDES, setting the cache variable VAR accordingly. michael@0: ac_fn_c_check_header_compile () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: eval "$3=yes" michael@0: else michael@0: eval "$3=no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: michael@0: } # ac_fn_c_check_header_compile michael@0: michael@0: # ac_fn_c_try_run LINENO michael@0: # ---------------------- michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes michael@0: # that executables *can* be run. michael@0: ac_fn_c_try_run () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' michael@0: { { case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_try") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: program exited with status $ac_status" >&5 michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=$ac_status michael@0: fi michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_run michael@0: michael@0: # ac_fn_c_check_func LINENO FUNC VAR michael@0: # ---------------------------------- michael@0: # Tests whether FUNC exists, setting the cache variable VAR accordingly michael@0: ac_fn_c_check_func () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: /* Define $2 to an innocuous variant, in case declares $2. michael@0: For example, HP-UX 11i declares gettimeofday. */ michael@0: #define $2 innocuous_$2 michael@0: michael@0: /* System header to define __stub macros and hopefully few prototypes, michael@0: which can conflict with char $2 (); below. michael@0: Prefer to if __STDC__ is defined, since michael@0: exists even on freestanding compilers. */ michael@0: michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: michael@0: #undef $2 michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char $2 (); michael@0: /* The GNU C library defines this for functions which it implements michael@0: to always fail with ENOSYS. Some functions are actually named michael@0: something starting with __ and the normal name is an alias. */ michael@0: #if defined __stub_$2 || defined __stub___$2 michael@0: choke me michael@0: #endif michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return $2 (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: eval "$3=yes" michael@0: else michael@0: eval "$3=no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: michael@0: } # ac_fn_c_check_func michael@0: michael@0: # ac_fn_cxx_try_cpp LINENO michael@0: # ------------------------ michael@0: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_cxx_try_cpp () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { { ac_try="$ac_cpp conftest.$ac_ext" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } >/dev/null && { michael@0: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || michael@0: test ! -s conftest.err michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_cxx_try_cpp michael@0: michael@0: # ac_fn_cxx_try_link LINENO michael@0: # ------------------------- michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_cxx_try_link () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext conftest$ac_exeext michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_cxx_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest$ac_exeext && { michael@0: test "$cross_compiling" = yes || michael@0: $as_test_x conftest$ac_exeext michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information michael@0: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would michael@0: # interfere with the next link command; also delete a directory that is michael@0: # left behind by Apple's compiler. We do this before executing the actions. michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_cxx_try_link michael@0: michael@0: # ac_fn_cxx_try_run LINENO michael@0: # ------------------------ michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes michael@0: # that executables *can* be run. michael@0: ac_fn_cxx_try_run () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' michael@0: { { case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_try") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: program exited with status $ac_status" >&5 michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=$ac_status michael@0: fi michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_cxx_try_run michael@0: michael@0: # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES michael@0: # --------------------------------------------------------- michael@0: # Tests whether HEADER exists, giving a warning if it cannot be compiled using michael@0: # the include files in INCLUDES and setting the cache variable VAR michael@0: # accordingly. michael@0: ac_fn_cxx_check_header_mongrel () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: else michael@0: # Is the header compilable? michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 michael@0: $as_echo_n "checking $2 usability... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_header_compiler=yes michael@0: else michael@0: ac_header_compiler=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 michael@0: $as_echo "$ac_header_compiler" >&6; } michael@0: michael@0: # Is the header present? michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 michael@0: $as_echo_n "checking $2 presence... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_cxx_try_cpp "$LINENO"; then : michael@0: ac_header_preproc=yes michael@0: else michael@0: ac_header_preproc=no michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 michael@0: $as_echo "$ac_header_preproc" >&6; } michael@0: michael@0: # So? What about this header? michael@0: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( michael@0: yes:no: ) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 michael@0: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 michael@0: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} michael@0: ;; michael@0: no:yes:* ) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 michael@0: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 michael@0: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 michael@0: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 michael@0: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 michael@0: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} michael@0: ( cat <<\_ASBOX michael@0: ## ------------------------------------ ## michael@0: ## Report this to opensource@google.com ## michael@0: ## ------------------------------------ ## michael@0: _ASBOX michael@0: ) | sed "s/^/$as_me: WARNING: /" >&2 michael@0: ;; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: eval "$3=\$ac_header_compiler" michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: fi michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: michael@0: } # ac_fn_cxx_check_header_mongrel michael@0: michael@0: # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES michael@0: # ---------------------------------------------- michael@0: # Tries to find the compile-time value of EXPR in a program that includes michael@0: # INCLUDES, setting VAR accordingly. Returns whether the value could be michael@0: # computed michael@0: ac_fn_cxx_compute_int () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if test "$cross_compiling" = yes; then michael@0: # Depending upon the size, compute the lo and hi bounds. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) >= 0)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_lo=0 ac_mid=0 michael@0: while :; do michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) <= $ac_mid)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_hi=$ac_mid; break michael@0: else michael@0: as_fn_arith $ac_mid + 1 && ac_lo=$as_val michael@0: if test $ac_lo -le $ac_mid; then michael@0: ac_lo= ac_hi= michael@0: break michael@0: fi michael@0: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: done michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) < 0)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_hi=-1 ac_mid=-1 michael@0: while :; do michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) >= $ac_mid)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_lo=$ac_mid; break michael@0: else michael@0: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val michael@0: if test $ac_mid -le $ac_hi; then michael@0: ac_lo= ac_hi= michael@0: break michael@0: fi michael@0: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: done michael@0: else michael@0: ac_lo= ac_hi= michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: # Binary search between lo and hi bounds. michael@0: while test "x$ac_lo" != "x$ac_hi"; do michael@0: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) <= $ac_mid)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_hi=$ac_mid michael@0: else michael@0: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: done michael@0: case $ac_lo in #(( michael@0: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; michael@0: '') ac_retval=1 ;; michael@0: esac michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: static long int longval () { return $2; } michael@0: static unsigned long int ulongval () { return $2; } michael@0: #include michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: michael@0: FILE *f = fopen ("conftest.val", "w"); michael@0: if (! f) michael@0: return 1; michael@0: if (($2) < 0) michael@0: { michael@0: long int i = longval (); michael@0: if (i != ($2)) michael@0: return 1; michael@0: fprintf (f, "%ld", i); michael@0: } michael@0: else michael@0: { michael@0: unsigned long int i = ulongval (); michael@0: if (i != ($2)) michael@0: return 1; michael@0: fprintf (f, "%lu", i); michael@0: } michael@0: /* Do not output a trailing newline, as this causes \r\n confusion michael@0: on some platforms. */ michael@0: return ferror (f) || fclose (f) != 0; michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_run "$LINENO"; then : michael@0: echo >>conftest.val; read $3 &5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: eval "$3=no" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: if (sizeof ($2)) michael@0: return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: if (sizeof (($2))) michael@0: return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: eval "$3=yes" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: michael@0: } # ac_fn_cxx_check_type michael@0: michael@0: # ac_fn_cxx_check_func LINENO FUNC VAR michael@0: # ------------------------------------ michael@0: # Tests whether FUNC exists, setting the cache variable VAR accordingly michael@0: ac_fn_cxx_check_func () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: /* Define $2 to an innocuous variant, in case declares $2. michael@0: For example, HP-UX 11i declares gettimeofday. */ michael@0: #define $2 innocuous_$2 michael@0: michael@0: /* System header to define __stub macros and hopefully few prototypes, michael@0: which can conflict with char $2 (); below. michael@0: Prefer to if __STDC__ is defined, since michael@0: exists even on freestanding compilers. */ michael@0: michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: michael@0: #undef $2 michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char $2 (); michael@0: /* The GNU C library defines this for functions which it implements michael@0: to always fail with ENOSYS. Some functions are actually named michael@0: something starting with __ and the normal name is an alias. */ michael@0: #if defined __stub_$2 || defined __stub___$2 michael@0: choke me michael@0: #endif michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return $2 (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: eval "$3=yes" michael@0: else michael@0: eval "$3=no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} michael@0: michael@0: } # ac_fn_cxx_check_func michael@0: cat >config.log <<_ACEOF michael@0: This file contains any messages produced by compilers while michael@0: running configure, to aid debugging if configure makes a mistake. michael@0: michael@0: It was created by glog $as_me 0.3.1, which was michael@0: generated by GNU Autoconf 2.65. Invocation command line was michael@0: michael@0: $ $0 $@ michael@0: michael@0: _ACEOF michael@0: exec 5>>config.log michael@0: { michael@0: cat <<_ASUNAME michael@0: ## --------- ## michael@0: ## Platform. ## michael@0: ## --------- ## michael@0: michael@0: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: uname -m = `(uname -m) 2>/dev/null || echo unknown` michael@0: uname -r = `(uname -r) 2>/dev/null || echo unknown` michael@0: uname -s = `(uname -s) 2>/dev/null || echo unknown` michael@0: uname -v = `(uname -v) 2>/dev/null || echo unknown` michael@0: michael@0: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` michael@0: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` michael@0: michael@0: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` michael@0: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` michael@0: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` michael@0: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` michael@0: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` michael@0: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` michael@0: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` michael@0: michael@0: _ASUNAME michael@0: michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: $as_echo "PATH: $as_dir" michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: } >&5 michael@0: michael@0: cat >&5 <<_ACEOF michael@0: michael@0: michael@0: ## ----------- ## michael@0: ## Core tests. ## michael@0: ## ----------- ## michael@0: michael@0: _ACEOF michael@0: michael@0: michael@0: # Keep a trace of the command line. michael@0: # Strip out --no-create and --no-recursion so they do not pile up. michael@0: # Strip out --silent because we don't want to record it for future runs. michael@0: # Also quote any args containing shell meta-characters. michael@0: # Make two passes to allow for proper duplicate-argument suppression. michael@0: ac_configure_args= michael@0: ac_configure_args0= michael@0: ac_configure_args1= michael@0: ac_must_keep_next=false michael@0: for ac_pass in 1 2 michael@0: do michael@0: for ac_arg michael@0: do michael@0: case $ac_arg in michael@0: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil) michael@0: continue ;; michael@0: *\'*) michael@0: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: esac michael@0: case $ac_pass in michael@0: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; michael@0: 2) michael@0: as_fn_append ac_configure_args1 " '$ac_arg'" michael@0: if test $ac_must_keep_next = true; then michael@0: ac_must_keep_next=false # Got value, back to normal. michael@0: else michael@0: case $ac_arg in michael@0: *=* | --config-cache | -C | -disable-* | --disable-* \ michael@0: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ michael@0: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ michael@0: | -with-* | --with-* | -without-* | --without-* | --x) michael@0: case "$ac_configure_args0 " in michael@0: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; michael@0: esac michael@0: ;; michael@0: -* ) ac_must_keep_next=true ;; michael@0: esac michael@0: fi michael@0: as_fn_append ac_configure_args " '$ac_arg'" michael@0: ;; michael@0: esac michael@0: done michael@0: done michael@0: { ac_configure_args0=; unset ac_configure_args0;} michael@0: { ac_configure_args1=; unset ac_configure_args1;} michael@0: michael@0: # When interrupted or exit'd, cleanup temporary files, and complete michael@0: # config.log. We remove comments because anyway the quotes in there michael@0: # would cause problems or look ugly. michael@0: # WARNING: Use '\'' to represent an apostrophe within the trap. michael@0: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. michael@0: trap 'exit_status=$? michael@0: # Save into config.log some information that might help in debugging. michael@0: { michael@0: echo michael@0: michael@0: cat <<\_ASBOX michael@0: ## ---------------- ## michael@0: ## Cache variables. ## michael@0: ## ---------------- ## michael@0: _ASBOX michael@0: echo michael@0: # The following way of writing the cache mishandles newlines in values, michael@0: ( michael@0: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in #( michael@0: *${as_nl}*) michael@0: case $ac_var in #( michael@0: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 michael@0: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; michael@0: esac michael@0: case $ac_var in #( michael@0: _ | IFS | as_nl) ;; #( michael@0: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( michael@0: *) { eval $ac_var=; unset $ac_var;} ;; michael@0: esac ;; michael@0: esac michael@0: done michael@0: (set) 2>&1 | michael@0: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( michael@0: *${as_nl}ac_space=\ *) michael@0: sed -n \ michael@0: "s/'\''/'\''\\\\'\'''\''/g; michael@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" michael@0: ;; #( michael@0: *) michael@0: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" michael@0: ;; michael@0: esac | michael@0: sort michael@0: ) michael@0: echo michael@0: michael@0: cat <<\_ASBOX michael@0: ## ----------------- ## michael@0: ## Output variables. ## michael@0: ## ----------------- ## michael@0: _ASBOX michael@0: echo michael@0: for ac_var in $ac_subst_vars michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in michael@0: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; michael@0: esac michael@0: $as_echo "$ac_var='\''$ac_val'\''" michael@0: done | sort michael@0: echo michael@0: michael@0: if test -n "$ac_subst_files"; then michael@0: cat <<\_ASBOX michael@0: ## ------------------- ## michael@0: ## File substitutions. ## michael@0: ## ------------------- ## michael@0: _ASBOX michael@0: echo michael@0: for ac_var in $ac_subst_files michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in michael@0: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; michael@0: esac michael@0: $as_echo "$ac_var='\''$ac_val'\''" michael@0: done | sort michael@0: echo michael@0: fi michael@0: michael@0: if test -s confdefs.h; then michael@0: cat <<\_ASBOX michael@0: ## ----------- ## michael@0: ## confdefs.h. ## michael@0: ## ----------- ## michael@0: _ASBOX michael@0: echo michael@0: cat confdefs.h michael@0: echo michael@0: fi michael@0: test "$ac_signal" != 0 && michael@0: $as_echo "$as_me: caught signal $ac_signal" michael@0: $as_echo "$as_me: exit $exit_status" michael@0: } >&5 michael@0: rm -f core *.core core.conftest.* && michael@0: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && michael@0: exit $exit_status michael@0: ' 0 michael@0: for ac_signal in 1 2 13 15; do michael@0: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal michael@0: done michael@0: ac_signal=0 michael@0: michael@0: # confdefs.h avoids OS command line length limits that DEFS can exceed. michael@0: rm -f -r conftest* confdefs.h michael@0: michael@0: $as_echo "/* confdefs.h */" > confdefs.h michael@0: michael@0: # Predefined preprocessor variables. michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_NAME "$PACKAGE_NAME" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_VERSION "$PACKAGE_VERSION" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_STRING "$PACKAGE_STRING" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_URL "$PACKAGE_URL" michael@0: _ACEOF michael@0: michael@0: michael@0: # Let the site file select an alternate cache file if it wants to. michael@0: # Prefer an explicitly selected file to automatically selected ones. michael@0: ac_site_file1=NONE michael@0: ac_site_file2=NONE michael@0: if test -n "$CONFIG_SITE"; then michael@0: ac_site_file1=$CONFIG_SITE michael@0: elif test "x$prefix" != xNONE; then michael@0: ac_site_file1=$prefix/share/config.site michael@0: ac_site_file2=$prefix/etc/config.site michael@0: else michael@0: ac_site_file1=$ac_default_prefix/share/config.site michael@0: ac_site_file2=$ac_default_prefix/etc/config.site michael@0: fi michael@0: for ac_site_file in "$ac_site_file1" "$ac_site_file2" michael@0: do michael@0: test "x$ac_site_file" = xNONE && continue michael@0: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 michael@0: $as_echo "$as_me: loading site script $ac_site_file" >&6;} michael@0: sed 's/^/| /' "$ac_site_file" >&5 michael@0: . "$ac_site_file" michael@0: fi michael@0: done michael@0: michael@0: if test -r "$cache_file"; then michael@0: # Some versions of bash will fail to source /dev/null (special files michael@0: # actually), so we avoid doing that. DJGPP emulates it as a regular file. michael@0: if test /dev/null != "$cache_file" && test -f "$cache_file"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 michael@0: $as_echo "$as_me: loading cache $cache_file" >&6;} michael@0: case $cache_file in michael@0: [\\/]* | ?:[\\/]* ) . "$cache_file";; michael@0: *) . "./$cache_file";; michael@0: esac michael@0: fi michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 michael@0: $as_echo "$as_me: creating cache $cache_file" >&6;} michael@0: >$cache_file michael@0: fi michael@0: michael@0: # Check that the precious variables saved in the cache have kept the same michael@0: # value. michael@0: ac_cache_corrupted=false michael@0: for ac_var in $ac_precious_vars; do michael@0: eval ac_old_set=\$ac_cv_env_${ac_var}_set michael@0: eval ac_new_set=\$ac_env_${ac_var}_set michael@0: eval ac_old_val=\$ac_cv_env_${ac_var}_value michael@0: eval ac_new_val=\$ac_env_${ac_var}_value michael@0: case $ac_old_set,$ac_new_set in michael@0: set,) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} michael@0: ac_cache_corrupted=: ;; michael@0: ,set) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} michael@0: ac_cache_corrupted=: ;; michael@0: ,);; michael@0: *) michael@0: if test "x$ac_old_val" != "x$ac_new_val"; then michael@0: # differences in whitespace do not lead to failure. michael@0: ac_old_val_w=`echo x $ac_old_val` michael@0: ac_new_val_w=`echo x $ac_new_val` michael@0: if test "$ac_old_val_w" != "$ac_new_val_w"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} michael@0: ac_cache_corrupted=: michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 michael@0: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} michael@0: eval $ac_var=\$ac_old_val michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 michael@0: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 michael@0: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} michael@0: fi;; michael@0: esac michael@0: # Pass precious variables to config.status. michael@0: if test "$ac_new_set" = set; then michael@0: case $ac_new_val in michael@0: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: *) ac_arg=$ac_var=$ac_new_val ;; michael@0: esac michael@0: case " $ac_configure_args " in michael@0: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. michael@0: *) as_fn_append ac_configure_args " '$ac_arg'" ;; michael@0: esac michael@0: fi michael@0: done michael@0: if $ac_cache_corrupted; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 michael@0: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} michael@0: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 michael@0: fi michael@0: ## -------------------- ## michael@0: ## Main body of script. ## michael@0: ## -------------------- ## michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: # The argument here is just something that should be in the current directory michael@0: # (for sanity checking) michael@0: michael@0: michael@0: am__api_version='1.11' michael@0: michael@0: ac_aux_dir= michael@0: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do michael@0: for ac_t in install-sh install.sh shtool; do michael@0: if test -f "$ac_dir/$ac_t"; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/$ac_t -c" michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: if test -z "$ac_aux_dir"; then michael@0: as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 michael@0: fi michael@0: michael@0: # These three variables are undocumented and unsupported, michael@0: # and are intended to be withdrawn in a future Autoconf release. michael@0: # They can cause serious problems if a builder's source tree is in a directory michael@0: # whose full name contains unusual characters. michael@0: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. michael@0: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. michael@0: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. michael@0: michael@0: michael@0: # Find a good install program. We prefer a C program (faster), michael@0: # so one script is as good as another. But avoid the broken or michael@0: # incompatible versions: michael@0: # SysV /etc/install, /usr/sbin/install michael@0: # SunOS /usr/etc/install michael@0: # IRIX /sbin/install michael@0: # AIX /bin/install michael@0: # AmigaOS /C/install, which installs bootblocks on floppy discs michael@0: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag michael@0: # AFS /usr/afsws/bin/install, which mishandles nonexistent args michael@0: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" michael@0: # OS/2's system install, which has a completely different semantic michael@0: # ./install, which can be erroneously created by make from ./install.sh. michael@0: # Reject install programs that cannot install multiple files. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 michael@0: $as_echo_n "checking for a BSD-compatible install... " >&6; } michael@0: if test -z "$INSTALL"; then michael@0: if test "${ac_cv_path_install+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: # Account for people who put trailing slashes in PATH elements. michael@0: case $as_dir/ in #(( michael@0: ./ | .// | /[cC]/* | \ michael@0: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ michael@0: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ michael@0: /usr/ucb/* ) ;; michael@0: *) michael@0: # OSF1 and SCO ODT 3.0 have their own names for install. michael@0: # Don't use installbsd from OSF since it installs stuff as root michael@0: # by default. michael@0: for ac_prog in ginstall scoinst install; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then michael@0: if test $ac_prog = install && michael@0: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then michael@0: # AIX install. It has an incompatible calling convention. michael@0: : michael@0: elif test $ac_prog = install && michael@0: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then michael@0: # program-specific install script used by HP pwplus--don't use. michael@0: : michael@0: else michael@0: rm -rf conftest.one conftest.two conftest.dir michael@0: echo one > conftest.one michael@0: echo two > conftest.two michael@0: mkdir conftest.dir michael@0: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && michael@0: test -s conftest.one && test -s conftest.two && michael@0: test -s conftest.dir/conftest.one && michael@0: test -s conftest.dir/conftest.two michael@0: then michael@0: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" michael@0: break 3 michael@0: fi michael@0: fi michael@0: fi michael@0: done michael@0: done michael@0: ;; michael@0: esac michael@0: michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: rm -rf conftest.one conftest.two conftest.dir michael@0: michael@0: fi michael@0: if test "${ac_cv_path_install+set}" = set; then michael@0: INSTALL=$ac_cv_path_install michael@0: else michael@0: # As a last resort, use the slow shell script. Don't cache a michael@0: # value for INSTALL within a source directory, because that will michael@0: # break other packages using the cache if that directory is michael@0: # removed, or if the value is a relative name. michael@0: INSTALL=$ac_install_sh michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 michael@0: $as_echo "$INSTALL" >&6; } michael@0: michael@0: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. michael@0: # It thinks the first close brace ends the variable substitution. michael@0: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' michael@0: michael@0: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' michael@0: michael@0: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 michael@0: $as_echo_n "checking whether build environment is sane... " >&6; } michael@0: # Just in case michael@0: sleep 1 michael@0: echo timestamp > conftest.file michael@0: # Reject unsafe characters in $srcdir or the absolute working directory michael@0: # name. Accept space and tab only in the latter. michael@0: am_lf=' michael@0: ' michael@0: case `pwd` in michael@0: *[\\\"\#\$\&\'\`$am_lf]*) michael@0: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; michael@0: esac michael@0: case $srcdir in michael@0: *[\\\"\#\$\&\'\`$am_lf\ \ ]*) michael@0: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; michael@0: esac michael@0: michael@0: # Do `set' in a subshell so we don't clobber the current shell's michael@0: # arguments. Must try -L first in case configure is actually a michael@0: # symlink; some systems play weird games with the mod time of symlinks michael@0: # (eg FreeBSD returns the mod time of the symlink's containing michael@0: # directory). michael@0: if ( michael@0: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` michael@0: if test "$*" = "X"; then michael@0: # -L didn't work. michael@0: set X `ls -t "$srcdir/configure" conftest.file` michael@0: fi michael@0: rm -f conftest.file michael@0: if test "$*" != "X $srcdir/configure conftest.file" \ michael@0: && test "$*" != "X conftest.file $srcdir/configure"; then michael@0: michael@0: # If neither matched, then we have a broken ls. This can happen michael@0: # if, for instance, CONFIG_SHELL is bash and it inherits a michael@0: # broken ls alias from the environment. This has actually michael@0: # happened. Such a system could not be considered "sane". michael@0: as_fn_error "ls -t appears to fail. Make sure there is not a broken michael@0: alias in your environment" "$LINENO" 5 michael@0: fi michael@0: michael@0: test "$2" = conftest.file michael@0: ) michael@0: then michael@0: # Ok. michael@0: : michael@0: else michael@0: as_fn_error "newly created file is older than distributed files! michael@0: Check your system clock" "$LINENO" 5 michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: test "$program_prefix" != NONE && michael@0: program_transform_name="s&^&$program_prefix&;$program_transform_name" michael@0: # Use a double $ so make ignores it. michael@0: test "$program_suffix" != NONE && michael@0: program_transform_name="s&\$&$program_suffix&;$program_transform_name" michael@0: # Double any \ or $. michael@0: # By default was `s,x,x', remove it if useless. michael@0: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' michael@0: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` michael@0: michael@0: # expand $ac_aux_dir to an absolute path michael@0: am_aux_dir=`cd $ac_aux_dir && pwd` michael@0: michael@0: if test x"${MISSING+set}" != xset; then michael@0: case $am_aux_dir in michael@0: *\ * | *\ *) michael@0: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; michael@0: *) michael@0: MISSING="\${SHELL} $am_aux_dir/missing" ;; michael@0: esac michael@0: fi michael@0: # Use eval to expand $SHELL michael@0: if eval "$MISSING --run true"; then michael@0: am_missing_run="$MISSING --run " michael@0: else michael@0: am_missing_run= michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 michael@0: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} michael@0: fi michael@0: michael@0: if test x"${install_sh}" != xset; then michael@0: case $am_aux_dir in michael@0: *\ * | *\ *) michael@0: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; michael@0: *) michael@0: install_sh="\${SHELL} $am_aux_dir/install-sh" michael@0: esac michael@0: fi michael@0: michael@0: # Installed binaries are usually stripped using `strip' when the user michael@0: # run `make install-strip'. However `strip' might not be the right michael@0: # tool to use in cross-compilation environments, therefore Automake michael@0: # will honor the `STRIP' environment variable to overrule this program. michael@0: if test "$cross_compiling" != no; then michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}strip; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_STRIP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$STRIP"; then michael@0: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_STRIP="${ac_tool_prefix}strip" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: STRIP=$ac_cv_prog_STRIP michael@0: if test -n "$STRIP"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 michael@0: $as_echo "$STRIP" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_STRIP"; then michael@0: ac_ct_STRIP=$STRIP michael@0: # Extract the first word of "strip", so it can be a program name with args. michael@0: set dummy strip; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_STRIP"; then michael@0: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_STRIP="strip" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP michael@0: if test -n "$ac_ct_STRIP"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 michael@0: $as_echo "$ac_ct_STRIP" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_STRIP" = x; then michael@0: STRIP=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: STRIP=$ac_ct_STRIP michael@0: fi michael@0: else michael@0: STRIP="$ac_cv_prog_STRIP" michael@0: fi michael@0: michael@0: fi michael@0: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 michael@0: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } michael@0: if test -z "$MKDIR_P"; then michael@0: if test "${ac_cv_path_mkdir+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in mkdir gmkdir; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue michael@0: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( michael@0: 'mkdir (GNU coreutils) '* | \ michael@0: 'mkdir (coreutils) '* | \ michael@0: 'mkdir (fileutils) '4.1*) michael@0: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext michael@0: break 3;; michael@0: esac michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: michael@0: test -d ./--version && rmdir ./--version michael@0: if test "${ac_cv_path_mkdir+set}" = set; then michael@0: MKDIR_P="$ac_cv_path_mkdir -p" michael@0: else michael@0: # As a last resort, use the slow shell script. Don't cache a michael@0: # value for MKDIR_P within a source directory, because that will michael@0: # break other packages using the cache if that directory is michael@0: # removed, or if the value is a relative name. michael@0: MKDIR_P="$ac_install_sh -d" michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 michael@0: $as_echo "$MKDIR_P" >&6; } michael@0: michael@0: mkdir_p="$MKDIR_P" michael@0: case $mkdir_p in michael@0: [\\/$]* | ?:[\\/]*) ;; michael@0: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; michael@0: esac michael@0: michael@0: for ac_prog in gawk mawk nawk awk michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_AWK+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$AWK"; then michael@0: ac_cv_prog_AWK="$AWK" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_AWK="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: AWK=$ac_cv_prog_AWK michael@0: if test -n "$AWK"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 michael@0: $as_echo "$AWK" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$AWK" && break michael@0: done michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 michael@0: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } michael@0: set x ${MAKE-make} michael@0: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` michael@0: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat >conftest.make <<\_ACEOF michael@0: SHELL = /bin/sh michael@0: all: michael@0: @echo '@@@%%%=$(MAKE)=@@@%%%' michael@0: _ACEOF michael@0: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. michael@0: case `${MAKE-make} -f conftest.make 2>/dev/null` in michael@0: *@@@%%%=?*=@@@%%%*) michael@0: eval ac_cv_prog_make_${ac_make}_set=yes;; michael@0: *) michael@0: eval ac_cv_prog_make_${ac_make}_set=no;; michael@0: esac michael@0: rm -f conftest.make michael@0: fi michael@0: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: SET_MAKE= michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: SET_MAKE="MAKE=${MAKE-make}" michael@0: fi michael@0: michael@0: rm -rf .tst 2>/dev/null michael@0: mkdir .tst 2>/dev/null michael@0: if test -d .tst; then michael@0: am__leading_dot=. michael@0: else michael@0: am__leading_dot=_ michael@0: fi michael@0: rmdir .tst 2>/dev/null michael@0: michael@0: if test "`cd $srcdir && pwd`" != "`pwd`"; then michael@0: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output michael@0: # is not polluted with repeated "-I." michael@0: am__isrc=' -I$(srcdir)' michael@0: # test to see if srcdir already configured michael@0: if test -f $srcdir/config.status; then michael@0: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 michael@0: fi michael@0: fi michael@0: michael@0: # test whether we have cygpath michael@0: if test -z "$CYGPATH_W"; then michael@0: if (cygpath --version) >/dev/null 2>/dev/null; then michael@0: CYGPATH_W='cygpath -w' michael@0: else michael@0: CYGPATH_W=echo michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Define the identity of the package. michael@0: PACKAGE='glog' michael@0: VERSION='0.3.1' michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE "$PACKAGE" michael@0: _ACEOF michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define VERSION "$VERSION" michael@0: _ACEOF michael@0: michael@0: # Some tools Automake needs. michael@0: michael@0: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} michael@0: michael@0: michael@0: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} michael@0: michael@0: michael@0: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} michael@0: michael@0: michael@0: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} michael@0: michael@0: michael@0: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} michael@0: michael@0: # We need awk for the "check" target. The system "awk" is bad on michael@0: # some platforms. michael@0: # Always define AMTAR for backward compatibility. michael@0: michael@0: AMTAR=${AMTAR-"${am_missing_run}tar"} michael@0: michael@0: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: ac_config_headers="$ac_config_headers src/config.h" michael@0: michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: michael@0: # Checks for programs. michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}gcc; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_CC+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_CC="${ac_tool_prefix}gcc" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_CC"; then michael@0: ac_ct_CC=$CC michael@0: # Extract the first word of "gcc", so it can be a program name with args. michael@0: set dummy gcc; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CC"; then michael@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_CC="gcc" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC michael@0: if test -n "$ac_ct_CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 michael@0: $as_echo "$ac_ct_CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_CC" = x; then michael@0: CC="" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CC=$ac_ct_CC michael@0: fi michael@0: else michael@0: CC="$ac_cv_prog_CC" michael@0: fi michael@0: michael@0: if test -z "$CC"; then michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}cc; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_CC+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_CC="${ac_tool_prefix}cc" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: fi michael@0: if test -z "$CC"; then michael@0: # Extract the first word of "cc", so it can be a program name with args. michael@0: set dummy cc; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_CC+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: ac_prog_rejected=no michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then michael@0: ac_prog_rejected=yes michael@0: continue michael@0: fi michael@0: ac_cv_prog_CC="cc" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: if test $ac_prog_rejected = yes; then michael@0: # We found a bogon in the path, so make sure we never use it. michael@0: set dummy $ac_cv_prog_CC michael@0: shift michael@0: if test $# != 0; then michael@0: # We chose a different compiler from the bogus one. michael@0: # However, it has the same basename, so the bogon will be chosen michael@0: # first if we set CC to just the basename; use the full file name. michael@0: shift michael@0: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$CC"; then michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in cl.exe michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_CC+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CC" && break michael@0: done michael@0: fi michael@0: if test -z "$CC"; then michael@0: ac_ct_CC=$CC michael@0: for ac_prog in cl.exe michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CC"; then michael@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_CC="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC michael@0: if test -n "$ac_ct_CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 michael@0: $as_echo "$ac_ct_CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_CC" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_CC" = x; then michael@0: CC="" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CC=$ac_ct_CC michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: michael@0: michael@0: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error "no acceptable C compiler found in \$PATH michael@0: See \`config.log' for more details." "$LINENO" 5; } michael@0: michael@0: # Provide some information about the compiler. michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 michael@0: set X $ac_compile michael@0: ac_compiler=$2 michael@0: for ac_option in --version -v -V -qversion; do michael@0: { { ac_try="$ac_compiler $ac_option >&5" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: sed '10a\ michael@0: ... rest of stderr output deleted ... michael@0: 10q' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: fi michael@0: rm -f conftest.er1 conftest.err michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: done michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: ac_clean_files_save=$ac_clean_files michael@0: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" michael@0: # Try to create an executable without -o first, disregard a.out. michael@0: # It will help us diagnose broken compilers, and finding out an intuition michael@0: # of exeext. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 michael@0: $as_echo_n "checking whether the C compiler works... " >&6; } michael@0: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` michael@0: michael@0: # The possible output files: michael@0: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" michael@0: michael@0: ac_rmfiles= michael@0: for ac_file in $ac_files michael@0: do michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; michael@0: * ) ac_rmfiles="$ac_rmfiles $ac_file";; michael@0: esac michael@0: done michael@0: rm -f $ac_rmfiles michael@0: michael@0: if { { ac_try="$ac_link_default" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link_default") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. michael@0: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' michael@0: # in a Makefile. We should not override ac_cv_exeext if it was cached, michael@0: # so that the user can short-circuit this test for compilers unknown to michael@0: # Autoconf. michael@0: for ac_file in $ac_files '' michael@0: do michael@0: test -f "$ac_file" || continue michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) michael@0: ;; michael@0: [ab].out ) michael@0: # We found the default executable, but exeext='' is most michael@0: # certainly right. michael@0: break;; michael@0: *.* ) michael@0: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; michael@0: then :; else michael@0: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` michael@0: fi michael@0: # We set ac_cv_exeext here because the later test for it is not michael@0: # safe: cross compilers may not add the suffix if given an `-o' michael@0: # argument, so we may need to know it at that point already. michael@0: # Even if this section looks crufty: it has the advantage of michael@0: # actually working. michael@0: break;; michael@0: * ) michael@0: break;; michael@0: esac michael@0: done michael@0: test "$ac_cv_exeext" = no && ac_cv_exeext= michael@0: michael@0: else michael@0: ac_file='' michael@0: fi michael@0: if test -z "$ac_file"; then : michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: { as_fn_set_status 77 michael@0: as_fn_error "C compiler cannot create executables michael@0: See \`config.log' for more details." "$LINENO" 5; }; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 michael@0: $as_echo_n "checking for C compiler default output file name... " >&6; } michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 michael@0: $as_echo "$ac_file" >&6; } michael@0: ac_exeext=$ac_cv_exeext michael@0: michael@0: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out michael@0: ac_clean_files=$ac_clean_files_save michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 michael@0: $as_echo_n "checking for suffix of executables... " >&6; } michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: # If both `conftest.exe' and `conftest' are `present' (well, observable) michael@0: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will michael@0: # work properly (i.e., refer to `conftest.exe'), while it won't with michael@0: # `rm'. michael@0: for ac_file in conftest.exe conftest conftest.*; do michael@0: test -f "$ac_file" || continue michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; michael@0: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` michael@0: break;; michael@0: * ) break;; michael@0: esac michael@0: done michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error "cannot compute suffix of executables: cannot compile and link michael@0: See \`config.log' for more details." "$LINENO" 5; } michael@0: fi michael@0: rm -f conftest conftest$ac_cv_exeext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 michael@0: $as_echo "$ac_cv_exeext" >&6; } michael@0: michael@0: rm -f conftest.$ac_ext michael@0: EXEEXT=$ac_cv_exeext michael@0: ac_exeext=$EXEEXT michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: FILE *f = fopen ("conftest.out", "w"); michael@0: return ferror (f) || fclose (f) != 0; michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: ac_clean_files="$ac_clean_files conftest.out" michael@0: # Check that the compiler produces executables we can run. If not, either michael@0: # the compiler is broken, or we cross compile. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 michael@0: $as_echo_n "checking whether we are cross compiling... " >&6; } michael@0: if test "$cross_compiling" != yes; then michael@0: { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: if { ac_try='./conftest$ac_cv_exeext' michael@0: { { case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_try") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; }; then michael@0: cross_compiling=no michael@0: else michael@0: if test "$cross_compiling" = maybe; then michael@0: cross_compiling=yes michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error "cannot run C compiled programs. michael@0: If you meant to cross compile, use \`--host'. michael@0: See \`config.log' for more details." "$LINENO" 5; } michael@0: fi michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 michael@0: $as_echo "$cross_compiling" >&6; } michael@0: michael@0: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out michael@0: ac_clean_files=$ac_clean_files_save michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 michael@0: $as_echo_n "checking for suffix of object files... " >&6; } michael@0: if test "${ac_cv_objext+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: rm -f conftest.o conftest.obj michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: for ac_file in conftest.o conftest.obj conftest.*; do michael@0: test -f "$ac_file" || continue; michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; michael@0: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` michael@0: break;; michael@0: esac michael@0: done michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error "cannot compute suffix of object files: cannot compile michael@0: See \`config.log' for more details." "$LINENO" 5; } michael@0: fi michael@0: rm -f conftest.$ac_cv_objext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 michael@0: $as_echo "$ac_cv_objext" >&6; } michael@0: OBJEXT=$ac_cv_objext michael@0: ac_objext=$OBJEXT michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 michael@0: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } michael@0: if test "${ac_cv_c_compiler_gnu+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef __GNUC__ michael@0: choke me michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_compiler_gnu=yes michael@0: else michael@0: ac_compiler_gnu=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cv_c_compiler_gnu=$ac_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 michael@0: $as_echo "$ac_cv_c_compiler_gnu" >&6; } michael@0: if test $ac_compiler_gnu = yes; then michael@0: GCC=yes michael@0: else michael@0: GCC= michael@0: fi michael@0: ac_test_CFLAGS=${CFLAGS+set} michael@0: ac_save_CFLAGS=$CFLAGS michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 michael@0: $as_echo_n "checking whether $CC accepts -g... " >&6; } michael@0: if test "${ac_cv_prog_cc_g+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_save_c_werror_flag=$ac_c_werror_flag michael@0: ac_c_werror_flag=yes michael@0: ac_cv_prog_cc_g=no michael@0: CFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_g=yes michael@0: else michael@0: CFLAGS="" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: ac_c_werror_flag=$ac_save_c_werror_flag michael@0: CFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_g=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_c_werror_flag=$ac_save_c_werror_flag michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 michael@0: $as_echo "$ac_cv_prog_cc_g" >&6; } michael@0: if test "$ac_test_CFLAGS" = set; then michael@0: CFLAGS=$ac_save_CFLAGS michael@0: elif test $ac_cv_prog_cc_g = yes; then michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="-g -O2" michael@0: else michael@0: CFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="-O2" michael@0: else michael@0: CFLAGS= michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 michael@0: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } michael@0: if test "${ac_cv_prog_cc_c89+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_cv_prog_cc_c89=no michael@0: ac_save_CC=$CC michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ michael@0: struct buf { int x; }; michael@0: FILE * (*rcsopen) (struct buf *, struct stat *, int); michael@0: static char *e (p, i) michael@0: char **p; michael@0: int i; michael@0: { michael@0: return p[i]; michael@0: } michael@0: static char *f (char * (*g) (char **, int), char **p, ...) michael@0: { michael@0: char *s; michael@0: va_list v; michael@0: va_start (v,p); michael@0: s = g (p, va_arg (v,int)); michael@0: va_end (v); michael@0: return s; michael@0: } michael@0: michael@0: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has michael@0: function prototypes and stuff, but not '\xHH' hex character constants. michael@0: These don't provoke an error unfortunately, instead are silently treated michael@0: as 'x'. The following induces an error, until -std is added to get michael@0: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an michael@0: array size at least. It's necessary to write '\x00'==0 to get something michael@0: that's true only with -std. */ michael@0: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; michael@0: michael@0: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters michael@0: inside strings and character constants. */ michael@0: #define FOO(x) 'x' michael@0: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; michael@0: michael@0: int test (int i, double x); michael@0: struct s1 {int (*f) (int a);}; michael@0: struct s2 {int (*f) (double a);}; michael@0: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); michael@0: int argc; michael@0: char **argv; michael@0: int michael@0: main () michael@0: { michael@0: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ michael@0: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" michael@0: do michael@0: CC="$ac_save_CC $ac_arg" michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_c89=$ac_arg michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext michael@0: test "x$ac_cv_prog_cc_c89" != "xno" && break michael@0: done michael@0: rm -f conftest.$ac_ext michael@0: CC=$ac_save_CC michael@0: michael@0: fi michael@0: # AC_CACHE_VAL michael@0: case "x$ac_cv_prog_cc_c89" in michael@0: x) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 michael@0: $as_echo "none needed" >&6; } ;; michael@0: xno) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 michael@0: $as_echo "unsupported" >&6; } ;; michael@0: *) michael@0: CC="$CC $ac_cv_prog_cc_c89" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 michael@0: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; michael@0: esac michael@0: if test "x$ac_cv_prog_cc_c89" != xno; then : michael@0: michael@0: fi michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: DEPDIR="${am__leading_dot}deps" michael@0: michael@0: ac_config_commands="$ac_config_commands depfiles" michael@0: michael@0: michael@0: am_make=${MAKE-make} michael@0: cat > confinc << 'END' michael@0: am__doit: michael@0: @echo this is the am__doit target michael@0: .PHONY: am__doit michael@0: END michael@0: # If we don't find an include directive, just comment out the code. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 michael@0: $as_echo_n "checking for style of include used by $am_make... " >&6; } michael@0: am__include="#" michael@0: am__quote= michael@0: _am_result=none michael@0: # First try GNU make style include. michael@0: echo "include confinc" > confmf michael@0: # Ignore all kinds of additional output from `make'. michael@0: case `$am_make -s -f confmf 2> /dev/null` in #( michael@0: *the\ am__doit\ target*) michael@0: am__include=include michael@0: am__quote= michael@0: _am_result=GNU michael@0: ;; michael@0: esac michael@0: # Now try BSD make style include. michael@0: if test "$am__include" = "#"; then michael@0: echo '.include "confinc"' > confmf michael@0: case `$am_make -s -f confmf 2> /dev/null` in #( michael@0: *the\ am__doit\ target*) michael@0: am__include=.include michael@0: am__quote="\"" michael@0: _am_result=BSD michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 michael@0: $as_echo "$_am_result" >&6; } michael@0: rm -f confinc confmf michael@0: michael@0: # Check whether --enable-dependency-tracking was given. michael@0: if test "${enable_dependency_tracking+set}" = set; then : michael@0: enableval=$enable_dependency_tracking; michael@0: fi michael@0: michael@0: if test "x$enable_dependency_tracking" != xno; then michael@0: am_depcomp="$ac_aux_dir/depcomp" michael@0: AMDEPBACKSLASH='\' michael@0: fi michael@0: if test "x$enable_dependency_tracking" != xno; then michael@0: AMDEP_TRUE= michael@0: AMDEP_FALSE='#' michael@0: else michael@0: AMDEP_TRUE='#' michael@0: AMDEP_FALSE= michael@0: fi michael@0: michael@0: michael@0: michael@0: depcc="$CC" am_compiler_list= michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 michael@0: $as_echo_n "checking dependency style of $depcc... " >&6; } michael@0: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then michael@0: # We make a subdir and do the tests there. Otherwise we can end up michael@0: # making bogus files that we don't know about and never remove. For michael@0: # instance it was reported that on HP-UX the gcc test will end up michael@0: # making a dummy file named `D' -- because `-MD' means `put the output michael@0: # in D'. michael@0: mkdir conftest.dir michael@0: # Copy depcomp to subdir because otherwise we won't find it if we're michael@0: # using a relative directory. michael@0: cp "$am_depcomp" conftest.dir michael@0: cd conftest.dir michael@0: # We will build objects and dependencies in a subdirectory because michael@0: # it helps to detect inapplicable dependency modes. For instance michael@0: # both Tru64's cc and ICC support -MD to output dependencies as a michael@0: # side effect of compilation, but ICC will put the dependencies in michael@0: # the current directory while Tru64 will put them in the object michael@0: # directory. michael@0: mkdir sub michael@0: michael@0: am_cv_CC_dependencies_compiler_type=none michael@0: if test "$am_compiler_list" = ""; then michael@0: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` michael@0: fi michael@0: am__universal=false michael@0: case " $depcc " in #( michael@0: *\ -arch\ *\ -arch\ *) am__universal=true ;; michael@0: esac michael@0: michael@0: for depmode in $am_compiler_list; do michael@0: # Setup a source with many dependencies, because some compilers michael@0: # like to wrap large dependency lists on column 80 (with \), and michael@0: # we should not choose a depcomp mode which is confused by this. michael@0: # michael@0: # We need to recreate these files for each test, as the compiler may michael@0: # overwrite some of them when testing with obscure command lines. michael@0: # This happens at least with the AIX C compiler. michael@0: : > sub/conftest.c michael@0: for i in 1 2 3 4 5 6; do michael@0: echo '#include "conftst'$i'.h"' >> sub/conftest.c michael@0: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with michael@0: # Solaris 8's {/usr,}/bin/sh. michael@0: touch sub/conftst$i.h michael@0: done michael@0: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf michael@0: michael@0: # We check with `-c' and `-o' for the sake of the "dashmstdout" michael@0: # mode. It turns out that the SunPro C++ compiler does not properly michael@0: # handle `-M -o', and we need to detect this. Also, some Intel michael@0: # versions had trouble with output in subdirs michael@0: am__obj=sub/conftest.${OBJEXT-o} michael@0: am__minus_obj="-o $am__obj" michael@0: case $depmode in michael@0: gcc) michael@0: # This depmode causes a compiler race in universal mode. michael@0: test "$am__universal" = false || continue michael@0: ;; michael@0: nosideeffect) michael@0: # after this tag, mechanisms are not by side-effect, so they'll michael@0: # only be used when explicitly requested michael@0: if test "x$enable_dependency_tracking" = xyes; then michael@0: continue michael@0: else michael@0: break michael@0: fi michael@0: ;; michael@0: msvisualcpp | msvcmsys) michael@0: # This compiler won't grok `-c -o', but also, the minuso test has michael@0: # not run yet. These depmodes are late enough in the game, and michael@0: # so weak that their functioning should not be impacted. michael@0: am__obj=conftest.${OBJEXT-o} michael@0: am__minus_obj= michael@0: ;; michael@0: none) break ;; michael@0: esac michael@0: if depmode=$depmode \ michael@0: source=sub/conftest.c object=$am__obj \ michael@0: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ michael@0: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ michael@0: >/dev/null 2>conftest.err && michael@0: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && michael@0: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && michael@0: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && michael@0: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then michael@0: # icc doesn't choke on unknown options, it will just issue warnings michael@0: # or remarks (even with -Werror). So we grep stderr for any message michael@0: # that says an option was ignored or not supported. michael@0: # When given -MP, icc 7.0 and 7.1 complain thusly: michael@0: # icc: Command line warning: ignoring option '-M'; no argument required michael@0: # The diagnosis changed in icc 8.0: michael@0: # icc: Command line remark: option '-MP' not supported michael@0: if (grep 'ignoring option' conftest.err || michael@0: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else michael@0: am_cv_CC_dependencies_compiler_type=$depmode michael@0: break michael@0: fi michael@0: fi michael@0: done michael@0: michael@0: cd .. michael@0: rm -rf conftest.dir michael@0: else michael@0: am_cv_CC_dependencies_compiler_type=none michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 michael@0: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } michael@0: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type michael@0: michael@0: if michael@0: test "x$enable_dependency_tracking" != xno \ michael@0: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then michael@0: am__fastdepCC_TRUE= michael@0: am__fastdepCC_FALSE='#' michael@0: else michael@0: am__fastdepCC_TRUE='#' michael@0: am__fastdepCC_FALSE= michael@0: fi michael@0: michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 michael@0: $as_echo_n "checking how to run the C preprocessor... " >&6; } michael@0: # On Suns, sometimes $CPP names a directory. michael@0: if test -n "$CPP" && test -d "$CPP"; then michael@0: CPP= michael@0: fi michael@0: if test -z "$CPP"; then michael@0: if test "${ac_cv_prog_CPP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: # Double quotes because CPP needs to be expanded michael@0: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" michael@0: do michael@0: ac_preproc_ok=false michael@0: for ac_c_preproc_warn_flag in '' yes michael@0: do michael@0: # Use a header file that comes with gcc, so configuring glibc michael@0: # with a fresh cross-compiler works. michael@0: # Prefer to if __STDC__ is defined, since michael@0: # exists even on freestanding compilers. michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. "Syntax error" is here to catch this case. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: Syntax error michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: michael@0: else michael@0: # Broken: fails on valid input. michael@0: continue michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: michael@0: # OK, works on sane cases. Now check whether nonexistent headers michael@0: # can be detected and how. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: # Broken: success on invalid input. michael@0: continue michael@0: else michael@0: # Passes both tests. michael@0: ac_preproc_ok=: michael@0: break michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: michael@0: done michael@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. michael@0: rm -f conftest.err conftest.$ac_ext michael@0: if $ac_preproc_ok; then : michael@0: break michael@0: fi michael@0: michael@0: done michael@0: ac_cv_prog_CPP=$CPP michael@0: michael@0: fi michael@0: CPP=$ac_cv_prog_CPP michael@0: else michael@0: ac_cv_prog_CPP=$CPP michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 michael@0: $as_echo "$CPP" >&6; } michael@0: ac_preproc_ok=false michael@0: for ac_c_preproc_warn_flag in '' yes michael@0: do michael@0: # Use a header file that comes with gcc, so configuring glibc michael@0: # with a fresh cross-compiler works. michael@0: # Prefer to if __STDC__ is defined, since michael@0: # exists even on freestanding compilers. michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. "Syntax error" is here to catch this case. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: Syntax error michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: michael@0: else michael@0: # Broken: fails on valid input. michael@0: continue michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: michael@0: # OK, works on sane cases. Now check whether nonexistent headers michael@0: # can be detected and how. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: # Broken: success on invalid input. michael@0: continue michael@0: else michael@0: # Passes both tests. michael@0: ac_preproc_ok=: michael@0: break michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: michael@0: done michael@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. michael@0: rm -f conftest.err conftest.$ac_ext michael@0: if $ac_preproc_ok; then : michael@0: michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error "C preprocessor \"$CPP\" fails sanity check michael@0: See \`config.log' for more details." "$LINENO" 5; } michael@0: fi michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: if test -z "$CXX"; then michael@0: if test -n "$CCC"; then michael@0: CXX=$CCC michael@0: else michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_CXX+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CXX"; then michael@0: ac_cv_prog_CXX="$CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CXX=$ac_cv_prog_CXX michael@0: if test -n "$CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 michael@0: $as_echo "$CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CXX" && break michael@0: done michael@0: fi michael@0: if test -z "$CXX"; then michael@0: ac_ct_CXX=$CXX michael@0: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CXX"; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX michael@0: if test -n "$ac_ct_CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 michael@0: $as_echo "$ac_ct_CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_CXX" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_CXX" = x; then michael@0: CXX="g++" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CXX=$ac_ct_CXX michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: # Provide some information about the compiler. michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 michael@0: set X $ac_compile michael@0: ac_compiler=$2 michael@0: for ac_option in --version -v -V -qversion; do michael@0: { { ac_try="$ac_compiler $ac_option >&5" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: sed '10a\ michael@0: ... rest of stderr output deleted ... michael@0: 10q' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: fi michael@0: rm -f conftest.er1 conftest.err michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: done michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 michael@0: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } michael@0: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef __GNUC__ michael@0: choke me michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_compiler_gnu=yes michael@0: else michael@0: ac_compiler_gnu=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 michael@0: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } michael@0: if test $ac_compiler_gnu = yes; then michael@0: GXX=yes michael@0: else michael@0: GXX= michael@0: fi michael@0: ac_test_CXXFLAGS=${CXXFLAGS+set} michael@0: ac_save_CXXFLAGS=$CXXFLAGS michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 michael@0: $as_echo_n "checking whether $CXX accepts -g... " >&6; } michael@0: if test "${ac_cv_prog_cxx_g+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_save_cxx_werror_flag=$ac_cxx_werror_flag michael@0: ac_cxx_werror_flag=yes michael@0: ac_cv_prog_cxx_g=no michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: else michael@0: CXXFLAGS="" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 michael@0: $as_echo "$ac_cv_prog_cxx_g" >&6; } michael@0: if test "$ac_test_CXXFLAGS" = set; then michael@0: CXXFLAGS=$ac_save_CXXFLAGS michael@0: elif test $ac_cv_prog_cxx_g = yes; then michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-g -O2" michael@0: else michael@0: CXXFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-O2" michael@0: else michael@0: CXXFLAGS= michael@0: fi michael@0: fi michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: depcc="$CXX" am_compiler_list= michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 michael@0: $as_echo_n "checking dependency style of $depcc... " >&6; } michael@0: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then michael@0: # We make a subdir and do the tests there. Otherwise we can end up michael@0: # making bogus files that we don't know about and never remove. For michael@0: # instance it was reported that on HP-UX the gcc test will end up michael@0: # making a dummy file named `D' -- because `-MD' means `put the output michael@0: # in D'. michael@0: mkdir conftest.dir michael@0: # Copy depcomp to subdir because otherwise we won't find it if we're michael@0: # using a relative directory. michael@0: cp "$am_depcomp" conftest.dir michael@0: cd conftest.dir michael@0: # We will build objects and dependencies in a subdirectory because michael@0: # it helps to detect inapplicable dependency modes. For instance michael@0: # both Tru64's cc and ICC support -MD to output dependencies as a michael@0: # side effect of compilation, but ICC will put the dependencies in michael@0: # the current directory while Tru64 will put them in the object michael@0: # directory. michael@0: mkdir sub michael@0: michael@0: am_cv_CXX_dependencies_compiler_type=none michael@0: if test "$am_compiler_list" = ""; then michael@0: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` michael@0: fi michael@0: am__universal=false michael@0: case " $depcc " in #( michael@0: *\ -arch\ *\ -arch\ *) am__universal=true ;; michael@0: esac michael@0: michael@0: for depmode in $am_compiler_list; do michael@0: # Setup a source with many dependencies, because some compilers michael@0: # like to wrap large dependency lists on column 80 (with \), and michael@0: # we should not choose a depcomp mode which is confused by this. michael@0: # michael@0: # We need to recreate these files for each test, as the compiler may michael@0: # overwrite some of them when testing with obscure command lines. michael@0: # This happens at least with the AIX C compiler. michael@0: : > sub/conftest.c michael@0: for i in 1 2 3 4 5 6; do michael@0: echo '#include "conftst'$i'.h"' >> sub/conftest.c michael@0: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with michael@0: # Solaris 8's {/usr,}/bin/sh. michael@0: touch sub/conftst$i.h michael@0: done michael@0: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf michael@0: michael@0: # We check with `-c' and `-o' for the sake of the "dashmstdout" michael@0: # mode. It turns out that the SunPro C++ compiler does not properly michael@0: # handle `-M -o', and we need to detect this. Also, some Intel michael@0: # versions had trouble with output in subdirs michael@0: am__obj=sub/conftest.${OBJEXT-o} michael@0: am__minus_obj="-o $am__obj" michael@0: case $depmode in michael@0: gcc) michael@0: # This depmode causes a compiler race in universal mode. michael@0: test "$am__universal" = false || continue michael@0: ;; michael@0: nosideeffect) michael@0: # after this tag, mechanisms are not by side-effect, so they'll michael@0: # only be used when explicitly requested michael@0: if test "x$enable_dependency_tracking" = xyes; then michael@0: continue michael@0: else michael@0: break michael@0: fi michael@0: ;; michael@0: msvisualcpp | msvcmsys) michael@0: # This compiler won't grok `-c -o', but also, the minuso test has michael@0: # not run yet. These depmodes are late enough in the game, and michael@0: # so weak that their functioning should not be impacted. michael@0: am__obj=conftest.${OBJEXT-o} michael@0: am__minus_obj= michael@0: ;; michael@0: none) break ;; michael@0: esac michael@0: if depmode=$depmode \ michael@0: source=sub/conftest.c object=$am__obj \ michael@0: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ michael@0: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ michael@0: >/dev/null 2>conftest.err && michael@0: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && michael@0: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && michael@0: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && michael@0: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then michael@0: # icc doesn't choke on unknown options, it will just issue warnings michael@0: # or remarks (even with -Werror). So we grep stderr for any message michael@0: # that says an option was ignored or not supported. michael@0: # When given -MP, icc 7.0 and 7.1 complain thusly: michael@0: # icc: Command line warning: ignoring option '-M'; no argument required michael@0: # The diagnosis changed in icc 8.0: michael@0: # icc: Command line remark: option '-MP' not supported michael@0: if (grep 'ignoring option' conftest.err || michael@0: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else michael@0: am_cv_CXX_dependencies_compiler_type=$depmode michael@0: break michael@0: fi michael@0: fi michael@0: done michael@0: michael@0: cd .. michael@0: rm -rf conftest.dir michael@0: else michael@0: am_cv_CXX_dependencies_compiler_type=none michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 michael@0: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } michael@0: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type michael@0: michael@0: if michael@0: test "x$enable_dependency_tracking" != xno \ michael@0: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then michael@0: am__fastdepCXX_TRUE= michael@0: am__fastdepCXX_FALSE='#' michael@0: else michael@0: am__fastdepCXX_TRUE='#' michael@0: am__fastdepCXX_FALSE= michael@0: fi michael@0: michael@0: michael@0: if test "$GCC" = yes; then michael@0: GCC_TRUE= michael@0: GCC_FALSE='#' michael@0: else michael@0: GCC_TRUE='#' michael@0: GCC_FALSE= michael@0: fi michael@0: # let the Makefile know if we're gcc michael@0: michael@0: case `pwd` in michael@0: *\ * | *\ *) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 michael@0: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; michael@0: esac michael@0: michael@0: michael@0: michael@0: macro_version='2.2.6b' michael@0: macro_revision='1.3017' michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: ltmain="$ac_aux_dir/ltmain.sh" michael@0: michael@0: # Make sure we can run config.sub. michael@0: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || michael@0: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 michael@0: $as_echo_n "checking build system type... " >&6; } michael@0: if test "${ac_cv_build+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_build_alias=$build_alias michael@0: test "x$ac_build_alias" = x && michael@0: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` michael@0: test "x$ac_build_alias" = x && michael@0: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 michael@0: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || michael@0: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 michael@0: $as_echo "$ac_cv_build" >&6; } michael@0: case $ac_cv_build in michael@0: *-*-*) ;; michael@0: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; michael@0: esac michael@0: build=$ac_cv_build michael@0: ac_save_IFS=$IFS; IFS='-' michael@0: set x $ac_cv_build michael@0: shift michael@0: build_cpu=$1 michael@0: build_vendor=$2 michael@0: shift; shift michael@0: # Remember, the first character of IFS is used to create $*, michael@0: # except with old shells: michael@0: build_os=$* michael@0: IFS=$ac_save_IFS michael@0: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 michael@0: $as_echo_n "checking host system type... " >&6; } michael@0: if test "${ac_cv_host+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test "x$host_alias" = x; then michael@0: ac_cv_host=$ac_cv_build michael@0: else michael@0: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || michael@0: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 michael@0: $as_echo "$ac_cv_host" >&6; } michael@0: case $ac_cv_host in michael@0: *-*-*) ;; michael@0: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; michael@0: esac michael@0: host=$ac_cv_host michael@0: ac_save_IFS=$IFS; IFS='-' michael@0: set x $ac_cv_host michael@0: shift michael@0: host_cpu=$1 michael@0: host_vendor=$2 michael@0: shift; shift michael@0: # Remember, the first character of IFS is used to create $*, michael@0: # except with old shells: michael@0: host_os=$* michael@0: IFS=$ac_save_IFS michael@0: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 michael@0: $as_echo_n "checking for a sed that does not truncate output... " >&6; } michael@0: if test "${ac_cv_path_SED+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ michael@0: for ac_i in 1 2 3 4 5 6 7; do michael@0: ac_script="$ac_script$as_nl$ac_script" michael@0: done michael@0: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed michael@0: { ac_script=; unset ac_script;} michael@0: if test -z "$SED"; then michael@0: ac_path_SED_found=false michael@0: # Loop through the user's path and test for each of PROGNAME-LIST michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in sed gsed; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" michael@0: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue michael@0: # Check for GNU ac_path_SED and select it if it is found. michael@0: # Check for GNU $ac_path_SED michael@0: case `"$ac_path_SED" --version 2>&1` in michael@0: *GNU*) michael@0: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; michael@0: *) michael@0: ac_count=0 michael@0: $as_echo_n 0123456789 >"conftest.in" michael@0: while : michael@0: do michael@0: cat "conftest.in" "conftest.in" >"conftest.tmp" michael@0: mv "conftest.tmp" "conftest.in" michael@0: cp "conftest.in" "conftest.nl" michael@0: $as_echo '' >> "conftest.nl" michael@0: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break michael@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break michael@0: as_fn_arith $ac_count + 1 && ac_count=$as_val michael@0: if test $ac_count -gt ${ac_path_SED_max-0}; then michael@0: # Best one so far, save it but keep looking for a better one michael@0: ac_cv_path_SED="$ac_path_SED" michael@0: ac_path_SED_max=$ac_count michael@0: fi michael@0: # 10*(2^10) chars as input seems more than enough michael@0: test $ac_count -gt 10 && break michael@0: done michael@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; michael@0: esac michael@0: michael@0: $ac_path_SED_found && break 3 michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: if test -z "$ac_cv_path_SED"; then michael@0: as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 michael@0: fi michael@0: else michael@0: ac_cv_path_SED=$SED michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 michael@0: $as_echo "$ac_cv_path_SED" >&6; } michael@0: SED="$ac_cv_path_SED" michael@0: rm -f conftest.sed michael@0: michael@0: test -z "$SED" && SED=sed michael@0: Xsed="$SED -e 1s/^X//" michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 michael@0: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } michael@0: if test "${ac_cv_path_GREP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -z "$GREP"; then michael@0: ac_path_GREP_found=false michael@0: # Loop through the user's path and test for each of PROGNAME-LIST michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in grep ggrep; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" michael@0: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue michael@0: # Check for GNU ac_path_GREP and select it if it is found. michael@0: # Check for GNU $ac_path_GREP michael@0: case `"$ac_path_GREP" --version 2>&1` in michael@0: *GNU*) michael@0: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; michael@0: *) michael@0: ac_count=0 michael@0: $as_echo_n 0123456789 >"conftest.in" michael@0: while : michael@0: do michael@0: cat "conftest.in" "conftest.in" >"conftest.tmp" michael@0: mv "conftest.tmp" "conftest.in" michael@0: cp "conftest.in" "conftest.nl" michael@0: $as_echo 'GREP' >> "conftest.nl" michael@0: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break michael@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break michael@0: as_fn_arith $ac_count + 1 && ac_count=$as_val michael@0: if test $ac_count -gt ${ac_path_GREP_max-0}; then michael@0: # Best one so far, save it but keep looking for a better one michael@0: ac_cv_path_GREP="$ac_path_GREP" michael@0: ac_path_GREP_max=$ac_count michael@0: fi michael@0: # 10*(2^10) chars as input seems more than enough michael@0: test $ac_count -gt 10 && break michael@0: done michael@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; michael@0: esac michael@0: michael@0: $ac_path_GREP_found && break 3 michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: if test -z "$ac_cv_path_GREP"; then michael@0: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 michael@0: fi michael@0: else michael@0: ac_cv_path_GREP=$GREP michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 michael@0: $as_echo "$ac_cv_path_GREP" >&6; } michael@0: GREP="$ac_cv_path_GREP" michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 michael@0: $as_echo_n "checking for egrep... " >&6; } michael@0: if test "${ac_cv_path_EGREP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 michael@0: then ac_cv_path_EGREP="$GREP -E" michael@0: else michael@0: if test -z "$EGREP"; then michael@0: ac_path_EGREP_found=false michael@0: # Loop through the user's path and test for each of PROGNAME-LIST michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in egrep; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" michael@0: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue michael@0: # Check for GNU ac_path_EGREP and select it if it is found. michael@0: # Check for GNU $ac_path_EGREP michael@0: case `"$ac_path_EGREP" --version 2>&1` in michael@0: *GNU*) michael@0: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; michael@0: *) michael@0: ac_count=0 michael@0: $as_echo_n 0123456789 >"conftest.in" michael@0: while : michael@0: do michael@0: cat "conftest.in" "conftest.in" >"conftest.tmp" michael@0: mv "conftest.tmp" "conftest.in" michael@0: cp "conftest.in" "conftest.nl" michael@0: $as_echo 'EGREP' >> "conftest.nl" michael@0: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break michael@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break michael@0: as_fn_arith $ac_count + 1 && ac_count=$as_val michael@0: if test $ac_count -gt ${ac_path_EGREP_max-0}; then michael@0: # Best one so far, save it but keep looking for a better one michael@0: ac_cv_path_EGREP="$ac_path_EGREP" michael@0: ac_path_EGREP_max=$ac_count michael@0: fi michael@0: # 10*(2^10) chars as input seems more than enough michael@0: test $ac_count -gt 10 && break michael@0: done michael@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; michael@0: esac michael@0: michael@0: $ac_path_EGREP_found && break 3 michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: if test -z "$ac_cv_path_EGREP"; then michael@0: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 michael@0: fi michael@0: else michael@0: ac_cv_path_EGREP=$EGREP michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 michael@0: $as_echo "$ac_cv_path_EGREP" >&6; } michael@0: EGREP="$ac_cv_path_EGREP" michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 michael@0: $as_echo_n "checking for fgrep... " >&6; } michael@0: if test "${ac_cv_path_FGREP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 michael@0: then ac_cv_path_FGREP="$GREP -F" michael@0: else michael@0: if test -z "$FGREP"; then michael@0: ac_path_FGREP_found=false michael@0: # Loop through the user's path and test for each of PROGNAME-LIST michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in fgrep; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" michael@0: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue michael@0: # Check for GNU ac_path_FGREP and select it if it is found. michael@0: # Check for GNU $ac_path_FGREP michael@0: case `"$ac_path_FGREP" --version 2>&1` in michael@0: *GNU*) michael@0: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; michael@0: *) michael@0: ac_count=0 michael@0: $as_echo_n 0123456789 >"conftest.in" michael@0: while : michael@0: do michael@0: cat "conftest.in" "conftest.in" >"conftest.tmp" michael@0: mv "conftest.tmp" "conftest.in" michael@0: cp "conftest.in" "conftest.nl" michael@0: $as_echo 'FGREP' >> "conftest.nl" michael@0: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break michael@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break michael@0: as_fn_arith $ac_count + 1 && ac_count=$as_val michael@0: if test $ac_count -gt ${ac_path_FGREP_max-0}; then michael@0: # Best one so far, save it but keep looking for a better one michael@0: ac_cv_path_FGREP="$ac_path_FGREP" michael@0: ac_path_FGREP_max=$ac_count michael@0: fi michael@0: # 10*(2^10) chars as input seems more than enough michael@0: test $ac_count -gt 10 && break michael@0: done michael@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; michael@0: esac michael@0: michael@0: $ac_path_FGREP_found && break 3 michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: if test -z "$ac_cv_path_FGREP"; then michael@0: as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 michael@0: fi michael@0: else michael@0: ac_cv_path_FGREP=$FGREP michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 michael@0: $as_echo "$ac_cv_path_FGREP" >&6; } michael@0: FGREP="$ac_cv_path_FGREP" michael@0: michael@0: michael@0: test -z "$GREP" && GREP=grep michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether --with-gnu-ld was given. michael@0: if test "${with_gnu_ld+set}" = set; then : michael@0: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes michael@0: else michael@0: with_gnu_ld=no michael@0: fi michael@0: michael@0: ac_prog=ld michael@0: if test "$GCC" = yes; then michael@0: # Check if gcc -print-prog-name=ld gives a path. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 michael@0: $as_echo_n "checking for ld used by $CC... " >&6; } michael@0: case $host in michael@0: *-*-mingw*) michael@0: # gcc leaves a trailing carriage return which upsets mingw michael@0: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; michael@0: *) michael@0: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; michael@0: esac michael@0: case $ac_prog in michael@0: # Accept absolute paths. michael@0: [\\/]* | ?:[\\/]*) michael@0: re_direlt='/[^/][^/]*/\.\./' michael@0: # Canonicalize the pathname of ld michael@0: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` michael@0: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do michael@0: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` michael@0: done michael@0: test -z "$LD" && LD="$ac_prog" michael@0: ;; michael@0: "") michael@0: # If it fails, then pretend we aren't using GCC. michael@0: ac_prog=ld michael@0: ;; michael@0: *) michael@0: # If it is relative, then search for the first ld in PATH. michael@0: with_gnu_ld=unknown michael@0: ;; michael@0: esac michael@0: elif test "$with_gnu_ld" = yes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 michael@0: $as_echo_n "checking for GNU ld... " >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 michael@0: $as_echo_n "checking for non-GNU ld... " >&6; } michael@0: fi michael@0: if test "${lt_cv_path_LD+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -z "$LD"; then michael@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR michael@0: for ac_dir in $PATH; do michael@0: IFS="$lt_save_ifs" michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then michael@0: lt_cv_path_LD="$ac_dir/$ac_prog" michael@0: # Check to see if the program is GNU ld. I'd rather use --version, michael@0: # but apparently some variants of GNU ld only accept -v. michael@0: # Break only if it was the GNU/non-GNU ld that we prefer. michael@0: case `"$lt_cv_path_LD" -v 2>&1 &5 michael@0: $as_echo "$LD" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 michael@0: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } michael@0: if test "${lt_cv_prog_gnu_ld+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: # I'd rather use --version here, but apparently some GNU lds only accept -v. michael@0: case `$LD -v 2>&1 &5 michael@0: $as_echo "$lt_cv_prog_gnu_ld" >&6; } michael@0: with_gnu_ld=$lt_cv_prog_gnu_ld michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 michael@0: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } michael@0: if test "${lt_cv_path_NM+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$NM"; then michael@0: # Let the user override the test. michael@0: lt_cv_path_NM="$NM" michael@0: else michael@0: lt_nm_to_check="${ac_tool_prefix}nm" michael@0: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then michael@0: lt_nm_to_check="$lt_nm_to_check nm" michael@0: fi michael@0: for lt_tmp_nm in $lt_nm_to_check; do michael@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR michael@0: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do michael@0: IFS="$lt_save_ifs" michael@0: test -z "$ac_dir" && ac_dir=. michael@0: tmp_nm="$ac_dir/$lt_tmp_nm" michael@0: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then michael@0: # Check to see if the nm accepts a BSD-compat flag. michael@0: # Adding the `sed 1q' prevents false positives on HP-UX, which says: michael@0: # nm: unknown option "B" ignored michael@0: # Tru64's nm complains that /dev/null is an invalid object file michael@0: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in michael@0: */dev/null* | *'Invalid file or object type'*) michael@0: lt_cv_path_NM="$tmp_nm -B" michael@0: break michael@0: ;; michael@0: *) michael@0: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in michael@0: */dev/null*) michael@0: lt_cv_path_NM="$tmp_nm -p" michael@0: break michael@0: ;; michael@0: *) michael@0: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but michael@0: continue # so that we can try to find one that supports BSD flags michael@0: ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: fi michael@0: done michael@0: IFS="$lt_save_ifs" michael@0: done michael@0: : ${lt_cv_path_NM=no} michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 michael@0: $as_echo "$lt_cv_path_NM" >&6; } michael@0: if test "$lt_cv_path_NM" != "no"; then michael@0: NM="$lt_cv_path_NM" michael@0: else michael@0: # Didn't find any BSD compatible name lister, look for dumpbin. michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in "dumpbin -symbols" "link -dump -symbols" michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_DUMPBIN+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$DUMPBIN"; then michael@0: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: DUMPBIN=$ac_cv_prog_DUMPBIN michael@0: if test -n "$DUMPBIN"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 michael@0: $as_echo "$DUMPBIN" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$DUMPBIN" && break michael@0: done michael@0: fi michael@0: if test -z "$DUMPBIN"; then michael@0: ac_ct_DUMPBIN=$DUMPBIN michael@0: for ac_prog in "dumpbin -symbols" "link -dump -symbols" michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_DUMPBIN"; then michael@0: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN michael@0: if test -n "$ac_ct_DUMPBIN"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 michael@0: $as_echo "$ac_ct_DUMPBIN" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_DUMPBIN" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_DUMPBIN" = x; then michael@0: DUMPBIN=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: DUMPBIN=$ac_ct_DUMPBIN michael@0: fi michael@0: fi michael@0: michael@0: michael@0: if test "$DUMPBIN" != ":"; then michael@0: NM="$DUMPBIN" michael@0: fi michael@0: fi michael@0: test -z "$NM" && NM=nm michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 michael@0: $as_echo_n "checking the name lister ($NM) interface... " >&6; } michael@0: if test "${lt_cv_nm_interface+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_nm_interface="BSD nm" michael@0: echo "int some_variable = 0;" > conftest.$ac_ext michael@0: (eval echo "\"\$as_me:5532: $ac_compile\"" >&5) michael@0: (eval "$ac_compile" 2>conftest.err) michael@0: cat conftest.err >&5 michael@0: (eval echo "\"\$as_me:5535: $NM \\\"conftest.$ac_objext\\\"\"" >&5) michael@0: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) michael@0: cat conftest.err >&5 michael@0: (eval echo "\"\$as_me:5538: output\"" >&5) michael@0: cat conftest.out >&5 michael@0: if $GREP 'External.*some_variable' conftest.out > /dev/null; then michael@0: lt_cv_nm_interface="MS dumpbin" michael@0: fi michael@0: rm -f conftest* michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 michael@0: $as_echo "$lt_cv_nm_interface" >&6; } michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 michael@0: $as_echo_n "checking whether ln -s works... " >&6; } michael@0: LN_S=$as_ln_s michael@0: if test "$LN_S" = "ln -s"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 michael@0: $as_echo "no, using $LN_S" >&6; } michael@0: fi michael@0: michael@0: # find the maximum length of command line arguments michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 michael@0: $as_echo_n "checking the maximum length of command line arguments... " >&6; } michael@0: if test "${lt_cv_sys_max_cmd_len+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: i=0 michael@0: teststring="ABCD" michael@0: michael@0: case $build_os in michael@0: msdosdjgpp*) michael@0: # On DJGPP, this test can blow up pretty badly due to problems in libc michael@0: # (any single argument exceeding 2000 bytes causes a buffer overrun michael@0: # during glob expansion). Even if it were fixed, the result of this michael@0: # check would be larger than it should be. michael@0: lt_cv_sys_max_cmd_len=12288; # 12K is about right michael@0: ;; michael@0: michael@0: gnu*) michael@0: # Under GNU Hurd, this test is not required because there is michael@0: # no limit to the length of command line arguments. michael@0: # Libtool will interpret -1 as no limit whatsoever michael@0: lt_cv_sys_max_cmd_len=-1; michael@0: ;; michael@0: michael@0: cygwin* | mingw* | cegcc*) michael@0: # On Win9x/ME, this test blows up -- it succeeds, but takes michael@0: # about 5 minutes as the teststring grows exponentially. michael@0: # Worse, since 9x/ME are not pre-emptively multitasking, michael@0: # you end up with a "frozen" computer, even though with patience michael@0: # the test eventually succeeds (with a max line length of 256k). michael@0: # Instead, let's just punt: use the minimum linelength reported by michael@0: # all of the supported platforms: 8192 (on NT/2K/XP). michael@0: lt_cv_sys_max_cmd_len=8192; michael@0: ;; michael@0: michael@0: amigaos*) michael@0: # On AmigaOS with pdksh, this test takes hours, literally. michael@0: # So we just punt and use a minimum line length of 8192. michael@0: lt_cv_sys_max_cmd_len=8192; michael@0: ;; michael@0: michael@0: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) michael@0: # This has been around since 386BSD, at least. Likely further. michael@0: if test -x /sbin/sysctl; then michael@0: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` michael@0: elif test -x /usr/sbin/sysctl; then michael@0: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` michael@0: else michael@0: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs michael@0: fi michael@0: # And add a safety zone michael@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` michael@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` michael@0: ;; michael@0: michael@0: interix*) michael@0: # We know the value 262144 and hardcode it with a safety zone (like BSD) michael@0: lt_cv_sys_max_cmd_len=196608 michael@0: ;; michael@0: michael@0: osf*) michael@0: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure michael@0: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not michael@0: # nice to cause kernel panics so lets avoid the loop below. michael@0: # First set a reasonable default. michael@0: lt_cv_sys_max_cmd_len=16384 michael@0: # michael@0: if test -x /sbin/sysconfig; then michael@0: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in michael@0: *1*) lt_cv_sys_max_cmd_len=-1 ;; michael@0: esac michael@0: fi michael@0: ;; michael@0: sco3.2v5*) michael@0: lt_cv_sys_max_cmd_len=102400 michael@0: ;; michael@0: sysv5* | sco5v6* | sysv4.2uw2*) michael@0: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` michael@0: if test -n "$kargmax"; then michael@0: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` michael@0: else michael@0: lt_cv_sys_max_cmd_len=32768 michael@0: fi michael@0: ;; michael@0: *) michael@0: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` michael@0: if test -n "$lt_cv_sys_max_cmd_len"; then michael@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` michael@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` michael@0: else michael@0: # Make teststring a little bigger before we do anything with it. michael@0: # a 1K string should be a reasonable start. michael@0: for i in 1 2 3 4 5 6 7 8 ; do michael@0: teststring=$teststring$teststring michael@0: done michael@0: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} michael@0: # If test is not a shell built-in, we'll probably end up computing a michael@0: # maximum length that is only half of the actual maximum length, but michael@0: # we can't tell. michael@0: while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ michael@0: = "XX$teststring$teststring"; } >/dev/null 2>&1 && michael@0: test $i != 17 # 1/2 MB should be enough michael@0: do michael@0: i=`expr $i + 1` michael@0: teststring=$teststring$teststring michael@0: done michael@0: # Only check the string length outside the loop. michael@0: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` michael@0: teststring= michael@0: # Add a significant safety factor because C++ compilers can tack on michael@0: # massive amounts of additional arguments before passing them to the michael@0: # linker. It appears as though 1/2 is a usable value. michael@0: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: fi michael@0: michael@0: if test -n $lt_cv_sys_max_cmd_len ; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 michael@0: $as_echo "$lt_cv_sys_max_cmd_len" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 michael@0: $as_echo "none" >&6; } michael@0: fi michael@0: max_cmd_len=$lt_cv_sys_max_cmd_len michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: : ${CP="cp -f"} michael@0: : ${MV="mv -f"} michael@0: : ${RM="rm -f"} michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 michael@0: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } michael@0: # Try some XSI features michael@0: xsi_shell=no michael@0: ( _lt_dummy="a/b/c" michael@0: test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ michael@0: = c,a/b,, \ michael@0: && eval 'test $(( 1 + 1 )) -eq 2 \ michael@0: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ michael@0: && xsi_shell=yes michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 michael@0: $as_echo "$xsi_shell" >&6; } michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 michael@0: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } michael@0: lt_shell_append=no michael@0: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ michael@0: >/dev/null 2>&1 \ michael@0: && lt_shell_append=yes michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 michael@0: $as_echo "$lt_shell_append" >&6; } michael@0: michael@0: michael@0: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then michael@0: lt_unset=unset michael@0: else michael@0: lt_unset=false michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # test EBCDIC or ASCII michael@0: case `echo X|tr X '\101'` in michael@0: A) # ASCII based system michael@0: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr michael@0: lt_SP2NL='tr \040 \012' michael@0: lt_NL2SP='tr \015\012 \040\040' michael@0: ;; michael@0: *) # EBCDIC based system michael@0: lt_SP2NL='tr \100 \n' michael@0: lt_NL2SP='tr \r\n \100\100' michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 michael@0: $as_echo_n "checking for $LD option to reload object files... " >&6; } michael@0: if test "${lt_cv_ld_reload_flag+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_ld_reload_flag='-r' michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 michael@0: $as_echo "$lt_cv_ld_reload_flag" >&6; } michael@0: reload_flag=$lt_cv_ld_reload_flag michael@0: case $reload_flag in michael@0: "" | " "*) ;; michael@0: *) reload_flag=" $reload_flag" ;; michael@0: esac michael@0: reload_cmds='$LD$reload_flag -o $output$reload_objs' michael@0: case $host_os in michael@0: darwin*) michael@0: if test "$GCC" = yes; then michael@0: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' michael@0: else michael@0: reload_cmds='$LD$reload_flag -o $output$reload_objs' michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}objdump; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_OBJDUMP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$OBJDUMP"; then michael@0: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: OBJDUMP=$ac_cv_prog_OBJDUMP michael@0: if test -n "$OBJDUMP"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 michael@0: $as_echo "$OBJDUMP" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_OBJDUMP"; then michael@0: ac_ct_OBJDUMP=$OBJDUMP michael@0: # Extract the first word of "objdump", so it can be a program name with args. michael@0: set dummy objdump; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_OBJDUMP"; then michael@0: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_OBJDUMP="objdump" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP michael@0: if test -n "$ac_ct_OBJDUMP"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 michael@0: $as_echo "$ac_ct_OBJDUMP" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_OBJDUMP" = x; then michael@0: OBJDUMP="false" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: OBJDUMP=$ac_ct_OBJDUMP michael@0: fi michael@0: else michael@0: OBJDUMP="$ac_cv_prog_OBJDUMP" michael@0: fi michael@0: michael@0: test -z "$OBJDUMP" && OBJDUMP=objdump michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 michael@0: $as_echo_n "checking how to recognize dependent libraries... " >&6; } michael@0: if test "${lt_cv_deplibs_check_method+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_file_magic_cmd='$MAGIC_CMD' michael@0: lt_cv_file_magic_test_file= michael@0: lt_cv_deplibs_check_method='unknown' michael@0: # Need to set the preceding variable on all platforms that support michael@0: # interlibrary dependencies. michael@0: # 'none' -- dependencies not supported. michael@0: # `unknown' -- same as none, but documents that we really don't know. michael@0: # 'pass_all' -- all dependencies passed with no checks. michael@0: # 'test_compile' -- check by making test program. michael@0: # 'file_magic [[regex]]' -- check by looking for files in library path michael@0: # which responds to the $file_magic_cmd with a given extended regex. michael@0: # If you have `file' or equivalent on your system and you're not sure michael@0: # whether `pass_all' will *always* work, you probably want this one. michael@0: michael@0: case $host_os in michael@0: aix[4-9]*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: beos*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: bsdi[45]*) michael@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' michael@0: lt_cv_file_magic_cmd='/usr/bin/file -L' michael@0: lt_cv_file_magic_test_file=/shlib/libc.so michael@0: ;; michael@0: michael@0: cygwin*) michael@0: # func_win32_libid is a shell function defined in ltmain.sh michael@0: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' michael@0: lt_cv_file_magic_cmd='func_win32_libid' michael@0: ;; michael@0: michael@0: mingw* | pw32*) michael@0: # Base MSYS/MinGW do not provide the 'file' command needed by michael@0: # func_win32_libid shell function, so use a weaker test based on 'objdump', michael@0: # unless we find 'file', for example because we are cross-compiling. michael@0: if ( file / ) >/dev/null 2>&1; then michael@0: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' michael@0: lt_cv_file_magic_cmd='func_win32_libid' michael@0: else michael@0: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' michael@0: lt_cv_file_magic_cmd='$OBJDUMP -f' michael@0: fi michael@0: ;; michael@0: michael@0: cegcc) michael@0: # use the weaker test based on 'objdump'. See mingw*. michael@0: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' michael@0: lt_cv_file_magic_cmd='$OBJDUMP -f' michael@0: ;; michael@0: michael@0: darwin* | rhapsody*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: freebsd* | dragonfly*) michael@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then michael@0: case $host_cpu in michael@0: i*86 ) michael@0: # Not sure whether the presence of OpenBSD here was a mistake. michael@0: # Let's accept both of them until this is cleared up. michael@0: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' michael@0: lt_cv_file_magic_cmd=/usr/bin/file michael@0: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` michael@0: ;; michael@0: esac michael@0: else michael@0: lt_cv_deplibs_check_method=pass_all michael@0: fi michael@0: ;; michael@0: michael@0: gnu*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: hpux10.20* | hpux11*) michael@0: lt_cv_file_magic_cmd=/usr/bin/file michael@0: case $host_cpu in michael@0: ia64*) michael@0: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' michael@0: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so michael@0: ;; michael@0: hppa*64*) michael@0: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' michael@0: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl michael@0: ;; michael@0: *) michael@0: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' michael@0: lt_cv_file_magic_test_file=/usr/lib/libc.sl michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: interix[3-9]*) michael@0: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here michael@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' michael@0: ;; michael@0: michael@0: irix5* | irix6* | nonstopux*) michael@0: case $LD in michael@0: *-32|*"-32 ") libmagic=32-bit;; michael@0: *-n32|*"-n32 ") libmagic=N32;; michael@0: *-64|*"-64 ") libmagic=64-bit;; michael@0: *) libmagic=never-match;; michael@0: esac michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: # This must be Linux ELF. michael@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: netbsd* | netbsdelf*-gnu) michael@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then michael@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' michael@0: else michael@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' michael@0: fi michael@0: ;; michael@0: michael@0: newos6*) michael@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' michael@0: lt_cv_file_magic_cmd=/usr/bin/file michael@0: lt_cv_file_magic_test_file=/usr/lib/libnls.so michael@0: ;; michael@0: michael@0: *nto* | *qnx*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: openbsd*) michael@0: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then michael@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' michael@0: else michael@0: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' michael@0: fi michael@0: ;; michael@0: michael@0: osf3* | osf4* | osf5*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: rdos*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: solaris*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: michael@0: sysv4 | sysv4.3*) michael@0: case $host_vendor in michael@0: motorola) michael@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]' michael@0: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` michael@0: ;; michael@0: ncr) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: sequent) michael@0: lt_cv_file_magic_cmd='/bin/file' michael@0: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' michael@0: ;; michael@0: sni) michael@0: lt_cv_file_magic_cmd='/bin/file' michael@0: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" michael@0: lt_cv_file_magic_test_file=/lib/libc.so michael@0: ;; michael@0: siemens) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: pc) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: tpf*) michael@0: lt_cv_deplibs_check_method=pass_all michael@0: ;; michael@0: esac michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 michael@0: $as_echo "$lt_cv_deplibs_check_method" >&6; } michael@0: file_magic_cmd=$lt_cv_file_magic_cmd michael@0: deplibs_check_method=$lt_cv_deplibs_check_method michael@0: test -z "$deplibs_check_method" && deplibs_check_method=unknown michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}ar; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_AR+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$AR"; then michael@0: ac_cv_prog_AR="$AR" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_AR="${ac_tool_prefix}ar" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: AR=$ac_cv_prog_AR michael@0: if test -n "$AR"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 michael@0: $as_echo "$AR" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_AR"; then michael@0: ac_ct_AR=$AR michael@0: # Extract the first word of "ar", so it can be a program name with args. michael@0: set dummy ar; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_AR"; then michael@0: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_AR="ar" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_AR=$ac_cv_prog_ac_ct_AR michael@0: if test -n "$ac_ct_AR"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 michael@0: $as_echo "$ac_ct_AR" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_AR" = x; then michael@0: AR="false" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: AR=$ac_ct_AR michael@0: fi michael@0: else michael@0: AR="$ac_cv_prog_AR" michael@0: fi michael@0: michael@0: test -z "$AR" && AR=ar michael@0: test -z "$AR_FLAGS" && AR_FLAGS=cru michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}strip; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_STRIP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$STRIP"; then michael@0: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_STRIP="${ac_tool_prefix}strip" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: STRIP=$ac_cv_prog_STRIP michael@0: if test -n "$STRIP"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 michael@0: $as_echo "$STRIP" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_STRIP"; then michael@0: ac_ct_STRIP=$STRIP michael@0: # Extract the first word of "strip", so it can be a program name with args. michael@0: set dummy strip; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_STRIP"; then michael@0: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_STRIP="strip" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP michael@0: if test -n "$ac_ct_STRIP"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 michael@0: $as_echo "$ac_ct_STRIP" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_STRIP" = x; then michael@0: STRIP=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: STRIP=$ac_ct_STRIP michael@0: fi michael@0: else michael@0: STRIP="$ac_cv_prog_STRIP" michael@0: fi michael@0: michael@0: test -z "$STRIP" && STRIP=: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_RANLIB+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$RANLIB"; then michael@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: RANLIB=$ac_cv_prog_RANLIB michael@0: if test -n "$RANLIB"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 michael@0: $as_echo "$RANLIB" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_RANLIB"; then michael@0: ac_ct_RANLIB=$RANLIB michael@0: # Extract the first word of "ranlib", so it can be a program name with args. michael@0: set dummy ranlib; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_RANLIB"; then michael@0: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_RANLIB="ranlib" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB michael@0: if test -n "$ac_ct_RANLIB"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 michael@0: $as_echo "$ac_ct_RANLIB" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_RANLIB" = x; then michael@0: RANLIB=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: RANLIB=$ac_ct_RANLIB michael@0: fi michael@0: else michael@0: RANLIB="$ac_cv_prog_RANLIB" michael@0: fi michael@0: michael@0: test -z "$RANLIB" && RANLIB=: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Determine commands to create old-style static archives. michael@0: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' michael@0: old_postinstall_cmds='chmod 644 $oldlib' michael@0: old_postuninstall_cmds= michael@0: michael@0: if test -n "$RANLIB"; then michael@0: case $host_os in michael@0: openbsd*) michael@0: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" michael@0: ;; michael@0: *) michael@0: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" michael@0: ;; michael@0: esac michael@0: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # If no C compiler was specified, use CC. michael@0: LTCC=${LTCC-"$CC"} michael@0: michael@0: # If no C compiler flags were specified, use CFLAGS. michael@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} michael@0: michael@0: # Allow CC to be a program name with arguments. michael@0: compiler=$CC michael@0: michael@0: michael@0: # Check for command to grab the raw symbol name followed by C symbol from nm. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 michael@0: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } michael@0: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: # These are sane defaults that work on at least a few old systems. michael@0: # [They come from Ultrix. What could be older than Ultrix?!! ;)] michael@0: michael@0: # Character class describing NM global symbol codes. michael@0: symcode='[BCDEGRST]' michael@0: michael@0: # Regexp to match symbols that can be accessed directly from C. michael@0: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' michael@0: michael@0: # Define system-specific variables. michael@0: case $host_os in michael@0: aix*) michael@0: symcode='[BCDT]' michael@0: ;; michael@0: cygwin* | mingw* | pw32* | cegcc*) michael@0: symcode='[ABCDGISTW]' michael@0: ;; michael@0: hpux*) michael@0: if test "$host_cpu" = ia64; then michael@0: symcode='[ABCDEGRST]' michael@0: fi michael@0: ;; michael@0: irix* | nonstopux*) michael@0: symcode='[BCDEGRST]' michael@0: ;; michael@0: osf*) michael@0: symcode='[BCDEGQRST]' michael@0: ;; michael@0: solaris*) michael@0: symcode='[BDRT]' michael@0: ;; michael@0: sco3.2v5*) michael@0: symcode='[DT]' michael@0: ;; michael@0: sysv4.2uw2*) michael@0: symcode='[DT]' michael@0: ;; michael@0: sysv5* | sco5v6* | unixware* | OpenUNIX*) michael@0: symcode='[ABDT]' michael@0: ;; michael@0: sysv4) michael@0: symcode='[DFNSTU]' michael@0: ;; michael@0: esac michael@0: michael@0: # If we're using GNU nm, then use its standard symbol codes. michael@0: case `$NM -V 2>&1` in michael@0: *GNU* | *'with BFD'*) michael@0: symcode='[ABCDGIRSTW]' ;; michael@0: esac michael@0: michael@0: # Transform an extracted symbol line into a proper C declaration. michael@0: # Some systems (esp. on ia64) link data and code symbols differently, michael@0: # so use this general approach. michael@0: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" michael@0: michael@0: # Transform an extracted symbol line into symbol name and symbol address michael@0: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" michael@0: 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'" michael@0: michael@0: # Handle CRLF in mingw tool chain michael@0: opt_cr= michael@0: case $build_os in michael@0: mingw*) michael@0: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp michael@0: ;; michael@0: esac michael@0: michael@0: # Try without a prefix underscore, then with it. michael@0: for ac_symprfx in "" "_"; do michael@0: michael@0: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. michael@0: symxfrm="\\1 $ac_symprfx\\2 \\2" michael@0: michael@0: # Write the raw and C identifiers. michael@0: if test "$lt_cv_nm_interface" = "MS dumpbin"; then michael@0: # Fake it for dumpbin and say T for any non-static function michael@0: # and D for any global variable. michael@0: # Also find C++ and __fastcall symbols from MSVC++, michael@0: # which start with @ or ?. michael@0: lt_cv_sys_global_symbol_pipe="$AWK '"\ michael@0: " {last_section=section; section=\$ 3};"\ michael@0: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ michael@0: " \$ 0!~/External *\|/{next};"\ michael@0: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ michael@0: " {if(hide[section]) next};"\ michael@0: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ michael@0: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ michael@0: " s[1]~/^[@?]/{print s[1], s[1]; next};"\ michael@0: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ michael@0: " ' prfx=^$ac_symprfx" michael@0: else michael@0: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" michael@0: fi michael@0: michael@0: # Check to see that the pipe works correctly. michael@0: pipe_works=no michael@0: michael@0: rm -f conftest* michael@0: cat > conftest.$ac_ext <<_LT_EOF michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: char nm_test_var; michael@0: void nm_test_func(void); michael@0: void nm_test_func(void){} michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: int main(){nm_test_var='a';nm_test_func();return(0);} michael@0: _LT_EOF michael@0: michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 michael@0: (eval $ac_compile) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then michael@0: # Now try to grab the symbols. michael@0: nlist=conftest.nm michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 michael@0: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && test -s "$nlist"; then michael@0: # Try sorting and uniquifying the output. michael@0: if sort "$nlist" | uniq > "$nlist"T; then michael@0: mv -f "$nlist"T "$nlist" michael@0: else michael@0: rm -f "$nlist"T michael@0: fi michael@0: michael@0: # Make sure that we snagged all the symbols we need. michael@0: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then michael@0: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then michael@0: cat <<_LT_EOF > conftest.$ac_ext michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: michael@0: _LT_EOF michael@0: # Now generate the symbol file. michael@0: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' michael@0: michael@0: cat <<_LT_EOF >> conftest.$ac_ext michael@0: michael@0: /* The mapping between symbol names and symbols. */ michael@0: const struct { michael@0: const char *name; michael@0: void *address; michael@0: } michael@0: lt__PROGRAM__LTX_preloaded_symbols[] = michael@0: { michael@0: { "@PROGRAM@", (void *) 0 }, michael@0: _LT_EOF michael@0: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext michael@0: cat <<\_LT_EOF >> conftest.$ac_ext michael@0: {0, (void *) 0} michael@0: }; michael@0: michael@0: /* This works around a problem in FreeBSD linker */ michael@0: #ifdef FREEBSD_WORKAROUND michael@0: static const void *lt_preloaded_setup() { michael@0: return lt__PROGRAM__LTX_preloaded_symbols; michael@0: } michael@0: #endif michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: _LT_EOF michael@0: # Now try linking the two files. michael@0: mv conftest.$ac_objext conftstm.$ac_objext michael@0: lt_save_LIBS="$LIBS" michael@0: lt_save_CFLAGS="$CFLAGS" michael@0: LIBS="conftstm.$ac_objext" michael@0: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 michael@0: (eval $ac_link) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && test -s conftest${ac_exeext}; then michael@0: pipe_works=yes michael@0: fi michael@0: LIBS="$lt_save_LIBS" michael@0: CFLAGS="$lt_save_CFLAGS" michael@0: else michael@0: echo "cannot find nm_test_func in $nlist" >&5 michael@0: fi michael@0: else michael@0: echo "cannot find nm_test_var in $nlist" >&5 michael@0: fi michael@0: else michael@0: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 michael@0: fi michael@0: else michael@0: echo "$progname: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: fi michael@0: rm -rf conftest* conftst* michael@0: michael@0: # Do not use the global_symbol_pipe unless it works. michael@0: if test "$pipe_works" = yes; then michael@0: break michael@0: else michael@0: lt_cv_sys_global_symbol_pipe= michael@0: fi michael@0: done michael@0: michael@0: fi michael@0: michael@0: if test -z "$lt_cv_sys_global_symbol_pipe"; then michael@0: lt_cv_sys_global_symbol_to_cdecl= michael@0: fi michael@0: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 michael@0: $as_echo "failed" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 michael@0: $as_echo "ok" >&6; } michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether --enable-libtool-lock was given. michael@0: if test "${enable_libtool_lock+set}" = set; then : michael@0: enableval=$enable_libtool_lock; michael@0: fi michael@0: michael@0: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes michael@0: michael@0: # Some flags need to be propagated to the compiler or linker for good michael@0: # libtool support. michael@0: case $host in michael@0: ia64-*-hpux*) michael@0: # Find out which ABI we are using. michael@0: echo 'int i;' > conftest.$ac_ext michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 michael@0: (eval $ac_compile) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then michael@0: case `/usr/bin/file conftest.$ac_objext` in michael@0: *ELF-32*) michael@0: HPUX_IA64_MODE="32" michael@0: ;; michael@0: *ELF-64*) michael@0: HPUX_IA64_MODE="64" michael@0: ;; michael@0: esac michael@0: fi michael@0: rm -rf conftest* michael@0: ;; michael@0: *-*-irix6*) michael@0: # Find out which ABI we are using. michael@0: echo '#line 6744 "configure"' > conftest.$ac_ext michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 michael@0: (eval $ac_compile) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then michael@0: if test "$lt_cv_prog_gnu_ld" = yes; then michael@0: case `/usr/bin/file conftest.$ac_objext` in michael@0: *32-bit*) michael@0: LD="${LD-ld} -melf32bsmip" michael@0: ;; michael@0: *N32*) michael@0: LD="${LD-ld} -melf32bmipn32" michael@0: ;; michael@0: *64-bit*) michael@0: LD="${LD-ld} -melf64bmip" michael@0: ;; michael@0: esac michael@0: else michael@0: case `/usr/bin/file conftest.$ac_objext` in michael@0: *32-bit*) michael@0: LD="${LD-ld} -32" michael@0: ;; michael@0: *N32*) michael@0: LD="${LD-ld} -n32" michael@0: ;; michael@0: *64-bit*) michael@0: LD="${LD-ld} -64" michael@0: ;; michael@0: esac michael@0: fi michael@0: fi michael@0: rm -rf conftest* michael@0: ;; michael@0: michael@0: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ michael@0: s390*-*linux*|s390*-*tpf*|sparc*-*linux*) michael@0: # Find out which ABI we are using. michael@0: echo 'int i;' > conftest.$ac_ext michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 michael@0: (eval $ac_compile) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then michael@0: case `/usr/bin/file conftest.o` in michael@0: *32-bit*) michael@0: case $host in michael@0: x86_64-*kfreebsd*-gnu) michael@0: LD="${LD-ld} -m elf_i386_fbsd" michael@0: ;; michael@0: x86_64-*linux*) michael@0: LD="${LD-ld} -m elf_i386" michael@0: ;; michael@0: ppc64-*linux*|powerpc64-*linux*) michael@0: LD="${LD-ld} -m elf32ppclinux" michael@0: ;; michael@0: s390x-*linux*) michael@0: LD="${LD-ld} -m elf_s390" michael@0: ;; michael@0: sparc64-*linux*) michael@0: LD="${LD-ld} -m elf32_sparc" michael@0: ;; michael@0: esac michael@0: ;; michael@0: *64-bit*) michael@0: case $host in michael@0: x86_64-*kfreebsd*-gnu) michael@0: LD="${LD-ld} -m elf_x86_64_fbsd" michael@0: ;; michael@0: x86_64-*linux*) michael@0: LD="${LD-ld} -m elf_x86_64" michael@0: ;; michael@0: ppc*-*linux*|powerpc*-*linux*) michael@0: LD="${LD-ld} -m elf64ppc" michael@0: ;; michael@0: s390*-*linux*|s390*-*tpf*) michael@0: LD="${LD-ld} -m elf64_s390" michael@0: ;; michael@0: sparc*-*linux*) michael@0: LD="${LD-ld} -m elf64_sparc" michael@0: ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: fi michael@0: rm -rf conftest* michael@0: ;; michael@0: michael@0: *-*-sco3.2v5*) michael@0: # On SCO OpenServer 5, we need -belf to get full-featured binaries. michael@0: SAVE_CFLAGS="$CFLAGS" michael@0: CFLAGS="$CFLAGS -belf" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 michael@0: $as_echo_n "checking whether the C compiler needs -belf... " >&6; } michael@0: if test "${lt_cv_cc_needs_belf+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: lt_cv_cc_needs_belf=yes michael@0: else michael@0: lt_cv_cc_needs_belf=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 michael@0: $as_echo "$lt_cv_cc_needs_belf" >&6; } michael@0: if test x"$lt_cv_cc_needs_belf" != x"yes"; then michael@0: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf michael@0: CFLAGS="$SAVE_CFLAGS" michael@0: fi michael@0: ;; michael@0: sparc*-*solaris*) michael@0: # Find out which ABI we are using. michael@0: echo 'int i;' > conftest.$ac_ext michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 michael@0: (eval $ac_compile) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then michael@0: case `/usr/bin/file conftest.o` in michael@0: *64-bit*) michael@0: case $lt_cv_prog_gnu_ld in michael@0: yes*) LD="${LD-ld} -m elf64_sparc" ;; michael@0: *) michael@0: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then michael@0: LD="${LD-ld} -64" michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: fi michael@0: rm -rf conftest* michael@0: ;; michael@0: esac michael@0: michael@0: need_locks="$enable_libtool_lock" michael@0: michael@0: michael@0: case $host_os in michael@0: rhapsody* | darwin*) michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$DSYMUTIL"; then michael@0: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: DSYMUTIL=$ac_cv_prog_DSYMUTIL michael@0: if test -n "$DSYMUTIL"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 michael@0: $as_echo "$DSYMUTIL" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_DSYMUTIL"; then michael@0: ac_ct_DSYMUTIL=$DSYMUTIL michael@0: # Extract the first word of "dsymutil", so it can be a program name with args. michael@0: set dummy dsymutil; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_DSYMUTIL"; then michael@0: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL michael@0: if test -n "$ac_ct_DSYMUTIL"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 michael@0: $as_echo "$ac_ct_DSYMUTIL" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_DSYMUTIL" = x; then michael@0: DSYMUTIL=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: DSYMUTIL=$ac_ct_DSYMUTIL michael@0: fi michael@0: else michael@0: DSYMUTIL="$ac_cv_prog_DSYMUTIL" michael@0: fi michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}nmedit; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_NMEDIT+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$NMEDIT"; then michael@0: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: NMEDIT=$ac_cv_prog_NMEDIT michael@0: if test -n "$NMEDIT"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 michael@0: $as_echo "$NMEDIT" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_NMEDIT"; then michael@0: ac_ct_NMEDIT=$NMEDIT michael@0: # Extract the first word of "nmedit", so it can be a program name with args. michael@0: set dummy nmedit; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_NMEDIT"; then michael@0: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_NMEDIT="nmedit" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT michael@0: if test -n "$ac_ct_NMEDIT"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 michael@0: $as_echo "$ac_ct_NMEDIT" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_NMEDIT" = x; then michael@0: NMEDIT=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: NMEDIT=$ac_ct_NMEDIT michael@0: fi michael@0: else michael@0: NMEDIT="$ac_cv_prog_NMEDIT" michael@0: fi michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}lipo; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_LIPO+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$LIPO"; then michael@0: ac_cv_prog_LIPO="$LIPO" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_LIPO="${ac_tool_prefix}lipo" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: LIPO=$ac_cv_prog_LIPO michael@0: if test -n "$LIPO"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 michael@0: $as_echo "$LIPO" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_LIPO"; then michael@0: ac_ct_LIPO=$LIPO michael@0: # Extract the first word of "lipo", so it can be a program name with args. michael@0: set dummy lipo; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_LIPO"; then michael@0: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_LIPO="lipo" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO michael@0: if test -n "$ac_ct_LIPO"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 michael@0: $as_echo "$ac_ct_LIPO" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_LIPO" = x; then michael@0: LIPO=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: LIPO=$ac_ct_LIPO michael@0: fi michael@0: else michael@0: LIPO="$ac_cv_prog_LIPO" michael@0: fi michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}otool; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_OTOOL+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$OTOOL"; then michael@0: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_OTOOL="${ac_tool_prefix}otool" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: OTOOL=$ac_cv_prog_OTOOL michael@0: if test -n "$OTOOL"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 michael@0: $as_echo "$OTOOL" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_OTOOL"; then michael@0: ac_ct_OTOOL=$OTOOL michael@0: # Extract the first word of "otool", so it can be a program name with args. michael@0: set dummy otool; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_OTOOL"; then michael@0: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_OTOOL="otool" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL michael@0: if test -n "$ac_ct_OTOOL"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 michael@0: $as_echo "$ac_ct_OTOOL" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_OTOOL" = x; then michael@0: OTOOL=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: OTOOL=$ac_ct_OTOOL michael@0: fi michael@0: else michael@0: OTOOL="$ac_cv_prog_OTOOL" michael@0: fi michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}otool64; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_OTOOL64+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$OTOOL64"; then michael@0: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: OTOOL64=$ac_cv_prog_OTOOL64 michael@0: if test -n "$OTOOL64"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 michael@0: $as_echo "$OTOOL64" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_OTOOL64"; then michael@0: ac_ct_OTOOL64=$OTOOL64 michael@0: # Extract the first word of "otool64", so it can be a program name with args. michael@0: set dummy otool64; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_OTOOL64"; then michael@0: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_OTOOL64="otool64" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 michael@0: if test -n "$ac_ct_OTOOL64"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 michael@0: $as_echo "$ac_ct_OTOOL64" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_OTOOL64" = x; then michael@0: OTOOL64=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: OTOOL64=$ac_ct_OTOOL64 michael@0: fi michael@0: else michael@0: OTOOL64="$ac_cv_prog_OTOOL64" michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 michael@0: $as_echo_n "checking for -single_module linker flag... " >&6; } michael@0: if test "${lt_cv_apple_cc_single_mod+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_apple_cc_single_mod=no michael@0: if test -z "${LT_MULTI_MODULE}"; then michael@0: # By default we will add the -single_module flag. You can override michael@0: # by either setting the environment variable LT_MULTI_MODULE michael@0: # non-empty at configure time, or by adding -multi_module to the michael@0: # link flags. michael@0: rm -rf libconftest.dylib* michael@0: echo "int foo(void){return 1;}" > conftest.c michael@0: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ michael@0: -dynamiclib -Wl,-single_module conftest.c" >&5 michael@0: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ michael@0: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err michael@0: _lt_result=$? michael@0: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then michael@0: lt_cv_apple_cc_single_mod=yes michael@0: else michael@0: cat conftest.err >&5 michael@0: fi michael@0: rm -rf libconftest.dylib* michael@0: rm -f conftest.* michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 michael@0: $as_echo "$lt_cv_apple_cc_single_mod" >&6; } michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 michael@0: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } michael@0: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_ld_exported_symbols_list=no michael@0: save_LDFLAGS=$LDFLAGS michael@0: echo "_main" > conftest.sym michael@0: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: lt_cv_ld_exported_symbols_list=yes michael@0: else michael@0: lt_cv_ld_exported_symbols_list=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LDFLAGS="$save_LDFLAGS" michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 michael@0: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } michael@0: case $host_os in michael@0: rhapsody* | darwin1.[012]) michael@0: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; michael@0: darwin1.*) michael@0: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; michael@0: darwin*) # darwin 5.x on michael@0: # if running on 10.5 or later, the deployment target defaults michael@0: # to the OS version, if on x86, and 10.4, the deployment michael@0: # target defaults to 10.4. Don't you love it? michael@0: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in michael@0: 10.0,*86*-darwin8*|10.0,*-darwin[91]*) michael@0: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; michael@0: 10.[012]*) michael@0: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; michael@0: 10.*) michael@0: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: if test "$lt_cv_apple_cc_single_mod" = "yes"; then michael@0: _lt_dar_single_mod='$single_module' michael@0: fi michael@0: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then michael@0: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' michael@0: else michael@0: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' michael@0: fi michael@0: if test "$DSYMUTIL" != ":"; then michael@0: _lt_dsymutil='~$DSYMUTIL $lib || :' michael@0: else michael@0: _lt_dsymutil= michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 michael@0: $as_echo_n "checking for ANSI C header files... " >&6; } michael@0: if test "${ac_cv_header_stdc+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_header_stdc=yes michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "memchr" >/dev/null 2>&1; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "free" >/dev/null 2>&1; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. michael@0: if test "$cross_compiling" = yes; then : michael@0: : michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #if ((' ' & 0x0FF) == 0x020) michael@0: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') michael@0: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) michael@0: #else michael@0: # define ISLOWER(c) \ michael@0: (('a' <= (c) && (c) <= 'i') \ michael@0: || ('j' <= (c) && (c) <= 'r') \ michael@0: || ('s' <= (c) && (c) <= 'z')) michael@0: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) michael@0: #endif michael@0: michael@0: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) michael@0: int michael@0: main () michael@0: { michael@0: int i; michael@0: for (i = 0; i < 256; i++) michael@0: if (XOR (islower (i), ISLOWER (i)) michael@0: || toupper (i) != TOUPPER (i)) michael@0: return 2; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 michael@0: $as_echo "$ac_cv_header_stdc" >&6; } michael@0: if test $ac_cv_header_stdc = yes; then michael@0: michael@0: $as_echo "#define STDC_HEADERS 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: # On IRIX 5.3, sys/types and inttypes.h are conflicting. michael@0: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ michael@0: inttypes.h stdint.h unistd.h michael@0: do : michael@0: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` michael@0: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default michael@0: " michael@0: eval as_val=\$$as_ac_Header michael@0: if test "x$as_val" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: michael@0: for ac_header in dlfcn.h michael@0: do : michael@0: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default michael@0: " michael@0: if test "x$ac_cv_header_dlfcn_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_DLFCN_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: if test -z "$CXX"; then michael@0: if test -n "$CCC"; then michael@0: CXX=$CCC michael@0: else michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_CXX+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CXX"; then michael@0: ac_cv_prog_CXX="$CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CXX=$ac_cv_prog_CXX michael@0: if test -n "$CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 michael@0: $as_echo "$CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CXX" && break michael@0: done michael@0: fi michael@0: if test -z "$CXX"; then michael@0: ac_ct_CXX=$CXX michael@0: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CXX"; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX michael@0: if test -n "$ac_ct_CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 michael@0: $as_echo "$ac_ct_CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_CXX" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_CXX" = x; then michael@0: CXX="g++" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CXX=$ac_ct_CXX michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: # Provide some information about the compiler. michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 michael@0: set X $ac_compile michael@0: ac_compiler=$2 michael@0: for ac_option in --version -v -V -qversion; do michael@0: { { ac_try="$ac_compiler $ac_option >&5" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: sed '10a\ michael@0: ... rest of stderr output deleted ... michael@0: 10q' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: fi michael@0: rm -f conftest.er1 conftest.err michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: done michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 michael@0: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } michael@0: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef __GNUC__ michael@0: choke me michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_compiler_gnu=yes michael@0: else michael@0: ac_compiler_gnu=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 michael@0: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } michael@0: if test $ac_compiler_gnu = yes; then michael@0: GXX=yes michael@0: else michael@0: GXX= michael@0: fi michael@0: ac_test_CXXFLAGS=${CXXFLAGS+set} michael@0: ac_save_CXXFLAGS=$CXXFLAGS michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 michael@0: $as_echo_n "checking whether $CXX accepts -g... " >&6; } michael@0: if test "${ac_cv_prog_cxx_g+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_save_cxx_werror_flag=$ac_cxx_werror_flag michael@0: ac_cxx_werror_flag=yes michael@0: ac_cv_prog_cxx_g=no michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: else michael@0: CXXFLAGS="" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 michael@0: $as_echo "$ac_cv_prog_cxx_g" >&6; } michael@0: if test "$ac_test_CXXFLAGS" = set; then michael@0: CXXFLAGS=$ac_save_CXXFLAGS michael@0: elif test $ac_cv_prog_cxx_g = yes; then michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-g -O2" michael@0: else michael@0: CXXFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-O2" michael@0: else michael@0: CXXFLAGS= michael@0: fi michael@0: fi michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: depcc="$CXX" am_compiler_list= michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 michael@0: $as_echo_n "checking dependency style of $depcc... " >&6; } michael@0: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then michael@0: # We make a subdir and do the tests there. Otherwise we can end up michael@0: # making bogus files that we don't know about and never remove. For michael@0: # instance it was reported that on HP-UX the gcc test will end up michael@0: # making a dummy file named `D' -- because `-MD' means `put the output michael@0: # in D'. michael@0: mkdir conftest.dir michael@0: # Copy depcomp to subdir because otherwise we won't find it if we're michael@0: # using a relative directory. michael@0: cp "$am_depcomp" conftest.dir michael@0: cd conftest.dir michael@0: # We will build objects and dependencies in a subdirectory because michael@0: # it helps to detect inapplicable dependency modes. For instance michael@0: # both Tru64's cc and ICC support -MD to output dependencies as a michael@0: # side effect of compilation, but ICC will put the dependencies in michael@0: # the current directory while Tru64 will put them in the object michael@0: # directory. michael@0: mkdir sub michael@0: michael@0: am_cv_CXX_dependencies_compiler_type=none michael@0: if test "$am_compiler_list" = ""; then michael@0: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` michael@0: fi michael@0: am__universal=false michael@0: case " $depcc " in #( michael@0: *\ -arch\ *\ -arch\ *) am__universal=true ;; michael@0: esac michael@0: michael@0: for depmode in $am_compiler_list; do michael@0: # Setup a source with many dependencies, because some compilers michael@0: # like to wrap large dependency lists on column 80 (with \), and michael@0: # we should not choose a depcomp mode which is confused by this. michael@0: # michael@0: # We need to recreate these files for each test, as the compiler may michael@0: # overwrite some of them when testing with obscure command lines. michael@0: # This happens at least with the AIX C compiler. michael@0: : > sub/conftest.c michael@0: for i in 1 2 3 4 5 6; do michael@0: echo '#include "conftst'$i'.h"' >> sub/conftest.c michael@0: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with michael@0: # Solaris 8's {/usr,}/bin/sh. michael@0: touch sub/conftst$i.h michael@0: done michael@0: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf michael@0: michael@0: # We check with `-c' and `-o' for the sake of the "dashmstdout" michael@0: # mode. It turns out that the SunPro C++ compiler does not properly michael@0: # handle `-M -o', and we need to detect this. Also, some Intel michael@0: # versions had trouble with output in subdirs michael@0: am__obj=sub/conftest.${OBJEXT-o} michael@0: am__minus_obj="-o $am__obj" michael@0: case $depmode in michael@0: gcc) michael@0: # This depmode causes a compiler race in universal mode. michael@0: test "$am__universal" = false || continue michael@0: ;; michael@0: nosideeffect) michael@0: # after this tag, mechanisms are not by side-effect, so they'll michael@0: # only be used when explicitly requested michael@0: if test "x$enable_dependency_tracking" = xyes; then michael@0: continue michael@0: else michael@0: break michael@0: fi michael@0: ;; michael@0: msvisualcpp | msvcmsys) michael@0: # This compiler won't grok `-c -o', but also, the minuso test has michael@0: # not run yet. These depmodes are late enough in the game, and michael@0: # so weak that their functioning should not be impacted. michael@0: am__obj=conftest.${OBJEXT-o} michael@0: am__minus_obj= michael@0: ;; michael@0: none) break ;; michael@0: esac michael@0: if depmode=$depmode \ michael@0: source=sub/conftest.c object=$am__obj \ michael@0: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ michael@0: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ michael@0: >/dev/null 2>conftest.err && michael@0: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && michael@0: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && michael@0: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && michael@0: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then michael@0: # icc doesn't choke on unknown options, it will just issue warnings michael@0: # or remarks (even with -Werror). So we grep stderr for any message michael@0: # that says an option was ignored or not supported. michael@0: # When given -MP, icc 7.0 and 7.1 complain thusly: michael@0: # icc: Command line warning: ignoring option '-M'; no argument required michael@0: # The diagnosis changed in icc 8.0: michael@0: # icc: Command line remark: option '-MP' not supported michael@0: if (grep 'ignoring option' conftest.err || michael@0: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else michael@0: am_cv_CXX_dependencies_compiler_type=$depmode michael@0: break michael@0: fi michael@0: fi michael@0: done michael@0: michael@0: cd .. michael@0: rm -rf conftest.dir michael@0: else michael@0: am_cv_CXX_dependencies_compiler_type=none michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 michael@0: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } michael@0: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type michael@0: michael@0: if michael@0: test "x$enable_dependency_tracking" != xno \ michael@0: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then michael@0: am__fastdepCXX_TRUE= michael@0: am__fastdepCXX_FALSE='#' michael@0: else michael@0: am__fastdepCXX_TRUE='#' michael@0: am__fastdepCXX_FALSE= michael@0: fi michael@0: michael@0: michael@0: if test -n "$CXX" && ( test "X$CXX" != "Xno" && michael@0: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || michael@0: (test "X$CXX" != "Xg++"))) ; then michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 michael@0: $as_echo_n "checking how to run the C++ preprocessor... " >&6; } michael@0: if test -z "$CXXCPP"; then michael@0: if test "${ac_cv_prog_CXXCPP+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: # Double quotes because CXXCPP needs to be expanded michael@0: for CXXCPP in "$CXX -E" "/lib/cpp" michael@0: do michael@0: ac_preproc_ok=false michael@0: for ac_cxx_preproc_warn_flag in '' yes michael@0: do michael@0: # Use a header file that comes with gcc, so configuring glibc michael@0: # with a fresh cross-compiler works. michael@0: # Prefer to if __STDC__ is defined, since michael@0: # exists even on freestanding compilers. michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. "Syntax error" is here to catch this case. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: Syntax error michael@0: _ACEOF michael@0: if ac_fn_cxx_try_cpp "$LINENO"; then : michael@0: michael@0: else michael@0: # Broken: fails on valid input. michael@0: continue michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: michael@0: # OK, works on sane cases. Now check whether nonexistent headers michael@0: # can be detected and how. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: _ACEOF michael@0: if ac_fn_cxx_try_cpp "$LINENO"; then : michael@0: # Broken: success on invalid input. michael@0: continue michael@0: else michael@0: # Passes both tests. michael@0: ac_preproc_ok=: michael@0: break michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: michael@0: done michael@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. michael@0: rm -f conftest.err conftest.$ac_ext michael@0: if $ac_preproc_ok; then : michael@0: break michael@0: fi michael@0: michael@0: done michael@0: ac_cv_prog_CXXCPP=$CXXCPP michael@0: michael@0: fi michael@0: CXXCPP=$ac_cv_prog_CXXCPP michael@0: else michael@0: ac_cv_prog_CXXCPP=$CXXCPP michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 michael@0: $as_echo "$CXXCPP" >&6; } michael@0: ac_preproc_ok=false michael@0: for ac_cxx_preproc_warn_flag in '' yes michael@0: do michael@0: # Use a header file that comes with gcc, so configuring glibc michael@0: # with a fresh cross-compiler works. michael@0: # Prefer to if __STDC__ is defined, since michael@0: # exists even on freestanding compilers. michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. "Syntax error" is here to catch this case. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: Syntax error michael@0: _ACEOF michael@0: if ac_fn_cxx_try_cpp "$LINENO"; then : michael@0: michael@0: else michael@0: # Broken: fails on valid input. michael@0: continue michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: michael@0: # OK, works on sane cases. Now check whether nonexistent headers michael@0: # can be detected and how. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: _ACEOF michael@0: if ac_fn_cxx_try_cpp "$LINENO"; then : michael@0: # Broken: success on invalid input. michael@0: continue michael@0: else michael@0: # Passes both tests. michael@0: ac_preproc_ok=: michael@0: break michael@0: fi michael@0: rm -f conftest.err conftest.$ac_ext michael@0: michael@0: done michael@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. michael@0: rm -f conftest.err conftest.$ac_ext michael@0: if $ac_preproc_ok; then : michael@0: michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: _lt_caught_CXX_error=yes; } michael@0: fi michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: else michael@0: _lt_caught_CXX_error=yes michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Set options michael@0: michael@0: michael@0: michael@0: enable_dlopen=no michael@0: michael@0: michael@0: enable_win32_dll=no michael@0: michael@0: michael@0: # Check whether --enable-shared was given. michael@0: if test "${enable_shared+set}" = set; then : michael@0: enableval=$enable_shared; p=${PACKAGE-default} michael@0: case $enableval in michael@0: yes) enable_shared=yes ;; michael@0: no) enable_shared=no ;; michael@0: *) michael@0: enable_shared=no michael@0: # Look at the argument we got. We use all the common list separators. michael@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," michael@0: for pkg in $enableval; do michael@0: IFS="$lt_save_ifs" michael@0: if test "X$pkg" = "X$p"; then michael@0: enable_shared=yes michael@0: fi michael@0: done michael@0: IFS="$lt_save_ifs" michael@0: ;; michael@0: esac michael@0: else michael@0: enable_shared=yes michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether --enable-static was given. michael@0: if test "${enable_static+set}" = set; then : michael@0: enableval=$enable_static; p=${PACKAGE-default} michael@0: case $enableval in michael@0: yes) enable_static=yes ;; michael@0: no) enable_static=no ;; michael@0: *) michael@0: enable_static=no michael@0: # Look at the argument we got. We use all the common list separators. michael@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," michael@0: for pkg in $enableval; do michael@0: IFS="$lt_save_ifs" michael@0: if test "X$pkg" = "X$p"; then michael@0: enable_static=yes michael@0: fi michael@0: done michael@0: IFS="$lt_save_ifs" michael@0: ;; michael@0: esac michael@0: else michael@0: enable_static=yes michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether --with-pic was given. michael@0: if test "${with_pic+set}" = set; then : michael@0: withval=$with_pic; pic_mode="$withval" michael@0: else michael@0: pic_mode=default michael@0: fi michael@0: michael@0: michael@0: test -z "$pic_mode" && pic_mode=default michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether --enable-fast-install was given. michael@0: if test "${enable_fast_install+set}" = set; then : michael@0: enableval=$enable_fast_install; p=${PACKAGE-default} michael@0: case $enableval in michael@0: yes) enable_fast_install=yes ;; michael@0: no) enable_fast_install=no ;; michael@0: *) michael@0: enable_fast_install=no michael@0: # Look at the argument we got. We use all the common list separators. michael@0: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," michael@0: for pkg in $enableval; do michael@0: IFS="$lt_save_ifs" michael@0: if test "X$pkg" = "X$p"; then michael@0: enable_fast_install=yes michael@0: fi michael@0: done michael@0: IFS="$lt_save_ifs" michael@0: ;; michael@0: esac michael@0: else michael@0: enable_fast_install=yes michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # This can be used to rebuild libtool when needed michael@0: LIBTOOL_DEPS="$ltmain" michael@0: michael@0: # Always use our own libtool. michael@0: LIBTOOL='$(SHELL) $(top_builddir)/libtool' michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: test -z "$LN_S" && LN_S="ln -s" michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: if test -n "${ZSH_VERSION+set}" ; then michael@0: setopt NO_GLOB_SUBST michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 michael@0: $as_echo_n "checking for objdir... " >&6; } michael@0: if test "${lt_cv_objdir+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: rm -f .libs 2>/dev/null michael@0: mkdir .libs 2>/dev/null michael@0: if test -d .libs; then michael@0: lt_cv_objdir=.libs michael@0: else michael@0: # MS-DOS does not allow filenames that begin with a dot. michael@0: lt_cv_objdir=_libs michael@0: fi michael@0: rmdir .libs 2>/dev/null michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 michael@0: $as_echo "$lt_cv_objdir" >&6; } michael@0: objdir=$lt_cv_objdir michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define LT_OBJDIR "$lt_cv_objdir/" michael@0: _ACEOF michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: case $host_os in michael@0: aix3*) michael@0: # AIX sometimes has problems with the GCC collect2 program. For some michael@0: # reason, if we set the COLLECT_NAMES environment variable, the problems michael@0: # vanish in a puff of smoke. michael@0: if test "X${COLLECT_NAMES+set}" != Xset; then michael@0: COLLECT_NAMES= michael@0: export COLLECT_NAMES michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: # Sed substitution that helps us do robust quoting. It backslashifies michael@0: # metacharacters that are still active within double-quoted strings. michael@0: sed_quote_subst='s/\(["`$\\]\)/\\\1/g' michael@0: michael@0: # Same as above, but do not quote variable references. michael@0: double_quote_subst='s/\(["`\\]\)/\\\1/g' michael@0: michael@0: # Sed substitution to delay expansion of an escaped shell variable in a michael@0: # double_quote_subst'ed string. michael@0: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' michael@0: michael@0: # Sed substitution to delay expansion of an escaped single quote. michael@0: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' michael@0: michael@0: # Sed substitution to avoid accidental globbing in evaled expressions michael@0: no_glob_subst='s/\*/\\\*/g' michael@0: michael@0: # Global variables: michael@0: ofile=libtool michael@0: can_build_shared=yes michael@0: michael@0: # All known linkers require a `.a' archive for static linking (except MSVC, michael@0: # which needs '.lib'). michael@0: libext=a michael@0: michael@0: with_gnu_ld="$lt_cv_prog_gnu_ld" michael@0: michael@0: old_CC="$CC" michael@0: old_CFLAGS="$CFLAGS" michael@0: michael@0: # Set sane defaults for various variables michael@0: test -z "$CC" && CC=cc michael@0: test -z "$LTCC" && LTCC=$CC michael@0: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS michael@0: test -z "$LD" && LD=ld michael@0: test -z "$ac_objext" && ac_objext=o michael@0: michael@0: for cc_temp in $compiler""; do michael@0: case $cc_temp in michael@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; michael@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; michael@0: \-*) ;; michael@0: *) break;; michael@0: esac michael@0: done michael@0: cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` michael@0: michael@0: michael@0: # Only perform the check for file, if the check method requires it michael@0: test -z "$MAGIC_CMD" && MAGIC_CMD=file michael@0: case $deplibs_check_method in michael@0: file_magic*) michael@0: if test "$file_magic_cmd" = '$MAGIC_CMD'; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 michael@0: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } michael@0: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $MAGIC_CMD in michael@0: [\\/*] | ?:[\\/]*) michael@0: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: lt_save_MAGIC_CMD="$MAGIC_CMD" michael@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR michael@0: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: IFS="$lt_save_ifs" michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/${ac_tool_prefix}file; then michael@0: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" michael@0: if test -n "$file_magic_test_file"; then michael@0: case $deplibs_check_method in michael@0: "file_magic "*) michael@0: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` michael@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" michael@0: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | michael@0: $EGREP "$file_magic_regex" > /dev/null; then michael@0: : michael@0: else michael@0: cat <<_LT_EOF 1>&2 michael@0: michael@0: *** Warning: the command libtool uses to detect shared libraries, michael@0: *** $file_magic_cmd, produces output that libtool cannot recognize. michael@0: *** The result is that libtool may fail to recognize shared libraries michael@0: *** as such. This will affect the creation of libtool libraries that michael@0: *** depend on shared libraries, but programs linked with such libtool michael@0: *** libraries will work regardless of this problem. Nevertheless, you michael@0: *** may want to report the problem to your system manager and/or to michael@0: *** bug-libtool@gnu.org michael@0: michael@0: _LT_EOF michael@0: fi ;; michael@0: esac michael@0: fi michael@0: break michael@0: fi michael@0: done michael@0: IFS="$lt_save_ifs" michael@0: MAGIC_CMD="$lt_save_MAGIC_CMD" michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" michael@0: if test -n "$MAGIC_CMD"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 michael@0: $as_echo "$MAGIC_CMD" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: if test -z "$lt_cv_path_MAGIC_CMD"; then michael@0: if test -n "$ac_tool_prefix"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 michael@0: $as_echo_n "checking for file... " >&6; } michael@0: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $MAGIC_CMD in michael@0: [\\/*] | ?:[\\/]*) michael@0: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: lt_save_MAGIC_CMD="$MAGIC_CMD" michael@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR michael@0: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: IFS="$lt_save_ifs" michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/file; then michael@0: lt_cv_path_MAGIC_CMD="$ac_dir/file" michael@0: if test -n "$file_magic_test_file"; then michael@0: case $deplibs_check_method in michael@0: "file_magic "*) michael@0: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` michael@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" michael@0: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | michael@0: $EGREP "$file_magic_regex" > /dev/null; then michael@0: : michael@0: else michael@0: cat <<_LT_EOF 1>&2 michael@0: michael@0: *** Warning: the command libtool uses to detect shared libraries, michael@0: *** $file_magic_cmd, produces output that libtool cannot recognize. michael@0: *** The result is that libtool may fail to recognize shared libraries michael@0: *** as such. This will affect the creation of libtool libraries that michael@0: *** depend on shared libraries, but programs linked with such libtool michael@0: *** libraries will work regardless of this problem. Nevertheless, you michael@0: *** may want to report the problem to your system manager and/or to michael@0: *** bug-libtool@gnu.org michael@0: michael@0: _LT_EOF michael@0: fi ;; michael@0: esac michael@0: fi michael@0: break michael@0: fi michael@0: done michael@0: IFS="$lt_save_ifs" michael@0: MAGIC_CMD="$lt_save_MAGIC_CMD" michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" michael@0: if test -n "$MAGIC_CMD"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 michael@0: $as_echo "$MAGIC_CMD" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: else michael@0: MAGIC_CMD=: michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: # Use C for the default configuration in the libtool script michael@0: michael@0: lt_save_CC="$CC" michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: # Source file extension for C test sources. michael@0: ac_ext=c michael@0: michael@0: # Object file extension for compiled C test sources. michael@0: objext=o michael@0: objext=$objext michael@0: michael@0: # Code to be used in simple compile tests michael@0: lt_simple_compile_test_code="int some_variable = 0;" michael@0: michael@0: # Code to be used in simple link tests michael@0: lt_simple_link_test_code='int main(){return(0);}' michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # If no C compiler was specified, use CC. michael@0: LTCC=${LTCC-"$CC"} michael@0: michael@0: # If no C compiler flags were specified, use CFLAGS. michael@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} michael@0: michael@0: # Allow CC to be a program name with arguments. michael@0: compiler=$CC michael@0: michael@0: # Save the default compiler, since it gets overwritten when the other michael@0: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. michael@0: compiler_DEFAULT=$CC michael@0: michael@0: # save warnings/boilerplate of simple test code michael@0: ac_outfile=conftest.$ac_objext michael@0: echo "$lt_simple_compile_test_code" >conftest.$ac_ext michael@0: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err michael@0: _lt_compiler_boilerplate=`cat conftest.err` michael@0: $RM conftest* michael@0: michael@0: ac_outfile=conftest.$ac_objext michael@0: echo "$lt_simple_link_test_code" >conftest.$ac_ext michael@0: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err michael@0: _lt_linker_boilerplate=`cat conftest.err` michael@0: $RM -r conftest* michael@0: michael@0: michael@0: ## CAVEAT EMPTOR: michael@0: ## There is no encapsulation within the following macros, do not change michael@0: ## the running order or otherwise move them around unless you know exactly michael@0: ## what you are doing... michael@0: if test -n "$compiler"; then michael@0: michael@0: lt_prog_compiler_no_builtin_flag= michael@0: michael@0: if test "$GCC" = yes; then michael@0: lt_prog_compiler_no_builtin_flag=' -fno-builtin' michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 michael@0: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } michael@0: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_rtti_exceptions=no michael@0: ac_outfile=conftest.$ac_objext michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: lt_compiler_flag="-fno-rtti -fno-exceptions" michael@0: # Insert the option either (1) after the last *FLAGS variable, or michael@0: # (2) before a word containing "conftest.", or (3) at the end. michael@0: # Note that $ac_compile itself does not contain backslashes and begins michael@0: # with a dollar sign (not a hyphen), so the echo should work correctly. michael@0: # The option is referenced via a variable to avoid confusing sed. michael@0: lt_compile=`echo "$ac_compile" | $SED \ michael@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ michael@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ michael@0: -e 's:$: $lt_compiler_flag:'` michael@0: (eval echo "\"\$as_me:8664: $lt_compile\"" >&5) michael@0: (eval "$lt_compile" 2>conftest.err) michael@0: ac_status=$? michael@0: cat conftest.err >&5 michael@0: echo "$as_me:8668: \$? = $ac_status" >&5 michael@0: if (exit $ac_status) && test -s "$ac_outfile"; then michael@0: # The compiler can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings other than the usual output. michael@0: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp michael@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 michael@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_rtti_exceptions=yes michael@0: fi michael@0: fi michael@0: $RM conftest* michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } michael@0: michael@0: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then michael@0: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" michael@0: else michael@0: : michael@0: fi michael@0: michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: lt_prog_compiler_wl= michael@0: lt_prog_compiler_pic= michael@0: lt_prog_compiler_static= michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 michael@0: $as_echo_n "checking for $compiler option to produce PIC... " >&6; } michael@0: michael@0: if test "$GCC" = yes; then michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_static='-static' michael@0: michael@0: case $host_os in michael@0: aix*) michael@0: # All AIX code is PIC. michael@0: if test "$host_cpu" = ia64; then michael@0: # AIX 5 now supports IA64 processor michael@0: lt_prog_compiler_static='-Bstatic' michael@0: fi michael@0: ;; michael@0: michael@0: amigaos*) michael@0: case $host_cpu in michael@0: powerpc) michael@0: # see comment about AmigaOS4 .so support michael@0: lt_prog_compiler_pic='-fPIC' michael@0: ;; michael@0: m68k) michael@0: # FIXME: we need at least 68020 code to build shared libraries, but michael@0: # adding the `-m68020' flag to GCC prevents building anything better, michael@0: # like `-m68040'. michael@0: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) michael@0: # PIC is the default for these OSes. michael@0: ;; michael@0: michael@0: mingw* | cygwin* | pw32* | os2* | cegcc*) michael@0: # This hack is so that the source file can tell whether it is being michael@0: # built for inclusion in a dll (and should export symbols for example). michael@0: # Although the cygwin gcc ignores -fPIC, still need this for old-style michael@0: # (--disable-auto-import) libraries michael@0: lt_prog_compiler_pic='-DDLL_EXPORT' michael@0: ;; michael@0: michael@0: darwin* | rhapsody*) michael@0: # PIC is the default on this platform michael@0: # Common symbols not allowed in MH_DYLIB files michael@0: lt_prog_compiler_pic='-fno-common' michael@0: ;; michael@0: michael@0: hpux*) michael@0: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit michael@0: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag michael@0: # sets the default TLS model and affects inlining. michael@0: case $host_cpu in michael@0: hppa*64*) michael@0: # +Z the default michael@0: ;; michael@0: *) michael@0: lt_prog_compiler_pic='-fPIC' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: interix[3-9]*) michael@0: # Interix 3.x gcc -fpic/-fPIC options generate broken code. michael@0: # Instead, we relocate shared libraries at runtime. michael@0: ;; michael@0: michael@0: msdosdjgpp*) michael@0: # Just because we use GCC doesn't mean we suddenly get shared libraries michael@0: # on systems that don't support them. michael@0: lt_prog_compiler_can_build_shared=no michael@0: enable_shared=no michael@0: ;; michael@0: michael@0: *nto* | *qnx*) michael@0: # QNX uses GNU C++, but need to define -shared option too, otherwise michael@0: # it will coredump. michael@0: lt_prog_compiler_pic='-fPIC -shared' michael@0: ;; michael@0: michael@0: sysv4*MP*) michael@0: if test -d /usr/nec; then michael@0: lt_prog_compiler_pic=-Kconform_pic michael@0: fi michael@0: ;; michael@0: michael@0: *) michael@0: lt_prog_compiler_pic='-fPIC' michael@0: ;; michael@0: esac michael@0: else michael@0: # PORTME Check for flag to pass linker flags through the system compiler. michael@0: case $host_os in michael@0: aix*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: if test "$host_cpu" = ia64; then michael@0: # AIX 5 now supports IA64 processor michael@0: lt_prog_compiler_static='-Bstatic' michael@0: else michael@0: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' michael@0: fi michael@0: ;; michael@0: michael@0: mingw* | cygwin* | pw32* | os2* | cegcc*) michael@0: # This hack is so that the source file can tell whether it is being michael@0: # built for inclusion in a dll (and should export symbols for example). michael@0: lt_prog_compiler_pic='-DDLL_EXPORT' michael@0: ;; michael@0: michael@0: hpux9* | hpux10* | hpux11*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but michael@0: # not for PA HP-UX. michael@0: case $host_cpu in michael@0: hppa*64*|ia64*) michael@0: # +Z the default michael@0: ;; michael@0: *) michael@0: lt_prog_compiler_pic='+Z' michael@0: ;; michael@0: esac michael@0: # Is there a better lt_prog_compiler_static that works with the bundled CC? michael@0: lt_prog_compiler_static='${wl}-a ${wl}archive' michael@0: ;; michael@0: michael@0: irix5* | irix6* | nonstopux*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: # PIC (with -KPIC) is the default. michael@0: lt_prog_compiler_static='-non_shared' michael@0: ;; michael@0: michael@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) michael@0: case $cc_basename in michael@0: # old Intel for x86_64 which still supported -KPIC. michael@0: ecc*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_pic='-KPIC' michael@0: lt_prog_compiler_static='-static' michael@0: ;; michael@0: # icc used to be incompatible with GCC. michael@0: # ICC 10 doesn't accept -KPIC any more. michael@0: icc* | ifort*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_pic='-fPIC' michael@0: lt_prog_compiler_static='-static' michael@0: ;; michael@0: # Lahey Fortran 8.1. michael@0: lf95*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_pic='--shared' michael@0: lt_prog_compiler_static='--static' michael@0: ;; michael@0: pgcc* | pgf77* | pgf90* | pgf95*) michael@0: # Portland Group compilers (*not* the Pentium gcc compiler, michael@0: # which looks to be a dead project) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_pic='-fpic' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: ;; michael@0: ccc*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: # All Alpha code is PIC. michael@0: lt_prog_compiler_static='-non_shared' michael@0: ;; michael@0: xl*) michael@0: # IBM XL C 8.0/Fortran 10.1 on PPC michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_pic='-qpic' michael@0: lt_prog_compiler_static='-qstaticlink' michael@0: ;; michael@0: *) michael@0: case `$CC -V 2>&1 | sed 5q` in michael@0: *Sun\ C*) michael@0: # Sun C 5.9 michael@0: lt_prog_compiler_pic='-KPIC' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: lt_prog_compiler_wl='-Wl,' michael@0: ;; michael@0: *Sun\ F*) michael@0: # Sun Fortran 8.3 passes all unrecognized flags to the linker michael@0: lt_prog_compiler_pic='-KPIC' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: lt_prog_compiler_wl='' michael@0: ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: newsos6) michael@0: lt_prog_compiler_pic='-KPIC' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: ;; michael@0: michael@0: *nto* | *qnx*) michael@0: # QNX uses GNU C++, but need to define -shared option too, otherwise michael@0: # it will coredump. michael@0: lt_prog_compiler_pic='-fPIC -shared' michael@0: ;; michael@0: michael@0: osf3* | osf4* | osf5*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: # All OSF/1 code is PIC. michael@0: lt_prog_compiler_static='-non_shared' michael@0: ;; michael@0: michael@0: rdos*) michael@0: lt_prog_compiler_static='-non_shared' michael@0: ;; michael@0: michael@0: solaris*) michael@0: lt_prog_compiler_pic='-KPIC' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: case $cc_basename in michael@0: f77* | f90* | f95*) michael@0: lt_prog_compiler_wl='-Qoption ld ';; michael@0: *) michael@0: lt_prog_compiler_wl='-Wl,';; michael@0: esac michael@0: ;; michael@0: michael@0: sunos4*) michael@0: lt_prog_compiler_wl='-Qoption ld ' michael@0: lt_prog_compiler_pic='-PIC' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: ;; michael@0: michael@0: sysv4 | sysv4.2uw2* | sysv4.3*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_pic='-KPIC' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: ;; michael@0: michael@0: sysv4*MP*) michael@0: if test -d /usr/nec ;then michael@0: lt_prog_compiler_pic='-Kconform_pic' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: fi michael@0: ;; michael@0: michael@0: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_pic='-KPIC' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: ;; michael@0: michael@0: unicos*) michael@0: lt_prog_compiler_wl='-Wl,' michael@0: lt_prog_compiler_can_build_shared=no michael@0: ;; michael@0: michael@0: uts4*) michael@0: lt_prog_compiler_pic='-pic' michael@0: lt_prog_compiler_static='-Bstatic' michael@0: ;; michael@0: michael@0: *) michael@0: lt_prog_compiler_can_build_shared=no michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: case $host_os in michael@0: # For platforms which do not support PIC, -DPIC is meaningless: michael@0: *djgpp*) michael@0: lt_prog_compiler_pic= michael@0: ;; michael@0: *) michael@0: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" michael@0: ;; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 michael@0: $as_echo "$lt_prog_compiler_pic" >&6; } michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # michael@0: # Check to make sure the PIC flag actually works. michael@0: # michael@0: if test -n "$lt_prog_compiler_pic"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 michael@0: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } michael@0: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_pic_works=no michael@0: ac_outfile=conftest.$ac_objext michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" michael@0: # Insert the option either (1) after the last *FLAGS variable, or michael@0: # (2) before a word containing "conftest.", or (3) at the end. michael@0: # Note that $ac_compile itself does not contain backslashes and begins michael@0: # with a dollar sign (not a hyphen), so the echo should work correctly. michael@0: # The option is referenced via a variable to avoid confusing sed. michael@0: lt_compile=`echo "$ac_compile" | $SED \ michael@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ michael@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ michael@0: -e 's:$: $lt_compiler_flag:'` michael@0: (eval echo "\"\$as_me:9003: $lt_compile\"" >&5) michael@0: (eval "$lt_compile" 2>conftest.err) michael@0: ac_status=$? michael@0: cat conftest.err >&5 michael@0: echo "$as_me:9007: \$? = $ac_status" >&5 michael@0: if (exit $ac_status) && test -s "$ac_outfile"; then michael@0: # The compiler can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings other than the usual output. michael@0: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp michael@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 michael@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_pic_works=yes michael@0: fi michael@0: fi michael@0: $RM conftest* michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } michael@0: michael@0: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then michael@0: case $lt_prog_compiler_pic in michael@0: "" | " "*) ;; michael@0: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; michael@0: esac michael@0: else michael@0: lt_prog_compiler_pic= michael@0: lt_prog_compiler_can_build_shared=no michael@0: fi michael@0: michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # michael@0: # Check to make sure the static flag actually works. michael@0: # michael@0: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 michael@0: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } michael@0: if test "${lt_cv_prog_compiler_static_works+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_static_works=no michael@0: save_LDFLAGS="$LDFLAGS" michael@0: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" michael@0: echo "$lt_simple_link_test_code" > conftest.$ac_ext michael@0: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then michael@0: # The linker can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings michael@0: if test -s conftest.err; then michael@0: # Append any errors to the config.log. michael@0: cat conftest.err 1>&5 michael@0: $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp michael@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 michael@0: if diff conftest.exp conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_static_works=yes michael@0: fi michael@0: else michael@0: lt_cv_prog_compiler_static_works=yes michael@0: fi michael@0: fi michael@0: $RM -r conftest* michael@0: LDFLAGS="$save_LDFLAGS" michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_static_works" >&6; } michael@0: michael@0: if test x"$lt_cv_prog_compiler_static_works" = xyes; then michael@0: : michael@0: else michael@0: lt_prog_compiler_static= michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 michael@0: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } michael@0: if test "${lt_cv_prog_compiler_c_o+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_c_o=no michael@0: $RM -r conftest 2>/dev/null michael@0: mkdir conftest michael@0: cd conftest michael@0: mkdir out michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: michael@0: lt_compiler_flag="-o out/conftest2.$ac_objext" michael@0: # Insert the option either (1) after the last *FLAGS variable, or michael@0: # (2) before a word containing "conftest.", or (3) at the end. michael@0: # Note that $ac_compile itself does not contain backslashes and begins michael@0: # with a dollar sign (not a hyphen), so the echo should work correctly. michael@0: lt_compile=`echo "$ac_compile" | $SED \ michael@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ michael@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ michael@0: -e 's:$: $lt_compiler_flag:'` michael@0: (eval echo "\"\$as_me:9108: $lt_compile\"" >&5) michael@0: (eval "$lt_compile" 2>out/conftest.err) michael@0: ac_status=$? michael@0: cat out/conftest.err >&5 michael@0: echo "$as_me:9112: \$? = $ac_status" >&5 michael@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext michael@0: then michael@0: # The compiler can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings michael@0: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp michael@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 michael@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_c_o=yes michael@0: fi michael@0: fi michael@0: chmod u+w . 2>&5 michael@0: $RM conftest* michael@0: # SGI C++ compiler will create directory out/ii_files/ for michael@0: # template instantiation michael@0: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files michael@0: $RM out/* && rmdir out michael@0: cd .. michael@0: $RM -r conftest michael@0: $RM conftest* michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 michael@0: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } michael@0: if test "${lt_cv_prog_compiler_c_o+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_c_o=no michael@0: $RM -r conftest 2>/dev/null michael@0: mkdir conftest michael@0: cd conftest michael@0: mkdir out michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: michael@0: lt_compiler_flag="-o out/conftest2.$ac_objext" michael@0: # Insert the option either (1) after the last *FLAGS variable, or michael@0: # (2) before a word containing "conftest.", or (3) at the end. michael@0: # Note that $ac_compile itself does not contain backslashes and begins michael@0: # with a dollar sign (not a hyphen), so the echo should work correctly. michael@0: lt_compile=`echo "$ac_compile" | $SED \ michael@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ michael@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ michael@0: -e 's:$: $lt_compiler_flag:'` michael@0: (eval echo "\"\$as_me:9163: $lt_compile\"" >&5) michael@0: (eval "$lt_compile" 2>out/conftest.err) michael@0: ac_status=$? michael@0: cat out/conftest.err >&5 michael@0: echo "$as_me:9167: \$? = $ac_status" >&5 michael@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext michael@0: then michael@0: # The compiler can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings michael@0: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp michael@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 michael@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_c_o=yes michael@0: fi michael@0: fi michael@0: chmod u+w . 2>&5 michael@0: $RM conftest* michael@0: # SGI C++ compiler will create directory out/ii_files/ for michael@0: # template instantiation michael@0: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files michael@0: $RM out/* && rmdir out michael@0: cd .. michael@0: $RM -r conftest michael@0: $RM conftest* michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } michael@0: michael@0: michael@0: michael@0: michael@0: hard_links="nottested" michael@0: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then michael@0: # do not overwrite the value of need_locks provided by the user michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 michael@0: $as_echo_n "checking if we can lock with hard links... " >&6; } michael@0: hard_links=yes michael@0: $RM conftest* michael@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no michael@0: touch conftest.a michael@0: ln conftest.a conftest.b 2>&5 || hard_links=no michael@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 michael@0: $as_echo "$hard_links" >&6; } michael@0: if test "$hard_links" = no; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 michael@0: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} michael@0: need_locks=warn michael@0: fi michael@0: else michael@0: need_locks=no michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 michael@0: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } michael@0: michael@0: runpath_var= michael@0: allow_undefined_flag= michael@0: always_export_symbols=no michael@0: archive_cmds= michael@0: archive_expsym_cmds= michael@0: compiler_needs_object=no michael@0: enable_shared_with_static_runtimes=no michael@0: export_dynamic_flag_spec= michael@0: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' michael@0: hardcode_automatic=no michael@0: hardcode_direct=no michael@0: hardcode_direct_absolute=no michael@0: hardcode_libdir_flag_spec= michael@0: hardcode_libdir_flag_spec_ld= michael@0: hardcode_libdir_separator= michael@0: hardcode_minus_L=no michael@0: hardcode_shlibpath_var=unsupported michael@0: inherit_rpath=no michael@0: link_all_deplibs=unknown michael@0: module_cmds= michael@0: module_expsym_cmds= michael@0: old_archive_from_new_cmds= michael@0: old_archive_from_expsyms_cmds= michael@0: thread_safe_flag_spec= michael@0: whole_archive_flag_spec= michael@0: # include_expsyms should be a list of space-separated symbols to be *always* michael@0: # included in the symbol list michael@0: include_expsyms= michael@0: # exclude_expsyms can be an extended regexp of symbols to exclude michael@0: # it will be wrapped by ` (' and `)$', so one must not match beginning or michael@0: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', michael@0: # as well as any symbol that contains `d'. michael@0: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' michael@0: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out michael@0: # platforms (ab)use it in PIC code, but their linkers get confused if michael@0: # the symbol is explicitly referenced. Since portable code cannot michael@0: # rely on this symbol name, it's probably fine to never include it in michael@0: # preloaded symbol tables. michael@0: # Exclude shared library initialization/finalization symbols. michael@0: extract_expsyms_cmds= michael@0: michael@0: case $host_os in michael@0: cygwin* | mingw* | pw32* | cegcc*) michael@0: # FIXME: the MSVC++ port hasn't been tested in a loooong time michael@0: # When not using gcc, we currently assume that we are using michael@0: # Microsoft Visual C++. michael@0: if test "$GCC" != yes; then michael@0: with_gnu_ld=no michael@0: fi michael@0: ;; michael@0: interix*) michael@0: # we just hope/assume this is gcc and not c89 (= MSVC++) michael@0: with_gnu_ld=yes michael@0: ;; michael@0: openbsd*) michael@0: with_gnu_ld=no michael@0: ;; michael@0: linux* | k*bsd*-gnu) michael@0: link_all_deplibs=no michael@0: ;; michael@0: esac michael@0: michael@0: ld_shlibs=yes michael@0: if test "$with_gnu_ld" = yes; then michael@0: # If archive_cmds runs LD, not CC, wlarc should be empty michael@0: wlarc='${wl}' michael@0: michael@0: # Set some defaults for GNU ld with shared library support. These michael@0: # are reset later if shared libraries are not supported. Putting them michael@0: # here allows them to be overridden if necessary. michael@0: runpath_var=LD_RUN_PATH michael@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' michael@0: export_dynamic_flag_spec='${wl}--export-dynamic' michael@0: # ancient GNU ld didn't support --whole-archive et. al. michael@0: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then michael@0: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' michael@0: else michael@0: whole_archive_flag_spec= michael@0: fi michael@0: supports_anon_versioning=no michael@0: case `$LD -v 2>&1` in michael@0: *GNU\ gold*) supports_anon_versioning=yes ;; michael@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 michael@0: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... michael@0: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... michael@0: *\ 2.11.*) ;; # other 2.11 versions michael@0: *) supports_anon_versioning=yes ;; michael@0: esac michael@0: michael@0: # See if GNU ld supports shared libraries. michael@0: case $host_os in michael@0: aix[3-9]*) michael@0: # On AIX/PPC, the GNU linker is very broken michael@0: if test "$host_cpu" != ia64; then michael@0: ld_shlibs=no michael@0: cat <<_LT_EOF 1>&2 michael@0: michael@0: *** Warning: the GNU linker, at least up to release 2.9.1, is reported michael@0: *** to be unable to reliably create shared libraries on AIX. michael@0: *** Therefore, libtool is disabling shared libraries support. If you michael@0: *** really care for shared libraries, you may want to modify your PATH michael@0: *** so that a non-GNU linker is found, and then restart. michael@0: michael@0: _LT_EOF michael@0: fi michael@0: ;; michael@0: michael@0: amigaos*) michael@0: case $host_cpu in michael@0: powerpc) michael@0: # see comment about AmigaOS4 .so support michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds='' michael@0: ;; michael@0: m68k) michael@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)' michael@0: hardcode_libdir_flag_spec='-L$libdir' michael@0: hardcode_minus_L=yes michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: beos*) michael@0: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then michael@0: allow_undefined_flag=unsupported michael@0: # Joseph Beckenbach says some releases of gcc michael@0: # support --undefined. This deserves some investigation. FIXME michael@0: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: else michael@0: ld_shlibs=no michael@0: fi michael@0: ;; michael@0: michael@0: cygwin* | mingw* | pw32* | cegcc*) michael@0: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, michael@0: # as there is no search path for DLLs. michael@0: hardcode_libdir_flag_spec='-L$libdir' michael@0: allow_undefined_flag=unsupported michael@0: always_export_symbols=no michael@0: enable_shared_with_static_runtimes=yes michael@0: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' michael@0: michael@0: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' michael@0: # If the export-symbols file already is a .def file (1st line michael@0: # is EXPORTS), use it as is; otherwise, prepend... michael@0: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then michael@0: cp $export_symbols $output_objdir/$soname.def; michael@0: else michael@0: echo EXPORTS > $output_objdir/$soname.def; michael@0: cat $export_symbols >> $output_objdir/$soname.def; michael@0: fi~ michael@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' michael@0: else michael@0: ld_shlibs=no michael@0: fi michael@0: ;; michael@0: michael@0: interix[3-9]*) michael@0: hardcode_direct=no michael@0: hardcode_shlibpath_var=no michael@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' michael@0: export_dynamic_flag_spec='${wl}-E' michael@0: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. michael@0: # Instead, shared libraries are loaded at an image base (0x10000000 by michael@0: # default) and relocated if they conflict, which is a slow very memory michael@0: # consuming and fragmenting process. To avoid this, we pick a random, michael@0: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link michael@0: # time. Moving up from 0x10000000 also allows more sbrk(2) space. michael@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' michael@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' michael@0: ;; michael@0: michael@0: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) michael@0: tmp_diet=no michael@0: if test "$host_os" = linux-dietlibc; then michael@0: case $cc_basename in michael@0: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) michael@0: esac michael@0: fi michael@0: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ michael@0: && test "$tmp_diet" = no michael@0: then michael@0: tmp_addflag= michael@0: tmp_sharedflag='-shared' michael@0: case $cc_basename,$host_cpu in michael@0: pgcc*) # Portland Group C compiler michael@0: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' michael@0: tmp_addflag=' $pic_flag' michael@0: ;; michael@0: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers michael@0: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' michael@0: tmp_addflag=' $pic_flag -Mnomain' ;; michael@0: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 michael@0: tmp_addflag=' -i_dynamic' ;; michael@0: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 michael@0: tmp_addflag=' -i_dynamic -nofor_main' ;; michael@0: ifc* | ifort*) # Intel Fortran compiler michael@0: tmp_addflag=' -nofor_main' ;; michael@0: lf95*) # Lahey Fortran 8.1 michael@0: whole_archive_flag_spec= michael@0: tmp_sharedflag='--shared' ;; michael@0: xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) michael@0: tmp_sharedflag='-qmkshrobj' michael@0: tmp_addflag= ;; michael@0: esac michael@0: case `$CC -V 2>&1 | sed 5q` in michael@0: *Sun\ C*) # Sun C 5.9 michael@0: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' michael@0: compiler_needs_object=yes michael@0: tmp_sharedflag='-G' ;; michael@0: *Sun\ F*) # Sun Fortran 8.3 michael@0: tmp_sharedflag='-G' ;; michael@0: esac michael@0: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: michael@0: if test "x$supports_anon_versioning" = xyes; then michael@0: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ michael@0: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ michael@0: echo "local: *; };" >> $output_objdir/$libname.ver~ michael@0: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' michael@0: fi michael@0: michael@0: case $cc_basename in michael@0: xlf*) michael@0: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself michael@0: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' michael@0: hardcode_libdir_flag_spec= michael@0: hardcode_libdir_flag_spec_ld='-rpath $libdir' michael@0: archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' michael@0: if test "x$supports_anon_versioning" = xyes; then michael@0: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ michael@0: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ michael@0: echo "local: *; };" >> $output_objdir/$libname.ver~ michael@0: $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' michael@0: fi michael@0: ;; michael@0: esac michael@0: else michael@0: ld_shlibs=no michael@0: fi michael@0: ;; michael@0: michael@0: netbsd* | netbsdelf*-gnu) michael@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then michael@0: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' michael@0: wlarc= michael@0: else michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' michael@0: fi michael@0: ;; michael@0: michael@0: solaris*) michael@0: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then michael@0: ld_shlibs=no michael@0: cat <<_LT_EOF 1>&2 michael@0: michael@0: *** Warning: The releases 2.8.* of the GNU linker cannot reliably michael@0: *** create shared libraries on Solaris systems. Therefore, libtool michael@0: *** is disabling shared libraries support. We urge you to upgrade GNU michael@0: *** binutils to release 2.9.1 or newer. Another option is to modify michael@0: *** your PATH or compiler configuration so that the native linker is michael@0: *** used, and then restart. michael@0: michael@0: _LT_EOF michael@0: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' michael@0: else michael@0: ld_shlibs=no michael@0: fi michael@0: ;; michael@0: michael@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) michael@0: case `$LD -v 2>&1` in michael@0: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) michael@0: ld_shlibs=no michael@0: cat <<_LT_EOF 1>&2 michael@0: michael@0: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not michael@0: *** reliably create shared libraries on SCO systems. Therefore, libtool michael@0: *** is disabling shared libraries support. We urge you to upgrade GNU michael@0: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify michael@0: *** your PATH or compiler configuration so that the native linker is michael@0: *** used, and then restart. michael@0: michael@0: _LT_EOF michael@0: ;; michael@0: *) michael@0: # For security reasons, it is highly recommended that you always michael@0: # use absolute paths for naming shared libraries, and exclude the michael@0: # DT_RUNPATH tag from executables and libraries. But doing so michael@0: # requires that you compile everything twice, which is a pain. michael@0: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then michael@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' michael@0: else michael@0: ld_shlibs=no michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: sunos4*) michael@0: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' michael@0: wlarc= michael@0: hardcode_direct=yes michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: *) michael@0: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' michael@0: else michael@0: ld_shlibs=no michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: if test "$ld_shlibs" = no; then michael@0: runpath_var= michael@0: hardcode_libdir_flag_spec= michael@0: export_dynamic_flag_spec= michael@0: whole_archive_flag_spec= michael@0: fi michael@0: else michael@0: # PORTME fill in a description of your system's linker (not GNU ld) michael@0: case $host_os in michael@0: aix3*) michael@0: allow_undefined_flag=unsupported michael@0: always_export_symbols=yes michael@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' michael@0: # Note: this linker hardcodes the directories in LIBPATH if there michael@0: # are no directories specified by -L. michael@0: hardcode_minus_L=yes michael@0: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then michael@0: # Neither direct hardcoding nor static linking is supported with a michael@0: # broken collect2. michael@0: hardcode_direct=unsupported michael@0: fi michael@0: ;; michael@0: michael@0: aix[4-9]*) michael@0: if test "$host_cpu" = ia64; then michael@0: # On IA64, the linker does run time linking by default, so we don't michael@0: # have to do anything special. michael@0: aix_use_runtimelinking=no michael@0: exp_sym_flag='-Bexport' michael@0: no_entry_flag="" michael@0: else michael@0: # If we're using GNU nm, then we don't want the "-C" option. michael@0: # -C means demangle to AIX nm, but means don't demangle with GNU nm michael@0: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then michael@0: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' michael@0: else michael@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' michael@0: fi michael@0: aix_use_runtimelinking=no michael@0: michael@0: # Test if we are trying to use run time linking or normal michael@0: # AIX style linking. If -brtl is somewhere in LDFLAGS, we michael@0: # need to do runtime linking. michael@0: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) michael@0: for ld_flag in $LDFLAGS; do michael@0: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then michael@0: aix_use_runtimelinking=yes michael@0: break michael@0: fi michael@0: done michael@0: ;; michael@0: esac michael@0: michael@0: exp_sym_flag='-bexport' michael@0: no_entry_flag='-bnoentry' michael@0: fi michael@0: michael@0: # When large executables or shared objects are built, AIX ld can michael@0: # have problems creating the table of contents. If linking a library michael@0: # or program results in "error TOC overflow" add -mminimal-toc to michael@0: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not michael@0: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. michael@0: michael@0: archive_cmds='' michael@0: hardcode_direct=yes michael@0: hardcode_direct_absolute=yes michael@0: hardcode_libdir_separator=':' michael@0: link_all_deplibs=yes michael@0: file_list_spec='${wl}-f,' michael@0: michael@0: if test "$GCC" = yes; then michael@0: case $host_os in aix4.[012]|aix4.[012].*) michael@0: # We only want to do this on AIX 4.2 and lower, the check michael@0: # below for broken collect2 doesn't work under 4.3+ michael@0: collect2name=`${CC} -print-prog-name=collect2` michael@0: if test -f "$collect2name" && michael@0: strings "$collect2name" | $GREP resolve_lib_name >/dev/null michael@0: then michael@0: # We have reworked collect2 michael@0: : michael@0: else michael@0: # We have old collect2 michael@0: hardcode_direct=unsupported michael@0: # It fails to find uninstalled libraries when the uninstalled michael@0: # path is not listed in the libpath. Setting hardcode_minus_L michael@0: # to unsupported forces relinking michael@0: hardcode_minus_L=yes michael@0: hardcode_libdir_flag_spec='-L$libdir' michael@0: hardcode_libdir_separator= michael@0: fi michael@0: ;; michael@0: esac michael@0: shared_flag='-shared' michael@0: if test "$aix_use_runtimelinking" = yes; then michael@0: shared_flag="$shared_flag "'${wl}-G' michael@0: fi michael@0: link_all_deplibs=no michael@0: else michael@0: # not using gcc michael@0: if test "$host_cpu" = ia64; then michael@0: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release michael@0: # chokes on -Wl,-G. The following line is correct: michael@0: shared_flag='-G' michael@0: else michael@0: if test "$aix_use_runtimelinking" = yes; then michael@0: shared_flag='${wl}-G' michael@0: else michael@0: shared_flag='${wl}-bM:SRE' michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: export_dynamic_flag_spec='${wl}-bexpall' michael@0: # It seems that -bexpall does not export symbols beginning with michael@0: # underscore (_), so it is better to generate a list of symbols to export. michael@0: always_export_symbols=yes michael@0: if test "$aix_use_runtimelinking" = yes; then michael@0: # Warning - without using the other runtime loading flags (-brtl), michael@0: # -berok will link without error, but may produce a broken library. michael@0: allow_undefined_flag='-berok' michael@0: # Determine the default libpath from the value encoded in an michael@0: # empty executable. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: michael@0: lt_aix_libpath_sed=' michael@0: /Import File Strings/,/^$/ { michael@0: /^0/ { michael@0: s/^0 *\(.*\)$/\1/ michael@0: p michael@0: } michael@0: }' michael@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` michael@0: # Check for a 64-bit object if we didn't find anything. michael@0: if test -z "$aix_libpath"; then michael@0: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` michael@0: fi michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi michael@0: michael@0: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" michael@0: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" michael@0: else michael@0: if test "$host_cpu" = ia64; then michael@0: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' michael@0: allow_undefined_flag="-z nodefs" michael@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" michael@0: else michael@0: # Determine the default libpath from the value encoded in an michael@0: # empty executable. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: michael@0: lt_aix_libpath_sed=' michael@0: /Import File Strings/,/^$/ { michael@0: /^0/ { michael@0: s/^0 *\(.*\)$/\1/ michael@0: p michael@0: } michael@0: }' michael@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` michael@0: # Check for a 64-bit object if we didn't find anything. michael@0: if test -z "$aix_libpath"; then michael@0: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` michael@0: fi michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi michael@0: michael@0: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" michael@0: # Warning - without using the other run time loading flags, michael@0: # -berok will link without error, but may produce a broken library. michael@0: no_undefined_flag=' ${wl}-bernotok' michael@0: allow_undefined_flag=' ${wl}-berok' michael@0: # Exported symbols can be pulled into shared objects from archives michael@0: whole_archive_flag_spec='$convenience' michael@0: archive_cmds_need_lc=yes michael@0: # This is similar to how AIX traditionally builds its shared libraries. michael@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' michael@0: fi michael@0: fi michael@0: ;; michael@0: michael@0: amigaos*) michael@0: case $host_cpu in michael@0: powerpc) michael@0: # see comment about AmigaOS4 .so support michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds='' michael@0: ;; michael@0: m68k) michael@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)' michael@0: hardcode_libdir_flag_spec='-L$libdir' michael@0: hardcode_minus_L=yes michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: bsdi[45]*) michael@0: export_dynamic_flag_spec=-rdynamic michael@0: ;; michael@0: michael@0: cygwin* | mingw* | pw32* | cegcc*) michael@0: # When not using gcc, we currently assume that we are using michael@0: # Microsoft Visual C++. michael@0: # hardcode_libdir_flag_spec is actually meaningless, as there is michael@0: # no search path for DLLs. michael@0: hardcode_libdir_flag_spec=' ' michael@0: allow_undefined_flag=unsupported michael@0: # Tell ltmain to make .lib files, not .a files. michael@0: libext=lib michael@0: # Tell ltmain to make .dll files, not .so files. michael@0: shrext_cmds=".dll" michael@0: # FIXME: Setting linknames here is a bad hack. michael@0: archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' michael@0: # The linker will automatically build a .lib file if we build a DLL. michael@0: old_archive_from_new_cmds='true' michael@0: # FIXME: Should let the user specify the lib program. michael@0: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' michael@0: fix_srcfile_path='`cygpath -w "$srcfile"`' michael@0: enable_shared_with_static_runtimes=yes michael@0: ;; michael@0: michael@0: darwin* | rhapsody*) michael@0: michael@0: michael@0: archive_cmds_need_lc=no michael@0: hardcode_direct=no michael@0: hardcode_automatic=yes michael@0: hardcode_shlibpath_var=unsupported michael@0: whole_archive_flag_spec='' michael@0: link_all_deplibs=yes michael@0: allow_undefined_flag="$_lt_dar_allow_undefined" michael@0: case $cc_basename in michael@0: ifort*) _lt_dar_can_shared=yes ;; michael@0: *) _lt_dar_can_shared=$GCC ;; michael@0: esac michael@0: if test "$_lt_dar_can_shared" = "yes"; then michael@0: output_verbose_link_cmd=echo michael@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}" michael@0: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" michael@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}" michael@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}" michael@0: michael@0: else michael@0: ld_shlibs=no michael@0: fi michael@0: michael@0: ;; michael@0: michael@0: dgux*) michael@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_libdir_flag_spec='-L$libdir' michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: freebsd1*) michael@0: ld_shlibs=no michael@0: ;; michael@0: michael@0: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor michael@0: # support. Future versions do this automatically, but an explicit c++rt0.o michael@0: # does not break anything, and helps significantly (at the cost of a little michael@0: # extra space). michael@0: freebsd2.2*) michael@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' michael@0: hardcode_libdir_flag_spec='-R$libdir' michael@0: hardcode_direct=yes michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: # Unfortunately, older versions of FreeBSD 2 do not have this feature. michael@0: freebsd2*) michael@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_direct=yes michael@0: hardcode_minus_L=yes michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. michael@0: freebsd* | dragonfly*) michael@0: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' michael@0: hardcode_libdir_flag_spec='-R$libdir' michael@0: hardcode_direct=yes michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: hpux9*) michael@0: if test "$GCC" = yes; then michael@0: archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' michael@0: else michael@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' michael@0: fi michael@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' michael@0: hardcode_libdir_separator=: michael@0: hardcode_direct=yes michael@0: michael@0: # hardcode_minus_L: Not really in the search PATH, michael@0: # but as the default location of the library. michael@0: hardcode_minus_L=yes michael@0: export_dynamic_flag_spec='${wl}-E' michael@0: ;; michael@0: michael@0: hpux10*) michael@0: if test "$GCC" = yes -a "$with_gnu_ld" = no; then michael@0: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' michael@0: else michael@0: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' michael@0: fi michael@0: if test "$with_gnu_ld" = no; then michael@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' michael@0: hardcode_libdir_flag_spec_ld='+b $libdir' michael@0: hardcode_libdir_separator=: michael@0: hardcode_direct=yes michael@0: hardcode_direct_absolute=yes michael@0: export_dynamic_flag_spec='${wl}-E' michael@0: # hardcode_minus_L: Not really in the search PATH, michael@0: # but as the default location of the library. michael@0: hardcode_minus_L=yes michael@0: fi michael@0: ;; michael@0: michael@0: hpux11*) michael@0: if test "$GCC" = yes -a "$with_gnu_ld" = no; then michael@0: case $host_cpu in michael@0: hppa*64*) michael@0: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: ia64*) michael@0: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: *) michael@0: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: esac michael@0: else michael@0: case $host_cpu in michael@0: hppa*64*) michael@0: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: ia64*) michael@0: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: *) michael@0: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: esac michael@0: fi michael@0: if test "$with_gnu_ld" = no; then michael@0: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' michael@0: hardcode_libdir_separator=: michael@0: michael@0: case $host_cpu in michael@0: hppa*64*|ia64*) michael@0: hardcode_direct=no michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: *) michael@0: hardcode_direct=yes michael@0: hardcode_direct_absolute=yes michael@0: export_dynamic_flag_spec='${wl}-E' michael@0: michael@0: # hardcode_minus_L: Not really in the search PATH, michael@0: # but as the default location of the library. michael@0: hardcode_minus_L=yes michael@0: ;; michael@0: esac michael@0: fi michael@0: ;; michael@0: michael@0: irix5* | irix6* | nonstopux*) michael@0: if test "$GCC" = yes; then michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' michael@0: # Try to use the -exported_symbol ld option, if it does not michael@0: # work, assume that -exports_file does not work either and michael@0: # implicitly export all symbols. michael@0: save_LDFLAGS="$LDFLAGS" michael@0: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int foo(void) {} michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' michael@0: michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LDFLAGS="$save_LDFLAGS" michael@0: else michael@0: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' michael@0: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' michael@0: fi michael@0: archive_cmds_need_lc='no' michael@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' michael@0: hardcode_libdir_separator=: michael@0: inherit_rpath=yes michael@0: link_all_deplibs=yes michael@0: ;; michael@0: michael@0: netbsd* | netbsdelf*-gnu) michael@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then michael@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out michael@0: else michael@0: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF michael@0: fi michael@0: hardcode_libdir_flag_spec='-R$libdir' michael@0: hardcode_direct=yes michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: newsos6) michael@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_direct=yes michael@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' michael@0: hardcode_libdir_separator=: michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: *nto* | *qnx*) michael@0: ;; michael@0: michael@0: openbsd*) michael@0: if test -f /usr/libexec/ld.so; then michael@0: hardcode_direct=yes michael@0: hardcode_shlibpath_var=no michael@0: hardcode_direct_absolute=yes michael@0: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then michael@0: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' michael@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' michael@0: export_dynamic_flag_spec='${wl}-E' michael@0: else michael@0: case $host_os in michael@0: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) michael@0: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_libdir_flag_spec='-R$libdir' michael@0: ;; michael@0: *) michael@0: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' michael@0: hardcode_libdir_flag_spec='${wl}-rpath,$libdir' michael@0: ;; michael@0: esac michael@0: fi michael@0: else michael@0: ld_shlibs=no michael@0: fi michael@0: ;; michael@0: michael@0: os2*) michael@0: hardcode_libdir_flag_spec='-L$libdir' michael@0: hardcode_minus_L=yes michael@0: allow_undefined_flag=unsupported michael@0: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' michael@0: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' michael@0: ;; michael@0: michael@0: osf3*) michael@0: if test "$GCC" = yes; then michael@0: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' michael@0: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' michael@0: else michael@0: allow_undefined_flag=' -expect_unresolved \*' michael@0: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' michael@0: fi michael@0: archive_cmds_need_lc='no' michael@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' michael@0: hardcode_libdir_separator=: michael@0: ;; michael@0: michael@0: osf4* | osf5*) # as osf3* with the addition of -msym flag michael@0: if test "$GCC" = yes; then michael@0: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' michael@0: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' michael@0: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' michael@0: else michael@0: allow_undefined_flag=' -expect_unresolved \*' michael@0: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' michael@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~ michael@0: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' michael@0: michael@0: # Both c and cxx compiler support -rpath directly michael@0: hardcode_libdir_flag_spec='-rpath $libdir' michael@0: fi michael@0: archive_cmds_need_lc='no' michael@0: hardcode_libdir_separator=: michael@0: ;; michael@0: michael@0: solaris*) michael@0: no_undefined_flag=' -z defs' michael@0: if test "$GCC" = yes; then michael@0: wlarc='${wl}' michael@0: archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ michael@0: $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' michael@0: else michael@0: case `$CC -V 2>&1` in michael@0: *"Compilers 5.0"*) michael@0: wlarc='' michael@0: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' michael@0: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ michael@0: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' michael@0: ;; michael@0: *) michael@0: wlarc='${wl}' michael@0: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ michael@0: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' michael@0: ;; michael@0: esac michael@0: fi michael@0: hardcode_libdir_flag_spec='-R$libdir' michael@0: hardcode_shlibpath_var=no michael@0: case $host_os in michael@0: solaris2.[0-5] | solaris2.[0-5].*) ;; michael@0: *) michael@0: # The compiler driver will combine and reorder linker options, michael@0: # but understands `-z linker_flag'. GCC discards it without `$wl', michael@0: # but is careful enough not to reorder. michael@0: # Supported since Solaris 2.6 (maybe 2.5.1?) michael@0: if test "$GCC" = yes; then michael@0: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' michael@0: else michael@0: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' michael@0: fi michael@0: ;; michael@0: esac michael@0: link_all_deplibs=yes michael@0: ;; michael@0: michael@0: sunos4*) michael@0: if test "x$host_vendor" = xsequent; then michael@0: # Use $CC to link under sequent, because it throws in some extra .o michael@0: # files that make .init and .fini sections work. michael@0: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: else michael@0: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' michael@0: fi michael@0: hardcode_libdir_flag_spec='-L$libdir' michael@0: hardcode_direct=yes michael@0: hardcode_minus_L=yes michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: sysv4) michael@0: case $host_vendor in michael@0: sni) michael@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_direct=yes # is this really true??? michael@0: ;; michael@0: siemens) michael@0: ## LD is ld it makes a PLAMLIB michael@0: ## CC just makes a GrossModule. michael@0: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' michael@0: reload_cmds='$CC -r -o $output$reload_objs' michael@0: hardcode_direct=no michael@0: ;; michael@0: motorola) michael@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_direct=no #Motorola manual says yes, but my tests say they lie michael@0: ;; michael@0: esac michael@0: runpath_var='LD_RUN_PATH' michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: sysv4.3*) michael@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_shlibpath_var=no michael@0: export_dynamic_flag_spec='-Bexport' michael@0: ;; michael@0: michael@0: sysv4*MP*) michael@0: if test -d /usr/nec; then michael@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_shlibpath_var=no michael@0: runpath_var=LD_RUN_PATH michael@0: hardcode_runpath_var=yes michael@0: ld_shlibs=yes michael@0: fi michael@0: ;; michael@0: michael@0: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) michael@0: no_undefined_flag='${wl}-z,text' michael@0: archive_cmds_need_lc=no michael@0: hardcode_shlibpath_var=no michael@0: runpath_var='LD_RUN_PATH' michael@0: michael@0: if test "$GCC" = yes; then michael@0: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: else michael@0: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: fi michael@0: ;; michael@0: michael@0: sysv5* | sco3.2v5* | sco5v6*) michael@0: # Note: We can NOT use -z defs as we might desire, because we do not michael@0: # link with -lc, and that would cause any symbols used from libc to michael@0: # always be unresolved, which means just about no library would michael@0: # ever link correctly. If we're not using GNU ld we use -z text michael@0: # though, which does catch some bad symbols but isn't as heavy-handed michael@0: # as -z defs. michael@0: no_undefined_flag='${wl}-z,text' michael@0: allow_undefined_flag='${wl}-z,nodefs' michael@0: archive_cmds_need_lc=no michael@0: hardcode_shlibpath_var=no michael@0: hardcode_libdir_flag_spec='${wl}-R,$libdir' michael@0: hardcode_libdir_separator=':' michael@0: link_all_deplibs=yes michael@0: export_dynamic_flag_spec='${wl}-Bexport' michael@0: runpath_var='LD_RUN_PATH' michael@0: michael@0: if test "$GCC" = yes; then michael@0: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: else michael@0: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: fi michael@0: ;; michael@0: michael@0: uts4*) michael@0: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' michael@0: hardcode_libdir_flag_spec='-L$libdir' michael@0: hardcode_shlibpath_var=no michael@0: ;; michael@0: michael@0: *) michael@0: ld_shlibs=no michael@0: ;; michael@0: esac michael@0: michael@0: if test x$host_vendor = xsni; then michael@0: case $host in michael@0: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) michael@0: export_dynamic_flag_spec='${wl}-Blargedynsym' michael@0: ;; michael@0: esac michael@0: fi michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 michael@0: $as_echo "$ld_shlibs" >&6; } michael@0: test "$ld_shlibs" = no && can_build_shared=no michael@0: michael@0: with_gnu_ld=$with_gnu_ld michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # michael@0: # Do we need to explicitly link libc? michael@0: # michael@0: case "x$archive_cmds_need_lc" in michael@0: x|xyes) michael@0: # Assume -lc should be added michael@0: archive_cmds_need_lc=yes michael@0: michael@0: if test "$enable_shared" = yes && test "$GCC" = yes; then michael@0: case $archive_cmds in michael@0: *'~'*) michael@0: # FIXME: we may have to deal with multi-command sequences. michael@0: ;; michael@0: '$CC '*) michael@0: # Test whether the compiler implicitly links with -lc since on some michael@0: # systems, -lgcc has to come before -lc. If gcc already passes -lc michael@0: # to ld, don't add -lc before -lgcc. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 michael@0: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } michael@0: $RM conftest* michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 michael@0: (eval $ac_compile) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } 2>conftest.err; then michael@0: soname=conftest michael@0: lib=conftest michael@0: libobjs=conftest.$ac_objext michael@0: deplibs= michael@0: wl=$lt_prog_compiler_wl michael@0: pic_flag=$lt_prog_compiler_pic michael@0: compiler_flags=-v michael@0: linker_flags=-v michael@0: verstring= michael@0: output_objdir=. michael@0: libname=conftest michael@0: lt_save_allow_undefined_flag=$allow_undefined_flag michael@0: allow_undefined_flag= michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 michael@0: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: then michael@0: archive_cmds_need_lc=no michael@0: else michael@0: archive_cmds_need_lc=yes michael@0: fi michael@0: allow_undefined_flag=$lt_save_allow_undefined_flag michael@0: else michael@0: cat conftest.err 1>&5 michael@0: fi michael@0: $RM conftest* michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 michael@0: $as_echo "$archive_cmds_need_lc" >&6; } michael@0: ;; michael@0: esac michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 michael@0: $as_echo_n "checking dynamic linker characteristics... " >&6; } michael@0: michael@0: if test "$GCC" = yes; then michael@0: case $host_os in michael@0: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; michael@0: *) lt_awk_arg="/^libraries:/" ;; michael@0: esac michael@0: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` michael@0: if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then michael@0: # if the path contains ";" then we assume it to be the separator michael@0: # otherwise default to the standard path separator (i.e. ":") - it is michael@0: # assumed that no part of a normal pathname contains ";" but that should michael@0: # okay in the real world where ";" in dirpaths is itself problematic. michael@0: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` michael@0: else michael@0: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` michael@0: fi michael@0: # Ok, now we have the path, separated by spaces, we can step through it michael@0: # and add multilib dir if necessary. michael@0: lt_tmp_lt_search_path_spec= michael@0: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` michael@0: for lt_sys_path in $lt_search_path_spec; do michael@0: if test -d "$lt_sys_path/$lt_multi_os_dir"; then michael@0: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" michael@0: else michael@0: test -d "$lt_sys_path" && \ michael@0: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" michael@0: fi michael@0: done michael@0: lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' michael@0: BEGIN {RS=" "; FS="/|\n";} { michael@0: lt_foo=""; michael@0: lt_count=0; michael@0: for (lt_i = NF; lt_i > 0; lt_i--) { michael@0: if ($lt_i != "" && $lt_i != ".") { michael@0: if ($lt_i == "..") { michael@0: lt_count++; michael@0: } else { michael@0: if (lt_count == 0) { michael@0: lt_foo="/" $lt_i lt_foo; michael@0: } else { michael@0: lt_count--; michael@0: } michael@0: } michael@0: } michael@0: } michael@0: if (lt_foo != "") { lt_freq[lt_foo]++; } michael@0: if (lt_freq[lt_foo] == 1) { print lt_foo; } michael@0: }'` michael@0: sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` michael@0: else michael@0: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" michael@0: fi michael@0: library_names_spec= michael@0: libname_spec='lib$name' michael@0: soname_spec= michael@0: shrext_cmds=".so" michael@0: postinstall_cmds= michael@0: postuninstall_cmds= michael@0: finish_cmds= michael@0: finish_eval= michael@0: shlibpath_var= michael@0: shlibpath_overrides_runpath=unknown michael@0: version_type=none michael@0: dynamic_linker="$host_os ld.so" michael@0: sys_lib_dlsearch_path_spec="/lib /usr/lib" michael@0: need_lib_prefix=unknown michael@0: hardcode_into_libs=no michael@0: michael@0: # when you set need_version to no, make sure it does not cause -set_version michael@0: # flags to be left without arguments michael@0: need_version=unknown michael@0: michael@0: case $host_os in michael@0: aix3*) michael@0: version_type=linux michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' michael@0: shlibpath_var=LIBPATH michael@0: michael@0: # AIX 3 has no versioning support, so we append a major version to the name. michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: ;; michael@0: michael@0: aix[4-9]*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: hardcode_into_libs=yes michael@0: if test "$host_cpu" = ia64; then michael@0: # AIX 5 supports IA64 michael@0: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: else michael@0: # With GCC up to 2.95.x, collect2 would create an import file michael@0: # for dependence libraries. The import file would start with michael@0: # the line `#! .'. This would cause the generated library to michael@0: # depend on `.', always an invalid library. This was fixed in michael@0: # development snapshots of GCC prior to 3.0. michael@0: case $host_os in michael@0: aix4 | aix4.[01] | aix4.[01].*) michael@0: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' michael@0: echo ' yes ' michael@0: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then michael@0: : michael@0: else michael@0: can_build_shared=no michael@0: fi michael@0: ;; michael@0: esac michael@0: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct michael@0: # soname into executable. Probably we can add versioning support to michael@0: # collect2, so additional links can be useful in future. michael@0: if test "$aix_use_runtimelinking" = yes; then michael@0: # If using run time linking (on AIX 4.2 or later) use lib.so michael@0: # instead of lib.a to let people know that these are not michael@0: # typical AIX shared libraries. michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: else michael@0: # We preserve .a as extension for shared libraries through AIX4.2 michael@0: # and later when we are not doing run time linking. michael@0: library_names_spec='${libname}${release}.a $libname.a' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: fi michael@0: shlibpath_var=LIBPATH michael@0: fi michael@0: ;; michael@0: michael@0: amigaos*) michael@0: case $host_cpu in michael@0: powerpc) michael@0: # Since July 2007 AmigaOS4 officially supports .so libraries. michael@0: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: ;; michael@0: m68k) michael@0: library_names_spec='$libname.ixlibrary $libname.a' michael@0: # Create ${libname}_ixlibrary.a entries in /sys/libs. michael@0: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: beos*) michael@0: library_names_spec='${libname}${shared_ext}' michael@0: dynamic_linker="$host_os ld.so" michael@0: shlibpath_var=LIBRARY_PATH michael@0: ;; michael@0: michael@0: bsdi[45]*) michael@0: version_type=linux michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" michael@0: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" michael@0: # the default ld.so.conf also contains /usr/contrib/lib and michael@0: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow michael@0: # libtool to hard-code these into programs michael@0: ;; michael@0: michael@0: cygwin* | mingw* | pw32* | cegcc*) michael@0: version_type=windows michael@0: shrext_cmds=".dll" michael@0: need_version=no michael@0: need_lib_prefix=no michael@0: michael@0: case $GCC,$host_os in michael@0: yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) michael@0: library_names_spec='$libname.dll.a' michael@0: # DLL is installed to $(libdir)/../bin by postinstall_cmds michael@0: postinstall_cmds='base_file=`basename \${file}`~ michael@0: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ michael@0: dldir=$destdir/`dirname \$dlpath`~ michael@0: test -d \$dldir || mkdir -p \$dldir~ michael@0: $install_prog $dir/$dlname \$dldir/$dlname~ michael@0: chmod a+x \$dldir/$dlname~ michael@0: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then michael@0: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; michael@0: fi' michael@0: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ michael@0: dlpath=$dir/\$dldll~ michael@0: $RM \$dlpath' michael@0: shlibpath_overrides_runpath=yes michael@0: michael@0: case $host_os in michael@0: cygwin*) michael@0: # Cygwin DLLs use 'cyg' prefix rather than 'lib' michael@0: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' michael@0: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" michael@0: ;; michael@0: mingw* | cegcc*) michael@0: # MinGW DLLs use traditional 'lib' prefix michael@0: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' michael@0: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` michael@0: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then michael@0: # It is most probably a Windows format PATH printed by michael@0: # mingw gcc, but we are running on Cygwin. Gcc prints its search michael@0: # path with ; separators, and with drive letters. We can handle the michael@0: # drive letters (cygwin fileutils understands them), so leave them, michael@0: # especially as we might pass files found there to a mingw objdump, michael@0: # which wouldn't understand a cygwinified path. Ahh. michael@0: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` michael@0: else michael@0: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` michael@0: fi michael@0: ;; michael@0: pw32*) michael@0: # pw32 DLLs use 'pw' prefix rather than 'lib' michael@0: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: *) michael@0: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' michael@0: ;; michael@0: esac michael@0: dynamic_linker='Win32 ld.exe' michael@0: # FIXME: first we should search . and the directory the executable is in michael@0: shlibpath_var=PATH michael@0: ;; michael@0: michael@0: darwin* | rhapsody*) michael@0: dynamic_linker="$host_os dyld" michael@0: version_type=darwin michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' michael@0: soname_spec='${libname}${release}${major}$shared_ext' michael@0: shlibpath_overrides_runpath=yes michael@0: shlibpath_var=DYLD_LIBRARY_PATH michael@0: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' michael@0: michael@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" michael@0: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' michael@0: ;; michael@0: michael@0: dgux*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: ;; michael@0: michael@0: freebsd1*) michael@0: dynamic_linker=no michael@0: ;; michael@0: michael@0: freebsd* | dragonfly*) michael@0: # DragonFly does not have aout. When/if they implement a new michael@0: # versioning mechanism, adjust this. michael@0: if test -x /usr/bin/objformat; then michael@0: objformat=`/usr/bin/objformat` michael@0: else michael@0: case $host_os in michael@0: freebsd[123]*) objformat=aout ;; michael@0: *) objformat=elf ;; michael@0: esac michael@0: fi michael@0: version_type=freebsd-$objformat michael@0: case $version_type in michael@0: freebsd-elf*) michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' michael@0: need_version=no michael@0: need_lib_prefix=no michael@0: ;; michael@0: freebsd-*) michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' michael@0: need_version=yes michael@0: ;; michael@0: esac michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: case $host_os in michael@0: freebsd2*) michael@0: shlibpath_overrides_runpath=yes michael@0: ;; michael@0: freebsd3.[01]* | freebsdelf3.[01]*) michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ michael@0: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: *) # from 4.6 on, and DragonFly michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: gnu*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: hpux9* | hpux10* | hpux11*) michael@0: # Give a soname corresponding to the major version so that dld.sl refuses to michael@0: # link against other versions. michael@0: version_type=sunos michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: case $host_cpu in michael@0: ia64*) michael@0: shrext_cmds='.so' michael@0: hardcode_into_libs=yes michael@0: dynamic_linker="$host_os dld.so" michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: if test "X$HPUX_IA64_MODE" = X32; then michael@0: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" michael@0: else michael@0: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" michael@0: fi michael@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec michael@0: ;; michael@0: hppa*64*) michael@0: shrext_cmds='.sl' michael@0: hardcode_into_libs=yes michael@0: dynamic_linker="$host_os dld.sl" michael@0: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH michael@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" michael@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec michael@0: ;; michael@0: *) michael@0: shrext_cmds='.sl' michael@0: dynamic_linker="$host_os dld.sl" michael@0: shlibpath_var=SHLIB_PATH michael@0: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: ;; michael@0: esac michael@0: # HP-UX runs *really* slowly unless shared libraries are mode 555. michael@0: postinstall_cmds='chmod 555 $lib' michael@0: ;; michael@0: michael@0: interix[3-9]*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: irix5* | irix6* | nonstopux*) michael@0: case $host_os in michael@0: nonstopux*) version_type=nonstopux ;; michael@0: *) michael@0: if test "$lt_cv_prog_gnu_ld" = yes; then michael@0: version_type=linux michael@0: else michael@0: version_type=irix michael@0: fi ;; michael@0: esac michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' michael@0: case $host_os in michael@0: irix5* | nonstopux*) michael@0: libsuff= shlibsuff= michael@0: ;; michael@0: *) michael@0: case $LD in # libtool.m4 will add one of these switches to LD michael@0: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") michael@0: libsuff= shlibsuff= libmagic=32-bit;; michael@0: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") michael@0: libsuff=32 shlibsuff=N32 libmagic=N32;; michael@0: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") michael@0: libsuff=64 shlibsuff=64 libmagic=64-bit;; michael@0: *) libsuff= shlibsuff= libmagic=never-match;; michael@0: esac michael@0: ;; michael@0: esac michael@0: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH michael@0: shlibpath_overrides_runpath=no michael@0: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" michael@0: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: # No shared lib support for Linux oldld, aout, or coff. michael@0: linux*oldld* | linux*aout* | linux*coff*) michael@0: dynamic_linker=no michael@0: ;; michael@0: michael@0: # This must be Linux ELF. michael@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: # Some binutils ld are patched to set DT_RUNPATH michael@0: save_LDFLAGS=$LDFLAGS michael@0: save_libdir=$libdir michael@0: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ michael@0: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : michael@0: shlibpath_overrides_runpath=yes michael@0: fi michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LDFLAGS=$save_LDFLAGS michael@0: libdir=$save_libdir michael@0: michael@0: # This implies no fast_install, which is unacceptable. michael@0: # Some rework will be needed to allow for fast_install michael@0: # before this can be enabled. michael@0: hardcode_into_libs=yes michael@0: michael@0: # Append ld.so.conf contents to the search path michael@0: if test -f /etc/ld.so.conf; then michael@0: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` michael@0: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" michael@0: fi michael@0: michael@0: # We used to test for /lib/ld.so.1 and disable shared libraries on michael@0: # powerpc, because MkLinux only supported shared libraries with the michael@0: # GNU dynamic linker. Since this was broken with cross compilers, michael@0: # most powerpc-linux boxes support dynamic linking these days and michael@0: # people can always --disable-shared, the test was removed, and we michael@0: # assume the GNU/Linux dynamic linker is in use. michael@0: dynamic_linker='GNU/Linux ld.so' michael@0: ;; michael@0: michael@0: netbsdelf*-gnu) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: dynamic_linker='NetBSD ld.elf_so' michael@0: ;; michael@0: michael@0: netbsd*) michael@0: version_type=sunos michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' michael@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' michael@0: dynamic_linker='NetBSD (a.out) ld.so' michael@0: else michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: dynamic_linker='NetBSD ld.elf_so' michael@0: fi michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: newsos6) michael@0: version_type=linux michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: ;; michael@0: michael@0: *nto* | *qnx*) michael@0: version_type=qnx michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: dynamic_linker='ldqnx.so' michael@0: ;; michael@0: michael@0: openbsd*) michael@0: version_type=sunos michael@0: sys_lib_dlsearch_path_spec="/usr/lib" michael@0: need_lib_prefix=no michael@0: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. michael@0: case $host_os in michael@0: openbsd3.3 | openbsd3.3.*) need_version=yes ;; michael@0: *) need_version=no ;; michael@0: esac michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' michael@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then michael@0: case $host_os in michael@0: openbsd2.[89] | openbsd2.[89].*) michael@0: shlibpath_overrides_runpath=no michael@0: ;; michael@0: *) michael@0: shlibpath_overrides_runpath=yes michael@0: ;; michael@0: esac michael@0: else michael@0: shlibpath_overrides_runpath=yes michael@0: fi michael@0: ;; michael@0: michael@0: os2*) michael@0: libname_spec='$name' michael@0: shrext_cmds=".dll" michael@0: need_lib_prefix=no michael@0: library_names_spec='$libname${shared_ext} $libname.a' michael@0: dynamic_linker='OS/2 ld.exe' michael@0: shlibpath_var=LIBPATH michael@0: ;; michael@0: michael@0: osf3* | osf4* | osf5*) michael@0: version_type=osf michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" michael@0: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" michael@0: ;; michael@0: michael@0: rdos*) michael@0: dynamic_linker=no michael@0: ;; michael@0: michael@0: solaris*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: # ldd complains unless libraries are executable michael@0: postinstall_cmds='chmod +x $lib' michael@0: ;; michael@0: michael@0: sunos4*) michael@0: version_type=sunos michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' michael@0: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: if test "$with_gnu_ld" = yes; then michael@0: need_lib_prefix=no michael@0: fi michael@0: need_version=yes michael@0: ;; michael@0: michael@0: sysv4 | sysv4.3*) michael@0: version_type=linux michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: case $host_vendor in michael@0: sni) michael@0: shlibpath_overrides_runpath=no michael@0: need_lib_prefix=no michael@0: runpath_var=LD_RUN_PATH michael@0: ;; michael@0: siemens) michael@0: need_lib_prefix=no michael@0: ;; michael@0: motorola) michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: shlibpath_overrides_runpath=no michael@0: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: sysv4*MP*) michael@0: if test -d /usr/nec ;then michael@0: version_type=linux michael@0: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' michael@0: soname_spec='$libname${shared_ext}.$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: fi michael@0: ;; michael@0: michael@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) michael@0: version_type=freebsd-elf michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: if test "$with_gnu_ld" = yes; then michael@0: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' michael@0: else michael@0: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' michael@0: case $host_os in michael@0: sco3.2v5*) michael@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" michael@0: ;; michael@0: esac michael@0: fi michael@0: sys_lib_dlsearch_path_spec='/usr/lib' michael@0: ;; michael@0: michael@0: tpf*) michael@0: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: uts4*) michael@0: version_type=linux michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: ;; michael@0: michael@0: *) michael@0: dynamic_linker=no michael@0: ;; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 michael@0: $as_echo "$dynamic_linker" >&6; } michael@0: test "$dynamic_linker" = no && can_build_shared=no michael@0: michael@0: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" michael@0: if test "$GCC" = yes; then michael@0: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" michael@0: fi michael@0: michael@0: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then michael@0: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" michael@0: fi michael@0: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then michael@0: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 michael@0: $as_echo_n "checking how to hardcode library paths into programs... " >&6; } michael@0: hardcode_action= michael@0: if test -n "$hardcode_libdir_flag_spec" || michael@0: test -n "$runpath_var" || michael@0: test "X$hardcode_automatic" = "Xyes" ; then michael@0: michael@0: # We can hardcode non-existent directories. michael@0: if test "$hardcode_direct" != no && michael@0: # If the only mechanism to avoid hardcoding is shlibpath_var, we michael@0: # have to relink, otherwise we might link with an installed library michael@0: # when we should be linking with a yet-to-be-installed one michael@0: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && michael@0: test "$hardcode_minus_L" != no; then michael@0: # Linking always hardcodes the temporary library directory. michael@0: hardcode_action=relink michael@0: else michael@0: # We can link without hardcoding, and we can hardcode nonexisting dirs. michael@0: hardcode_action=immediate michael@0: fi michael@0: else michael@0: # We cannot hardcode anything, or else we can only hardcode existing michael@0: # directories. michael@0: hardcode_action=unsupported michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 michael@0: $as_echo "$hardcode_action" >&6; } michael@0: michael@0: if test "$hardcode_action" = relink || michael@0: test "$inherit_rpath" = yes; then michael@0: # Fast installation is not supported michael@0: enable_fast_install=no michael@0: elif test "$shlibpath_overrides_runpath" = yes || michael@0: test "$enable_shared" = no; then michael@0: # Fast installation is not necessary michael@0: enable_fast_install=needless michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: if test "x$enable_dlopen" != xyes; then michael@0: enable_dlopen=unknown michael@0: enable_dlopen_self=unknown michael@0: enable_dlopen_self_static=unknown michael@0: else michael@0: lt_cv_dlopen=no michael@0: lt_cv_dlopen_libs= michael@0: michael@0: case $host_os in michael@0: beos*) michael@0: lt_cv_dlopen="load_add_on" michael@0: lt_cv_dlopen_libs= michael@0: lt_cv_dlopen_self=yes michael@0: ;; michael@0: michael@0: mingw* | pw32* | cegcc*) michael@0: lt_cv_dlopen="LoadLibrary" michael@0: lt_cv_dlopen_libs= michael@0: ;; michael@0: michael@0: cygwin*) michael@0: lt_cv_dlopen="dlopen" michael@0: lt_cv_dlopen_libs= michael@0: ;; michael@0: michael@0: darwin*) michael@0: # if libdl is installed we need to link against it michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 michael@0: $as_echo_n "checking for dlopen in -ldl... " >&6; } michael@0: if test "${ac_cv_lib_dl_dlopen+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-ldl $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char dlopen (); michael@0: int michael@0: main () michael@0: { michael@0: return dlopen (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_dl_dlopen=yes michael@0: else michael@0: ac_cv_lib_dl_dlopen=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 michael@0: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } michael@0: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : michael@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" michael@0: else michael@0: michael@0: lt_cv_dlopen="dyld" michael@0: lt_cv_dlopen_libs= michael@0: lt_cv_dlopen_self=yes michael@0: michael@0: fi michael@0: michael@0: ;; michael@0: michael@0: *) michael@0: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" michael@0: if test "x$ac_cv_func_shl_load" = x""yes; then : michael@0: lt_cv_dlopen="shl_load" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 michael@0: $as_echo_n "checking for shl_load in -ldld... " >&6; } michael@0: if test "${ac_cv_lib_dld_shl_load+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-ldld $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char shl_load (); michael@0: int michael@0: main () michael@0: { michael@0: return shl_load (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_dld_shl_load=yes michael@0: else michael@0: ac_cv_lib_dld_shl_load=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 michael@0: $as_echo "$ac_cv_lib_dld_shl_load" >&6; } michael@0: if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : michael@0: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" michael@0: else michael@0: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" michael@0: if test "x$ac_cv_func_dlopen" = x""yes; then : michael@0: lt_cv_dlopen="dlopen" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 michael@0: $as_echo_n "checking for dlopen in -ldl... " >&6; } michael@0: if test "${ac_cv_lib_dl_dlopen+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-ldl $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char dlopen (); michael@0: int michael@0: main () michael@0: { michael@0: return dlopen (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_dl_dlopen=yes michael@0: else michael@0: ac_cv_lib_dl_dlopen=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 michael@0: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } michael@0: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : michael@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 michael@0: $as_echo_n "checking for dlopen in -lsvld... " >&6; } michael@0: if test "${ac_cv_lib_svld_dlopen+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lsvld $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char dlopen (); michael@0: int michael@0: main () michael@0: { michael@0: return dlopen (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_svld_dlopen=yes michael@0: else michael@0: ac_cv_lib_svld_dlopen=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 michael@0: $as_echo "$ac_cv_lib_svld_dlopen" >&6; } michael@0: if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : michael@0: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 michael@0: $as_echo_n "checking for dld_link in -ldld... " >&6; } michael@0: if test "${ac_cv_lib_dld_dld_link+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-ldld $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char dld_link (); michael@0: int michael@0: main () michael@0: { michael@0: return dld_link (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_dld_dld_link=yes michael@0: else michael@0: ac_cv_lib_dld_dld_link=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 michael@0: $as_echo "$ac_cv_lib_dld_dld_link" >&6; } michael@0: if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : michael@0: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: michael@0: fi michael@0: michael@0: ;; michael@0: esac michael@0: michael@0: if test "x$lt_cv_dlopen" != xno; then michael@0: enable_dlopen=yes michael@0: else michael@0: enable_dlopen=no michael@0: fi michael@0: michael@0: case $lt_cv_dlopen in michael@0: dlopen) michael@0: save_CPPFLAGS="$CPPFLAGS" michael@0: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" michael@0: michael@0: save_LDFLAGS="$LDFLAGS" michael@0: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" michael@0: michael@0: save_LIBS="$LIBS" michael@0: LIBS="$lt_cv_dlopen_libs $LIBS" michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 michael@0: $as_echo_n "checking whether a program can dlopen itself... " >&6; } michael@0: if test "${lt_cv_dlopen_self+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test "$cross_compiling" = yes; then : michael@0: lt_cv_dlopen_self=cross michael@0: else michael@0: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 michael@0: lt_status=$lt_dlunknown michael@0: cat > conftest.$ac_ext <<_LT_EOF michael@0: #line 11547 "configure" michael@0: #include "confdefs.h" michael@0: michael@0: #if HAVE_DLFCN_H michael@0: #include michael@0: #endif michael@0: michael@0: #include michael@0: michael@0: #ifdef RTLD_GLOBAL michael@0: # define LT_DLGLOBAL RTLD_GLOBAL michael@0: #else michael@0: # ifdef DL_GLOBAL michael@0: # define LT_DLGLOBAL DL_GLOBAL michael@0: # else michael@0: # define LT_DLGLOBAL 0 michael@0: # endif michael@0: #endif michael@0: michael@0: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we michael@0: find out it does not work in some platform. */ michael@0: #ifndef LT_DLLAZY_OR_NOW michael@0: # ifdef RTLD_LAZY michael@0: # define LT_DLLAZY_OR_NOW RTLD_LAZY michael@0: # else michael@0: # ifdef DL_LAZY michael@0: # define LT_DLLAZY_OR_NOW DL_LAZY michael@0: # else michael@0: # ifdef RTLD_NOW michael@0: # define LT_DLLAZY_OR_NOW RTLD_NOW michael@0: # else michael@0: # ifdef DL_NOW michael@0: # define LT_DLLAZY_OR_NOW DL_NOW michael@0: # else michael@0: # define LT_DLLAZY_OR_NOW 0 michael@0: # endif michael@0: # endif michael@0: # endif michael@0: # endif michael@0: #endif michael@0: michael@0: void fnord() { int i=42;} michael@0: int main () michael@0: { michael@0: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); michael@0: int status = $lt_dlunknown; michael@0: michael@0: if (self) michael@0: { michael@0: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; michael@0: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; michael@0: /* dlclose (self); */ michael@0: } michael@0: else michael@0: puts (dlerror ()); michael@0: michael@0: return status; michael@0: } michael@0: _LT_EOF michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 michael@0: (eval $ac_link) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then michael@0: (./conftest; exit; ) >&5 2>/dev/null michael@0: lt_status=$? michael@0: case x$lt_status in michael@0: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; michael@0: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; michael@0: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; michael@0: esac michael@0: else : michael@0: # compilation failed michael@0: lt_cv_dlopen_self=no michael@0: fi michael@0: fi michael@0: rm -fr conftest* michael@0: michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 michael@0: $as_echo "$lt_cv_dlopen_self" >&6; } michael@0: michael@0: if test "x$lt_cv_dlopen_self" = xyes; then michael@0: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 michael@0: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } michael@0: if test "${lt_cv_dlopen_self_static+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test "$cross_compiling" = yes; then : michael@0: lt_cv_dlopen_self_static=cross michael@0: else michael@0: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 michael@0: lt_status=$lt_dlunknown michael@0: cat > conftest.$ac_ext <<_LT_EOF michael@0: #line 11643 "configure" michael@0: #include "confdefs.h" michael@0: michael@0: #if HAVE_DLFCN_H michael@0: #include michael@0: #endif michael@0: michael@0: #include michael@0: michael@0: #ifdef RTLD_GLOBAL michael@0: # define LT_DLGLOBAL RTLD_GLOBAL michael@0: #else michael@0: # ifdef DL_GLOBAL michael@0: # define LT_DLGLOBAL DL_GLOBAL michael@0: # else michael@0: # define LT_DLGLOBAL 0 michael@0: # endif michael@0: #endif michael@0: michael@0: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we michael@0: find out it does not work in some platform. */ michael@0: #ifndef LT_DLLAZY_OR_NOW michael@0: # ifdef RTLD_LAZY michael@0: # define LT_DLLAZY_OR_NOW RTLD_LAZY michael@0: # else michael@0: # ifdef DL_LAZY michael@0: # define LT_DLLAZY_OR_NOW DL_LAZY michael@0: # else michael@0: # ifdef RTLD_NOW michael@0: # define LT_DLLAZY_OR_NOW RTLD_NOW michael@0: # else michael@0: # ifdef DL_NOW michael@0: # define LT_DLLAZY_OR_NOW DL_NOW michael@0: # else michael@0: # define LT_DLLAZY_OR_NOW 0 michael@0: # endif michael@0: # endif michael@0: # endif michael@0: # endif michael@0: #endif michael@0: michael@0: void fnord() { int i=42;} michael@0: int main () michael@0: { michael@0: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); michael@0: int status = $lt_dlunknown; michael@0: michael@0: if (self) michael@0: { michael@0: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; michael@0: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; michael@0: /* dlclose (self); */ michael@0: } michael@0: else michael@0: puts (dlerror ()); michael@0: michael@0: return status; michael@0: } michael@0: _LT_EOF michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 michael@0: (eval $ac_link) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then michael@0: (./conftest; exit; ) >&5 2>/dev/null michael@0: lt_status=$? michael@0: case x$lt_status in michael@0: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; michael@0: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; michael@0: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; michael@0: esac michael@0: else : michael@0: # compilation failed michael@0: lt_cv_dlopen_self_static=no michael@0: fi michael@0: fi michael@0: rm -fr conftest* michael@0: michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 michael@0: $as_echo "$lt_cv_dlopen_self_static" >&6; } michael@0: fi michael@0: michael@0: CPPFLAGS="$save_CPPFLAGS" michael@0: LDFLAGS="$save_LDFLAGS" michael@0: LIBS="$save_LIBS" michael@0: ;; michael@0: esac michael@0: michael@0: case $lt_cv_dlopen_self in michael@0: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; michael@0: *) enable_dlopen_self=unknown ;; michael@0: esac michael@0: michael@0: case $lt_cv_dlopen_self_static in michael@0: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; michael@0: *) enable_dlopen_self_static=unknown ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: striplib= michael@0: old_striplib= michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 michael@0: $as_echo_n "checking whether stripping libraries is possible... " >&6; } michael@0: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then michael@0: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" michael@0: test -z "$striplib" && striplib="$STRIP --strip-unneeded" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: else michael@0: # FIXME - insert some real tests, host_os isn't really good enough michael@0: case $host_os in michael@0: darwin*) michael@0: if test -n "$STRIP" ; then michael@0: striplib="$STRIP -x" michael@0: old_striplib="$STRIP -S" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: ;; michael@0: *) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Report which library types will actually be built michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 michael@0: $as_echo_n "checking if libtool supports shared libraries... " >&6; } michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 michael@0: $as_echo "$can_build_shared" >&6; } michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 michael@0: $as_echo_n "checking whether to build shared libraries... " >&6; } michael@0: test "$can_build_shared" = "no" && enable_shared=no michael@0: michael@0: # On AIX, shared libraries and static libraries use the same namespace, and michael@0: # are all built from PIC. michael@0: case $host_os in michael@0: aix3*) michael@0: test "$enable_shared" = yes && enable_static=no michael@0: if test -n "$RANLIB"; then michael@0: archive_cmds="$archive_cmds~\$RANLIB \$lib" michael@0: postinstall_cmds='$RANLIB $lib' michael@0: fi michael@0: ;; michael@0: michael@0: aix[4-9]*) michael@0: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then michael@0: test "$enable_shared" = yes && enable_static=no michael@0: fi michael@0: ;; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 michael@0: $as_echo "$enable_shared" >&6; } michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 michael@0: $as_echo_n "checking whether to build static libraries... " >&6; } michael@0: # Make sure either enable_shared or enable_static is yes. michael@0: test "$enable_shared" = yes || enable_static=yes michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 michael@0: $as_echo "$enable_static" >&6; } michael@0: michael@0: michael@0: michael@0: michael@0: fi michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: CC="$lt_save_CC" michael@0: michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: archive_cmds_need_lc_CXX=no michael@0: allow_undefined_flag_CXX= michael@0: always_export_symbols_CXX=no michael@0: archive_expsym_cmds_CXX= michael@0: compiler_needs_object_CXX=no michael@0: export_dynamic_flag_spec_CXX= michael@0: hardcode_direct_CXX=no michael@0: hardcode_direct_absolute_CXX=no michael@0: hardcode_libdir_flag_spec_CXX= michael@0: hardcode_libdir_flag_spec_ld_CXX= michael@0: hardcode_libdir_separator_CXX= michael@0: hardcode_minus_L_CXX=no michael@0: hardcode_shlibpath_var_CXX=unsupported michael@0: hardcode_automatic_CXX=no michael@0: inherit_rpath_CXX=no michael@0: module_cmds_CXX= michael@0: module_expsym_cmds_CXX= michael@0: link_all_deplibs_CXX=unknown michael@0: old_archive_cmds_CXX=$old_archive_cmds michael@0: no_undefined_flag_CXX= michael@0: whole_archive_flag_spec_CXX= michael@0: enable_shared_with_static_runtimes_CXX=no michael@0: michael@0: # Source file extension for C++ test sources. michael@0: ac_ext=cpp michael@0: michael@0: # Object file extension for compiled C++ test sources. michael@0: objext=o michael@0: objext_CXX=$objext michael@0: michael@0: # No sense in running all these tests if we already determined that michael@0: # the CXX compiler isn't working. Some variables (like enable_shared) michael@0: # are currently assumed to apply to all compilers on this platform, michael@0: # and will be corrupted by setting them based on a non-working compiler. michael@0: if test "$_lt_caught_CXX_error" != yes; then michael@0: # Code to be used in simple compile tests michael@0: lt_simple_compile_test_code="int some_variable = 0;" michael@0: michael@0: # Code to be used in simple link tests michael@0: lt_simple_link_test_code='int main(int, char *[]) { return(0); }' michael@0: michael@0: # ltmain only uses $CC for tagged configurations so make sure $CC is set. michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # If no C compiler was specified, use CC. michael@0: LTCC=${LTCC-"$CC"} michael@0: michael@0: # If no C compiler flags were specified, use CFLAGS. michael@0: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} michael@0: michael@0: # Allow CC to be a program name with arguments. michael@0: compiler=$CC michael@0: michael@0: michael@0: # save warnings/boilerplate of simple test code michael@0: ac_outfile=conftest.$ac_objext michael@0: echo "$lt_simple_compile_test_code" >conftest.$ac_ext michael@0: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err michael@0: _lt_compiler_boilerplate=`cat conftest.err` michael@0: $RM conftest* michael@0: michael@0: ac_outfile=conftest.$ac_objext michael@0: echo "$lt_simple_link_test_code" >conftest.$ac_ext michael@0: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err michael@0: _lt_linker_boilerplate=`cat conftest.err` michael@0: $RM -r conftest* michael@0: michael@0: michael@0: # Allow CC to be a program name with arguments. michael@0: lt_save_CC=$CC michael@0: lt_save_LD=$LD michael@0: lt_save_GCC=$GCC michael@0: GCC=$GXX michael@0: lt_save_with_gnu_ld=$with_gnu_ld michael@0: lt_save_path_LD=$lt_cv_path_LD michael@0: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then michael@0: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx michael@0: else michael@0: $as_unset lt_cv_prog_gnu_ld michael@0: fi michael@0: if test -n "${lt_cv_path_LDCXX+set}"; then michael@0: lt_cv_path_LD=$lt_cv_path_LDCXX michael@0: else michael@0: $as_unset lt_cv_path_LD michael@0: fi michael@0: test -z "${LDCXX+set}" || LD=$LDCXX michael@0: CC=${CXX-"c++"} michael@0: compiler=$CC michael@0: compiler_CXX=$CC michael@0: for cc_temp in $compiler""; do michael@0: case $cc_temp in michael@0: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; michael@0: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; michael@0: \-*) ;; michael@0: *) break;; michael@0: esac michael@0: done michael@0: cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` michael@0: michael@0: michael@0: if test -n "$compiler"; then michael@0: # We don't want -fno-exception when compiling C++ code, so set the michael@0: # no_builtin_flag separately michael@0: if test "$GXX" = yes; then michael@0: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' michael@0: else michael@0: lt_prog_compiler_no_builtin_flag_CXX= michael@0: fi michael@0: michael@0: if test "$GXX" = yes; then michael@0: # Set up default GNU C++ configuration michael@0: michael@0: michael@0: michael@0: # Check whether --with-gnu-ld was given. michael@0: if test "${with_gnu_ld+set}" = set; then : michael@0: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes michael@0: else michael@0: with_gnu_ld=no michael@0: fi michael@0: michael@0: ac_prog=ld michael@0: if test "$GCC" = yes; then michael@0: # Check if gcc -print-prog-name=ld gives a path. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 michael@0: $as_echo_n "checking for ld used by $CC... " >&6; } michael@0: case $host in michael@0: *-*-mingw*) michael@0: # gcc leaves a trailing carriage return which upsets mingw michael@0: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; michael@0: *) michael@0: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; michael@0: esac michael@0: case $ac_prog in michael@0: # Accept absolute paths. michael@0: [\\/]* | ?:[\\/]*) michael@0: re_direlt='/[^/][^/]*/\.\./' michael@0: # Canonicalize the pathname of ld michael@0: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` michael@0: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do michael@0: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` michael@0: done michael@0: test -z "$LD" && LD="$ac_prog" michael@0: ;; michael@0: "") michael@0: # If it fails, then pretend we aren't using GCC. michael@0: ac_prog=ld michael@0: ;; michael@0: *) michael@0: # If it is relative, then search for the first ld in PATH. michael@0: with_gnu_ld=unknown michael@0: ;; michael@0: esac michael@0: elif test "$with_gnu_ld" = yes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 michael@0: $as_echo_n "checking for GNU ld... " >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 michael@0: $as_echo_n "checking for non-GNU ld... " >&6; } michael@0: fi michael@0: if test "${lt_cv_path_LD+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -z "$LD"; then michael@0: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR michael@0: for ac_dir in $PATH; do michael@0: IFS="$lt_save_ifs" michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then michael@0: lt_cv_path_LD="$ac_dir/$ac_prog" michael@0: # Check to see if the program is GNU ld. I'd rather use --version, michael@0: # but apparently some variants of GNU ld only accept -v. michael@0: # Break only if it was the GNU/non-GNU ld that we prefer. michael@0: case `"$lt_cv_path_LD" -v 2>&1 &5 michael@0: $as_echo "$LD" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 michael@0: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } michael@0: if test "${lt_cv_prog_gnu_ld+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: # I'd rather use --version here, but apparently some GNU lds only accept -v. michael@0: case `$LD -v 2>&1 &5 michael@0: $as_echo "$lt_cv_prog_gnu_ld" >&6; } michael@0: with_gnu_ld=$lt_cv_prog_gnu_ld michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Check if GNU C++ uses GNU ld as the underlying linker, since the michael@0: # archiving commands below assume that GNU ld is being used. michael@0: if test "$with_gnu_ld" = yes; then michael@0: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' michael@0: michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' michael@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' michael@0: michael@0: # If archive_cmds runs LD, not CC, wlarc should be empty michael@0: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to michael@0: # investigate it a little bit more. (MM) michael@0: wlarc='${wl}' michael@0: michael@0: # ancient GNU ld didn't support --whole-archive et. al. michael@0: if eval "`$CC -print-prog-name=ld` --help 2>&1" | michael@0: $GREP 'no-whole-archive' > /dev/null; then michael@0: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' michael@0: else michael@0: whole_archive_flag_spec_CXX= michael@0: fi michael@0: else michael@0: with_gnu_ld=no michael@0: wlarc= michael@0: michael@0: # A generic and very simple default shared library creation michael@0: # command for GNU C++ for the case where it uses the native michael@0: # linker, instead of GNU ld. If possible, this setting should michael@0: # overridden to take advantage of the native linker features on michael@0: # the platform it is being used on. michael@0: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' michael@0: fi michael@0: michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' michael@0: michael@0: else michael@0: GXX=no michael@0: with_gnu_ld=no michael@0: wlarc= michael@0: fi michael@0: michael@0: # PORTME: fill in a description of your system's C++ link characteristics michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 michael@0: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } michael@0: ld_shlibs_CXX=yes michael@0: case $host_os in michael@0: aix3*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: aix[4-9]*) michael@0: if test "$host_cpu" = ia64; then michael@0: # On IA64, the linker does run time linking by default, so we don't michael@0: # have to do anything special. michael@0: aix_use_runtimelinking=no michael@0: exp_sym_flag='-Bexport' michael@0: no_entry_flag="" michael@0: else michael@0: aix_use_runtimelinking=no michael@0: michael@0: # Test if we are trying to use run time linking or normal michael@0: # AIX style linking. If -brtl is somewhere in LDFLAGS, we michael@0: # need to do runtime linking. michael@0: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) michael@0: for ld_flag in $LDFLAGS; do michael@0: case $ld_flag in michael@0: *-brtl*) michael@0: aix_use_runtimelinking=yes michael@0: break michael@0: ;; michael@0: esac michael@0: done michael@0: ;; michael@0: esac michael@0: michael@0: exp_sym_flag='-bexport' michael@0: no_entry_flag='-bnoentry' michael@0: fi michael@0: michael@0: # When large executables or shared objects are built, AIX ld can michael@0: # have problems creating the table of contents. If linking a library michael@0: # or program results in "error TOC overflow" add -mminimal-toc to michael@0: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not michael@0: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. michael@0: michael@0: archive_cmds_CXX='' michael@0: hardcode_direct_CXX=yes michael@0: hardcode_direct_absolute_CXX=yes michael@0: hardcode_libdir_separator_CXX=':' michael@0: link_all_deplibs_CXX=yes michael@0: file_list_spec_CXX='${wl}-f,' michael@0: michael@0: if test "$GXX" = yes; then michael@0: case $host_os in aix4.[012]|aix4.[012].*) michael@0: # We only want to do this on AIX 4.2 and lower, the check michael@0: # below for broken collect2 doesn't work under 4.3+ michael@0: collect2name=`${CC} -print-prog-name=collect2` michael@0: if test -f "$collect2name" && michael@0: strings "$collect2name" | $GREP resolve_lib_name >/dev/null michael@0: then michael@0: # We have reworked collect2 michael@0: : michael@0: else michael@0: # We have old collect2 michael@0: hardcode_direct_CXX=unsupported michael@0: # It fails to find uninstalled libraries when the uninstalled michael@0: # path is not listed in the libpath. Setting hardcode_minus_L michael@0: # to unsupported forces relinking michael@0: hardcode_minus_L_CXX=yes michael@0: hardcode_libdir_flag_spec_CXX='-L$libdir' michael@0: hardcode_libdir_separator_CXX= michael@0: fi michael@0: esac michael@0: shared_flag='-shared' michael@0: if test "$aix_use_runtimelinking" = yes; then michael@0: shared_flag="$shared_flag "'${wl}-G' michael@0: fi michael@0: else michael@0: # not using gcc michael@0: if test "$host_cpu" = ia64; then michael@0: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release michael@0: # chokes on -Wl,-G. The following line is correct: michael@0: shared_flag='-G' michael@0: else michael@0: if test "$aix_use_runtimelinking" = yes; then michael@0: shared_flag='${wl}-G' michael@0: else michael@0: shared_flag='${wl}-bM:SRE' michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: export_dynamic_flag_spec_CXX='${wl}-bexpall' michael@0: # It seems that -bexpall does not export symbols beginning with michael@0: # underscore (_), so it is better to generate a list of symbols to michael@0: # export. michael@0: always_export_symbols_CXX=yes michael@0: if test "$aix_use_runtimelinking" = yes; then michael@0: # Warning - without using the other runtime loading flags (-brtl), michael@0: # -berok will link without error, but may produce a broken library. michael@0: allow_undefined_flag_CXX='-berok' michael@0: # Determine the default libpath from the value encoded in an empty michael@0: # executable. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: michael@0: lt_aix_libpath_sed=' michael@0: /Import File Strings/,/^$/ { michael@0: /^0/ { michael@0: s/^0 *\(.*\)$/\1/ michael@0: p michael@0: } michael@0: }' michael@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` michael@0: # Check for a 64-bit object if we didn't find anything. michael@0: if test -z "$aix_libpath"; then michael@0: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` michael@0: fi michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi michael@0: michael@0: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" michael@0: michael@0: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" michael@0: else michael@0: if test "$host_cpu" = ia64; then michael@0: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' michael@0: allow_undefined_flag_CXX="-z nodefs" michael@0: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" michael@0: else michael@0: # Determine the default libpath from the value encoded in an michael@0: # empty executable. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: michael@0: lt_aix_libpath_sed=' michael@0: /Import File Strings/,/^$/ { michael@0: /^0/ { michael@0: s/^0 *\(.*\)$/\1/ michael@0: p michael@0: } michael@0: }' michael@0: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` michael@0: # Check for a 64-bit object if we didn't find anything. michael@0: if test -z "$aix_libpath"; then michael@0: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` michael@0: fi michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi michael@0: michael@0: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" michael@0: # Warning - without using the other run time loading flags, michael@0: # -berok will link without error, but may produce a broken library. michael@0: no_undefined_flag_CXX=' ${wl}-bernotok' michael@0: allow_undefined_flag_CXX=' ${wl}-berok' michael@0: # Exported symbols can be pulled into shared objects from archives michael@0: whole_archive_flag_spec_CXX='$convenience' michael@0: archive_cmds_need_lc_CXX=yes michael@0: # This is similar to how AIX traditionally builds its shared michael@0: # libraries. michael@0: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' michael@0: fi michael@0: fi michael@0: ;; michael@0: michael@0: beos*) michael@0: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then michael@0: allow_undefined_flag_CXX=unsupported michael@0: # Joseph Beckenbach says some releases of gcc michael@0: # support --undefined. This deserves some investigation. FIXME michael@0: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: else michael@0: ld_shlibs_CXX=no michael@0: fi michael@0: ;; michael@0: michael@0: chorus*) michael@0: case $cc_basename in michael@0: *) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: cygwin* | mingw* | pw32* | cegcc*) michael@0: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, michael@0: # as there is no search path for DLLs. michael@0: hardcode_libdir_flag_spec_CXX='-L$libdir' michael@0: allow_undefined_flag_CXX=unsupported michael@0: always_export_symbols_CXX=no michael@0: enable_shared_with_static_runtimes_CXX=yes michael@0: michael@0: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then michael@0: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' michael@0: # If the export-symbols file already is a .def file (1st line michael@0: # is EXPORTS), use it as is; otherwise, prepend... michael@0: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then michael@0: cp $export_symbols $output_objdir/$soname.def; michael@0: else michael@0: echo EXPORTS > $output_objdir/$soname.def; michael@0: cat $export_symbols >> $output_objdir/$soname.def; michael@0: fi~ michael@0: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' michael@0: else michael@0: ld_shlibs_CXX=no michael@0: fi michael@0: ;; michael@0: darwin* | rhapsody*) michael@0: michael@0: michael@0: archive_cmds_need_lc_CXX=no michael@0: hardcode_direct_CXX=no michael@0: hardcode_automatic_CXX=yes michael@0: hardcode_shlibpath_var_CXX=unsupported michael@0: whole_archive_flag_spec_CXX='' michael@0: link_all_deplibs_CXX=yes michael@0: allow_undefined_flag_CXX="$_lt_dar_allow_undefined" michael@0: case $cc_basename in michael@0: ifort*) _lt_dar_can_shared=yes ;; michael@0: *) _lt_dar_can_shared=$GCC ;; michael@0: esac michael@0: if test "$_lt_dar_can_shared" = "yes"; then michael@0: output_verbose_link_cmd=echo michael@0: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" michael@0: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" michael@0: archive_expsym_cmds_CXX="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}" michael@0: module_expsym_cmds_CXX="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}" michael@0: if test "$lt_cv_apple_cc_single_mod" != "yes"; then michael@0: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" michael@0: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" michael@0: fi michael@0: michael@0: else michael@0: ld_shlibs_CXX=no michael@0: fi michael@0: michael@0: ;; michael@0: michael@0: dgux*) michael@0: case $cc_basename in michael@0: ec++*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: ghcx*) michael@0: # Green Hills C++ Compiler michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: *) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: freebsd[12]*) michael@0: # C++ shared libraries reported to be fairly broken before michael@0: # switch to ELF michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: michael@0: freebsd-elf*) michael@0: archive_cmds_need_lc_CXX=no michael@0: ;; michael@0: michael@0: freebsd* | dragonfly*) michael@0: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF michael@0: # conventions michael@0: ld_shlibs_CXX=yes michael@0: ;; michael@0: michael@0: gnu*) michael@0: ;; michael@0: michael@0: hpux9*) michael@0: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' michael@0: hardcode_libdir_separator_CXX=: michael@0: export_dynamic_flag_spec_CXX='${wl}-E' michael@0: hardcode_direct_CXX=yes michael@0: hardcode_minus_L_CXX=yes # Not in the search PATH, michael@0: # but as the default michael@0: # location of the library. michael@0: michael@0: case $cc_basename in michael@0: CC*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: aCC*) michael@0: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: # michael@0: # There doesn't appear to be a way to prevent this compiler from michael@0: # explicitly linking system object files so we need to strip them michael@0: # from the output so that they don't get included in the library michael@0: # dependencies. michael@0: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' michael@0: ;; michael@0: *) michael@0: if test "$GXX" = yes; then michael@0: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' michael@0: else michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: hpux10*|hpux11*) michael@0: if test $with_gnu_ld = no; then michael@0: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' michael@0: hardcode_libdir_separator_CXX=: michael@0: michael@0: case $host_cpu in michael@0: hppa*64*|ia64*) michael@0: ;; michael@0: *) michael@0: export_dynamic_flag_spec_CXX='${wl}-E' michael@0: ;; michael@0: esac michael@0: fi michael@0: case $host_cpu in michael@0: hppa*64*|ia64*) michael@0: hardcode_direct_CXX=no michael@0: hardcode_shlibpath_var_CXX=no michael@0: ;; michael@0: *) michael@0: hardcode_direct_CXX=yes michael@0: hardcode_direct_absolute_CXX=yes michael@0: hardcode_minus_L_CXX=yes # Not in the search PATH, michael@0: # but as the default michael@0: # location of the library. michael@0: ;; michael@0: esac michael@0: michael@0: case $cc_basename in michael@0: CC*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: aCC*) michael@0: case $host_cpu in michael@0: hppa*64*) michael@0: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' michael@0: ;; michael@0: ia64*) michael@0: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' michael@0: ;; michael@0: *) michael@0: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' michael@0: ;; michael@0: esac michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: # michael@0: # There doesn't appear to be a way to prevent this compiler from michael@0: # explicitly linking system object files so we need to strip them michael@0: # from the output so that they don't get included in the library michael@0: # dependencies. michael@0: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' michael@0: ;; michael@0: *) michael@0: if test "$GXX" = yes; then michael@0: if test $with_gnu_ld = no; then michael@0: case $host_cpu in michael@0: hppa*64*) michael@0: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' michael@0: ;; michael@0: ia64*) michael@0: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' michael@0: ;; michael@0: *) michael@0: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' michael@0: ;; michael@0: esac michael@0: fi michael@0: else michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: interix[3-9]*) michael@0: hardcode_direct_CXX=no michael@0: hardcode_shlibpath_var_CXX=no michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' michael@0: export_dynamic_flag_spec_CXX='${wl}-E' michael@0: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. michael@0: # Instead, shared libraries are loaded at an image base (0x10000000 by michael@0: # default) and relocated if they conflict, which is a slow very memory michael@0: # consuming and fragmenting process. To avoid this, we pick a random, michael@0: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link michael@0: # time. Moving up from 0x10000000 also allows more sbrk(2) space. michael@0: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' michael@0: archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' michael@0: ;; michael@0: irix5* | irix6*) michael@0: case $cc_basename in michael@0: CC*) michael@0: # SGI C++ michael@0: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' michael@0: michael@0: # Archives containing C++ object files must be created using michael@0: # "CC -ar", where "CC" is the IRIX C++ compiler. This is michael@0: # necessary to make sure instantiated templates are included michael@0: # in the archive. michael@0: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' michael@0: ;; michael@0: *) michael@0: if test "$GXX" = yes; then michael@0: if test "$with_gnu_ld" = no; then michael@0: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' michael@0: else michael@0: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' michael@0: fi michael@0: fi michael@0: link_all_deplibs_CXX=yes michael@0: ;; michael@0: esac michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' michael@0: hardcode_libdir_separator_CXX=: michael@0: inherit_rpath_CXX=yes michael@0: ;; michael@0: michael@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) michael@0: case $cc_basename in michael@0: KCC*) michael@0: # Kuck and Associates, Inc. (KAI) C++ Compiler michael@0: michael@0: # KCC will only create a shared library if the output file michael@0: # ends with ".so" (or ".sl" for HP-UX), so rename the library michael@0: # to its proper name (with version) after linking. michael@0: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' michael@0: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: # michael@0: # There doesn't appear to be a way to prevent this compiler from michael@0: # explicitly linking system object files so we need to strip them michael@0: # from the output so that they don't get included in the library michael@0: # dependencies. michael@0: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' michael@0: michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' michael@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' michael@0: michael@0: # Archives containing C++ object files must be created using michael@0: # "CC -Bstatic", where "CC" is the KAI C++ compiler. michael@0: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' michael@0: ;; michael@0: icpc* | ecpc* ) michael@0: # Intel C++ michael@0: with_gnu_ld=yes michael@0: # version 8.0 and above of icpc choke on multiply defined symbols michael@0: # if we add $predep_objects and $postdep_objects, however 7.1 and michael@0: # earlier do not add the objects themselves. michael@0: case `$CC -V 2>&1` in michael@0: *"Version 7."*) michael@0: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' michael@0: ;; michael@0: *) # Version 8.0 or newer michael@0: tmp_idyn= michael@0: case $host_cpu in michael@0: ia64*) tmp_idyn=' -i_dynamic';; michael@0: esac michael@0: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' michael@0: ;; michael@0: esac michael@0: archive_cmds_need_lc_CXX=no michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' michael@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' michael@0: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' michael@0: ;; michael@0: pgCC* | pgcpp*) michael@0: # Portland Group C++ compiler michael@0: case `$CC -V` in michael@0: *pgCC\ [1-5]* | *pgcpp\ [1-5]*) michael@0: prelink_cmds_CXX='tpldir=Template.dir~ michael@0: rm -rf $tpldir~ michael@0: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ michael@0: compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' michael@0: old_archive_cmds_CXX='tpldir=Template.dir~ michael@0: rm -rf $tpldir~ michael@0: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ michael@0: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ michael@0: $RANLIB $oldlib' michael@0: archive_cmds_CXX='tpldir=Template.dir~ michael@0: rm -rf $tpldir~ michael@0: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ michael@0: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' michael@0: archive_expsym_cmds_CXX='tpldir=Template.dir~ michael@0: rm -rf $tpldir~ michael@0: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ michael@0: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' michael@0: ;; michael@0: *) # Version 6 will use weak symbols michael@0: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' michael@0: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' michael@0: ;; michael@0: esac michael@0: michael@0: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' michael@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' michael@0: whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' michael@0: ;; michael@0: cxx*) michael@0: # Compaq C++ michael@0: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' michael@0: michael@0: runpath_var=LD_RUN_PATH michael@0: hardcode_libdir_flag_spec_CXX='-rpath $libdir' michael@0: hardcode_libdir_separator_CXX=: michael@0: michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: # michael@0: # There doesn't appear to be a way to prevent this compiler from michael@0: # explicitly linking system object files so we need to strip them michael@0: # from the output so that they don't get included in the library michael@0: # dependencies. michael@0: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' michael@0: ;; michael@0: xl*) michael@0: # IBM XL 8.0 on PPC, with GNU ld michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' michael@0: export_dynamic_flag_spec_CXX='${wl}--export-dynamic' michael@0: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' michael@0: if test "x$supports_anon_versioning" = xyes; then michael@0: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ michael@0: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ michael@0: echo "local: *; };" >> $output_objdir/$libname.ver~ michael@0: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' michael@0: fi michael@0: ;; michael@0: *) michael@0: case `$CC -V 2>&1 | sed 5q` in michael@0: *Sun\ C*) michael@0: # Sun C++ 5.9 michael@0: no_undefined_flag_CXX=' -zdefs' michael@0: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' michael@0: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' michael@0: hardcode_libdir_flag_spec_CXX='-R$libdir' michael@0: whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' michael@0: compiler_needs_object_CXX=yes michael@0: michael@0: # Not sure whether something based on michael@0: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 michael@0: # would be better. michael@0: output_verbose_link_cmd='echo' michael@0: michael@0: # Archives containing C++ object files must be created using michael@0: # "CC -xar", where "CC" is the Sun C++ compiler. This is michael@0: # necessary to make sure instantiated templates are included michael@0: # in the archive. michael@0: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' michael@0: ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: lynxos*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: michael@0: m88k*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: michael@0: mvs*) michael@0: case $cc_basename in michael@0: cxx*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: *) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: netbsd*) michael@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then michael@0: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' michael@0: wlarc= michael@0: hardcode_libdir_flag_spec_CXX='-R$libdir' michael@0: hardcode_direct_CXX=yes michael@0: hardcode_shlibpath_var_CXX=no michael@0: fi michael@0: # Workaround some broken pre-1.5 toolchains michael@0: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' michael@0: ;; michael@0: michael@0: *nto* | *qnx*) michael@0: ld_shlibs_CXX=yes michael@0: ;; michael@0: michael@0: openbsd2*) michael@0: # C++ shared libraries are fairly broken michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: michael@0: openbsd*) michael@0: if test -f /usr/libexec/ld.so; then michael@0: hardcode_direct_CXX=yes michael@0: hardcode_shlibpath_var_CXX=no michael@0: hardcode_direct_absolute_CXX=yes michael@0: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' michael@0: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then michael@0: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' michael@0: export_dynamic_flag_spec_CXX='${wl}-E' michael@0: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' michael@0: fi michael@0: output_verbose_link_cmd=echo michael@0: else michael@0: ld_shlibs_CXX=no michael@0: fi michael@0: ;; michael@0: michael@0: osf3* | osf4* | osf5*) michael@0: case $cc_basename in michael@0: KCC*) michael@0: # Kuck and Associates, Inc. (KAI) C++ Compiler michael@0: michael@0: # KCC will only create a shared library if the output file michael@0: # ends with ".so" (or ".sl" for HP-UX), so rename the library michael@0: # to its proper name (with version) after linking. michael@0: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' michael@0: michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' michael@0: hardcode_libdir_separator_CXX=: michael@0: michael@0: # Archives containing C++ object files must be created using michael@0: # the KAI C++ compiler. michael@0: case $host in michael@0: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; michael@0: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; michael@0: esac michael@0: ;; michael@0: RCC*) michael@0: # Rational C++ 2.4.1 michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: cxx*) michael@0: case $host in michael@0: osf3*) michael@0: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' michael@0: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' michael@0: ;; michael@0: *) michael@0: allow_undefined_flag_CXX=' -expect_unresolved \*' michael@0: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' michael@0: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ michael@0: echo "-hidden">> $lib.exp~ michael@0: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ michael@0: $RM $lib.exp' michael@0: hardcode_libdir_flag_spec_CXX='-rpath $libdir' michael@0: ;; michael@0: esac michael@0: michael@0: hardcode_libdir_separator_CXX=: michael@0: michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: # michael@0: # There doesn't appear to be a way to prevent this compiler from michael@0: # explicitly linking system object files so we need to strip them michael@0: # from the output so that they don't get included in the library michael@0: # dependencies. michael@0: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' michael@0: ;; michael@0: *) michael@0: if test "$GXX" = yes && test "$with_gnu_ld" = no; then michael@0: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' michael@0: case $host in michael@0: osf3*) michael@0: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' michael@0: ;; michael@0: *) michael@0: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' michael@0: ;; michael@0: esac michael@0: michael@0: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' michael@0: hardcode_libdir_separator_CXX=: michael@0: michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' michael@0: michael@0: else michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: psos*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: michael@0: sunos4*) michael@0: case $cc_basename in michael@0: CC*) michael@0: # Sun C++ 4.x michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: lcc*) michael@0: # Lucid michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: *) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: solaris*) michael@0: case $cc_basename in michael@0: CC*) michael@0: # Sun C++ 4.2, 5.x and Centerline C++ michael@0: archive_cmds_need_lc_CXX=yes michael@0: no_undefined_flag_CXX=' -zdefs' michael@0: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' michael@0: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ michael@0: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' michael@0: michael@0: hardcode_libdir_flag_spec_CXX='-R$libdir' michael@0: hardcode_shlibpath_var_CXX=no michael@0: case $host_os in michael@0: solaris2.[0-5] | solaris2.[0-5].*) ;; michael@0: *) michael@0: # The compiler driver will combine and reorder linker options, michael@0: # but understands `-z linker_flag'. michael@0: # Supported since Solaris 2.6 (maybe 2.5.1?) michael@0: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' michael@0: ;; michael@0: esac michael@0: link_all_deplibs_CXX=yes michael@0: michael@0: output_verbose_link_cmd='echo' michael@0: michael@0: # Archives containing C++ object files must be created using michael@0: # "CC -xar", where "CC" is the Sun C++ compiler. This is michael@0: # necessary to make sure instantiated templates are included michael@0: # in the archive. michael@0: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' michael@0: ;; michael@0: gcx*) michael@0: # Green Hills C++ Compiler michael@0: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' michael@0: michael@0: # The C++ compiler must be used to create the archive. michael@0: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' michael@0: ;; michael@0: *) michael@0: # GNU C++ compiler with Solaris linker michael@0: if test "$GXX" = yes && test "$with_gnu_ld" = no; then michael@0: no_undefined_flag_CXX=' ${wl}-z ${wl}defs' michael@0: if $CC --version | $GREP -v '^2\.7' > /dev/null; then michael@0: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' michael@0: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ michael@0: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' michael@0: michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' michael@0: else michael@0: # g++ 2.7 appears to require `-G' NOT `-shared' on this michael@0: # platform. michael@0: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' michael@0: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ michael@0: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' michael@0: michael@0: # Commands to make compiler produce verbose output that lists michael@0: # what "hidden" libraries, object files and flags are used when michael@0: # linking a shared library. michael@0: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' michael@0: fi michael@0: michael@0: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' michael@0: case $host_os in michael@0: solaris2.[0-5] | solaris2.[0-5].*) ;; michael@0: *) michael@0: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' michael@0: ;; michael@0: esac michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) michael@0: no_undefined_flag_CXX='${wl}-z,text' michael@0: archive_cmds_need_lc_CXX=no michael@0: hardcode_shlibpath_var_CXX=no michael@0: runpath_var='LD_RUN_PATH' michael@0: michael@0: case $cc_basename in michael@0: CC*) michael@0: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: *) michael@0: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: sysv5* | sco3.2v5* | sco5v6*) michael@0: # Note: We can NOT use -z defs as we might desire, because we do not michael@0: # link with -lc, and that would cause any symbols used from libc to michael@0: # always be unresolved, which means just about no library would michael@0: # ever link correctly. If we're not using GNU ld we use -z text michael@0: # though, which does catch some bad symbols but isn't as heavy-handed michael@0: # as -z defs. michael@0: no_undefined_flag_CXX='${wl}-z,text' michael@0: allow_undefined_flag_CXX='${wl}-z,nodefs' michael@0: archive_cmds_need_lc_CXX=no michael@0: hardcode_shlibpath_var_CXX=no michael@0: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' michael@0: hardcode_libdir_separator_CXX=':' michael@0: link_all_deplibs_CXX=yes michael@0: export_dynamic_flag_spec_CXX='${wl}-Bexport' michael@0: runpath_var='LD_RUN_PATH' michael@0: michael@0: case $cc_basename in michael@0: CC*) michael@0: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: *) michael@0: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: tandem*) michael@0: case $cc_basename in michael@0: NCC*) michael@0: # NonStop-UX NCC 3.20 michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: *) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: vxworks*) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: michael@0: *) michael@0: # FIXME: insert proper C++ library support michael@0: ld_shlibs_CXX=no michael@0: ;; michael@0: esac michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 michael@0: $as_echo "$ld_shlibs_CXX" >&6; } michael@0: test "$ld_shlibs_CXX" = no && can_build_shared=no michael@0: michael@0: GCC_CXX="$GXX" michael@0: LD_CXX="$LD" michael@0: michael@0: ## CAVEAT EMPTOR: michael@0: ## There is no encapsulation within the following macros, do not change michael@0: ## the running order or otherwise move them around unless you know exactly michael@0: ## what you are doing... michael@0: # Dependencies to place before and after the object being linked: michael@0: predep_objects_CXX= michael@0: postdep_objects_CXX= michael@0: predeps_CXX= michael@0: postdeps_CXX= michael@0: compiler_lib_search_path_CXX= michael@0: michael@0: cat > conftest.$ac_ext <<_LT_EOF michael@0: class Foo michael@0: { michael@0: public: michael@0: Foo (void) { a = 0; } michael@0: private: michael@0: int a; michael@0: }; michael@0: _LT_EOF michael@0: michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 michael@0: (eval $ac_compile) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then michael@0: # Parse the compiler output and extract the necessary michael@0: # objects, libraries and library flags. michael@0: michael@0: # Sentinel used to keep track of whether or not we are before michael@0: # the conftest object file. michael@0: pre_test_object_deps_done=no michael@0: michael@0: for p in `eval "$output_verbose_link_cmd"`; do michael@0: case $p in michael@0: michael@0: -L* | -R* | -l*) michael@0: # Some compilers place space between "-{L,R}" and the path. michael@0: # Remove the space. michael@0: if test $p = "-L" || michael@0: test $p = "-R"; then michael@0: prev=$p michael@0: continue michael@0: else michael@0: prev= michael@0: fi michael@0: michael@0: if test "$pre_test_object_deps_done" = no; then michael@0: case $p in michael@0: -L* | -R*) michael@0: # Internal compiler library paths should come after those michael@0: # provided the user. The postdeps already come after the michael@0: # user supplied libs so there is no need to process them. michael@0: if test -z "$compiler_lib_search_path_CXX"; then michael@0: compiler_lib_search_path_CXX="${prev}${p}" michael@0: else michael@0: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" michael@0: fi michael@0: ;; michael@0: # The "-l" case would never come before the object being michael@0: # linked, so don't bother handling this case. michael@0: esac michael@0: else michael@0: if test -z "$postdeps_CXX"; then michael@0: postdeps_CXX="${prev}${p}" michael@0: else michael@0: postdeps_CXX="${postdeps_CXX} ${prev}${p}" michael@0: fi michael@0: fi michael@0: ;; michael@0: michael@0: *.$objext) michael@0: # This assumes that the test object file only shows up michael@0: # once in the compiler output. michael@0: if test "$p" = "conftest.$objext"; then michael@0: pre_test_object_deps_done=yes michael@0: continue michael@0: fi michael@0: michael@0: if test "$pre_test_object_deps_done" = no; then michael@0: if test -z "$predep_objects_CXX"; then michael@0: predep_objects_CXX="$p" michael@0: else michael@0: predep_objects_CXX="$predep_objects_CXX $p" michael@0: fi michael@0: else michael@0: if test -z "$postdep_objects_CXX"; then michael@0: postdep_objects_CXX="$p" michael@0: else michael@0: postdep_objects_CXX="$postdep_objects_CXX $p" michael@0: fi michael@0: fi michael@0: ;; michael@0: michael@0: *) ;; # Ignore the rest. michael@0: michael@0: esac michael@0: done michael@0: michael@0: # Clean up. michael@0: rm -f a.out a.exe michael@0: else michael@0: echo "libtool.m4: error: problem compiling CXX test program" michael@0: fi michael@0: michael@0: $RM -f confest.$objext michael@0: michael@0: # PORTME: override above test on systems where it is broken michael@0: case $host_os in michael@0: interix[3-9]*) michael@0: # Interix 3.5 installs completely hosed .la files for C++, so rather than michael@0: # hack all around it, let's just trust "g++" to DTRT. michael@0: predep_objects_CXX= michael@0: postdep_objects_CXX= michael@0: postdeps_CXX= michael@0: ;; michael@0: michael@0: linux*) michael@0: case `$CC -V 2>&1 | sed 5q` in michael@0: *Sun\ C*) michael@0: # Sun C++ 5.9 michael@0: michael@0: # The more standards-conforming stlport4 library is michael@0: # incompatible with the Cstd library. Avoid specifying michael@0: # it if it's in CXXFLAGS. Ignore libCrun as michael@0: # -library=stlport4 depends on it. michael@0: case " $CXX $CXXFLAGS " in michael@0: *" -library=stlport4 "*) michael@0: solaris_use_stlport4=yes michael@0: ;; michael@0: esac michael@0: michael@0: if test "$solaris_use_stlport4" != yes; then michael@0: postdeps_CXX='-library=Cstd -library=Crun' michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: solaris*) michael@0: case $cc_basename in michael@0: CC*) michael@0: # The more standards-conforming stlport4 library is michael@0: # incompatible with the Cstd library. Avoid specifying michael@0: # it if it's in CXXFLAGS. Ignore libCrun as michael@0: # -library=stlport4 depends on it. michael@0: case " $CXX $CXXFLAGS " in michael@0: *" -library=stlport4 "*) michael@0: solaris_use_stlport4=yes michael@0: ;; michael@0: esac michael@0: michael@0: # Adding this requires a known-good setup of shared libraries for michael@0: # Sun compiler versions before 5.6, else PIC objects from an old michael@0: # archive will be linked into the output, leading to subtle bugs. michael@0: if test "$solaris_use_stlport4" != yes; then michael@0: postdeps_CXX='-library=Cstd -library=Crun' michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: case " $postdeps_CXX " in michael@0: *" -lc "*) archive_cmds_need_lc_CXX=no ;; michael@0: esac michael@0: compiler_lib_search_dirs_CXX= michael@0: if test -n "${compiler_lib_search_path_CXX}"; then michael@0: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: lt_prog_compiler_wl_CXX= michael@0: lt_prog_compiler_pic_CXX= michael@0: lt_prog_compiler_static_CXX= michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 michael@0: $as_echo_n "checking for $compiler option to produce PIC... " >&6; } michael@0: michael@0: # C++ specific cases for pic, static, wl, etc. michael@0: if test "$GXX" = yes; then michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_static_CXX='-static' michael@0: michael@0: case $host_os in michael@0: aix*) michael@0: # All AIX code is PIC. michael@0: if test "$host_cpu" = ia64; then michael@0: # AIX 5 now supports IA64 processor michael@0: lt_prog_compiler_static_CXX='-Bstatic' michael@0: fi michael@0: ;; michael@0: michael@0: amigaos*) michael@0: case $host_cpu in michael@0: powerpc) michael@0: # see comment about AmigaOS4 .so support michael@0: lt_prog_compiler_pic_CXX='-fPIC' michael@0: ;; michael@0: m68k) michael@0: # FIXME: we need at least 68020 code to build shared libraries, but michael@0: # adding the `-m68020' flag to GCC prevents building anything better, michael@0: # like `-m68040'. michael@0: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) michael@0: # PIC is the default for these OSes. michael@0: ;; michael@0: mingw* | cygwin* | os2* | pw32* | cegcc*) michael@0: # This hack is so that the source file can tell whether it is being michael@0: # built for inclusion in a dll (and should export symbols for example). michael@0: # Although the cygwin gcc ignores -fPIC, still need this for old-style michael@0: # (--disable-auto-import) libraries michael@0: lt_prog_compiler_pic_CXX='-DDLL_EXPORT' michael@0: ;; michael@0: darwin* | rhapsody*) michael@0: # PIC is the default on this platform michael@0: # Common symbols not allowed in MH_DYLIB files michael@0: lt_prog_compiler_pic_CXX='-fno-common' michael@0: ;; michael@0: *djgpp*) michael@0: # DJGPP does not support shared libraries at all michael@0: lt_prog_compiler_pic_CXX= michael@0: ;; michael@0: interix[3-9]*) michael@0: # Interix 3.x gcc -fpic/-fPIC options generate broken code. michael@0: # Instead, we relocate shared libraries at runtime. michael@0: ;; michael@0: sysv4*MP*) michael@0: if test -d /usr/nec; then michael@0: lt_prog_compiler_pic_CXX=-Kconform_pic michael@0: fi michael@0: ;; michael@0: hpux*) michael@0: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit michael@0: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag michael@0: # sets the default TLS model and affects inlining. michael@0: case $host_cpu in michael@0: hppa*64*) michael@0: ;; michael@0: *) michael@0: lt_prog_compiler_pic_CXX='-fPIC' michael@0: ;; michael@0: esac michael@0: ;; michael@0: *qnx* | *nto*) michael@0: # QNX uses GNU C++, but need to define -shared option too, otherwise michael@0: # it will coredump. michael@0: lt_prog_compiler_pic_CXX='-fPIC -shared' michael@0: ;; michael@0: *) michael@0: lt_prog_compiler_pic_CXX='-fPIC' michael@0: ;; michael@0: esac michael@0: else michael@0: case $host_os in michael@0: aix[4-9]*) michael@0: # All AIX code is PIC. michael@0: if test "$host_cpu" = ia64; then michael@0: # AIX 5 now supports IA64 processor michael@0: lt_prog_compiler_static_CXX='-Bstatic' michael@0: else michael@0: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' michael@0: fi michael@0: ;; michael@0: chorus*) michael@0: case $cc_basename in michael@0: cxch68*) michael@0: # Green Hills C++ Compiler michael@0: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" michael@0: ;; michael@0: esac michael@0: ;; michael@0: dgux*) michael@0: case $cc_basename in michael@0: ec++*) michael@0: lt_prog_compiler_pic_CXX='-KPIC' michael@0: ;; michael@0: ghcx*) michael@0: # Green Hills C++ Compiler michael@0: lt_prog_compiler_pic_CXX='-pic' michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: ;; michael@0: freebsd* | dragonfly*) michael@0: # FreeBSD uses GNU C++ michael@0: ;; michael@0: hpux9* | hpux10* | hpux11*) michael@0: case $cc_basename in michael@0: CC*) michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' michael@0: if test "$host_cpu" != ia64; then michael@0: lt_prog_compiler_pic_CXX='+Z' michael@0: fi michael@0: ;; michael@0: aCC*) michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' michael@0: case $host_cpu in michael@0: hppa*64*|ia64*) michael@0: # +Z the default michael@0: ;; michael@0: *) michael@0: lt_prog_compiler_pic_CXX='+Z' michael@0: ;; michael@0: esac michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: ;; michael@0: interix*) michael@0: # This is c89, which is MS Visual C++ (no shared libs) michael@0: # Anyone wants to do a port? michael@0: ;; michael@0: irix5* | irix6* | nonstopux*) michael@0: case $cc_basename in michael@0: CC*) michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_static_CXX='-non_shared' michael@0: # CC pic flag -KPIC is the default. michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: ;; michael@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) michael@0: case $cc_basename in michael@0: KCC*) michael@0: # KAI C++ Compiler michael@0: lt_prog_compiler_wl_CXX='--backend -Wl,' michael@0: lt_prog_compiler_pic_CXX='-fPIC' michael@0: ;; michael@0: ecpc* ) michael@0: # old Intel C++ for x86_64 which still supported -KPIC. michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_pic_CXX='-KPIC' michael@0: lt_prog_compiler_static_CXX='-static' michael@0: ;; michael@0: icpc* ) michael@0: # Intel C++, used to be incompatible with GCC. michael@0: # ICC 10 doesn't accept -KPIC any more. michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_pic_CXX='-fPIC' michael@0: lt_prog_compiler_static_CXX='-static' michael@0: ;; michael@0: pgCC* | pgcpp*) michael@0: # Portland Group C++ compiler michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_pic_CXX='-fpic' michael@0: lt_prog_compiler_static_CXX='-Bstatic' michael@0: ;; michael@0: cxx*) michael@0: # Compaq C++ michael@0: # Make sure the PIC flag is empty. It appears that all Alpha michael@0: # Linux and Compaq Tru64 Unix objects are PIC. michael@0: lt_prog_compiler_pic_CXX= michael@0: lt_prog_compiler_static_CXX='-non_shared' michael@0: ;; michael@0: xlc* | xlC*) michael@0: # IBM XL 8.0 on PPC michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_pic_CXX='-qpic' michael@0: lt_prog_compiler_static_CXX='-qstaticlink' michael@0: ;; michael@0: *) michael@0: case `$CC -V 2>&1 | sed 5q` in michael@0: *Sun\ C*) michael@0: # Sun C++ 5.9 michael@0: lt_prog_compiler_pic_CXX='-KPIC' michael@0: lt_prog_compiler_static_CXX='-Bstatic' michael@0: lt_prog_compiler_wl_CXX='-Qoption ld ' michael@0: ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: ;; michael@0: lynxos*) michael@0: ;; michael@0: m88k*) michael@0: ;; michael@0: mvs*) michael@0: case $cc_basename in michael@0: cxx*) michael@0: lt_prog_compiler_pic_CXX='-W c,exportall' michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: ;; michael@0: netbsd* | netbsdelf*-gnu) michael@0: ;; michael@0: *qnx* | *nto*) michael@0: # QNX uses GNU C++, but need to define -shared option too, otherwise michael@0: # it will coredump. michael@0: lt_prog_compiler_pic_CXX='-fPIC -shared' michael@0: ;; michael@0: osf3* | osf4* | osf5*) michael@0: case $cc_basename in michael@0: KCC*) michael@0: lt_prog_compiler_wl_CXX='--backend -Wl,' michael@0: ;; michael@0: RCC*) michael@0: # Rational C++ 2.4.1 michael@0: lt_prog_compiler_pic_CXX='-pic' michael@0: ;; michael@0: cxx*) michael@0: # Digital/Compaq C++ michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: # Make sure the PIC flag is empty. It appears that all Alpha michael@0: # Linux and Compaq Tru64 Unix objects are PIC. michael@0: lt_prog_compiler_pic_CXX= michael@0: lt_prog_compiler_static_CXX='-non_shared' michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: ;; michael@0: psos*) michael@0: ;; michael@0: solaris*) michael@0: case $cc_basename in michael@0: CC*) michael@0: # Sun C++ 4.2, 5.x and Centerline C++ michael@0: lt_prog_compiler_pic_CXX='-KPIC' michael@0: lt_prog_compiler_static_CXX='-Bstatic' michael@0: lt_prog_compiler_wl_CXX='-Qoption ld ' michael@0: ;; michael@0: gcx*) michael@0: # Green Hills C++ Compiler michael@0: lt_prog_compiler_pic_CXX='-PIC' michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: ;; michael@0: sunos4*) michael@0: case $cc_basename in michael@0: CC*) michael@0: # Sun C++ 4.x michael@0: lt_prog_compiler_pic_CXX='-pic' michael@0: lt_prog_compiler_static_CXX='-Bstatic' michael@0: ;; michael@0: lcc*) michael@0: # Lucid michael@0: lt_prog_compiler_pic_CXX='-pic' michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: ;; michael@0: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) michael@0: case $cc_basename in michael@0: CC*) michael@0: lt_prog_compiler_wl_CXX='-Wl,' michael@0: lt_prog_compiler_pic_CXX='-KPIC' michael@0: lt_prog_compiler_static_CXX='-Bstatic' michael@0: ;; michael@0: esac michael@0: ;; michael@0: tandem*) michael@0: case $cc_basename in michael@0: NCC*) michael@0: # NonStop-UX NCC 3.20 michael@0: lt_prog_compiler_pic_CXX='-KPIC' michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: ;; michael@0: vxworks*) michael@0: ;; michael@0: *) michael@0: lt_prog_compiler_can_build_shared_CXX=no michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: case $host_os in michael@0: # For platforms which do not support PIC, -DPIC is meaningless: michael@0: *djgpp*) michael@0: lt_prog_compiler_pic_CXX= michael@0: ;; michael@0: *) michael@0: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" michael@0: ;; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 michael@0: $as_echo "$lt_prog_compiler_pic_CXX" >&6; } michael@0: michael@0: michael@0: michael@0: # michael@0: # Check to make sure the PIC flag actually works. michael@0: # michael@0: if test -n "$lt_prog_compiler_pic_CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 michael@0: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } michael@0: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_pic_works_CXX=no michael@0: ac_outfile=conftest.$ac_objext michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" michael@0: # Insert the option either (1) after the last *FLAGS variable, or michael@0: # (2) before a word containing "conftest.", or (3) at the end. michael@0: # Note that $ac_compile itself does not contain backslashes and begins michael@0: # with a dollar sign (not a hyphen), so the echo should work correctly. michael@0: # The option is referenced via a variable to avoid confusing sed. michael@0: lt_compile=`echo "$ac_compile" | $SED \ michael@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ michael@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ michael@0: -e 's:$: $lt_compiler_flag:'` michael@0: (eval echo "\"\$as_me:13599: $lt_compile\"" >&5) michael@0: (eval "$lt_compile" 2>conftest.err) michael@0: ac_status=$? michael@0: cat conftest.err >&5 michael@0: echo "$as_me:13603: \$? = $ac_status" >&5 michael@0: if (exit $ac_status) && test -s "$ac_outfile"; then michael@0: # The compiler can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings other than the usual output. michael@0: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp michael@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 michael@0: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_pic_works_CXX=yes michael@0: fi michael@0: fi michael@0: $RM conftest* michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } michael@0: michael@0: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then michael@0: case $lt_prog_compiler_pic_CXX in michael@0: "" | " "*) ;; michael@0: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; michael@0: esac michael@0: else michael@0: lt_prog_compiler_pic_CXX= michael@0: lt_prog_compiler_can_build_shared_CXX=no michael@0: fi michael@0: michael@0: fi michael@0: michael@0: michael@0: michael@0: # michael@0: # Check to make sure the static flag actually works. michael@0: # michael@0: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 michael@0: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } michael@0: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_static_works_CXX=no michael@0: save_LDFLAGS="$LDFLAGS" michael@0: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" michael@0: echo "$lt_simple_link_test_code" > conftest.$ac_ext michael@0: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then michael@0: # The linker can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings michael@0: if test -s conftest.err; then michael@0: # Append any errors to the config.log. michael@0: cat conftest.err 1>&5 michael@0: $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp michael@0: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 michael@0: if diff conftest.exp conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_static_works_CXX=yes michael@0: fi michael@0: else michael@0: lt_cv_prog_compiler_static_works_CXX=yes michael@0: fi michael@0: fi michael@0: $RM -r conftest* michael@0: LDFLAGS="$save_LDFLAGS" michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } michael@0: michael@0: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then michael@0: : michael@0: else michael@0: lt_prog_compiler_static_CXX= michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 michael@0: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } michael@0: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_c_o_CXX=no michael@0: $RM -r conftest 2>/dev/null michael@0: mkdir conftest michael@0: cd conftest michael@0: mkdir out michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: michael@0: lt_compiler_flag="-o out/conftest2.$ac_objext" michael@0: # Insert the option either (1) after the last *FLAGS variable, or michael@0: # (2) before a word containing "conftest.", or (3) at the end. michael@0: # Note that $ac_compile itself does not contain backslashes and begins michael@0: # with a dollar sign (not a hyphen), so the echo should work correctly. michael@0: lt_compile=`echo "$ac_compile" | $SED \ michael@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ michael@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ michael@0: -e 's:$: $lt_compiler_flag:'` michael@0: (eval echo "\"\$as_me:13698: $lt_compile\"" >&5) michael@0: (eval "$lt_compile" 2>out/conftest.err) michael@0: ac_status=$? michael@0: cat out/conftest.err >&5 michael@0: echo "$as_me:13702: \$? = $ac_status" >&5 michael@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext michael@0: then michael@0: # The compiler can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings michael@0: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp michael@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 michael@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_c_o_CXX=yes michael@0: fi michael@0: fi michael@0: chmod u+w . 2>&5 michael@0: $RM conftest* michael@0: # SGI C++ compiler will create directory out/ii_files/ for michael@0: # template instantiation michael@0: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files michael@0: $RM out/* && rmdir out michael@0: cd .. michael@0: $RM -r conftest michael@0: $RM conftest* michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 michael@0: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } michael@0: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: lt_cv_prog_compiler_c_o_CXX=no michael@0: $RM -r conftest 2>/dev/null michael@0: mkdir conftest michael@0: cd conftest michael@0: mkdir out michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: michael@0: lt_compiler_flag="-o out/conftest2.$ac_objext" michael@0: # Insert the option either (1) after the last *FLAGS variable, or michael@0: # (2) before a word containing "conftest.", or (3) at the end. michael@0: # Note that $ac_compile itself does not contain backslashes and begins michael@0: # with a dollar sign (not a hyphen), so the echo should work correctly. michael@0: lt_compile=`echo "$ac_compile" | $SED \ michael@0: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ michael@0: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ michael@0: -e 's:$: $lt_compiler_flag:'` michael@0: (eval echo "\"\$as_me:13750: $lt_compile\"" >&5) michael@0: (eval "$lt_compile" 2>out/conftest.err) michael@0: ac_status=$? michael@0: cat out/conftest.err >&5 michael@0: echo "$as_me:13754: \$? = $ac_status" >&5 michael@0: if (exit $ac_status) && test -s out/conftest2.$ac_objext michael@0: then michael@0: # The compiler can only warn and ignore the option if not recognized michael@0: # So say no if there are warnings michael@0: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp michael@0: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 michael@0: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then michael@0: lt_cv_prog_compiler_c_o_CXX=yes michael@0: fi michael@0: fi michael@0: chmod u+w . 2>&5 michael@0: $RM conftest* michael@0: # SGI C++ compiler will create directory out/ii_files/ for michael@0: # template instantiation michael@0: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files michael@0: $RM out/* && rmdir out michael@0: cd .. michael@0: $RM -r conftest michael@0: $RM conftest* michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 michael@0: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } michael@0: michael@0: michael@0: michael@0: michael@0: hard_links="nottested" michael@0: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then michael@0: # do not overwrite the value of need_locks provided by the user michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 michael@0: $as_echo_n "checking if we can lock with hard links... " >&6; } michael@0: hard_links=yes michael@0: $RM conftest* michael@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no michael@0: touch conftest.a michael@0: ln conftest.a conftest.b 2>&5 || hard_links=no michael@0: ln conftest.a conftest.b 2>/dev/null && hard_links=no michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 michael@0: $as_echo "$hard_links" >&6; } michael@0: if test "$hard_links" = no; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 michael@0: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} michael@0: need_locks=warn michael@0: fi michael@0: else michael@0: need_locks=no michael@0: fi michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 michael@0: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } michael@0: michael@0: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' michael@0: case $host_os in michael@0: aix[4-9]*) michael@0: # If we're using GNU nm, then we don't want the "-C" option. michael@0: # -C means demangle to AIX nm, but means don't demangle with GNU nm michael@0: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then michael@0: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' michael@0: else michael@0: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' michael@0: fi michael@0: ;; michael@0: pw32*) michael@0: export_symbols_cmds_CXX="$ltdll_cmds" michael@0: ;; michael@0: cygwin* | mingw* | cegcc*) michael@0: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' michael@0: ;; michael@0: linux* | k*bsd*-gnu) michael@0: link_all_deplibs_CXX=no michael@0: ;; michael@0: *) michael@0: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' michael@0: ;; michael@0: esac michael@0: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 michael@0: $as_echo "$ld_shlibs_CXX" >&6; } michael@0: test "$ld_shlibs_CXX" = no && can_build_shared=no michael@0: michael@0: with_gnu_ld_CXX=$with_gnu_ld michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # michael@0: # Do we need to explicitly link libc? michael@0: # michael@0: case "x$archive_cmds_need_lc_CXX" in michael@0: x|xyes) michael@0: # Assume -lc should be added michael@0: archive_cmds_need_lc_CXX=yes michael@0: michael@0: if test "$enable_shared" = yes && test "$GCC" = yes; then michael@0: case $archive_cmds_CXX in michael@0: *'~'*) michael@0: # FIXME: we may have to deal with multi-command sequences. michael@0: ;; michael@0: '$CC '*) michael@0: # Test whether the compiler implicitly links with -lc since on some michael@0: # systems, -lgcc has to come before -lc. If gcc already passes -lc michael@0: # to ld, don't add -lc before -lgcc. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 michael@0: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } michael@0: $RM conftest* michael@0: echo "$lt_simple_compile_test_code" > conftest.$ac_ext michael@0: michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 michael@0: (eval $ac_compile) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } 2>conftest.err; then michael@0: soname=conftest michael@0: lib=conftest michael@0: libobjs=conftest.$ac_objext michael@0: deplibs= michael@0: wl=$lt_prog_compiler_wl_CXX michael@0: pic_flag=$lt_prog_compiler_pic_CXX michael@0: compiler_flags=-v michael@0: linker_flags=-v michael@0: verstring= michael@0: output_objdir=. michael@0: libname=conftest michael@0: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX michael@0: allow_undefined_flag_CXX= michael@0: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 michael@0: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: then michael@0: archive_cmds_need_lc_CXX=no michael@0: else michael@0: archive_cmds_need_lc_CXX=yes michael@0: fi michael@0: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag michael@0: else michael@0: cat conftest.err 1>&5 michael@0: fi michael@0: $RM conftest* michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 michael@0: $as_echo "$archive_cmds_need_lc_CXX" >&6; } michael@0: ;; michael@0: esac michael@0: fi michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 michael@0: $as_echo_n "checking dynamic linker characteristics... " >&6; } michael@0: michael@0: library_names_spec= michael@0: libname_spec='lib$name' michael@0: soname_spec= michael@0: shrext_cmds=".so" michael@0: postinstall_cmds= michael@0: postuninstall_cmds= michael@0: finish_cmds= michael@0: finish_eval= michael@0: shlibpath_var= michael@0: shlibpath_overrides_runpath=unknown michael@0: version_type=none michael@0: dynamic_linker="$host_os ld.so" michael@0: sys_lib_dlsearch_path_spec="/lib /usr/lib" michael@0: need_lib_prefix=unknown michael@0: hardcode_into_libs=no michael@0: michael@0: # when you set need_version to no, make sure it does not cause -set_version michael@0: # flags to be left without arguments michael@0: need_version=unknown michael@0: michael@0: case $host_os in michael@0: aix3*) michael@0: version_type=linux michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' michael@0: shlibpath_var=LIBPATH michael@0: michael@0: # AIX 3 has no versioning support, so we append a major version to the name. michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: ;; michael@0: michael@0: aix[4-9]*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: hardcode_into_libs=yes michael@0: if test "$host_cpu" = ia64; then michael@0: # AIX 5 supports IA64 michael@0: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: else michael@0: # With GCC up to 2.95.x, collect2 would create an import file michael@0: # for dependence libraries. The import file would start with michael@0: # the line `#! .'. This would cause the generated library to michael@0: # depend on `.', always an invalid library. This was fixed in michael@0: # development snapshots of GCC prior to 3.0. michael@0: case $host_os in michael@0: aix4 | aix4.[01] | aix4.[01].*) michael@0: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' michael@0: echo ' yes ' michael@0: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then michael@0: : michael@0: else michael@0: can_build_shared=no michael@0: fi michael@0: ;; michael@0: esac michael@0: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct michael@0: # soname into executable. Probably we can add versioning support to michael@0: # collect2, so additional links can be useful in future. michael@0: if test "$aix_use_runtimelinking" = yes; then michael@0: # If using run time linking (on AIX 4.2 or later) use lib.so michael@0: # instead of lib.a to let people know that these are not michael@0: # typical AIX shared libraries. michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: else michael@0: # We preserve .a as extension for shared libraries through AIX4.2 michael@0: # and later when we are not doing run time linking. michael@0: library_names_spec='${libname}${release}.a $libname.a' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: fi michael@0: shlibpath_var=LIBPATH michael@0: fi michael@0: ;; michael@0: michael@0: amigaos*) michael@0: case $host_cpu in michael@0: powerpc) michael@0: # Since July 2007 AmigaOS4 officially supports .so libraries. michael@0: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: ;; michael@0: m68k) michael@0: library_names_spec='$libname.ixlibrary $libname.a' michael@0: # Create ${libname}_ixlibrary.a entries in /sys/libs. michael@0: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: beos*) michael@0: library_names_spec='${libname}${shared_ext}' michael@0: dynamic_linker="$host_os ld.so" michael@0: shlibpath_var=LIBRARY_PATH michael@0: ;; michael@0: michael@0: bsdi[45]*) michael@0: version_type=linux michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" michael@0: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" michael@0: # the default ld.so.conf also contains /usr/contrib/lib and michael@0: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow michael@0: # libtool to hard-code these into programs michael@0: ;; michael@0: michael@0: cygwin* | mingw* | pw32* | cegcc*) michael@0: version_type=windows michael@0: shrext_cmds=".dll" michael@0: need_version=no michael@0: need_lib_prefix=no michael@0: michael@0: case $GCC,$host_os in michael@0: yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) michael@0: library_names_spec='$libname.dll.a' michael@0: # DLL is installed to $(libdir)/../bin by postinstall_cmds michael@0: postinstall_cmds='base_file=`basename \${file}`~ michael@0: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ michael@0: dldir=$destdir/`dirname \$dlpath`~ michael@0: test -d \$dldir || mkdir -p \$dldir~ michael@0: $install_prog $dir/$dlname \$dldir/$dlname~ michael@0: chmod a+x \$dldir/$dlname~ michael@0: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then michael@0: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; michael@0: fi' michael@0: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ michael@0: dlpath=$dir/\$dldll~ michael@0: $RM \$dlpath' michael@0: shlibpath_overrides_runpath=yes michael@0: michael@0: case $host_os in michael@0: cygwin*) michael@0: # Cygwin DLLs use 'cyg' prefix rather than 'lib' michael@0: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' michael@0: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" michael@0: ;; michael@0: mingw* | cegcc*) michael@0: # MinGW DLLs use traditional 'lib' prefix michael@0: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' michael@0: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` michael@0: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then michael@0: # It is most probably a Windows format PATH printed by michael@0: # mingw gcc, but we are running on Cygwin. Gcc prints its search michael@0: # path with ; separators, and with drive letters. We can handle the michael@0: # drive letters (cygwin fileutils understands them), so leave them, michael@0: # especially as we might pass files found there to a mingw objdump, michael@0: # which wouldn't understand a cygwinified path. Ahh. michael@0: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` michael@0: else michael@0: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` michael@0: fi michael@0: ;; michael@0: pw32*) michael@0: # pw32 DLLs use 'pw' prefix rather than 'lib' michael@0: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: *) michael@0: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' michael@0: ;; michael@0: esac michael@0: dynamic_linker='Win32 ld.exe' michael@0: # FIXME: first we should search . and the directory the executable is in michael@0: shlibpath_var=PATH michael@0: ;; michael@0: michael@0: darwin* | rhapsody*) michael@0: dynamic_linker="$host_os dyld" michael@0: version_type=darwin michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' michael@0: soname_spec='${libname}${release}${major}$shared_ext' michael@0: shlibpath_overrides_runpath=yes michael@0: shlibpath_var=DYLD_LIBRARY_PATH michael@0: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' michael@0: michael@0: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' michael@0: ;; michael@0: michael@0: dgux*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: ;; michael@0: michael@0: freebsd1*) michael@0: dynamic_linker=no michael@0: ;; michael@0: michael@0: freebsd* | dragonfly*) michael@0: # DragonFly does not have aout. When/if they implement a new michael@0: # versioning mechanism, adjust this. michael@0: if test -x /usr/bin/objformat; then michael@0: objformat=`/usr/bin/objformat` michael@0: else michael@0: case $host_os in michael@0: freebsd[123]*) objformat=aout ;; michael@0: *) objformat=elf ;; michael@0: esac michael@0: fi michael@0: version_type=freebsd-$objformat michael@0: case $version_type in michael@0: freebsd-elf*) michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' michael@0: need_version=no michael@0: need_lib_prefix=no michael@0: ;; michael@0: freebsd-*) michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' michael@0: need_version=yes michael@0: ;; michael@0: esac michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: case $host_os in michael@0: freebsd2*) michael@0: shlibpath_overrides_runpath=yes michael@0: ;; michael@0: freebsd3.[01]* | freebsdelf3.[01]*) michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ michael@0: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: *) # from 4.6 on, and DragonFly michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: gnu*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: hpux9* | hpux10* | hpux11*) michael@0: # Give a soname corresponding to the major version so that dld.sl refuses to michael@0: # link against other versions. michael@0: version_type=sunos michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: case $host_cpu in michael@0: ia64*) michael@0: shrext_cmds='.so' michael@0: hardcode_into_libs=yes michael@0: dynamic_linker="$host_os dld.so" michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: if test "X$HPUX_IA64_MODE" = X32; then michael@0: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" michael@0: else michael@0: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" michael@0: fi michael@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec michael@0: ;; michael@0: hppa*64*) michael@0: shrext_cmds='.sl' michael@0: hardcode_into_libs=yes michael@0: dynamic_linker="$host_os dld.sl" michael@0: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH michael@0: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" michael@0: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec michael@0: ;; michael@0: *) michael@0: shrext_cmds='.sl' michael@0: dynamic_linker="$host_os dld.sl" michael@0: shlibpath_var=SHLIB_PATH michael@0: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: ;; michael@0: esac michael@0: # HP-UX runs *really* slowly unless shared libraries are mode 555. michael@0: postinstall_cmds='chmod 555 $lib' michael@0: ;; michael@0: michael@0: interix[3-9]*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: irix5* | irix6* | nonstopux*) michael@0: case $host_os in michael@0: nonstopux*) version_type=nonstopux ;; michael@0: *) michael@0: if test "$lt_cv_prog_gnu_ld" = yes; then michael@0: version_type=linux michael@0: else michael@0: version_type=irix michael@0: fi ;; michael@0: esac michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' michael@0: case $host_os in michael@0: irix5* | nonstopux*) michael@0: libsuff= shlibsuff= michael@0: ;; michael@0: *) michael@0: case $LD in # libtool.m4 will add one of these switches to LD michael@0: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") michael@0: libsuff= shlibsuff= libmagic=32-bit;; michael@0: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") michael@0: libsuff=32 shlibsuff=N32 libmagic=N32;; michael@0: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") michael@0: libsuff=64 shlibsuff=64 libmagic=64-bit;; michael@0: *) libsuff= shlibsuff= libmagic=never-match;; michael@0: esac michael@0: ;; michael@0: esac michael@0: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH michael@0: shlibpath_overrides_runpath=no michael@0: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" michael@0: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: # No shared lib support for Linux oldld, aout, or coff. michael@0: linux*oldld* | linux*aout* | linux*coff*) michael@0: dynamic_linker=no michael@0: ;; michael@0: michael@0: # This must be Linux ELF. michael@0: linux* | k*bsd*-gnu | kopensolaris*-gnu) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: # Some binutils ld are patched to set DT_RUNPATH michael@0: save_LDFLAGS=$LDFLAGS michael@0: save_libdir=$libdir michael@0: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ michael@0: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : michael@0: shlibpath_overrides_runpath=yes michael@0: fi michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LDFLAGS=$save_LDFLAGS michael@0: libdir=$save_libdir michael@0: michael@0: # This implies no fast_install, which is unacceptable. michael@0: # Some rework will be needed to allow for fast_install michael@0: # before this can be enabled. michael@0: hardcode_into_libs=yes michael@0: michael@0: # Append ld.so.conf contents to the search path michael@0: if test -f /etc/ld.so.conf; then michael@0: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` michael@0: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" michael@0: fi michael@0: michael@0: # We used to test for /lib/ld.so.1 and disable shared libraries on michael@0: # powerpc, because MkLinux only supported shared libraries with the michael@0: # GNU dynamic linker. Since this was broken with cross compilers, michael@0: # most powerpc-linux boxes support dynamic linking these days and michael@0: # people can always --disable-shared, the test was removed, and we michael@0: # assume the GNU/Linux dynamic linker is in use. michael@0: dynamic_linker='GNU/Linux ld.so' michael@0: ;; michael@0: michael@0: netbsdelf*-gnu) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: dynamic_linker='NetBSD ld.elf_so' michael@0: ;; michael@0: michael@0: netbsd*) michael@0: version_type=sunos michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' michael@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' michael@0: dynamic_linker='NetBSD (a.out) ld.so' michael@0: else michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: dynamic_linker='NetBSD ld.elf_so' michael@0: fi michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: newsos6) michael@0: version_type=linux michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: ;; michael@0: michael@0: *nto* | *qnx*) michael@0: version_type=qnx michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: dynamic_linker='ldqnx.so' michael@0: ;; michael@0: michael@0: openbsd*) michael@0: version_type=sunos michael@0: sys_lib_dlsearch_path_spec="/usr/lib" michael@0: need_lib_prefix=no michael@0: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. michael@0: case $host_os in michael@0: openbsd3.3 | openbsd3.3.*) need_version=yes ;; michael@0: *) need_version=no ;; michael@0: esac michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' michael@0: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then michael@0: case $host_os in michael@0: openbsd2.[89] | openbsd2.[89].*) michael@0: shlibpath_overrides_runpath=no michael@0: ;; michael@0: *) michael@0: shlibpath_overrides_runpath=yes michael@0: ;; michael@0: esac michael@0: else michael@0: shlibpath_overrides_runpath=yes michael@0: fi michael@0: ;; michael@0: michael@0: os2*) michael@0: libname_spec='$name' michael@0: shrext_cmds=".dll" michael@0: need_lib_prefix=no michael@0: library_names_spec='$libname${shared_ext} $libname.a' michael@0: dynamic_linker='OS/2 ld.exe' michael@0: shlibpath_var=LIBPATH michael@0: ;; michael@0: michael@0: osf3* | osf4* | osf5*) michael@0: version_type=osf michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" michael@0: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" michael@0: ;; michael@0: michael@0: rdos*) michael@0: dynamic_linker=no michael@0: ;; michael@0: michael@0: solaris*) michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: # ldd complains unless libraries are executable michael@0: postinstall_cmds='chmod +x $lib' michael@0: ;; michael@0: michael@0: sunos4*) michael@0: version_type=sunos michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' michael@0: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: if test "$with_gnu_ld" = yes; then michael@0: need_lib_prefix=no michael@0: fi michael@0: need_version=yes michael@0: ;; michael@0: michael@0: sysv4 | sysv4.3*) michael@0: version_type=linux michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: case $host_vendor in michael@0: sni) michael@0: shlibpath_overrides_runpath=no michael@0: need_lib_prefix=no michael@0: runpath_var=LD_RUN_PATH michael@0: ;; michael@0: siemens) michael@0: need_lib_prefix=no michael@0: ;; michael@0: motorola) michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: shlibpath_overrides_runpath=no michael@0: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' michael@0: ;; michael@0: esac michael@0: ;; michael@0: michael@0: sysv4*MP*) michael@0: if test -d /usr/nec ;then michael@0: version_type=linux michael@0: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' michael@0: soname_spec='$libname${shared_ext}.$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: fi michael@0: ;; michael@0: michael@0: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) michael@0: version_type=freebsd-elf michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=yes michael@0: hardcode_into_libs=yes michael@0: if test "$with_gnu_ld" = yes; then michael@0: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' michael@0: else michael@0: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' michael@0: case $host_os in michael@0: sco3.2v5*) michael@0: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" michael@0: ;; michael@0: esac michael@0: fi michael@0: sys_lib_dlsearch_path_spec='/usr/lib' michael@0: ;; michael@0: michael@0: tpf*) michael@0: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. michael@0: version_type=linux michael@0: need_lib_prefix=no michael@0: need_version=no michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: shlibpath_overrides_runpath=no michael@0: hardcode_into_libs=yes michael@0: ;; michael@0: michael@0: uts4*) michael@0: version_type=linux michael@0: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' michael@0: soname_spec='${libname}${release}${shared_ext}$major' michael@0: shlibpath_var=LD_LIBRARY_PATH michael@0: ;; michael@0: michael@0: *) michael@0: dynamic_linker=no michael@0: ;; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 michael@0: $as_echo "$dynamic_linker" >&6; } michael@0: test "$dynamic_linker" = no && can_build_shared=no michael@0: michael@0: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" michael@0: if test "$GCC" = yes; then michael@0: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" michael@0: fi michael@0: michael@0: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then michael@0: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" michael@0: fi michael@0: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then michael@0: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 michael@0: $as_echo_n "checking how to hardcode library paths into programs... " >&6; } michael@0: hardcode_action_CXX= michael@0: if test -n "$hardcode_libdir_flag_spec_CXX" || michael@0: test -n "$runpath_var_CXX" || michael@0: test "X$hardcode_automatic_CXX" = "Xyes" ; then michael@0: michael@0: # We can hardcode non-existent directories. michael@0: if test "$hardcode_direct_CXX" != no && michael@0: # If the only mechanism to avoid hardcoding is shlibpath_var, we michael@0: # have to relink, otherwise we might link with an installed library michael@0: # when we should be linking with a yet-to-be-installed one michael@0: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && michael@0: test "$hardcode_minus_L_CXX" != no; then michael@0: # Linking always hardcodes the temporary library directory. michael@0: hardcode_action_CXX=relink michael@0: else michael@0: # We can link without hardcoding, and we can hardcode nonexisting dirs. michael@0: hardcode_action_CXX=immediate michael@0: fi michael@0: else michael@0: # We cannot hardcode anything, or else we can only hardcode existing michael@0: # directories. michael@0: hardcode_action_CXX=unsupported michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 michael@0: $as_echo "$hardcode_action_CXX" >&6; } michael@0: michael@0: if test "$hardcode_action_CXX" = relink || michael@0: test "$inherit_rpath_CXX" = yes; then michael@0: # Fast installation is not supported michael@0: enable_fast_install=no michael@0: elif test "$shlibpath_overrides_runpath" = yes || michael@0: test "$enable_shared" = no; then michael@0: # Fast installation is not necessary michael@0: enable_fast_install=needless michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: fi # test -n "$compiler" michael@0: michael@0: CC=$lt_save_CC michael@0: LDCXX=$LD michael@0: LD=$lt_save_LD michael@0: GCC=$lt_save_GCC michael@0: with_gnu_ld=$lt_save_with_gnu_ld michael@0: lt_cv_path_LDCXX=$lt_cv_path_LD michael@0: lt_cv_path_LD=$lt_save_path_LD michael@0: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld michael@0: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld michael@0: fi # test "$_lt_caught_CXX_error" != yes michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: ac_config_commands="$ac_config_commands libtool" michael@0: michael@0: michael@0: michael@0: michael@0: # Only expand once: michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether some low-level functions/files are available michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 michael@0: $as_echo_n "checking for ANSI C header files... " >&6; } michael@0: if test "${ac_cv_header_stdc+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_header_stdc=yes michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "memchr" >/dev/null 2>&1; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "free" >/dev/null 2>&1; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. michael@0: if test "$cross_compiling" = yes; then : michael@0: : michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #if ((' ' & 0x0FF) == 0x020) michael@0: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') michael@0: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) michael@0: #else michael@0: # define ISLOWER(c) \ michael@0: (('a' <= (c) && (c) <= 'i') \ michael@0: || ('j' <= (c) && (c) <= 'r') \ michael@0: || ('s' <= (c) && (c) <= 'z')) michael@0: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) michael@0: #endif michael@0: michael@0: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) michael@0: int michael@0: main () michael@0: { michael@0: int i; michael@0: for (i = 0; i < 256; i++) michael@0: if (XOR (islower (i), ISLOWER (i)) michael@0: || toupper (i) != TOUPPER (i)) michael@0: return 2; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_run "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 michael@0: $as_echo "$ac_cv_header_stdc" >&6; } michael@0: if test $ac_cv_header_stdc = yes; then michael@0: michael@0: $as_echo "#define STDC_HEADERS 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: michael@0: # These are tested for by AC_HEADER_STDC, but I check again to set the var michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_stdint_h" = x""yes; then : michael@0: ac_cv_have_stdint_h=1 michael@0: else michael@0: ac_cv_have_stdint_h=0 michael@0: fi michael@0: michael@0: michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_sys_types_h" = x""yes; then : michael@0: ac_cv_have_systypes_h=1 michael@0: else michael@0: ac_cv_have_systypes_h=0 michael@0: fi michael@0: michael@0: michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_inttypes_h" = x""yes; then : michael@0: ac_cv_have_inttypes_h=1 michael@0: else michael@0: ac_cv_have_inttypes_h=0 michael@0: fi michael@0: michael@0: michael@0: for ac_header in unistd.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_unistd_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_UNISTD_H 1 michael@0: _ACEOF michael@0: ac_cv_have_unistd_h=1 michael@0: else michael@0: ac_cv_have_unistd_h=0 michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in syscall.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_syscall_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_SYSCALL_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in sys/syscall.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_sys_syscall_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_SYS_SYSCALL_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: # For backtrace with glibc. michael@0: for ac_header in execinfo.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_execinfo_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_EXECINFO_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: # For backtrace with libunwind. michael@0: for ac_header in libunwind.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_libunwind_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_LIBUNWIND_H 1 michael@0: _ACEOF michael@0: ac_cv_have_libunwind_h=1 michael@0: else michael@0: ac_cv_have_libunwind_h=0 michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in ucontext.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_ucontext_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_UCONTEXT_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in sys/utsname.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_sys_utsname_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_SYS_UTSNAME_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in pwd.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_pwd_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_PWD_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in syslog.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_syslog_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_SYSLOG_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in sys/time.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_sys_time_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_SYS_TIME_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in glob.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_glob_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_GLOB_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: michael@0: # The cast to long int works around a bug in the HP C Compiler michael@0: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects michael@0: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. michael@0: # This bug is HP SR number 8606223364. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 michael@0: $as_echo_n "checking size of void *... " >&6; } michael@0: if test "${ac_cv_sizeof_void_p+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : michael@0: michael@0: else michael@0: if test "$ac_cv_type_void_p" = yes; then michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: { as_fn_set_status 77 michael@0: as_fn_error "cannot compute sizeof (void *) michael@0: See \`config.log' for more details." "$LINENO" 5; }; } michael@0: else michael@0: ac_cv_sizeof_void_p=0 michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 michael@0: $as_echo "$ac_cv_sizeof_void_p" >&6; } michael@0: michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p michael@0: _ACEOF michael@0: michael@0: michael@0: michael@0: # These are the types I need. We look for them in either stdint.h, michael@0: # sys/types.h, or inttypes.h, all of which are part of the default-includes. michael@0: ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_uint16_t" = x""yes; then : michael@0: ac_cv_have_uint16_t=1 michael@0: else michael@0: ac_cv_have_uint16_t=0 michael@0: fi michael@0: michael@0: ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_u_int16_t" = x""yes; then : michael@0: ac_cv_have_u_int16_t=1 michael@0: else michael@0: ac_cv_have_u_int16_t=0 michael@0: fi michael@0: michael@0: ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default" michael@0: if test "x$ac_cv_type___uint16" = x""yes; then : michael@0: ac_cv_have___uint16=1 michael@0: else michael@0: ac_cv_have___uint16=0 michael@0: fi michael@0: michael@0: michael@0: ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack" michael@0: if test "x$ac_cv_func_sigaltstack" = x""yes; then : michael@0: michael@0: $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" michael@0: if test "x$ac_cv_func_dladdr" = x""yes; then : michael@0: michael@0: $as_echo "#define HAVE_DLADDR 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" michael@0: if test "x$ac_cv_func_fcntl" = x""yes; then : michael@0: michael@0: $as_echo "#define HAVE_FCNTL 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 michael@0: $as_echo_n "checking for __attribute__... " >&6; } michael@0: if test "${ac_cv___attribute__+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: static void foo(void) __attribute__ ((unused)); michael@0: void foo(void) { exit(1); } michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv___attribute__=yes michael@0: else michael@0: ac_cv___attribute__=no michael@0: michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: michael@0: if test "$ac_cv___attribute__" = "yes"; then michael@0: michael@0: $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 michael@0: $as_echo "$ac_cv___attribute__" >&6; } michael@0: michael@0: # We only care about these two attributes. michael@0: if test x"$ac_cv___attribute__" = x"yes"; then michael@0: ac_cv___attribute___noreturn="__attribute__ ((noreturn))" michael@0: ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))" michael@0: else michael@0: ac_cv___attribute___noreturn= michael@0: ac_cv___attribute___printf_4_5= michael@0: fi michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 michael@0: $as_echo_n "checking for __builtin_expect... " >&6; } michael@0: if test "${ac_cv___builtin_expect+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; } michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv___builtin_expect=yes michael@0: else michael@0: ac_cv___builtin_expect=no michael@0: michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: michael@0: if test "$ac_cv___builtin_expect" = "yes"; then michael@0: michael@0: $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5 michael@0: $as_echo "$ac_cv___builtin_expect" >&6; } michael@0: michael@0: if test x"$ac_cv___builtin_expect" = x"yes"; then michael@0: ac_cv_have___builtin_expect=1 michael@0: else michael@0: ac_cv_have___builtin_expect=0 michael@0: fi michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5 michael@0: $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; } michael@0: if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; } michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: ac_cv___sync_val_compare_and_swap=yes michael@0: else michael@0: ac_cv___sync_val_compare_and_swap=no michael@0: michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: michael@0: if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then michael@0: michael@0: $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5 michael@0: $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; } michael@0: michael@0: michael@0: # On x86_64, instead of libunwind, we can choose to compile with frame-pointers michael@0: # (This isn't needed on i386, where -fno-omit-frame-pointer is the default). michael@0: # Check whether --enable-frame_pointers was given. michael@0: if test "${enable_frame_pointers+set}" = set; then : michael@0: enableval=$enable_frame_pointers; michael@0: else michael@0: enable_frame_pointers=no michael@0: fi michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return __x86_64__ == 1 ? 0 : 1 michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: is_x86_64=yes michael@0: else michael@0: is_x86_64=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: if test "$enable_frame_pointers" = yes; then michael@0: ENABLE_FRAME_POINTERS_TRUE= michael@0: ENABLE_FRAME_POINTERS_FALSE='#' michael@0: else michael@0: ENABLE_FRAME_POINTERS_TRUE='#' michael@0: ENABLE_FRAME_POINTERS_FALSE= michael@0: fi michael@0: michael@0: if test "$is_x86_64" = yes; then michael@0: X86_64_TRUE= michael@0: X86_64_FALSE='#' michael@0: else michael@0: X86_64_TRUE='#' michael@0: X86_64_FALSE= michael@0: fi michael@0: michael@0: michael@0: # Some of the code in this directory depends on pthreads michael@0: michael@0: michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: acx_pthread_ok=no michael@0: michael@0: # We used to check for pthread.h first, but this fails if pthread.h michael@0: # requires special compiler flags (e.g. on True64 or Sequent). michael@0: # It gets checked for in the link test anyway. michael@0: michael@0: # First of all, check if the user has set any of the PTHREAD_LIBS, michael@0: # etcetera environment variables, and if threads linking works using michael@0: # them: michael@0: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then michael@0: save_CFLAGS="$CFLAGS" michael@0: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" michael@0: save_LIBS="$LIBS" michael@0: LIBS="$PTHREAD_LIBS $LIBS" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 michael@0: $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char pthread_join (); michael@0: int michael@0: main () michael@0: { michael@0: return pthread_join (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: acx_pthread_ok=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 michael@0: $as_echo "$acx_pthread_ok" >&6; } michael@0: if test x"$acx_pthread_ok" = xno; then michael@0: PTHREAD_LIBS="" michael@0: PTHREAD_CFLAGS="" michael@0: fi michael@0: LIBS="$save_LIBS" michael@0: CFLAGS="$save_CFLAGS" michael@0: fi michael@0: michael@0: # We must check for the threads library under a number of different michael@0: # names; the ordering is very important because some systems michael@0: # (e.g. DEC) have both -lpthread and -lpthreads, where one of the michael@0: # libraries is broken (non-POSIX). michael@0: michael@0: # Create a list of thread flags to try. Items starting with a "-" are michael@0: # C compiler flags, and other items are library names, except for "none" michael@0: # which indicates that we try without any flags at all, and "pthread-config" michael@0: # which is a program returning the flags for the Pth emulation library. michael@0: michael@0: acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" michael@0: michael@0: # The ordering *is* (sometimes) important. Some notes on the michael@0: # individual items follow: michael@0: michael@0: # pthreads: AIX (must check this before -lpthread) michael@0: # none: in case threads are in libc; should be tried before -Kthread and michael@0: # other compiler flags to prevent continual compiler warnings michael@0: # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) michael@0: # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) michael@0: # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) michael@0: # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) michael@0: # -pthreads: Solaris/gcc michael@0: # -mthreads: Mingw32/gcc, Lynx/gcc michael@0: # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it michael@0: # doesn't hurt to check since this sometimes defines pthreads too; michael@0: # also defines -D_REENTRANT) michael@0: # ... -mt is also the pthreads flag for HP/aCC michael@0: # pthread: Linux, etcetera michael@0: # --thread-safe: KAI C++ michael@0: # pthread-config: use pthread-config program (for GNU Pth library) michael@0: michael@0: case "${host_cpu}-${host_os}" in michael@0: *solaris*) michael@0: michael@0: # On Solaris (at least, for some versions), libc contains stubbed michael@0: # (non-functional) versions of the pthreads routines, so link-based michael@0: # tests will erroneously succeed. (We need to link with -pthreads/-mt/ michael@0: # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather michael@0: # a function called by this macro, so we could check for that, but michael@0: # who knows whether they'll stub that too in a future libc.) So, michael@0: # we'll just look for -pthreads and -lpthread first: michael@0: michael@0: acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" michael@0: ;; michael@0: esac michael@0: michael@0: if test x"$acx_pthread_ok" = xno; then michael@0: for flag in $acx_pthread_flags; do michael@0: michael@0: case $flag in michael@0: none) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 michael@0: $as_echo_n "checking whether pthreads work without any flags... " >&6; } michael@0: ;; michael@0: michael@0: -*) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 michael@0: $as_echo_n "checking whether pthreads work with $flag... " >&6; } michael@0: PTHREAD_CFLAGS="$flag" michael@0: ;; michael@0: michael@0: pthread-config) michael@0: # Extract the first word of "pthread-config", so it can be a program name with args. michael@0: set dummy pthread-config; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_acx_pthread_config+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$acx_pthread_config"; then michael@0: ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_acx_pthread_config="yes" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" michael@0: fi michael@0: fi michael@0: acx_pthread_config=$ac_cv_prog_acx_pthread_config michael@0: if test -n "$acx_pthread_config"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 michael@0: $as_echo "$acx_pthread_config" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: if test x"$acx_pthread_config" = xno; then continue; fi michael@0: PTHREAD_CFLAGS="`pthread-config --cflags`" michael@0: PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" michael@0: ;; michael@0: michael@0: *) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 michael@0: $as_echo_n "checking for the pthreads library -l$flag... " >&6; } michael@0: PTHREAD_LIBS="-l$flag" michael@0: ;; michael@0: esac michael@0: michael@0: save_LIBS="$LIBS" michael@0: save_CFLAGS="$CFLAGS" michael@0: LIBS="$PTHREAD_LIBS $LIBS" michael@0: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" michael@0: michael@0: # Check for various functions. We must include pthread.h, michael@0: # since some functions may be macros. (On the Sequent, we michael@0: # need a special flag -Kthread to make this header compile.) michael@0: # We check for pthread_join because it is in -lpthread on IRIX michael@0: # while pthread_create is in libc. We check for pthread_attr_init michael@0: # due to DEC craziness with -lpthreads. We check for michael@0: # pthread_cleanup_push because it is one of the few pthread michael@0: # functions on Solaris that doesn't have a non-functional libc stub. michael@0: # We try pthread_create on general principles. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: pthread_t th; pthread_join(th, 0); michael@0: pthread_attr_init(0); pthread_cleanup_push(0, 0); michael@0: pthread_create(0,0,0,0); pthread_cleanup_pop(0); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: acx_pthread_ok=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: michael@0: LIBS="$save_LIBS" michael@0: CFLAGS="$save_CFLAGS" michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 michael@0: $as_echo "$acx_pthread_ok" >&6; } michael@0: if test "x$acx_pthread_ok" = xyes; then michael@0: break; michael@0: fi michael@0: michael@0: PTHREAD_LIBS="" michael@0: PTHREAD_CFLAGS="" michael@0: done michael@0: fi michael@0: michael@0: # Various other checks: michael@0: if test "x$acx_pthread_ok" = xyes; then michael@0: save_LIBS="$LIBS" michael@0: LIBS="$PTHREAD_LIBS $LIBS" michael@0: save_CFLAGS="$CFLAGS" michael@0: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" michael@0: michael@0: # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 michael@0: $as_echo_n "checking for joinable pthread attribute... " >&6; } michael@0: attr_name=unknown michael@0: for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: int attr=$attr; return attr; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: attr_name=$attr; break michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: done michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 michael@0: $as_echo "$attr_name" >&6; } michael@0: if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PTHREAD_CREATE_JOINABLE $attr_name michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 michael@0: $as_echo_n "checking if more special flags are required for pthreads... " >&6; } michael@0: flag=no michael@0: case "${host_cpu}-${host_os}" in michael@0: *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; michael@0: *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 michael@0: $as_echo "${flag}" >&6; } michael@0: if test "x$flag" != xno; then michael@0: PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" michael@0: fi michael@0: michael@0: LIBS="$save_LIBS" michael@0: CFLAGS="$save_CFLAGS" michael@0: # More AIX lossage: must compile with xlc_r or cc_r michael@0: if test x"$GCC" != xyes; then michael@0: for ac_prog in xlc_r cc_r michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$PTHREAD_CC"; then michael@0: ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_PTHREAD_CC="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: PTHREAD_CC=$ac_cv_prog_PTHREAD_CC michael@0: if test -n "$PTHREAD_CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 michael@0: $as_echo "$PTHREAD_CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$PTHREAD_CC" && break michael@0: done michael@0: test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" michael@0: michael@0: else michael@0: PTHREAD_CC=$CC michael@0: fi michael@0: michael@0: # The next part tries to detect GCC inconsistency with -shared on some michael@0: # architectures and systems. The problem is that in certain michael@0: # configurations, when -shared is specified, GCC "forgets" to michael@0: # internally use various flags which are still necessary. michael@0: michael@0: # michael@0: # Prepare the flags michael@0: # michael@0: save_CFLAGS="$CFLAGS" michael@0: save_LIBS="$LIBS" michael@0: save_CC="$CC" michael@0: michael@0: # Try with the flags determined by the earlier checks. michael@0: # michael@0: # -Wl,-z,defs forces link-time symbol resolution, so that the michael@0: # linking checks with -shared actually have any value michael@0: # michael@0: # FIXME: -fPIC is required for -shared on many architectures, michael@0: # so we specify it here, but the right way would probably be to michael@0: # properly detect whether it is actually required. michael@0: CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" michael@0: LIBS="$PTHREAD_LIBS $LIBS" michael@0: CC="$PTHREAD_CC" michael@0: michael@0: # In order not to create several levels of indentation, we test michael@0: # the value of "$done" until we find the cure or run out of ideas. michael@0: done="no" michael@0: michael@0: # First, make sure the CFLAGS we added are actually accepted by our michael@0: # compiler. If not (and OS X's ld, for instance, does not accept -z), michael@0: # then we can't do this test. michael@0: if test x"$done" = xno; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 michael@0: $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: michael@0: else michael@0: done=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: michael@0: if test "x$done" = xyes ; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: fi michael@0: fi michael@0: michael@0: if test x"$done" = xno; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 michael@0: $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: pthread_t th; pthread_join(th, 0); michael@0: pthread_attr_init(0); pthread_cleanup_push(0, 0); michael@0: pthread_create(0,0,0,0); pthread_cleanup_pop(0); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: done=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: michael@0: if test "x$done" = xyes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: fi michael@0: michael@0: # michael@0: # Linux gcc on some architectures such as mips/mipsel forgets michael@0: # about -lpthread michael@0: # michael@0: if test x"$done" = xno; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 michael@0: $as_echo_n "checking whether -lpthread fixes that... " >&6; } michael@0: LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: pthread_t th; pthread_join(th, 0); michael@0: pthread_attr_init(0); pthread_cleanup_push(0, 0); michael@0: pthread_create(0,0,0,0); pthread_cleanup_pop(0); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: done=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: michael@0: if test "x$done" = xyes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: fi michael@0: # michael@0: # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc michael@0: # michael@0: if test x"$done" = xno; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 michael@0: $as_echo_n "checking whether -lc_r fixes that... " >&6; } michael@0: LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: pthread_t th; pthread_join(th, 0); michael@0: pthread_attr_init(0); pthread_cleanup_push(0, 0); michael@0: pthread_create(0,0,0,0); pthread_cleanup_pop(0); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: done=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: michael@0: if test "x$done" = xyes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: fi michael@0: if test x"$done" = xno; then michael@0: # OK, we have run out of ideas michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 michael@0: $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} michael@0: michael@0: # so it's not safe to assume that we may use pthreads michael@0: acx_pthread_ok=no michael@0: fi michael@0: michael@0: CFLAGS="$save_CFLAGS" michael@0: LIBS="$save_LIBS" michael@0: CC="$save_CC" michael@0: else michael@0: PTHREAD_CC="$CC" michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: michael@0: if test x"$acx_pthread_ok" = xyes; then michael@0: michael@0: $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h michael@0: michael@0: : michael@0: else michael@0: acx_pthread_ok=no michael@0: michael@0: fi michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: michael@0: if test x"$acx_pthread_ok" = x"yes"; then michael@0: # To make libglog depend on libpthread on Linux, we need to add michael@0: # -lpthread in addition to -pthread. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 michael@0: $as_echo_n "checking for pthread_self in -lpthread... " >&6; } michael@0: if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lpthread $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char pthread_self (); michael@0: int michael@0: main () michael@0: { michael@0: return pthread_self (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: ac_cv_lib_pthread_pthread_self=yes michael@0: else michael@0: ac_cv_lib_pthread_pthread_self=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 michael@0: $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } michael@0: if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_LIBPTHREAD 1 michael@0: _ACEOF michael@0: michael@0: LIBS="-lpthread $LIBS" michael@0: michael@0: fi michael@0: michael@0: fi michael@0: michael@0: # Check if there is google-gflags library installed. michael@0: SAVE_CFLAGS="$CFLAGS" michael@0: SAVE_LIBS="$LIBS" michael@0: michael@0: # Check whether --with-gflags was given. michael@0: if test "${with_gflags+set}" = set; then : michael@0: withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include" michael@0: GFLAGS_LIBS="-L${with_gflags}/lib -lgflags" michael@0: CFLAGS="$CFLAGS $GFLAGS_CFLAGS" michael@0: LIBS="$LIBS $GFLAGS_LIBS" michael@0: michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5 michael@0: $as_echo_n "checking for main in -lgflags... " >&6; } michael@0: if test "${ac_cv_lib_gflags_main+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lgflags $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return main (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: ac_cv_lib_gflags_main=yes michael@0: else michael@0: ac_cv_lib_gflags_main=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5 michael@0: $as_echo "$ac_cv_lib_gflags_main" >&6; } michael@0: if test "x$ac_cv_lib_gflags_main" = x""yes; then : michael@0: ac_cv_have_libgflags=1 michael@0: else michael@0: ac_cv_have_libgflags=0 michael@0: fi michael@0: michael@0: if test x"$ac_cv_have_libgflags" = x"1"; then michael@0: michael@0: $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h michael@0: michael@0: if test x"$GFLAGS_LIBS" = x""; then michael@0: GFLAGS_LIBS="-lgflags" michael@0: fi michael@0: else michael@0: GFLAGS_CFLAGS= michael@0: GFLAGS_LIBS= michael@0: fi michael@0: CFLAGS="$SAVE_CFLAGS" michael@0: LIBS="$SAVE_LIBS" michael@0: michael@0: # TODO(hamaji): Use official m4 macros provided by testing libraries michael@0: # once the m4 macro of Google Mocking becomes ready. michael@0: # Check if there is Google Test library installed. michael@0: # Extract the first word of "gtest-config", so it can be a program name with args. michael@0: set dummy gtest-config; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$GTEST_CONFIG"; then michael@0: ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_GTEST_CONFIG=""yes"" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG michael@0: if test -n "$GTEST_CONFIG"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 michael@0: $as_echo "$GTEST_CONFIG" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: if test x"$GTEST_CONFIG" = "xyes"; then michael@0: GTEST_CFLAGS=`gtest-config --cppflags --cxxflags` michael@0: GTEST_LIBS=`gtest-config --ldflags --libs` michael@0: michael@0: $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h michael@0: michael@0: michael@0: # Check if there is Google Mocking library installed. michael@0: # Extract the first word of "gmock-config", so it can be a program name with args. michael@0: set dummy gmock-config; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$GMOCK_CONFIG"; then michael@0: ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_GMOCK_CONFIG=""yes"" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG michael@0: if test -n "$GMOCK_CONFIG"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5 michael@0: $as_echo "$GMOCK_CONFIG" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: if test x"$GMOCK_CONFIG" = "xyes"; then michael@0: GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags` michael@0: GMOCK_LIBS=`gmock-config --ldflags --libs` michael@0: michael@0: $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h michael@0: michael@0: else michael@0: # We don't run test cases which use Google Mocking framework. michael@0: GMOCK_CFLAGS= michael@0: GMOCK_LIBS= michael@0: fi michael@0: else michael@0: # We'll use src/googletest.h for our unittests. michael@0: GTEST_CFLAGS= michael@0: GTEST_LIBS= michael@0: fi michael@0: if test x"$GMOCK_CONFIG" = "xyes"; then michael@0: HAVE_GMOCK_TRUE= michael@0: HAVE_GMOCK_FALSE='#' michael@0: else michael@0: HAVE_GMOCK_TRUE='#' michael@0: HAVE_GMOCK_FALSE= michael@0: fi michael@0: michael@0: michael@0: # We want to link in libunwind if it exists michael@0: UNWIND_LIBS= michael@0: # Unfortunately, we need to check the header file in addition to the michael@0: # lib file to check if libunwind is available since libunwind-0.98 michael@0: # doesn't install all necessary header files. michael@0: if test x"$ac_cv_have_libunwind_h" = x"1"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5 michael@0: $as_echo_n "checking for backtrace in -lunwind... " >&6; } michael@0: if test "${ac_cv_lib_unwind_backtrace+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lunwind $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char backtrace (); michael@0: int michael@0: main () michael@0: { michael@0: return backtrace (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: ac_cv_lib_unwind_backtrace=yes michael@0: else michael@0: ac_cv_lib_unwind_backtrace=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5 michael@0: $as_echo "$ac_cv_lib_unwind_backtrace" >&6; } michael@0: if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then : michael@0: UNWIND_LIBS=-lunwind michael@0: fi michael@0: michael@0: fi michael@0: michael@0: if test x"$UNWIND_LIBS" != x""; then michael@0: michael@0: $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: # We'd like to use read/write locks in several places in the code. michael@0: # See if our pthreads support extends to that. Note: for linux, it michael@0: # does as long as you define _XOPEN_SOURCE appropriately. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5 michael@0: $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; } michael@0: if test "${ac_cv_rwlock+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #define _XOPEN_SOURCE 500 michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: pthread_rwlock_t l; pthread_rwlock_init(&l, NULL); michael@0: pthread_rwlock_rdlock(&l); michael@0: return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_rwlock=yes michael@0: else michael@0: ac_cv_rwlock=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5 michael@0: $as_echo "$ac_cv_rwlock" >&6; } michael@0: if test "$ac_cv_rwlock" = yes; then michael@0: michael@0: $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: michael@0: # Find out what namespace 'normal' STL code lives in, and also what namespace michael@0: # the user wants our classes to be defined in michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 michael@0: $as_echo_n "checking whether the compiler implements namespaces... " >&6; } michael@0: if test "${ac_cv_cxx_namespaces+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: namespace Outer { michael@0: namespace Inner { int i = 0; }} michael@0: int michael@0: main () michael@0: { michael@0: using namespace Outer::Inner; return i; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_cxx_namespaces=yes michael@0: else michael@0: ac_cv_cxx_namespaces=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5 michael@0: $as_echo "$ac_cv_cxx_namespaces" >&6; } michael@0: if test "$ac_cv_cxx_namespaces" = yes; then michael@0: michael@0: $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5 michael@0: $as_echo_n "checking what namespace STL code is in... " >&6; } michael@0: if test "${ac_cv_cxx_stl_namespace+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: vector t; return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_cxx_stl_namespace=none michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: std::vector t; return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_cxx_stl_namespace=std michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5 michael@0: $as_echo "$ac_cv_cxx_stl_namespace" >&6; } michael@0: if test "$ac_cv_cxx_stl_namespace" = none; then michael@0: michael@0: $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h michael@0: michael@0: fi michael@0: if test "$ac_cv_cxx_stl_namespace" = std; then michael@0: michael@0: $as_echo "#define STL_NAMESPACE std" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: google_namespace_default=google michael@0: # Check whether --enable-namespace was given. michael@0: if test "${enable_namespace+set}" = set; then : michael@0: enableval=$enable_namespace; case "$enableval" in michael@0: yes) google_namespace="$google_namespace_default" ;; michael@0: no) google_namespace="" ;; michael@0: *) google_namespace="$enableval" ;; michael@0: esac michael@0: else michael@0: google_namespace="$google_namespace_default" michael@0: fi michael@0: michael@0: if test -n "$google_namespace"; then michael@0: ac_google_namespace="$google_namespace" michael@0: ac_google_start_namespace="namespace $google_namespace {" michael@0: ac_google_end_namespace="}" michael@0: else michael@0: ac_google_namespace="" michael@0: ac_google_start_namespace="" michael@0: ac_google_end_namespace="" michael@0: fi michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define GOOGLE_NAMESPACE $ac_google_namespace michael@0: _ACEOF michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace michael@0: _ACEOF michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace michael@0: _ACEOF michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5 michael@0: $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; } michael@0: if test "${ac_cv_cxx_using_operator+set}" = set; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: std::ostream& operator<<(std::ostream&, struct s); michael@0: int michael@0: main () michael@0: { michael@0: using ::operator<<; return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_cxx_using_operator=1 michael@0: else michael@0: ac_cv_cxx_using_operator=0 michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5 michael@0: $as_echo "$ac_cv_cxx_using_operator" >&6; } michael@0: if test "$ac_cv_cxx_using_operator" = 1; then michael@0: michael@0: $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: for ac_header in ucontext.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_ucontext_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_UCONTEXT_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: for ac_header in sys/ucontext.h michael@0: do : michael@0: ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_SYS_UCONTEXT_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: # ucontext on OS X 10.6 (at least) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5 michael@0: $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; } michael@0: pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit) michael@0: pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386) michael@0: pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64) michael@0: pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64) michael@0: pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc) michael@0: pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested]) michael@0: pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested]) michael@0: pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386) michael@0: pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested]) michael@0: pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386) michael@0: pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64) michael@0: pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4) michael@0: pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5) michael@0: pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64) michael@0: pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested]) michael@0: pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested]) michael@0: pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested]) michael@0: pc_field_found=false michael@0: for pc_field in $pc_fields; do michael@0: if ! $pc_field_found; then michael@0: if test "x$ac_cv_header_sys_ucontext_h" = xyes; then michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #define _GNU_SOURCE 1 michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: ucontext_t u; return u.$pc_field == 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PC_FROM_UCONTEXT $pc_field michael@0: _ACEOF michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 michael@0: $as_echo "$pc_field" >&6; } michael@0: pc_field_found=true michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #define _GNU_SOURCE 1 michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: ucontext_t u; return u.$pc_field == 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PC_FROM_UCONTEXT $pc_field michael@0: _ACEOF michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 michael@0: $as_echo "$pc_field" >&6; } michael@0: pc_field_found=true michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: fi michael@0: done michael@0: if ! $pc_field_found; then michael@0: pc_fields=" sc_eip" # OpenBSD (i386) michael@0: pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64) michael@0: for pc_field in $pc_fields; do michael@0: if ! $pc_field_found; then michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: ucontext_t u; return u.$pc_field == 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PC_FROM_UCONTEXT $pc_field michael@0: _ACEOF michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 michael@0: $as_echo "$pc_field" >&6; } michael@0: pc_field_found=true michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: done michael@0: fi michael@0: if ! $pc_field_found; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5 michael@0: $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;} michael@0: fi michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define TEST_SRC_DIR "$srcdir" michael@0: _ACEOF michael@0: michael@0: michael@0: # These are what's needed by logging.h.in and raw_logging.h.in michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Write generated configuration file michael@0: ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h" michael@0: michael@0: ac_config_files="$ac_config_files libglog.pc" michael@0: michael@0: cat >confcache <<\_ACEOF michael@0: # This file is a shell script that caches the results of configure michael@0: # tests run on this system so they can be shared between configure michael@0: # scripts and configure runs, see configure's option --config-cache. michael@0: # It is not useful on other systems. If it contains results you don't michael@0: # want to keep, you may remove or edit it. michael@0: # michael@0: # config.status only pays attention to the cache file if you give it michael@0: # the --recheck option to rerun configure. michael@0: # michael@0: # `ac_cv_env_foo' variables (set or unset) will be overridden when michael@0: # loading this file, other *unset* `ac_cv_foo' will be assigned the michael@0: # following values. michael@0: michael@0: _ACEOF michael@0: michael@0: # The following way of writing the cache mishandles newlines in values, michael@0: # but we know of no workaround that is simple, portable, and efficient. michael@0: # So, we kill variables containing newlines. michael@0: # Ultrix sh set writes to stderr and can't be redirected directly, michael@0: # and sets the high bit in the cache file unless we assign to the vars. michael@0: ( michael@0: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in #( michael@0: *${as_nl}*) michael@0: case $ac_var in #( michael@0: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 michael@0: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; michael@0: esac michael@0: case $ac_var in #( michael@0: _ | IFS | as_nl) ;; #( michael@0: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( michael@0: *) { eval $ac_var=; unset $ac_var;} ;; michael@0: esac ;; michael@0: esac michael@0: done michael@0: michael@0: (set) 2>&1 | michael@0: case $as_nl`(ac_space=' '; set) 2>&1` in #( michael@0: *${as_nl}ac_space=\ *) michael@0: # `set' does not quote correctly, so add quotes: double-quote michael@0: # substitution turns \\\\ into \\, and sed turns \\ into \. michael@0: sed -n \ michael@0: "s/'/'\\\\''/g; michael@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" michael@0: ;; #( michael@0: *) michael@0: # `set' quotes correctly as required by POSIX, so do not add quotes. michael@0: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" michael@0: ;; michael@0: esac | michael@0: sort michael@0: ) | michael@0: sed ' michael@0: /^ac_cv_env_/b end michael@0: t clear michael@0: :clear michael@0: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ michael@0: t end michael@0: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ michael@0: :end' >>confcache michael@0: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else michael@0: if test -w "$cache_file"; then michael@0: test "x$cache_file" != "x/dev/null" && michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 michael@0: $as_echo "$as_me: updating cache $cache_file" >&6;} michael@0: cat confcache >$cache_file michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 michael@0: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} michael@0: fi michael@0: fi michael@0: rm -f confcache michael@0: michael@0: test "x$prefix" = xNONE && prefix=$ac_default_prefix michael@0: # Let make expand exec_prefix. michael@0: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' michael@0: michael@0: DEFS=-DHAVE_CONFIG_H michael@0: michael@0: ac_libobjs= michael@0: ac_ltlibobjs= michael@0: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue michael@0: # 1. Remove the extension, and $U if already installed. michael@0: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' michael@0: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` michael@0: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR michael@0: # will be set to the directory where LIBOBJS objects are built. michael@0: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" michael@0: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' michael@0: done michael@0: LIBOBJS=$ac_libobjs michael@0: michael@0: LTLIBOBJS=$ac_ltlibobjs michael@0: michael@0: michael@0: if test -n "$EXEEXT"; then michael@0: am__EXEEXT_TRUE= michael@0: am__EXEEXT_FALSE='#' michael@0: else michael@0: am__EXEEXT_TRUE='#' michael@0: am__EXEEXT_FALSE= michael@0: fi michael@0: michael@0: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then michael@0: as_fn_error "conditional \"AMDEP\" was never defined. michael@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 michael@0: fi michael@0: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then michael@0: as_fn_error "conditional \"am__fastdepCC\" was never defined. michael@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 michael@0: fi michael@0: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then michael@0: as_fn_error "conditional \"am__fastdepCXX\" was never defined. michael@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 michael@0: fi michael@0: if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then michael@0: as_fn_error "conditional \"GCC\" was never defined. michael@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 michael@0: fi michael@0: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then michael@0: as_fn_error "conditional \"am__fastdepCXX\" was never defined. michael@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 michael@0: fi michael@0: if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then michael@0: as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined. michael@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 michael@0: fi michael@0: if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then michael@0: as_fn_error "conditional \"X86_64\" was never defined. michael@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 michael@0: fi michael@0: if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then michael@0: as_fn_error "conditional \"HAVE_GMOCK\" was never defined. michael@0: Usually this means the macro was only invoked conditionally." "$LINENO" 5 michael@0: fi michael@0: michael@0: : ${CONFIG_STATUS=./config.status} michael@0: ac_write_fail=0 michael@0: ac_clean_files_save=$ac_clean_files michael@0: ac_clean_files="$ac_clean_files $CONFIG_STATUS" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 michael@0: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} michael@0: as_write_fail=0 michael@0: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 michael@0: #! $SHELL michael@0: # Generated by $as_me. michael@0: # Run this file to recreate the current configuration. michael@0: # Compiler output produced by configure, useful for debugging michael@0: # configure, is in config.log if it exists. michael@0: michael@0: debug=false michael@0: ac_cs_recheck=false michael@0: ac_cs_silent=false michael@0: michael@0: SHELL=\${CONFIG_SHELL-$SHELL} michael@0: export SHELL michael@0: _ASEOF michael@0: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 michael@0: ## -------------------- ## michael@0: ## M4sh Initialization. ## michael@0: ## -------------------- ## michael@0: michael@0: # Be more Bourne compatible michael@0: DUALCASE=1; export DUALCASE # for MKS sh michael@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '${1+"$@"}'='"$@"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case `(set -o) 2>/dev/null` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: as_nl=' michael@0: ' michael@0: export as_nl michael@0: # Printing a long string crashes Solaris 7 /usr/bin/printf. michael@0: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: # Prefer a ksh shell builtin over an external printf program on Solaris, michael@0: # but without wasting forks for bash or zsh. michael@0: if test -z "$BASH_VERSION$ZSH_VERSION" \ michael@0: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='print -r --' michael@0: as_echo_n='print -rn --' michael@0: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='printf %s\n' michael@0: as_echo_n='printf %s' michael@0: else michael@0: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then michael@0: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' michael@0: as_echo_n='/usr/ucb/echo -n' michael@0: else michael@0: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' michael@0: as_echo_n_body='eval michael@0: arg=$1; michael@0: case $arg in #( michael@0: *"$as_nl"*) michael@0: expr "X$arg" : "X\\(.*\\)$as_nl"; michael@0: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; michael@0: esac; michael@0: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" michael@0: ' michael@0: export as_echo_n_body michael@0: as_echo_n='sh -c $as_echo_n_body as_echo' michael@0: fi michael@0: export as_echo_body michael@0: as_echo='sh -c $as_echo_body as_echo' michael@0: fi michael@0: michael@0: # The user is always right. michael@0: if test "${PATH_SEPARATOR+set}" != set; then michael@0: PATH_SEPARATOR=: michael@0: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { michael@0: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || michael@0: PATH_SEPARATOR=';' michael@0: } michael@0: fi michael@0: michael@0: michael@0: # IFS michael@0: # We need space, tab and new line, in precisely that order. Quoting is michael@0: # there to prevent editors from complaining about space-tab. michael@0: # (If _AS_PATH_WALK were called with IFS unset, it would disable word michael@0: # splitting by setting IFS to empty value.) michael@0: IFS=" "" $as_nl" michael@0: michael@0: # Find who we are. Look in the path if we contain no directory separator. michael@0: case $0 in #(( michael@0: *[\\/]* ) as_myself=$0 ;; michael@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: # We did not find ourselves, most probably we were run as `sh COMMAND' michael@0: # in which case we are not to be found in the path. michael@0: if test "x$as_myself" = x; then michael@0: as_myself=$0 michael@0: fi michael@0: if test ! -f "$as_myself"; then michael@0: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 michael@0: exit 1 michael@0: fi michael@0: michael@0: # Unset variables that we do not need and which cause bugs (e.g. in michael@0: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" michael@0: # suppresses any "Segmentation fault" message there. '((' could michael@0: # trigger a bug in pdksh 5.2.14. michael@0: for as_var in BASH_ENV ENV MAIL MAILPATH michael@0: do eval test x\${$as_var+set} = xset \ michael@0: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : michael@0: done michael@0: PS1='$ ' michael@0: PS2='> ' michael@0: PS4='+ ' michael@0: michael@0: # NLS nuisances. michael@0: LC_ALL=C michael@0: export LC_ALL michael@0: LANGUAGE=C michael@0: export LANGUAGE michael@0: michael@0: # CDPATH. michael@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH michael@0: michael@0: michael@0: # as_fn_error ERROR [LINENO LOG_FD] michael@0: # --------------------------------- michael@0: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are michael@0: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the michael@0: # script with status $?, using 1 if that was 0. michael@0: as_fn_error () michael@0: { michael@0: as_status=$?; test $as_status -eq 0 && as_status=1 michael@0: if test "$3"; then michael@0: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 michael@0: fi michael@0: $as_echo "$as_me: error: $1" >&2 michael@0: as_fn_exit $as_status michael@0: } # as_fn_error michael@0: michael@0: michael@0: # as_fn_set_status STATUS michael@0: # ----------------------- michael@0: # Set $? to STATUS, without forking. michael@0: as_fn_set_status () michael@0: { michael@0: return $1 michael@0: } # as_fn_set_status michael@0: michael@0: # as_fn_exit STATUS michael@0: # ----------------- michael@0: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. michael@0: as_fn_exit () michael@0: { michael@0: set +e michael@0: as_fn_set_status $1 michael@0: exit $1 michael@0: } # as_fn_exit michael@0: michael@0: # as_fn_unset VAR michael@0: # --------------- michael@0: # Portably unset VAR. michael@0: as_fn_unset () michael@0: { michael@0: { eval $1=; unset $1;} michael@0: } michael@0: as_unset=as_fn_unset michael@0: # as_fn_append VAR VALUE michael@0: # ---------------------- michael@0: # Append the text in VALUE to the end of the definition contained in VAR. Take michael@0: # advantage of any shell optimizations that allow amortized linear growth over michael@0: # repeated appends, instead of the typical quadratic growth present in naive michael@0: # implementations. michael@0: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : michael@0: eval 'as_fn_append () michael@0: { michael@0: eval $1+=\$2 michael@0: }' michael@0: else michael@0: as_fn_append () michael@0: { michael@0: eval $1=\$$1\$2 michael@0: } michael@0: fi # as_fn_append michael@0: michael@0: # as_fn_arith ARG... michael@0: # ------------------ michael@0: # Perform arithmetic evaluation on the ARGs, and store the result in the michael@0: # global $as_val. Take advantage of shells that can avoid forks. The arguments michael@0: # must be portable across $(()) and expr. michael@0: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : michael@0: eval 'as_fn_arith () michael@0: { michael@0: as_val=$(( $* )) michael@0: }' michael@0: else michael@0: as_fn_arith () michael@0: { michael@0: as_val=`expr "$@" || test $? -eq 1` michael@0: } michael@0: fi # as_fn_arith michael@0: michael@0: michael@0: if expr a : '\(a\)' >/dev/null 2>&1 && michael@0: test "X`expr 00001 : '.*\(...\)'`" = X001; then michael@0: as_expr=expr michael@0: else michael@0: as_expr=false michael@0: fi michael@0: michael@0: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then michael@0: as_basename=basename michael@0: else michael@0: as_basename=false michael@0: fi michael@0: michael@0: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then michael@0: as_dirname=dirname michael@0: else michael@0: as_dirname=false michael@0: fi michael@0: michael@0: as_me=`$as_basename -- "$0" || michael@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ michael@0: X"$0" : 'X\(//\)$' \| \ michael@0: X"$0" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X/"$0" | michael@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: michael@0: # Avoid depending upon Character Ranges. michael@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' michael@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' michael@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS michael@0: as_cr_digits='0123456789' michael@0: as_cr_alnum=$as_cr_Letters$as_cr_digits michael@0: michael@0: ECHO_C= ECHO_N= ECHO_T= michael@0: case `echo -n x` in #((((( michael@0: -n*) michael@0: case `echo 'xy\c'` in michael@0: *c*) ECHO_T=' ';; # ECHO_T is single tab character. michael@0: xy) ECHO_C='\c';; michael@0: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null michael@0: ECHO_T=' ';; michael@0: esac;; michael@0: *) michael@0: ECHO_N='-n';; michael@0: esac michael@0: michael@0: rm -f conf$$ conf$$.exe conf$$.file michael@0: if test -d conf$$.dir; then michael@0: rm -f conf$$.dir/conf$$.file michael@0: else michael@0: rm -f conf$$.dir michael@0: mkdir conf$$.dir 2>/dev/null michael@0: fi michael@0: if (echo >conf$$.file) 2>/dev/null; then michael@0: if ln -s conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s='ln -s' michael@0: # ... but there are two gotchas: michael@0: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. michael@0: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. michael@0: # In both cases, we have to default to `cp -p'. michael@0: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || michael@0: as_ln_s='cp -p' michael@0: elif ln conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s=ln michael@0: else michael@0: as_ln_s='cp -p' michael@0: fi michael@0: else michael@0: as_ln_s='cp -p' michael@0: fi michael@0: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file michael@0: rmdir conf$$.dir 2>/dev/null michael@0: michael@0: michael@0: # as_fn_mkdir_p michael@0: # ------------- michael@0: # Create "$as_dir" as a directory, including parents if necessary. michael@0: as_fn_mkdir_p () michael@0: { michael@0: michael@0: case $as_dir in #( michael@0: -*) as_dir=./$as_dir;; michael@0: esac michael@0: test -d "$as_dir" || eval $as_mkdir_p || { michael@0: as_dirs= michael@0: while :; do michael@0: case $as_dir in #( michael@0: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( michael@0: *) as_qdir=$as_dir;; michael@0: esac michael@0: as_dirs="'$as_qdir' $as_dirs" michael@0: as_dir=`$as_dirname -- "$as_dir" || michael@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_dir" : 'X\(//\)[^/]' \| \ michael@0: X"$as_dir" : 'X\(//\)$' \| \ michael@0: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_dir" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: test -d "$as_dir" && break michael@0: done michael@0: test -z "$as_dirs" || eval "mkdir $as_dirs" michael@0: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" michael@0: michael@0: michael@0: } # as_fn_mkdir_p michael@0: if mkdir -p . 2>/dev/null; then michael@0: as_mkdir_p='mkdir -p "$as_dir"' michael@0: else michael@0: test -d ./-p && rmdir ./-p michael@0: as_mkdir_p=false michael@0: fi michael@0: michael@0: if test -x / >/dev/null 2>&1; then michael@0: as_test_x='test -x' michael@0: else michael@0: if ls -dL / >/dev/null 2>&1; then michael@0: as_ls_L_option=L michael@0: else michael@0: as_ls_L_option= michael@0: fi michael@0: as_test_x=' michael@0: eval sh -c '\'' michael@0: if test -d "$1"; then michael@0: test -d "$1/."; michael@0: else michael@0: case $1 in #( michael@0: -*)set "./$1";; michael@0: esac; michael@0: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( michael@0: ???[sx]*):;;*)false;;esac;fi michael@0: '\'' sh michael@0: ' michael@0: fi michael@0: as_executable_p=$as_test_x michael@0: michael@0: # Sed expression to map a string onto a valid CPP name. michael@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: # Sed expression to map a string onto a valid variable name. michael@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: michael@0: exec 6>&1 michael@0: ## ----------------------------------- ## michael@0: ## Main body of $CONFIG_STATUS script. ## michael@0: ## ----------------------------------- ## michael@0: _ASEOF michael@0: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # Save the log message, to keep $0 and so on meaningful, and to michael@0: # report actual input values of CONFIG_FILES etc. instead of their michael@0: # values after options handling. michael@0: ac_log=" michael@0: This file was extended by glog $as_me 0.3.1, which was michael@0: generated by GNU Autoconf 2.65. Invocation command line was michael@0: michael@0: CONFIG_FILES = $CONFIG_FILES michael@0: CONFIG_HEADERS = $CONFIG_HEADERS michael@0: CONFIG_LINKS = $CONFIG_LINKS michael@0: CONFIG_COMMANDS = $CONFIG_COMMANDS michael@0: $ $0 $@ michael@0: michael@0: on `(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: " michael@0: michael@0: _ACEOF michael@0: michael@0: case $ac_config_files in *" michael@0: "*) set x $ac_config_files; shift; ac_config_files=$*;; michael@0: esac michael@0: michael@0: case $ac_config_headers in *" michael@0: "*) set x $ac_config_headers; shift; ac_config_headers=$*;; michael@0: esac michael@0: michael@0: michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: # Files that config.status was made for. michael@0: config_files="$ac_config_files" michael@0: config_headers="$ac_config_headers" michael@0: config_commands="$ac_config_commands" michael@0: michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: ac_cs_usage="\ michael@0: \`$as_me' instantiates files and other configuration actions michael@0: from templates according to the current configuration. Unless the files michael@0: and actions are specified as TAGs, all are instantiated by default. michael@0: michael@0: Usage: $0 [OPTION]... [TAG]... michael@0: michael@0: -h, --help print this help, then exit michael@0: -V, --version print version number and configuration settings, then exit michael@0: --config print configuration, then exit michael@0: -q, --quiet, --silent michael@0: do not print progress messages michael@0: -d, --debug don't remove temporary files michael@0: --recheck update $as_me by reconfiguring in the same conditions michael@0: --file=FILE[:TEMPLATE] michael@0: instantiate the configuration file FILE michael@0: --header=FILE[:TEMPLATE] michael@0: instantiate the configuration header FILE michael@0: michael@0: Configuration files: michael@0: $config_files michael@0: michael@0: Configuration headers: michael@0: $config_headers michael@0: michael@0: Configuration commands: michael@0: $config_commands michael@0: michael@0: Report bugs to ." michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" michael@0: ac_cs_version="\\ michael@0: glog config.status 0.3.1 michael@0: configured by $0, generated by GNU Autoconf 2.65, michael@0: with options \\"\$ac_cs_config\\" michael@0: michael@0: Copyright (C) 2009 Free Software Foundation, Inc. michael@0: This config.status script is free software; the Free Software Foundation michael@0: gives unlimited permission to copy, distribute and modify it." michael@0: michael@0: ac_pwd='$ac_pwd' michael@0: srcdir='$srcdir' michael@0: INSTALL='$INSTALL' michael@0: MKDIR_P='$MKDIR_P' michael@0: AWK='$AWK' michael@0: test -n "\$AWK" || AWK=awk michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # The default lists apply if the user does not specify any file. michael@0: ac_need_defaults=: michael@0: while test $# != 0 michael@0: do michael@0: case $1 in michael@0: --*=*) michael@0: ac_option=`expr "X$1" : 'X\([^=]*\)='` michael@0: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` michael@0: ac_shift=: michael@0: ;; michael@0: *) michael@0: ac_option=$1 michael@0: ac_optarg=$2 michael@0: ac_shift=shift michael@0: ;; michael@0: esac michael@0: michael@0: case $ac_option in michael@0: # Handling of the options. michael@0: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) michael@0: ac_cs_recheck=: ;; michael@0: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) michael@0: $as_echo "$ac_cs_version"; exit ;; michael@0: --config | --confi | --conf | --con | --co | --c ) michael@0: $as_echo "$ac_cs_config"; exit ;; michael@0: --debug | --debu | --deb | --de | --d | -d ) michael@0: debug=: ;; michael@0: --file | --fil | --fi | --f ) michael@0: $ac_shift michael@0: case $ac_optarg in michael@0: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: esac michael@0: as_fn_append CONFIG_FILES " '$ac_optarg'" michael@0: ac_need_defaults=false;; michael@0: --header | --heade | --head | --hea ) michael@0: $ac_shift michael@0: case $ac_optarg in michael@0: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: esac michael@0: as_fn_append CONFIG_HEADERS " '$ac_optarg'" michael@0: ac_need_defaults=false;; michael@0: --he | --h) michael@0: # Conflict between --help and --header michael@0: as_fn_error "ambiguous option: \`$1' michael@0: Try \`$0 --help' for more information.";; michael@0: --help | --hel | -h ) michael@0: $as_echo "$ac_cs_usage"; exit ;; michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil | --si | --s) michael@0: ac_cs_silent=: ;; michael@0: michael@0: # This is an error. michael@0: -*) as_fn_error "unrecognized option: \`$1' michael@0: Try \`$0 --help' for more information." ;; michael@0: michael@0: *) as_fn_append ac_config_targets " $1" michael@0: ac_need_defaults=false ;; michael@0: michael@0: esac michael@0: shift michael@0: done michael@0: michael@0: ac_configure_extra_args= michael@0: michael@0: if $ac_cs_silent; then michael@0: exec 6>/dev/null michael@0: ac_configure_extra_args="$ac_configure_extra_args --silent" michael@0: fi michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: if \$ac_cs_recheck; then michael@0: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion michael@0: shift michael@0: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 michael@0: CONFIG_SHELL='$SHELL' michael@0: export CONFIG_SHELL michael@0: exec "\$@" michael@0: fi michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: exec 5>>config.log michael@0: { michael@0: echo michael@0: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX michael@0: ## Running $as_me. ## michael@0: _ASBOX michael@0: $as_echo "$ac_log" michael@0: } >&5 michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: # michael@0: # INIT-COMMANDS michael@0: # michael@0: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" michael@0: michael@0: michael@0: # The HP-UX ksh and POSIX shell print the target directory to stdout michael@0: # if CDPATH is set. michael@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH michael@0: michael@0: sed_quote_subst='$sed_quote_subst' michael@0: double_quote_subst='$double_quote_subst' michael@0: delay_variable_subst='$delay_variable_subst' michael@0: macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' michael@0: macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' michael@0: enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' michael@0: enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' michael@0: pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' michael@0: enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' michael@0: host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' michael@0: host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' michael@0: host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' michael@0: build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' michael@0: build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' michael@0: build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' michael@0: SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' michael@0: Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' michael@0: GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' michael@0: EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' michael@0: FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' michael@0: LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' michael@0: NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' michael@0: LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' michael@0: max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' michael@0: ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' michael@0: exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' michael@0: reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' michael@0: reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' michael@0: deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' michael@0: file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' michael@0: AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' michael@0: AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' michael@0: STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' michael@0: RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' michael@0: CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' michael@0: compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' michael@0: GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' michael@0: objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' michael@0: SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' michael@0: ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' michael@0: MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' michael@0: need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' michael@0: DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' michael@0: NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' michael@0: LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' michael@0: OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' michael@0: OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' michael@0: libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' michael@0: shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' michael@0: enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' michael@0: export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' michael@0: allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' michael@0: no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' michael@0: inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' michael@0: link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' michael@0: fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' michael@0: always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' michael@0: export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' michael@0: include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' michael@0: prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' michael@0: need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' michael@0: need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' michael@0: version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' michael@0: runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' michael@0: shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' michael@0: shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' michael@0: libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' michael@0: finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' michael@0: sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' michael@0: enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' michael@0: enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' michael@0: enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' michael@0: striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' michael@0: compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' michael@0: predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' michael@0: postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' michael@0: predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' michael@0: postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' michael@0: compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' michael@0: LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' michael@0: michael@0: LTCC='$LTCC' michael@0: LTCFLAGS='$LTCFLAGS' michael@0: compiler='$compiler_DEFAULT' michael@0: michael@0: # Quote evaled strings. michael@0: for var in SED \ michael@0: GREP \ michael@0: EGREP \ michael@0: FGREP \ michael@0: LD \ michael@0: NM \ michael@0: LN_S \ michael@0: lt_SP2NL \ michael@0: lt_NL2SP \ michael@0: reload_flag \ michael@0: OBJDUMP \ michael@0: deplibs_check_method \ michael@0: file_magic_cmd \ michael@0: AR \ michael@0: AR_FLAGS \ michael@0: STRIP \ michael@0: RANLIB \ michael@0: CC \ michael@0: CFLAGS \ michael@0: compiler \ michael@0: lt_cv_sys_global_symbol_pipe \ michael@0: lt_cv_sys_global_symbol_to_cdecl \ michael@0: lt_cv_sys_global_symbol_to_c_name_address \ michael@0: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ michael@0: SHELL \ michael@0: ECHO \ michael@0: lt_prog_compiler_no_builtin_flag \ michael@0: lt_prog_compiler_wl \ michael@0: lt_prog_compiler_pic \ michael@0: lt_prog_compiler_static \ michael@0: lt_cv_prog_compiler_c_o \ michael@0: need_locks \ michael@0: DSYMUTIL \ michael@0: NMEDIT \ michael@0: LIPO \ michael@0: OTOOL \ michael@0: OTOOL64 \ michael@0: shrext_cmds \ michael@0: export_dynamic_flag_spec \ michael@0: whole_archive_flag_spec \ michael@0: compiler_needs_object \ michael@0: with_gnu_ld \ michael@0: allow_undefined_flag \ michael@0: no_undefined_flag \ michael@0: hardcode_libdir_flag_spec \ michael@0: hardcode_libdir_flag_spec_ld \ michael@0: hardcode_libdir_separator \ michael@0: fix_srcfile_path \ michael@0: exclude_expsyms \ michael@0: include_expsyms \ michael@0: file_list_spec \ michael@0: variables_saved_for_relink \ michael@0: libname_spec \ michael@0: library_names_spec \ michael@0: soname_spec \ michael@0: finish_eval \ michael@0: old_striplib \ michael@0: striplib \ michael@0: compiler_lib_search_dirs \ michael@0: predep_objects \ michael@0: postdep_objects \ michael@0: predeps \ michael@0: postdeps \ michael@0: compiler_lib_search_path \ michael@0: LD_CXX \ michael@0: compiler_CXX \ michael@0: lt_prog_compiler_no_builtin_flag_CXX \ michael@0: lt_prog_compiler_wl_CXX \ michael@0: lt_prog_compiler_pic_CXX \ michael@0: lt_prog_compiler_static_CXX \ michael@0: lt_cv_prog_compiler_c_o_CXX \ michael@0: export_dynamic_flag_spec_CXX \ michael@0: whole_archive_flag_spec_CXX \ michael@0: compiler_needs_object_CXX \ michael@0: with_gnu_ld_CXX \ michael@0: allow_undefined_flag_CXX \ michael@0: no_undefined_flag_CXX \ michael@0: hardcode_libdir_flag_spec_CXX \ michael@0: hardcode_libdir_flag_spec_ld_CXX \ michael@0: hardcode_libdir_separator_CXX \ michael@0: fix_srcfile_path_CXX \ michael@0: exclude_expsyms_CXX \ michael@0: include_expsyms_CXX \ michael@0: file_list_spec_CXX \ michael@0: compiler_lib_search_dirs_CXX \ michael@0: predep_objects_CXX \ michael@0: postdep_objects_CXX \ michael@0: predeps_CXX \ michael@0: postdeps_CXX \ michael@0: compiler_lib_search_path_CXX; do michael@0: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in michael@0: *[\\\\\\\`\\"\\\$]*) michael@0: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" michael@0: ;; michael@0: *) michael@0: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" michael@0: ;; michael@0: esac michael@0: done michael@0: michael@0: # Double-quote double-evaled strings. michael@0: for var in reload_cmds \ michael@0: old_postinstall_cmds \ michael@0: old_postuninstall_cmds \ michael@0: old_archive_cmds \ michael@0: extract_expsyms_cmds \ michael@0: old_archive_from_new_cmds \ michael@0: old_archive_from_expsyms_cmds \ michael@0: archive_cmds \ michael@0: archive_expsym_cmds \ michael@0: module_cmds \ michael@0: module_expsym_cmds \ michael@0: export_symbols_cmds \ michael@0: prelink_cmds \ michael@0: postinstall_cmds \ michael@0: postuninstall_cmds \ michael@0: finish_cmds \ michael@0: sys_lib_search_path_spec \ michael@0: sys_lib_dlsearch_path_spec \ michael@0: old_archive_cmds_CXX \ michael@0: old_archive_from_new_cmds_CXX \ michael@0: old_archive_from_expsyms_cmds_CXX \ michael@0: archive_cmds_CXX \ michael@0: archive_expsym_cmds_CXX \ michael@0: module_cmds_CXX \ michael@0: module_expsym_cmds_CXX \ michael@0: export_symbols_cmds_CXX \ michael@0: prelink_cmds_CXX; do michael@0: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in michael@0: *[\\\\\\\`\\"\\\$]*) michael@0: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" michael@0: ;; michael@0: *) michael@0: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" michael@0: ;; michael@0: esac michael@0: done michael@0: michael@0: # Fix-up fallback echo if it was mangled by the above quoting rules. michael@0: case \$lt_ECHO in michael@0: *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` michael@0: ;; michael@0: esac michael@0: michael@0: ac_aux_dir='$ac_aux_dir' michael@0: xsi_shell='$xsi_shell' michael@0: lt_shell_append='$lt_shell_append' michael@0: michael@0: # See if we are running on zsh, and set the options which allow our michael@0: # commands through without removal of \ escapes INIT. michael@0: if test -n "\${ZSH_VERSION+set}" ; then michael@0: setopt NO_GLOB_SUBST michael@0: fi michael@0: michael@0: michael@0: PACKAGE='$PACKAGE' michael@0: VERSION='$VERSION' michael@0: TIMESTAMP='$TIMESTAMP' michael@0: RM='$RM' michael@0: ofile='$ofile' michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: michael@0: # Handling of arguments. michael@0: for ac_config_target in $ac_config_targets michael@0: do michael@0: case $ac_config_target in michael@0: "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; michael@0: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; michael@0: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; michael@0: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; michael@0: "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;; michael@0: "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;; michael@0: "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;; michael@0: "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;; michael@0: "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;; michael@0: michael@0: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; michael@0: esac michael@0: done michael@0: michael@0: michael@0: # If the user did not use the arguments to specify the items to instantiate, michael@0: # then the envvar interface is used. Set only those that are not. michael@0: # We use the long form for the default assignment because of an extremely michael@0: # bizarre bug on SunOS 4.1.3. michael@0: if $ac_need_defaults; then michael@0: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files michael@0: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers michael@0: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands michael@0: fi michael@0: michael@0: # Have a temporary directory for convenience. Make it in the build tree michael@0: # simply because there is no reason against having it here, and in addition, michael@0: # creating and moving files from /tmp can sometimes cause problems. michael@0: # Hook for its removal unless debugging. michael@0: # Note that there is a small window in which the directory will not be cleaned: michael@0: # after its creation but before its name has been assigned to `$tmp'. michael@0: $debug || michael@0: { michael@0: tmp= michael@0: trap 'exit_status=$? michael@0: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status michael@0: ' 0 michael@0: trap 'as_fn_exit 1' 1 2 13 15 michael@0: } michael@0: # Create a (secure) tmp directory for tmp files. michael@0: michael@0: { michael@0: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && michael@0: test -n "$tmp" && test -d "$tmp" michael@0: } || michael@0: { michael@0: tmp=./conf$$-$RANDOM michael@0: (umask 077 && mkdir "$tmp") michael@0: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 michael@0: michael@0: # Set up the scripts for CONFIG_FILES section. michael@0: # No need to generate them if there are no CONFIG_FILES. michael@0: # This happens for instance with `./config.status config.h'. michael@0: if test -n "$CONFIG_FILES"; then michael@0: michael@0: michael@0: ac_cr=`echo X | tr X '\015'` michael@0: # On cygwin, bash can eat \r inside `` if the user requested igncr. michael@0: # But we know of no other shell where ac_cr would be empty at this michael@0: # point, so we can use a bashism as a fallback. michael@0: if test "x$ac_cr" = x; then michael@0: eval ac_cr=\$\'\\r\' michael@0: fi michael@0: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` michael@0: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then michael@0: ac_cs_awk_cr='\r' michael@0: else michael@0: ac_cs_awk_cr=$ac_cr michael@0: fi michael@0: michael@0: echo 'BEGIN {' >"$tmp/subs1.awk" && michael@0: _ACEOF michael@0: michael@0: michael@0: { michael@0: echo "cat >conf$$subs.awk <<_ACEOF" && michael@0: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && michael@0: echo "_ACEOF" michael@0: } >conf$$subs.sh || michael@0: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` michael@0: ac_delim='%!_!# ' michael@0: for ac_last_try in false false false false false :; do michael@0: . ./conf$$subs.sh || michael@0: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: michael@0: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` michael@0: if test $ac_delim_n = $ac_delim_num; then michael@0: break michael@0: elif $ac_last_try; then michael@0: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: else michael@0: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " michael@0: fi michael@0: done michael@0: rm -f conf$$subs.sh michael@0: michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: cat >>"\$tmp/subs1.awk" <<\\_ACAWK && michael@0: _ACEOF michael@0: sed -n ' michael@0: h michael@0: s/^/S["/; s/!.*/"]=/ michael@0: p michael@0: g michael@0: s/^[^!]*!// michael@0: :repl michael@0: t repl michael@0: s/'"$ac_delim"'$// michael@0: t delim michael@0: :nl michael@0: h michael@0: s/\(.\{148\}\)..*/\1/ michael@0: t more1 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ michael@0: p michael@0: n michael@0: b repl michael@0: :more1 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ michael@0: p michael@0: g michael@0: s/.\{148\}// michael@0: t nl michael@0: :delim michael@0: h michael@0: s/\(.\{148\}\)..*/\1/ michael@0: t more2 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"/ michael@0: p michael@0: b michael@0: :more2 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ michael@0: p michael@0: g michael@0: s/.\{148\}// michael@0: t delim michael@0: ' >$CONFIG_STATUS || ac_write_fail=1 michael@0: rm -f conf$$subs.awk michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: _ACAWK michael@0: cat >>"\$tmp/subs1.awk" <<_ACAWK && michael@0: for (key in S) S_is_set[key] = 1 michael@0: FS = "" michael@0: michael@0: } michael@0: { michael@0: line = $ 0 michael@0: nfields = split(line, field, "@") michael@0: substed = 0 michael@0: len = length(field[1]) michael@0: for (i = 2; i < nfields; i++) { michael@0: key = field[i] michael@0: keylen = length(key) michael@0: if (S_is_set[key]) { michael@0: value = S[key] michael@0: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) michael@0: len += length(value) + length(field[++i]) michael@0: substed = 1 michael@0: } else michael@0: len += 1 + keylen michael@0: } michael@0: michael@0: print line michael@0: } michael@0: michael@0: _ACAWK michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then michael@0: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" michael@0: else michael@0: cat michael@0: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ michael@0: || as_fn_error "could not setup config files machinery" "$LINENO" 5 michael@0: _ACEOF michael@0: michael@0: # VPATH may cause trouble with some makes, so we remove $(srcdir), michael@0: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and michael@0: # trailing colons and then remove the whole line if VPATH becomes empty michael@0: # (actually we leave an empty line to preserve line numbers). michael@0: if test "x$srcdir" = x.; then michael@0: ac_vpsub='/^[ ]*VPATH[ ]*=/{ michael@0: s/:*\$(srcdir):*/:/ michael@0: s/:*\${srcdir}:*/:/ michael@0: s/:*@srcdir@:*/:/ michael@0: s/^\([^=]*=[ ]*\):*/\1/ michael@0: s/:*$// michael@0: s/^[^=]*=[ ]*$// michael@0: }' michael@0: fi michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: fi # test -n "$CONFIG_FILES" michael@0: michael@0: # Set up the scripts for CONFIG_HEADERS section. michael@0: # No need to generate them if there are no CONFIG_HEADERS. michael@0: # This happens for instance with `./config.status Makefile'. michael@0: if test -n "$CONFIG_HEADERS"; then michael@0: cat >"$tmp/defines.awk" <<\_ACAWK || michael@0: BEGIN { michael@0: _ACEOF michael@0: michael@0: # Transform confdefs.h into an awk script `defines.awk', embedded as michael@0: # here-document in config.status, that substitutes the proper values into michael@0: # config.h.in to produce config.h. michael@0: michael@0: # Create a delimiter string that does not exist in confdefs.h, to ease michael@0: # handling of long lines. michael@0: ac_delim='%!_!# ' michael@0: for ac_last_try in false false :; do michael@0: ac_t=`sed -n "/$ac_delim/p" confdefs.h` michael@0: if test -z "$ac_t"; then michael@0: break michael@0: elif $ac_last_try; then michael@0: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 michael@0: else michael@0: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " michael@0: fi michael@0: done michael@0: michael@0: # For the awk script, D is an array of macro values keyed by name, michael@0: # likewise P contains macro parameters if any. Preserve backslash michael@0: # newline sequences. michael@0: michael@0: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* michael@0: sed -n ' michael@0: s/.\{148\}/&'"$ac_delim"'/g michael@0: t rset michael@0: :rset michael@0: s/^[ ]*#[ ]*define[ ][ ]*/ / michael@0: t def michael@0: d michael@0: :def michael@0: s/\\$// michael@0: t bsnl michael@0: s/["\\]/\\&/g michael@0: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ michael@0: D["\1"]=" \3"/p michael@0: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p michael@0: d michael@0: :bsnl michael@0: s/["\\]/\\&/g michael@0: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ michael@0: D["\1"]=" \3\\\\\\n"\\/p michael@0: t cont michael@0: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p michael@0: t cont michael@0: d michael@0: :cont michael@0: n michael@0: s/.\{148\}/&'"$ac_delim"'/g michael@0: t clear michael@0: :clear michael@0: s/\\$// michael@0: t bsnlc michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"/p michael@0: d michael@0: :bsnlc michael@0: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p michael@0: b cont michael@0: ' >$CONFIG_STATUS || ac_write_fail=1 michael@0: michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: for (key in D) D_is_set[key] = 1 michael@0: FS = "" michael@0: } michael@0: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { michael@0: line = \$ 0 michael@0: split(line, arg, " ") michael@0: if (arg[1] == "#") { michael@0: defundef = arg[2] michael@0: mac1 = arg[3] michael@0: } else { michael@0: defundef = substr(arg[1], 2) michael@0: mac1 = arg[2] michael@0: } michael@0: split(mac1, mac2, "(") #) michael@0: macro = mac2[1] michael@0: prefix = substr(line, 1, index(line, defundef) - 1) michael@0: if (D_is_set[macro]) { michael@0: # Preserve the white space surrounding the "#". michael@0: print prefix "define", macro P[macro] D[macro] michael@0: next michael@0: } else { michael@0: # Replace #undef with comments. This is necessary, for example, michael@0: # in the case of _POSIX_SOURCE, which is predefined and required michael@0: # on some systems where configure will not decide to define it. michael@0: if (defundef == "undef") { michael@0: print "/*", prefix defundef, macro, "*/" michael@0: next michael@0: } michael@0: } michael@0: } michael@0: { print } michael@0: _ACAWK michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: as_fn_error "could not setup config headers machinery" "$LINENO" 5 michael@0: fi # test -n "$CONFIG_HEADERS" michael@0: michael@0: michael@0: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" michael@0: shift michael@0: for ac_tag michael@0: do michael@0: case $ac_tag in michael@0: :[FHLC]) ac_mode=$ac_tag; continue;; michael@0: esac michael@0: case $ac_mode$ac_tag in michael@0: :[FHL]*:*);; michael@0: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; michael@0: :[FH]-) ac_tag=-:-;; michael@0: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; michael@0: esac michael@0: ac_save_IFS=$IFS michael@0: IFS=: michael@0: set x $ac_tag michael@0: IFS=$ac_save_IFS michael@0: shift michael@0: ac_file=$1 michael@0: shift michael@0: michael@0: case $ac_mode in michael@0: :L) ac_source=$1;; michael@0: :[FH]) michael@0: ac_file_inputs= michael@0: for ac_f michael@0: do michael@0: case $ac_f in michael@0: -) ac_f="$tmp/stdin";; michael@0: *) # Look for the file first in the build tree, then in the source tree michael@0: # (if the path is not absolute). The absolute path cannot be DOS-style, michael@0: # because $ac_f cannot contain `:'. michael@0: test -f "$ac_f" || michael@0: case $ac_f in michael@0: [\\/$]*) false;; michael@0: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; michael@0: esac || michael@0: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; michael@0: esac michael@0: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac michael@0: as_fn_append ac_file_inputs " '$ac_f'" michael@0: done michael@0: michael@0: # Let's still pretend it is `configure' which instantiates (i.e., don't michael@0: # use $as_me), people would be surprised to read: michael@0: # /* config.h. Generated by config.status. */ michael@0: configure_input='Generated from '` michael@0: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' michael@0: `' by configure.' michael@0: if test x"$ac_file" != x-; then michael@0: configure_input="$ac_file. $configure_input" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 michael@0: $as_echo "$as_me: creating $ac_file" >&6;} michael@0: fi michael@0: # Neutralize special characters interpreted by sed in replacement strings. michael@0: case $configure_input in #( michael@0: *\&* | *\|* | *\\* ) michael@0: ac_sed_conf_input=`$as_echo "$configure_input" | michael@0: sed 's/[\\\\&|]/\\\\&/g'`;; #( michael@0: *) ac_sed_conf_input=$configure_input;; michael@0: esac michael@0: michael@0: case $ac_tag in michael@0: *:-:* | *:-) cat >"$tmp/stdin" \ michael@0: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: michael@0: ac_dir=`$as_dirname -- "$ac_file" || michael@0: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$ac_file" : 'X\(//\)[^/]' \| \ michael@0: X"$ac_file" : 'X\(//\)$' \| \ michael@0: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$ac_file" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: as_dir="$ac_dir"; as_fn_mkdir_p michael@0: ac_builddir=. michael@0: michael@0: case "$ac_dir" in michael@0: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) michael@0: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` michael@0: # A ".." for each directory in $ac_dir_suffix. michael@0: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` michael@0: case $ac_top_builddir_sub in michael@0: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; michael@0: esac ;; michael@0: esac michael@0: ac_abs_top_builddir=$ac_pwd michael@0: ac_abs_builddir=$ac_pwd$ac_dir_suffix michael@0: # for backward compatibility: michael@0: ac_top_builddir=$ac_top_build_prefix michael@0: michael@0: case $srcdir in michael@0: .) # We are building in place. michael@0: ac_srcdir=. michael@0: ac_top_srcdir=$ac_top_builddir_sub michael@0: ac_abs_top_srcdir=$ac_pwd ;; michael@0: [\\/]* | ?:[\\/]* ) # Absolute name. michael@0: ac_srcdir=$srcdir$ac_dir_suffix; michael@0: ac_top_srcdir=$srcdir michael@0: ac_abs_top_srcdir=$srcdir ;; michael@0: *) # Relative name. michael@0: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix michael@0: ac_top_srcdir=$ac_top_build_prefix$srcdir michael@0: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; michael@0: esac michael@0: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix michael@0: michael@0: michael@0: case $ac_mode in michael@0: :F) michael@0: # michael@0: # CONFIG_FILE michael@0: # michael@0: michael@0: case $INSTALL in michael@0: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; michael@0: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; michael@0: esac michael@0: ac_MKDIR_P=$MKDIR_P michael@0: case $MKDIR_P in michael@0: [\\/$]* | ?:[\\/]* ) ;; michael@0: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; michael@0: esac michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # If the template does not know about datarootdir, expand it. michael@0: # FIXME: This hack should be removed a few years after 2.60. michael@0: ac_datarootdir_hack=; ac_datarootdir_seen= michael@0: ac_sed_dataroot=' michael@0: /datarootdir/ { michael@0: p michael@0: q michael@0: } michael@0: /@datadir@/p michael@0: /@docdir@/p michael@0: /@infodir@/p michael@0: /@localedir@/p michael@0: /@mandir@/p' michael@0: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in michael@0: *datarootdir*) ac_datarootdir_seen=yes;; michael@0: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 michael@0: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_datarootdir_hack=' michael@0: s&@datadir@&$datadir&g michael@0: s&@docdir@&$docdir&g michael@0: s&@infodir@&$infodir&g michael@0: s&@localedir@&$localedir&g michael@0: s&@mandir@&$mandir&g michael@0: s&\\\${datarootdir}&$datarootdir&g' ;; michael@0: esac michael@0: _ACEOF michael@0: michael@0: # Neutralize VPATH when `$srcdir' = `.'. michael@0: # Shell code in configure.ac might set extrasub. michael@0: # FIXME: do we really want to maintain this feature? michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_sed_extra="$ac_vpsub michael@0: $extrasub michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: :t michael@0: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b michael@0: s|@configure_input@|$ac_sed_conf_input|;t t michael@0: s&@top_builddir@&$ac_top_builddir_sub&;t t michael@0: s&@top_build_prefix@&$ac_top_build_prefix&;t t michael@0: s&@srcdir@&$ac_srcdir&;t t michael@0: s&@abs_srcdir@&$ac_abs_srcdir&;t t michael@0: s&@top_srcdir@&$ac_top_srcdir&;t t michael@0: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t michael@0: s&@builddir@&$ac_builddir&;t t michael@0: s&@abs_builddir@&$ac_abs_builddir&;t t michael@0: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t michael@0: s&@INSTALL@&$ac_INSTALL&;t t michael@0: s&@MKDIR_P@&$ac_MKDIR_P&;t t michael@0: $ac_datarootdir_hack michael@0: " michael@0: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ michael@0: || as_fn_error "could not create $ac_file" "$LINENO" 5 michael@0: michael@0: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && michael@0: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && michael@0: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' michael@0: which seems to be undefined. Please make sure it is defined." >&5 michael@0: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' michael@0: which seems to be undefined. Please make sure it is defined." >&2;} michael@0: michael@0: rm -f "$tmp/stdin" michael@0: case $ac_file in michael@0: -) cat "$tmp/out" && rm -f "$tmp/out";; michael@0: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; michael@0: esac \ michael@0: || as_fn_error "could not create $ac_file" "$LINENO" 5 michael@0: ;; michael@0: :H) michael@0: # michael@0: # CONFIG_HEADER michael@0: # michael@0: if test x"$ac_file" != x-; then michael@0: { michael@0: $as_echo "/* $configure_input */" \ michael@0: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" michael@0: } >"$tmp/config.h" \ michael@0: || as_fn_error "could not create $ac_file" "$LINENO" 5 michael@0: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 michael@0: $as_echo "$as_me: $ac_file is unchanged" >&6;} michael@0: else michael@0: rm -f "$ac_file" michael@0: mv "$tmp/config.h" "$ac_file" \ michael@0: || as_fn_error "could not create $ac_file" "$LINENO" 5 michael@0: fi michael@0: else michael@0: $as_echo "/* $configure_input */" \ michael@0: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ michael@0: || as_fn_error "could not create -" "$LINENO" 5 michael@0: fi michael@0: # Compute "$ac_file"'s index in $config_headers. michael@0: _am_arg="$ac_file" michael@0: _am_stamp_count=1 michael@0: for _am_header in $config_headers :; do michael@0: case $_am_header in michael@0: $_am_arg | $_am_arg:* ) michael@0: break ;; michael@0: * ) michael@0: _am_stamp_count=`expr $_am_stamp_count + 1` ;; michael@0: esac michael@0: done michael@0: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || michael@0: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$_am_arg" : 'X\(//\)[^/]' \| \ michael@0: X"$_am_arg" : 'X\(//\)$' \| \ michael@0: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$_am_arg" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'`/stamp-h$_am_stamp_count michael@0: ;; michael@0: michael@0: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 michael@0: $as_echo "$as_me: executing $ac_file commands" >&6;} michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: case $ac_file$ac_mode in michael@0: "depfiles":C) test x"$AMDEP_TRUE" != x"" || { michael@0: # Autoconf 2.62 quotes --file arguments for eval, but not when files michael@0: # are listed without --file. Let's play safe and only enable the eval michael@0: # if we detect the quoting. michael@0: case $CONFIG_FILES in michael@0: *\'*) eval set x "$CONFIG_FILES" ;; michael@0: *) set x $CONFIG_FILES ;; michael@0: esac michael@0: shift michael@0: for mf michael@0: do michael@0: # Strip MF so we end up with the name of the file. michael@0: mf=`echo "$mf" | sed -e 's/:.*$//'` michael@0: # Check whether this is an Automake generated Makefile or not. michael@0: # We used to match only the files named `Makefile.in', but michael@0: # some people rename them; so instead we look at the file content. michael@0: # Grep'ing the first line is not enough: some people post-process michael@0: # each Makefile.in and add a new line on top of each file to say so. michael@0: # Grep'ing the whole file is not good either: AIX grep has a line michael@0: # limit of 2048, but all sed's we know have understand at least 4000. michael@0: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then michael@0: dirpart=`$as_dirname -- "$mf" || michael@0: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$mf" : 'X\(//\)[^/]' \| \ michael@0: X"$mf" : 'X\(//\)$' \| \ michael@0: X"$mf" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$mf" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: else michael@0: continue michael@0: fi michael@0: # Extract the definition of DEPDIR, am__include, and am__quote michael@0: # from the Makefile without running `make'. michael@0: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` michael@0: test -z "$DEPDIR" && continue michael@0: am__include=`sed -n 's/^am__include = //p' < "$mf"` michael@0: test -z "am__include" && continue michael@0: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` michael@0: # When using ansi2knr, U may be empty or an underscore; expand it michael@0: U=`sed -n 's/^U = //p' < "$mf"` michael@0: # Find all dependency output files, they are included files with michael@0: # $(DEPDIR) in their names. We invoke sed twice because it is the michael@0: # simplest approach to changing $(DEPDIR) to its actual value in the michael@0: # expansion. michael@0: for file in `sed -n " michael@0: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ michael@0: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do michael@0: # Make sure the directory exists. michael@0: test -f "$dirpart/$file" && continue michael@0: fdir=`$as_dirname -- "$file" || michael@0: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$file" : 'X\(//\)[^/]' \| \ michael@0: X"$file" : 'X\(//\)$' \| \ michael@0: X"$file" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$file" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: as_dir=$dirpart/$fdir; as_fn_mkdir_p michael@0: # echo "creating $dirpart/$file" michael@0: echo '# dummy' > "$dirpart/$file" michael@0: done michael@0: done michael@0: } michael@0: ;; michael@0: "libtool":C) michael@0: michael@0: # See if we are running on zsh, and set the options which allow our michael@0: # commands through without removal of \ escapes. michael@0: if test -n "${ZSH_VERSION+set}" ; then michael@0: setopt NO_GLOB_SUBST michael@0: fi michael@0: michael@0: cfgfile="${ofile}T" michael@0: trap "$RM \"$cfgfile\"; exit 1" 1 2 15 michael@0: $RM "$cfgfile" michael@0: michael@0: cat <<_LT_EOF >> "$cfgfile" michael@0: #! $SHELL michael@0: michael@0: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. michael@0: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION michael@0: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: michael@0: # NOTE: Changes made to this file will be lost: look at ltmain.sh. michael@0: # michael@0: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, michael@0: # 2006, 2007, 2008 Free Software Foundation, Inc. michael@0: # Written by Gordon Matzigkeit, 1996 michael@0: # michael@0: # This file is part of GNU Libtool. michael@0: # michael@0: # GNU Libtool is free software; you can redistribute it and/or michael@0: # modify it under the terms of the GNU General Public License as michael@0: # published by the Free Software Foundation; either version 2 of michael@0: # the License, or (at your option) any later version. michael@0: # michael@0: # As a special exception to the GNU General Public License, michael@0: # if you distribute this file as part of a program or library that michael@0: # is built using GNU Libtool, you may include this file under the michael@0: # same distribution terms that you use for the rest of that program. michael@0: # michael@0: # GNU Libtool is distributed in the hope that it will be useful, michael@0: # but WITHOUT ANY WARRANTY; without even the implied warranty of michael@0: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the michael@0: # GNU General Public License for more details. michael@0: # michael@0: # You should have received a copy of the GNU General Public License michael@0: # along with GNU Libtool; see the file COPYING. If not, a copy michael@0: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or michael@0: # obtained by writing to the Free Software Foundation, Inc., michael@0: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. michael@0: michael@0: michael@0: # The names of the tagged configurations supported by this script. michael@0: available_tags="CXX " michael@0: michael@0: # ### BEGIN LIBTOOL CONFIG michael@0: michael@0: # Which release of libtool.m4 was used? michael@0: macro_version=$macro_version michael@0: macro_revision=$macro_revision michael@0: michael@0: # Whether or not to build shared libraries. michael@0: build_libtool_libs=$enable_shared michael@0: michael@0: # Whether or not to build static libraries. michael@0: build_old_libs=$enable_static michael@0: michael@0: # What type of objects to build. michael@0: pic_mode=$pic_mode michael@0: michael@0: # Whether or not to optimize for fast installation. michael@0: fast_install=$enable_fast_install michael@0: michael@0: # The host system. michael@0: host_alias=$host_alias michael@0: host=$host michael@0: host_os=$host_os michael@0: michael@0: # The build system. michael@0: build_alias=$build_alias michael@0: build=$build michael@0: build_os=$build_os michael@0: michael@0: # A sed program that does not truncate output. michael@0: SED=$lt_SED michael@0: michael@0: # Sed that helps us avoid accidentally triggering echo(1) options like -n. michael@0: Xsed="\$SED -e 1s/^X//" michael@0: michael@0: # A grep program that handles long lines. michael@0: GREP=$lt_GREP michael@0: michael@0: # An ERE matcher. michael@0: EGREP=$lt_EGREP michael@0: michael@0: # A literal string matcher. michael@0: FGREP=$lt_FGREP michael@0: michael@0: # A BSD- or MS-compatible name lister. michael@0: NM=$lt_NM michael@0: michael@0: # Whether we need soft or hard links. michael@0: LN_S=$lt_LN_S michael@0: michael@0: # What is the maximum length of a command? michael@0: max_cmd_len=$max_cmd_len michael@0: michael@0: # Object file suffix (normally "o"). michael@0: objext=$ac_objext michael@0: michael@0: # Executable file suffix (normally ""). michael@0: exeext=$exeext michael@0: michael@0: # whether the shell understands "unset". michael@0: lt_unset=$lt_unset michael@0: michael@0: # turn spaces into newlines. michael@0: SP2NL=$lt_lt_SP2NL michael@0: michael@0: # turn newlines into spaces. michael@0: NL2SP=$lt_lt_NL2SP michael@0: michael@0: # How to create reloadable object files. michael@0: reload_flag=$lt_reload_flag michael@0: reload_cmds=$lt_reload_cmds michael@0: michael@0: # An object symbol dumper. michael@0: OBJDUMP=$lt_OBJDUMP michael@0: michael@0: # Method to check whether dependent libraries are shared objects. michael@0: deplibs_check_method=$lt_deplibs_check_method michael@0: michael@0: # Command to use when deplibs_check_method == "file_magic". michael@0: file_magic_cmd=$lt_file_magic_cmd michael@0: michael@0: # The archiver. michael@0: AR=$lt_AR michael@0: AR_FLAGS=$lt_AR_FLAGS michael@0: michael@0: # A symbol stripping program. michael@0: STRIP=$lt_STRIP michael@0: michael@0: # Commands used to install an old-style archive. michael@0: RANLIB=$lt_RANLIB michael@0: old_postinstall_cmds=$lt_old_postinstall_cmds michael@0: old_postuninstall_cmds=$lt_old_postuninstall_cmds michael@0: michael@0: # A C compiler. michael@0: LTCC=$lt_CC michael@0: michael@0: # LTCC compiler flags. michael@0: LTCFLAGS=$lt_CFLAGS michael@0: michael@0: # Take the output of nm and produce a listing of raw symbols and C names. michael@0: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe michael@0: michael@0: # Transform the output of nm in a proper C declaration. michael@0: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl michael@0: michael@0: # Transform the output of nm in a C name address pair. michael@0: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address michael@0: michael@0: # Transform the output of nm in a C name address pair when lib prefix is needed. michael@0: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix michael@0: michael@0: # The name of the directory that contains temporary libtool files. michael@0: objdir=$objdir michael@0: michael@0: # Shell to use when invoking shell scripts. michael@0: SHELL=$lt_SHELL michael@0: michael@0: # An echo program that does not interpret backslashes. michael@0: ECHO=$lt_ECHO michael@0: michael@0: # Used to examine libraries when file_magic_cmd begins with "file". michael@0: MAGIC_CMD=$MAGIC_CMD michael@0: michael@0: # Must we lock files when doing compilation? michael@0: need_locks=$lt_need_locks michael@0: michael@0: # Tool to manipulate archived DWARF debug symbol files on Mac OS X. michael@0: DSYMUTIL=$lt_DSYMUTIL michael@0: michael@0: # Tool to change global to local symbols on Mac OS X. michael@0: NMEDIT=$lt_NMEDIT michael@0: michael@0: # Tool to manipulate fat objects and archives on Mac OS X. michael@0: LIPO=$lt_LIPO michael@0: michael@0: # ldd/readelf like tool for Mach-O binaries on Mac OS X. michael@0: OTOOL=$lt_OTOOL michael@0: michael@0: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. michael@0: OTOOL64=$lt_OTOOL64 michael@0: michael@0: # Old archive suffix (normally "a"). michael@0: libext=$libext michael@0: michael@0: # Shared library suffix (normally ".so"). michael@0: shrext_cmds=$lt_shrext_cmds michael@0: michael@0: # The commands to extract the exported symbol list from a shared archive. michael@0: extract_expsyms_cmds=$lt_extract_expsyms_cmds michael@0: michael@0: # Variables whose values should be saved in libtool wrapper scripts and michael@0: # restored at link time. michael@0: variables_saved_for_relink=$lt_variables_saved_for_relink michael@0: michael@0: # Do we need the "lib" prefix for modules? michael@0: need_lib_prefix=$need_lib_prefix michael@0: michael@0: # Do we need a version for libraries? michael@0: need_version=$need_version michael@0: michael@0: # Library versioning type. michael@0: version_type=$version_type michael@0: michael@0: # Shared library runtime path variable. michael@0: runpath_var=$runpath_var michael@0: michael@0: # Shared library path variable. michael@0: shlibpath_var=$shlibpath_var michael@0: michael@0: # Is shlibpath searched before the hard-coded library search path? michael@0: shlibpath_overrides_runpath=$shlibpath_overrides_runpath michael@0: michael@0: # Format of library name prefix. michael@0: libname_spec=$lt_libname_spec michael@0: michael@0: # List of archive names. First name is the real one, the rest are links. michael@0: # The last name is the one that the linker finds with -lNAME michael@0: library_names_spec=$lt_library_names_spec michael@0: michael@0: # The coded name of the library, if different from the real name. michael@0: soname_spec=$lt_soname_spec michael@0: michael@0: # Command to use after installation of a shared archive. michael@0: postinstall_cmds=$lt_postinstall_cmds michael@0: michael@0: # Command to use after uninstallation of a shared archive. michael@0: postuninstall_cmds=$lt_postuninstall_cmds michael@0: michael@0: # Commands used to finish a libtool library installation in a directory. michael@0: finish_cmds=$lt_finish_cmds michael@0: michael@0: # As "finish_cmds", except a single script fragment to be evaled but michael@0: # not shown. michael@0: finish_eval=$lt_finish_eval michael@0: michael@0: # Whether we should hardcode library paths into libraries. michael@0: hardcode_into_libs=$hardcode_into_libs michael@0: michael@0: # Compile-time system search path for libraries. michael@0: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec michael@0: michael@0: # Run-time system search path for libraries. michael@0: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec michael@0: michael@0: # Whether dlopen is supported. michael@0: dlopen_support=$enable_dlopen michael@0: michael@0: # Whether dlopen of programs is supported. michael@0: dlopen_self=$enable_dlopen_self michael@0: michael@0: # Whether dlopen of statically linked programs is supported. michael@0: dlopen_self_static=$enable_dlopen_self_static michael@0: michael@0: # Commands to strip libraries. michael@0: old_striplib=$lt_old_striplib michael@0: striplib=$lt_striplib michael@0: michael@0: michael@0: # The linker used to build libraries. michael@0: LD=$lt_LD michael@0: michael@0: # Commands used to build an old-style archive. michael@0: old_archive_cmds=$lt_old_archive_cmds michael@0: michael@0: # A language specific compiler. michael@0: CC=$lt_compiler michael@0: michael@0: # Is the compiler the GNU compiler? michael@0: with_gcc=$GCC michael@0: michael@0: # Compiler flag to turn off builtin functions. michael@0: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag michael@0: michael@0: # How to pass a linker flag through the compiler. michael@0: wl=$lt_lt_prog_compiler_wl michael@0: michael@0: # Additional compiler flags for building library objects. michael@0: pic_flag=$lt_lt_prog_compiler_pic michael@0: michael@0: # Compiler flag to prevent dynamic linking. michael@0: link_static_flag=$lt_lt_prog_compiler_static michael@0: michael@0: # Does compiler simultaneously support -c and -o options? michael@0: compiler_c_o=$lt_lt_cv_prog_compiler_c_o michael@0: michael@0: # Whether or not to add -lc for building shared libraries. michael@0: build_libtool_need_lc=$archive_cmds_need_lc michael@0: michael@0: # Whether or not to disallow shared libs when runtime libs are static. michael@0: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes michael@0: michael@0: # Compiler flag to allow reflexive dlopens. michael@0: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec michael@0: michael@0: # Compiler flag to generate shared objects directly from archives. michael@0: whole_archive_flag_spec=$lt_whole_archive_flag_spec michael@0: michael@0: # Whether the compiler copes with passing no objects directly. michael@0: compiler_needs_object=$lt_compiler_needs_object michael@0: michael@0: # Create an old-style archive from a shared archive. michael@0: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds michael@0: michael@0: # Create a temporary old-style archive to link instead of a shared archive. michael@0: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds michael@0: michael@0: # Commands used to build a shared archive. michael@0: archive_cmds=$lt_archive_cmds michael@0: archive_expsym_cmds=$lt_archive_expsym_cmds michael@0: michael@0: # Commands used to build a loadable module if different from building michael@0: # a shared archive. michael@0: module_cmds=$lt_module_cmds michael@0: module_expsym_cmds=$lt_module_expsym_cmds michael@0: michael@0: # Whether we are building with GNU ld or not. michael@0: with_gnu_ld=$lt_with_gnu_ld michael@0: michael@0: # Flag that allows shared libraries with undefined symbols to be built. michael@0: allow_undefined_flag=$lt_allow_undefined_flag michael@0: michael@0: # Flag that enforces no undefined symbols. michael@0: no_undefined_flag=$lt_no_undefined_flag michael@0: michael@0: # Flag to hardcode \$libdir into a binary during linking. michael@0: # This must work even if \$libdir does not exist michael@0: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec michael@0: michael@0: # If ld is used when linking, flag to hardcode \$libdir into a binary michael@0: # during linking. This must work even if \$libdir does not exist. michael@0: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld michael@0: michael@0: # Whether we need a single "-rpath" flag with a separated argument. michael@0: hardcode_libdir_separator=$lt_hardcode_libdir_separator michael@0: michael@0: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes michael@0: # DIR into the resulting binary. michael@0: hardcode_direct=$hardcode_direct michael@0: michael@0: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes michael@0: # DIR into the resulting binary and the resulting library dependency is michael@0: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the michael@0: # library is relocated. michael@0: hardcode_direct_absolute=$hardcode_direct_absolute michael@0: michael@0: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR michael@0: # into the resulting binary. michael@0: hardcode_minus_L=$hardcode_minus_L michael@0: michael@0: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR michael@0: # into the resulting binary. michael@0: hardcode_shlibpath_var=$hardcode_shlibpath_var michael@0: michael@0: # Set to "yes" if building a shared library automatically hardcodes DIR michael@0: # into the library and all subsequent libraries and executables linked michael@0: # against it. michael@0: hardcode_automatic=$hardcode_automatic michael@0: michael@0: # Set to yes if linker adds runtime paths of dependent libraries michael@0: # to runtime path list. michael@0: inherit_rpath=$inherit_rpath michael@0: michael@0: # Whether libtool must link a program against all its dependency libraries. michael@0: link_all_deplibs=$link_all_deplibs michael@0: michael@0: # Fix the shell variable \$srcfile for the compiler. michael@0: fix_srcfile_path=$lt_fix_srcfile_path michael@0: michael@0: # Set to "yes" if exported symbols are required. michael@0: always_export_symbols=$always_export_symbols michael@0: michael@0: # The commands to list exported symbols. michael@0: export_symbols_cmds=$lt_export_symbols_cmds michael@0: michael@0: # Symbols that should not be listed in the preloaded symbols. michael@0: exclude_expsyms=$lt_exclude_expsyms michael@0: michael@0: # Symbols that must always be exported. michael@0: include_expsyms=$lt_include_expsyms michael@0: michael@0: # Commands necessary for linking programs (against libraries) with templates. michael@0: prelink_cmds=$lt_prelink_cmds michael@0: michael@0: # Specify filename containing input files. michael@0: file_list_spec=$lt_file_list_spec michael@0: michael@0: # How to hardcode a shared library path into an executable. michael@0: hardcode_action=$hardcode_action michael@0: michael@0: # The directories searched by this compiler when creating a shared library. michael@0: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs michael@0: michael@0: # Dependencies to place before and after the objects being linked to michael@0: # create a shared library. michael@0: predep_objects=$lt_predep_objects michael@0: postdep_objects=$lt_postdep_objects michael@0: predeps=$lt_predeps michael@0: postdeps=$lt_postdeps michael@0: michael@0: # The library search path used internally by the compiler when linking michael@0: # a shared library. michael@0: compiler_lib_search_path=$lt_compiler_lib_search_path michael@0: michael@0: # ### END LIBTOOL CONFIG michael@0: michael@0: _LT_EOF michael@0: michael@0: case $host_os in michael@0: aix3*) michael@0: cat <<\_LT_EOF >> "$cfgfile" michael@0: # AIX sometimes has problems with the GCC collect2 program. For some michael@0: # reason, if we set the COLLECT_NAMES environment variable, the problems michael@0: # vanish in a puff of smoke. michael@0: if test "X${COLLECT_NAMES+set}" != Xset; then michael@0: COLLECT_NAMES= michael@0: export COLLECT_NAMES michael@0: fi michael@0: _LT_EOF michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: ltmain="$ac_aux_dir/ltmain.sh" michael@0: michael@0: michael@0: # We use sed instead of cat because bash on DJGPP gets confused if michael@0: # if finds mixed CR/LF and LF-only lines. Since sed operates in michael@0: # text mode, it properly converts lines to CR/LF. This bash problem michael@0: # is reportedly fixed, but why not run on old versions too? michael@0: sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ michael@0: || (rm -f "$cfgfile"; exit 1) michael@0: michael@0: case $xsi_shell in michael@0: yes) michael@0: cat << \_LT_EOF >> "$cfgfile" michael@0: michael@0: # func_dirname file append nondir_replacement michael@0: # Compute the dirname of FILE. If nonempty, add APPEND to the result, michael@0: # otherwise set result to NONDIR_REPLACEMENT. michael@0: func_dirname () michael@0: { michael@0: case ${1} in michael@0: */*) func_dirname_result="${1%/*}${2}" ;; michael@0: * ) func_dirname_result="${3}" ;; michael@0: esac michael@0: } michael@0: michael@0: # func_basename file michael@0: func_basename () michael@0: { michael@0: func_basename_result="${1##*/}" michael@0: } michael@0: michael@0: # func_dirname_and_basename file append nondir_replacement michael@0: # perform func_basename and func_dirname in a single function michael@0: # call: michael@0: # dirname: Compute the dirname of FILE. If nonempty, michael@0: # add APPEND to the result, otherwise set result michael@0: # to NONDIR_REPLACEMENT. michael@0: # value returned in "$func_dirname_result" michael@0: # basename: Compute filename of FILE. michael@0: # value retuned in "$func_basename_result" michael@0: # Implementation must be kept synchronized with func_dirname michael@0: # and func_basename. For efficiency, we do not delegate to michael@0: # those functions but instead duplicate the functionality here. michael@0: func_dirname_and_basename () michael@0: { michael@0: case ${1} in michael@0: */*) func_dirname_result="${1%/*}${2}" ;; michael@0: * ) func_dirname_result="${3}" ;; michael@0: esac michael@0: func_basename_result="${1##*/}" michael@0: } michael@0: michael@0: # func_stripname prefix suffix name michael@0: # strip PREFIX and SUFFIX off of NAME. michael@0: # PREFIX and SUFFIX must not contain globbing or regex special michael@0: # characters, hashes, percent signs, but SUFFIX may contain a leading michael@0: # dot (in which case that matches only a dot). michael@0: func_stripname () michael@0: { michael@0: # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are michael@0: # positional parameters, so assign one to ordinary parameter first. michael@0: func_stripname_result=${3} michael@0: func_stripname_result=${func_stripname_result#"${1}"} michael@0: func_stripname_result=${func_stripname_result%"${2}"} michael@0: } michael@0: michael@0: # func_opt_split michael@0: func_opt_split () michael@0: { michael@0: func_opt_split_opt=${1%%=*} michael@0: func_opt_split_arg=${1#*=} michael@0: } michael@0: michael@0: # func_lo2o object michael@0: func_lo2o () michael@0: { michael@0: case ${1} in michael@0: *.lo) func_lo2o_result=${1%.lo}.${objext} ;; michael@0: *) func_lo2o_result=${1} ;; michael@0: esac michael@0: } michael@0: michael@0: # func_xform libobj-or-source michael@0: func_xform () michael@0: { michael@0: func_xform_result=${1%.*}.lo michael@0: } michael@0: michael@0: # func_arith arithmetic-term... michael@0: func_arith () michael@0: { michael@0: func_arith_result=$(( $* )) michael@0: } michael@0: michael@0: # func_len string michael@0: # STRING may not start with a hyphen. michael@0: func_len () michael@0: { michael@0: func_len_result=${#1} michael@0: } michael@0: michael@0: _LT_EOF michael@0: ;; michael@0: *) # Bourne compatible functions. michael@0: cat << \_LT_EOF >> "$cfgfile" michael@0: michael@0: # func_dirname file append nondir_replacement michael@0: # Compute the dirname of FILE. If nonempty, add APPEND to the result, michael@0: # otherwise set result to NONDIR_REPLACEMENT. michael@0: func_dirname () michael@0: { michael@0: # Extract subdirectory from the argument. michael@0: func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` michael@0: if test "X$func_dirname_result" = "X${1}"; then michael@0: func_dirname_result="${3}" michael@0: else michael@0: func_dirname_result="$func_dirname_result${2}" michael@0: fi michael@0: } michael@0: michael@0: # func_basename file michael@0: func_basename () michael@0: { michael@0: func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` michael@0: } michael@0: michael@0: michael@0: # func_stripname prefix suffix name michael@0: # strip PREFIX and SUFFIX off of NAME. michael@0: # PREFIX and SUFFIX must not contain globbing or regex special michael@0: # characters, hashes, percent signs, but SUFFIX may contain a leading michael@0: # dot (in which case that matches only a dot). michael@0: # func_strip_suffix prefix name michael@0: func_stripname () michael@0: { michael@0: case ${2} in michael@0: .*) func_stripname_result=`$ECHO "X${3}" \ michael@0: | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; michael@0: *) func_stripname_result=`$ECHO "X${3}" \ michael@0: | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; michael@0: esac michael@0: } michael@0: michael@0: # sed scripts: michael@0: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' michael@0: my_sed_long_arg='1s/^-[^=]*=//' michael@0: michael@0: # func_opt_split michael@0: func_opt_split () michael@0: { michael@0: func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` michael@0: func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` michael@0: } michael@0: michael@0: # func_lo2o object michael@0: func_lo2o () michael@0: { michael@0: func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` michael@0: } michael@0: michael@0: # func_xform libobj-or-source michael@0: func_xform () michael@0: { michael@0: func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` michael@0: } michael@0: michael@0: # func_arith arithmetic-term... michael@0: func_arith () michael@0: { michael@0: func_arith_result=`expr "$@"` michael@0: } michael@0: michael@0: # func_len string michael@0: # STRING may not start with a hyphen. michael@0: func_len () michael@0: { michael@0: func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` michael@0: } michael@0: michael@0: _LT_EOF michael@0: esac michael@0: michael@0: case $lt_shell_append in michael@0: yes) michael@0: cat << \_LT_EOF >> "$cfgfile" michael@0: michael@0: # func_append var value michael@0: # Append VALUE to the end of shell variable VAR. michael@0: func_append () michael@0: { michael@0: eval "$1+=\$2" michael@0: } michael@0: _LT_EOF michael@0: ;; michael@0: *) michael@0: cat << \_LT_EOF >> "$cfgfile" michael@0: michael@0: # func_append var value michael@0: # Append VALUE to the end of shell variable VAR. michael@0: func_append () michael@0: { michael@0: eval "$1=\$$1\$2" michael@0: } michael@0: michael@0: _LT_EOF michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ michael@0: || (rm -f "$cfgfile"; exit 1) michael@0: michael@0: mv -f "$cfgfile" "$ofile" || michael@0: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") michael@0: chmod +x "$ofile" michael@0: michael@0: michael@0: cat <<_LT_EOF >> "$ofile" michael@0: michael@0: # ### BEGIN LIBTOOL TAG CONFIG: CXX michael@0: michael@0: # The linker used to build libraries. michael@0: LD=$lt_LD_CXX michael@0: michael@0: # Commands used to build an old-style archive. michael@0: old_archive_cmds=$lt_old_archive_cmds_CXX michael@0: michael@0: # A language specific compiler. michael@0: CC=$lt_compiler_CXX michael@0: michael@0: # Is the compiler the GNU compiler? michael@0: with_gcc=$GCC_CXX michael@0: michael@0: # Compiler flag to turn off builtin functions. michael@0: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX michael@0: michael@0: # How to pass a linker flag through the compiler. michael@0: wl=$lt_lt_prog_compiler_wl_CXX michael@0: michael@0: # Additional compiler flags for building library objects. michael@0: pic_flag=$lt_lt_prog_compiler_pic_CXX michael@0: michael@0: # Compiler flag to prevent dynamic linking. michael@0: link_static_flag=$lt_lt_prog_compiler_static_CXX michael@0: michael@0: # Does compiler simultaneously support -c and -o options? michael@0: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX michael@0: michael@0: # Whether or not to add -lc for building shared libraries. michael@0: build_libtool_need_lc=$archive_cmds_need_lc_CXX michael@0: michael@0: # Whether or not to disallow shared libs when runtime libs are static. michael@0: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX michael@0: michael@0: # Compiler flag to allow reflexive dlopens. michael@0: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX michael@0: michael@0: # Compiler flag to generate shared objects directly from archives. michael@0: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX michael@0: michael@0: # Whether the compiler copes with passing no objects directly. michael@0: compiler_needs_object=$lt_compiler_needs_object_CXX michael@0: michael@0: # Create an old-style archive from a shared archive. michael@0: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX michael@0: michael@0: # Create a temporary old-style archive to link instead of a shared archive. michael@0: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX michael@0: michael@0: # Commands used to build a shared archive. michael@0: archive_cmds=$lt_archive_cmds_CXX michael@0: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX michael@0: michael@0: # Commands used to build a loadable module if different from building michael@0: # a shared archive. michael@0: module_cmds=$lt_module_cmds_CXX michael@0: module_expsym_cmds=$lt_module_expsym_cmds_CXX michael@0: michael@0: # Whether we are building with GNU ld or not. michael@0: with_gnu_ld=$lt_with_gnu_ld_CXX michael@0: michael@0: # Flag that allows shared libraries with undefined symbols to be built. michael@0: allow_undefined_flag=$lt_allow_undefined_flag_CXX michael@0: michael@0: # Flag that enforces no undefined symbols. michael@0: no_undefined_flag=$lt_no_undefined_flag_CXX michael@0: michael@0: # Flag to hardcode \$libdir into a binary during linking. michael@0: # This must work even if \$libdir does not exist michael@0: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX michael@0: michael@0: # If ld is used when linking, flag to hardcode \$libdir into a binary michael@0: # during linking. This must work even if \$libdir does not exist. michael@0: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX michael@0: michael@0: # Whether we need a single "-rpath" flag with a separated argument. michael@0: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX michael@0: michael@0: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes michael@0: # DIR into the resulting binary. michael@0: hardcode_direct=$hardcode_direct_CXX michael@0: michael@0: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes michael@0: # DIR into the resulting binary and the resulting library dependency is michael@0: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the michael@0: # library is relocated. michael@0: hardcode_direct_absolute=$hardcode_direct_absolute_CXX michael@0: michael@0: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR michael@0: # into the resulting binary. michael@0: hardcode_minus_L=$hardcode_minus_L_CXX michael@0: michael@0: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR michael@0: # into the resulting binary. michael@0: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX michael@0: michael@0: # Set to "yes" if building a shared library automatically hardcodes DIR michael@0: # into the library and all subsequent libraries and executables linked michael@0: # against it. michael@0: hardcode_automatic=$hardcode_automatic_CXX michael@0: michael@0: # Set to yes if linker adds runtime paths of dependent libraries michael@0: # to runtime path list. michael@0: inherit_rpath=$inherit_rpath_CXX michael@0: michael@0: # Whether libtool must link a program against all its dependency libraries. michael@0: link_all_deplibs=$link_all_deplibs_CXX michael@0: michael@0: # Fix the shell variable \$srcfile for the compiler. michael@0: fix_srcfile_path=$lt_fix_srcfile_path_CXX michael@0: michael@0: # Set to "yes" if exported symbols are required. michael@0: always_export_symbols=$always_export_symbols_CXX michael@0: michael@0: # The commands to list exported symbols. michael@0: export_symbols_cmds=$lt_export_symbols_cmds_CXX michael@0: michael@0: # Symbols that should not be listed in the preloaded symbols. michael@0: exclude_expsyms=$lt_exclude_expsyms_CXX michael@0: michael@0: # Symbols that must always be exported. michael@0: include_expsyms=$lt_include_expsyms_CXX michael@0: michael@0: # Commands necessary for linking programs (against libraries) with templates. michael@0: prelink_cmds=$lt_prelink_cmds_CXX michael@0: michael@0: # Specify filename containing input files. michael@0: file_list_spec=$lt_file_list_spec_CXX michael@0: michael@0: # How to hardcode a shared library path into an executable. michael@0: hardcode_action=$hardcode_action_CXX michael@0: michael@0: # The directories searched by this compiler when creating a shared library. michael@0: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX michael@0: michael@0: # Dependencies to place before and after the objects being linked to michael@0: # create a shared library. michael@0: predep_objects=$lt_predep_objects_CXX michael@0: postdep_objects=$lt_postdep_objects_CXX michael@0: predeps=$lt_predeps_CXX michael@0: postdeps=$lt_postdeps_CXX michael@0: michael@0: # The library search path used internally by the compiler when linking michael@0: # a shared library. michael@0: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX michael@0: michael@0: # ### END LIBTOOL TAG CONFIG: CXX michael@0: _LT_EOF michael@0: michael@0: ;; michael@0: michael@0: esac michael@0: done # for ac_tag michael@0: michael@0: michael@0: as_fn_exit 0 michael@0: _ACEOF michael@0: ac_clean_files=$ac_clean_files_save michael@0: michael@0: test $ac_write_fail = 0 || michael@0: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 michael@0: michael@0: michael@0: # configure is writing to config.log, and then calls config.status. michael@0: # config.status does its own redirection, appending to config.log. michael@0: # Unfortunately, on DOS this fails, as config.log is still kept open michael@0: # by configure, so config.status won't be able to write to it; its michael@0: # output is simply discarded. So we exec the FD to /dev/null, michael@0: # effectively closing config.log, so it can be properly (re)opened and michael@0: # appended to by config.status. When coming back to configure, we michael@0: # need to make the FD available again. michael@0: if test "$no_create" != yes; then michael@0: ac_cs_success=: michael@0: ac_config_status_args= michael@0: test "$silent" = yes && michael@0: ac_config_status_args="$ac_config_status_args --quiet" michael@0: exec 5>/dev/null michael@0: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false michael@0: exec 5>>config.log michael@0: # Use ||, not &&, to avoid exiting from the if with $? = 1, which michael@0: # would make configure fail if this is the last instruction. michael@0: $ac_cs_success || as_fn_exit $? michael@0: fi michael@0: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 michael@0: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} michael@0: fi michael@0: