319 kx #! /bin/sh
319 kx # Guess values for system-dependent variables and create Makefiles.
319 kx # Generated by GNU Autoconf 2.71 for exempi 2.6.5.
319 kx #
319 kx #
319 kx # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
319 kx # Inc.
319 kx #
319 kx #
319 kx # This configure script is free software; the Free Software Foundation
319 kx # gives unlimited permission to copy, distribute and modify it.
319 kx ## -------------------- ##
319 kx ## M4sh Initialization. ##
319 kx ## -------------------- ##
319 kx
319 kx # Be more Bourne compatible
319 kx DUALCASE=1; export DUALCASE # for MKS sh
319 kx as_nop=:
319 kx if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
319 kx then :
319 kx emulate sh
319 kx NULLCMD=:
319 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
319 kx # is contrary to our usage. Disable this feature.
319 kx alias -g '${1+"$@"}'='"$@"'
319 kx setopt NO_GLOB_SUBST
319 kx else $as_nop
319 kx case `(set -o) 2>/dev/null` in #(
319 kx *posix*) :
319 kx set -o posix ;; #(
319 kx *) :
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx
319 kx
319 kx # Reset variables that may have inherited troublesome values from
319 kx # the environment.
319 kx
319 kx # IFS needs to be set, to space, tab, and newline, in precisely that order.
319 kx # (If _AS_PATH_WALK were called with IFS unset, it would have the
319 kx # side effect of setting IFS to empty, thus disabling word splitting.)
319 kx # Quoting is to prevent editors from complaining about space-tab.
319 kx as_nl='
319 kx '
319 kx export as_nl
319 kx IFS=" "" $as_nl"
319 kx
319 kx PS1='$ '
319 kx PS2='> '
319 kx PS4='+ '
319 kx
319 kx # Ensure predictable behavior from utilities with locale-dependent output.
319 kx LC_ALL=C
319 kx export LC_ALL
319 kx LANGUAGE=C
319 kx export LANGUAGE
319 kx
319 kx # We cannot yet rely on "unset" to work, but we need these variables
319 kx # to be unset--not just set to an empty or harmless value--now, to
319 kx # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
319 kx # also avoids known problems related to "unset" and subshell syntax
319 kx # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
319 kx for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
319 kx do eval test \${$as_var+y} \
319 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
319 kx done
319 kx
319 kx # Ensure that fds 0, 1, and 2 are open.
319 kx if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
319 kx if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
319 kx if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
319 kx
319 kx # The user is always right.
319 kx if ${PATH_SEPARATOR+false} :; then
319 kx PATH_SEPARATOR=:
319 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
319 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
319 kx PATH_SEPARATOR=';'
319 kx }
319 kx fi
319 kx
319 kx
319 kx # Find who we are. Look in the path if we contain no directory separator.
319 kx as_myself=
319 kx case $0 in #((
319 kx *[\\/]* ) as_myself=$0 ;;
319 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx test -r "$as_dir$0" && as_myself=$as_dir$0 && break
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx ;;
319 kx esac
319 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
319 kx # in which case we are not to be found in the path.
319 kx if test "x$as_myself" = x; then
319 kx as_myself=$0
319 kx fi
319 kx if test ! -f "$as_myself"; then
319 kx printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
319 kx exit 1
319 kx fi
319 kx
319 kx
319 kx # Use a proper internal environment variable to ensure we don't fall
319 kx # into an infinite loop, continuously re-executing ourselves.
319 kx if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
319 kx _as_can_reexec=no; export _as_can_reexec;
319 kx # We cannot yet assume a decent shell, so we have to provide a
319 kx # neutralization value for shells without unset; and this also
319 kx # works around shells that cannot unset nonexistent variables.
319 kx # Preserve -v and -x to the replacement shell.
319 kx BASH_ENV=/dev/null
319 kx ENV=/dev/null
319 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
319 kx case $- in # ((((
319 kx *v*x* | *x*v* ) as_opts=-vx ;;
319 kx *v* ) as_opts=-v ;;
319 kx *x* ) as_opts=-x ;;
319 kx * ) as_opts= ;;
319 kx esac
319 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
319 kx # Admittedly, this is quite paranoid, since all the known shells bail
319 kx # out after a failed `exec'.
319 kx printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
319 kx exit 255
319 kx fi
319 kx # We don't want this to propagate to other subprocesses.
319 kx { _as_can_reexec=; unset _as_can_reexec;}
319 kx if test "x$CONFIG_SHELL" = x; then
319 kx as_bourne_compatible="as_nop=:
319 kx if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
319 kx then :
319 kx emulate sh
319 kx NULLCMD=:
319 kx # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
319 kx # is contrary to our usage. Disable this feature.
319 kx alias -g '\${1+\"\$@\"}'='\"\$@\"'
319 kx setopt NO_GLOB_SUBST
319 kx else \$as_nop
319 kx case \`(set -o) 2>/dev/null\` in #(
319 kx *posix*) :
319 kx set -o posix ;; #(
319 kx *) :
319 kx ;;
319 kx esac
319 kx fi
319 kx "
319 kx as_required="as_fn_return () { (exit \$1); }
319 kx as_fn_success () { as_fn_return 0; }
319 kx as_fn_failure () { as_fn_return 1; }
319 kx as_fn_ret_success () { return 0; }
319 kx as_fn_ret_failure () { return 1; }
319 kx
319 kx exitcode=0
319 kx as_fn_success || { exitcode=1; echo as_fn_success failed.; }
319 kx as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
319 kx as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
319 kx as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
319 kx if ( set x; as_fn_ret_success y && test x = \"\$1\" )
319 kx then :
319 kx
319 kx else \$as_nop
319 kx exitcode=1; echo positional parameters were not saved.
319 kx fi
319 kx test x\$exitcode = x0 || exit 1
319 kx blah=\$(echo \$(echo blah))
319 kx test x\"\$blah\" = xblah || exit 1
319 kx test -x / || exit 1"
319 kx as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
319 kx as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
319 kx eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
319 kx test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
319 kx
319 kx test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
319 kx ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
319 kx ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
319 kx ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
319 kx PATH=/empty FPATH=/empty; export PATH FPATH
319 kx test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
319 kx || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
319 kx test \$(( 1 + 1 )) = 2 || exit 1"
319 kx if (eval "$as_required") 2>/dev/null
319 kx then :
319 kx as_have_required=yes
319 kx else $as_nop
319 kx as_have_required=no
319 kx fi
319 kx if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
319 kx then :
319 kx
319 kx else $as_nop
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx as_found=false
319 kx for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx as_found=:
319 kx case $as_dir in #(
319 kx /*)
319 kx for as_base in sh bash ksh sh5; do
319 kx # Try only shells that exist, to save several forks.
319 kx as_shell=$as_dir$as_base
319 kx if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
319 kx as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
319 kx then :
319 kx CONFIG_SHELL=$as_shell as_have_required=yes
319 kx if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
319 kx then :
319 kx break 2
319 kx fi
319 kx fi
319 kx done;;
319 kx esac
319 kx as_found=false
319 kx done
319 kx IFS=$as_save_IFS
319 kx if $as_found
319 kx then :
319 kx
319 kx else $as_nop
319 kx if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
319 kx as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
319 kx then :
319 kx CONFIG_SHELL=$SHELL as_have_required=yes
319 kx fi
319 kx fi
319 kx
319 kx
319 kx if test "x$CONFIG_SHELL" != x
319 kx then :
319 kx export CONFIG_SHELL
319 kx # We cannot yet assume a decent shell, so we have to provide a
319 kx # neutralization value for shells without unset; and this also
319 kx # works around shells that cannot unset nonexistent variables.
319 kx # Preserve -v and -x to the replacement shell.
319 kx BASH_ENV=/dev/null
319 kx ENV=/dev/null
319 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
319 kx case $- in # ((((
319 kx *v*x* | *x*v* ) as_opts=-vx ;;
319 kx *v* ) as_opts=-v ;;
319 kx *x* ) as_opts=-x ;;
319 kx * ) as_opts= ;;
319 kx esac
319 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
319 kx # Admittedly, this is quite paranoid, since all the known shells bail
319 kx # out after a failed `exec'.
319 kx printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
319 kx exit 255
319 kx fi
319 kx
319 kx if test x$as_have_required = xno
319 kx then :
319 kx printf "%s\n" "$0: This script requires a shell more modern than all"
319 kx printf "%s\n" "$0: the shells that I found on your system."
319 kx if test ${ZSH_VERSION+y} ; then
319 kx printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
319 kx printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
319 kx else
319 kx printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
319 kx $0: including any error possibly output before this
319 kx $0: message. Then install a modern shell, or manually run
319 kx $0: the script under such a shell if you do have one."
319 kx fi
319 kx exit 1
319 kx fi
319 kx fi
319 kx fi
319 kx SHELL=${CONFIG_SHELL-/bin/sh}
319 kx export SHELL
319 kx # Unset more variables known to interfere with behavior of common tools.
319 kx CLICOLOR_FORCE= GREP_OPTIONS=
319 kx unset CLICOLOR_FORCE GREP_OPTIONS
319 kx
319 kx ## --------------------- ##
319 kx ## M4sh Shell Functions. ##
319 kx ## --------------------- ##
319 kx # as_fn_unset VAR
319 kx # ---------------
319 kx # Portably unset VAR.
319 kx as_fn_unset ()
319 kx {
319 kx { eval $1=; unset $1;}
319 kx }
319 kx as_unset=as_fn_unset
319 kx
319 kx
319 kx # as_fn_set_status STATUS
319 kx # -----------------------
319 kx # Set $? to STATUS, without forking.
319 kx as_fn_set_status ()
319 kx {
319 kx return $1
319 kx } # as_fn_set_status
319 kx
319 kx # as_fn_exit STATUS
319 kx # -----------------
319 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 kx as_fn_exit ()
319 kx {
319 kx set +e
319 kx as_fn_set_status $1
319 kx exit $1
319 kx } # as_fn_exit
319 kx # as_fn_nop
319 kx # ---------
319 kx # Do nothing but, unlike ":", preserve the value of $?.
319 kx as_fn_nop ()
319 kx {
319 kx return $?
319 kx }
319 kx as_nop=as_fn_nop
319 kx
319 kx # as_fn_mkdir_p
319 kx # -------------
319 kx # Create "$as_dir" as a directory, including parents if necessary.
319 kx as_fn_mkdir_p ()
319 kx {
319 kx
319 kx case $as_dir in #(
319 kx -*) as_dir=./$as_dir;;
319 kx esac
319 kx test -d "$as_dir" || eval $as_mkdir_p || {
319 kx as_dirs=
319 kx while :; do
319 kx case $as_dir in #(
319 kx *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
319 kx *) as_qdir=$as_dir;;
319 kx esac
319 kx as_dirs="'$as_qdir' $as_dirs"
319 kx as_dir=`$as_dirname -- "$as_dir" ||
319 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
319 kx X"$as_dir" : 'X\(//\)[^/]' \| \
319 kx X"$as_dir" : 'X\(//\)$' \| \
319 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
319 kx printf "%s\n" X"$as_dir" |
319 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)[^/].*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\).*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx s/.*/./; q'`
319 kx test -d "$as_dir" && break
319 kx done
319 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
319 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
319 kx
319 kx
319 kx } # as_fn_mkdir_p
319 kx
319 kx # as_fn_executable_p FILE
319 kx # -----------------------
319 kx # Test if FILE is an executable regular file.
319 kx as_fn_executable_p ()
319 kx {
319 kx test -f "$1" && test -x "$1"
319 kx } # as_fn_executable_p
319 kx # as_fn_append VAR VALUE
319 kx # ----------------------
319 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
319 kx # advantage of any shell optimizations that allow amortized linear growth over
319 kx # repeated appends, instead of the typical quadratic growth present in naive
319 kx # implementations.
319 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
319 kx then :
319 kx eval 'as_fn_append ()
319 kx {
319 kx eval $1+=\$2
319 kx }'
319 kx else $as_nop
319 kx as_fn_append ()
319 kx {
319 kx eval $1=\$$1\$2
319 kx }
319 kx fi # as_fn_append
319 kx
319 kx # as_fn_arith ARG...
319 kx # ------------------
319 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
319 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
319 kx # must be portable across $(()) and expr.
319 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
319 kx then :
319 kx eval 'as_fn_arith ()
319 kx {
319 kx as_val=$(( $* ))
319 kx }'
319 kx else $as_nop
319 kx as_fn_arith ()
319 kx {
319 kx as_val=`expr "$@" || test $? -eq 1`
319 kx }
319 kx fi # as_fn_arith
319 kx
319 kx # as_fn_nop
319 kx # ---------
319 kx # Do nothing but, unlike ":", preserve the value of $?.
319 kx as_fn_nop ()
319 kx {
319 kx return $?
319 kx }
319 kx as_nop=as_fn_nop
319 kx
319 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
319 kx # ----------------------------------------
319 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
319 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
319 kx # script with STATUS, using 1 if that was 0.
319 kx as_fn_error ()
319 kx {
319 kx as_status=$1; test $as_status -eq 0 && as_status=1
319 kx if test "$4"; then
319 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
319 kx fi
319 kx printf "%s\n" "$as_me: error: $2" >&2
319 kx as_fn_exit $as_status
319 kx } # as_fn_error
319 kx
319 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
319 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
319 kx as_expr=expr
319 kx else
319 kx as_expr=false
319 kx fi
319 kx
319 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
319 kx as_basename=basename
319 kx else
319 kx as_basename=false
319 kx fi
319 kx
319 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
319 kx as_dirname=dirname
319 kx else
319 kx as_dirname=false
319 kx fi
319 kx
319 kx as_me=`$as_basename -- "$0" ||
319 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
319 kx X"$0" : 'X\(//\)$' \| \
319 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
319 kx printf "%s\n" X/"$0" |
319 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\/\(\/\/\)$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\/\(\/\).*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx s/.*/./; q'`
319 kx
319 kx # Avoid depending upon Character Ranges.
319 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
319 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
319 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
319 kx as_cr_digits='0123456789'
319 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
319 kx
319 kx
319 kx as_lineno_1=$LINENO as_lineno_1a=$LINENO
319 kx as_lineno_2=$LINENO as_lineno_2a=$LINENO
319 kx eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
319 kx test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
319 kx # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
319 kx sed -n '
319 kx p
319 kx /[$]LINENO/=
319 kx ' <$as_myself |
319 kx sed '
319 kx s/[$]LINENO.*/&-/
319 kx t lineno
319 kx b
319 kx :lineno
319 kx N
319 kx :loop
319 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
319 kx t loop
319 kx s/-\n.*//
319 kx ' >$as_me.lineno &&
319 kx chmod +x "$as_me.lineno" ||
319 kx { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
319 kx
319 kx # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
319 kx # already done that, so ensure we don't try to do so again and fall
319 kx # in an infinite loop. This has already happened in practice.
319 kx _as_can_reexec=no; export _as_can_reexec
319 kx # Don't try to exec as it changes $[0], causing all sort of problems
319 kx # (the dirname of $[0] is not the place where we might find the
319 kx # original and so on. Autoconf is especially sensitive to this).
319 kx . "./$as_me.lineno"
319 kx # Exit status is that of the last command.
319 kx exit
319 kx }
319 kx
319 kx
319 kx # Determine whether it's possible to make 'echo' print without a newline.
319 kx # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
319 kx # for compatibility with existing Makefiles.
319 kx ECHO_C= ECHO_N= ECHO_T=
319 kx case `echo -n x` in #(((((
319 kx -n*)
319 kx case `echo 'xy\c'` in
319 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
319 kx xy) ECHO_C='\c';;
319 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
319 kx ECHO_T=' ';;
319 kx esac;;
319 kx *)
319 kx ECHO_N='-n';;
319 kx esac
319 kx
319 kx # For backward compatibility with old third-party macros, we provide
319 kx # the shell variables $as_echo and $as_echo_n. New code should use
319 kx # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
319 kx as_echo='printf %s\n'
319 kx as_echo_n='printf %s'
319 kx
319 kx
319 kx rm -f conf$$ conf$$.exe conf$$.file
319 kx if test -d conf$$.dir; then
319 kx rm -f conf$$.dir/conf$$.file
319 kx else
319 kx rm -f conf$$.dir
319 kx mkdir conf$$.dir 2>/dev/null
319 kx fi
319 kx if (echo >conf$$.file) 2>/dev/null; then
319 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
319 kx as_ln_s='ln -s'
319 kx # ... but there are two gotchas:
319 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
319 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
319 kx # In both cases, we have to default to `cp -pR'.
319 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
319 kx as_ln_s='cp -pR'
319 kx elif ln conf$$.file conf$$ 2>/dev/null; then
319 kx as_ln_s=ln
319 kx else
319 kx as_ln_s='cp -pR'
319 kx fi
319 kx else
319 kx as_ln_s='cp -pR'
319 kx fi
319 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
319 kx rmdir conf$$.dir 2>/dev/null
319 kx
319 kx if mkdir -p . 2>/dev/null; then
319 kx as_mkdir_p='mkdir -p "$as_dir"'
319 kx else
319 kx test -d ./-p && rmdir ./-p
319 kx as_mkdir_p=false
319 kx fi
319 kx
319 kx as_test_x='test -x'
319 kx as_executable_p=as_fn_executable_p
319 kx
319 kx # Sed expression to map a string onto a valid CPP name.
319 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
319 kx
319 kx # Sed expression to map a string onto a valid variable name.
319 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
319 kx
319 kx SHELL=${CONFIG_SHELL-/bin/sh}
319 kx
319 kx
319 kx test -n "$DJDIR" || exec 7<&0 </dev/null
319 kx exec 6>&1
319 kx
319 kx # Name of the host.
319 kx # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
319 kx # so uname gets run too.
319 kx ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
319 kx
319 kx #
319 kx # Initializations.
319 kx #
319 kx ac_default_prefix=/usr/local
319 kx ac_clean_files=
319 kx ac_config_libobj_dir=.
319 kx LIBOBJS=
319 kx cross_compiling=no
319 kx subdirs=
319 kx MFLAGS=
319 kx MAKEFLAGS=
319 kx
319 kx # Identity of this package.
319 kx PACKAGE_NAME='exempi'
319 kx PACKAGE_TARNAME='exempi'
319 kx PACKAGE_VERSION='2.6.5'
319 kx PACKAGE_STRING='exempi 2.6.5'
319 kx PACKAGE_BUGREPORT=''
319 kx PACKAGE_URL=''
319 kx
319 kx # Factoring default headers for most tests.
319 kx ac_includes_default="\
319 kx #include <stddef.h>
319 kx #ifdef HAVE_STDIO_H
319 kx # include <stdio.h>
319 kx #endif
319 kx #ifdef HAVE_STDLIB_H
319 kx # include <stdlib.h>
319 kx #endif
319 kx #ifdef HAVE_STRING_H
319 kx # include <string.h>
319 kx #endif
319 kx #ifdef HAVE_INTTYPES_H
319 kx # include <inttypes.h>
319 kx #endif
319 kx #ifdef HAVE_STDINT_H
319 kx # include <stdint.h>
319 kx #endif
319 kx #ifdef HAVE_STRINGS_H
319 kx # include <strings.h>
319 kx #endif
319 kx #ifdef HAVE_SYS_TYPES_H
319 kx # include <sys/types.h>
319 kx #endif
319 kx #ifdef HAVE_SYS_STAT_H
319 kx # include <sys/stat.h>
319 kx #endif
319 kx #ifdef HAVE_UNISTD_H
319 kx # include <unistd.h>
319 kx #endif"
319 kx
319 kx ac_header_c_list=
319 kx ac_subst_vars='am__EXEEXT_FALSE
319 kx am__EXEEXT_TRUE
319 kx LTLIBOBJS
319 kx LIBOBJS
319 kx XMPCORE_CPPFLAGS
319 kx VALGRIND
319 kx WITH_UNIT_TEST_FALSE
319 kx WITH_UNIT_TEST_TRUE
319 kx UNIX_ENV_FALSE
319 kx UNIX_ENV_TRUE
319 kx MAC_ENV_FALSE
319 kx MAC_ENV_TRUE
319 kx EXEMPI_PLATFORM_DEF
319 kx BOOST_UNIT_TEST_FRAMEWORK_LIBS
319 kx BOOST_LDPATH
319 kx BOOST_UNIT_TEST_FRAMEWORK_LDPATH
319 kx BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS
319 kx BOOST_CPPFLAGS
319 kx DISTCHECK_CONFIGURE_FLAGS
319 kx BOOST_ROOT
319 kx ENABLE_SAMPLES_FALSE
319 kx ENABLE_SAMPLES_TRUE
319 kx HAVE_CXX11
319 kx CXXCPP
319 kx LT_SYS_LIBRARY_PATH
319 kx OTOOL64
319 kx OTOOL
319 kx LIPO
319 kx NMEDIT
319 kx DSYMUTIL
319 kx MANIFEST_TOOL
319 kx RANLIB
319 kx ac_ct_AR
319 kx AR
319 kx DLLTOOL
319 kx OBJDUMP
319 kx FILECMD
319 kx LN_S
319 kx NM
319 kx ac_ct_DUMPBIN
319 kx DUMPBIN
319 kx LD
319 kx FGREP
319 kx EGREP
319 kx GREP
319 kx SED
319 kx host_os
319 kx host_vendor
319 kx host_cpu
319 kx host
319 kx build_os
319 kx build_vendor
319 kx build_cpu
319 kx build
319 kx LIBTOOL
319 kx am__fastdepCXX_FALSE
319 kx am__fastdepCXX_TRUE
319 kx CXXDEPMODE
319 kx ac_ct_CXX
319 kx CXXFLAGS
319 kx CXX
319 kx am__fastdepCC_FALSE
319 kx am__fastdepCC_TRUE
319 kx CCDEPMODE
319 kx am__nodep
319 kx AMDEPBACKSLASH
319 kx AMDEP_FALSE
319 kx AMDEP_TRUE
319 kx am__include
319 kx DEPDIR
319 kx OBJEXT
319 kx EXEEXT
319 kx ac_ct_CC
319 kx CPPFLAGS
319 kx LDFLAGS
319 kx CFLAGS
319 kx CC
319 kx pkgconfigdir
319 kx EXEMPI_INCLUDE_BASE
319 kx EXEMPI_MAJOR_VERSION
319 kx EXEMPI_VERSION_INFO
319 kx EXEMPI_CURRENT_MIN
319 kx EXEMPI_CURRENT
319 kx EXEMPI_AGE
319 kx EXEMPI_REVISION
319 kx MAINT
319 kx MAINTAINER_MODE_FALSE
319 kx MAINTAINER_MODE_TRUE
319 kx AM_BACKSLASH
319 kx AM_DEFAULT_VERBOSITY
319 kx AM_DEFAULT_V
319 kx AM_V
319 kx CSCOPE
319 kx ETAGS
319 kx CTAGS
319 kx am__untar
319 kx am__tar
319 kx AMTAR
319 kx am__leading_dot
319 kx SET_MAKE
319 kx AWK
319 kx mkdir_p
319 kx MKDIR_P
319 kx INSTALL_STRIP_PROGRAM
319 kx STRIP
319 kx install_sh
319 kx MAKEINFO
319 kx AUTOHEADER
319 kx AUTOMAKE
319 kx AUTOCONF
319 kx ACLOCAL
319 kx VERSION
319 kx PACKAGE
319 kx CYGPATH_W
319 kx am__isrc
319 kx INSTALL_DATA
319 kx INSTALL_SCRIPT
319 kx INSTALL_PROGRAM
319 kx target_alias
319 kx host_alias
319 kx build_alias
319 kx LIBS
319 kx ECHO_T
319 kx ECHO_N
319 kx ECHO_C
319 kx DEFS
319 kx mandir
319 kx localedir
319 kx libdir
319 kx psdir
319 kx pdfdir
319 kx dvidir
319 kx htmldir
319 kx infodir
319 kx docdir
319 kx oldincludedir
319 kx includedir
319 kx runstatedir
319 kx localstatedir
319 kx sharedstatedir
319 kx sysconfdir
319 kx datadir
319 kx datarootdir
319 kx libexecdir
319 kx sbindir
319 kx bindir
319 kx program_transform_name
319 kx prefix
319 kx exec_prefix
319 kx PACKAGE_URL
319 kx PACKAGE_BUGREPORT
319 kx PACKAGE_STRING
319 kx PACKAGE_VERSION
319 kx PACKAGE_TARNAME
319 kx PACKAGE_NAME
319 kx PATH_SEPARATOR
319 kx SHELL
319 kx am__quote'
319 kx ac_subst_files=''
319 kx ac_user_opts='
319 kx enable_option_checking
319 kx enable_silent_rules
319 kx enable_maintainer_mode
319 kx enable_dependency_tracking
319 kx enable_shared
319 kx enable_static
319 kx with_pic
319 kx enable_fast_install
319 kx with_aix_soname
319 kx with_gnu_ld
319 kx with_sysroot
319 kx enable_libtool_lock
319 kx with_darwinports
319 kx with_fink
319 kx enable_samples
319 kx enable_unittest
319 kx with_boost
319 kx enable_static_boost
319 kx enable_asan
319 kx '
319 kx ac_precious_vars='build_alias
319 kx host_alias
319 kx target_alias
319 kx CC
319 kx CFLAGS
319 kx LDFLAGS
319 kx LIBS
319 kx CPPFLAGS
319 kx CXX
319 kx CXXFLAGS
319 kx CCC
319 kx LT_SYS_LIBRARY_PATH
319 kx CXXCPP
319 kx BOOST_ROOT'
319 kx
319 kx
319 kx # Initialize some variables set by options.
319 kx ac_init_help=
319 kx ac_init_version=false
319 kx ac_unrecognized_opts=
319 kx ac_unrecognized_sep=
319 kx # The variables have the same names as the options, with
319 kx # dashes changed to underlines.
319 kx cache_file=/dev/null
319 kx exec_prefix=NONE
319 kx no_create=
319 kx no_recursion=
319 kx prefix=NONE
319 kx program_prefix=NONE
319 kx program_suffix=NONE
319 kx program_transform_name=s,x,x,
319 kx silent=
319 kx site=
319 kx srcdir=
319 kx verbose=
319 kx x_includes=NONE
319 kx x_libraries=NONE
319 kx
319 kx # Installation directory options.
319 kx # These are left unexpanded so users can "make install exec_prefix=/foo"
319 kx # and all the variables that are supposed to be based on exec_prefix
319 kx # by default will actually change.
319 kx # Use braces instead of parens because sh, perl, etc. also accept them.
319 kx # (The list follows the same order as the GNU Coding Standards.)
319 kx bindir='${exec_prefix}/bin'
319 kx sbindir='${exec_prefix}/sbin'
319 kx libexecdir='${exec_prefix}/libexec'
319 kx datarootdir='${prefix}/share'
319 kx datadir='${datarootdir}'
319 kx sysconfdir='${prefix}/etc'
319 kx sharedstatedir='${prefix}/com'
319 kx localstatedir='${prefix}/var'
319 kx runstatedir='${localstatedir}/run'
319 kx includedir='${prefix}/include'
319 kx oldincludedir='/usr/include'
319 kx docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
319 kx infodir='${datarootdir}/info'
319 kx htmldir='${docdir}'
319 kx dvidir='${docdir}'
319 kx pdfdir='${docdir}'
319 kx psdir='${docdir}'
319 kx libdir='${exec_prefix}/lib'
319 kx localedir='${datarootdir}/locale'
319 kx mandir='${datarootdir}/man'
319 kx
319 kx ac_prev=
319 kx ac_dashdash=
319 kx for ac_option
319 kx do
319 kx # If the previous option needs an argument, assign it.
319 kx if test -n "$ac_prev"; then
319 kx eval $ac_prev=\$ac_option
319 kx ac_prev=
319 kx continue
319 kx fi
319 kx
319 kx case $ac_option in
319 kx *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
319 kx *=) ac_optarg= ;;
319 kx *) ac_optarg=yes ;;
319 kx esac
319 kx
319 kx case $ac_dashdash$ac_option in
319 kx --)
319 kx ac_dashdash=yes ;;
319 kx
319 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
319 kx ac_prev=bindir ;;
319 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
319 kx bindir=$ac_optarg ;;
319 kx
319 kx -build | --build | --buil | --bui | --bu)
319 kx ac_prev=build_alias ;;
319 kx -build=* | --build=* | --buil=* | --bui=* | --bu=*)
319 kx build_alias=$ac_optarg ;;
319 kx
319 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
319 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
319 kx ac_prev=cache_file ;;
319 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
319 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
319 kx cache_file=$ac_optarg ;;
319 kx
319 kx --config-cache | -C)
319 kx cache_file=config.cache ;;
319 kx
319 kx -datadir | --datadir | --datadi | --datad)
319 kx ac_prev=datadir ;;
319 kx -datadir=* | --datadir=* | --datadi=* | --datad=*)
319 kx datadir=$ac_optarg ;;
319 kx
319 kx -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
319 kx | --dataroo | --dataro | --datar)
319 kx ac_prev=datarootdir ;;
319 kx -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
319 kx | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
319 kx datarootdir=$ac_optarg ;;
319 kx
319 kx -disable-* | --disable-*)
319 kx ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
319 kx # Reject names that are not valid shell variable names.
319 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
319 kx as_fn_error $? "invalid feature name: \`$ac_useropt'"
319 kx ac_useropt_orig=$ac_useropt
319 kx ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
319 kx case $ac_user_opts in
319 kx *"
319 kx "enable_$ac_useropt"
319 kx "*) ;;
319 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
319 kx ac_unrecognized_sep=', ';;
319 kx esac
319 kx eval enable_$ac_useropt=no ;;
319 kx
319 kx -docdir | --docdir | --docdi | --doc | --do)
319 kx ac_prev=docdir ;;
319 kx -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
319 kx docdir=$ac_optarg ;;
319 kx
319 kx -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
319 kx ac_prev=dvidir ;;
319 kx -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
319 kx dvidir=$ac_optarg ;;
319 kx
319 kx -enable-* | --enable-*)
319 kx ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
319 kx # Reject names that are not valid shell variable names.
319 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
319 kx as_fn_error $? "invalid feature name: \`$ac_useropt'"
319 kx ac_useropt_orig=$ac_useropt
319 kx ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
319 kx case $ac_user_opts in
319 kx *"
319 kx "enable_$ac_useropt"
319 kx "*) ;;
319 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
319 kx ac_unrecognized_sep=', ';;
319 kx esac
319 kx eval enable_$ac_useropt=\$ac_optarg ;;
319 kx
319 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
319 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
319 kx | --exec | --exe | --ex)
319 kx ac_prev=exec_prefix ;;
319 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
319 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
319 kx | --exec=* | --exe=* | --ex=*)
319 kx exec_prefix=$ac_optarg ;;
319 kx
319 kx -gas | --gas | --ga | --g)
319 kx # Obsolete; use --with-gas.
319 kx with_gas=yes ;;
319 kx
319 kx -help | --help | --hel | --he | -h)
319 kx ac_init_help=long ;;
319 kx -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
319 kx ac_init_help=recursive ;;
319 kx -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
319 kx ac_init_help=short ;;
319 kx
319 kx -host | --host | --hos | --ho)
319 kx ac_prev=host_alias ;;
319 kx -host=* | --host=* | --hos=* | --ho=*)
319 kx host_alias=$ac_optarg ;;
319 kx
319 kx -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
319 kx ac_prev=htmldir ;;
319 kx -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
319 kx | --ht=*)
319 kx htmldir=$ac_optarg ;;
319 kx
319 kx -includedir | --includedir | --includedi | --included | --include \
319 kx | --includ | --inclu | --incl | --inc)
319 kx ac_prev=includedir ;;
319 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
319 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
319 kx includedir=$ac_optarg ;;
319 kx
319 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
319 kx ac_prev=infodir ;;
319 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
319 kx infodir=$ac_optarg ;;
319 kx
319 kx -libdir | --libdir | --libdi | --libd)
319 kx ac_prev=libdir ;;
319 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
319 kx libdir=$ac_optarg ;;
319 kx
319 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
319 kx | --libexe | --libex | --libe)
319 kx ac_prev=libexecdir ;;
319 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
319 kx | --libexe=* | --libex=* | --libe=*)
319 kx libexecdir=$ac_optarg ;;
319 kx
319 kx -localedir | --localedir | --localedi | --localed | --locale)
319 kx ac_prev=localedir ;;
319 kx -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
319 kx localedir=$ac_optarg ;;
319 kx
319 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
319 kx | --localstate | --localstat | --localsta | --localst | --locals)
319 kx ac_prev=localstatedir ;;
319 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
319 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
319 kx localstatedir=$ac_optarg ;;
319 kx
319 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
319 kx ac_prev=mandir ;;
319 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 kx mandir=$ac_optarg ;;
319 kx
319 kx -nfp | --nfp | --nf)
319 kx # Obsolete; use --without-fp.
319 kx with_fp=no ;;
319 kx
319 kx -no-create | --no-create | --no-creat | --no-crea | --no-cre \
319 kx | --no-cr | --no-c | -n)
319 kx no_create=yes ;;
319 kx
319 kx -no-recursion | --no-recursion | --no-recursio | --no-recursi \
319 kx | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319 kx no_recursion=yes ;;
319 kx
319 kx -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
319 kx | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 kx | --oldin | --oldi | --old | --ol | --o)
319 kx ac_prev=oldincludedir ;;
319 kx -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
319 kx | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
319 kx | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319 kx oldincludedir=$ac_optarg ;;
319 kx
319 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 kx ac_prev=prefix ;;
319 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
319 kx prefix=$ac_optarg ;;
319 kx
319 kx -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 kx | --program-pre | --program-pr | --program-p)
319 kx ac_prev=program_prefix ;;
319 kx -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 kx | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
319 kx program_prefix=$ac_optarg ;;
319 kx
319 kx -program-suffix | --program-suffix | --program-suffi | --program-suff \
319 kx | --program-suf | --program-su | --program-s)
319 kx ac_prev=program_suffix ;;
319 kx -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 kx | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 kx program_suffix=$ac_optarg ;;
319 kx
319 kx -program-transform-name | --program-transform-name \
319 kx | --program-transform-nam | --program-transform-na \
319 kx | --program-transform-n | --program-transform- \
319 kx | --program-transform | --program-transfor \
319 kx | --program-transfo | --program-transf \
319 kx | --program-trans | --program-tran \
319 kx | --progr-tra | --program-tr | --program-t)
319 kx ac_prev=program_transform_name ;;
319 kx -program-transform-name=* | --program-transform-name=* \
319 kx | --program-transform-nam=* | --program-transform-na=* \
319 kx | --program-transform-n=* | --program-transform-=* \
319 kx | --program-transform=* | --program-transfor=* \
319 kx | --program-transfo=* | --program-transf=* \
319 kx | --program-trans=* | --program-tran=* \
319 kx | --progr-tra=* | --program-tr=* | --program-t=*)
319 kx program_transform_name=$ac_optarg ;;
319 kx
319 kx -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
319 kx ac_prev=pdfdir ;;
319 kx -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
319 kx pdfdir=$ac_optarg ;;
319 kx
319 kx -psdir | --psdir | --psdi | --psd | --ps)
319 kx ac_prev=psdir ;;
319 kx -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
319 kx psdir=$ac_optarg ;;
319 kx
319 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 kx | -silent | --silent | --silen | --sile | --sil)
319 kx silent=yes ;;
319 kx
319 kx -runstatedir | --runstatedir | --runstatedi | --runstated \
319 kx | --runstate | --runstat | --runsta | --runst | --runs \
319 kx | --run | --ru | --r)
319 kx ac_prev=runstatedir ;;
319 kx -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
319 kx | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
319 kx | --run=* | --ru=* | --r=*)
319 kx runstatedir=$ac_optarg ;;
319 kx
319 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 kx ac_prev=sbindir ;;
319 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 kx | --sbi=* | --sb=*)
319 kx sbindir=$ac_optarg ;;
319 kx
319 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 kx | --sharedst | --shareds | --shared | --share | --shar \
319 kx | --sha | --sh)
319 kx ac_prev=sharedstatedir ;;
319 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319 kx | --sha=* | --sh=*)
319 kx sharedstatedir=$ac_optarg ;;
319 kx
319 kx -site | --site | --sit)
319 kx ac_prev=site ;;
319 kx -site=* | --site=* | --sit=*)
319 kx site=$ac_optarg ;;
319 kx
319 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 kx ac_prev=srcdir ;;
319 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319 kx srcdir=$ac_optarg ;;
319 kx
319 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
319 kx | --syscon | --sysco | --sysc | --sys | --sy)
319 kx ac_prev=sysconfdir ;;
319 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
319 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
319 kx sysconfdir=$ac_optarg ;;
319 kx
319 kx -target | --target | --targe | --targ | --tar | --ta | --t)
319 kx ac_prev=target_alias ;;
319 kx -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
319 kx target_alias=$ac_optarg ;;
319 kx
319 kx -v | -verbose | --verbose | --verbos | --verbo | --verb)
319 kx verbose=yes ;;
319 kx
319 kx -version | --version | --versio | --versi | --vers | -V)
319 kx ac_init_version=: ;;
319 kx
319 kx -with-* | --with-*)
319 kx ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
319 kx # Reject names that are not valid shell variable names.
319 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
319 kx as_fn_error $? "invalid package name: \`$ac_useropt'"
319 kx ac_useropt_orig=$ac_useropt
319 kx ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
319 kx case $ac_user_opts in
319 kx *"
319 kx "with_$ac_useropt"
319 kx "*) ;;
319 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
319 kx ac_unrecognized_sep=', ';;
319 kx esac
319 kx eval with_$ac_useropt=\$ac_optarg ;;
319 kx
319 kx -without-* | --without-*)
319 kx ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
319 kx # Reject names that are not valid shell variable names.
319 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
319 kx as_fn_error $? "invalid package name: \`$ac_useropt'"
319 kx ac_useropt_orig=$ac_useropt
319 kx ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
319 kx case $ac_user_opts in
319 kx *"
319 kx "with_$ac_useropt"
319 kx "*) ;;
319 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
319 kx ac_unrecognized_sep=', ';;
319 kx esac
319 kx eval with_$ac_useropt=no ;;
319 kx
319 kx --x)
319 kx # Obsolete; use --with-x.
319 kx with_x=yes ;;
319 kx
319 kx -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
319 kx | --x-incl | --x-inc | --x-in | --x-i)
319 kx ac_prev=x_includes ;;
319 kx -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
319 kx | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
319 kx x_includes=$ac_optarg ;;
319 kx
319 kx -x-libraries | --x-libraries | --x-librarie | --x-librari \
319 kx | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
319 kx ac_prev=x_libraries ;;
319 kx -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
319 kx | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
319 kx x_libraries=$ac_optarg ;;
319 kx
319 kx -*) as_fn_error $? "unrecognized option: \`$ac_option'
319 kx Try \`$0 --help' for more information"
319 kx ;;
319 kx
319 kx *=*)
319 kx ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
319 kx # Reject names that are not valid shell variable names.
319 kx case $ac_envvar in #(
319 kx '' | [0-9]* | *[!_$as_cr_alnum]* )
319 kx as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
319 kx esac
319 kx eval $ac_envvar=\$ac_optarg
319 kx export $ac_envvar ;;
319 kx
319 kx *)
319 kx # FIXME: should be removed in autoconf 3.0.
319 kx printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
319 kx expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
319 kx printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
319 kx : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
319 kx ;;
319 kx
319 kx esac
319 kx done
319 kx
319 kx if test -n "$ac_prev"; then
319 kx ac_option=--`echo $ac_prev | sed 's/_/-/g'`
319 kx as_fn_error $? "missing argument to $ac_option"
319 kx fi
319 kx
319 kx if test -n "$ac_unrecognized_opts"; then
319 kx case $enable_option_checking in
319 kx no) ;;
319 kx fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
319 kx *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
319 kx esac
319 kx fi
319 kx
319 kx # Check all directory arguments for consistency.
319 kx for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
319 kx datadir sysconfdir sharedstatedir localstatedir includedir \
319 kx oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
319 kx libdir localedir mandir runstatedir
319 kx do
319 kx eval ac_val=\$$ac_var
319 kx # Remove trailing slashes.
319 kx case $ac_val in
319 kx */ )
319 kx ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
319 kx eval $ac_var=\$ac_val;;
319 kx esac
319 kx # Be sure to have absolute directory names.
319 kx case $ac_val in
319 kx [\\/$]* | ?:[\\/]* ) continue;;
319 kx NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
319 kx esac
319 kx as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
319 kx done
319 kx
319 kx # There might be people who depend on the old broken behavior: `$host'
319 kx # used to hold the argument of --host etc.
319 kx # FIXME: To remove some day.
319 kx build=$build_alias
319 kx host=$host_alias
319 kx target=$target_alias
319 kx
319 kx # FIXME: To remove some day.
319 kx if test "x$host_alias" != x; then
319 kx if test "x$build_alias" = x; then
319 kx cross_compiling=maybe
319 kx elif test "x$build_alias" != "x$host_alias"; then
319 kx cross_compiling=yes
319 kx fi
319 kx fi
319 kx
319 kx ac_tool_prefix=
319 kx test -n "$host_alias" && ac_tool_prefix=$host_alias-
319 kx
319 kx test "$silent" = yes && exec 6>/dev/null
319 kx
319 kx
319 kx ac_pwd=`pwd` && test -n "$ac_pwd" &&
319 kx ac_ls_di=`ls -di .` &&
319 kx ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
319 kx as_fn_error $? "working directory cannot be determined"
319 kx test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
319 kx as_fn_error $? "pwd does not report name of working directory"
319 kx
319 kx
319 kx # Find the source files, if location was not specified.
319 kx if test -z "$srcdir"; then
319 kx ac_srcdir_defaulted=yes
319 kx # Try the directory containing this script, then the parent directory.
319 kx ac_confdir=`$as_dirname -- "$as_myself" ||
319 kx $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
319 kx X"$as_myself" : 'X\(//\)[^/]' \| \
319 kx X"$as_myself" : 'X\(//\)$' \| \
319 kx X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
319 kx printf "%s\n" X"$as_myself" |
319 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)[^/].*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\).*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx s/.*/./; q'`
319 kx srcdir=$ac_confdir
319 kx if test ! -r "$srcdir/$ac_unique_file"; then
319 kx srcdir=..
319 kx fi
319 kx else
319 kx ac_srcdir_defaulted=no
319 kx fi
319 kx if test ! -r "$srcdir/$ac_unique_file"; then
319 kx test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
319 kx as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
319 kx fi
319 kx ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
319 kx ac_abs_confdir=`(
319 kx cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
319 kx pwd)`
319 kx # When building in place, set srcdir=.
319 kx if test "$ac_abs_confdir" = "$ac_pwd"; then
319 kx srcdir=.
319 kx fi
319 kx # Remove unnecessary trailing slashes from srcdir.
319 kx # Double slashes in file names in object file debugging info
319 kx # mess up M-x gdb in Emacs.
319 kx case $srcdir in
319 kx */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
319 kx esac
319 kx for ac_var in $ac_precious_vars; do
319 kx eval ac_env_${ac_var}_set=\${${ac_var}+set}
319 kx eval ac_env_${ac_var}_value=\$${ac_var}
319 kx eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
319 kx eval ac_cv_env_${ac_var}_value=\$${ac_var}
319 kx done
319 kx
319 kx #
319 kx # Report the --help message.
319 kx #
319 kx if test "$ac_init_help" = "long"; then
319 kx # Omit some internal or obsolete options to make the list less imposing.
319 kx # This message is too long to be a string in the A/UX 3.1 sh.
319 kx cat <<_ACEOF
319 kx \`configure' configures exempi 2.6.5 to adapt to many kinds of systems.
319 kx
319 kx Usage: $0 [OPTION]... [VAR=VALUE]...
319 kx
319 kx To assign environment variables (e.g., CC, CFLAGS...), specify them as
319 kx VAR=VALUE. See below for descriptions of some of the useful variables.
319 kx
319 kx Defaults for the options are specified in brackets.
319 kx
319 kx Configuration:
319 kx -h, --help display this help and exit
319 kx --help=short display options specific to this package
319 kx --help=recursive display the short help of all the included packages
319 kx -V, --version display version information and exit
319 kx -q, --quiet, --silent do not print \`checking ...' messages
319 kx --cache-file=FILE cache test results in FILE [disabled]
319 kx -C, --config-cache alias for \`--cache-file=config.cache'
319 kx -n, --no-create do not create output files
319 kx --srcdir=DIR find the sources in DIR [configure dir or \`..']
319 kx
319 kx Installation directories:
319 kx --prefix=PREFIX install architecture-independent files in PREFIX
319 kx [$ac_default_prefix]
319 kx --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
319 kx [PREFIX]
319 kx
319 kx By default, \`make install' will install all the files in
319 kx \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
319 kx an installation prefix other than \`$ac_default_prefix' using \`--prefix',
319 kx for instance \`--prefix=\$HOME'.
319 kx
319 kx For better control, use the options below.
319 kx
319 kx Fine tuning of the installation directories:
319 kx --bindir=DIR user executables [EPREFIX/bin]
319 kx --sbindir=DIR system admin executables [EPREFIX/sbin]
319 kx --libexecdir=DIR program executables [EPREFIX/libexec]
319 kx --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
319 kx --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
319 kx --localstatedir=DIR modifiable single-machine data [PREFIX/var]
319 kx --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
319 kx --libdir=DIR object code libraries [EPREFIX/lib]
319 kx --includedir=DIR C header files [PREFIX/include]
319 kx --oldincludedir=DIR C header files for non-gcc [/usr/include]
319 kx --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
319 kx --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
319 kx --infodir=DIR info documentation [DATAROOTDIR/info]
319 kx --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
319 kx --mandir=DIR man documentation [DATAROOTDIR/man]
319 kx --docdir=DIR documentation root [DATAROOTDIR/doc/exempi]
319 kx --htmldir=DIR html documentation [DOCDIR]
319 kx --dvidir=DIR dvi documentation [DOCDIR]
319 kx --pdfdir=DIR pdf documentation [DOCDIR]
319 kx --psdir=DIR ps documentation [DOCDIR]
319 kx _ACEOF
319 kx
319 kx cat <<\_ACEOF
319 kx
319 kx Program names:
319 kx --program-prefix=PREFIX prepend PREFIX to installed program names
319 kx --program-suffix=SUFFIX append SUFFIX to installed program names
319 kx --program-transform-name=PROGRAM run sed PROGRAM on installed program names
319 kx
319 kx System types:
319 kx --build=BUILD configure for building on BUILD [guessed]
319 kx --host=HOST cross-compile to build programs to run on HOST [BUILD]
319 kx _ACEOF
319 kx fi
319 kx
319 kx if test -n "$ac_init_help"; then
319 kx case $ac_init_help in
319 kx short | recursive ) echo "Configuration of exempi 2.6.5:";;
319 kx esac
319 kx cat <<\_ACEOF
319 kx
319 kx Optional Features:
319 kx --disable-option-checking ignore unrecognized --enable/--with options
319 kx --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319 kx --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
319 kx --enable-silent-rules less verbose build output (undo: "make V=1")
319 kx --disable-silent-rules verbose build output (undo: "make V=0")
319 kx --enable-maintainer-mode
319 kx enable make rules and dependencies not useful (and
319 kx sometimes confusing) to the casual installer
319 kx --enable-dependency-tracking
319 kx do not reject slow dependency extractors
319 kx --disable-dependency-tracking
319 kx speeds up one-time build
319 kx --enable-shared[=PKGS] build shared libraries [default=yes]
319 kx --enable-static[=PKGS] build static libraries [default=yes]
319 kx --enable-fast-install[=PKGS]
319 kx optimize for fast installation [default=yes]
319 kx --disable-libtool-lock avoid locking (might break parallel builds)
319 kx --enable-samples=yes|no enable the samples. (default is yes)
319 kx --enable-unittest=yes|no
319 kx enable the unittest. requires boost (default is yes)
319 kx --enable-static-boost Prefer the static boost libraries over the shared
319 kx ones [no]
319 kx --enable-asan Turn on address sanitizer
319 kx
319 kx Optional Packages:
319 kx --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
319 kx --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
319 kx --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
319 kx both]
319 kx --with-aix-soname=aix|svr4|both
319 kx shared library versioning (aka "SONAME") variant to
319 kx provide on AIX, [default=aix].
319 kx --with-gnu-ld assume the C compiler uses GNU ld [default=no]
319 kx --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
319 kx compiler's sysroot if not specified).
319 kx --with-darwinports add /opt/local/... to CPP/LDFLAGS (Mac OSX)
319 kx --with-fink add /sw/... to CPP/LDFLAGS (Mac OSX)
319 kx --with-boost=DIR prefix of Boost 1.60.0 [guess]
319 kx
319 kx Some influential environment variables:
319 kx CC C compiler command
319 kx CFLAGS C compiler flags
319 kx LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
319 kx nonstandard directory <lib dir>
319 kx LIBS libraries to pass to the linker, e.g. -l<library>
319 kx CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
319 kx you have headers in a nonstandard directory <include dir>
319 kx CXX C++ compiler command
319 kx CXXFLAGS C++ compiler flags
319 kx LT_SYS_LIBRARY_PATH
319 kx User-defined run-time library search path.
319 kx CXXCPP C++ preprocessor
319 kx BOOST_ROOT Location of Boost installation
319 kx
319 kx Use these variables to override the choices made by `configure' or to help
319 kx it to find libraries and programs with nonstandard names/locations.
319 kx
319 kx Report bugs to the package provider.
319 kx _ACEOF
319 kx ac_status=$?
319 kx fi
319 kx
319 kx if test "$ac_init_help" = "recursive"; then
319 kx # If there are subdirs, report their specific --help.
319 kx for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
319 kx test -d "$ac_dir" ||
319 kx { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
319 kx continue
319 kx ac_builddir=.
319 kx
319 kx case "$ac_dir" in
319 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
319 kx *)
319 kx ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
319 kx # A ".." for each directory in $ac_dir_suffix.
319 kx ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
319 kx case $ac_top_builddir_sub in
319 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
319 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
319 kx esac ;;
319 kx esac
319 kx ac_abs_top_builddir=$ac_pwd
319 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
319 kx # for backward compatibility:
319 kx ac_top_builddir=$ac_top_build_prefix
319 kx
319 kx case $srcdir in
319 kx .) # We are building in place.
319 kx ac_srcdir=.
319 kx ac_top_srcdir=$ac_top_builddir_sub
319 kx ac_abs_top_srcdir=$ac_pwd ;;
319 kx [\\/]* | ?:[\\/]* ) # Absolute name.
319 kx ac_srcdir=$srcdir$ac_dir_suffix;
319 kx ac_top_srcdir=$srcdir
319 kx ac_abs_top_srcdir=$srcdir ;;
319 kx *) # Relative name.
319 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
319 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
319 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
319 kx esac
319 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
319 kx
319 kx cd "$ac_dir" || { ac_status=$?; continue; }
319 kx # Check for configure.gnu first; this name is used for a wrapper for
319 kx # Metaconfig's "Configure" on case-insensitive file systems.
319 kx if test -f "$ac_srcdir/configure.gnu"; then
319 kx echo &&
319 kx $SHELL "$ac_srcdir/configure.gnu" --help=recursive
319 kx elif test -f "$ac_srcdir/configure"; then
319 kx echo &&
319 kx $SHELL "$ac_srcdir/configure" --help=recursive
319 kx else
319 kx printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
319 kx fi || ac_status=$?
319 kx cd "$ac_pwd" || { ac_status=$?; break; }
319 kx done
319 kx fi
319 kx
319 kx test -n "$ac_init_help" && exit $ac_status
319 kx if $ac_init_version; then
319 kx cat <<\_ACEOF
319 kx exempi configure 2.6.5
319 kx generated by GNU Autoconf 2.71
319 kx
319 kx Copyright (C) 2021 Free Software Foundation, Inc.
319 kx This configure script is free software; the Free Software Foundation
319 kx gives unlimited permission to copy, distribute and modify it.
319 kx _ACEOF
319 kx exit
319 kx fi
319 kx
319 kx ## ------------------------ ##
319 kx ## Autoconf initialization. ##
319 kx ## ------------------------ ##
319 kx
319 kx # ac_fn_c_try_compile LINENO
319 kx # --------------------------
319 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
319 kx ac_fn_c_try_compile ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx rm -f conftest.$ac_objext conftest.beam
319 kx if { { ac_try="$ac_compile"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_compile") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx grep -v '^ *+' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx mv -f conftest.er1 conftest.err
319 kx fi
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && {
319 kx test -z "$ac_c_werror_flag" ||
319 kx test ! -s conftest.err
319 kx } && test -s conftest.$ac_objext
319 kx then :
319 kx ac_retval=0
319 kx else $as_nop
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx ac_retval=1
319 kx fi
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx as_fn_set_status $ac_retval
319 kx
319 kx } # ac_fn_c_try_compile
319 kx
319 kx # ac_fn_cxx_try_compile LINENO
319 kx # ----------------------------
319 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
319 kx ac_fn_cxx_try_compile ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx rm -f conftest.$ac_objext conftest.beam
319 kx if { { ac_try="$ac_compile"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_compile") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx grep -v '^ *+' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx mv -f conftest.er1 conftest.err
319 kx fi
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && {
319 kx test -z "$ac_cxx_werror_flag" ||
319 kx test ! -s conftest.err
319 kx } && test -s conftest.$ac_objext
319 kx then :
319 kx ac_retval=0
319 kx else $as_nop
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx ac_retval=1
319 kx fi
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx as_fn_set_status $ac_retval
319 kx
319 kx } # ac_fn_cxx_try_compile
319 kx
319 kx # ac_fn_c_try_link LINENO
319 kx # -----------------------
319 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
319 kx ac_fn_c_try_link ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
319 kx if { { ac_try="$ac_link"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_link") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx grep -v '^ *+' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx mv -f conftest.er1 conftest.err
319 kx fi
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && {
319 kx test -z "$ac_c_werror_flag" ||
319 kx test ! -s conftest.err
319 kx } && test -s conftest$ac_exeext && {
319 kx test "$cross_compiling" = yes ||
319 kx test -x conftest$ac_exeext
319 kx }
319 kx then :
319 kx ac_retval=0
319 kx else $as_nop
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx ac_retval=1
319 kx fi
319 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
319 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
319 kx # interfere with the next link command; also delete a directory that is
319 kx # left behind by Apple's compiler. We do this before executing the actions.
319 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx as_fn_set_status $ac_retval
319 kx
319 kx } # ac_fn_c_try_link
319 kx
319 kx # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
319 kx # -------------------------------------------------------
319 kx # Tests whether HEADER exists and can be compiled using the include files in
319 kx # INCLUDES, setting the cache variable VAR accordingly.
319 kx ac_fn_c_check_header_compile ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
319 kx printf %s "checking for $2... " >&6; }
319 kx if eval test \${$3+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx $4
319 kx #include <$2>
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx eval "$3=yes"
319 kx else $as_nop
319 kx eval "$3=no"
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx eval ac_res=\$$3
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
319 kx printf "%s\n" "$ac_res" >&6; }
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx
319 kx } # ac_fn_c_check_header_compile
319 kx
319 kx # ac_fn_c_check_func LINENO FUNC VAR
319 kx # ----------------------------------
319 kx # Tests whether FUNC exists, setting the cache variable VAR accordingly
319 kx ac_fn_c_check_func ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
319 kx printf %s "checking for $2... " >&6; }
319 kx if eval test \${$3+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
319 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
319 kx #define $2 innocuous_$2
319 kx
319 kx /* System header to define __stub macros and hopefully few prototypes,
319 kx which can conflict with char $2 (); below. */
319 kx
319 kx #include <limits.h>
319 kx #undef $2
319 kx
319 kx /* Override any GCC internal prototype to avoid an error.
319 kx Use char because int might match the return type of a GCC
319 kx builtin and then its argument prototype would still apply. */
319 kx #ifdef __cplusplus
319 kx extern "C"
319 kx #endif
319 kx char $2 ();
319 kx /* The GNU C library defines this for functions which it implements
319 kx to always fail with ENOSYS. Some functions are actually named
319 kx something starting with __ and the normal name is an alias. */
319 kx #if defined __stub_$2 || defined __stub___$2
319 kx choke me
319 kx #endif
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx return $2 ();
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx eval "$3=yes"
319 kx else $as_nop
319 kx eval "$3=no"
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx fi
319 kx eval ac_res=\$$3
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
319 kx printf "%s\n" "$ac_res" >&6; }
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx
319 kx } # ac_fn_c_check_func
319 kx
319 kx # ac_fn_cxx_try_cpp LINENO
319 kx # ------------------------
319 kx # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
319 kx ac_fn_cxx_try_cpp ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx if { { ac_try="$ac_cpp conftest.$ac_ext"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx grep -v '^ *+' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx mv -f conftest.er1 conftest.err
319 kx fi
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } > conftest.i && {
319 kx test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
319 kx test ! -s conftest.err
319 kx }
319 kx then :
319 kx ac_retval=0
319 kx else $as_nop
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx ac_retval=1
319 kx fi
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx as_fn_set_status $ac_retval
319 kx
319 kx } # ac_fn_cxx_try_cpp
319 kx
319 kx # ac_fn_cxx_try_link LINENO
319 kx # -------------------------
319 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
319 kx ac_fn_cxx_try_link ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
319 kx if { { ac_try="$ac_link"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_link") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx grep -v '^ *+' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx mv -f conftest.er1 conftest.err
319 kx fi
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && {
319 kx test -z "$ac_cxx_werror_flag" ||
319 kx test ! -s conftest.err
319 kx } && test -s conftest$ac_exeext && {
319 kx test "$cross_compiling" = yes ||
319 kx test -x conftest$ac_exeext
319 kx }
319 kx then :
319 kx ac_retval=0
319 kx else $as_nop
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx ac_retval=1
319 kx fi
319 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
319 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
319 kx # interfere with the next link command; also delete a directory that is
319 kx # left behind by Apple's compiler. We do this before executing the actions.
319 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx as_fn_set_status $ac_retval
319 kx
319 kx } # ac_fn_cxx_try_link
319 kx
319 kx # ac_fn_c_try_run LINENO
319 kx # ----------------------
319 kx # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
319 kx # executables *can* be run.
319 kx ac_fn_c_try_run ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx if { { ac_try="$ac_link"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_link") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
319 kx { { case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_try") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; }
319 kx then :
319 kx ac_retval=0
319 kx else $as_nop
319 kx printf "%s\n" "$as_me: program exited with status $ac_status" >&5
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx ac_retval=$ac_status
319 kx fi
319 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx as_fn_set_status $ac_retval
319 kx
319 kx } # ac_fn_c_try_run
319 kx
319 kx # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
319 kx # ---------------------------------------------------------
319 kx # Tests whether HEADER exists and can be compiled using the include files in
319 kx # INCLUDES, setting the cache variable VAR accordingly.
319 kx ac_fn_cxx_check_header_compile ()
319 kx {
319 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
319 kx printf %s "checking for $2... " >&6; }
319 kx if eval test \${$3+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx $4
319 kx #include <$2>
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx eval "$3=yes"
319 kx else $as_nop
319 kx eval "$3=no"
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx eval ac_res=\$$3
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
319 kx printf "%s\n" "$ac_res" >&6; }
319 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
319 kx
319 kx } # ac_fn_cxx_check_header_compile
319 kx ac_configure_args_raw=
319 kx for ac_arg
319 kx do
319 kx case $ac_arg in
319 kx *\'*)
319 kx ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
319 kx esac
319 kx as_fn_append ac_configure_args_raw " '$ac_arg'"
319 kx done
319 kx
319 kx case $ac_configure_args_raw in
319 kx *$as_nl*)
319 kx ac_safe_unquote= ;;
319 kx *)
319 kx ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
319 kx ac_unsafe_a="$ac_unsafe_z#~"
319 kx ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
319 kx ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
319 kx esac
319 kx
319 kx cat >config.log <<_ACEOF
319 kx This file contains any messages produced by compilers while
319 kx running configure, to aid debugging if configure makes a mistake.
319 kx
319 kx It was created by exempi $as_me 2.6.5, which was
319 kx generated by GNU Autoconf 2.71. Invocation command line was
319 kx
319 kx $ $0$ac_configure_args_raw
319 kx
319 kx _ACEOF
319 kx exec 5>>config.log
319 kx {
319 kx cat <<_ASUNAME
319 kx ## --------- ##
319 kx ## Platform. ##
319 kx ## --------- ##
319 kx
319 kx hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
319 kx uname -m = `(uname -m) 2>/dev/null || echo unknown`
319 kx uname -r = `(uname -r) 2>/dev/null || echo unknown`
319 kx uname -s = `(uname -s) 2>/dev/null || echo unknown`
319 kx uname -v = `(uname -v) 2>/dev/null || echo unknown`
319 kx
319 kx /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
319 kx /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
319 kx
319 kx /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
319 kx /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
319 kx /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
319 kx /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
319 kx /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
319 kx /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
319 kx /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
319 kx
319 kx _ASUNAME
319 kx
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx printf "%s\n" "PATH: $as_dir"
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx } >&5
319 kx
319 kx cat >&5 <<_ACEOF
319 kx
319 kx
319 kx ## ----------- ##
319 kx ## Core tests. ##
319 kx ## ----------- ##
319 kx
319 kx _ACEOF
319 kx
319 kx
319 kx # Keep a trace of the command line.
319 kx # Strip out --no-create and --no-recursion so they do not pile up.
319 kx # Strip out --silent because we don't want to record it for future runs.
319 kx # Also quote any args containing shell meta-characters.
319 kx # Make two passes to allow for proper duplicate-argument suppression.
319 kx ac_configure_args=
319 kx ac_configure_args0=
319 kx ac_configure_args1=
319 kx ac_must_keep_next=false
319 kx for ac_pass in 1 2
319 kx do
319 kx for ac_arg
319 kx do
319 kx case $ac_arg in
319 kx -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
319 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 kx | -silent | --silent | --silen | --sile | --sil)
319 kx continue ;;
319 kx *\'*)
319 kx ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
319 kx esac
319 kx case $ac_pass in
319 kx 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
319 kx 2)
319 kx as_fn_append ac_configure_args1 " '$ac_arg'"
319 kx if test $ac_must_keep_next = true; then
319 kx ac_must_keep_next=false # Got value, back to normal.
319 kx else
319 kx case $ac_arg in
319 kx *=* | --config-cache | -C | -disable-* | --disable-* \
319 kx | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
319 kx | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
319 kx | -with-* | --with-* | -without-* | --without-* | --x)
319 kx case "$ac_configure_args0 " in
319 kx "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
319 kx esac
319 kx ;;
319 kx -* ) ac_must_keep_next=true ;;
319 kx esac
319 kx fi
319 kx as_fn_append ac_configure_args " '$ac_arg'"
319 kx ;;
319 kx esac
319 kx done
319 kx done
319 kx { ac_configure_args0=; unset ac_configure_args0;}
319 kx { ac_configure_args1=; unset ac_configure_args1;}
319 kx
319 kx # When interrupted or exit'd, cleanup temporary files, and complete
319 kx # config.log. We remove comments because anyway the quotes in there
319 kx # would cause problems or look ugly.
319 kx # WARNING: Use '\'' to represent an apostrophe within the trap.
319 kx # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
319 kx trap 'exit_status=$?
319 kx # Sanitize IFS.
319 kx IFS=" "" $as_nl"
319 kx # Save into config.log some information that might help in debugging.
319 kx {
319 kx echo
319 kx
319 kx printf "%s\n" "## ---------------- ##
319 kx ## Cache variables. ##
319 kx ## ---------------- ##"
319 kx echo
319 kx # The following way of writing the cache mishandles newlines in values,
319 kx (
319 kx for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
319 kx eval ac_val=\$$ac_var
319 kx case $ac_val in #(
319 kx *${as_nl}*)
319 kx case $ac_var in #(
319 kx *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
319 kx printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
319 kx esac
319 kx case $ac_var in #(
319 kx _ | IFS | as_nl) ;; #(
319 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
319 kx *) { eval $ac_var=; unset $ac_var;} ;;
319 kx esac ;;
319 kx esac
319 kx done
319 kx (set) 2>&1 |
319 kx case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
319 kx *${as_nl}ac_space=\ *)
319 kx sed -n \
319 kx "s/'\''/'\''\\\\'\'''\''/g;
319 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
319 kx ;; #(
319 kx *)
319 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
319 kx ;;
319 kx esac |
319 kx sort
319 kx )
319 kx echo
319 kx
319 kx printf "%s\n" "## ----------------- ##
319 kx ## Output variables. ##
319 kx ## ----------------- ##"
319 kx echo
319 kx for ac_var in $ac_subst_vars
319 kx do
319 kx eval ac_val=\$$ac_var
319 kx case $ac_val in
319 kx *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
319 kx esac
319 kx printf "%s\n" "$ac_var='\''$ac_val'\''"
319 kx done | sort
319 kx echo
319 kx
319 kx if test -n "$ac_subst_files"; then
319 kx printf "%s\n" "## ------------------- ##
319 kx ## File substitutions. ##
319 kx ## ------------------- ##"
319 kx echo
319 kx for ac_var in $ac_subst_files
319 kx do
319 kx eval ac_val=\$$ac_var
319 kx case $ac_val in
319 kx *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
319 kx esac
319 kx printf "%s\n" "$ac_var='\''$ac_val'\''"
319 kx done | sort
319 kx echo
319 kx fi
319 kx
319 kx if test -s confdefs.h; then
319 kx printf "%s\n" "## ----------- ##
319 kx ## confdefs.h. ##
319 kx ## ----------- ##"
319 kx echo
319 kx cat confdefs.h
319 kx echo
319 kx fi
319 kx test "$ac_signal" != 0 &&
319 kx printf "%s\n" "$as_me: caught signal $ac_signal"
319 kx printf "%s\n" "$as_me: exit $exit_status"
319 kx } >&5
319 kx rm -f core *.core core.conftest.* &&
319 kx rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
319 kx exit $exit_status
319 kx ' 0
319 kx for ac_signal in 1 2 13 15; do
319 kx trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
319 kx done
319 kx ac_signal=0
319 kx
319 kx # confdefs.h avoids OS command line length limits that DEFS can exceed.
319 kx rm -f -r conftest* confdefs.h
319 kx
319 kx printf "%s\n" "/* confdefs.h */" > confdefs.h
319 kx
319 kx # Predefined preprocessor variables.
319 kx
319 kx printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
319 kx
319 kx printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
319 kx
319 kx printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
319 kx
319 kx printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
319 kx
319 kx printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
319 kx
319 kx printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
319 kx
319 kx
319 kx # Let the site file select an alternate cache file if it wants to.
319 kx # Prefer an explicitly selected file to automatically selected ones.
319 kx if test -n "$CONFIG_SITE"; then
319 kx ac_site_files="$CONFIG_SITE"
319 kx elif test "x$prefix" != xNONE; then
319 kx ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
319 kx else
319 kx ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
319 kx fi
319 kx
319 kx for ac_site_file in $ac_site_files
319 kx do
319 kx case $ac_site_file in #(
319 kx */*) :
319 kx ;; #(
319 kx *) :
319 kx ac_site_file=./$ac_site_file ;;
319 kx esac
319 kx if test -f "$ac_site_file" && test -r "$ac_site_file"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
319 kx printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
319 kx sed 's/^/| /' "$ac_site_file" >&5
319 kx . "$ac_site_file" \
319 kx || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx as_fn_error $? "failed to load site script $ac_site_file
319 kx See \`config.log' for more details" "$LINENO" 5; }
319 kx fi
319 kx done
319 kx
319 kx if test -r "$cache_file"; then
319 kx # Some versions of bash will fail to source /dev/null (special files
319 kx # actually), so we avoid doing that. DJGPP emulates it as a regular file.
319 kx if test /dev/null != "$cache_file" && test -f "$cache_file"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
319 kx printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
319 kx case $cache_file in
319 kx [\\/]* | ?:[\\/]* ) . "$cache_file";;
319 kx *) . "./$cache_file";;
319 kx esac
319 kx fi
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
319 kx printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
319 kx >$cache_file
319 kx fi
319 kx
319 kx # Test code for whether the C compiler supports C89 (global declarations)
319 kx ac_c_conftest_c89_globals='
319 kx /* Does the compiler advertise C89 conformance?
319 kx Do not test the value of __STDC__, because some compilers set it to 0
319 kx while being otherwise adequately conformant. */
319 kx #if !defined __STDC__
319 kx # error "Compiler does not advertise C89 conformance"
319 kx #endif
319 kx
319 kx #include <stddef.h>
319 kx #include <stdarg.h>
319 kx struct stat;
319 kx /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
319 kx struct buf { int x; };
319 kx struct buf * (*rcsopen) (struct buf *, struct stat *, int);
319 kx static char *e (p, i)
319 kx char **p;
319 kx int i;
319 kx {
319 kx return p[i];
319 kx }
319 kx static char *f (char * (*g) (char **, int), char **p, ...)
319 kx {
319 kx char *s;
319 kx va_list v;
319 kx va_start (v,p);
319 kx s = g (p, va_arg (v,int));
319 kx va_end (v);
319 kx return s;
319 kx }
319 kx
319 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
319 kx function prototypes and stuff, but not \xHH hex character constants.
319 kx These do not provoke an error unfortunately, instead are silently treated
319 kx as an "x". The following induces an error, until -std is added to get
319 kx proper ANSI mode. Curiously \x00 != x always comes out true, for an
319 kx array size at least. It is necessary to write \x00 == 0 to get something
319 kx that is true only with -std. */
319 kx int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
319 kx
319 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
319 kx inside strings and character constants. */
319 kx #define FOO(x) '\''x'\''
319 kx int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
319 kx
319 kx int test (int i, double x);
319 kx struct s1 {int (*f) (int a);};
319 kx struct s2 {int (*f) (double a);};
319 kx int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
319 kx int, int);'
319 kx
319 kx # Test code for whether the C compiler supports C89 (body of main).
319 kx ac_c_conftest_c89_main='
319 kx ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
319 kx '
319 kx
319 kx # Test code for whether the C compiler supports C99 (global declarations)
319 kx ac_c_conftest_c99_globals='
319 kx // Does the compiler advertise C99 conformance?
319 kx #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
319 kx # error "Compiler does not advertise C99 conformance"
319 kx #endif
319 kx
319 kx #include <stdbool.h>
319 kx extern int puts (const char *);
319 kx extern int printf (const char *, ...);
319 kx extern int dprintf (int, const char *, ...);
319 kx extern void *malloc (size_t);
319 kx
319 kx // Check varargs macros. These examples are taken from C99 6.10.3.5.
319 kx // dprintf is used instead of fprintf to avoid needing to declare
319 kx // FILE and stderr.
319 kx #define debug(...) dprintf (2, __VA_ARGS__)
319 kx #define showlist(...) puts (#__VA_ARGS__)
319 kx #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
319 kx static void
319 kx test_varargs_macros (void)
319 kx {
319 kx int x = 1234;
319 kx int y = 5678;
319 kx debug ("Flag");
319 kx debug ("X = %d\n", x);
319 kx showlist (The first, second, and third items.);
319 kx report (x>y, "x is %d but y is %d", x, y);
319 kx }
319 kx
319 kx // Check long long types.
319 kx #define BIG64 18446744073709551615ull
319 kx #define BIG32 4294967295ul
319 kx #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
319 kx #if !BIG_OK
319 kx #error "your preprocessor is broken"
319 kx #endif
319 kx #if BIG_OK
319 kx #else
319 kx #error "your preprocessor is broken"
319 kx #endif
319 kx static long long int bignum = -9223372036854775807LL;
319 kx static unsigned long long int ubignum = BIG64;
319 kx
319 kx struct incomplete_array
319 kx {
319 kx int datasize;
319 kx double data[];
319 kx };
319 kx
319 kx struct named_init {
319 kx int number;
319 kx const wchar_t *name;
319 kx double average;
319 kx };
319 kx
319 kx typedef const char *ccp;
319 kx
319 kx static inline int
319 kx test_restrict (ccp restrict text)
319 kx {
319 kx // See if C++-style comments work.
319 kx // Iterate through items via the restricted pointer.
319 kx // Also check for declarations in for loops.
319 kx for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
319 kx continue;
319 kx return 0;
319 kx }
319 kx
319 kx // Check varargs and va_copy.
319 kx static bool
319 kx test_varargs (const char *format, ...)
319 kx {
319 kx va_list args;
319 kx va_start (args, format);
319 kx va_list args_copy;
319 kx va_copy (args_copy, args);
319 kx
319 kx const char *str = "";
319 kx int number = 0;
319 kx float fnumber = 0;
319 kx
319 kx while (*format)
319 kx {
319 kx switch (*format++)
319 kx {
319 kx case '\''s'\'': // string
319 kx str = va_arg (args_copy, const char *);
319 kx break;
319 kx case '\''d'\'': // int
319 kx number = va_arg (args_copy, int);
319 kx break;
319 kx case '\''f'\'': // float
319 kx fnumber = va_arg (args_copy, double);
319 kx break;
319 kx default:
319 kx break;
319 kx }
319 kx }
319 kx va_end (args_copy);
319 kx va_end (args);
319 kx
319 kx return *str && number && fnumber;
319 kx }
319 kx '
319 kx
319 kx # Test code for whether the C compiler supports C99 (body of main).
319 kx ac_c_conftest_c99_main='
319 kx // Check bool.
319 kx _Bool success = false;
319 kx success |= (argc != 0);
319 kx
319 kx // Check restrict.
319 kx if (test_restrict ("String literal") == 0)
319 kx success = true;
319 kx char *restrict newvar = "Another string";
319 kx
319 kx // Check varargs.
319 kx success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
319 kx test_varargs_macros ();
319 kx
319 kx // Check flexible array members.
319 kx struct incomplete_array *ia =
319 kx malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
319 kx ia->datasize = 10;
319 kx for (int i = 0; i < ia->datasize; ++i)
319 kx ia->data[i] = i * 1.234;
319 kx
319 kx // Check named initializers.
319 kx struct named_init ni = {
319 kx .number = 34,
319 kx .name = L"Test wide string",
319 kx .average = 543.34343,
319 kx };
319 kx
319 kx ni.number = 58;
319 kx
319 kx int dynamic_array[ni.number];
319 kx dynamic_array[0] = argv[0][0];
319 kx dynamic_array[ni.number - 1] = 543;
319 kx
319 kx // work around unused variable warnings
319 kx ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
319 kx || dynamic_array[ni.number - 1] != 543);
319 kx '
319 kx
319 kx # Test code for whether the C compiler supports C11 (global declarations)
319 kx ac_c_conftest_c11_globals='
319 kx // Does the compiler advertise C11 conformance?
319 kx #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
319 kx # error "Compiler does not advertise C11 conformance"
319 kx #endif
319 kx
319 kx // Check _Alignas.
319 kx char _Alignas (double) aligned_as_double;
319 kx char _Alignas (0) no_special_alignment;
319 kx extern char aligned_as_int;
319 kx char _Alignas (0) _Alignas (int) aligned_as_int;
319 kx
319 kx // Check _Alignof.
319 kx enum
319 kx {
319 kx int_alignment = _Alignof (int),
319 kx int_array_alignment = _Alignof (int[100]),
319 kx char_alignment = _Alignof (char)
319 kx };
319 kx _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
319 kx
319 kx // Check _Noreturn.
319 kx int _Noreturn does_not_return (void) { for (;;) continue; }
319 kx
319 kx // Check _Static_assert.
319 kx struct test_static_assert
319 kx {
319 kx int x;
319 kx _Static_assert (sizeof (int) <= sizeof (long int),
319 kx "_Static_assert does not work in struct");
319 kx long int y;
319 kx };
319 kx
319 kx // Check UTF-8 literals.
319 kx #define u8 syntax error!
319 kx char const utf8_literal[] = u8"happens to be ASCII" "another string";
319 kx
319 kx // Check duplicate typedefs.
319 kx typedef long *long_ptr;
319 kx typedef long int *long_ptr;
319 kx typedef long_ptr long_ptr;
319 kx
319 kx // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
319 kx struct anonymous
319 kx {
319 kx union {
319 kx struct { int i; int j; };
319 kx struct { int k; long int l; } w;
319 kx };
319 kx int m;
319 kx } v1;
319 kx '
319 kx
319 kx # Test code for whether the C compiler supports C11 (body of main).
319 kx ac_c_conftest_c11_main='
319 kx _Static_assert ((offsetof (struct anonymous, i)
319 kx == offsetof (struct anonymous, w.k)),
319 kx "Anonymous union alignment botch");
319 kx v1.i = 2;
319 kx v1.w.k = 5;
319 kx ok |= v1.i != 5;
319 kx '
319 kx
319 kx # Test code for whether the C compiler supports C11 (complete).
319 kx ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
319 kx ${ac_c_conftest_c99_globals}
319 kx ${ac_c_conftest_c11_globals}
319 kx
319 kx int
319 kx main (int argc, char **argv)
319 kx {
319 kx int ok = 0;
319 kx ${ac_c_conftest_c89_main}
319 kx ${ac_c_conftest_c99_main}
319 kx ${ac_c_conftest_c11_main}
319 kx return ok;
319 kx }
319 kx "
319 kx
319 kx # Test code for whether the C compiler supports C99 (complete).
319 kx ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
319 kx ${ac_c_conftest_c99_globals}
319 kx
319 kx int
319 kx main (int argc, char **argv)
319 kx {
319 kx int ok = 0;
319 kx ${ac_c_conftest_c89_main}
319 kx ${ac_c_conftest_c99_main}
319 kx return ok;
319 kx }
319 kx "
319 kx
319 kx # Test code for whether the C compiler supports C89 (complete).
319 kx ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
319 kx
319 kx int
319 kx main (int argc, char **argv)
319 kx {
319 kx int ok = 0;
319 kx ${ac_c_conftest_c89_main}
319 kx return ok;
319 kx }
319 kx "
319 kx
319 kx # Test code for whether the C++ compiler supports C++98 (global declarations)
319 kx ac_cxx_conftest_cxx98_globals='
319 kx // Does the compiler advertise C++98 conformance?
319 kx #if !defined __cplusplus || __cplusplus < 199711L
319 kx # error "Compiler does not advertise C++98 conformance"
319 kx #endif
319 kx
319 kx // These inclusions are to reject old compilers that
319 kx // lack the unsuffixed header files.
319 kx #include <cstdlib>
319 kx #include <exception>
319 kx
319 kx // <cassert> and <cstring> are *not* freestanding headers in C++98.
319 kx extern void assert (int);
319 kx namespace std {
319 kx extern int strcmp (const char *, const char *);
319 kx }
319 kx
319 kx // Namespaces, exceptions, and templates were all added after "C++ 2.0".
319 kx using std::exception;
319 kx using std::strcmp;
319 kx
319 kx namespace {
319 kx
319 kx void test_exception_syntax()
319 kx {
319 kx try {
319 kx throw "test";
319 kx } catch (const char *s) {
319 kx // Extra parentheses suppress a warning when building autoconf itself,
319 kx // due to lint rules shared with more typical C programs.
319 kx assert (!(strcmp) (s, "test"));
319 kx }
319 kx }
319 kx
319 kx template <typename T> struct test_template
319 kx {
319 kx T const val;
319 kx explicit test_template(T t) : val(t) {}
319 kx template <typename U> T add(U u) { return static_cast<T>(u) + val; }
319 kx };
319 kx
319 kx } // anonymous namespace
319 kx '
319 kx
319 kx # Test code for whether the C++ compiler supports C++98 (body of main)
319 kx ac_cxx_conftest_cxx98_main='
319 kx assert (argc);
319 kx assert (! argv[0]);
319 kx {
319 kx test_exception_syntax ();
319 kx test_template<double> tt (2.0);
319 kx assert (tt.add (4) == 6.0);
319 kx assert (true && !false);
319 kx }
319 kx '
319 kx
319 kx # Test code for whether the C++ compiler supports C++11 (global declarations)
319 kx ac_cxx_conftest_cxx11_globals='
319 kx // Does the compiler advertise C++ 2011 conformance?
319 kx #if !defined __cplusplus || __cplusplus < 201103L
319 kx # error "Compiler does not advertise C++11 conformance"
319 kx #endif
319 kx
319 kx namespace cxx11test
319 kx {
319 kx constexpr int get_val() { return 20; }
319 kx
319 kx struct testinit
319 kx {
319 kx int i;
319 kx double d;
319 kx };
319 kx
319 kx class delegate
319 kx {
319 kx public:
319 kx delegate(int n) : n(n) {}
319 kx delegate(): delegate(2354) {}
319 kx
319 kx virtual int getval() { return this->n; };
319 kx protected:
319 kx int n;
319 kx };
319 kx
319 kx class overridden : public delegate
319 kx {
319 kx public:
319 kx overridden(int n): delegate(n) {}
319 kx virtual int getval() override final { return this->n * 2; }
319 kx };
319 kx
319 kx class nocopy
319 kx {
319 kx public:
319 kx nocopy(int i): i(i) {}
319 kx nocopy() = default;
319 kx nocopy(const nocopy&) = delete;
319 kx nocopy & operator=(const nocopy&) = delete;
319 kx private:
319 kx int i;
319 kx };
319 kx
319 kx // for testing lambda expressions
319 kx template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
319 kx {
319 kx return f(v);
319 kx }
319 kx
319 kx // for testing variadic templates and trailing return types
319 kx template <typename V> auto sum(V first) -> V
319 kx {
319 kx return first;
319 kx }
319 kx template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
319 kx {
319 kx return first + sum(rest...);
319 kx }
319 kx }
319 kx '
319 kx
319 kx # Test code for whether the C++ compiler supports C++11 (body of main)
319 kx ac_cxx_conftest_cxx11_main='
319 kx {
319 kx // Test auto and decltype
319 kx auto a1 = 6538;
319 kx auto a2 = 48573953.4;
319 kx auto a3 = "String literal";
319 kx
319 kx int total = 0;
319 kx for (auto i = a3; *i; ++i) { total += *i; }
319 kx
319 kx decltype(a2) a4 = 34895.034;
319 kx }
319 kx {
319 kx // Test constexpr
319 kx short sa[cxx11test::get_val()] = { 0 };
319 kx }
319 kx {
319 kx // Test initializer lists
319 kx cxx11test::testinit il = { 4323, 435234.23544 };
319 kx }
319 kx {
319 kx // Test range-based for
319 kx int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
319 kx 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
319 kx for (auto &x : array) { x += 23; }
319 kx }
319 kx {
319 kx // Test lambda expressions
319 kx using cxx11test::eval;
319 kx assert (eval ([](int x) { return x*2; }, 21) == 42);
319 kx double d = 2.0;
319 kx assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
319 kx assert (d == 5.0);
319 kx assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
319 kx assert (d == 5.0);
319 kx }
319 kx {
319 kx // Test use of variadic templates
319 kx using cxx11test::sum;
319 kx auto a = sum(1);
319 kx auto b = sum(1, 2);
319 kx auto c = sum(1.0, 2.0, 3.0);
319 kx }
319 kx {
319 kx // Test constructor delegation
319 kx cxx11test::delegate d1;
319 kx cxx11test::delegate d2();
319 kx cxx11test::delegate d3(45);
319 kx }
319 kx {
319 kx // Test override and final
319 kx cxx11test::overridden o1(55464);
319 kx }
319 kx {
319 kx // Test nullptr
319 kx char *c = nullptr;
319 kx }
319 kx {
319 kx // Test template brackets
319 kx test_template<::test_template<int>> v(test_template<int>(12));
319 kx }
319 kx {
319 kx // Unicode literals
319 kx char const *utf8 = u8"UTF-8 string \u2500";
319 kx char16_t const *utf16 = u"UTF-8 string \u2500";
319 kx char32_t const *utf32 = U"UTF-32 string \u2500";
319 kx }
319 kx '
319 kx
319 kx # Test code for whether the C compiler supports C++11 (complete).
319 kx ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
319 kx ${ac_cxx_conftest_cxx11_globals}
319 kx
319 kx int
319 kx main (int argc, char **argv)
319 kx {
319 kx int ok = 0;
319 kx ${ac_cxx_conftest_cxx98_main}
319 kx ${ac_cxx_conftest_cxx11_main}
319 kx return ok;
319 kx }
319 kx "
319 kx
319 kx # Test code for whether the C compiler supports C++98 (complete).
319 kx ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
319 kx int
319 kx main (int argc, char **argv)
319 kx {
319 kx int ok = 0;
319 kx ${ac_cxx_conftest_cxx98_main}
319 kx return ok;
319 kx }
319 kx "
319 kx
319 kx as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
319 kx as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
319 kx as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
319 kx as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
319 kx as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
319 kx as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
319 kx as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
319 kx as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
319 kx as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
319 kx
319 kx # Auxiliary files required by this configure script.
319 kx ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
319 kx
319 kx # Locations in which to look for auxiliary files.
319 kx ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
319 kx
319 kx # Search for a directory containing all of the required auxiliary files,
319 kx # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
319 kx # If we don't find one directory that contains all the files we need,
319 kx # we report the set of missing files from the *first* directory in
319 kx # $ac_aux_dir_candidates and give up.
319 kx ac_missing_aux_files=""
319 kx ac_first_candidate=:
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx as_found=false
319 kx for as_dir in $ac_aux_dir_candidates
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx as_found=:
319 kx
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
319 kx ac_aux_dir_found=yes
319 kx ac_install_sh=
319 kx for ac_aux in $ac_aux_files
319 kx do
319 kx # As a special case, if "install-sh" is required, that requirement
319 kx # can be satisfied by any of "install-sh", "install.sh", or "shtool",
319 kx # and $ac_install_sh is set appropriately for whichever one is found.
319 kx if test x"$ac_aux" = x"install-sh"
319 kx then
319 kx if test -f "${as_dir}install-sh"; then
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
319 kx ac_install_sh="${as_dir}install-sh -c"
319 kx elif test -f "${as_dir}install.sh"; then
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
319 kx ac_install_sh="${as_dir}install.sh -c"
319 kx elif test -f "${as_dir}shtool"; then
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
319 kx ac_install_sh="${as_dir}shtool install -c"
319 kx else
319 kx ac_aux_dir_found=no
319 kx if $ac_first_candidate; then
319 kx ac_missing_aux_files="${ac_missing_aux_files} install-sh"
319 kx else
319 kx break
319 kx fi
319 kx fi
319 kx else
319 kx if test -f "${as_dir}${ac_aux}"; then
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
319 kx else
319 kx ac_aux_dir_found=no
319 kx if $ac_first_candidate; then
319 kx ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
319 kx else
319 kx break
319 kx fi
319 kx fi
319 kx fi
319 kx done
319 kx if test "$ac_aux_dir_found" = yes; then
319 kx ac_aux_dir="$as_dir"
319 kx break
319 kx fi
319 kx ac_first_candidate=false
319 kx
319 kx as_found=false
319 kx done
319 kx IFS=$as_save_IFS
319 kx if $as_found
319 kx then :
319 kx
319 kx else $as_nop
319 kx as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
319 kx fi
319 kx
319 kx
319 kx # These three variables are undocumented and unsupported,
319 kx # and are intended to be withdrawn in a future Autoconf release.
319 kx # They can cause serious problems if a builder's source tree is in a directory
319 kx # whose full name contains unusual characters.
319 kx if test -f "${ac_aux_dir}config.guess"; then
319 kx ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
319 kx fi
319 kx if test -f "${ac_aux_dir}config.sub"; then
319 kx ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
319 kx fi
319 kx if test -f "$ac_aux_dir/configure"; then
319 kx ac_configure="$SHELL ${ac_aux_dir}configure"
319 kx fi
319 kx
319 kx # Check that the precious variables saved in the cache have kept the same
319 kx # value.
319 kx ac_cache_corrupted=false
319 kx for ac_var in $ac_precious_vars; do
319 kx eval ac_old_set=\$ac_cv_env_${ac_var}_set
319 kx eval ac_new_set=\$ac_env_${ac_var}_set
319 kx eval ac_old_val=\$ac_cv_env_${ac_var}_value
319 kx eval ac_new_val=\$ac_env_${ac_var}_value
319 kx case $ac_old_set,$ac_new_set in
319 kx set,)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
319 kx printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
319 kx ac_cache_corrupted=: ;;
319 kx ,set)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
319 kx printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
319 kx ac_cache_corrupted=: ;;
319 kx ,);;
319 kx *)
319 kx if test "x$ac_old_val" != "x$ac_new_val"; then
319 kx # differences in whitespace do not lead to failure.
319 kx ac_old_val_w=`echo x $ac_old_val`
319 kx ac_new_val_w=`echo x $ac_new_val`
319 kx if test "$ac_old_val_w" != "$ac_new_val_w"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
319 kx printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
319 kx ac_cache_corrupted=:
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
319 kx printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
319 kx eval $ac_var=\$ac_old_val
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
319 kx printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
319 kx printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
319 kx fi;;
319 kx esac
319 kx # Pass precious variables to config.status.
319 kx if test "$ac_new_set" = set; then
319 kx case $ac_new_val in
319 kx *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
319 kx *) ac_arg=$ac_var=$ac_new_val ;;
319 kx esac
319 kx case " $ac_configure_args " in
319 kx *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
319 kx *) as_fn_append ac_configure_args " '$ac_arg'" ;;
319 kx esac
319 kx fi
319 kx done
319 kx if $ac_cache_corrupted; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
319 kx printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
319 kx as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
319 kx and start over" "$LINENO" 5
319 kx fi
319 kx ## -------------------- ##
319 kx ## Main body of script. ##
319 kx ## -------------------- ##
319 kx
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx
319 kx am__api_version='1.16'
319 kx
319 kx
319 kx
319 kx # Find a good install program. We prefer a C program (faster),
319 kx # so one script is as good as another. But avoid the broken or
319 kx # incompatible versions:
319 kx # SysV /etc/install, /usr/sbin/install
319 kx # SunOS /usr/etc/install
319 kx # IRIX /sbin/install
319 kx # AIX /bin/install
319 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
319 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
319 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
319 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
319 kx # OS/2's system install, which has a completely different semantic
319 kx # ./install, which can be erroneously created by make from ./install.sh.
319 kx # Reject install programs that cannot install multiple files.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
319 kx printf %s "checking for a BSD-compatible install... " >&6; }
319 kx if test -z "$INSTALL"; then
319 kx if test ${ac_cv_path_install+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx # Account for fact that we put trailing slashes in our PATH walk.
319 kx case $as_dir in #((
319 kx ./ | /[cC]/* | \
319 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
319 kx ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
319 kx /usr/ucb/* ) ;;
319 kx *)
319 kx # OSF1 and SCO ODT 3.0 have their own names for install.
319 kx # Don't use installbsd from OSF since it installs stuff as root
319 kx # by default.
319 kx for ac_prog in ginstall scoinst install; do
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
319 kx if test $ac_prog = install &&
319 kx grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
319 kx # AIX install. It has an incompatible calling convention.
319 kx :
319 kx elif test $ac_prog = install &&
319 kx grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
319 kx # program-specific install script used by HP pwplus--don't use.
319 kx :
319 kx else
319 kx rm -rf conftest.one conftest.two conftest.dir
319 kx echo one > conftest.one
319 kx echo two > conftest.two
319 kx mkdir conftest.dir
319 kx if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
319 kx test -s conftest.one && test -s conftest.two &&
319 kx test -s conftest.dir/conftest.one &&
319 kx test -s conftest.dir/conftest.two
319 kx then
319 kx ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
319 kx break 3
319 kx fi
319 kx fi
319 kx fi
319 kx done
319 kx done
319 kx ;;
319 kx esac
319 kx
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx rm -rf conftest.one conftest.two conftest.dir
319 kx
319 kx fi
319 kx if test ${ac_cv_path_install+y}; then
319 kx INSTALL=$ac_cv_path_install
319 kx else
319 kx # As a last resort, use the slow shell script. Don't cache a
319 kx # value for INSTALL within a source directory, because that will
319 kx # break other packages using the cache if that directory is
319 kx # removed, or if the value is a relative name.
319 kx INSTALL=$ac_install_sh
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
319 kx printf "%s\n" "$INSTALL" >&6; }
319 kx
319 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
319 kx # It thinks the first close brace ends the variable substitution.
319 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
319 kx
319 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
319 kx
319 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
319 kx printf %s "checking whether build environment is sane... " >&6; }
319 kx # Reject unsafe characters in $srcdir or the absolute working directory
319 kx # name. Accept space and tab only in the latter.
319 kx am_lf='
319 kx '
319 kx case `pwd` in
319 kx *[\\\"\#\$\&\'\`$am_lf]*)
319 kx as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
319 kx esac
319 kx case $srcdir in
319 kx *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
319 kx as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
319 kx esac
319 kx
319 kx # Do 'set' in a subshell so we don't clobber the current shell's
319 kx # arguments. Must try -L first in case configure is actually a
319 kx # symlink; some systems play weird games with the mod time of symlinks
319 kx # (eg FreeBSD returns the mod time of the symlink's containing
319 kx # directory).
319 kx if (
319 kx am_has_slept=no
319 kx for am_try in 1 2; do
319 kx echo "timestamp, slept: $am_has_slept" > conftest.file
319 kx set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
319 kx if test "$*" = "X"; then
319 kx # -L didn't work.
319 kx set X `ls -t "$srcdir/configure" conftest.file`
319 kx fi
319 kx if test "$*" != "X $srcdir/configure conftest.file" \
319 kx && test "$*" != "X conftest.file $srcdir/configure"; then
319 kx
319 kx # If neither matched, then we have a broken ls. This can happen
319 kx # if, for instance, CONFIG_SHELL is bash and it inherits a
319 kx # broken ls alias from the environment. This has actually
319 kx # happened. Such a system could not be considered "sane".
319 kx as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
319 kx alias in your environment" "$LINENO" 5
319 kx fi
319 kx if test "$2" = conftest.file || test $am_try -eq 2; then
319 kx break
319 kx fi
319 kx # Just in case.
319 kx sleep 1
319 kx am_has_slept=yes
319 kx done
319 kx test "$2" = conftest.file
319 kx )
319 kx then
319 kx # Ok.
319 kx :
319 kx else
319 kx as_fn_error $? "newly created file is older than distributed files!
319 kx Check your system clock" "$LINENO" 5
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
319 kx printf "%s\n" "yes" >&6; }
319 kx # If we didn't sleep, we still need to ensure time stamps of config.status and
319 kx # generated files are strictly newer.
319 kx am_sleep_pid=
319 kx if grep 'slept: no' conftest.file >/dev/null 2>&1; then
319 kx ( sleep 1 ) &
319 kx am_sleep_pid=$!
319 kx fi
319 kx
319 kx rm -f conftest.file
319 kx
319 kx test "$program_prefix" != NONE &&
319 kx program_transform_name="s&^&$program_prefix&;$program_transform_name"
319 kx # Use a double $ so make ignores it.
319 kx test "$program_suffix" != NONE &&
319 kx program_transform_name="s&\$&$program_suffix&;$program_transform_name"
319 kx # Double any \ or $.
319 kx # By default was `s,x,x', remove it if useless.
319 kx ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
319 kx program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
319 kx
319 kx
319 kx # Expand $ac_aux_dir to an absolute path.
319 kx am_aux_dir=`cd "$ac_aux_dir" && pwd`
319 kx
319 kx
319 kx if test x"${MISSING+set}" != xset; then
319 kx MISSING="\${SHELL} '$am_aux_dir/missing'"
319 kx fi
319 kx # Use eval to expand $SHELL
319 kx if eval "$MISSING --is-lightweight"; then
319 kx am_missing_run="$MISSING "
319 kx else
319 kx am_missing_run=
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
319 kx printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
319 kx fi
319 kx
319 kx if test x"${install_sh+set}" != xset; then
319 kx case $am_aux_dir in
319 kx *\ * | *\ *)
319 kx install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
319 kx *)
319 kx install_sh="\${SHELL} $am_aux_dir/install-sh"
319 kx esac
319 kx fi
319 kx
319 kx # Installed binaries are usually stripped using 'strip' when the user
319 kx # run "make install-strip". However 'strip' might not be the right
319 kx # tool to use in cross-compilation environments, therefore Automake
319 kx # will honor the 'STRIP' environment variable to overrule this program.
319 kx if test "$cross_compiling" != no; then
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_STRIP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$STRIP"; then
319 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx STRIP=$ac_cv_prog_STRIP
319 kx if test -n "$STRIP"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
319 kx printf "%s\n" "$STRIP" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_STRIP"; then
319 kx ac_ct_STRIP=$STRIP
319 kx # Extract the first word of "strip", so it can be a program name with args.
319 kx set dummy strip; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_STRIP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_STRIP"; then
319 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_STRIP="strip"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
319 kx if test -n "$ac_ct_STRIP"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
319 kx printf "%s\n" "$ac_ct_STRIP" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_STRIP" = x; then
319 kx STRIP=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx STRIP=$ac_ct_STRIP
319 kx fi
319 kx else
319 kx STRIP="$ac_cv_prog_STRIP"
319 kx fi
319 kx
319 kx fi
319 kx INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
319 kx printf %s "checking for a race-free mkdir -p... " >&6; }
319 kx if test -z "$MKDIR_P"; then
319 kx if test ${ac_cv_path_mkdir+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_prog in mkdir gmkdir; do
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
319 kx case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
319 kx 'mkdir ('*'coreutils) '* | \
319 kx 'BusyBox '* | \
319 kx 'mkdir (fileutils) '4.1*)
319 kx ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
319 kx break 3;;
319 kx esac
319 kx done
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx
319 kx test -d ./--version && rmdir ./--version
319 kx if test ${ac_cv_path_mkdir+y}; then
319 kx MKDIR_P="$ac_cv_path_mkdir -p"
319 kx else
319 kx # As a last resort, use the slow shell script. Don't cache a
319 kx # value for MKDIR_P within a source directory, because that will
319 kx # break other packages using the cache if that directory is
319 kx # removed, or if the value is a relative name.
319 kx MKDIR_P="$ac_install_sh -d"
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
319 kx printf "%s\n" "$MKDIR_P" >&6; }
319 kx
319 kx for ac_prog in gawk mawk nawk awk
319 kx do
319 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_AWK+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$AWK"; then
319 kx ac_cv_prog_AWK="$AWK" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_AWK="$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx AWK=$ac_cv_prog_AWK
319 kx if test -n "$AWK"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
319 kx printf "%s\n" "$AWK" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$AWK" && break
319 kx done
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
319 kx printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
319 kx set x ${MAKE-make}
319 kx ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
319 kx if eval test \${ac_cv_prog_make_${ac_make}_set+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat >conftest.make <<\_ACEOF
319 kx SHELL = /bin/sh
319 kx all:
319 kx @echo '@@@%%%=$(MAKE)=@@@%%%'
319 kx _ACEOF
319 kx # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
319 kx case `${MAKE-make} -f conftest.make 2>/dev/null` in
319 kx *@@@%%%=?*=@@@%%%*)
319 kx eval ac_cv_prog_make_${ac_make}_set=yes;;
319 kx *)
319 kx eval ac_cv_prog_make_${ac_make}_set=no;;
319 kx esac
319 kx rm -f conftest.make
319 kx fi
319 kx if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
319 kx printf "%s\n" "yes" >&6; }
319 kx SET_MAKE=
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx SET_MAKE="MAKE=${MAKE-make}"
319 kx fi
319 kx
319 kx rm -rf .tst 2>/dev/null
319 kx mkdir .tst 2>/dev/null
319 kx if test -d .tst; then
319 kx am__leading_dot=.
319 kx else
319 kx am__leading_dot=_
319 kx fi
319 kx rmdir .tst 2>/dev/null
319 kx
319 kx # Check whether --enable-silent-rules was given.
319 kx if test ${enable_silent_rules+y}
319 kx then :
319 kx enableval=$enable_silent_rules;
319 kx fi
319 kx
319 kx case $enable_silent_rules in # (((
319 kx yes) AM_DEFAULT_VERBOSITY=0;;
319 kx no) AM_DEFAULT_VERBOSITY=1;;
319 kx *) AM_DEFAULT_VERBOSITY=1;;
319 kx esac
319 kx am_make=${MAKE-make}
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
319 kx printf %s "checking whether $am_make supports nested variables... " >&6; }
319 kx if test ${am_cv_make_support_nested_variables+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if printf "%s\n" 'TRUE=$(BAR$(V))
319 kx BAR0=false
319 kx BAR1=true
319 kx V=1
319 kx am__doit:
319 kx @$(TRUE)
319 kx .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
319 kx am_cv_make_support_nested_variables=yes
319 kx else
319 kx am_cv_make_support_nested_variables=no
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
319 kx printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
319 kx if test $am_cv_make_support_nested_variables = yes; then
319 kx AM_V='$(V)'
319 kx AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
319 kx else
319 kx AM_V=$AM_DEFAULT_VERBOSITY
319 kx AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
319 kx fi
319 kx AM_BACKSLASH='\'
319 kx
319 kx if test "`cd $srcdir && pwd`" != "`pwd`"; then
319 kx # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
319 kx # is not polluted with repeated "-I."
319 kx am__isrc=' -I$(srcdir)'
319 kx # test to see if srcdir already configured
319 kx if test -f $srcdir/config.status; then
319 kx as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
319 kx fi
319 kx fi
319 kx
319 kx # test whether we have cygpath
319 kx if test -z "$CYGPATH_W"; then
319 kx if (cygpath --version) >/dev/null 2>/dev/null; then
319 kx CYGPATH_W='cygpath -w'
319 kx else
319 kx CYGPATH_W=echo
319 kx fi
319 kx fi
319 kx
319 kx
319 kx # Define the identity of the package.
319 kx PACKAGE='exempi'
319 kx VERSION='2.6.5'
319 kx
319 kx
319 kx printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
319 kx
319 kx
319 kx printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
319 kx
319 kx # Some tools Automake needs.
319 kx
319 kx ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
319 kx
319 kx
319 kx AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
319 kx
319 kx
319 kx AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
319 kx
319 kx
319 kx AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
319 kx
319 kx
319 kx MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
319 kx
319 kx # For better backward compatibility. To be removed once Automake 1.9.x
319 kx # dies out for good. For more background, see:
319 kx # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
319 kx # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
319 kx mkdir_p='$(MKDIR_P)'
319 kx
319 kx # We need awk for the "check" target (and possibly the TAP driver). The
319 kx # system "awk" is bad on some platforms.
319 kx # Always define AMTAR for backward compatibility. Yes, it's still used
319 kx # in the wild :-( We should find a proper way to deprecate it ...
319 kx AMTAR='$${TAR-tar}'
319 kx
319 kx
319 kx # We'll loop over all known methods to create a tar archive until one works.
319 kx _am_tools='gnutar pax cpio none'
319 kx
319 kx am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Variables for tags utilities; see am/tags.am
319 kx if test -z "$CTAGS"; then
319 kx CTAGS=ctags
319 kx fi
319 kx
319 kx if test -z "$ETAGS"; then
319 kx ETAGS=etags
319 kx fi
319 kx
319 kx if test -z "$CSCOPE"; then
319 kx CSCOPE=cscope
319 kx fi
319 kx
319 kx
319 kx
319 kx # POSIX will say in a future version that running "rm -f" with no argument
319 kx # is OK; and we want to be able to make that assumption in our Makefile
319 kx # recipes. So use an aggressive probe to check that the usage we want is
319 kx # actually supported "in the wild" to an acceptable degree.
319 kx # See automake bug#10828.
319 kx # To make any issue more visible, cause the running configure to be aborted
319 kx # by default if the 'rm' program in use doesn't match our expectations; the
319 kx # user can still override this though.
319 kx if rm -f && rm -fr && rm -rf; then : OK; else
319 kx cat >&2 <<'END'
319 kx Oops!
319 kx
319 kx Your 'rm' program seems unable to run without file operands specified
319 kx on the command line, even when the '-f' option is present. This is contrary
319 kx to the behaviour of most rm programs out there, and not conforming with
319 kx the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
319 kx
319 kx Please tell bug-automake@gnu.org about your system, including the value
319 kx of your $PATH and any error possibly output before this message. This
319 kx can help us improve future automake versions.
319 kx
319 kx END
319 kx if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
319 kx echo 'Configuration will proceed anyway, since you have set the' >&2
319 kx echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
319 kx echo >&2
319 kx else
319 kx cat >&2 <<'END'
319 kx Aborting the configuration process, to ensure you take notice of the issue.
319 kx
319 kx You can download and install GNU coreutils to get an 'rm' implementation
319 kx that behaves properly: <https://www.gnu.org/software/coreutils/>.
319 kx
319 kx If you want to complete the configuration process using your problematic
319 kx 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
319 kx to "yes", and re-run configure.
319 kx
319 kx END
319 kx as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
319 kx fi
319 kx fi
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
319 kx printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
319 kx # Check whether --enable-maintainer-mode was given.
319 kx if test ${enable_maintainer_mode+y}
319 kx then :
319 kx enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
319 kx else $as_nop
319 kx USE_MAINTAINER_MODE=no
319 kx fi
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
319 kx printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
319 kx if test $USE_MAINTAINER_MODE = yes; then
319 kx MAINTAINER_MODE_TRUE=
319 kx MAINTAINER_MODE_FALSE='#'
319 kx else
319 kx MAINTAINER_MODE_TRUE='#'
319 kx MAINTAINER_MODE_FALSE=
319 kx fi
319 kx
319 kx MAINT=$MAINTAINER_MODE_TRUE
319 kx
319 kx
319 kx
319 kx # Check whether --enable-silent-rules was given.
319 kx if test ${enable_silent_rules+y}
319 kx then :
319 kx enableval=$enable_silent_rules;
319 kx fi
319 kx
319 kx case $enable_silent_rules in # (((
319 kx yes) AM_DEFAULT_VERBOSITY=0;;
319 kx no) AM_DEFAULT_VERBOSITY=1;;
319 kx *) AM_DEFAULT_VERBOSITY=0;;
319 kx esac
319 kx am_make=${MAKE-make}
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
319 kx printf %s "checking whether $am_make supports nested variables... " >&6; }
319 kx if test ${am_cv_make_support_nested_variables+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if printf "%s\n" 'TRUE=$(BAR$(V))
319 kx BAR0=false
319 kx BAR1=true
319 kx V=1
319 kx am__doit:
319 kx @$(TRUE)
319 kx .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
319 kx am_cv_make_support_nested_variables=yes
319 kx else
319 kx am_cv_make_support_nested_variables=no
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
319 kx printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
319 kx if test $am_cv_make_support_nested_variables = yes; then
319 kx AM_V='$(V)'
319 kx AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
319 kx else
319 kx AM_V=$AM_DEFAULT_VERBOSITY
319 kx AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
319 kx fi
319 kx AM_BACKSLASH='\'
319 kx
319 kx
319 kx EXEMPI_REVISION=5
319 kx
319 kx EXEMPI_AGE=1
319 kx
319 kx EXEMPI_CURRENT=9
319 kx
319 kx EXEMPI_CURRENT_MIN=`expr $EXEMPI_CURRENT - $EXEMPI_AGE`
319 kx
319 kx EXEMPI_VERSION_INFO=$EXEMPI_CURRENT:$EXEMPI_REVISION:$EXEMPI_AGE
319 kx
319 kx
319 kx EXEMPI_MAJOR_VERSION=2.0
319 kx
319 kx
319 kx EXEMPI_INCLUDE_BASE=exempi-$EXEMPI_MAJOR_VERSION
319 kx
319 kx
319 kx pkgconfigdir='${libdir}/pkgconfig'
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_CC+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$CC"; then
319 kx ac_cv_prog_CC="$CC" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx CC=$ac_cv_prog_CC
319 kx if test -n "$CC"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
319 kx printf "%s\n" "$CC" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_CC"; then
319 kx ac_ct_CC=$CC
319 kx # Extract the first word of "gcc", so it can be a program name with args.
319 kx set dummy gcc; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_CC+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_CC"; then
319 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_CC="gcc"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
319 kx if test -n "$ac_ct_CC"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
319 kx printf "%s\n" "$ac_ct_CC" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_CC" = x; then
319 kx CC=""
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx CC=$ac_ct_CC
319 kx fi
319 kx else
319 kx CC="$ac_cv_prog_CC"
319 kx fi
319 kx
319 kx if test -z "$CC"; then
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_CC+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$CC"; then
319 kx ac_cv_prog_CC="$CC" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx CC=$ac_cv_prog_CC
319 kx if test -n "$CC"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
319 kx printf "%s\n" "$CC" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx fi
319 kx if test -z "$CC"; then
319 kx # Extract the first word of "cc", so it can be a program name with args.
319 kx set dummy cc; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_CC+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$CC"; then
319 kx ac_cv_prog_CC="$CC" # Let the user override the test.
319 kx else
319 kx ac_prog_rejected=no
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
319 kx ac_prog_rejected=yes
319 kx continue
319 kx fi
319 kx ac_cv_prog_CC="cc"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx if test $ac_prog_rejected = yes; then
319 kx # We found a bogon in the path, so make sure we never use it.
319 kx set dummy $ac_cv_prog_CC
319 kx shift
319 kx if test $# != 0; then
319 kx # We chose a different compiler from the bogus one.
319 kx # However, it has the same basename, so the bogon will be chosen
319 kx # first if we set CC to just the basename; use the full file name.
319 kx shift
319 kx ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
319 kx fi
319 kx fi
319 kx fi
319 kx fi
319 kx CC=$ac_cv_prog_CC
319 kx if test -n "$CC"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
319 kx printf "%s\n" "$CC" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$CC"; then
319 kx if test -n "$ac_tool_prefix"; then
319 kx for ac_prog in cl.exe
319 kx do
319 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_CC+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$CC"; then
319 kx ac_cv_prog_CC="$CC" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx CC=$ac_cv_prog_CC
319 kx if test -n "$CC"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
319 kx printf "%s\n" "$CC" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$CC" && break
319 kx done
319 kx fi
319 kx if test -z "$CC"; then
319 kx ac_ct_CC=$CC
319 kx for ac_prog in cl.exe
319 kx do
319 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_CC+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_CC"; then
319 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_CC="$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
319 kx if test -n "$ac_ct_CC"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
319 kx printf "%s\n" "$ac_ct_CC" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$ac_ct_CC" && break
319 kx done
319 kx
319 kx if test "x$ac_ct_CC" = x; then
319 kx CC=""
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx CC=$ac_ct_CC
319 kx fi
319 kx fi
319 kx
319 kx fi
319 kx if test -z "$CC"; then
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}clang; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_CC+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$CC"; then
319 kx ac_cv_prog_CC="$CC" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_CC="${ac_tool_prefix}clang"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx CC=$ac_cv_prog_CC
319 kx if test -n "$CC"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
319 kx printf "%s\n" "$CC" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_CC"; then
319 kx ac_ct_CC=$CC
319 kx # Extract the first word of "clang", so it can be a program name with args.
319 kx set dummy clang; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_CC+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_CC"; then
319 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_CC="clang"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
319 kx if test -n "$ac_ct_CC"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
319 kx printf "%s\n" "$ac_ct_CC" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_CC" = x; then
319 kx CC=""
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx CC=$ac_ct_CC
319 kx fi
319 kx else
319 kx CC="$ac_cv_prog_CC"
319 kx fi
319 kx
319 kx fi
319 kx
319 kx
319 kx test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx as_fn_error $? "no acceptable C compiler found in \$PATH
319 kx See \`config.log' for more details" "$LINENO" 5; }
319 kx
319 kx # Provide some information about the compiler.
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
319 kx set X $ac_compile
319 kx ac_compiler=$2
319 kx for ac_option in --version -v -V -qversion -version; do
319 kx { { ac_try="$ac_compiler $ac_option >&5"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx sed '10a\
319 kx ... rest of stderr output deleted ...
319 kx 10q' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx fi
319 kx rm -f conftest.er1 conftest.err
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx done
319 kx
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx ac_clean_files_save=$ac_clean_files
319 kx ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
319 kx # Try to create an executable without -o first, disregard a.out.
319 kx # It will help us diagnose broken compilers, and finding out an intuition
319 kx # of exeext.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
319 kx printf %s "checking whether the C compiler works... " >&6; }
319 kx ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
319 kx
319 kx # The possible output files:
319 kx ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
319 kx
319 kx ac_rmfiles=
319 kx for ac_file in $ac_files
319 kx do
319 kx case $ac_file in
319 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
319 kx * ) ac_rmfiles="$ac_rmfiles $ac_file";;
319 kx esac
319 kx done
319 kx rm -f $ac_rmfiles
319 kx
319 kx if { { ac_try="$ac_link_default"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_link_default") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx then :
319 kx # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
319 kx # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
319 kx # in a Makefile. We should not override ac_cv_exeext if it was cached,
319 kx # so that the user can short-circuit this test for compilers unknown to
319 kx # Autoconf.
319 kx for ac_file in $ac_files ''
319 kx do
319 kx test -f "$ac_file" || continue
319 kx case $ac_file in
319 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
319 kx ;;
319 kx [ab].out )
319 kx # We found the default executable, but exeext='' is most
319 kx # certainly right.
319 kx break;;
319 kx *.* )
319 kx if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
319 kx then :; else
319 kx ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
319 kx fi
319 kx # We set ac_cv_exeext here because the later test for it is not
319 kx # safe: cross compilers may not add the suffix if given an `-o'
319 kx # argument, so we may need to know it at that point already.
319 kx # Even if this section looks crufty: it has the advantage of
319 kx # actually working.
319 kx break;;
319 kx * )
319 kx break;;
319 kx esac
319 kx done
319 kx test "$ac_cv_exeext" = no && ac_cv_exeext=
319 kx
319 kx else $as_nop
319 kx ac_file=''
319 kx fi
319 kx if test -z "$ac_file"
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx as_fn_error 77 "C compiler cannot create executables
319 kx See \`config.log' for more details" "$LINENO" 5; }
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
319 kx printf "%s\n" "yes" >&6; }
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
319 kx printf %s "checking for C compiler default output file name... " >&6; }
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
319 kx printf "%s\n" "$ac_file" >&6; }
319 kx ac_exeext=$ac_cv_exeext
319 kx
319 kx rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
319 kx ac_clean_files=$ac_clean_files_save
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
319 kx printf %s "checking for suffix of executables... " >&6; }
319 kx if { { ac_try="$ac_link"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_link") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx then :
319 kx # If both `conftest.exe' and `conftest' are `present' (well, observable)
319 kx # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
319 kx # work properly (i.e., refer to `conftest.exe'), while it won't with
319 kx # `rm'.
319 kx for ac_file in conftest.exe conftest conftest.*; do
319 kx test -f "$ac_file" || continue
319 kx case $ac_file in
319 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
319 kx *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
319 kx break;;
319 kx * ) break;;
319 kx esac
319 kx done
319 kx else $as_nop
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx as_fn_error $? "cannot compute suffix of executables: cannot compile and link
319 kx See \`config.log' for more details" "$LINENO" 5; }
319 kx fi
319 kx rm -f conftest conftest$ac_cv_exeext
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
319 kx printf "%s\n" "$ac_cv_exeext" >&6; }
319 kx
319 kx rm -f conftest.$ac_ext
319 kx EXEEXT=$ac_cv_exeext
319 kx ac_exeext=$EXEEXT
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <stdio.h>
319 kx int
319 kx main (void)
319 kx {
319 kx FILE *f = fopen ("conftest.out", "w");
319 kx return ferror (f) || fclose (f) != 0;
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx ac_clean_files="$ac_clean_files conftest.out"
319 kx # Check that the compiler produces executables we can run. If not, either
319 kx # the compiler is broken, or we cross compile.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
319 kx printf %s "checking whether we are cross compiling... " >&6; }
319 kx if test "$cross_compiling" != yes; then
319 kx { { ac_try="$ac_link"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_link") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx if { ac_try='./conftest$ac_cv_exeext'
319 kx { { case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_try") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; }; then
319 kx cross_compiling=no
319 kx else
319 kx if test "$cross_compiling" = maybe; then
319 kx cross_compiling=yes
319 kx else
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx as_fn_error 77 "cannot run C compiled programs.
319 kx If you meant to cross compile, use \`--host'.
319 kx See \`config.log' for more details" "$LINENO" 5; }
319 kx fi
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
319 kx printf "%s\n" "$cross_compiling" >&6; }
319 kx
319 kx rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
319 kx ac_clean_files=$ac_clean_files_save
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
319 kx printf %s "checking for suffix of object files... " >&6; }
319 kx if test ${ac_cv_objext+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx rm -f conftest.o conftest.obj
319 kx if { { ac_try="$ac_compile"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_compile") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx then :
319 kx for ac_file in conftest.o conftest.obj conftest.*; do
319 kx test -f "$ac_file" || continue;
319 kx case $ac_file in
319 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
319 kx *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
319 kx break;;
319 kx esac
319 kx done
319 kx else $as_nop
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx as_fn_error $? "cannot compute suffix of object files: cannot compile
319 kx See \`config.log' for more details" "$LINENO" 5; }
319 kx fi
319 kx rm -f conftest.$ac_cv_objext conftest.$ac_ext
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
319 kx printf "%s\n" "$ac_cv_objext" >&6; }
319 kx OBJEXT=$ac_cv_objext
319 kx ac_objext=$OBJEXT
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
319 kx printf %s "checking whether the compiler supports GNU C... " >&6; }
319 kx if test ${ac_cv_c_compiler_gnu+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx #ifndef __GNUC__
319 kx choke me
319 kx #endif
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_compiler_gnu=yes
319 kx else $as_nop
319 kx ac_compiler_gnu=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
319 kx printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx if test $ac_compiler_gnu = yes; then
319 kx GCC=yes
319 kx else
319 kx GCC=
319 kx fi
319 kx ac_test_CFLAGS=${CFLAGS+y}
319 kx ac_save_CFLAGS=$CFLAGS
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
319 kx printf %s "checking whether $CC accepts -g... " >&6; }
319 kx if test ${ac_cv_prog_cc_g+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_save_c_werror_flag=$ac_c_werror_flag
319 kx ac_c_werror_flag=yes
319 kx ac_cv_prog_cc_g=no
319 kx CFLAGS="-g"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cc_g=yes
319 kx else $as_nop
319 kx CFLAGS=""
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx
319 kx else $as_nop
319 kx ac_c_werror_flag=$ac_save_c_werror_flag
319 kx CFLAGS="-g"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cc_g=yes
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx ac_c_werror_flag=$ac_save_c_werror_flag
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
319 kx printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
319 kx if test $ac_test_CFLAGS; then
319 kx CFLAGS=$ac_save_CFLAGS
319 kx elif test $ac_cv_prog_cc_g = yes; then
319 kx if test "$GCC" = yes; then
319 kx CFLAGS="-g -O2"
319 kx else
319 kx CFLAGS="-g"
319 kx fi
319 kx else
319 kx if test "$GCC" = yes; then
319 kx CFLAGS="-O2"
319 kx else
319 kx CFLAGS=
319 kx fi
319 kx fi
319 kx ac_prog_cc_stdc=no
319 kx if test x$ac_prog_cc_stdc = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
319 kx printf %s "checking for $CC option to enable C11 features... " >&6; }
319 kx if test ${ac_cv_prog_cc_c11+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_cv_prog_cc_c11=no
319 kx ac_save_CC=$CC
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx $ac_c_conftest_c11_program
319 kx _ACEOF
319 kx for ac_arg in '' -std=gnu11
319 kx do
319 kx CC="$ac_save_CC $ac_arg"
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cc_c11=$ac_arg
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
319 kx test "x$ac_cv_prog_cc_c11" != "xno" && break
319 kx done
319 kx rm -f conftest.$ac_ext
319 kx CC=$ac_save_CC
319 kx fi
319 kx
319 kx if test "x$ac_cv_prog_cc_c11" = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
319 kx printf "%s\n" "unsupported" >&6; }
319 kx else $as_nop
319 kx if test "x$ac_cv_prog_cc_c11" = x
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
319 kx printf "%s\n" "none needed" >&6; }
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
319 kx printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
319 kx CC="$CC $ac_cv_prog_cc_c11"
319 kx fi
319 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
319 kx ac_prog_cc_stdc=c11
319 kx fi
319 kx fi
319 kx if test x$ac_prog_cc_stdc = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
319 kx printf %s "checking for $CC option to enable C99 features... " >&6; }
319 kx if test ${ac_cv_prog_cc_c99+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_cv_prog_cc_c99=no
319 kx ac_save_CC=$CC
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx $ac_c_conftest_c99_program
319 kx _ACEOF
319 kx for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
319 kx do
319 kx CC="$ac_save_CC $ac_arg"
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cc_c99=$ac_arg
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
319 kx test "x$ac_cv_prog_cc_c99" != "xno" && break
319 kx done
319 kx rm -f conftest.$ac_ext
319 kx CC=$ac_save_CC
319 kx fi
319 kx
319 kx if test "x$ac_cv_prog_cc_c99" = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
319 kx printf "%s\n" "unsupported" >&6; }
319 kx else $as_nop
319 kx if test "x$ac_cv_prog_cc_c99" = x
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
319 kx printf "%s\n" "none needed" >&6; }
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
319 kx printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
319 kx CC="$CC $ac_cv_prog_cc_c99"
319 kx fi
319 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
319 kx ac_prog_cc_stdc=c99
319 kx fi
319 kx fi
319 kx if test x$ac_prog_cc_stdc = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
319 kx printf %s "checking for $CC option to enable C89 features... " >&6; }
319 kx if test ${ac_cv_prog_cc_c89+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_cv_prog_cc_c89=no
319 kx ac_save_CC=$CC
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx $ac_c_conftest_c89_program
319 kx _ACEOF
319 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
319 kx do
319 kx CC="$ac_save_CC $ac_arg"
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cc_c89=$ac_arg
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
319 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
319 kx done
319 kx rm -f conftest.$ac_ext
319 kx CC=$ac_save_CC
319 kx fi
319 kx
319 kx if test "x$ac_cv_prog_cc_c89" = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
319 kx printf "%s\n" "unsupported" >&6; }
319 kx else $as_nop
319 kx if test "x$ac_cv_prog_cc_c89" = x
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
319 kx printf "%s\n" "none needed" >&6; }
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
319 kx printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
319 kx CC="$CC $ac_cv_prog_cc_c89"
319 kx fi
319 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
319 kx ac_prog_cc_stdc=c89
319 kx fi
319 kx fi
319 kx
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
319 kx printf %s "checking whether $CC understands -c and -o together... " >&6; }
319 kx if test ${am_cv_prog_cc_c_o+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx # Make sure it works both with $CC and with simple cc.
319 kx # Following AC_PROG_CC_C_O, we do the test twice because some
319 kx # compilers refuse to overwrite an existing .o file with -o,
319 kx # though they will create one.
319 kx am_cv_prog_cc_c_o=yes
319 kx for am_i in 1 2; do
319 kx if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
319 kx ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
319 kx ac_status=$?
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx (exit $ac_status); } \
319 kx && test -f conftest2.$ac_objext; then
319 kx : OK
319 kx else
319 kx am_cv_prog_cc_c_o=no
319 kx break
319 kx fi
319 kx done
319 kx rm -f core conftest*
319 kx unset am_i
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
319 kx printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
319 kx if test "$am_cv_prog_cc_c_o" != yes; then
319 kx # Losing compiler, so override with the script.
319 kx # FIXME: It is wrong to rewrite CC.
319 kx # But if we don't then we get into trouble of one sort or another.
319 kx # A longer-term fix would be to have automake use am__CC in this case,
319 kx # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
319 kx CC="$am_aux_dir/compile $CC"
319 kx fi
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx DEPDIR="${am__leading_dot}deps"
319 kx
319 kx ac_config_commands="$ac_config_commands depfiles"
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
319 kx printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
319 kx cat > confinc.mk << 'END'
319 kx am__doit:
319 kx @echo this is the am__doit target >confinc.out
319 kx .PHONY: am__doit
319 kx END
319 kx am__include="#"
319 kx am__quote=
319 kx # BSD make does it like this.
319 kx echo '.include "confinc.mk" # ignored' > confmf.BSD
319 kx # Other make implementations (GNU, Solaris 10, AIX) do it like this.
319 kx echo 'include confinc.mk # ignored' > confmf.GNU
319 kx _am_result=no
319 kx for s in GNU BSD; do
319 kx { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
319 kx (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
319 kx ac_status=$?
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx (exit $ac_status); }
319 kx case $?:`cat confinc.out 2>/dev/null` in #(
319 kx '0:this is the am__doit target') :
319 kx case $s in #(
319 kx BSD) :
319 kx am__include='.include' am__quote='"' ;; #(
319 kx *) :
319 kx am__include='include' am__quote='' ;;
319 kx esac ;; #(
319 kx *) :
319 kx ;;
319 kx esac
319 kx if test "$am__include" != "#"; then
319 kx _am_result="yes ($s style)"
319 kx break
319 kx fi
319 kx done
319 kx rm -f confinc.* confmf.*
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
319 kx printf "%s\n" "${_am_result}" >&6; }
319 kx
319 kx # Check whether --enable-dependency-tracking was given.
319 kx if test ${enable_dependency_tracking+y}
319 kx then :
319 kx enableval=$enable_dependency_tracking;
319 kx fi
319 kx
319 kx if test "x$enable_dependency_tracking" != xno; then
319 kx am_depcomp="$ac_aux_dir/depcomp"
319 kx AMDEPBACKSLASH='\'
319 kx am__nodep='_no'
319 kx fi
319 kx if test "x$enable_dependency_tracking" != xno; then
319 kx AMDEP_TRUE=
319 kx AMDEP_FALSE='#'
319 kx else
319 kx AMDEP_TRUE='#'
319 kx AMDEP_FALSE=
319 kx fi
319 kx
319 kx
319 kx
319 kx depcc="$CC" am_compiler_list=
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
319 kx printf %s "checking dependency style of $depcc... " >&6; }
319 kx if test ${am_cv_CC_dependencies_compiler_type+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
319 kx # We make a subdir and do the tests there. Otherwise we can end up
319 kx # making bogus files that we don't know about and never remove. For
319 kx # instance it was reported that on HP-UX the gcc test will end up
319 kx # making a dummy file named 'D' -- because '-MD' means "put the output
319 kx # in D".
319 kx rm -rf conftest.dir
319 kx mkdir conftest.dir
319 kx # Copy depcomp to subdir because otherwise we won't find it if we're
319 kx # using a relative directory.
319 kx cp "$am_depcomp" conftest.dir
319 kx cd conftest.dir
319 kx # We will build objects and dependencies in a subdirectory because
319 kx # it helps to detect inapplicable dependency modes. For instance
319 kx # both Tru64's cc and ICC support -MD to output dependencies as a
319 kx # side effect of compilation, but ICC will put the dependencies in
319 kx # the current directory while Tru64 will put them in the object
319 kx # directory.
319 kx mkdir sub
319 kx
319 kx am_cv_CC_dependencies_compiler_type=none
319 kx if test "$am_compiler_list" = ""; then
319 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
319 kx fi
319 kx am__universal=false
319 kx case " $depcc " in #(
319 kx *\ -arch\ *\ -arch\ *) am__universal=true ;;
319 kx esac
319 kx
319 kx for depmode in $am_compiler_list; do
319 kx # Setup a source with many dependencies, because some compilers
319 kx # like to wrap large dependency lists on column 80 (with \), and
319 kx # we should not choose a depcomp mode which is confused by this.
319 kx #
319 kx # We need to recreate these files for each test, as the compiler may
319 kx # overwrite some of them when testing with obscure command lines.
319 kx # This happens at least with the AIX C compiler.
319 kx : > sub/conftest.c
319 kx for i in 1 2 3 4 5 6; do
319 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
319 kx # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
319 kx # Solaris 10 /bin/sh.
319 kx echo '/* dummy */' > sub/conftst$i.h
319 kx done
319 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
319 kx
319 kx # We check with '-c' and '-o' for the sake of the "dashmstdout"
319 kx # mode. It turns out that the SunPro C++ compiler does not properly
319 kx # handle '-M -o', and we need to detect this. Also, some Intel
319 kx # versions had trouble with output in subdirs.
319 kx am__obj=sub/conftest.${OBJEXT-o}
319 kx am__minus_obj="-o $am__obj"
319 kx case $depmode in
319 kx gcc)
319 kx # This depmode causes a compiler race in universal mode.
319 kx test "$am__universal" = false || continue
319 kx ;;
319 kx nosideeffect)
319 kx # After this tag, mechanisms are not by side-effect, so they'll
319 kx # only be used when explicitly requested.
319 kx if test "x$enable_dependency_tracking" = xyes; then
319 kx continue
319 kx else
319 kx break
319 kx fi
319 kx ;;
319 kx msvc7 | msvc7msys | msvisualcpp | msvcmsys)
319 kx # This compiler won't grok '-c -o', but also, the minuso test has
319 kx # not run yet. These depmodes are late enough in the game, and
319 kx # so weak that their functioning should not be impacted.
319 kx am__obj=conftest.${OBJEXT-o}
319 kx am__minus_obj=
319 kx ;;
319 kx none) break ;;
319 kx esac
319 kx if depmode=$depmode \
319 kx source=sub/conftest.c object=$am__obj \
319 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
319 kx $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
319 kx >/dev/null 2>conftest.err &&
319 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
319 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
319 kx grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
319 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
319 kx # icc doesn't choke on unknown options, it will just issue warnings
319 kx # or remarks (even with -Werror). So we grep stderr for any message
319 kx # that says an option was ignored or not supported.
319 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
319 kx # icc: Command line warning: ignoring option '-M'; no argument required
319 kx # The diagnosis changed in icc 8.0:
319 kx # icc: Command line remark: option '-MP' not supported
319 kx if (grep 'ignoring option' conftest.err ||
319 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
319 kx am_cv_CC_dependencies_compiler_type=$depmode
319 kx break
319 kx fi
319 kx fi
319 kx done
319 kx
319 kx cd ..
319 kx rm -rf conftest.dir
319 kx else
319 kx am_cv_CC_dependencies_compiler_type=none
319 kx fi
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
319 kx printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
319 kx CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
319 kx
319 kx if
319 kx test "x$enable_dependency_tracking" != xno \
319 kx && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
319 kx am__fastdepCC_TRUE=
319 kx am__fastdepCC_FALSE='#'
319 kx else
319 kx am__fastdepCC_TRUE='#'
319 kx am__fastdepCC_FALSE=
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx if test -z "$CXX"; then
319 kx if test -n "$CCC"; then
319 kx CXX=$CCC
319 kx else
319 kx if test -n "$ac_tool_prefix"; then
319 kx for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
319 kx do
319 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$CXX"; then
319 kx ac_cv_prog_CXX="$CXX" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx CXX=$ac_cv_prog_CXX
319 kx if test -n "$CXX"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
319 kx printf "%s\n" "$CXX" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$CXX" && break
319 kx done
319 kx fi
319 kx if test -z "$CXX"; then
319 kx ac_ct_CXX=$CXX
319 kx for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
319 kx do
319 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_CXX"; then
319 kx ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_CXX="$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
319 kx if test -n "$ac_ct_CXX"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
319 kx printf "%s\n" "$ac_ct_CXX" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$ac_ct_CXX" && break
319 kx done
319 kx
319 kx if test "x$ac_ct_CXX" = x; then
319 kx CXX="g++"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx CXX=$ac_ct_CXX
319 kx fi
319 kx fi
319 kx
319 kx fi
319 kx fi
319 kx # Provide some information about the compiler.
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
319 kx set X $ac_compile
319 kx ac_compiler=$2
319 kx for ac_option in --version -v -V -qversion; do
319 kx { { ac_try="$ac_compiler $ac_option >&5"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx sed '10a\
319 kx ... rest of stderr output deleted ...
319 kx 10q' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx fi
319 kx rm -f conftest.er1 conftest.err
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx done
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
319 kx printf %s "checking whether the compiler supports GNU C++... " >&6; }
319 kx if test ${ac_cv_cxx_compiler_gnu+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx #ifndef __GNUC__
319 kx choke me
319 kx #endif
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx ac_compiler_gnu=yes
319 kx else $as_nop
319 kx ac_compiler_gnu=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
319 kx printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx
319 kx if test $ac_compiler_gnu = yes; then
319 kx GXX=yes
319 kx else
319 kx GXX=
319 kx fi
319 kx ac_test_CXXFLAGS=${CXXFLAGS+y}
319 kx ac_save_CXXFLAGS=$CXXFLAGS
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
319 kx printf %s "checking whether $CXX accepts -g... " >&6; }
319 kx if test ${ac_cv_prog_cxx_g+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_save_cxx_werror_flag=$ac_cxx_werror_flag
319 kx ac_cxx_werror_flag=yes
319 kx ac_cv_prog_cxx_g=no
319 kx CXXFLAGS="-g"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cxx_g=yes
319 kx else $as_nop
319 kx CXXFLAGS=""
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx
319 kx else $as_nop
319 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
319 kx CXXFLAGS="-g"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cxx_g=yes
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx ac_cxx_werror_flag=$ac_save_cxx_werror_flag
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
319 kx printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
319 kx if test $ac_test_CXXFLAGS; then
319 kx CXXFLAGS=$ac_save_CXXFLAGS
319 kx elif test $ac_cv_prog_cxx_g = yes; then
319 kx if test "$GXX" = yes; then
319 kx CXXFLAGS="-g -O2"
319 kx else
319 kx CXXFLAGS="-g"
319 kx fi
319 kx else
319 kx if test "$GXX" = yes; then
319 kx CXXFLAGS="-O2"
319 kx else
319 kx CXXFLAGS=
319 kx fi
319 kx fi
319 kx ac_prog_cxx_stdcxx=no
319 kx if test x$ac_prog_cxx_stdcxx = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
319 kx printf %s "checking for $CXX option to enable C++11 features... " >&6; }
319 kx if test ${ac_cv_prog_cxx_cxx11+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_cv_prog_cxx_cxx11=no
319 kx ac_save_CXX=$CXX
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx $ac_cxx_conftest_cxx11_program
319 kx _ACEOF
319 kx for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
319 kx do
319 kx CXX="$ac_save_CXX $ac_arg"
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cxx_cxx11=$ac_arg
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
319 kx test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
319 kx done
319 kx rm -f conftest.$ac_ext
319 kx CXX=$ac_save_CXX
319 kx fi
319 kx
319 kx if test "x$ac_cv_prog_cxx_cxx11" = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
319 kx printf "%s\n" "unsupported" >&6; }
319 kx else $as_nop
319 kx if test "x$ac_cv_prog_cxx_cxx11" = x
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
319 kx printf "%s\n" "none needed" >&6; }
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
319 kx printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
319 kx CXX="$CXX $ac_cv_prog_cxx_cxx11"
319 kx fi
319 kx ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
319 kx ac_prog_cxx_stdcxx=cxx11
319 kx fi
319 kx fi
319 kx if test x$ac_prog_cxx_stdcxx = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
319 kx printf %s "checking for $CXX option to enable C++98 features... " >&6; }
319 kx if test ${ac_cv_prog_cxx_cxx98+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_cv_prog_cxx_cxx98=no
319 kx ac_save_CXX=$CXX
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx $ac_cxx_conftest_cxx98_program
319 kx _ACEOF
319 kx for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
319 kx do
319 kx CXX="$ac_save_CXX $ac_arg"
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_prog_cxx_cxx98=$ac_arg
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
319 kx test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
319 kx done
319 kx rm -f conftest.$ac_ext
319 kx CXX=$ac_save_CXX
319 kx fi
319 kx
319 kx if test "x$ac_cv_prog_cxx_cxx98" = xno
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
319 kx printf "%s\n" "unsupported" >&6; }
319 kx else $as_nop
319 kx if test "x$ac_cv_prog_cxx_cxx98" = x
319 kx then :
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
319 kx printf "%s\n" "none needed" >&6; }
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
319 kx printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
319 kx CXX="$CXX $ac_cv_prog_cxx_cxx98"
319 kx fi
319 kx ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
319 kx ac_prog_cxx_stdcxx=cxx98
319 kx fi
319 kx fi
319 kx
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx depcc="$CXX" am_compiler_list=
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
319 kx printf %s "checking dependency style of $depcc... " >&6; }
319 kx if test ${am_cv_CXX_dependencies_compiler_type+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
319 kx # We make a subdir and do the tests there. Otherwise we can end up
319 kx # making bogus files that we don't know about and never remove. For
319 kx # instance it was reported that on HP-UX the gcc test will end up
319 kx # making a dummy file named 'D' -- because '-MD' means "put the output
319 kx # in D".
319 kx rm -rf conftest.dir
319 kx mkdir conftest.dir
319 kx # Copy depcomp to subdir because otherwise we won't find it if we're
319 kx # using a relative directory.
319 kx cp "$am_depcomp" conftest.dir
319 kx cd conftest.dir
319 kx # We will build objects and dependencies in a subdirectory because
319 kx # it helps to detect inapplicable dependency modes. For instance
319 kx # both Tru64's cc and ICC support -MD to output dependencies as a
319 kx # side effect of compilation, but ICC will put the dependencies in
319 kx # the current directory while Tru64 will put them in the object
319 kx # directory.
319 kx mkdir sub
319 kx
319 kx am_cv_CXX_dependencies_compiler_type=none
319 kx if test "$am_compiler_list" = ""; then
319 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
319 kx fi
319 kx am__universal=false
319 kx case " $depcc " in #(
319 kx *\ -arch\ *\ -arch\ *) am__universal=true ;;
319 kx esac
319 kx
319 kx for depmode in $am_compiler_list; do
319 kx # Setup a source with many dependencies, because some compilers
319 kx # like to wrap large dependency lists on column 80 (with \), and
319 kx # we should not choose a depcomp mode which is confused by this.
319 kx #
319 kx # We need to recreate these files for each test, as the compiler may
319 kx # overwrite some of them when testing with obscure command lines.
319 kx # This happens at least with the AIX C compiler.
319 kx : > sub/conftest.c
319 kx for i in 1 2 3 4 5 6; do
319 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
319 kx # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
319 kx # Solaris 10 /bin/sh.
319 kx echo '/* dummy */' > sub/conftst$i.h
319 kx done
319 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
319 kx
319 kx # We check with '-c' and '-o' for the sake of the "dashmstdout"
319 kx # mode. It turns out that the SunPro C++ compiler does not properly
319 kx # handle '-M -o', and we need to detect this. Also, some Intel
319 kx # versions had trouble with output in subdirs.
319 kx am__obj=sub/conftest.${OBJEXT-o}
319 kx am__minus_obj="-o $am__obj"
319 kx case $depmode in
319 kx gcc)
319 kx # This depmode causes a compiler race in universal mode.
319 kx test "$am__universal" = false || continue
319 kx ;;
319 kx nosideeffect)
319 kx # After this tag, mechanisms are not by side-effect, so they'll
319 kx # only be used when explicitly requested.
319 kx if test "x$enable_dependency_tracking" = xyes; then
319 kx continue
319 kx else
319 kx break
319 kx fi
319 kx ;;
319 kx msvc7 | msvc7msys | msvisualcpp | msvcmsys)
319 kx # This compiler won't grok '-c -o', but also, the minuso test has
319 kx # not run yet. These depmodes are late enough in the game, and
319 kx # so weak that their functioning should not be impacted.
319 kx am__obj=conftest.${OBJEXT-o}
319 kx am__minus_obj=
319 kx ;;
319 kx none) break ;;
319 kx esac
319 kx if depmode=$depmode \
319 kx source=sub/conftest.c object=$am__obj \
319 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
319 kx $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
319 kx >/dev/null 2>conftest.err &&
319 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
319 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
319 kx grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
319 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
319 kx # icc doesn't choke on unknown options, it will just issue warnings
319 kx # or remarks (even with -Werror). So we grep stderr for any message
319 kx # that says an option was ignored or not supported.
319 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
319 kx # icc: Command line warning: ignoring option '-M'; no argument required
319 kx # The diagnosis changed in icc 8.0:
319 kx # icc: Command line remark: option '-MP' not supported
319 kx if (grep 'ignoring option' conftest.err ||
319 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
319 kx am_cv_CXX_dependencies_compiler_type=$depmode
319 kx break
319 kx fi
319 kx fi
319 kx done
319 kx
319 kx cd ..
319 kx rm -rf conftest.dir
319 kx else
319 kx am_cv_CXX_dependencies_compiler_type=none
319 kx fi
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
319 kx printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
319 kx CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
319 kx
319 kx if
319 kx test "x$enable_dependency_tracking" != xno \
319 kx && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
319 kx am__fastdepCXX_TRUE=
319 kx am__fastdepCXX_FALSE='#'
319 kx else
319 kx am__fastdepCXX_TRUE='#'
319 kx am__fastdepCXX_FALSE=
319 kx fi
319 kx
319 kx
319 kx case `pwd` in
319 kx *\ * | *\ *)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
319 kx printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx macro_version='2.4.7'
319 kx macro_revision='2.4.7'
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx ltmain=$ac_aux_dir/ltmain.sh
319 kx
319 kx
319 kx
319 kx # Make sure we can run config.sub.
319 kx $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
319 kx as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
319 kx printf %s "checking build system type... " >&6; }
319 kx if test ${ac_cv_build+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_build_alias=$build_alias
319 kx test "x$ac_build_alias" = x &&
319 kx ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
319 kx test "x$ac_build_alias" = x &&
319 kx as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
319 kx ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
319 kx as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
319 kx printf "%s\n" "$ac_cv_build" >&6; }
319 kx case $ac_cv_build in
319 kx *-*-*) ;;
319 kx *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
319 kx esac
319 kx build=$ac_cv_build
319 kx ac_save_IFS=$IFS; IFS='-'
319 kx set x $ac_cv_build
319 kx shift
319 kx build_cpu=$1
319 kx build_vendor=$2
319 kx shift; shift
319 kx # Remember, the first character of IFS is used to create $*,
319 kx # except with old shells:
319 kx build_os=$*
319 kx IFS=$ac_save_IFS
319 kx case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
319 kx printf %s "checking host system type... " >&6; }
319 kx if test ${ac_cv_host+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test "x$host_alias" = x; then
319 kx ac_cv_host=$ac_cv_build
319 kx else
319 kx ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
319 kx as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
319 kx fi
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
319 kx printf "%s\n" "$ac_cv_host" >&6; }
319 kx case $ac_cv_host in
319 kx *-*-*) ;;
319 kx *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
319 kx esac
319 kx host=$ac_cv_host
319 kx ac_save_IFS=$IFS; IFS='-'
319 kx set x $ac_cv_host
319 kx shift
319 kx host_cpu=$1
319 kx host_vendor=$2
319 kx shift; shift
319 kx # Remember, the first character of IFS is used to create $*,
319 kx # except with old shells:
319 kx host_os=$*
319 kx IFS=$ac_save_IFS
319 kx case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
319 kx
319 kx
319 kx # Backslashify metacharacters that are still active within
319 kx # double-quoted strings.
319 kx sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
319 kx
319 kx # Same as above, but do not quote variable references.
319 kx double_quote_subst='s/\(["`\\]\)/\\\1/g'
319 kx
319 kx # Sed substitution to delay expansion of an escaped shell variable in a
319 kx # double_quote_subst'ed string.
319 kx delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
319 kx
319 kx # Sed substitution to delay expansion of an escaped single quote.
319 kx delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
319 kx
319 kx # Sed substitution to avoid accidental globbing in evaled expressions
319 kx no_glob_subst='s/\*/\\\*/g'
319 kx
319 kx ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
319 kx ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
319 kx ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
319 kx printf %s "checking how to print strings... " >&6; }
319 kx # Test print first, because it will be a builtin if present.
319 kx if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
319 kx test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
319 kx ECHO='print -r --'
319 kx elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
319 kx ECHO='printf %s\n'
319 kx else
319 kx # Use this function as a fallback that always works.
319 kx func_fallback_echo ()
319 kx {
319 kx eval 'cat <<_LTECHO_EOF
319 kx $1
319 kx _LTECHO_EOF'
319 kx }
319 kx ECHO='func_fallback_echo'
319 kx fi
319 kx
319 kx # func_echo_all arg...
319 kx # Invoke $ECHO with all args, space-separated.
319 kx func_echo_all ()
319 kx {
319 kx $ECHO ""
319 kx }
319 kx
319 kx case $ECHO in
319 kx printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
319 kx printf "%s\n" "printf" >&6; } ;;
319 kx print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
319 kx printf "%s\n" "print -r" >&6; } ;;
319 kx *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
319 kx printf "%s\n" "cat" >&6; } ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
319 kx printf %s "checking for a sed that does not truncate output... " >&6; }
319 kx if test ${ac_cv_path_SED+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
319 kx for ac_i in 1 2 3 4 5 6 7; do
319 kx ac_script="$ac_script$as_nl$ac_script"
319 kx done
319 kx echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
319 kx { ac_script=; unset ac_script;}
319 kx if test -z "$SED"; then
319 kx ac_path_SED_found=false
319 kx # Loop through the user's path and test for each of PROGNAME-LIST
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_prog in sed gsed
319 kx do
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
319 kx as_fn_executable_p "$ac_path_SED" || continue
319 kx # Check for GNU ac_path_SED and select it if it is found.
319 kx # Check for GNU $ac_path_SED
319 kx case `"$ac_path_SED" --version 2>&1` in
319 kx *GNU*)
319 kx ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
319 kx *)
319 kx ac_count=0
319 kx printf %s 0123456789 >"conftest.in"
319 kx while :
319 kx do
319 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
319 kx mv "conftest.tmp" "conftest.in"
319 kx cp "conftest.in" "conftest.nl"
319 kx printf "%s\n" '' >> "conftest.nl"
319 kx "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
319 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
319 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
319 kx if test $ac_count -gt ${ac_path_SED_max-0}; then
319 kx # Best one so far, save it but keep looking for a better one
319 kx ac_cv_path_SED="$ac_path_SED"
319 kx ac_path_SED_max=$ac_count
319 kx fi
319 kx # 10*(2^10) chars as input seems more than enough
319 kx test $ac_count -gt 10 && break
319 kx done
319 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
319 kx esac
319 kx
319 kx $ac_path_SED_found && break 3
319 kx done
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx if test -z "$ac_cv_path_SED"; then
319 kx as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
319 kx fi
319 kx else
319 kx ac_cv_path_SED=$SED
319 kx fi
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
319 kx printf "%s\n" "$ac_cv_path_SED" >&6; }
319 kx SED="$ac_cv_path_SED"
319 kx rm -f conftest.sed
319 kx
319 kx test -z "$SED" && SED=sed
319 kx Xsed="$SED -e 1s/^X//"
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
319 kx printf %s "checking for grep that handles long lines and -e... " >&6; }
319 kx if test ${ac_cv_path_GREP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -z "$GREP"; then
319 kx ac_path_GREP_found=false
319 kx # Loop through the user's path and test for each of PROGNAME-LIST
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_prog in grep ggrep
319 kx do
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
319 kx as_fn_executable_p "$ac_path_GREP" || continue
319 kx # Check for GNU ac_path_GREP and select it if it is found.
319 kx # Check for GNU $ac_path_GREP
319 kx case `"$ac_path_GREP" --version 2>&1` in
319 kx *GNU*)
319 kx ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
319 kx *)
319 kx ac_count=0
319 kx printf %s 0123456789 >"conftest.in"
319 kx while :
319 kx do
319 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
319 kx mv "conftest.tmp" "conftest.in"
319 kx cp "conftest.in" "conftest.nl"
319 kx printf "%s\n" 'GREP' >> "conftest.nl"
319 kx "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
319 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
319 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
319 kx if test $ac_count -gt ${ac_path_GREP_max-0}; then
319 kx # Best one so far, save it but keep looking for a better one
319 kx ac_cv_path_GREP="$ac_path_GREP"
319 kx ac_path_GREP_max=$ac_count
319 kx fi
319 kx # 10*(2^10) chars as input seems more than enough
319 kx test $ac_count -gt 10 && break
319 kx done
319 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
319 kx esac
319 kx
319 kx $ac_path_GREP_found && break 3
319 kx done
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx if test -z "$ac_cv_path_GREP"; then
319 kx as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
319 kx fi
319 kx else
319 kx ac_cv_path_GREP=$GREP
319 kx fi
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
319 kx printf "%s\n" "$ac_cv_path_GREP" >&6; }
319 kx GREP="$ac_cv_path_GREP"
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
319 kx printf %s "checking for egrep... " >&6; }
319 kx if test ${ac_cv_path_EGREP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
319 kx then ac_cv_path_EGREP="$GREP -E"
319 kx else
319 kx if test -z "$EGREP"; then
319 kx ac_path_EGREP_found=false
319 kx # Loop through the user's path and test for each of PROGNAME-LIST
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_prog in egrep
319 kx do
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
319 kx as_fn_executable_p "$ac_path_EGREP" || continue
319 kx # Check for GNU ac_path_EGREP and select it if it is found.
319 kx # Check for GNU $ac_path_EGREP
319 kx case `"$ac_path_EGREP" --version 2>&1` in
319 kx *GNU*)
319 kx ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
319 kx *)
319 kx ac_count=0
319 kx printf %s 0123456789 >"conftest.in"
319 kx while :
319 kx do
319 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
319 kx mv "conftest.tmp" "conftest.in"
319 kx cp "conftest.in" "conftest.nl"
319 kx printf "%s\n" 'EGREP' >> "conftest.nl"
319 kx "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
319 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
319 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
319 kx if test $ac_count -gt ${ac_path_EGREP_max-0}; then
319 kx # Best one so far, save it but keep looking for a better one
319 kx ac_cv_path_EGREP="$ac_path_EGREP"
319 kx ac_path_EGREP_max=$ac_count
319 kx fi
319 kx # 10*(2^10) chars as input seems more than enough
319 kx test $ac_count -gt 10 && break
319 kx done
319 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
319 kx esac
319 kx
319 kx $ac_path_EGREP_found && break 3
319 kx done
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx if test -z "$ac_cv_path_EGREP"; then
319 kx as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
319 kx fi
319 kx else
319 kx ac_cv_path_EGREP=$EGREP
319 kx fi
319 kx
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
319 kx printf "%s\n" "$ac_cv_path_EGREP" >&6; }
319 kx EGREP="$ac_cv_path_EGREP"
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
319 kx printf %s "checking for fgrep... " >&6; }
319 kx if test ${ac_cv_path_FGREP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
319 kx then ac_cv_path_FGREP="$GREP -F"
319 kx else
319 kx if test -z "$FGREP"; then
319 kx ac_path_FGREP_found=false
319 kx # Loop through the user's path and test for each of PROGNAME-LIST
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_prog in fgrep
319 kx do
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
319 kx as_fn_executable_p "$ac_path_FGREP" || continue
319 kx # Check for GNU ac_path_FGREP and select it if it is found.
319 kx # Check for GNU $ac_path_FGREP
319 kx case `"$ac_path_FGREP" --version 2>&1` in
319 kx *GNU*)
319 kx ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
319 kx *)
319 kx ac_count=0
319 kx printf %s 0123456789 >"conftest.in"
319 kx while :
319 kx do
319 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
319 kx mv "conftest.tmp" "conftest.in"
319 kx cp "conftest.in" "conftest.nl"
319 kx printf "%s\n" 'FGREP' >> "conftest.nl"
319 kx "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
319 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
319 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
319 kx if test $ac_count -gt ${ac_path_FGREP_max-0}; then
319 kx # Best one so far, save it but keep looking for a better one
319 kx ac_cv_path_FGREP="$ac_path_FGREP"
319 kx ac_path_FGREP_max=$ac_count
319 kx fi
319 kx # 10*(2^10) chars as input seems more than enough
319 kx test $ac_count -gt 10 && break
319 kx done
319 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
319 kx esac
319 kx
319 kx $ac_path_FGREP_found && break 3
319 kx done
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx if test -z "$ac_cv_path_FGREP"; then
319 kx as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
319 kx fi
319 kx else
319 kx ac_cv_path_FGREP=$FGREP
319 kx fi
319 kx
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
319 kx printf "%s\n" "$ac_cv_path_FGREP" >&6; }
319 kx FGREP="$ac_cv_path_FGREP"
319 kx
319 kx
319 kx test -z "$GREP" && GREP=grep
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Check whether --with-gnu-ld was given.
319 kx if test ${with_gnu_ld+y}
319 kx then :
319 kx withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
319 kx else $as_nop
319 kx with_gnu_ld=no
319 kx fi
319 kx
319 kx ac_prog=ld
319 kx if test yes = "$GCC"; then
319 kx # Check if gcc -print-prog-name=ld gives a path.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
319 kx printf %s "checking for ld used by $CC... " >&6; }
319 kx case $host in
319 kx *-*-mingw*)
319 kx # gcc leaves a trailing carriage return, which upsets mingw
319 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
319 kx *)
319 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
319 kx esac
319 kx case $ac_prog in
319 kx # Accept absolute paths.
319 kx [\\/]* | ?:[\\/]*)
319 kx re_direlt='/[^/][^/]*/\.\./'
319 kx # Canonicalize the pathname of ld
319 kx ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
319 kx while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
319 kx ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
319 kx done
319 kx test -z "$LD" && LD=$ac_prog
319 kx ;;
319 kx "")
319 kx # If it fails, then pretend we aren't using GCC.
319 kx ac_prog=ld
319 kx ;;
319 kx *)
319 kx # If it is relative, then search for the first ld in PATH.
319 kx with_gnu_ld=unknown
319 kx ;;
319 kx esac
319 kx elif test yes = "$with_gnu_ld"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
319 kx printf %s "checking for GNU ld... " >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
319 kx printf %s "checking for non-GNU ld... " >&6; }
319 kx fi
319 kx if test ${lt_cv_path_LD+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -z "$LD"; then
319 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
319 kx for ac_dir in $PATH; do
319 kx IFS=$lt_save_ifs
319 kx test -z "$ac_dir" && ac_dir=.
319 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
319 kx lt_cv_path_LD=$ac_dir/$ac_prog
319 kx # Check to see if the program is GNU ld. I'd rather use --version,
319 kx # but apparently some variants of GNU ld only accept -v.
319 kx # Break only if it was the GNU/non-GNU ld that we prefer.
319 kx case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
319 kx *GNU* | *'with BFD'*)
319 kx test no != "$with_gnu_ld" && break
319 kx ;;
319 kx *)
319 kx test yes != "$with_gnu_ld" && break
319 kx ;;
319 kx esac
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx else
319 kx lt_cv_path_LD=$LD # Let the user override the test with a path.
319 kx fi
319 kx fi
319 kx
319 kx LD=$lt_cv_path_LD
319 kx if test -n "$LD"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
319 kx printf "%s\n" "$LD" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
319 kx printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
319 kx if test ${lt_cv_prog_gnu_ld+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
319 kx case `$LD -v 2>&1 </dev/null` in
319 kx *GNU* | *'with BFD'*)
319 kx lt_cv_prog_gnu_ld=yes
319 kx ;;
319 kx *)
319 kx lt_cv_prog_gnu_ld=no
319 kx ;;
319 kx esac
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
319 kx printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
319 kx with_gnu_ld=$lt_cv_prog_gnu_ld
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
319 kx printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
319 kx if test ${lt_cv_path_NM+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$NM"; then
319 kx # Let the user override the test.
319 kx lt_cv_path_NM=$NM
319 kx else
319 kx lt_nm_to_check=${ac_tool_prefix}nm
319 kx if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
319 kx lt_nm_to_check="$lt_nm_to_check nm"
319 kx fi
319 kx for lt_tmp_nm in $lt_nm_to_check; do
319 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
319 kx for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
319 kx IFS=$lt_save_ifs
319 kx test -z "$ac_dir" && ac_dir=.
319 kx tmp_nm=$ac_dir/$lt_tmp_nm
319 kx if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
319 kx # Check to see if the nm accepts a BSD-compat flag.
319 kx # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
319 kx # nm: unknown option "B" ignored
319 kx # Tru64's nm complains that /dev/null is an invalid object file
319 kx # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
319 kx case $build_os in
319 kx mingw*) lt_bad_file=conftest.nm/nofile ;;
319 kx *) lt_bad_file=/dev/null ;;
319 kx esac
319 kx case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
319 kx *$lt_bad_file* | *'Invalid file or object type'*)
319 kx lt_cv_path_NM="$tmp_nm -B"
319 kx break 2
319 kx ;;
319 kx *)
319 kx case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
319 kx */dev/null*)
319 kx lt_cv_path_NM="$tmp_nm -p"
319 kx break 2
319 kx ;;
319 kx *)
319 kx lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
319 kx continue # so that we can try to find one that supports BSD flags
319 kx ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx done
319 kx : ${lt_cv_path_NM=no}
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
319 kx printf "%s\n" "$lt_cv_path_NM" >&6; }
319 kx if test no != "$lt_cv_path_NM"; then
319 kx NM=$lt_cv_path_NM
319 kx else
319 kx # Didn't find any BSD compatible name lister, look for dumpbin.
319 kx if test -n "$DUMPBIN"; then :
319 kx # Let the user override the test.
319 kx else
319 kx if test -n "$ac_tool_prefix"; then
319 kx for ac_prog in dumpbin "link -dump"
319 kx do
319 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_DUMPBIN+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$DUMPBIN"; then
319 kx ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx DUMPBIN=$ac_cv_prog_DUMPBIN
319 kx if test -n "$DUMPBIN"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
319 kx printf "%s\n" "$DUMPBIN" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$DUMPBIN" && break
319 kx done
319 kx fi
319 kx if test -z "$DUMPBIN"; then
319 kx ac_ct_DUMPBIN=$DUMPBIN
319 kx for ac_prog in dumpbin "link -dump"
319 kx do
319 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_DUMPBIN"; then
319 kx ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
319 kx if test -n "$ac_ct_DUMPBIN"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
319 kx printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$ac_ct_DUMPBIN" && break
319 kx done
319 kx
319 kx if test "x$ac_ct_DUMPBIN" = x; then
319 kx DUMPBIN=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx DUMPBIN=$ac_ct_DUMPBIN
319 kx fi
319 kx fi
319 kx
319 kx case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
319 kx *COFF*)
319 kx DUMPBIN="$DUMPBIN -symbols -headers"
319 kx ;;
319 kx *)
319 kx DUMPBIN=:
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx if test : != "$DUMPBIN"; then
319 kx NM=$DUMPBIN
319 kx fi
319 kx fi
319 kx test -z "$NM" && NM=nm
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
319 kx printf %s "checking the name lister ($NM) interface... " >&6; }
319 kx if test ${lt_cv_nm_interface+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_nm_interface="BSD nm"
319 kx echo "int some_variable = 0;" > conftest.$ac_ext
319 kx (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
319 kx (eval "$ac_compile" 2>conftest.err)
319 kx cat conftest.err >&5
319 kx (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
319 kx (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
319 kx cat conftest.err >&5
319 kx (eval echo "\"\$as_me:$LINENO: output\"" >&5)
319 kx cat conftest.out >&5
319 kx if $GREP 'External.*some_variable' conftest.out > /dev/null; then
319 kx lt_cv_nm_interface="MS dumpbin"
319 kx fi
319 kx rm -f conftest*
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
319 kx printf "%s\n" "$lt_cv_nm_interface" >&6; }
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
319 kx printf %s "checking whether ln -s works... " >&6; }
319 kx LN_S=$as_ln_s
319 kx if test "$LN_S" = "ln -s"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
319 kx printf "%s\n" "yes" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
319 kx printf "%s\n" "no, using $LN_S" >&6; }
319 kx fi
319 kx
319 kx # find the maximum length of command line arguments
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
319 kx printf %s "checking the maximum length of command line arguments... " >&6; }
319 kx if test ${lt_cv_sys_max_cmd_len+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx i=0
319 kx teststring=ABCD
319 kx
319 kx case $build_os in
319 kx msdosdjgpp*)
319 kx # On DJGPP, this test can blow up pretty badly due to problems in libc
319 kx # (any single argument exceeding 2000 bytes causes a buffer overrun
319 kx # during glob expansion). Even if it were fixed, the result of this
319 kx # check would be larger than it should be.
319 kx lt_cv_sys_max_cmd_len=12288; # 12K is about right
319 kx ;;
319 kx
319 kx gnu*)
319 kx # Under GNU Hurd, this test is not required because there is
319 kx # no limit to the length of command line arguments.
319 kx # Libtool will interpret -1 as no limit whatsoever
319 kx lt_cv_sys_max_cmd_len=-1;
319 kx ;;
319 kx
319 kx cygwin* | mingw* | cegcc*)
319 kx # On Win9x/ME, this test blows up -- it succeeds, but takes
319 kx # about 5 minutes as the teststring grows exponentially.
319 kx # Worse, since 9x/ME are not pre-emptively multitasking,
319 kx # you end up with a "frozen" computer, even though with patience
319 kx # the test eventually succeeds (with a max line length of 256k).
319 kx # Instead, let's just punt: use the minimum linelength reported by
319 kx # all of the supported platforms: 8192 (on NT/2K/XP).
319 kx lt_cv_sys_max_cmd_len=8192;
319 kx ;;
319 kx
319 kx mint*)
319 kx # On MiNT this can take a long time and run out of memory.
319 kx lt_cv_sys_max_cmd_len=8192;
319 kx ;;
319 kx
319 kx amigaos*)
319 kx # On AmigaOS with pdksh, this test takes hours, literally.
319 kx # So we just punt and use a minimum line length of 8192.
319 kx lt_cv_sys_max_cmd_len=8192;
319 kx ;;
319 kx
319 kx bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
319 kx # This has been around since 386BSD, at least. Likely further.
319 kx if test -x /sbin/sysctl; then
319 kx lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
319 kx elif test -x /usr/sbin/sysctl; then
319 kx lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
319 kx else
319 kx lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
319 kx fi
319 kx # And add a safety zone
319 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
319 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
319 kx ;;
319 kx
319 kx interix*)
319 kx # We know the value 262144 and hardcode it with a safety zone (like BSD)
319 kx lt_cv_sys_max_cmd_len=196608
319 kx ;;
319 kx
319 kx os2*)
319 kx # The test takes a long time on OS/2.
319 kx lt_cv_sys_max_cmd_len=8192
319 kx ;;
319 kx
319 kx osf*)
319 kx # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
319 kx # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
319 kx # nice to cause kernel panics so lets avoid the loop below.
319 kx # First set a reasonable default.
319 kx lt_cv_sys_max_cmd_len=16384
319 kx #
319 kx if test -x /sbin/sysconfig; then
319 kx case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
319 kx *1*) lt_cv_sys_max_cmd_len=-1 ;;
319 kx esac
319 kx fi
319 kx ;;
319 kx sco3.2v5*)
319 kx lt_cv_sys_max_cmd_len=102400
319 kx ;;
319 kx sysv5* | sco5v6* | sysv4.2uw2*)
319 kx kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
319 kx if test -n "$kargmax"; then
319 kx lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
319 kx else
319 kx lt_cv_sys_max_cmd_len=32768
319 kx fi
319 kx ;;
319 kx *)
319 kx lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
319 kx if test -n "$lt_cv_sys_max_cmd_len" && \
319 kx test undefined != "$lt_cv_sys_max_cmd_len"; then
319 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
319 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
319 kx else
319 kx # Make teststring a little bigger before we do anything with it.
319 kx # a 1K string should be a reasonable start.
319 kx for i in 1 2 3 4 5 6 7 8; do
319 kx teststring=$teststring$teststring
319 kx done
319 kx SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
319 kx # If test is not a shell built-in, we'll probably end up computing a
319 kx # maximum length that is only half of the actual maximum length, but
319 kx # we can't tell.
319 kx while { test X`env echo "$teststring$teststring" 2>/dev/null` \
319 kx = "X$teststring$teststring"; } >/dev/null 2>&1 &&
319 kx test 17 != "$i" # 1/2 MB should be enough
319 kx do
319 kx i=`expr $i + 1`
319 kx teststring=$teststring$teststring
319 kx done
319 kx # Only check the string length outside the loop.
319 kx lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
319 kx teststring=
319 kx # Add a significant safety factor because C++ compilers can tack on
319 kx # massive amounts of additional arguments before passing them to the
319 kx # linker. It appears as though 1/2 is a usable value.
319 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx fi
319 kx
319 kx if test -n "$lt_cv_sys_max_cmd_len"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
319 kx printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
319 kx printf "%s\n" "none" >&6; }
319 kx fi
319 kx max_cmd_len=$lt_cv_sys_max_cmd_len
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx : ${CP="cp -f"}
319 kx : ${MV="mv -f"}
319 kx : ${RM="rm -f"}
319 kx
319 kx if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
319 kx lt_unset=unset
319 kx else
319 kx lt_unset=false
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # test EBCDIC or ASCII
319 kx case `echo X|tr X '\101'` in
319 kx A) # ASCII based system
319 kx # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
319 kx lt_SP2NL='tr \040 \012'
319 kx lt_NL2SP='tr \015\012 \040\040'
319 kx ;;
319 kx *) # EBCDIC based system
319 kx lt_SP2NL='tr \100 \n'
319 kx lt_NL2SP='tr \r\n \100\100'
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
319 kx printf %s "checking how to convert $build file names to $host format... " >&6; }
319 kx if test ${lt_cv_to_host_file_cmd+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx case $host in
319 kx *-*-mingw* )
319 kx case $build in
319 kx *-*-mingw* ) # actually msys
319 kx lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
319 kx ;;
319 kx *-*-cygwin* )
319 kx lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
319 kx ;;
319 kx * ) # otherwise, assume *nix
319 kx lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
319 kx ;;
319 kx esac
319 kx ;;
319 kx *-*-cygwin* )
319 kx case $build in
319 kx *-*-mingw* ) # actually msys
319 kx lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
319 kx ;;
319 kx *-*-cygwin* )
319 kx lt_cv_to_host_file_cmd=func_convert_file_noop
319 kx ;;
319 kx * ) # otherwise, assume *nix
319 kx lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
319 kx ;;
319 kx esac
319 kx ;;
319 kx * ) # unhandled hosts (and "normal" native builds)
319 kx lt_cv_to_host_file_cmd=func_convert_file_noop
319 kx ;;
319 kx esac
319 kx
319 kx fi
319 kx
319 kx to_host_file_cmd=$lt_cv_to_host_file_cmd
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
319 kx printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
319 kx printf %s "checking how to convert $build file names to toolchain format... " >&6; }
319 kx if test ${lt_cv_to_tool_file_cmd+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx #assume ordinary cross tools, or native build.
319 kx lt_cv_to_tool_file_cmd=func_convert_file_noop
319 kx case $host in
319 kx *-*-mingw* )
319 kx case $build in
319 kx *-*-mingw* ) # actually msys
319 kx lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
319 kx ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx
319 kx fi
319 kx
319 kx to_tool_file_cmd=$lt_cv_to_tool_file_cmd
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
319 kx printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
319 kx printf %s "checking for $LD option to reload object files... " >&6; }
319 kx if test ${lt_cv_ld_reload_flag+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_ld_reload_flag='-r'
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
319 kx printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
319 kx reload_flag=$lt_cv_ld_reload_flag
319 kx case $reload_flag in
319 kx "" | " "*) ;;
319 kx *) reload_flag=" $reload_flag" ;;
319 kx esac
319 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
319 kx case $host_os in
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx if test yes != "$GCC"; then
319 kx reload_cmds=false
319 kx fi
319 kx ;;
319 kx darwin*)
319 kx if test yes = "$GCC"; then
319 kx reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
319 kx else
319 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}file; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_FILECMD+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$FILECMD"; then
319 kx ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_FILECMD="${ac_tool_prefix}file"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx FILECMD=$ac_cv_prog_FILECMD
319 kx if test -n "$FILECMD"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
319 kx printf "%s\n" "$FILECMD" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_FILECMD"; then
319 kx ac_ct_FILECMD=$FILECMD
319 kx # Extract the first word of "file", so it can be a program name with args.
319 kx set dummy file; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_FILECMD+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_FILECMD"; then
319 kx ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_FILECMD="file"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
319 kx if test -n "$ac_ct_FILECMD"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
319 kx printf "%s\n" "$ac_ct_FILECMD" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_FILECMD" = x; then
319 kx FILECMD=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx FILECMD=$ac_ct_FILECMD
319 kx fi
319 kx else
319 kx FILECMD="$ac_cv_prog_FILECMD"
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}objdump; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_OBJDUMP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$OBJDUMP"; then
319 kx ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx OBJDUMP=$ac_cv_prog_OBJDUMP
319 kx if test -n "$OBJDUMP"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
319 kx printf "%s\n" "$OBJDUMP" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_OBJDUMP"; then
319 kx ac_ct_OBJDUMP=$OBJDUMP
319 kx # Extract the first word of "objdump", so it can be a program name with args.
319 kx set dummy objdump; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_OBJDUMP"; then
319 kx ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_OBJDUMP="objdump"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
319 kx if test -n "$ac_ct_OBJDUMP"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
319 kx printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_OBJDUMP" = x; then
319 kx OBJDUMP="false"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx OBJDUMP=$ac_ct_OBJDUMP
319 kx fi
319 kx else
319 kx OBJDUMP="$ac_cv_prog_OBJDUMP"
319 kx fi
319 kx
319 kx test -z "$OBJDUMP" && OBJDUMP=objdump
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
319 kx printf %s "checking how to recognize dependent libraries... " >&6; }
319 kx if test ${lt_cv_deplibs_check_method+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_file_magic_cmd='$MAGIC_CMD'
319 kx lt_cv_file_magic_test_file=
319 kx lt_cv_deplibs_check_method='unknown'
319 kx # Need to set the preceding variable on all platforms that support
319 kx # interlibrary dependencies.
319 kx # 'none' -- dependencies not supported.
319 kx # 'unknown' -- same as none, but documents that we really don't know.
319 kx # 'pass_all' -- all dependencies passed with no checks.
319 kx # 'test_compile' -- check by making test program.
319 kx # 'file_magic [[regex]]' -- check by looking for files in library path
319 kx # that responds to the $file_magic_cmd with a given extended regex.
319 kx # If you have 'file' or equivalent on your system and you're not sure
319 kx # whether 'pass_all' will *always* work, you probably want this one.
319 kx
319 kx case $host_os in
319 kx aix[4-9]*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx beos*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx bsdi[45]*)
319 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
319 kx lt_cv_file_magic_cmd='$FILECMD -L'
319 kx lt_cv_file_magic_test_file=/shlib/libc.so
319 kx ;;
319 kx
319 kx cygwin*)
319 kx # func_win32_libid is a shell function defined in ltmain.sh
319 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
319 kx lt_cv_file_magic_cmd='func_win32_libid'
319 kx ;;
319 kx
319 kx mingw* | pw32*)
319 kx # Base MSYS/MinGW do not provide the 'file' command needed by
319 kx # func_win32_libid shell function, so use a weaker test based on 'objdump',
319 kx # unless we find 'file', for example because we are cross-compiling.
319 kx if ( file / ) >/dev/null 2>&1; then
319 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
319 kx lt_cv_file_magic_cmd='func_win32_libid'
319 kx else
319 kx # Keep this pattern in sync with the one in func_win32_libid.
319 kx lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
319 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
319 kx fi
319 kx ;;
319 kx
319 kx cegcc*)
319 kx # use the weaker test based on 'objdump'. See mingw*.
319 kx lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
319 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
319 kx ;;
319 kx
319 kx darwin* | rhapsody*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx freebsd* | dragonfly* | midnightbsd*)
319 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
319 kx case $host_cpu in
319 kx i*86 )
319 kx # Not sure whether the presence of OpenBSD here was a mistake.
319 kx # Let's accept both of them until this is cleared up.
319 kx lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
319 kx lt_cv_file_magic_cmd=$FILECMD
319 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
319 kx ;;
319 kx esac
319 kx else
319 kx lt_cv_deplibs_check_method=pass_all
319 kx fi
319 kx ;;
319 kx
319 kx haiku*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx hpux10.20* | hpux11*)
319 kx lt_cv_file_magic_cmd=$FILECMD
319 kx case $host_cpu in
319 kx ia64*)
319 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
319 kx lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
319 kx ;;
319 kx hppa*64*)
319 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
319 kx lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
319 kx ;;
319 kx *)
319 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
319 kx lt_cv_file_magic_test_file=/usr/lib/libc.sl
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx interix[3-9]*)
319 kx # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
319 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
319 kx ;;
319 kx
319 kx irix5* | irix6* | nonstopux*)
319 kx case $LD in
319 kx *-32|*"-32 ") libmagic=32-bit;;
319 kx *-n32|*"-n32 ") libmagic=N32;;
319 kx *-64|*"-64 ") libmagic=64-bit;;
319 kx *) libmagic=never-match;;
319 kx esac
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx # This must be glibc/ELF.
319 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx netbsd*)
319 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
319 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
319 kx else
319 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
319 kx fi
319 kx ;;
319 kx
319 kx newos6*)
319 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
319 kx lt_cv_file_magic_cmd=$FILECMD
319 kx lt_cv_file_magic_test_file=/usr/lib/libnls.so
319 kx ;;
319 kx
319 kx *nto* | *qnx*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx openbsd* | bitrig*)
319 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
319 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
319 kx else
319 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
319 kx fi
319 kx ;;
319 kx
319 kx osf3* | osf4* | osf5*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx rdos*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx solaris*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx
319 kx sysv4 | sysv4.3*)
319 kx case $host_vendor in
319 kx motorola)
319 kx 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]'
319 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
319 kx ;;
319 kx ncr)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx sequent)
319 kx lt_cv_file_magic_cmd='/bin/file'
319 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
319 kx ;;
319 kx sni)
319 kx lt_cv_file_magic_cmd='/bin/file'
319 kx lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
319 kx lt_cv_file_magic_test_file=/lib/libc.so
319 kx ;;
319 kx siemens)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx pc)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx tpf*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx os2*)
319 kx lt_cv_deplibs_check_method=pass_all
319 kx ;;
319 kx esac
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
319 kx printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
319 kx
319 kx file_magic_glob=
319 kx want_nocaseglob=no
319 kx if test "$build" = "$host"; then
319 kx case $host_os in
319 kx mingw* | pw32*)
319 kx if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
319 kx want_nocaseglob=yes
319 kx else
319 kx file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
319 kx fi
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx file_magic_cmd=$lt_cv_file_magic_cmd
319 kx deplibs_check_method=$lt_cv_deplibs_check_method
319 kx test -z "$deplibs_check_method" && deplibs_check_method=unknown
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}dlltool; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_DLLTOOL+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$DLLTOOL"; then
319 kx ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx DLLTOOL=$ac_cv_prog_DLLTOOL
319 kx if test -n "$DLLTOOL"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
319 kx printf "%s\n" "$DLLTOOL" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_DLLTOOL"; then
319 kx ac_ct_DLLTOOL=$DLLTOOL
319 kx # Extract the first word of "dlltool", so it can be a program name with args.
319 kx set dummy dlltool; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_DLLTOOL"; then
319 kx ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_DLLTOOL="dlltool"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
319 kx if test -n "$ac_ct_DLLTOOL"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
319 kx printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_DLLTOOL" = x; then
319 kx DLLTOOL="false"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx DLLTOOL=$ac_ct_DLLTOOL
319 kx fi
319 kx else
319 kx DLLTOOL="$ac_cv_prog_DLLTOOL"
319 kx fi
319 kx
319 kx test -z "$DLLTOOL" && DLLTOOL=dlltool
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
319 kx printf %s "checking how to associate runtime and link libraries... " >&6; }
319 kx if test ${lt_cv_sharedlib_from_linklib_cmd+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_sharedlib_from_linklib_cmd='unknown'
319 kx
319 kx case $host_os in
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx # two different shell functions defined in ltmain.sh;
319 kx # decide which one to use based on capabilities of $DLLTOOL
319 kx case `$DLLTOOL --help 2>&1` in
319 kx *--identify-strict*)
319 kx lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
319 kx ;;
319 kx *)
319 kx lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
319 kx ;;
319 kx esac
319 kx ;;
319 kx *)
319 kx # fallback: assume linklib IS sharedlib
319 kx lt_cv_sharedlib_from_linklib_cmd=$ECHO
319 kx ;;
319 kx esac
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
319 kx printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
319 kx sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
319 kx test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx for ac_prog in ar
319 kx do
319 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_AR+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$AR"; then
319 kx ac_cv_prog_AR="$AR" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx AR=$ac_cv_prog_AR
319 kx if test -n "$AR"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
319 kx printf "%s\n" "$AR" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$AR" && break
319 kx done
319 kx fi
319 kx if test -z "$AR"; then
319 kx ac_ct_AR=$AR
319 kx for ac_prog in ar
319 kx do
319 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
319 kx set dummy $ac_prog; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_AR+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_AR"; then
319 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_AR="$ac_prog"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
319 kx if test -n "$ac_ct_AR"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
319 kx printf "%s\n" "$ac_ct_AR" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx test -n "$ac_ct_AR" && break
319 kx done
319 kx
319 kx if test "x$ac_ct_AR" = x; then
319 kx AR="false"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx AR=$ac_ct_AR
319 kx fi
319 kx fi
319 kx
319 kx : ${AR=ar}
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Use ARFLAGS variable as AR's operation code to sync the variable naming with
319 kx # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
319 kx # higher priority because thats what people were doing historically (setting
319 kx # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
319 kx # variable obsoleted/removed.
319 kx
319 kx test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
319 kx lt_ar_flags=$AR_FLAGS
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
319 kx # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
319 kx printf %s "checking for archiver @FILE support... " >&6; }
319 kx if test ${lt_cv_ar_at_file+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_ar_at_file=no
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx echo conftest.$ac_objext > conftest.lst
319 kx lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
319 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
319 kx (eval $lt_ar_try) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx if test 0 -eq "$ac_status"; then
319 kx # Ensure the archiver fails upon bogus file names.
319 kx rm -f conftest.$ac_objext libconftest.a
319 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
319 kx (eval $lt_ar_try) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx if test 0 -ne "$ac_status"; then
319 kx lt_cv_ar_at_file=@
319 kx fi
319 kx fi
319 kx rm -f conftest.* libconftest.a
319 kx
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
319 kx printf "%s\n" "$lt_cv_ar_at_file" >&6; }
319 kx
319 kx if test no = "$lt_cv_ar_at_file"; then
319 kx archiver_list_spec=
319 kx else
319 kx archiver_list_spec=$lt_cv_ar_at_file
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_STRIP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$STRIP"; then
319 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx STRIP=$ac_cv_prog_STRIP
319 kx if test -n "$STRIP"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
319 kx printf "%s\n" "$STRIP" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_STRIP"; then
319 kx ac_ct_STRIP=$STRIP
319 kx # Extract the first word of "strip", so it can be a program name with args.
319 kx set dummy strip; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_STRIP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_STRIP"; then
319 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_STRIP="strip"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
319 kx if test -n "$ac_ct_STRIP"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
319 kx printf "%s\n" "$ac_ct_STRIP" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_STRIP" = x; then
319 kx STRIP=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx STRIP=$ac_ct_STRIP
319 kx fi
319 kx else
319 kx STRIP="$ac_cv_prog_STRIP"
319 kx fi
319 kx
319 kx test -z "$STRIP" && STRIP=:
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}ranlib; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_RANLIB+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$RANLIB"; then
319 kx ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx RANLIB=$ac_cv_prog_RANLIB
319 kx if test -n "$RANLIB"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
319 kx printf "%s\n" "$RANLIB" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_RANLIB"; then
319 kx ac_ct_RANLIB=$RANLIB
319 kx # Extract the first word of "ranlib", so it can be a program name with args.
319 kx set dummy ranlib; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_RANLIB+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_RANLIB"; then
319 kx ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_RANLIB="ranlib"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
319 kx if test -n "$ac_ct_RANLIB"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
319 kx printf "%s\n" "$ac_ct_RANLIB" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_RANLIB" = x; then
319 kx RANLIB=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx RANLIB=$ac_ct_RANLIB
319 kx fi
319 kx else
319 kx RANLIB="$ac_cv_prog_RANLIB"
319 kx fi
319 kx
319 kx test -z "$RANLIB" && RANLIB=:
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Determine commands to create old-style static archives.
319 kx old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
319 kx old_postinstall_cmds='chmod 644 $oldlib'
319 kx old_postuninstall_cmds=
319 kx
319 kx if test -n "$RANLIB"; then
319 kx case $host_os in
319 kx bitrig* | openbsd*)
319 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
319 kx ;;
319 kx *)
319 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
319 kx ;;
319 kx esac
319 kx old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
319 kx fi
319 kx
319 kx case $host_os in
319 kx darwin*)
319 kx lock_old_archive_extraction=yes ;;
319 kx *)
319 kx lock_old_archive_extraction=no ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # If no C compiler was specified, use CC.
319 kx LTCC=${LTCC-"$CC"}
319 kx
319 kx # If no C compiler flags were specified, use CFLAGS.
319 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
319 kx
319 kx # Allow CC to be a program name with arguments.
319 kx compiler=$CC
319 kx
319 kx
319 kx # Check for command to grab the raw symbol name followed by C symbol from nm.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
319 kx printf %s "checking command to parse $NM output from $compiler object... " >&6; }
319 kx if test ${lt_cv_sys_global_symbol_pipe+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx
319 kx # These are sane defaults that work on at least a few old systems.
319 kx # [They come from Ultrix. What could be older than Ultrix?!! ;)]
319 kx
319 kx # Character class describing NM global symbol codes.
319 kx symcode='[BCDEGRST]'
319 kx
319 kx # Regexp to match symbols that can be accessed directly from C.
319 kx sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
319 kx
319 kx # Define system-specific variables.
319 kx case $host_os in
319 kx aix*)
319 kx symcode='[BCDT]'
319 kx ;;
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx symcode='[ABCDGISTW]'
319 kx ;;
319 kx hpux*)
319 kx if test ia64 = "$host_cpu"; then
319 kx symcode='[ABCDEGRST]'
319 kx fi
319 kx ;;
319 kx irix* | nonstopux*)
319 kx symcode='[BCDEGRST]'
319 kx ;;
319 kx osf*)
319 kx symcode='[BCDEGQRST]'
319 kx ;;
319 kx solaris*)
319 kx symcode='[BDRT]'
319 kx ;;
319 kx sco3.2v5*)
319 kx symcode='[DT]'
319 kx ;;
319 kx sysv4.2uw2*)
319 kx symcode='[DT]'
319 kx ;;
319 kx sysv5* | sco5v6* | unixware* | OpenUNIX*)
319 kx symcode='[ABDT]'
319 kx ;;
319 kx sysv4)
319 kx symcode='[DFNSTU]'
319 kx ;;
319 kx esac
319 kx
319 kx # If we're using GNU nm, then use its standard symbol codes.
319 kx case `$NM -V 2>&1` in
319 kx *GNU* | *'with BFD'*)
319 kx symcode='[ABCDGIRSTW]' ;;
319 kx esac
319 kx
319 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
319 kx # Gets list of data symbols to import.
319 kx lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
319 kx # Adjust the below global symbol transforms to fixup imported variables.
319 kx lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
319 kx lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
319 kx lt_c_name_lib_hook="\
319 kx -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
319 kx -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
319 kx else
319 kx # Disable hooks by default.
319 kx lt_cv_sys_global_symbol_to_import=
319 kx lt_cdecl_hook=
319 kx lt_c_name_hook=
319 kx lt_c_name_lib_hook=
319 kx fi
319 kx
319 kx # Transform an extracted symbol line into a proper C declaration.
319 kx # Some systems (esp. on ia64) link data and code symbols differently,
319 kx # so use this general approach.
319 kx lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
319 kx $lt_cdecl_hook\
319 kx " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
319 kx " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
319 kx
319 kx # Transform an extracted symbol line into symbol name and symbol address
319 kx lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
319 kx $lt_c_name_hook\
319 kx " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
319 kx " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
319 kx
319 kx # Transform an extracted symbol line into symbol name with lib prefix and
319 kx # symbol address.
319 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
319 kx $lt_c_name_lib_hook\
319 kx " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
319 kx " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
319 kx " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
319 kx
319 kx # Handle CRLF in mingw tool chain
319 kx opt_cr=
319 kx case $build_os in
319 kx mingw*)
319 kx opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
319 kx ;;
319 kx esac
319 kx
319 kx # Try without a prefix underscore, then with it.
319 kx for ac_symprfx in "" "_"; do
319 kx
319 kx # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
319 kx symxfrm="\\1 $ac_symprfx\\2 \\2"
319 kx
319 kx # Write the raw and C identifiers.
319 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
319 kx # Fake it for dumpbin and say T for any non-static function,
319 kx # D for any global variable and I for any imported variable.
319 kx # Also find C++ and __fastcall symbols from MSVC++ or ICC,
319 kx # which start with @ or ?.
319 kx lt_cv_sys_global_symbol_pipe="$AWK '"\
319 kx " {last_section=section; section=\$ 3};"\
319 kx " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
319 kx " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
319 kx " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
319 kx " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
319 kx " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
319 kx " \$ 0!~/External *\|/{next};"\
319 kx " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
319 kx " {if(hide[section]) next};"\
319 kx " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
319 kx " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
319 kx " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
319 kx " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
319 kx " ' prfx=^$ac_symprfx"
319 kx else
319 kx lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
319 kx fi
319 kx lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
319 kx
319 kx # Check to see that the pipe works correctly.
319 kx pipe_works=no
319 kx
319 kx rm -f conftest*
319 kx cat > conftest.$ac_ext <<_LT_EOF
319 kx #ifdef __cplusplus
319 kx extern "C" {
319 kx #endif
319 kx char nm_test_var;
319 kx void nm_test_func(void);
319 kx void nm_test_func(void){}
319 kx #ifdef __cplusplus
319 kx }
319 kx #endif
319 kx int main(){nm_test_var='a';nm_test_func();return(0);}
319 kx _LT_EOF
319 kx
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; then
319 kx # Now try to grab the symbols.
319 kx nlist=conftest.nm
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
319 kx (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && test -s "$nlist"; then
319 kx # Try sorting and uniquifying the output.
319 kx if sort "$nlist" | uniq > "$nlist"T; then
319 kx mv -f "$nlist"T "$nlist"
319 kx else
319 kx rm -f "$nlist"T
319 kx fi
319 kx
319 kx # Make sure that we snagged all the symbols we need.
319 kx if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
319 kx if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
319 kx cat <<_LT_EOF > conftest.$ac_ext
319 kx /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
319 kx #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
319 kx /* DATA imports from DLLs on WIN32 can't be const, because runtime
319 kx relocations are performed -- see ld's documentation on pseudo-relocs. */
319 kx # define LT_DLSYM_CONST
319 kx #elif defined __osf__
319 kx /* This system does not cope well with relocations in const data. */
319 kx # define LT_DLSYM_CONST
319 kx #else
319 kx # define LT_DLSYM_CONST const
319 kx #endif
319 kx
319 kx #ifdef __cplusplus
319 kx extern "C" {
319 kx #endif
319 kx
319 kx _LT_EOF
319 kx # Now generate the symbol file.
319 kx eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
319 kx
319 kx cat <<_LT_EOF >> conftest.$ac_ext
319 kx
319 kx /* The mapping between symbol names and symbols. */
319 kx LT_DLSYM_CONST struct {
319 kx const char *name;
319 kx void *address;
319 kx }
319 kx lt__PROGRAM__LTX_preloaded_symbols[] =
319 kx {
319 kx { "@PROGRAM@", (void *) 0 },
319 kx _LT_EOF
319 kx $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
319 kx cat <<\_LT_EOF >> conftest.$ac_ext
319 kx {0, (void *) 0}
319 kx };
319 kx
319 kx /* This works around a problem in FreeBSD linker */
319 kx #ifdef FREEBSD_WORKAROUND
319 kx static const void *lt_preloaded_setup() {
319 kx return lt__PROGRAM__LTX_preloaded_symbols;
319 kx }
319 kx #endif
319 kx
319 kx #ifdef __cplusplus
319 kx }
319 kx #endif
319 kx _LT_EOF
319 kx # Now try linking the two files.
319 kx mv conftest.$ac_objext conftstm.$ac_objext
319 kx lt_globsym_save_LIBS=$LIBS
319 kx lt_globsym_save_CFLAGS=$CFLAGS
319 kx LIBS=conftstm.$ac_objext
319 kx CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
319 kx (eval $ac_link) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
319 kx pipe_works=yes
319 kx fi
319 kx LIBS=$lt_globsym_save_LIBS
319 kx CFLAGS=$lt_globsym_save_CFLAGS
319 kx else
319 kx echo "cannot find nm_test_func in $nlist" >&5
319 kx fi
319 kx else
319 kx echo "cannot find nm_test_var in $nlist" >&5
319 kx fi
319 kx else
319 kx echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
319 kx fi
319 kx else
319 kx echo "$progname: failed program was:" >&5
319 kx cat conftest.$ac_ext >&5
319 kx fi
319 kx rm -rf conftest* conftst*
319 kx
319 kx # Do not use the global_symbol_pipe unless it works.
319 kx if test yes = "$pipe_works"; then
319 kx break
319 kx else
319 kx lt_cv_sys_global_symbol_pipe=
319 kx fi
319 kx done
319 kx
319 kx fi
319 kx
319 kx if test -z "$lt_cv_sys_global_symbol_pipe"; then
319 kx lt_cv_sys_global_symbol_to_cdecl=
319 kx fi
319 kx if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
319 kx printf "%s\n" "failed" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
319 kx printf "%s\n" "ok" >&6; }
319 kx fi
319 kx
319 kx # Response file support.
319 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
319 kx nm_file_list_spec='@'
319 kx elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
319 kx nm_file_list_spec='@'
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
319 kx printf %s "checking for sysroot... " >&6; }
319 kx
319 kx # Check whether --with-sysroot was given.
319 kx if test ${with_sysroot+y}
319 kx then :
319 kx withval=$with_sysroot;
319 kx else $as_nop
319 kx with_sysroot=no
319 kx fi
319 kx
319 kx
319 kx lt_sysroot=
319 kx case $with_sysroot in #(
319 kx yes)
319 kx if test yes = "$GCC"; then
319 kx lt_sysroot=`$CC --print-sysroot 2>/dev/null`
319 kx fi
319 kx ;; #(
319 kx /*)
319 kx lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
319 kx ;; #(
319 kx no|'')
319 kx ;; #(
319 kx *)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
319 kx printf "%s\n" "$with_sysroot" >&6; }
319 kx as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
319 kx ;;
319 kx esac
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
319 kx printf "%s\n" "${lt_sysroot:-no}" >&6; }
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
319 kx printf %s "checking for a working dd... " >&6; }
319 kx if test ${ac_cv_path_lt_DD+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx printf 0123456789abcdef0123456789abcdef >conftest.i
319 kx cat conftest.i conftest.i >conftest2.i
319 kx : ${lt_DD:=$DD}
319 kx if test -z "$lt_DD"; then
319 kx ac_path_lt_DD_found=false
319 kx # Loop through the user's path and test for each of PROGNAME-LIST
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_prog in dd
319 kx do
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
319 kx as_fn_executable_p "$ac_path_lt_DD" || continue
319 kx if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
319 kx cmp -s conftest.i conftest.out \
319 kx && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
319 kx fi
319 kx $ac_path_lt_DD_found && break 3
319 kx done
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx if test -z "$ac_cv_path_lt_DD"; then
319 kx :
319 kx fi
319 kx else
319 kx ac_cv_path_lt_DD=$lt_DD
319 kx fi
319 kx
319 kx rm -f conftest.i conftest2.i conftest.out
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
319 kx printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
319 kx printf %s "checking how to truncate binary pipes... " >&6; }
319 kx if test ${lt_cv_truncate_bin+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx printf 0123456789abcdef0123456789abcdef >conftest.i
319 kx cat conftest.i conftest.i >conftest2.i
319 kx lt_cv_truncate_bin=
319 kx if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
319 kx cmp -s conftest.i conftest.out \
319 kx && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
319 kx fi
319 kx rm -f conftest.i conftest2.i conftest.out
319 kx test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
319 kx printf "%s\n" "$lt_cv_truncate_bin" >&6; }
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
319 kx func_cc_basename ()
319 kx {
319 kx for cc_temp in $*""; do
319 kx case $cc_temp in
319 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
319 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
319 kx \-*) ;;
319 kx *) break;;
319 kx esac
319 kx done
319 kx func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
319 kx }
319 kx
319 kx # Check whether --enable-libtool-lock was given.
319 kx if test ${enable_libtool_lock+y}
319 kx then :
319 kx enableval=$enable_libtool_lock;
319 kx fi
319 kx
319 kx test no = "$enable_libtool_lock" || enable_libtool_lock=yes
319 kx
319 kx # Some flags need to be propagated to the compiler or linker for good
319 kx # libtool support.
319 kx case $host in
319 kx ia64-*-hpux*)
319 kx # Find out what ABI is being produced by ac_compile, and set mode
319 kx # options accordingly.
319 kx echo 'int i;' > conftest.$ac_ext
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; then
319 kx case `$FILECMD conftest.$ac_objext` in
319 kx *ELF-32*)
319 kx HPUX_IA64_MODE=32
319 kx ;;
319 kx *ELF-64*)
319 kx HPUX_IA64_MODE=64
319 kx ;;
319 kx esac
319 kx fi
319 kx rm -rf conftest*
319 kx ;;
319 kx *-*-irix6*)
319 kx # Find out what ABI is being produced by ac_compile, and set linker
319 kx # options accordingly.
319 kx echo '#line '$LINENO' "configure"' > conftest.$ac_ext
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; then
319 kx if test yes = "$lt_cv_prog_gnu_ld"; then
319 kx case `$FILECMD conftest.$ac_objext` in
319 kx *32-bit*)
319 kx LD="${LD-ld} -melf32bsmip"
319 kx ;;
319 kx *N32*)
319 kx LD="${LD-ld} -melf32bmipn32"
319 kx ;;
319 kx *64-bit*)
319 kx LD="${LD-ld} -melf64bmip"
319 kx ;;
319 kx esac
319 kx else
319 kx case `$FILECMD conftest.$ac_objext` in
319 kx *32-bit*)
319 kx LD="${LD-ld} -32"
319 kx ;;
319 kx *N32*)
319 kx LD="${LD-ld} -n32"
319 kx ;;
319 kx *64-bit*)
319 kx LD="${LD-ld} -64"
319 kx ;;
319 kx esac
319 kx fi
319 kx fi
319 kx rm -rf conftest*
319 kx ;;
319 kx
319 kx mips64*-*linux*)
319 kx # Find out what ABI is being produced by ac_compile, and set linker
319 kx # options accordingly.
319 kx echo '#line '$LINENO' "configure"' > conftest.$ac_ext
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; then
319 kx emul=elf
319 kx case `$FILECMD conftest.$ac_objext` in
319 kx *32-bit*)
319 kx emul="${emul}32"
319 kx ;;
319 kx *64-bit*)
319 kx emul="${emul}64"
319 kx ;;
319 kx esac
319 kx case `$FILECMD conftest.$ac_objext` in
319 kx *MSB*)
319 kx emul="${emul}btsmip"
319 kx ;;
319 kx *LSB*)
319 kx emul="${emul}ltsmip"
319 kx ;;
319 kx esac
319 kx case `$FILECMD conftest.$ac_objext` in
319 kx *N32*)
319 kx emul="${emul}n32"
319 kx ;;
319 kx esac
319 kx LD="${LD-ld} -m $emul"
319 kx fi
319 kx rm -rf conftest*
319 kx ;;
319 kx
319 kx x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
319 kx s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
319 kx # Find out what ABI is being produced by ac_compile, and set linker
319 kx # options accordingly. Note that the listed cases only cover the
319 kx # situations where additional linker options are needed (such as when
319 kx # doing 32-bit compilation for a host where ld defaults to 64-bit, or
319 kx # vice versa); the common cases where no linker options are needed do
319 kx # not appear in the list.
319 kx echo 'int i;' > conftest.$ac_ext
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; then
319 kx case `$FILECMD conftest.o` in
319 kx *32-bit*)
319 kx case $host in
319 kx x86_64-*kfreebsd*-gnu)
319 kx LD="${LD-ld} -m elf_i386_fbsd"
319 kx ;;
319 kx x86_64-*linux*)
319 kx case `$FILECMD conftest.o` in
319 kx *x86-64*)
319 kx LD="${LD-ld} -m elf32_x86_64"
319 kx ;;
319 kx *)
319 kx LD="${LD-ld} -m elf_i386"
319 kx ;;
319 kx esac
319 kx ;;
319 kx powerpc64le-*linux*)
319 kx LD="${LD-ld} -m elf32lppclinux"
319 kx ;;
319 kx powerpc64-*linux*)
319 kx LD="${LD-ld} -m elf32ppclinux"
319 kx ;;
319 kx s390x-*linux*)
319 kx LD="${LD-ld} -m elf_s390"
319 kx ;;
319 kx sparc64-*linux*)
319 kx LD="${LD-ld} -m elf32_sparc"
319 kx ;;
319 kx esac
319 kx ;;
319 kx *64-bit*)
319 kx case $host in
319 kx x86_64-*kfreebsd*-gnu)
319 kx LD="${LD-ld} -m elf_x86_64_fbsd"
319 kx ;;
319 kx x86_64-*linux*)
319 kx LD="${LD-ld} -m elf_x86_64"
319 kx ;;
319 kx powerpcle-*linux*)
319 kx LD="${LD-ld} -m elf64lppc"
319 kx ;;
319 kx powerpc-*linux*)
319 kx LD="${LD-ld} -m elf64ppc"
319 kx ;;
319 kx s390*-*linux*|s390*-*tpf*)
319 kx LD="${LD-ld} -m elf64_s390"
319 kx ;;
319 kx sparc*-*linux*)
319 kx LD="${LD-ld} -m elf64_sparc"
319 kx ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx fi
319 kx rm -rf conftest*
319 kx ;;
319 kx
319 kx *-*-sco3.2v5*)
319 kx # On SCO OpenServer 5, we need -belf to get full-featured binaries.
319 kx SAVE_CFLAGS=$CFLAGS
319 kx CFLAGS="$CFLAGS -belf"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
319 kx printf %s "checking whether the C compiler needs -belf... " >&6; }
319 kx if test ${lt_cv_cc_needs_belf+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx lt_cv_cc_needs_belf=yes
319 kx else $as_nop
319 kx lt_cv_cc_needs_belf=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
319 kx printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
319 kx if test yes != "$lt_cv_cc_needs_belf"; then
319 kx # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
319 kx CFLAGS=$SAVE_CFLAGS
319 kx fi
319 kx ;;
319 kx *-*solaris*)
319 kx # Find out what ABI is being produced by ac_compile, and set linker
319 kx # options accordingly.
319 kx echo 'int i;' > conftest.$ac_ext
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; then
319 kx case `$FILECMD conftest.o` in
319 kx *64-bit*)
319 kx case $lt_cv_prog_gnu_ld in
319 kx yes*)
319 kx case $host in
319 kx i?86-*-solaris*|x86_64-*-solaris*)
319 kx LD="${LD-ld} -m elf_x86_64"
319 kx ;;
319 kx sparc*-*-solaris*)
319 kx LD="${LD-ld} -m elf64_sparc"
319 kx ;;
319 kx esac
319 kx # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
319 kx if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
319 kx LD=${LD-ld}_sol2
319 kx fi
319 kx ;;
319 kx *)
319 kx if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
319 kx LD="${LD-ld} -64"
319 kx fi
319 kx ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx fi
319 kx rm -rf conftest*
319 kx ;;
319 kx esac
319 kx
319 kx need_locks=$enable_libtool_lock
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}mt; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_MANIFEST_TOOL+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$MANIFEST_TOOL"; then
319 kx ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
319 kx if test -n "$MANIFEST_TOOL"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
319 kx printf "%s\n" "$MANIFEST_TOOL" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
319 kx ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
319 kx # Extract the first word of "mt", so it can be a program name with args.
319 kx set dummy mt; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_MANIFEST_TOOL"; then
319 kx ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
319 kx if test -n "$ac_ct_MANIFEST_TOOL"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
319 kx printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_MANIFEST_TOOL" = x; then
319 kx MANIFEST_TOOL=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
319 kx fi
319 kx else
319 kx MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
319 kx fi
319 kx
319 kx test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
319 kx printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
319 kx if test ${lt_cv_path_mainfest_tool+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_path_mainfest_tool=no
319 kx echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
319 kx $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
319 kx cat conftest.err >&5
319 kx if $GREP 'Manifest Tool' conftest.out > /dev/null; then
319 kx lt_cv_path_mainfest_tool=yes
319 kx fi
319 kx rm -f conftest*
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
319 kx printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
319 kx if test yes != "$lt_cv_path_mainfest_tool"; then
319 kx MANIFEST_TOOL=:
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx case $host_os in
319 kx rhapsody* | darwin*)
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_DSYMUTIL+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$DSYMUTIL"; then
319 kx ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx DSYMUTIL=$ac_cv_prog_DSYMUTIL
319 kx if test -n "$DSYMUTIL"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
319 kx printf "%s\n" "$DSYMUTIL" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_DSYMUTIL"; then
319 kx ac_ct_DSYMUTIL=$DSYMUTIL
319 kx # Extract the first word of "dsymutil", so it can be a program name with args.
319 kx set dummy dsymutil; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_DSYMUTIL"; then
319 kx ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
319 kx if test -n "$ac_ct_DSYMUTIL"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
319 kx printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_DSYMUTIL" = x; then
319 kx DSYMUTIL=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx DSYMUTIL=$ac_ct_DSYMUTIL
319 kx fi
319 kx else
319 kx DSYMUTIL="$ac_cv_prog_DSYMUTIL"
319 kx fi
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}nmedit; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_NMEDIT+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$NMEDIT"; then
319 kx ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx NMEDIT=$ac_cv_prog_NMEDIT
319 kx if test -n "$NMEDIT"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
319 kx printf "%s\n" "$NMEDIT" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_NMEDIT"; then
319 kx ac_ct_NMEDIT=$NMEDIT
319 kx # Extract the first word of "nmedit", so it can be a program name with args.
319 kx set dummy nmedit; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_NMEDIT+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_NMEDIT"; then
319 kx ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_NMEDIT="nmedit"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
319 kx if test -n "$ac_ct_NMEDIT"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
319 kx printf "%s\n" "$ac_ct_NMEDIT" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_NMEDIT" = x; then
319 kx NMEDIT=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx NMEDIT=$ac_ct_NMEDIT
319 kx fi
319 kx else
319 kx NMEDIT="$ac_cv_prog_NMEDIT"
319 kx fi
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}lipo; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_LIPO+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$LIPO"; then
319 kx ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx LIPO=$ac_cv_prog_LIPO
319 kx if test -n "$LIPO"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
319 kx printf "%s\n" "$LIPO" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_LIPO"; then
319 kx ac_ct_LIPO=$LIPO
319 kx # Extract the first word of "lipo", so it can be a program name with args.
319 kx set dummy lipo; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_LIPO+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_LIPO"; then
319 kx ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_LIPO="lipo"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
319 kx if test -n "$ac_ct_LIPO"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
319 kx printf "%s\n" "$ac_ct_LIPO" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_LIPO" = x; then
319 kx LIPO=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx LIPO=$ac_ct_LIPO
319 kx fi
319 kx else
319 kx LIPO="$ac_cv_prog_LIPO"
319 kx fi
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}otool; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_OTOOL+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$OTOOL"; then
319 kx ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx OTOOL=$ac_cv_prog_OTOOL
319 kx if test -n "$OTOOL"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
319 kx printf "%s\n" "$OTOOL" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_OTOOL"; then
319 kx ac_ct_OTOOL=$OTOOL
319 kx # Extract the first word of "otool", so it can be a program name with args.
319 kx set dummy otool; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_OTOOL+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_OTOOL"; then
319 kx ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_OTOOL="otool"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
319 kx if test -n "$ac_ct_OTOOL"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
319 kx printf "%s\n" "$ac_ct_OTOOL" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_OTOOL" = x; then
319 kx OTOOL=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx OTOOL=$ac_ct_OTOOL
319 kx fi
319 kx else
319 kx OTOOL="$ac_cv_prog_OTOOL"
319 kx fi
319 kx
319 kx if test -n "$ac_tool_prefix"; then
319 kx # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
319 kx set dummy ${ac_tool_prefix}otool64; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_OTOOL64+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$OTOOL64"; then
319 kx ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx OTOOL64=$ac_cv_prog_OTOOL64
319 kx if test -n "$OTOOL64"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
319 kx printf "%s\n" "$OTOOL64" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx fi
319 kx if test -z "$ac_cv_prog_OTOOL64"; then
319 kx ac_ct_OTOOL64=$OTOOL64
319 kx # Extract the first word of "otool64", so it can be a program name with args.
319 kx set dummy otool64; ac_word=$2
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
319 kx printf %s "checking for $ac_word... " >&6; }
319 kx if test ${ac_cv_prog_ac_ct_OTOOL64+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -n "$ac_ct_OTOOL64"; then
319 kx ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
319 kx else
319 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx for ac_exec_ext in '' $ac_executable_extensions; do
319 kx if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
319 kx ac_cv_prog_ac_ct_OTOOL64="otool64"
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx fi
319 kx fi
319 kx ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
319 kx if test -n "$ac_ct_OTOOL64"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
319 kx printf "%s\n" "$ac_ct_OTOOL64" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx if test "x$ac_ct_OTOOL64" = x; then
319 kx OTOOL64=":"
319 kx else
319 kx case $cross_compiling:$ac_tool_warned in
319 kx yes:)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
319 kx printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
319 kx ac_tool_warned=yes ;;
319 kx esac
319 kx OTOOL64=$ac_ct_OTOOL64
319 kx fi
319 kx else
319 kx OTOOL64="$ac_cv_prog_OTOOL64"
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
319 kx printf %s "checking for -single_module linker flag... " >&6; }
319 kx if test ${lt_cv_apple_cc_single_mod+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_apple_cc_single_mod=no
319 kx if test -z "$LT_MULTI_MODULE"; then
319 kx # By default we will add the -single_module flag. You can override
319 kx # by either setting the environment variable LT_MULTI_MODULE
319 kx # non-empty at configure time, or by adding -multi_module to the
319 kx # link flags.
319 kx rm -rf libconftest.dylib*
319 kx echo "int foo(void){return 1;}" > conftest.c
319 kx echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
319 kx -dynamiclib -Wl,-single_module conftest.c" >&5
319 kx $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
319 kx -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
319 kx _lt_result=$?
319 kx # If there is a non-empty error log, and "single_module"
319 kx # appears in it, assume the flag caused a linker warning
319 kx if test -s conftest.err && $GREP single_module conftest.err; then
319 kx cat conftest.err >&5
319 kx # Otherwise, if the output was created with a 0 exit code from
319 kx # the compiler, it worked.
319 kx elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
319 kx lt_cv_apple_cc_single_mod=yes
319 kx else
319 kx cat conftest.err >&5
319 kx fi
319 kx rm -rf libconftest.dylib*
319 kx rm -f conftest.*
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
319 kx printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
319 kx printf %s "checking for -exported_symbols_list linker flag... " >&6; }
319 kx if test ${lt_cv_ld_exported_symbols_list+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_ld_exported_symbols_list=no
319 kx save_LDFLAGS=$LDFLAGS
319 kx echo "_main" > conftest.sym
319 kx LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx lt_cv_ld_exported_symbols_list=yes
319 kx else $as_nop
319 kx lt_cv_ld_exported_symbols_list=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LDFLAGS=$save_LDFLAGS
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
319 kx printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
319 kx printf %s "checking for -force_load linker flag... " >&6; }
319 kx if test ${lt_cv_ld_force_load+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_ld_force_load=no
319 kx cat > conftest.c << _LT_EOF
319 kx int forced_loaded() { return 2;}
319 kx _LT_EOF
319 kx echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
319 kx $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
319 kx echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
319 kx $AR $AR_FLAGS libconftest.a conftest.o 2>&5
319 kx echo "$RANLIB libconftest.a" >&5
319 kx $RANLIB libconftest.a 2>&5
319 kx cat > conftest.c << _LT_EOF
319 kx int main() { return 0;}
319 kx _LT_EOF
319 kx echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
319 kx $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
319 kx _lt_result=$?
319 kx if test -s conftest.err && $GREP force_load conftest.err; then
319 kx cat conftest.err >&5
319 kx elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
319 kx lt_cv_ld_force_load=yes
319 kx else
319 kx cat conftest.err >&5
319 kx fi
319 kx rm -f conftest.err libconftest.a conftest conftest.c
319 kx rm -rf conftest.dSYM
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
319 kx printf "%s\n" "$lt_cv_ld_force_load" >&6; }
319 kx case $host_os in
319 kx rhapsody* | darwin1.[012])
319 kx _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
319 kx darwin1.*)
319 kx _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
319 kx darwin*)
319 kx case $MACOSX_DEPLOYMENT_TARGET,$host in
319 kx 10.[012],*|,*powerpc*-darwin[5-8]*)
319 kx _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
319 kx *)
319 kx _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx if test yes = "$lt_cv_apple_cc_single_mod"; then
319 kx _lt_dar_single_mod='$single_module'
319 kx fi
319 kx if test yes = "$lt_cv_ld_exported_symbols_list"; then
319 kx _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
319 kx else
319 kx _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
319 kx fi
319 kx if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
319 kx _lt_dsymutil='~$DSYMUTIL $lib || :'
319 kx else
319 kx _lt_dsymutil=
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx # func_munge_path_list VARIABLE PATH
319 kx # -----------------------------------
319 kx # VARIABLE is name of variable containing _space_ separated list of
319 kx # directories to be munged by the contents of PATH, which is string
319 kx # having a format:
319 kx # "DIR[:DIR]:"
319 kx # string "DIR[ DIR]" will be prepended to VARIABLE
319 kx # ":DIR[:DIR]"
319 kx # string "DIR[ DIR]" will be appended to VARIABLE
319 kx # "DIRP[:DIRP]::[DIRA:]DIRA"
319 kx # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
319 kx # "DIRA[ DIRA]" will be appended to VARIABLE
319 kx # "DIR[:DIR]"
319 kx # VARIABLE will be replaced by "DIR[ DIR]"
319 kx func_munge_path_list ()
319 kx {
319 kx case x$2 in
319 kx x)
319 kx ;;
319 kx *:)
319 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
319 kx ;;
319 kx x:*)
319 kx eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
319 kx ;;
319 kx *::*)
319 kx eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
319 kx eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
319 kx ;;
319 kx *)
319 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
319 kx ;;
319 kx esac
319 kx }
319 kx
319 kx ac_header= ac_cache=
319 kx for ac_item in $ac_header_c_list
319 kx do
319 kx if test $ac_cache; then
319 kx ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
319 kx if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
319 kx printf "%s\n" "#define $ac_item 1" >> confdefs.h
319 kx fi
319 kx ac_header= ac_cache=
319 kx elif test $ac_header; then
319 kx ac_cache=$ac_item
319 kx else
319 kx ac_header=$ac_item
319 kx fi
319 kx done
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
319 kx then :
319 kx
319 kx printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
319 kx
319 kx fi
319 kx ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
319 kx "
319 kx if test "x$ac_cv_header_dlfcn_h" = xyes
319 kx then :
319 kx printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
319 kx
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx func_stripname_cnf ()
319 kx {
319 kx case $2 in
319 kx .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
319 kx *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
319 kx esac
319 kx } # func_stripname_cnf
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Set options
319 kx
319 kx
319 kx
319 kx enable_dlopen=no
319 kx
319 kx
319 kx enable_win32_dll=no
319 kx
319 kx
319 kx # Check whether --enable-shared was given.
319 kx if test ${enable_shared+y}
319 kx then :
319 kx enableval=$enable_shared; p=${PACKAGE-default}
319 kx case $enableval in
319 kx yes) enable_shared=yes ;;
319 kx no) enable_shared=no ;;
319 kx *)
319 kx enable_shared=no
319 kx # Look at the argument we got. We use all the common list separators.
319 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
319 kx for pkg in $enableval; do
319 kx IFS=$lt_save_ifs
319 kx if test "X$pkg" = "X$p"; then
319 kx enable_shared=yes
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx ;;
319 kx esac
319 kx else $as_nop
319 kx enable_shared=yes
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Check whether --enable-static was given.
319 kx if test ${enable_static+y}
319 kx then :
319 kx enableval=$enable_static; p=${PACKAGE-default}
319 kx case $enableval in
319 kx yes) enable_static=yes ;;
319 kx no) enable_static=no ;;
319 kx *)
319 kx enable_static=no
319 kx # Look at the argument we got. We use all the common list separators.
319 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
319 kx for pkg in $enableval; do
319 kx IFS=$lt_save_ifs
319 kx if test "X$pkg" = "X$p"; then
319 kx enable_static=yes
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx ;;
319 kx esac
319 kx else $as_nop
319 kx enable_static=yes
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Check whether --with-pic was given.
319 kx if test ${with_pic+y}
319 kx then :
319 kx withval=$with_pic; lt_p=${PACKAGE-default}
319 kx case $withval in
319 kx yes|no) pic_mode=$withval ;;
319 kx *)
319 kx pic_mode=default
319 kx # Look at the argument we got. We use all the common list separators.
319 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
319 kx for lt_pkg in $withval; do
319 kx IFS=$lt_save_ifs
319 kx if test "X$lt_pkg" = "X$lt_p"; then
319 kx pic_mode=yes
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx ;;
319 kx esac
319 kx else $as_nop
319 kx pic_mode=default
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Check whether --enable-fast-install was given.
319 kx if test ${enable_fast_install+y}
319 kx then :
319 kx enableval=$enable_fast_install; p=${PACKAGE-default}
319 kx case $enableval in
319 kx yes) enable_fast_install=yes ;;
319 kx no) enable_fast_install=no ;;
319 kx *)
319 kx enable_fast_install=no
319 kx # Look at the argument we got. We use all the common list separators.
319 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
319 kx for pkg in $enableval; do
319 kx IFS=$lt_save_ifs
319 kx if test "X$pkg" = "X$p"; then
319 kx enable_fast_install=yes
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx ;;
319 kx esac
319 kx else $as_nop
319 kx enable_fast_install=yes
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx shared_archive_member_spec=
319 kx case $host,$enable_shared in
319 kx power*-*-aix[5-9]*,yes)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
319 kx printf %s "checking which variant of shared library versioning to provide... " >&6; }
319 kx
319 kx # Check whether --with-aix-soname was given.
319 kx if test ${with_aix_soname+y}
319 kx then :
319 kx withval=$with_aix_soname; case $withval in
319 kx aix|svr4|both)
319 kx ;;
319 kx *)
319 kx as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
319 kx ;;
319 kx esac
319 kx lt_cv_with_aix_soname=$with_aix_soname
319 kx else $as_nop
319 kx if test ${lt_cv_with_aix_soname+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_with_aix_soname=aix
319 kx fi
319 kx
319 kx with_aix_soname=$lt_cv_with_aix_soname
319 kx fi
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
319 kx printf "%s\n" "$with_aix_soname" >&6; }
319 kx if test aix != "$with_aix_soname"; then
319 kx # For the AIX way of multilib, we name the shared archive member
319 kx # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
319 kx # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
319 kx # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
319 kx # the AIX toolchain works better with OBJECT_MODE set (default 32).
319 kx if test 64 = "${OBJECT_MODE-32}"; then
319 kx shared_archive_member_spec=shr_64
319 kx else
319 kx shared_archive_member_spec=shr
319 kx fi
319 kx fi
319 kx ;;
319 kx *)
319 kx with_aix_soname=aix
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # This can be used to rebuild libtool when needed
319 kx LIBTOOL_DEPS=$ltmain
319 kx
319 kx # Always use our own libtool.
319 kx LIBTOOL='$(SHELL) $(top_builddir)/libtool'
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx test -z "$LN_S" && LN_S="ln -s"
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test -n "${ZSH_VERSION+set}"; then
319 kx setopt NO_GLOB_SUBST
319 kx fi
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
319 kx printf %s "checking for objdir... " >&6; }
319 kx if test ${lt_cv_objdir+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx rm -f .libs 2>/dev/null
319 kx mkdir .libs 2>/dev/null
319 kx if test -d .libs; then
319 kx lt_cv_objdir=.libs
319 kx else
319 kx # MS-DOS does not allow filenames that begin with a dot.
319 kx lt_cv_objdir=_libs
319 kx fi
319 kx rmdir .libs 2>/dev/null
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
319 kx printf "%s\n" "$lt_cv_objdir" >&6; }
319 kx objdir=$lt_cv_objdir
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
319 kx
319 kx
319 kx
319 kx
319 kx case $host_os in
319 kx aix3*)
319 kx # AIX sometimes has problems with the GCC collect2 program. For some
319 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
319 kx # vanish in a puff of smoke.
319 kx if test set != "${COLLECT_NAMES+set}"; then
319 kx COLLECT_NAMES=
319 kx export COLLECT_NAMES
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx # Global variables:
319 kx ofile=libtool
319 kx can_build_shared=yes
319 kx
319 kx # All known linkers require a '.a' archive for static linking (except MSVC and
319 kx # ICC, which need '.lib').
319 kx libext=a
319 kx
319 kx with_gnu_ld=$lt_cv_prog_gnu_ld
319 kx
319 kx old_CC=$CC
319 kx old_CFLAGS=$CFLAGS
319 kx
319 kx # Set sane defaults for various variables
319 kx test -z "$CC" && CC=cc
319 kx test -z "$LTCC" && LTCC=$CC
319 kx test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
319 kx test -z "$LD" && LD=ld
319 kx test -z "$ac_objext" && ac_objext=o
319 kx
319 kx func_cc_basename $compiler
319 kx cc_basename=$func_cc_basename_result
319 kx
319 kx
319 kx # Only perform the check for file, if the check method requires it
319 kx test -z "$MAGIC_CMD" && MAGIC_CMD=file
319 kx case $deplibs_check_method in
319 kx file_magic*)
319 kx if test "$file_magic_cmd" = '$MAGIC_CMD'; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
319 kx printf %s "checking for ${ac_tool_prefix}file... " >&6; }
319 kx if test ${lt_cv_path_MAGIC_CMD+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx case $MAGIC_CMD in
319 kx [\\/*] | ?:[\\/]*)
319 kx lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
319 kx ;;
319 kx *)
319 kx lt_save_MAGIC_CMD=$MAGIC_CMD
319 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
319 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
319 kx for ac_dir in $ac_dummy; do
319 kx IFS=$lt_save_ifs
319 kx test -z "$ac_dir" && ac_dir=.
319 kx if test -f "$ac_dir/${ac_tool_prefix}file"; then
319 kx lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
319 kx if test -n "$file_magic_test_file"; then
319 kx case $deplibs_check_method in
319 kx "file_magic "*)
319 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
319 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
319 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
319 kx $EGREP "$file_magic_regex" > /dev/null; then
319 kx :
319 kx else
319 kx cat <<_LT_EOF 1>&2
319 kx
319 kx *** Warning: the command libtool uses to detect shared libraries,
319 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
319 kx *** The result is that libtool may fail to recognize shared libraries
319 kx *** as such. This will affect the creation of libtool libraries that
319 kx *** depend on shared libraries, but programs linked with such libtool
319 kx *** libraries will work regardless of this problem. Nevertheless, you
319 kx *** may want to report the problem to your system manager and/or to
319 kx *** bug-libtool@gnu.org
319 kx
319 kx _LT_EOF
319 kx fi ;;
319 kx esac
319 kx fi
319 kx break
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx MAGIC_CMD=$lt_save_MAGIC_CMD
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
319 kx if test -n "$MAGIC_CMD"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
319 kx printf "%s\n" "$MAGIC_CMD" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test -z "$lt_cv_path_MAGIC_CMD"; then
319 kx if test -n "$ac_tool_prefix"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
319 kx printf %s "checking for file... " >&6; }
319 kx if test ${lt_cv_path_MAGIC_CMD+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx case $MAGIC_CMD in
319 kx [\\/*] | ?:[\\/]*)
319 kx lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
319 kx ;;
319 kx *)
319 kx lt_save_MAGIC_CMD=$MAGIC_CMD
319 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
319 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
319 kx for ac_dir in $ac_dummy; do
319 kx IFS=$lt_save_ifs
319 kx test -z "$ac_dir" && ac_dir=.
319 kx if test -f "$ac_dir/file"; then
319 kx lt_cv_path_MAGIC_CMD=$ac_dir/"file"
319 kx if test -n "$file_magic_test_file"; then
319 kx case $deplibs_check_method in
319 kx "file_magic "*)
319 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
319 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
319 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
319 kx $EGREP "$file_magic_regex" > /dev/null; then
319 kx :
319 kx else
319 kx cat <<_LT_EOF 1>&2
319 kx
319 kx *** Warning: the command libtool uses to detect shared libraries,
319 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
319 kx *** The result is that libtool may fail to recognize shared libraries
319 kx *** as such. This will affect the creation of libtool libraries that
319 kx *** depend on shared libraries, but programs linked with such libtool
319 kx *** libraries will work regardless of this problem. Nevertheless, you
319 kx *** may want to report the problem to your system manager and/or to
319 kx *** bug-libtool@gnu.org
319 kx
319 kx _LT_EOF
319 kx fi ;;
319 kx esac
319 kx fi
319 kx break
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx MAGIC_CMD=$lt_save_MAGIC_CMD
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
319 kx if test -n "$MAGIC_CMD"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
319 kx printf "%s\n" "$MAGIC_CMD" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx
319 kx
319 kx else
319 kx MAGIC_CMD=:
319 kx fi
319 kx fi
319 kx
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx # Use C for the default configuration in the libtool script
319 kx
319 kx lt_save_CC=$CC
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx
319 kx # Source file extension for C test sources.
319 kx ac_ext=c
319 kx
319 kx # Object file extension for compiled C test sources.
319 kx objext=o
319 kx objext=$objext
319 kx
319 kx # Code to be used in simple compile tests
319 kx lt_simple_compile_test_code="int some_variable = 0;"
319 kx
319 kx # Code to be used in simple link tests
319 kx lt_simple_link_test_code='int main(){return(0);}'
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # If no C compiler was specified, use CC.
319 kx LTCC=${LTCC-"$CC"}
319 kx
319 kx # If no C compiler flags were specified, use CFLAGS.
319 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
319 kx
319 kx # Allow CC to be a program name with arguments.
319 kx compiler=$CC
319 kx
319 kx # Save the default compiler, since it gets overwritten when the other
319 kx # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
319 kx compiler_DEFAULT=$CC
319 kx
319 kx # save warnings/boilerplate of simple test code
319 kx ac_outfile=conftest.$ac_objext
319 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
319 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
319 kx _lt_compiler_boilerplate=`cat conftest.err`
319 kx $RM conftest*
319 kx
319 kx ac_outfile=conftest.$ac_objext
319 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
319 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
319 kx _lt_linker_boilerplate=`cat conftest.err`
319 kx $RM -r conftest*
319 kx
319 kx
319 kx ## CAVEAT EMPTOR:
319 kx ## There is no encapsulation within the following macros, do not change
319 kx ## the running order or otherwise move them around unless you know exactly
319 kx ## what you are doing...
319 kx if test -n "$compiler"; then
319 kx
319 kx lt_prog_compiler_no_builtin_flag=
319 kx
319 kx if test yes = "$GCC"; then
319 kx case $cc_basename in
319 kx nvcc*)
319 kx lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
319 kx *)
319 kx lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
319 kx esac
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
319 kx printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
319 kx if test ${lt_cv_prog_compiler_rtti_exceptions+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_rtti_exceptions=no
319 kx ac_outfile=conftest.$ac_objext
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
319 kx # Insert the option either (1) after the last *FLAGS variable, or
319 kx # (2) before a word containing "conftest.", or (3) at the end.
319 kx # Note that $ac_compile itself does not contain backslashes and begins
319 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
319 kx # The option is referenced via a variable to avoid confusing sed.
319 kx lt_compile=`echo "$ac_compile" | $SED \
319 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
319 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
319 kx -e 's:$: $lt_compiler_flag:'`
319 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
319 kx (eval "$lt_compile" 2>conftest.err)
319 kx ac_status=$?
319 kx cat conftest.err >&5
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx if (exit $ac_status) && test -s "$ac_outfile"; then
319 kx # The compiler can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings other than the usual output.
319 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
319 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
319 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_rtti_exceptions=yes
319 kx fi
319 kx fi
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
319 kx
319 kx if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
319 kx lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
319 kx else
319 kx :
319 kx fi
319 kx
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx lt_prog_compiler_wl=
319 kx lt_prog_compiler_pic=
319 kx lt_prog_compiler_static=
319 kx
319 kx
319 kx if test yes = "$GCC"; then
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_static='-static'
319 kx
319 kx case $host_os in
319 kx aix*)
319 kx # All AIX code is PIC.
319 kx if test ia64 = "$host_cpu"; then
319 kx # AIX 5 now supports IA64 processor
319 kx lt_prog_compiler_static='-Bstatic'
319 kx fi
319 kx lt_prog_compiler_pic='-fPIC'
319 kx ;;
319 kx
319 kx amigaos*)
319 kx case $host_cpu in
319 kx powerpc)
319 kx # see comment about AmigaOS4 .so support
319 kx lt_prog_compiler_pic='-fPIC'
319 kx ;;
319 kx m68k)
319 kx # FIXME: we need at least 68020 code to build shared libraries, but
319 kx # adding the '-m68020' flag to GCC prevents building anything better,
319 kx # like '-m68040'.
319 kx lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
319 kx # PIC is the default for these OSes.
319 kx ;;
319 kx
319 kx mingw* | cygwin* | pw32* | os2* | cegcc*)
319 kx # This hack is so that the source file can tell whether it is being
319 kx # built for inclusion in a dll (and should export symbols for example).
319 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
319 kx # (--disable-auto-import) libraries
319 kx lt_prog_compiler_pic='-DDLL_EXPORT'
319 kx case $host_os in
319 kx os2*)
319 kx lt_prog_compiler_static='$wl-static'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx darwin* | rhapsody*)
319 kx # PIC is the default on this platform
319 kx # Common symbols not allowed in MH_DYLIB files
319 kx lt_prog_compiler_pic='-fno-common'
319 kx ;;
319 kx
319 kx haiku*)
319 kx # PIC is the default for Haiku.
319 kx # The "-static" flag exists, but is broken.
319 kx lt_prog_compiler_static=
319 kx ;;
319 kx
319 kx hpux*)
319 kx # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
319 kx # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
319 kx # sets the default TLS model and affects inlining.
319 kx case $host_cpu in
319 kx hppa*64*)
319 kx # +Z the default
319 kx ;;
319 kx *)
319 kx lt_prog_compiler_pic='-fPIC'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx interix[3-9]*)
319 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
319 kx # Instead, we relocate shared libraries at runtime.
319 kx ;;
319 kx
319 kx msdosdjgpp*)
319 kx # Just because we use GCC doesn't mean we suddenly get shared libraries
319 kx # on systems that don't support them.
319 kx lt_prog_compiler_can_build_shared=no
319 kx enable_shared=no
319 kx ;;
319 kx
319 kx *nto* | *qnx*)
319 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
319 kx # it will coredump.
319 kx lt_prog_compiler_pic='-fPIC -shared'
319 kx ;;
319 kx
319 kx sysv4*MP*)
319 kx if test -d /usr/nec; then
319 kx lt_prog_compiler_pic=-Kconform_pic
319 kx fi
319 kx ;;
319 kx
319 kx *)
319 kx lt_prog_compiler_pic='-fPIC'
319 kx ;;
319 kx esac
319 kx
319 kx case $cc_basename in
319 kx nvcc*) # Cuda Compiler Driver 2.2
319 kx lt_prog_compiler_wl='-Xlinker '
319 kx if test -n "$lt_prog_compiler_pic"; then
319 kx lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
319 kx fi
319 kx ;;
319 kx esac
319 kx else
319 kx # PORTME Check for flag to pass linker flags through the system compiler.
319 kx case $host_os in
319 kx aix*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx if test ia64 = "$host_cpu"; then
319 kx # AIX 5 now supports IA64 processor
319 kx lt_prog_compiler_static='-Bstatic'
319 kx else
319 kx lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
319 kx fi
319 kx ;;
319 kx
319 kx darwin* | rhapsody*)
319 kx # PIC is the default on this platform
319 kx # Common symbols not allowed in MH_DYLIB files
319 kx lt_prog_compiler_pic='-fno-common'
319 kx case $cc_basename in
319 kx nagfor*)
319 kx # NAG Fortran compiler
319 kx lt_prog_compiler_wl='-Wl,-Wl,,'
319 kx lt_prog_compiler_pic='-PIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx mingw* | cygwin* | pw32* | os2* | cegcc*)
319 kx # This hack is so that the source file can tell whether it is being
319 kx # built for inclusion in a dll (and should export symbols for example).
319 kx lt_prog_compiler_pic='-DDLL_EXPORT'
319 kx case $host_os in
319 kx os2*)
319 kx lt_prog_compiler_static='$wl-static'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx hpux9* | hpux10* | hpux11*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
319 kx # not for PA HP-UX.
319 kx case $host_cpu in
319 kx hppa*64*|ia64*)
319 kx # +Z the default
319 kx ;;
319 kx *)
319 kx lt_prog_compiler_pic='+Z'
319 kx ;;
319 kx esac
319 kx # Is there a better lt_prog_compiler_static that works with the bundled CC?
319 kx lt_prog_compiler_static='$wl-a ${wl}archive'
319 kx ;;
319 kx
319 kx irix5* | irix6* | nonstopux*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx # PIC (with -KPIC) is the default.
319 kx lt_prog_compiler_static='-non_shared'
319 kx ;;
319 kx
319 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
319 kx case $cc_basename in
319 kx # old Intel for x86_64, which still supported -KPIC.
319 kx ecc*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-KPIC'
319 kx lt_prog_compiler_static='-static'
319 kx ;;
319 kx # icc used to be incompatible with GCC.
319 kx # ICC 10 doesn't accept -KPIC any more.
319 kx icc* | ifort*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-fPIC'
319 kx lt_prog_compiler_static='-static'
319 kx ;;
319 kx # Lahey Fortran 8.1.
319 kx lf95*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='--shared'
319 kx lt_prog_compiler_static='--static'
319 kx ;;
319 kx nagfor*)
319 kx # NAG Fortran compiler
319 kx lt_prog_compiler_wl='-Wl,-Wl,,'
319 kx lt_prog_compiler_pic='-PIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx tcc*)
319 kx # Fabrice Bellard et al's Tiny C Compiler
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-fPIC'
319 kx lt_prog_compiler_static='-static'
319 kx ;;
319 kx pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
319 kx # Portland Group compilers (*not* the Pentium gcc compiler,
319 kx # which looks to be a dead project)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-fpic'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx ccc*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx # All Alpha code is PIC.
319 kx lt_prog_compiler_static='-non_shared'
319 kx ;;
319 kx xl* | bgxl* | bgf* | mpixl*)
319 kx # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-qpic'
319 kx lt_prog_compiler_static='-qstaticlink'
319 kx ;;
319 kx *)
319 kx case `$CC -V 2>&1 | $SED 5q` in
319 kx *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
319 kx # Sun Fortran 8.3 passes all unrecognized flags to the linker
319 kx lt_prog_compiler_pic='-KPIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx lt_prog_compiler_wl=''
319 kx ;;
319 kx *Sun\ F* | *Sun*Fortran*)
319 kx lt_prog_compiler_pic='-KPIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx lt_prog_compiler_wl='-Qoption ld '
319 kx ;;
319 kx *Sun\ C*)
319 kx # Sun C 5.9
319 kx lt_prog_compiler_pic='-KPIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx lt_prog_compiler_wl='-Wl,'
319 kx ;;
319 kx *Intel*\ [CF]*Compiler*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-fPIC'
319 kx lt_prog_compiler_static='-static'
319 kx ;;
319 kx *Portland\ Group*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-fpic'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx newsos6)
319 kx lt_prog_compiler_pic='-KPIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx
319 kx *nto* | *qnx*)
319 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
319 kx # it will coredump.
319 kx lt_prog_compiler_pic='-fPIC -shared'
319 kx ;;
319 kx
319 kx osf3* | osf4* | osf5*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx # All OSF/1 code is PIC.
319 kx lt_prog_compiler_static='-non_shared'
319 kx ;;
319 kx
319 kx rdos*)
319 kx lt_prog_compiler_static='-non_shared'
319 kx ;;
319 kx
319 kx solaris*)
319 kx lt_prog_compiler_pic='-KPIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx case $cc_basename in
319 kx f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
319 kx lt_prog_compiler_wl='-Qoption ld ';;
319 kx *)
319 kx lt_prog_compiler_wl='-Wl,';;
319 kx esac
319 kx ;;
319 kx
319 kx sunos4*)
319 kx lt_prog_compiler_wl='-Qoption ld '
319 kx lt_prog_compiler_pic='-PIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx
319 kx sysv4 | sysv4.2uw2* | sysv4.3*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-KPIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx
319 kx sysv4*MP*)
319 kx if test -d /usr/nec; then
319 kx lt_prog_compiler_pic='-Kconform_pic'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx fi
319 kx ;;
319 kx
319 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_pic='-KPIC'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx
319 kx unicos*)
319 kx lt_prog_compiler_wl='-Wl,'
319 kx lt_prog_compiler_can_build_shared=no
319 kx ;;
319 kx
319 kx uts4*)
319 kx lt_prog_compiler_pic='-pic'
319 kx lt_prog_compiler_static='-Bstatic'
319 kx ;;
319 kx
319 kx *)
319 kx lt_prog_compiler_can_build_shared=no
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx case $host_os in
319 kx # For platforms that do not support PIC, -DPIC is meaningless:
319 kx *djgpp*)
319 kx lt_prog_compiler_pic=
319 kx ;;
319 kx *)
319 kx lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
319 kx ;;
319 kx esac
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
319 kx printf %s "checking for $compiler option to produce PIC... " >&6; }
319 kx if test ${lt_cv_prog_compiler_pic+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
319 kx lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
319 kx
319 kx #
319 kx # Check to make sure the PIC flag actually works.
319 kx #
319 kx if test -n "$lt_prog_compiler_pic"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
319 kx printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
319 kx if test ${lt_cv_prog_compiler_pic_works+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_pic_works=no
319 kx ac_outfile=conftest.$ac_objext
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
319 kx # Insert the option either (1) after the last *FLAGS variable, or
319 kx # (2) before a word containing "conftest.", or (3) at the end.
319 kx # Note that $ac_compile itself does not contain backslashes and begins
319 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
319 kx # The option is referenced via a variable to avoid confusing sed.
319 kx lt_compile=`echo "$ac_compile" | $SED \
319 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
319 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
319 kx -e 's:$: $lt_compiler_flag:'`
319 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
319 kx (eval "$lt_compile" 2>conftest.err)
319 kx ac_status=$?
319 kx cat conftest.err >&5
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx if (exit $ac_status) && test -s "$ac_outfile"; then
319 kx # The compiler can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings other than the usual output.
319 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
319 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
319 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_pic_works=yes
319 kx fi
319 kx fi
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
319 kx
319 kx if test yes = "$lt_cv_prog_compiler_pic_works"; then
319 kx case $lt_prog_compiler_pic in
319 kx "" | " "*) ;;
319 kx *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
319 kx esac
319 kx else
319 kx lt_prog_compiler_pic=
319 kx lt_prog_compiler_can_build_shared=no
319 kx fi
319 kx
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx #
319 kx # Check to make sure the static flag actually works.
319 kx #
319 kx wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
319 kx printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
319 kx if test ${lt_cv_prog_compiler_static_works+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_static_works=no
319 kx save_LDFLAGS=$LDFLAGS
319 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
319 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
319 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
319 kx # The linker can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings
319 kx if test -s conftest.err; then
319 kx # Append any errors to the config.log.
319 kx cat conftest.err 1>&5
319 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
319 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
319 kx if diff conftest.exp conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_static_works=yes
319 kx fi
319 kx else
319 kx lt_cv_prog_compiler_static_works=yes
319 kx fi
319 kx fi
319 kx $RM -r conftest*
319 kx LDFLAGS=$save_LDFLAGS
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
319 kx
319 kx if test yes = "$lt_cv_prog_compiler_static_works"; then
319 kx :
319 kx else
319 kx lt_prog_compiler_static=
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
319 kx printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
319 kx if test ${lt_cv_prog_compiler_c_o+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_c_o=no
319 kx $RM -r conftest 2>/dev/null
319 kx mkdir conftest
319 kx cd conftest
319 kx mkdir out
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx
319 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
319 kx # Insert the option either (1) after the last *FLAGS variable, or
319 kx # (2) before a word containing "conftest.", or (3) at the end.
319 kx # Note that $ac_compile itself does not contain backslashes and begins
319 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
319 kx lt_compile=`echo "$ac_compile" | $SED \
319 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
319 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
319 kx -e 's:$: $lt_compiler_flag:'`
319 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
319 kx (eval "$lt_compile" 2>out/conftest.err)
319 kx ac_status=$?
319 kx cat out/conftest.err >&5
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
319 kx then
319 kx # The compiler can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings
319 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
319 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
319 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_c_o=yes
319 kx fi
319 kx fi
319 kx chmod u+w . 2>&5
319 kx $RM conftest*
319 kx # SGI C++ compiler will create directory out/ii_files/ for
319 kx # template instantiation
319 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
319 kx $RM out/* && rmdir out
319 kx cd ..
319 kx $RM -r conftest
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
319 kx printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
319 kx if test ${lt_cv_prog_compiler_c_o+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_c_o=no
319 kx $RM -r conftest 2>/dev/null
319 kx mkdir conftest
319 kx cd conftest
319 kx mkdir out
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx
319 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
319 kx # Insert the option either (1) after the last *FLAGS variable, or
319 kx # (2) before a word containing "conftest.", or (3) at the end.
319 kx # Note that $ac_compile itself does not contain backslashes and begins
319 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
319 kx lt_compile=`echo "$ac_compile" | $SED \
319 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
319 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
319 kx -e 's:$: $lt_compiler_flag:'`
319 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
319 kx (eval "$lt_compile" 2>out/conftest.err)
319 kx ac_status=$?
319 kx cat out/conftest.err >&5
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
319 kx then
319 kx # The compiler can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings
319 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
319 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
319 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_c_o=yes
319 kx fi
319 kx fi
319 kx chmod u+w . 2>&5
319 kx $RM conftest*
319 kx # SGI C++ compiler will create directory out/ii_files/ for
319 kx # template instantiation
319 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
319 kx $RM out/* && rmdir out
319 kx cd ..
319 kx $RM -r conftest
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
319 kx
319 kx
319 kx
319 kx
319 kx hard_links=nottested
319 kx if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
319 kx # do not overwrite the value of need_locks provided by the user
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
319 kx printf %s "checking if we can lock with hard links... " >&6; }
319 kx hard_links=yes
319 kx $RM conftest*
319 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
319 kx touch conftest.a
319 kx ln conftest.a conftest.b 2>&5 || hard_links=no
319 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
319 kx printf "%s\n" "$hard_links" >&6; }
319 kx if test no = "$hard_links"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
319 kx printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
319 kx need_locks=warn
319 kx fi
319 kx else
319 kx need_locks=no
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
319 kx printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
319 kx
319 kx runpath_var=
319 kx allow_undefined_flag=
319 kx always_export_symbols=no
319 kx archive_cmds=
319 kx archive_expsym_cmds=
319 kx compiler_needs_object=no
319 kx enable_shared_with_static_runtimes=no
319 kx export_dynamic_flag_spec=
319 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
319 kx hardcode_automatic=no
319 kx hardcode_direct=no
319 kx hardcode_direct_absolute=no
319 kx hardcode_libdir_flag_spec=
319 kx hardcode_libdir_separator=
319 kx hardcode_minus_L=no
319 kx hardcode_shlibpath_var=unsupported
319 kx inherit_rpath=no
319 kx link_all_deplibs=unknown
319 kx module_cmds=
319 kx module_expsym_cmds=
319 kx old_archive_from_new_cmds=
319 kx old_archive_from_expsyms_cmds=
319 kx thread_safe_flag_spec=
319 kx whole_archive_flag_spec=
319 kx # include_expsyms should be a list of space-separated symbols to be *always*
319 kx # included in the symbol list
319 kx include_expsyms=
319 kx # exclude_expsyms can be an extended regexp of symbols to exclude
319 kx # it will be wrapped by ' (' and ')$', so one must not match beginning or
319 kx # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
319 kx # as well as any symbol that contains 'd'.
319 kx exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
319 kx # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
319 kx # platforms (ab)use it in PIC code, but their linkers get confused if
319 kx # the symbol is explicitly referenced. Since portable code cannot
319 kx # rely on this symbol name, it's probably fine to never include it in
319 kx # preloaded symbol tables.
319 kx # Exclude shared library initialization/finalization symbols.
319 kx extract_expsyms_cmds=
319 kx
319 kx case $host_os in
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
319 kx # When not using gcc, we currently assume that we are using
319 kx # Microsoft Visual C++ or Intel C++ Compiler.
319 kx if test yes != "$GCC"; then
319 kx with_gnu_ld=no
319 kx fi
319 kx ;;
319 kx interix*)
319 kx # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
319 kx with_gnu_ld=yes
319 kx ;;
319 kx openbsd* | bitrig*)
319 kx with_gnu_ld=no
319 kx ;;
319 kx esac
319 kx
319 kx ld_shlibs=yes
319 kx
319 kx # On some targets, GNU ld is compatible enough with the native linker
319 kx # that we're better off using the native interface for both.
319 kx lt_use_gnu_ld_interface=no
319 kx if test yes = "$with_gnu_ld"; then
319 kx case $host_os in
319 kx aix*)
319 kx # The AIX port of GNU ld has always aspired to compatibility
319 kx # with the native linker. However, as the warning in the GNU ld
319 kx # block says, versions before 2.19.5* couldn't really create working
319 kx # shared libraries, regardless of the interface used.
319 kx case `$LD -v 2>&1` in
319 kx *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
319 kx *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
319 kx *\ \(GNU\ Binutils\)\ [3-9]*) ;;
319 kx *)
319 kx lt_use_gnu_ld_interface=yes
319 kx ;;
319 kx esac
319 kx ;;
319 kx *)
319 kx lt_use_gnu_ld_interface=yes
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx if test yes = "$lt_use_gnu_ld_interface"; then
319 kx # If archive_cmds runs LD, not CC, wlarc should be empty
319 kx wlarc='$wl'
319 kx
319 kx # Set some defaults for GNU ld with shared library support. These
319 kx # are reset later if shared libraries are not supported. Putting them
319 kx # here allows them to be overridden if necessary.
319 kx runpath_var=LD_RUN_PATH
319 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
319 kx export_dynamic_flag_spec='$wl--export-dynamic'
319 kx # ancient GNU ld didn't support --whole-archive et. al.
319 kx if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
319 kx whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
319 kx else
319 kx whole_archive_flag_spec=
319 kx fi
319 kx supports_anon_versioning=no
319 kx case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
319 kx *GNU\ gold*) supports_anon_versioning=yes ;;
319 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
319 kx *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
319 kx *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
319 kx *\ 2.11.*) ;; # other 2.11 versions
319 kx *) supports_anon_versioning=yes ;;
319 kx esac
319 kx
319 kx # See if GNU ld supports shared libraries.
319 kx case $host_os in
319 kx aix[3-9]*)
319 kx # On AIX/PPC, the GNU linker is very broken
319 kx if test ia64 != "$host_cpu"; then
319 kx ld_shlibs=no
319 kx cat <<_LT_EOF 1>&2
319 kx
319 kx *** Warning: the GNU linker, at least up to release 2.19, is reported
319 kx *** to be unable to reliably create shared libraries on AIX.
319 kx *** Therefore, libtool is disabling shared libraries support. If you
319 kx *** really care for shared libraries, you may want to install binutils
319 kx *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
319 kx *** You will then need to restart the configuration process.
319 kx
319 kx _LT_EOF
319 kx fi
319 kx ;;
319 kx
319 kx amigaos*)
319 kx case $host_cpu in
319 kx powerpc)
319 kx # see comment about AmigaOS4 .so support
319 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx archive_expsym_cmds=''
319 kx ;;
319 kx m68k)
319 kx 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)'
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx hardcode_minus_L=yes
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx beos*)
319 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
319 kx allow_undefined_flag=unsupported
319 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
319 kx # support --undefined. This deserves some investigation. FIXME
319 kx archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx else
319 kx ld_shlibs=no
319 kx fi
319 kx ;;
319 kx
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
319 kx # as there is no search path for DLLs.
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx export_dynamic_flag_spec='$wl--export-all-symbols'
319 kx allow_undefined_flag=unsupported
319 kx always_export_symbols=no
319 kx enable_shared_with_static_runtimes=yes
319 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
319 kx exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
319 kx
319 kx if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
319 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
319 kx # If the export-symbols file already is a .def file, use it as
319 kx # is; otherwise, prepend EXPORTS...
319 kx archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
319 kx cp $export_symbols $output_objdir/$soname.def;
319 kx else
319 kx echo EXPORTS > $output_objdir/$soname.def;
319 kx cat $export_symbols >> $output_objdir/$soname.def;
319 kx fi~
319 kx $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
319 kx else
319 kx ld_shlibs=no
319 kx fi
319 kx ;;
319 kx
319 kx haiku*)
319 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx link_all_deplibs=yes
319 kx ;;
319 kx
319 kx os2*)
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx hardcode_minus_L=yes
319 kx allow_undefined_flag=unsupported
319 kx shrext_cmds=.dll
319 kx archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
319 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
319 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
319 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
319 kx emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
319 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
319 kx emximp -o $lib $output_objdir/$libname.def'
319 kx archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
319 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
319 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
319 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
319 kx prefix_cmds="$SED"~
319 kx if test EXPORTS = "`$SED 1q $export_symbols`"; then
319 kx prefix_cmds="$prefix_cmds -e 1d";
319 kx fi~
319 kx prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
319 kx cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
319 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
319 kx emximp -o $lib $output_objdir/$libname.def'
319 kx old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
319 kx enable_shared_with_static_runtimes=yes
319 kx file_list_spec='@'
319 kx ;;
319 kx
319 kx interix[3-9]*)
319 kx hardcode_direct=no
319 kx hardcode_shlibpath_var=no
319 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
319 kx export_dynamic_flag_spec='$wl-E'
319 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
319 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
319 kx # default) and relocated if they conflict, which is a slow very memory
319 kx # consuming and fragmenting process. To avoid this, we pick a random,
319 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
319 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
319 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
319 kx 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'
319 kx ;;
319 kx
319 kx gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
319 kx tmp_diet=no
319 kx if test linux-dietlibc = "$host_os"; then
319 kx case $cc_basename in
319 kx diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
319 kx esac
319 kx fi
319 kx if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
319 kx && test no = "$tmp_diet"
319 kx then
319 kx tmp_addflag=' $pic_flag'
319 kx tmp_sharedflag='-shared'
319 kx case $cc_basename,$host_cpu in
319 kx pgcc*) # Portland Group C compiler
319 kx whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
319 kx tmp_addflag=' $pic_flag'
319 kx ;;
319 kx pgf77* | pgf90* | pgf95* | pgfortran*)
319 kx # Portland Group f77 and f90 compilers
319 kx whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
319 kx tmp_addflag=' $pic_flag -Mnomain' ;;
319 kx ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
319 kx tmp_addflag=' -i_dynamic' ;;
319 kx efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
319 kx tmp_addflag=' -i_dynamic -nofor_main' ;;
319 kx ifc* | ifort*) # Intel Fortran compiler
319 kx tmp_addflag=' -nofor_main' ;;
319 kx lf95*) # Lahey Fortran 8.1
319 kx whole_archive_flag_spec=
319 kx tmp_sharedflag='--shared' ;;
319 kx nagfor*) # NAGFOR 5.3
319 kx tmp_sharedflag='-Wl,-shared' ;;
319 kx xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
319 kx tmp_sharedflag='-qmkshrobj'
319 kx tmp_addflag= ;;
319 kx nvcc*) # Cuda Compiler Driver 2.2
319 kx whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
319 kx compiler_needs_object=yes
319 kx ;;
319 kx esac
319 kx case `$CC -V 2>&1 | $SED 5q` in
319 kx *Sun\ C*) # Sun C 5.9
319 kx whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
319 kx compiler_needs_object=yes
319 kx tmp_sharedflag='-G' ;;
319 kx *Sun\ F*) # Sun Fortran 8.3
319 kx tmp_sharedflag='-G' ;;
319 kx esac
319 kx archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx
319 kx if test yes = "$supports_anon_versioning"; then
319 kx archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
319 kx cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
319 kx echo "local: *; };" >> $output_objdir/$libname.ver~
319 kx $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
319 kx fi
319 kx
319 kx case $cc_basename in
319 kx tcc*)
319 kx export_dynamic_flag_spec='-rdynamic'
319 kx ;;
319 kx xlf* | bgf* | bgxlf* | mpixlf*)
319 kx # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
319 kx whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
319 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
319 kx archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
319 kx if test yes = "$supports_anon_versioning"; then
319 kx archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
319 kx cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
319 kx echo "local: *; };" >> $output_objdir/$libname.ver~
319 kx $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
319 kx fi
319 kx ;;
319 kx esac
319 kx else
319 kx ld_shlibs=no
319 kx fi
319 kx ;;
319 kx
319 kx netbsd*)
319 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
319 kx archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
319 kx wlarc=
319 kx else
319 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
319 kx fi
319 kx ;;
319 kx
319 kx solaris*)
319 kx if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
319 kx ld_shlibs=no
319 kx cat <<_LT_EOF 1>&2
319 kx
319 kx *** Warning: The releases 2.8.* of the GNU linker cannot reliably
319 kx *** create shared libraries on Solaris systems. Therefore, libtool
319 kx *** is disabling shared libraries support. We urge you to upgrade GNU
319 kx *** binutils to release 2.9.1 or newer. Another option is to modify
319 kx *** your PATH or compiler configuration so that the native linker is
319 kx *** used, and then restart.
319 kx
319 kx _LT_EOF
319 kx elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
319 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
319 kx else
319 kx ld_shlibs=no
319 kx fi
319 kx ;;
319 kx
319 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
319 kx case `$LD -v 2>&1` in
319 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
319 kx ld_shlibs=no
319 kx cat <<_LT_EOF 1>&2
319 kx
319 kx *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
319 kx *** reliably create shared libraries on SCO systems. Therefore, libtool
319 kx *** is disabling shared libraries support. We urge you to upgrade GNU
319 kx *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
319 kx *** your PATH or compiler configuration so that the native linker is
319 kx *** used, and then restart.
319 kx
319 kx _LT_EOF
319 kx ;;
319 kx *)
319 kx # For security reasons, it is highly recommended that you always
319 kx # use absolute paths for naming shared libraries, and exclude the
319 kx # DT_RUNPATH tag from executables and libraries. But doing so
319 kx # requires that you compile everything twice, which is a pain.
319 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
319 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
319 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
319 kx else
319 kx ld_shlibs=no
319 kx fi
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx sunos4*)
319 kx archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
319 kx wlarc=
319 kx hardcode_direct=yes
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx *)
319 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
319 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
319 kx else
319 kx ld_shlibs=no
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx if test no = "$ld_shlibs"; then
319 kx runpath_var=
319 kx hardcode_libdir_flag_spec=
319 kx export_dynamic_flag_spec=
319 kx whole_archive_flag_spec=
319 kx fi
319 kx else
319 kx # PORTME fill in a description of your system's linker (not GNU ld)
319 kx case $host_os in
319 kx aix3*)
319 kx allow_undefined_flag=unsupported
319 kx always_export_symbols=yes
319 kx 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'
319 kx # Note: this linker hardcodes the directories in LIBPATH if there
319 kx # are no directories specified by -L.
319 kx hardcode_minus_L=yes
319 kx if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
319 kx # Neither direct hardcoding nor static linking is supported with a
319 kx # broken collect2.
319 kx hardcode_direct=unsupported
319 kx fi
319 kx ;;
319 kx
319 kx aix[4-9]*)
319 kx if test ia64 = "$host_cpu"; then
319 kx # On IA64, the linker does run time linking by default, so we don't
319 kx # have to do anything special.
319 kx aix_use_runtimelinking=no
319 kx exp_sym_flag='-Bexport'
319 kx no_entry_flag=
319 kx else
319 kx # If we're using GNU nm, then we don't want the "-C" option.
319 kx # -C means demangle to GNU nm, but means don't demangle to AIX nm.
319 kx # Without the "-l" option, or with the "-B" option, AIX nm treats
319 kx # weak defined symbols like other global defined symbols, whereas
319 kx # GNU nm marks them as "W".
319 kx # While the 'weak' keyword is ignored in the Export File, we need
319 kx # it in the Import File for the 'aix-soname' feature, so we have
319 kx # to replace the "-B" option with "-P" for AIX nm.
319 kx if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
319 kx export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
319 kx else
319 kx export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
319 kx fi
319 kx aix_use_runtimelinking=no
319 kx
319 kx # Test if we are trying to use run time linking or normal
319 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
319 kx # have runtime linking enabled, and use it for executables.
319 kx # For shared libraries, we enable/disable runtime linking
319 kx # depending on the kind of the shared library created -
319 kx # when "with_aix_soname,aix_use_runtimelinking" is:
319 kx # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
319 kx # "aix,yes" lib.so shared, rtl:yes, for executables
319 kx # lib.a static archive
319 kx # "both,no" lib.so.V(shr.o) shared, rtl:yes
319 kx # lib.a(lib.so.V) shared, rtl:no, for executables
319 kx # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
319 kx # lib.a(lib.so.V) shared, rtl:no
319 kx # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
319 kx # lib.a static archive
319 kx case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
319 kx for ld_flag in $LDFLAGS; do
319 kx if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
319 kx aix_use_runtimelinking=yes
319 kx break
319 kx fi
319 kx done
319 kx if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
319 kx # With aix-soname=svr4, we create the lib.so.V shared archives only,
319 kx # so we don't have lib.a shared libs to link our executables.
319 kx # We have to force runtime linking in this case.
319 kx aix_use_runtimelinking=yes
319 kx LDFLAGS="$LDFLAGS -Wl,-brtl"
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx exp_sym_flag='-bexport'
319 kx no_entry_flag='-bnoentry'
319 kx fi
319 kx
319 kx # When large executables or shared objects are built, AIX ld can
319 kx # have problems creating the table of contents. If linking a library
319 kx # or program results in "error TOC overflow" add -mminimal-toc to
319 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
319 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
319 kx
319 kx archive_cmds=''
319 kx hardcode_direct=yes
319 kx hardcode_direct_absolute=yes
319 kx hardcode_libdir_separator=':'
319 kx link_all_deplibs=yes
319 kx file_list_spec='$wl-f,'
319 kx case $with_aix_soname,$aix_use_runtimelinking in
319 kx aix,*) ;; # traditional, no import file
319 kx svr4,* | *,yes) # use import file
319 kx # The Import File defines what to hardcode.
319 kx hardcode_direct=no
319 kx hardcode_direct_absolute=no
319 kx ;;
319 kx esac
319 kx
319 kx if test yes = "$GCC"; then
319 kx case $host_os in aix4.[012]|aix4.[012].*)
319 kx # We only want to do this on AIX 4.2 and lower, the check
319 kx # below for broken collect2 doesn't work under 4.3+
319 kx collect2name=`$CC -print-prog-name=collect2`
319 kx if test -f "$collect2name" &&
319 kx strings "$collect2name" | $GREP resolve_lib_name >/dev/null
319 kx then
319 kx # We have reworked collect2
319 kx :
319 kx else
319 kx # We have old collect2
319 kx hardcode_direct=unsupported
319 kx # It fails to find uninstalled libraries when the uninstalled
319 kx # path is not listed in the libpath. Setting hardcode_minus_L
319 kx # to unsupported forces relinking
319 kx hardcode_minus_L=yes
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx hardcode_libdir_separator=
319 kx fi
319 kx ;;
319 kx esac
319 kx shared_flag='-shared'
319 kx if test yes = "$aix_use_runtimelinking"; then
319 kx shared_flag="$shared_flag "'$wl-G'
319 kx fi
319 kx # Need to ensure runtime linking is disabled for the traditional
319 kx # shared library, or the linker may eventually find shared libraries
319 kx # /with/ Import File - we do not want to mix them.
319 kx shared_flag_aix='-shared'
319 kx shared_flag_svr4='-shared $wl-G'
319 kx else
319 kx # not using gcc
319 kx if test ia64 = "$host_cpu"; then
319 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
319 kx # chokes on -Wl,-G. The following line is correct:
319 kx shared_flag='-G'
319 kx else
319 kx if test yes = "$aix_use_runtimelinking"; then
319 kx shared_flag='$wl-G'
319 kx else
319 kx shared_flag='$wl-bM:SRE'
319 kx fi
319 kx shared_flag_aix='$wl-bM:SRE'
319 kx shared_flag_svr4='$wl-G'
319 kx fi
319 kx fi
319 kx
319 kx export_dynamic_flag_spec='$wl-bexpall'
319 kx # It seems that -bexpall does not export symbols beginning with
319 kx # underscore (_), so it is better to generate a list of symbols to export.
319 kx always_export_symbols=yes
319 kx if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
319 kx # Warning - without using the other runtime loading flags (-brtl),
319 kx # -berok will link without error, but may produce a broken library.
319 kx allow_undefined_flag='-berok'
319 kx # Determine the default libpath from the value encoded in an
319 kx # empty executable.
319 kx if test set = "${lt_cv_aix_libpath+set}"; then
319 kx aix_libpath=$lt_cv_aix_libpath
319 kx else
319 kx if test ${lt_cv_aix_libpath_+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx
319 kx lt_aix_libpath_sed='
319 kx /Import File Strings/,/^$/ {
319 kx /^0/ {
319 kx s/^0 *\([^ ]*\) *$/\1/
319 kx p
319 kx }
319 kx }'
319 kx lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
319 kx # Check for a 64-bit object if we didn't find anything.
319 kx if test -z "$lt_cv_aix_libpath_"; then
319 kx lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
319 kx fi
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx if test -z "$lt_cv_aix_libpath_"; then
319 kx lt_cv_aix_libpath_=/usr/lib:/lib
319 kx fi
319 kx
319 kx fi
319 kx
319 kx aix_libpath=$lt_cv_aix_libpath_
319 kx fi
319 kx
319 kx hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
319 kx archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
319 kx else
319 kx if test ia64 = "$host_cpu"; then
319 kx hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
319 kx allow_undefined_flag="-z nodefs"
319 kx 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"
319 kx else
319 kx # Determine the default libpath from the value encoded in an
319 kx # empty executable.
319 kx if test set = "${lt_cv_aix_libpath+set}"; then
319 kx aix_libpath=$lt_cv_aix_libpath
319 kx else
319 kx if test ${lt_cv_aix_libpath_+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx
319 kx lt_aix_libpath_sed='
319 kx /Import File Strings/,/^$/ {
319 kx /^0/ {
319 kx s/^0 *\([^ ]*\) *$/\1/
319 kx p
319 kx }
319 kx }'
319 kx lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
319 kx # Check for a 64-bit object if we didn't find anything.
319 kx if test -z "$lt_cv_aix_libpath_"; then
319 kx lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
319 kx fi
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx if test -z "$lt_cv_aix_libpath_"; then
319 kx lt_cv_aix_libpath_=/usr/lib:/lib
319 kx fi
319 kx
319 kx fi
319 kx
319 kx aix_libpath=$lt_cv_aix_libpath_
319 kx fi
319 kx
319 kx hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
319 kx # Warning - without using the other run time loading flags,
319 kx # -berok will link without error, but may produce a broken library.
319 kx no_undefined_flag=' $wl-bernotok'
319 kx allow_undefined_flag=' $wl-berok'
319 kx if test yes = "$with_gnu_ld"; then
319 kx # We only use this code for GNU lds that support --whole-archive.
319 kx whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
319 kx else
319 kx # Exported symbols can be pulled into shared objects from archives
319 kx whole_archive_flag_spec='$convenience'
319 kx fi
319 kx archive_cmds_need_lc=yes
319 kx archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
319 kx # -brtl affects multiple linker settings, -berok does not and is overridden later
319 kx compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
319 kx if test svr4 != "$with_aix_soname"; then
319 kx # This is similar to how AIX traditionally builds its shared libraries.
319 kx archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
319 kx fi
319 kx if test aix != "$with_aix_soname"; then
319 kx archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
319 kx else
319 kx # used by -dlpreopen to get the symbols
319 kx archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
319 kx fi
319 kx archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
319 kx fi
319 kx fi
319 kx ;;
319 kx
319 kx amigaos*)
319 kx case $host_cpu in
319 kx powerpc)
319 kx # see comment about AmigaOS4 .so support
319 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx archive_expsym_cmds=''
319 kx ;;
319 kx m68k)
319 kx 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)'
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx hardcode_minus_L=yes
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx bsdi[45]*)
319 kx export_dynamic_flag_spec=-rdynamic
319 kx ;;
319 kx
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx # When not using gcc, we currently assume that we are using
319 kx # Microsoft Visual C++ or Intel C++ Compiler.
319 kx # hardcode_libdir_flag_spec is actually meaningless, as there is
319 kx # no search path for DLLs.
319 kx case $cc_basename in
319 kx cl* | icl*)
319 kx # Native MSVC or ICC
319 kx hardcode_libdir_flag_spec=' '
319 kx allow_undefined_flag=unsupported
319 kx always_export_symbols=yes
319 kx file_list_spec='@'
319 kx # Tell ltmain to make .lib files, not .a files.
319 kx libext=lib
319 kx # Tell ltmain to make .dll files, not .so files.
319 kx shrext_cmds=.dll
319 kx # FIXME: Setting linknames here is a bad hack.
319 kx archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
319 kx archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
319 kx cp "$export_symbols" "$output_objdir/$soname.def";
319 kx echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
319 kx else
319 kx $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
319 kx fi~
319 kx $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
319 kx linknames='
319 kx # The linker will not automatically build a static lib if we build a DLL.
319 kx # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
319 kx enable_shared_with_static_runtimes=yes
319 kx exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
319 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
319 kx # Don't use ranlib
319 kx old_postinstall_cmds='chmod 644 $oldlib'
319 kx postlink_cmds='lt_outputfile="@OUTPUT@"~
319 kx lt_tool_outputfile="@TOOL_OUTPUT@"~
319 kx case $lt_outputfile in
319 kx *.exe|*.EXE) ;;
319 kx *)
319 kx lt_outputfile=$lt_outputfile.exe
319 kx lt_tool_outputfile=$lt_tool_outputfile.exe
319 kx ;;
319 kx esac~
319 kx if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
319 kx $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
319 kx $RM "$lt_outputfile.manifest";
319 kx fi'
319 kx ;;
319 kx *)
319 kx # Assume MSVC and ICC wrapper
319 kx hardcode_libdir_flag_spec=' '
319 kx allow_undefined_flag=unsupported
319 kx # Tell ltmain to make .lib files, not .a files.
319 kx libext=lib
319 kx # Tell ltmain to make .dll files, not .so files.
319 kx shrext_cmds=.dll
319 kx # FIXME: Setting linknames here is a bad hack.
319 kx archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
319 kx # The linker will automatically build a .lib file if we build a DLL.
319 kx old_archive_from_new_cmds='true'
319 kx # FIXME: Should let the user specify the lib program.
319 kx old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
319 kx enable_shared_with_static_runtimes=yes
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx darwin* | rhapsody*)
319 kx
319 kx
319 kx archive_cmds_need_lc=no
319 kx hardcode_direct=no
319 kx hardcode_automatic=yes
319 kx hardcode_shlibpath_var=unsupported
319 kx if test yes = "$lt_cv_ld_force_load"; then
319 kx whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
319 kx
319 kx else
319 kx whole_archive_flag_spec=''
319 kx fi
319 kx link_all_deplibs=yes
319 kx allow_undefined_flag=$_lt_dar_allow_undefined
319 kx case $cc_basename in
319 kx ifort*|nagfor*) _lt_dar_can_shared=yes ;;
319 kx *) _lt_dar_can_shared=$GCC ;;
319 kx esac
319 kx if test yes = "$_lt_dar_can_shared"; then
319 kx output_verbose_link_cmd=func_echo_all
319 kx archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
319 kx module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
319 kx 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"
319 kx 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"
319 kx
319 kx else
319 kx ld_shlibs=no
319 kx fi
319 kx
319 kx ;;
319 kx
319 kx dgux*)
319 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
319 kx # support. Future versions do this automatically, but an explicit c++rt0.o
319 kx # does not break anything, and helps significantly (at the cost of a little
319 kx # extra space).
319 kx freebsd2.2*)
319 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
319 kx hardcode_libdir_flag_spec='-R$libdir'
319 kx hardcode_direct=yes
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx # Unfortunately, older versions of FreeBSD 2 do not have this feature.
319 kx freebsd2.*)
319 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
319 kx hardcode_direct=yes
319 kx hardcode_minus_L=yes
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
319 kx freebsd* | dragonfly* | midnightbsd*)
319 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
319 kx hardcode_libdir_flag_spec='-R$libdir'
319 kx hardcode_direct=yes
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx hpux9*)
319 kx if test yes = "$GCC"; then
319 kx archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
319 kx else
319 kx archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
319 kx fi
319 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
319 kx hardcode_libdir_separator=:
319 kx hardcode_direct=yes
319 kx
319 kx # hardcode_minus_L: Not really in the search PATH,
319 kx # but as the default location of the library.
319 kx hardcode_minus_L=yes
319 kx export_dynamic_flag_spec='$wl-E'
319 kx ;;
319 kx
319 kx hpux10*)
319 kx if test yes,no = "$GCC,$with_gnu_ld"; then
319 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
319 kx else
319 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
319 kx fi
319 kx if test no = "$with_gnu_ld"; then
319 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
319 kx hardcode_libdir_separator=:
319 kx hardcode_direct=yes
319 kx hardcode_direct_absolute=yes
319 kx export_dynamic_flag_spec='$wl-E'
319 kx # hardcode_minus_L: Not really in the search PATH,
319 kx # but as the default location of the library.
319 kx hardcode_minus_L=yes
319 kx fi
319 kx ;;
319 kx
319 kx hpux11*)
319 kx if test yes,no = "$GCC,$with_gnu_ld"; then
319 kx case $host_cpu in
319 kx hppa*64*)
319 kx archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx ia64*)
319 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx *)
319 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx esac
319 kx else
319 kx case $host_cpu in
319 kx hppa*64*)
319 kx archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx ia64*)
319 kx archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx *)
319 kx
319 kx # Older versions of the 11.00 compiler do not understand -b yet
319 kx # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
319 kx printf %s "checking if $CC understands -b... " >&6; }
319 kx if test ${lt_cv_prog_compiler__b+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler__b=no
319 kx save_LDFLAGS=$LDFLAGS
319 kx LDFLAGS="$LDFLAGS -b"
319 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
319 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
319 kx # The linker can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings
319 kx if test -s conftest.err; then
319 kx # Append any errors to the config.log.
319 kx cat conftest.err 1>&5
319 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
319 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
319 kx if diff conftest.exp conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler__b=yes
319 kx fi
319 kx else
319 kx lt_cv_prog_compiler__b=yes
319 kx fi
319 kx fi
319 kx $RM -r conftest*
319 kx LDFLAGS=$save_LDFLAGS
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
319 kx
319 kx if test yes = "$lt_cv_prog_compiler__b"; then
319 kx archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
319 kx else
319 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
319 kx fi
319 kx
319 kx ;;
319 kx esac
319 kx fi
319 kx if test no = "$with_gnu_ld"; then
319 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
319 kx hardcode_libdir_separator=:
319 kx
319 kx case $host_cpu in
319 kx hppa*64*|ia64*)
319 kx hardcode_direct=no
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx *)
319 kx hardcode_direct=yes
319 kx hardcode_direct_absolute=yes
319 kx export_dynamic_flag_spec='$wl-E'
319 kx
319 kx # hardcode_minus_L: Not really in the search PATH,
319 kx # but as the default location of the library.
319 kx hardcode_minus_L=yes
319 kx ;;
319 kx esac
319 kx fi
319 kx ;;
319 kx
319 kx irix5* | irix6* | nonstopux*)
319 kx if test yes = "$GCC"; then
319 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
319 kx # Try to use the -exported_symbol ld option, if it does not
319 kx # work, assume that -exports_file does not work either and
319 kx # implicitly export all symbols.
319 kx # This should be the same for all languages, so no per-tag cache variable.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
319 kx printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
319 kx if test ${lt_cv_irix_exported_symbol+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx save_LDFLAGS=$LDFLAGS
319 kx LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx int foo (void) { return 0; }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx lt_cv_irix_exported_symbol=yes
319 kx else $as_nop
319 kx lt_cv_irix_exported_symbol=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LDFLAGS=$save_LDFLAGS
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
319 kx printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
319 kx if test yes = "$lt_cv_irix_exported_symbol"; then
319 kx archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
319 kx fi
319 kx else
319 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
319 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
319 kx fi
319 kx archive_cmds_need_lc='no'
319 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
319 kx hardcode_libdir_separator=:
319 kx inherit_rpath=yes
319 kx link_all_deplibs=yes
319 kx ;;
319 kx
319 kx linux*)
319 kx case $cc_basename in
319 kx tcc*)
319 kx # Fabrice Bellard et al's Tiny C Compiler
319 kx ld_shlibs=yes
319 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx netbsd*)
319 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
319 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
319 kx else
319 kx archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
319 kx fi
319 kx hardcode_libdir_flag_spec='-R$libdir'
319 kx hardcode_direct=yes
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx newsos6)
319 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
319 kx hardcode_direct=yes
319 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
319 kx hardcode_libdir_separator=:
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx *nto* | *qnx*)
319 kx ;;
319 kx
319 kx openbsd* | bitrig*)
319 kx if test -f /usr/libexec/ld.so; then
319 kx hardcode_direct=yes
319 kx hardcode_shlibpath_var=no
319 kx hardcode_direct_absolute=yes
319 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
319 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
319 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
319 kx export_dynamic_flag_spec='$wl-E'
319 kx else
319 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
319 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
319 kx fi
319 kx else
319 kx ld_shlibs=no
319 kx fi
319 kx ;;
319 kx
319 kx os2*)
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx hardcode_minus_L=yes
319 kx allow_undefined_flag=unsupported
319 kx shrext_cmds=.dll
319 kx archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
319 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
319 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
319 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
319 kx emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
319 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
319 kx emximp -o $lib $output_objdir/$libname.def'
319 kx archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
319 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
319 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
319 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
319 kx prefix_cmds="$SED"~
319 kx if test EXPORTS = "`$SED 1q $export_symbols`"; then
319 kx prefix_cmds="$prefix_cmds -e 1d";
319 kx fi~
319 kx prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
319 kx cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
319 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
319 kx emximp -o $lib $output_objdir/$libname.def'
319 kx old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
319 kx enable_shared_with_static_runtimes=yes
319 kx file_list_spec='@'
319 kx ;;
319 kx
319 kx osf3*)
319 kx if test yes = "$GCC"; then
319 kx allow_undefined_flag=' $wl-expect_unresolved $wl\*'
319 kx archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
319 kx else
319 kx allow_undefined_flag=' -expect_unresolved \*'
319 kx archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
319 kx fi
319 kx archive_cmds_need_lc='no'
319 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
319 kx hardcode_libdir_separator=:
319 kx ;;
319 kx
319 kx osf4* | osf5*) # as osf3* with the addition of -msym flag
319 kx if test yes = "$GCC"; then
319 kx allow_undefined_flag=' $wl-expect_unresolved $wl\*'
319 kx archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
319 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
319 kx else
319 kx allow_undefined_flag=' -expect_unresolved \*'
319 kx archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
319 kx 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~
319 kx $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
319 kx
319 kx # Both c and cxx compiler support -rpath directly
319 kx hardcode_libdir_flag_spec='-rpath $libdir'
319 kx fi
319 kx archive_cmds_need_lc='no'
319 kx hardcode_libdir_separator=:
319 kx ;;
319 kx
319 kx solaris*)
319 kx no_undefined_flag=' -z defs'
319 kx if test yes = "$GCC"; then
319 kx wlarc='$wl'
319 kx archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
319 kx $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
319 kx else
319 kx case `$CC -V 2>&1` in
319 kx *"Compilers 5.0"*)
319 kx wlarc=''
319 kx archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
319 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
319 kx $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
319 kx ;;
319 kx *)
319 kx wlarc='$wl'
319 kx archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
319 kx $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
319 kx ;;
319 kx esac
319 kx fi
319 kx hardcode_libdir_flag_spec='-R$libdir'
319 kx hardcode_shlibpath_var=no
319 kx case $host_os in
319 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
319 kx *)
319 kx # The compiler driver will combine and reorder linker options,
319 kx # but understands '-z linker_flag'. GCC discards it without '$wl',
319 kx # but is careful enough not to reorder.
319 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
319 kx if test yes = "$GCC"; then
319 kx whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
319 kx else
319 kx whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
319 kx fi
319 kx ;;
319 kx esac
319 kx link_all_deplibs=yes
319 kx ;;
319 kx
319 kx sunos4*)
319 kx if test sequent = "$host_vendor"; then
319 kx # Use $CC to link under sequent, because it throws in some extra .o
319 kx # files that make .init and .fini sections work.
319 kx archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx else
319 kx archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
319 kx fi
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx hardcode_direct=yes
319 kx hardcode_minus_L=yes
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx sysv4)
319 kx case $host_vendor in
319 kx sni)
319 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
319 kx hardcode_direct=yes # is this really true???
319 kx ;;
319 kx siemens)
319 kx ## LD is ld it makes a PLAMLIB
319 kx ## CC just makes a GrossModule.
319 kx archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
319 kx reload_cmds='$CC -r -o $output$reload_objs'
319 kx hardcode_direct=no
319 kx ;;
319 kx motorola)
319 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
319 kx hardcode_direct=no #Motorola manual says yes, but my tests say they lie
319 kx ;;
319 kx esac
319 kx runpath_var='LD_RUN_PATH'
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx sysv4.3*)
319 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
319 kx hardcode_shlibpath_var=no
319 kx export_dynamic_flag_spec='-Bexport'
319 kx ;;
319 kx
319 kx sysv4*MP*)
319 kx if test -d /usr/nec; then
319 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
319 kx hardcode_shlibpath_var=no
319 kx runpath_var=LD_RUN_PATH
319 kx hardcode_runpath_var=yes
319 kx ld_shlibs=yes
319 kx fi
319 kx ;;
319 kx
319 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
319 kx no_undefined_flag='$wl-z,text'
319 kx archive_cmds_need_lc=no
319 kx hardcode_shlibpath_var=no
319 kx runpath_var='LD_RUN_PATH'
319 kx
319 kx if test yes = "$GCC"; then
319 kx archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx else
319 kx archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx fi
319 kx ;;
319 kx
319 kx sysv5* | sco3.2v5* | sco5v6*)
319 kx # Note: We CANNOT use -z defs as we might desire, because we do not
319 kx # link with -lc, and that would cause any symbols used from libc to
319 kx # always be unresolved, which means just about no library would
319 kx # ever link correctly. If we're not using GNU ld we use -z text
319 kx # though, which does catch some bad symbols but isn't as heavy-handed
319 kx # as -z defs.
319 kx no_undefined_flag='$wl-z,text'
319 kx allow_undefined_flag='$wl-z,nodefs'
319 kx archive_cmds_need_lc=no
319 kx hardcode_shlibpath_var=no
319 kx hardcode_libdir_flag_spec='$wl-R,$libdir'
319 kx hardcode_libdir_separator=':'
319 kx link_all_deplibs=yes
319 kx export_dynamic_flag_spec='$wl-Bexport'
319 kx runpath_var='LD_RUN_PATH'
319 kx
319 kx if test yes = "$GCC"; then
319 kx archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx else
319 kx archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx fi
319 kx ;;
319 kx
319 kx uts4*)
319 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx hardcode_shlibpath_var=no
319 kx ;;
319 kx
319 kx *)
319 kx ld_shlibs=no
319 kx ;;
319 kx esac
319 kx
319 kx if test sni = "$host_vendor"; then
319 kx case $host in
319 kx sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
319 kx export_dynamic_flag_spec='$wl-Blargedynsym'
319 kx ;;
319 kx esac
319 kx fi
319 kx fi
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
319 kx printf "%s\n" "$ld_shlibs" >&6; }
319 kx test no = "$ld_shlibs" && can_build_shared=no
319 kx
319 kx with_gnu_ld=$with_gnu_ld
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx #
319 kx # Do we need to explicitly link libc?
319 kx #
319 kx case "x$archive_cmds_need_lc" in
319 kx x|xyes)
319 kx # Assume -lc should be added
319 kx archive_cmds_need_lc=yes
319 kx
319 kx if test yes,yes = "$GCC,$enable_shared"; then
319 kx case $archive_cmds in
319 kx *'~'*)
319 kx # FIXME: we may have to deal with multi-command sequences.
319 kx ;;
319 kx '$CC '*)
319 kx # Test whether the compiler implicitly links with -lc since on some
319 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
319 kx # to ld, don't add -lc before -lgcc.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
319 kx printf %s "checking whether -lc should be explicitly linked in... " >&6; }
319 kx if test ${lt_cv_archive_cmds_need_lc+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx $RM conftest*
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } 2>conftest.err; then
319 kx soname=conftest
319 kx lib=conftest
319 kx libobjs=conftest.$ac_objext
319 kx deplibs=
319 kx wl=$lt_prog_compiler_wl
319 kx pic_flag=$lt_prog_compiler_pic
319 kx compiler_flags=-v
319 kx linker_flags=-v
319 kx verstring=
319 kx output_objdir=.
319 kx libname=conftest
319 kx lt_save_allow_undefined_flag=$allow_undefined_flag
319 kx allow_undefined_flag=
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
319 kx (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx then
319 kx lt_cv_archive_cmds_need_lc=no
319 kx else
319 kx lt_cv_archive_cmds_need_lc=yes
319 kx fi
319 kx allow_undefined_flag=$lt_save_allow_undefined_flag
319 kx else
319 kx cat conftest.err 1>&5
319 kx fi
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
319 kx printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
319 kx archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
319 kx ;;
319 kx esac
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
319 kx printf %s "checking dynamic linker characteristics... " >&6; }
319 kx
319 kx if test yes = "$GCC"; then
319 kx case $host_os in
319 kx darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
319 kx *) lt_awk_arg='/^libraries:/' ;;
319 kx esac
319 kx case $host_os in
319 kx mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
319 kx *) lt_sed_strip_eq='s|=/|/|g' ;;
319 kx esac
319 kx lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
319 kx case $lt_search_path_spec in
319 kx *\;*)
319 kx # if the path contains ";" then we assume it to be the separator
319 kx # otherwise default to the standard path separator (i.e. ":") - it is
319 kx # assumed that no part of a normal pathname contains ";" but that should
319 kx # okay in the real world where ";" in dirpaths is itself problematic.
319 kx lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
319 kx ;;
319 kx *)
319 kx lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
319 kx ;;
319 kx esac
319 kx # Ok, now we have the path, separated by spaces, we can step through it
319 kx # and add multilib dir if necessary...
319 kx lt_tmp_lt_search_path_spec=
319 kx lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
319 kx # ...but if some path component already ends with the multilib dir we assume
319 kx # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
319 kx case "$lt_multi_os_dir; $lt_search_path_spec " in
319 kx "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
319 kx lt_multi_os_dir=
319 kx ;;
319 kx esac
319 kx for lt_sys_path in $lt_search_path_spec; do
319 kx if test -d "$lt_sys_path$lt_multi_os_dir"; then
319 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
319 kx elif test -n "$lt_multi_os_dir"; then
319 kx test -d "$lt_sys_path" && \
319 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
319 kx fi
319 kx done
319 kx lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
319 kx BEGIN {RS = " "; FS = "/|\n";} {
319 kx lt_foo = "";
319 kx lt_count = 0;
319 kx for (lt_i = NF; lt_i > 0; lt_i--) {
319 kx if ($lt_i != "" && $lt_i != ".") {
319 kx if ($lt_i == "..") {
319 kx lt_count++;
319 kx } else {
319 kx if (lt_count == 0) {
319 kx lt_foo = "/" $lt_i lt_foo;
319 kx } else {
319 kx lt_count--;
319 kx }
319 kx }
319 kx }
319 kx }
319 kx if (lt_foo != "") { lt_freq[lt_foo]++; }
319 kx if (lt_freq[lt_foo] == 1) { print lt_foo; }
319 kx }'`
319 kx # AWK program above erroneously prepends '/' to C:/dos/paths
319 kx # for these hosts.
319 kx case $host_os in
319 kx mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
319 kx $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
319 kx esac
319 kx sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
319 kx else
319 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
319 kx fi
319 kx library_names_spec=
319 kx libname_spec='lib$name'
319 kx soname_spec=
319 kx shrext_cmds=.so
319 kx postinstall_cmds=
319 kx postuninstall_cmds=
319 kx finish_cmds=
319 kx finish_eval=
319 kx shlibpath_var=
319 kx shlibpath_overrides_runpath=unknown
319 kx version_type=none
319 kx dynamic_linker="$host_os ld.so"
319 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
319 kx need_lib_prefix=unknown
319 kx hardcode_into_libs=no
319 kx
319 kx # when you set need_version to no, make sure it does not cause -set_version
319 kx # flags to be left without arguments
319 kx need_version=unknown
319 kx
319 kx
319 kx
319 kx case $host_os in
319 kx aix3*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
319 kx shlibpath_var=LIBPATH
319 kx
319 kx # AIX 3 has no versioning support, so we append a major version to the name.
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx ;;
319 kx
319 kx aix[4-9]*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx hardcode_into_libs=yes
319 kx if test ia64 = "$host_cpu"; then
319 kx # AIX 5 supports IA64
319 kx library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx else
319 kx # With GCC up to 2.95.x, collect2 would create an import file
319 kx # for dependence libraries. The import file would start with
319 kx # the line '#! .'. This would cause the generated library to
319 kx # depend on '.', always an invalid library. This was fixed in
319 kx # development snapshots of GCC prior to 3.0.
319 kx case $host_os in
319 kx aix4 | aix4.[01] | aix4.[01].*)
319 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
319 kx echo ' yes '
319 kx echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
319 kx :
319 kx else
319 kx can_build_shared=no
319 kx fi
319 kx ;;
319 kx esac
319 kx # Using Import Files as archive members, it is possible to support
319 kx # filename-based versioning of shared library archives on AIX. While
319 kx # this would work for both with and without runtime linking, it will
319 kx # prevent static linking of such archives. So we do filename-based
319 kx # shared library versioning with .so extension only, which is used
319 kx # when both runtime linking and shared linking is enabled.
319 kx # Unfortunately, runtime linking may impact performance, so we do
319 kx # not want this to be the default eventually. Also, we use the
319 kx # versioned .so libs for executables only if there is the -brtl
319 kx # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
319 kx # To allow for filename-based versioning support, we need to create
319 kx # libNAME.so.V as an archive file, containing:
319 kx # *) an Import File, referring to the versioned filename of the
319 kx # archive as well as the shared archive member, telling the
319 kx # bitwidth (32 or 64) of that shared object, and providing the
319 kx # list of exported symbols of that shared object, eventually
319 kx # decorated with the 'weak' keyword
319 kx # *) the shared object with the F_LOADONLY flag set, to really avoid
319 kx # it being seen by the linker.
319 kx # At run time we better use the real file rather than another symlink,
319 kx # but for link time we create the symlink libNAME.so -> libNAME.so.V
319 kx
319 kx case $with_aix_soname,$aix_use_runtimelinking in
319 kx # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
319 kx # soname into executable. Probably we can add versioning support to
319 kx # collect2, so additional links can be useful in future.
319 kx aix,yes) # traditional libtool
319 kx dynamic_linker='AIX unversionable lib.so'
319 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
319 kx # instead of lib<name>.a to let people know that these are not
319 kx # typical AIX shared libraries.
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx ;;
319 kx aix,no) # traditional AIX only
319 kx dynamic_linker='AIX lib.a(lib.so.V)'
319 kx # We preserve .a as extension for shared libraries through AIX4.2
319 kx # and later when we are not doing run time linking.
319 kx library_names_spec='$libname$release.a $libname.a'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx ;;
319 kx svr4,*) # full svr4 only
319 kx dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
319 kx library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
319 kx # We do not specify a path in Import Files, so LIBPATH fires.
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx *,yes) # both, prefer svr4
319 kx dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
319 kx library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
319 kx # unpreferred sharedlib libNAME.a needs extra handling
319 kx postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
319 kx postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
319 kx # We do not specify a path in Import Files, so LIBPATH fires.
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx *,no) # both, prefer aix
319 kx dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
319 kx library_names_spec='$libname$release.a $libname.a'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
319 kx postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
319 kx postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
319 kx ;;
319 kx esac
319 kx shlibpath_var=LIBPATH
319 kx fi
319 kx ;;
319 kx
319 kx amigaos*)
319 kx case $host_cpu in
319 kx powerpc)
319 kx # Since July 2007 AmigaOS4 officially supports .so libraries.
319 kx # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx ;;
319 kx m68k)
319 kx library_names_spec='$libname.ixlibrary $libname.a'
319 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
319 kx finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx beos*)
319 kx library_names_spec='$libname$shared_ext'
319 kx dynamic_linker="$host_os ld.so"
319 kx shlibpath_var=LIBRARY_PATH
319 kx ;;
319 kx
319 kx bsdi[45]*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
319 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
319 kx # the default ld.so.conf also contains /usr/contrib/lib and
319 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
319 kx # libtool to hard-code these into programs
319 kx ;;
319 kx
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx version_type=windows
319 kx shrext_cmds=.dll
319 kx need_version=no
319 kx need_lib_prefix=no
319 kx
319 kx case $GCC,$cc_basename in
319 kx yes,*)
319 kx # gcc
319 kx library_names_spec='$libname.dll.a'
319 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
319 kx postinstall_cmds='base_file=`basename \$file`~
319 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
319 kx dldir=$destdir/`dirname \$dlpath`~
319 kx test -d \$dldir || mkdir -p \$dldir~
319 kx $install_prog $dir/$dlname \$dldir/$dlname~
319 kx chmod a+x \$dldir/$dlname~
319 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
319 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
319 kx fi'
319 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
319 kx dlpath=$dir/\$dldll~
319 kx $RM \$dlpath'
319 kx shlibpath_overrides_runpath=yes
319 kx
319 kx case $host_os in
319 kx cygwin*)
319 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
319 kx soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
319 kx
319 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
319 kx ;;
319 kx mingw* | cegcc*)
319 kx # MinGW DLLs use traditional 'lib' prefix
319 kx soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
319 kx ;;
319 kx pw32*)
319 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
319 kx library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
319 kx ;;
319 kx esac
319 kx dynamic_linker='Win32 ld.exe'
319 kx ;;
319 kx
319 kx *,cl* | *,icl*)
319 kx # Native MSVC or ICC
319 kx libname_spec='$name'
319 kx soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
319 kx library_names_spec='$libname.dll.lib'
319 kx
319 kx case $build_os in
319 kx mingw*)
319 kx sys_lib_search_path_spec=
319 kx lt_save_ifs=$IFS
319 kx IFS=';'
319 kx for lt_path in $LIB
319 kx do
319 kx IFS=$lt_save_ifs
319 kx # Let DOS variable expansion print the short 8.3 style file name.
319 kx lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
319 kx sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
319 kx done
319 kx IFS=$lt_save_ifs
319 kx # Convert to MSYS style.
319 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
319 kx ;;
319 kx cygwin*)
319 kx # Convert to unix form, then to dos form, then back to unix form
319 kx # but this time dos style (no spaces!) so that the unix form looks
319 kx # like /cygdrive/c/PROGRA~1:/cygdr...
319 kx sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
319 kx sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
319 kx sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
319 kx ;;
319 kx *)
319 kx sys_lib_search_path_spec=$LIB
319 kx if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
319 kx # It is most probably a Windows format PATH.
319 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
319 kx else
319 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
319 kx fi
319 kx # FIXME: find the short name or the path components, as spaces are
319 kx # common. (e.g. "Program Files" -> "PROGRA~1")
319 kx ;;
319 kx esac
319 kx
319 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
319 kx postinstall_cmds='base_file=`basename \$file`~
319 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
319 kx dldir=$destdir/`dirname \$dlpath`~
319 kx test -d \$dldir || mkdir -p \$dldir~
319 kx $install_prog $dir/$dlname \$dldir/$dlname'
319 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
319 kx dlpath=$dir/\$dldll~
319 kx $RM \$dlpath'
319 kx shlibpath_overrides_runpath=yes
319 kx dynamic_linker='Win32 link.exe'
319 kx ;;
319 kx
319 kx *)
319 kx # Assume MSVC and ICC wrapper
319 kx library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
319 kx dynamic_linker='Win32 ld.exe'
319 kx ;;
319 kx esac
319 kx # FIXME: first we should search . and the directory the executable is in
319 kx shlibpath_var=PATH
319 kx ;;
319 kx
319 kx darwin* | rhapsody*)
319 kx dynamic_linker="$host_os dyld"
319 kx version_type=darwin
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
319 kx soname_spec='$libname$release$major$shared_ext'
319 kx shlibpath_overrides_runpath=yes
319 kx shlibpath_var=DYLD_LIBRARY_PATH
319 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
319 kx
319 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
319 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
319 kx ;;
319 kx
319 kx dgux*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx ;;
319 kx
319 kx freebsd* | dragonfly* | midnightbsd*)
319 kx # DragonFly does not have aout. When/if they implement a new
319 kx # versioning mechanism, adjust this.
319 kx if test -x /usr/bin/objformat; then
319 kx objformat=`/usr/bin/objformat`
319 kx else
319 kx case $host_os in
319 kx freebsd[23].*) objformat=aout ;;
319 kx *) objformat=elf ;;
319 kx esac
319 kx fi
319 kx version_type=freebsd-$objformat
319 kx case $version_type in
319 kx freebsd-elf*)
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx need_version=no
319 kx need_lib_prefix=no
319 kx ;;
319 kx freebsd-*)
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
319 kx need_version=yes
319 kx ;;
319 kx esac
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx case $host_os in
319 kx freebsd2.*)
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx freebsd3.[01]* | freebsdelf3.[01]*)
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
319 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
319 kx shlibpath_overrides_runpath=no
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx *) # from 4.6 on, and DragonFly
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx haiku*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx dynamic_linker="$host_os runtime_loader"
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx hpux9* | hpux10* | hpux11*)
319 kx # Give a soname corresponding to the major version so that dld.sl refuses to
319 kx # link against other versions.
319 kx version_type=sunos
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx case $host_cpu in
319 kx ia64*)
319 kx shrext_cmds='.so'
319 kx hardcode_into_libs=yes
319 kx dynamic_linker="$host_os dld.so"
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx if test 32 = "$HPUX_IA64_MODE"; then
319 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
319 kx sys_lib_dlsearch_path_spec=/usr/lib/hpux32
319 kx else
319 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
319 kx sys_lib_dlsearch_path_spec=/usr/lib/hpux64
319 kx fi
319 kx ;;
319 kx hppa*64*)
319 kx shrext_cmds='.sl'
319 kx hardcode_into_libs=yes
319 kx dynamic_linker="$host_os dld.sl"
319 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
319 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
319 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
319 kx ;;
319 kx *)
319 kx shrext_cmds='.sl'
319 kx dynamic_linker="$host_os dld.sl"
319 kx shlibpath_var=SHLIB_PATH
319 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx ;;
319 kx esac
319 kx # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
319 kx postinstall_cmds='chmod 555 $lib'
319 kx # or fails outright, so override atomically:
319 kx install_override_mode=555
319 kx ;;
319 kx
319 kx interix[3-9]*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx irix5* | irix6* | nonstopux*)
319 kx case $host_os in
319 kx nonstopux*) version_type=nonstopux ;;
319 kx *)
319 kx if test yes = "$lt_cv_prog_gnu_ld"; then
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx else
319 kx version_type=irix
319 kx fi ;;
319 kx esac
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
319 kx case $host_os in
319 kx irix5* | nonstopux*)
319 kx libsuff= shlibsuff=
319 kx ;;
319 kx *)
319 kx case $LD in # libtool.m4 will add one of these switches to LD
319 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
319 kx libsuff= shlibsuff= libmagic=32-bit;;
319 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
319 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
319 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
319 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
319 kx *) libsuff= shlibsuff= libmagic=never-match;;
319 kx esac
319 kx ;;
319 kx esac
319 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
319 kx shlibpath_overrides_runpath=no
319 kx sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
319 kx sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx # No shared lib support for Linux oldld, aout, or coff.
319 kx linux*oldld* | linux*aout* | linux*coff*)
319 kx dynamic_linker=no
319 kx ;;
319 kx
319 kx linux*android*)
319 kx version_type=none # Android doesn't support versioned libraries.
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext'
319 kx soname_spec='$libname$release$shared_ext'
319 kx finish_cmds=
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx
319 kx # This implies no fast_install, which is unacceptable.
319 kx # Some rework will be needed to allow for fast_install
319 kx # before this can be enabled.
319 kx hardcode_into_libs=yes
319 kx
319 kx dynamic_linker='Android linker'
319 kx # Don't embed -rpath directories since the linker doesn't support them.
319 kx hardcode_libdir_flag_spec='-L$libdir'
319 kx ;;
319 kx
319 kx # This must be glibc/ELF.
319 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx
319 kx # Some binutils ld are patched to set DT_RUNPATH
319 kx if test ${lt_cv_shlibpath_overrides_runpath+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_shlibpath_overrides_runpath=no
319 kx save_LDFLAGS=$LDFLAGS
319 kx save_libdir=$libdir
319 kx eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
319 kx LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
319 kx then :
319 kx lt_cv_shlibpath_overrides_runpath=yes
319 kx fi
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LDFLAGS=$save_LDFLAGS
319 kx libdir=$save_libdir
319 kx
319 kx fi
319 kx
319 kx shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
319 kx
319 kx # This implies no fast_install, which is unacceptable.
319 kx # Some rework will be needed to allow for fast_install
319 kx # before this can be enabled.
319 kx hardcode_into_libs=yes
319 kx
319 kx # Add ABI-specific directories to the system library path.
319 kx sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
319 kx
319 kx # Ideally, we could use ldconfig to report *all* directores which are
319 kx # searched for libraries, however this is still not possible. Aside from not
319 kx # being certain /sbin/ldconfig is available, command
319 kx # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
319 kx # even though it is searched at run-time. Try to do the best guess by
319 kx # appending ld.so.conf contents (and includes) to the search path.
319 kx if test -f /etc/ld.so.conf; then
319 kx lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
319 kx sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
319 kx fi
319 kx
319 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
319 kx # powerpc, because MkLinux only supported shared libraries with the
319 kx # GNU dynamic linker. Since this was broken with cross compilers,
319 kx # most powerpc-linux boxes support dynamic linking these days and
319 kx # people can always --disable-shared, the test was removed, and we
319 kx # assume the GNU/Linux dynamic linker is in use.
319 kx dynamic_linker='GNU/Linux ld.so'
319 kx ;;
319 kx
319 kx netbsd*)
319 kx version_type=sunos
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
319 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
319 kx dynamic_linker='NetBSD (a.out) ld.so'
319 kx else
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx dynamic_linker='NetBSD ld.elf_so'
319 kx fi
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx newsos6)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx
319 kx *nto* | *qnx*)
319 kx version_type=qnx
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx hardcode_into_libs=yes
319 kx dynamic_linker='ldqnx.so'
319 kx ;;
319 kx
319 kx openbsd* | bitrig*)
319 kx version_type=sunos
319 kx sys_lib_dlsearch_path_spec=/usr/lib
319 kx need_lib_prefix=no
319 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
319 kx need_version=no
319 kx else
319 kx need_version=yes
319 kx fi
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
319 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx
319 kx os2*)
319 kx libname_spec='$name'
319 kx version_type=windows
319 kx shrext_cmds=.dll
319 kx need_version=no
319 kx need_lib_prefix=no
319 kx # OS/2 can only load a DLL with a base name of 8 characters or less.
319 kx soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
319 kx v=$($ECHO $release$versuffix | tr -d .-);
319 kx n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
319 kx $ECHO $n$v`$shared_ext'
319 kx library_names_spec='${libname}_dll.$libext'
319 kx dynamic_linker='OS/2 ld.exe'
319 kx shlibpath_var=BEGINLIBPATH
319 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
319 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
319 kx postinstall_cmds='base_file=`basename \$file`~
319 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
319 kx dldir=$destdir/`dirname \$dlpath`~
319 kx test -d \$dldir || mkdir -p \$dldir~
319 kx $install_prog $dir/$dlname \$dldir/$dlname~
319 kx chmod a+x \$dldir/$dlname~
319 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
319 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
319 kx fi'
319 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
319 kx dlpath=$dir/\$dldll~
319 kx $RM \$dlpath'
319 kx ;;
319 kx
319 kx osf3* | osf4* | osf5*)
319 kx version_type=osf
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
319 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
319 kx ;;
319 kx
319 kx rdos*)
319 kx dynamic_linker=no
319 kx ;;
319 kx
319 kx solaris*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx # ldd complains unless libraries are executable
319 kx postinstall_cmds='chmod +x $lib'
319 kx ;;
319 kx
319 kx sunos4*)
319 kx version_type=sunos
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
319 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx if test yes = "$with_gnu_ld"; then
319 kx need_lib_prefix=no
319 kx fi
319 kx need_version=yes
319 kx ;;
319 kx
319 kx sysv4 | sysv4.3*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx case $host_vendor in
319 kx sni)
319 kx shlibpath_overrides_runpath=no
319 kx need_lib_prefix=no
319 kx runpath_var=LD_RUN_PATH
319 kx ;;
319 kx siemens)
319 kx need_lib_prefix=no
319 kx ;;
319 kx motorola)
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx shlibpath_overrides_runpath=no
319 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx sysv4*MP*)
319 kx if test -d /usr/nec; then
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
319 kx soname_spec='$libname$shared_ext.$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx fi
319 kx ;;
319 kx
319 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
319 kx version_type=sco
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx if test yes = "$with_gnu_ld"; then
319 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
319 kx else
319 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
319 kx case $host_os in
319 kx sco3.2v5*)
319 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
319 kx ;;
319 kx esac
319 kx fi
319 kx sys_lib_dlsearch_path_spec='/usr/lib'
319 kx ;;
319 kx
319 kx tpf*)
319 kx # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx uts4*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx ;;
319 kx
319 kx *)
319 kx dynamic_linker=no
319 kx ;;
319 kx esac
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
319 kx printf "%s\n" "$dynamic_linker" >&6; }
319 kx test no = "$dynamic_linker" && can_build_shared=no
319 kx
319 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
319 kx if test yes = "$GCC"; then
319 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
319 kx fi
319 kx
319 kx if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
319 kx sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
319 kx fi
319 kx
319 kx if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
319 kx sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
319 kx fi
319 kx
319 kx # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
319 kx configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
319 kx
319 kx # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
319 kx func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
319 kx
319 kx # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
319 kx configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
319 kx printf %s "checking how to hardcode library paths into programs... " >&6; }
319 kx hardcode_action=
319 kx if test -n "$hardcode_libdir_flag_spec" ||
319 kx test -n "$runpath_var" ||
319 kx test yes = "$hardcode_automatic"; then
319 kx
319 kx # We can hardcode non-existent directories.
319 kx if test no != "$hardcode_direct" &&
319 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
319 kx # have to relink, otherwise we might link with an installed library
319 kx # when we should be linking with a yet-to-be-installed one
319 kx ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
319 kx test no != "$hardcode_minus_L"; then
319 kx # Linking always hardcodes the temporary library directory.
319 kx hardcode_action=relink
319 kx else
319 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
319 kx hardcode_action=immediate
319 kx fi
319 kx else
319 kx # We cannot hardcode anything, or else we can only hardcode existing
319 kx # directories.
319 kx hardcode_action=unsupported
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
319 kx printf "%s\n" "$hardcode_action" >&6; }
319 kx
319 kx if test relink = "$hardcode_action" ||
319 kx test yes = "$inherit_rpath"; then
319 kx # Fast installation is not supported
319 kx enable_fast_install=no
319 kx elif test yes = "$shlibpath_overrides_runpath" ||
319 kx test no = "$enable_shared"; then
319 kx # Fast installation is not necessary
319 kx enable_fast_install=needless
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx if test yes != "$enable_dlopen"; then
319 kx enable_dlopen=unknown
319 kx enable_dlopen_self=unknown
319 kx enable_dlopen_self_static=unknown
319 kx else
319 kx lt_cv_dlopen=no
319 kx lt_cv_dlopen_libs=
319 kx
319 kx case $host_os in
319 kx beos*)
319 kx lt_cv_dlopen=load_add_on
319 kx lt_cv_dlopen_libs=
319 kx lt_cv_dlopen_self=yes
319 kx ;;
319 kx
319 kx mingw* | pw32* | cegcc*)
319 kx lt_cv_dlopen=LoadLibrary
319 kx lt_cv_dlopen_libs=
319 kx ;;
319 kx
319 kx cygwin*)
319 kx lt_cv_dlopen=dlopen
319 kx lt_cv_dlopen_libs=
319 kx ;;
319 kx
319 kx darwin*)
319 kx # if libdl is installed we need to link against it
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
319 kx printf %s "checking for dlopen in -ldl... " >&6; }
319 kx if test ${ac_cv_lib_dl_dlopen+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_check_lib_save_LIBS=$LIBS
319 kx LIBS="-ldl $LIBS"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx /* Override any GCC internal prototype to avoid an error.
319 kx Use char because int might match the return type of a GCC
319 kx builtin and then its argument prototype would still apply. */
319 kx char dlopen ();
319 kx int
319 kx main (void)
319 kx {
319 kx return dlopen ();
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx ac_cv_lib_dl_dlopen=yes
319 kx else $as_nop
319 kx ac_cv_lib_dl_dlopen=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LIBS=$ac_check_lib_save_LIBS
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
319 kx printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
319 kx if test "x$ac_cv_lib_dl_dlopen" = xyes
319 kx then :
319 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
319 kx else $as_nop
319 kx
319 kx lt_cv_dlopen=dyld
319 kx lt_cv_dlopen_libs=
319 kx lt_cv_dlopen_self=yes
319 kx
319 kx fi
319 kx
319 kx ;;
319 kx
319 kx tpf*)
319 kx # Don't try to run any link tests for TPF. We know it's impossible
319 kx # because TPF is a cross-compiler, and we know how we open DSOs.
319 kx lt_cv_dlopen=dlopen
319 kx lt_cv_dlopen_libs=
319 kx lt_cv_dlopen_self=no
319 kx ;;
319 kx
319 kx *)
319 kx ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
319 kx if test "x$ac_cv_func_shl_load" = xyes
319 kx then :
319 kx lt_cv_dlopen=shl_load
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
319 kx printf %s "checking for shl_load in -ldld... " >&6; }
319 kx if test ${ac_cv_lib_dld_shl_load+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_check_lib_save_LIBS=$LIBS
319 kx LIBS="-ldld $LIBS"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx /* Override any GCC internal prototype to avoid an error.
319 kx Use char because int might match the return type of a GCC
319 kx builtin and then its argument prototype would still apply. */
319 kx char shl_load ();
319 kx int
319 kx main (void)
319 kx {
319 kx return shl_load ();
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx ac_cv_lib_dld_shl_load=yes
319 kx else $as_nop
319 kx ac_cv_lib_dld_shl_load=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LIBS=$ac_check_lib_save_LIBS
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
319 kx printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
319 kx if test "x$ac_cv_lib_dld_shl_load" = xyes
319 kx then :
319 kx lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
319 kx else $as_nop
319 kx ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
319 kx if test "x$ac_cv_func_dlopen" = xyes
319 kx then :
319 kx lt_cv_dlopen=dlopen
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
319 kx printf %s "checking for dlopen in -ldl... " >&6; }
319 kx if test ${ac_cv_lib_dl_dlopen+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_check_lib_save_LIBS=$LIBS
319 kx LIBS="-ldl $LIBS"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx /* Override any GCC internal prototype to avoid an error.
319 kx Use char because int might match the return type of a GCC
319 kx builtin and then its argument prototype would still apply. */
319 kx char dlopen ();
319 kx int
319 kx main (void)
319 kx {
319 kx return dlopen ();
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx ac_cv_lib_dl_dlopen=yes
319 kx else $as_nop
319 kx ac_cv_lib_dl_dlopen=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LIBS=$ac_check_lib_save_LIBS
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
319 kx printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
319 kx if test "x$ac_cv_lib_dl_dlopen" = xyes
319 kx then :
319 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
319 kx printf %s "checking for dlopen in -lsvld... " >&6; }
319 kx if test ${ac_cv_lib_svld_dlopen+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_check_lib_save_LIBS=$LIBS
319 kx LIBS="-lsvld $LIBS"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx /* Override any GCC internal prototype to avoid an error.
319 kx Use char because int might match the return type of a GCC
319 kx builtin and then its argument prototype would still apply. */
319 kx char dlopen ();
319 kx int
319 kx main (void)
319 kx {
319 kx return dlopen ();
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx ac_cv_lib_svld_dlopen=yes
319 kx else $as_nop
319 kx ac_cv_lib_svld_dlopen=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LIBS=$ac_check_lib_save_LIBS
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
319 kx printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
319 kx if test "x$ac_cv_lib_svld_dlopen" = xyes
319 kx then :
319 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
319 kx else $as_nop
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
319 kx printf %s "checking for dld_link in -ldld... " >&6; }
319 kx if test ${ac_cv_lib_dld_dld_link+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_check_lib_save_LIBS=$LIBS
319 kx LIBS="-ldld $LIBS"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx /* Override any GCC internal prototype to avoid an error.
319 kx Use char because int might match the return type of a GCC
319 kx builtin and then its argument prototype would still apply. */
319 kx char dld_link ();
319 kx int
319 kx main (void)
319 kx {
319 kx return dld_link ();
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx ac_cv_lib_dld_dld_link=yes
319 kx else $as_nop
319 kx ac_cv_lib_dld_dld_link=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LIBS=$ac_check_lib_save_LIBS
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
319 kx printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
319 kx if test "x$ac_cv_lib_dld_dld_link" = xyes
319 kx then :
319 kx lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
319 kx fi
319 kx
319 kx
319 kx fi
319 kx
319 kx
319 kx fi
319 kx
319 kx
319 kx fi
319 kx
319 kx
319 kx fi
319 kx
319 kx
319 kx fi
319 kx
319 kx ;;
319 kx esac
319 kx
319 kx if test no = "$lt_cv_dlopen"; then
319 kx enable_dlopen=no
319 kx else
319 kx enable_dlopen=yes
319 kx fi
319 kx
319 kx case $lt_cv_dlopen in
319 kx dlopen)
319 kx save_CPPFLAGS=$CPPFLAGS
319 kx test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
319 kx
319 kx save_LDFLAGS=$LDFLAGS
319 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
319 kx
319 kx save_LIBS=$LIBS
319 kx LIBS="$lt_cv_dlopen_libs $LIBS"
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
319 kx printf %s "checking whether a program can dlopen itself... " >&6; }
319 kx if test ${lt_cv_dlopen_self+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test yes = "$cross_compiling"; then :
319 kx lt_cv_dlopen_self=cross
319 kx else
319 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
319 kx lt_status=$lt_dlunknown
319 kx cat > conftest.$ac_ext <<_LT_EOF
319 kx #line $LINENO "configure"
319 kx #include "confdefs.h"
319 kx
319 kx #if HAVE_DLFCN_H
319 kx #include <dlfcn.h>
319 kx #endif
319 kx
319 kx #include <stdio.h>
319 kx
319 kx #ifdef RTLD_GLOBAL
319 kx # define LT_DLGLOBAL RTLD_GLOBAL
319 kx #else
319 kx # ifdef DL_GLOBAL
319 kx # define LT_DLGLOBAL DL_GLOBAL
319 kx # else
319 kx # define LT_DLGLOBAL 0
319 kx # endif
319 kx #endif
319 kx
319 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
319 kx find out it does not work in some platform. */
319 kx #ifndef LT_DLLAZY_OR_NOW
319 kx # ifdef RTLD_LAZY
319 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
319 kx # else
319 kx # ifdef DL_LAZY
319 kx # define LT_DLLAZY_OR_NOW DL_LAZY
319 kx # else
319 kx # ifdef RTLD_NOW
319 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
319 kx # else
319 kx # ifdef DL_NOW
319 kx # define LT_DLLAZY_OR_NOW DL_NOW
319 kx # else
319 kx # define LT_DLLAZY_OR_NOW 0
319 kx # endif
319 kx # endif
319 kx # endif
319 kx # endif
319 kx #endif
319 kx
319 kx /* When -fvisibility=hidden is used, assume the code has been annotated
319 kx correspondingly for the symbols needed. */
319 kx #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
319 kx int fnord () __attribute__((visibility("default")));
319 kx #endif
319 kx
319 kx int fnord () { return 42; }
319 kx int main ()
319 kx {
319 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
319 kx int status = $lt_dlunknown;
319 kx
319 kx if (self)
319 kx {
319 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
319 kx else
319 kx {
319 kx if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
319 kx else puts (dlerror ());
319 kx }
319 kx /* dlclose (self); */
319 kx }
319 kx else
319 kx puts (dlerror ());
319 kx
319 kx return status;
319 kx }
319 kx _LT_EOF
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
319 kx (eval $ac_link) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
319 kx (./conftest; exit; ) >&5 2>/dev/null
319 kx lt_status=$?
319 kx case x$lt_status in
319 kx x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
319 kx x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
319 kx x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
319 kx esac
319 kx else :
319 kx # compilation failed
319 kx lt_cv_dlopen_self=no
319 kx fi
319 kx fi
319 kx rm -fr conftest*
319 kx
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
319 kx printf "%s\n" "$lt_cv_dlopen_self" >&6; }
319 kx
319 kx if test yes = "$lt_cv_dlopen_self"; then
319 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
319 kx printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
319 kx if test ${lt_cv_dlopen_self_static+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test yes = "$cross_compiling"; then :
319 kx lt_cv_dlopen_self_static=cross
319 kx else
319 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
319 kx lt_status=$lt_dlunknown
319 kx cat > conftest.$ac_ext <<_LT_EOF
319 kx #line $LINENO "configure"
319 kx #include "confdefs.h"
319 kx
319 kx #if HAVE_DLFCN_H
319 kx #include <dlfcn.h>
319 kx #endif
319 kx
319 kx #include <stdio.h>
319 kx
319 kx #ifdef RTLD_GLOBAL
319 kx # define LT_DLGLOBAL RTLD_GLOBAL
319 kx #else
319 kx # ifdef DL_GLOBAL
319 kx # define LT_DLGLOBAL DL_GLOBAL
319 kx # else
319 kx # define LT_DLGLOBAL 0
319 kx # endif
319 kx #endif
319 kx
319 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
319 kx find out it does not work in some platform. */
319 kx #ifndef LT_DLLAZY_OR_NOW
319 kx # ifdef RTLD_LAZY
319 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
319 kx # else
319 kx # ifdef DL_LAZY
319 kx # define LT_DLLAZY_OR_NOW DL_LAZY
319 kx # else
319 kx # ifdef RTLD_NOW
319 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
319 kx # else
319 kx # ifdef DL_NOW
319 kx # define LT_DLLAZY_OR_NOW DL_NOW
319 kx # else
319 kx # define LT_DLLAZY_OR_NOW 0
319 kx # endif
319 kx # endif
319 kx # endif
319 kx # endif
319 kx #endif
319 kx
319 kx /* When -fvisibility=hidden is used, assume the code has been annotated
319 kx correspondingly for the symbols needed. */
319 kx #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
319 kx int fnord () __attribute__((visibility("default")));
319 kx #endif
319 kx
319 kx int fnord () { return 42; }
319 kx int main ()
319 kx {
319 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
319 kx int status = $lt_dlunknown;
319 kx
319 kx if (self)
319 kx {
319 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
319 kx else
319 kx {
319 kx if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
319 kx else puts (dlerror ());
319 kx }
319 kx /* dlclose (self); */
319 kx }
319 kx else
319 kx puts (dlerror ());
319 kx
319 kx return status;
319 kx }
319 kx _LT_EOF
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
319 kx (eval $ac_link) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
319 kx (./conftest; exit; ) >&5 2>/dev/null
319 kx lt_status=$?
319 kx case x$lt_status in
319 kx x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
319 kx x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
319 kx x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
319 kx esac
319 kx else :
319 kx # compilation failed
319 kx lt_cv_dlopen_self_static=no
319 kx fi
319 kx fi
319 kx rm -fr conftest*
319 kx
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
319 kx printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
319 kx fi
319 kx
319 kx CPPFLAGS=$save_CPPFLAGS
319 kx LDFLAGS=$save_LDFLAGS
319 kx LIBS=$save_LIBS
319 kx ;;
319 kx esac
319 kx
319 kx case $lt_cv_dlopen_self in
319 kx yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
319 kx *) enable_dlopen_self=unknown ;;
319 kx esac
319 kx
319 kx case $lt_cv_dlopen_self_static in
319 kx yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
319 kx *) enable_dlopen_self_static=unknown ;;
319 kx esac
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx striplib=
319 kx old_striplib=
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
319 kx printf %s "checking whether stripping libraries is possible... " >&6; }
319 kx if test -z "$STRIP"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx else
319 kx if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
319 kx old_striplib="$STRIP --strip-debug"
319 kx striplib="$STRIP --strip-unneeded"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
319 kx printf "%s\n" "yes" >&6; }
319 kx else
319 kx case $host_os in
319 kx darwin*)
319 kx # FIXME - insert some real tests, host_os isn't really good enough
319 kx striplib="$STRIP -x"
319 kx old_striplib="$STRIP -S"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
319 kx printf "%s\n" "yes" >&6; }
319 kx ;;
319 kx freebsd*)
319 kx if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
319 kx old_striplib="$STRIP --strip-debug"
319 kx striplib="$STRIP --strip-unneeded"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
319 kx printf "%s\n" "yes" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx ;;
319 kx *)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx ;;
319 kx esac
319 kx fi
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Report what library types will actually be built
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
319 kx printf %s "checking if libtool supports shared libraries... " >&6; }
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
319 kx printf "%s\n" "$can_build_shared" >&6; }
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
319 kx printf %s "checking whether to build shared libraries... " >&6; }
319 kx test no = "$can_build_shared" && enable_shared=no
319 kx
319 kx # On AIX, shared libraries and static libraries use the same namespace, and
319 kx # are all built from PIC.
319 kx case $host_os in
319 kx aix3*)
319 kx test yes = "$enable_shared" && enable_static=no
319 kx if test -n "$RANLIB"; then
319 kx archive_cmds="$archive_cmds~\$RANLIB \$lib"
319 kx postinstall_cmds='$RANLIB $lib'
319 kx fi
319 kx ;;
319 kx
319 kx aix[4-9]*)
319 kx if test ia64 != "$host_cpu"; then
319 kx case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
319 kx yes,aix,yes) ;; # shared object as lib.so file only
319 kx yes,svr4,*) ;; # shared object as lib.so archive member only
319 kx yes,*) enable_static=no ;; # shared object in lib.a archive as well
319 kx esac
319 kx fi
319 kx ;;
319 kx esac
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
319 kx printf "%s\n" "$enable_shared" >&6; }
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
319 kx printf %s "checking whether to build static libraries... " >&6; }
319 kx # Make sure either enable_shared or enable_static is yes.
319 kx test yes = "$enable_shared" || enable_static=yes
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
319 kx printf "%s\n" "$enable_static" >&6; }
319 kx
319 kx
319 kx
319 kx
319 kx fi
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx CC=$lt_save_CC
319 kx
319 kx if test -n "$CXX" && ( test no != "$CXX" &&
319 kx ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
319 kx (test g++ != "$CXX"))); then
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
319 kx printf %s "checking how to run the C++ preprocessor... " >&6; }
319 kx if test -z "$CXXCPP"; then
319 kx if test ${ac_cv_prog_CXXCPP+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx # Double quotes because $CXX needs to be expanded
319 kx for CXXCPP in "$CXX -E" cpp /lib/cpp
319 kx do
319 kx ac_preproc_ok=false
319 kx for ac_cxx_preproc_warn_flag in '' yes
319 kx do
319 kx # Use a header file that comes with gcc, so configuring glibc
319 kx # with a fresh cross-compiler works.
319 kx # On the NeXT, cc -E runs the code through the compiler's parser,
319 kx # not just through cpp. "Syntax error" is here to catch this case.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <limits.h>
319 kx Syntax error
319 kx _ACEOF
319 kx if ac_fn_cxx_try_cpp "$LINENO"
319 kx then :
319 kx
319 kx else $as_nop
319 kx # Broken: fails on valid input.
319 kx continue
319 kx fi
319 kx rm -f conftest.err conftest.i conftest.$ac_ext
319 kx
319 kx # OK, works on sane cases. Now check whether nonexistent headers
319 kx # can be detected and how.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <ac_nonexistent.h>
319 kx _ACEOF
319 kx if ac_fn_cxx_try_cpp "$LINENO"
319 kx then :
319 kx # Broken: success on invalid input.
319 kx continue
319 kx else $as_nop
319 kx # Passes both tests.
319 kx ac_preproc_ok=:
319 kx break
319 kx fi
319 kx rm -f conftest.err conftest.i conftest.$ac_ext
319 kx
319 kx done
319 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
319 kx rm -f conftest.i conftest.err conftest.$ac_ext
319 kx if $ac_preproc_ok
319 kx then :
319 kx break
319 kx fi
319 kx
319 kx done
319 kx ac_cv_prog_CXXCPP=$CXXCPP
319 kx
319 kx fi
319 kx CXXCPP=$ac_cv_prog_CXXCPP
319 kx else
319 kx ac_cv_prog_CXXCPP=$CXXCPP
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
319 kx printf "%s\n" "$CXXCPP" >&6; }
319 kx ac_preproc_ok=false
319 kx for ac_cxx_preproc_warn_flag in '' yes
319 kx do
319 kx # Use a header file that comes with gcc, so configuring glibc
319 kx # with a fresh cross-compiler works.
319 kx # On the NeXT, cc -E runs the code through the compiler's parser,
319 kx # not just through cpp. "Syntax error" is here to catch this case.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <limits.h>
319 kx Syntax error
319 kx _ACEOF
319 kx if ac_fn_cxx_try_cpp "$LINENO"
319 kx then :
319 kx
319 kx else $as_nop
319 kx # Broken: fails on valid input.
319 kx continue
319 kx fi
319 kx rm -f conftest.err conftest.i conftest.$ac_ext
319 kx
319 kx # OK, works on sane cases. Now check whether nonexistent headers
319 kx # can be detected and how.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <ac_nonexistent.h>
319 kx _ACEOF
319 kx if ac_fn_cxx_try_cpp "$LINENO"
319 kx then :
319 kx # Broken: success on invalid input.
319 kx continue
319 kx else $as_nop
319 kx # Passes both tests.
319 kx ac_preproc_ok=:
319 kx break
319 kx fi
319 kx rm -f conftest.err conftest.i conftest.$ac_ext
319 kx
319 kx done
319 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
319 kx rm -f conftest.i conftest.err conftest.$ac_ext
319 kx if $ac_preproc_ok
319 kx then :
319 kx
319 kx else $as_nop
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
319 kx See \`config.log' for more details" "$LINENO" 5; }
319 kx fi
319 kx
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx else
319 kx _lt_caught_CXX_error=yes
319 kx fi
319 kx
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx
319 kx archive_cmds_need_lc_CXX=no
319 kx allow_undefined_flag_CXX=
319 kx always_export_symbols_CXX=no
319 kx archive_expsym_cmds_CXX=
319 kx compiler_needs_object_CXX=no
319 kx export_dynamic_flag_spec_CXX=
319 kx hardcode_direct_CXX=no
319 kx hardcode_direct_absolute_CXX=no
319 kx hardcode_libdir_flag_spec_CXX=
319 kx hardcode_libdir_separator_CXX=
319 kx hardcode_minus_L_CXX=no
319 kx hardcode_shlibpath_var_CXX=unsupported
319 kx hardcode_automatic_CXX=no
319 kx inherit_rpath_CXX=no
319 kx module_cmds_CXX=
319 kx module_expsym_cmds_CXX=
319 kx link_all_deplibs_CXX=unknown
319 kx old_archive_cmds_CXX=$old_archive_cmds
319 kx reload_flag_CXX=$reload_flag
319 kx reload_cmds_CXX=$reload_cmds
319 kx no_undefined_flag_CXX=
319 kx whole_archive_flag_spec_CXX=
319 kx enable_shared_with_static_runtimes_CXX=no
319 kx
319 kx # Source file extension for C++ test sources.
319 kx ac_ext=cpp
319 kx
319 kx # Object file extension for compiled C++ test sources.
319 kx objext=o
319 kx objext_CXX=$objext
319 kx
319 kx # No sense in running all these tests if we already determined that
319 kx # the CXX compiler isn't working. Some variables (like enable_shared)
319 kx # are currently assumed to apply to all compilers on this platform,
319 kx # and will be corrupted by setting them based on a non-working compiler.
319 kx if test yes != "$_lt_caught_CXX_error"; then
319 kx # Code to be used in simple compile tests
319 kx lt_simple_compile_test_code="int some_variable = 0;"
319 kx
319 kx # Code to be used in simple link tests
319 kx lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
319 kx
319 kx # ltmain only uses $CC for tagged configurations so make sure $CC is set.
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # If no C compiler was specified, use CC.
319 kx LTCC=${LTCC-"$CC"}
319 kx
319 kx # If no C compiler flags were specified, use CFLAGS.
319 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
319 kx
319 kx # Allow CC to be a program name with arguments.
319 kx compiler=$CC
319 kx
319 kx
319 kx # save warnings/boilerplate of simple test code
319 kx ac_outfile=conftest.$ac_objext
319 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
319 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
319 kx _lt_compiler_boilerplate=`cat conftest.err`
319 kx $RM conftest*
319 kx
319 kx ac_outfile=conftest.$ac_objext
319 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
319 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
319 kx _lt_linker_boilerplate=`cat conftest.err`
319 kx $RM -r conftest*
319 kx
319 kx
319 kx # Allow CC to be a program name with arguments.
319 kx lt_save_CC=$CC
319 kx lt_save_CFLAGS=$CFLAGS
319 kx lt_save_LD=$LD
319 kx lt_save_GCC=$GCC
319 kx GCC=$GXX
319 kx lt_save_with_gnu_ld=$with_gnu_ld
319 kx lt_save_path_LD=$lt_cv_path_LD
319 kx if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
319 kx lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
319 kx else
319 kx $as_unset lt_cv_prog_gnu_ld
319 kx fi
319 kx if test -n "${lt_cv_path_LDCXX+set}"; then
319 kx lt_cv_path_LD=$lt_cv_path_LDCXX
319 kx else
319 kx $as_unset lt_cv_path_LD
319 kx fi
319 kx test -z "${LDCXX+set}" || LD=$LDCXX
319 kx CC=${CXX-"c++"}
319 kx CFLAGS=$CXXFLAGS
319 kx compiler=$CC
319 kx compiler_CXX=$CC
319 kx func_cc_basename $compiler
319 kx cc_basename=$func_cc_basename_result
319 kx
319 kx
319 kx if test -n "$compiler"; then
319 kx # We don't want -fno-exception when compiling C++ code, so set the
319 kx # no_builtin_flag separately
319 kx if test yes = "$GXX"; then
319 kx lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
319 kx else
319 kx lt_prog_compiler_no_builtin_flag_CXX=
319 kx fi
319 kx
319 kx if test yes = "$GXX"; then
319 kx # Set up default GNU C++ configuration
319 kx
319 kx
319 kx
319 kx # Check whether --with-gnu-ld was given.
319 kx if test ${with_gnu_ld+y}
319 kx then :
319 kx withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
319 kx else $as_nop
319 kx with_gnu_ld=no
319 kx fi
319 kx
319 kx ac_prog=ld
319 kx if test yes = "$GCC"; then
319 kx # Check if gcc -print-prog-name=ld gives a path.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
319 kx printf %s "checking for ld used by $CC... " >&6; }
319 kx case $host in
319 kx *-*-mingw*)
319 kx # gcc leaves a trailing carriage return, which upsets mingw
319 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
319 kx *)
319 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
319 kx esac
319 kx case $ac_prog in
319 kx # Accept absolute paths.
319 kx [\\/]* | ?:[\\/]*)
319 kx re_direlt='/[^/][^/]*/\.\./'
319 kx # Canonicalize the pathname of ld
319 kx ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
319 kx while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
319 kx ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
319 kx done
319 kx test -z "$LD" && LD=$ac_prog
319 kx ;;
319 kx "")
319 kx # If it fails, then pretend we aren't using GCC.
319 kx ac_prog=ld
319 kx ;;
319 kx *)
319 kx # If it is relative, then search for the first ld in PATH.
319 kx with_gnu_ld=unknown
319 kx ;;
319 kx esac
319 kx elif test yes = "$with_gnu_ld"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
319 kx printf %s "checking for GNU ld... " >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
319 kx printf %s "checking for non-GNU ld... " >&6; }
319 kx fi
319 kx if test ${lt_cv_path_LD+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx if test -z "$LD"; then
319 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
319 kx for ac_dir in $PATH; do
319 kx IFS=$lt_save_ifs
319 kx test -z "$ac_dir" && ac_dir=.
319 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
319 kx lt_cv_path_LD=$ac_dir/$ac_prog
319 kx # Check to see if the program is GNU ld. I'd rather use --version,
319 kx # but apparently some variants of GNU ld only accept -v.
319 kx # Break only if it was the GNU/non-GNU ld that we prefer.
319 kx case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
319 kx *GNU* | *'with BFD'*)
319 kx test no != "$with_gnu_ld" && break
319 kx ;;
319 kx *)
319 kx test yes != "$with_gnu_ld" && break
319 kx ;;
319 kx esac
319 kx fi
319 kx done
319 kx IFS=$lt_save_ifs
319 kx else
319 kx lt_cv_path_LD=$LD # Let the user override the test with a path.
319 kx fi
319 kx fi
319 kx
319 kx LD=$lt_cv_path_LD
319 kx if test -n "$LD"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
319 kx printf "%s\n" "$LD" >&6; }
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
319 kx printf "%s\n" "no" >&6; }
319 kx fi
319 kx test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
319 kx printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
319 kx if test ${lt_cv_prog_gnu_ld+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
319 kx case `$LD -v 2>&1 </dev/null` in
319 kx *GNU* | *'with BFD'*)
319 kx lt_cv_prog_gnu_ld=yes
319 kx ;;
319 kx *)
319 kx lt_cv_prog_gnu_ld=no
319 kx ;;
319 kx esac
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
319 kx printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
319 kx with_gnu_ld=$lt_cv_prog_gnu_ld
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx # Check if GNU C++ uses GNU ld as the underlying linker, since the
319 kx # archiving commands below assume that GNU ld is being used.
319 kx if test yes = "$with_gnu_ld"; then
319 kx archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
319 kx
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
319 kx export_dynamic_flag_spec_CXX='$wl--export-dynamic'
319 kx
319 kx # If archive_cmds runs LD, not CC, wlarc should be empty
319 kx # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
319 kx # investigate it a little bit more. (MM)
319 kx wlarc='$wl'
319 kx
319 kx # ancient GNU ld didn't support --whole-archive et. al.
319 kx if eval "`$CC -print-prog-name=ld` --help 2>&1" |
319 kx $GREP 'no-whole-archive' > /dev/null; then
319 kx whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
319 kx else
319 kx whole_archive_flag_spec_CXX=
319 kx fi
319 kx else
319 kx with_gnu_ld=no
319 kx wlarc=
319 kx
319 kx # A generic and very simple default shared library creation
319 kx # command for GNU C++ for the case where it uses the native
319 kx # linker, instead of GNU ld. If possible, this setting should
319 kx # overridden to take advantage of the native linker features on
319 kx # the platform it is being used on.
319 kx archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
319 kx fi
319 kx
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
319 kx
319 kx else
319 kx GXX=no
319 kx with_gnu_ld=no
319 kx wlarc=
319 kx fi
319 kx
319 kx # PORTME: fill in a description of your system's C++ link characteristics
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
319 kx printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
319 kx ld_shlibs_CXX=yes
319 kx case $host_os in
319 kx aix3*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx aix[4-9]*)
319 kx if test ia64 = "$host_cpu"; then
319 kx # On IA64, the linker does run time linking by default, so we don't
319 kx # have to do anything special.
319 kx aix_use_runtimelinking=no
319 kx exp_sym_flag='-Bexport'
319 kx no_entry_flag=
319 kx else
319 kx aix_use_runtimelinking=no
319 kx
319 kx # Test if we are trying to use run time linking or normal
319 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
319 kx # have runtime linking enabled, and use it for executables.
319 kx # For shared libraries, we enable/disable runtime linking
319 kx # depending on the kind of the shared library created -
319 kx # when "with_aix_soname,aix_use_runtimelinking" is:
319 kx # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
319 kx # "aix,yes" lib.so shared, rtl:yes, for executables
319 kx # lib.a static archive
319 kx # "both,no" lib.so.V(shr.o) shared, rtl:yes
319 kx # lib.a(lib.so.V) shared, rtl:no, for executables
319 kx # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
319 kx # lib.a(lib.so.V) shared, rtl:no
319 kx # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
319 kx # lib.a static archive
319 kx case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
319 kx for ld_flag in $LDFLAGS; do
319 kx case $ld_flag in
319 kx *-brtl*)
319 kx aix_use_runtimelinking=yes
319 kx break
319 kx ;;
319 kx esac
319 kx done
319 kx if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
319 kx # With aix-soname=svr4, we create the lib.so.V shared archives only,
319 kx # so we don't have lib.a shared libs to link our executables.
319 kx # We have to force runtime linking in this case.
319 kx aix_use_runtimelinking=yes
319 kx LDFLAGS="$LDFLAGS -Wl,-brtl"
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx exp_sym_flag='-bexport'
319 kx no_entry_flag='-bnoentry'
319 kx fi
319 kx
319 kx # When large executables or shared objects are built, AIX ld can
319 kx # have problems creating the table of contents. If linking a library
319 kx # or program results in "error TOC overflow" add -mminimal-toc to
319 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
319 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
319 kx
319 kx archive_cmds_CXX=''
319 kx hardcode_direct_CXX=yes
319 kx hardcode_direct_absolute_CXX=yes
319 kx hardcode_libdir_separator_CXX=':'
319 kx link_all_deplibs_CXX=yes
319 kx file_list_spec_CXX='$wl-f,'
319 kx case $with_aix_soname,$aix_use_runtimelinking in
319 kx aix,*) ;; # no import file
319 kx svr4,* | *,yes) # use import file
319 kx # The Import File defines what to hardcode.
319 kx hardcode_direct_CXX=no
319 kx hardcode_direct_absolute_CXX=no
319 kx ;;
319 kx esac
319 kx
319 kx if test yes = "$GXX"; then
319 kx case $host_os in aix4.[012]|aix4.[012].*)
319 kx # We only want to do this on AIX 4.2 and lower, the check
319 kx # below for broken collect2 doesn't work under 4.3+
319 kx collect2name=`$CC -print-prog-name=collect2`
319 kx if test -f "$collect2name" &&
319 kx strings "$collect2name" | $GREP resolve_lib_name >/dev/null
319 kx then
319 kx # We have reworked collect2
319 kx :
319 kx else
319 kx # We have old collect2
319 kx hardcode_direct_CXX=unsupported
319 kx # It fails to find uninstalled libraries when the uninstalled
319 kx # path is not listed in the libpath. Setting hardcode_minus_L
319 kx # to unsupported forces relinking
319 kx hardcode_minus_L_CXX=yes
319 kx hardcode_libdir_flag_spec_CXX='-L$libdir'
319 kx hardcode_libdir_separator_CXX=
319 kx fi
319 kx esac
319 kx shared_flag='-shared'
319 kx if test yes = "$aix_use_runtimelinking"; then
319 kx shared_flag=$shared_flag' $wl-G'
319 kx fi
319 kx # Need to ensure runtime linking is disabled for the traditional
319 kx # shared library, or the linker may eventually find shared libraries
319 kx # /with/ Import File - we do not want to mix them.
319 kx shared_flag_aix='-shared'
319 kx shared_flag_svr4='-shared $wl-G'
319 kx else
319 kx # not using gcc
319 kx if test ia64 = "$host_cpu"; then
319 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
319 kx # chokes on -Wl,-G. The following line is correct:
319 kx shared_flag='-G'
319 kx else
319 kx if test yes = "$aix_use_runtimelinking"; then
319 kx shared_flag='$wl-G'
319 kx else
319 kx shared_flag='$wl-bM:SRE'
319 kx fi
319 kx shared_flag_aix='$wl-bM:SRE'
319 kx shared_flag_svr4='$wl-G'
319 kx fi
319 kx fi
319 kx
319 kx export_dynamic_flag_spec_CXX='$wl-bexpall'
319 kx # It seems that -bexpall does not export symbols beginning with
319 kx # underscore (_), so it is better to generate a list of symbols to
319 kx # export.
319 kx always_export_symbols_CXX=yes
319 kx if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
319 kx # Warning - without using the other runtime loading flags (-brtl),
319 kx # -berok will link without error, but may produce a broken library.
319 kx # The "-G" linker flag allows undefined symbols.
319 kx no_undefined_flag_CXX='-bernotok'
319 kx # Determine the default libpath from the value encoded in an empty
319 kx # executable.
319 kx if test set = "${lt_cv_aix_libpath+set}"; then
319 kx aix_libpath=$lt_cv_aix_libpath
319 kx else
319 kx if test ${lt_cv_aix_libpath__CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_link "$LINENO"
319 kx then :
319 kx
319 kx lt_aix_libpath_sed='
319 kx /Import File Strings/,/^$/ {
319 kx /^0/ {
319 kx s/^0 *\([^ ]*\) *$/\1/
319 kx p
319 kx }
319 kx }'
319 kx lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
319 kx # Check for a 64-bit object if we didn't find anything.
319 kx if test -z "$lt_cv_aix_libpath__CXX"; then
319 kx lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
319 kx fi
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx if test -z "$lt_cv_aix_libpath__CXX"; then
319 kx lt_cv_aix_libpath__CXX=/usr/lib:/lib
319 kx fi
319 kx
319 kx fi
319 kx
319 kx aix_libpath=$lt_cv_aix_libpath__CXX
319 kx fi
319 kx
319 kx hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
319 kx
319 kx archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
319 kx else
319 kx if test ia64 = "$host_cpu"; then
319 kx hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
319 kx allow_undefined_flag_CXX="-z nodefs"
319 kx 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"
319 kx else
319 kx # Determine the default libpath from the value encoded in an
319 kx # empty executable.
319 kx if test set = "${lt_cv_aix_libpath+set}"; then
319 kx aix_libpath=$lt_cv_aix_libpath
319 kx else
319 kx if test ${lt_cv_aix_libpath__CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_link "$LINENO"
319 kx then :
319 kx
319 kx lt_aix_libpath_sed='
319 kx /Import File Strings/,/^$/ {
319 kx /^0/ {
319 kx s/^0 *\([^ ]*\) *$/\1/
319 kx p
319 kx }
319 kx }'
319 kx lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
319 kx # Check for a 64-bit object if we didn't find anything.
319 kx if test -z "$lt_cv_aix_libpath__CXX"; then
319 kx lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
319 kx fi
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx if test -z "$lt_cv_aix_libpath__CXX"; then
319 kx lt_cv_aix_libpath__CXX=/usr/lib:/lib
319 kx fi
319 kx
319 kx fi
319 kx
319 kx aix_libpath=$lt_cv_aix_libpath__CXX
319 kx fi
319 kx
319 kx hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
319 kx # Warning - without using the other run time loading flags,
319 kx # -berok will link without error, but may produce a broken library.
319 kx no_undefined_flag_CXX=' $wl-bernotok'
319 kx allow_undefined_flag_CXX=' $wl-berok'
319 kx if test yes = "$with_gnu_ld"; then
319 kx # We only use this code for GNU lds that support --whole-archive.
319 kx whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
319 kx else
319 kx # Exported symbols can be pulled into shared objects from archives
319 kx whole_archive_flag_spec_CXX='$convenience'
319 kx fi
319 kx archive_cmds_need_lc_CXX=yes
319 kx archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
319 kx # -brtl affects multiple linker settings, -berok does not and is overridden later
319 kx compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
319 kx if test svr4 != "$with_aix_soname"; then
319 kx # This is similar to how AIX traditionally builds its shared
319 kx # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
319 kx archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
319 kx fi
319 kx if test aix != "$with_aix_soname"; then
319 kx archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
319 kx else
319 kx # used by -dlpreopen to get the symbols
319 kx archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
319 kx fi
319 kx archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
319 kx fi
319 kx fi
319 kx ;;
319 kx
319 kx beos*)
319 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
319 kx allow_undefined_flag_CXX=unsupported
319 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
319 kx # support --undefined. This deserves some investigation. FIXME
319 kx archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx else
319 kx ld_shlibs_CXX=no
319 kx fi
319 kx ;;
319 kx
319 kx chorus*)
319 kx case $cc_basename in
319 kx *)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx case $GXX,$cc_basename in
319 kx ,cl* | no,cl* | ,icl* | no,icl*)
319 kx # Native MSVC or ICC
319 kx # hardcode_libdir_flag_spec is actually meaningless, as there is
319 kx # no search path for DLLs.
319 kx hardcode_libdir_flag_spec_CXX=' '
319 kx allow_undefined_flag_CXX=unsupported
319 kx always_export_symbols_CXX=yes
319 kx file_list_spec_CXX='@'
319 kx # Tell ltmain to make .lib files, not .a files.
319 kx libext=lib
319 kx # Tell ltmain to make .dll files, not .so files.
319 kx shrext_cmds=.dll
319 kx # FIXME: Setting linknames here is a bad hack.
319 kx archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
319 kx archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
319 kx cp "$export_symbols" "$output_objdir/$soname.def";
319 kx echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
319 kx else
319 kx $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
319 kx fi~
319 kx $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
319 kx linknames='
319 kx # The linker will not automatically build a static lib if we build a DLL.
319 kx # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
319 kx enable_shared_with_static_runtimes_CXX=yes
319 kx # Don't use ranlib
319 kx old_postinstall_cmds_CXX='chmod 644 $oldlib'
319 kx postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
319 kx lt_tool_outputfile="@TOOL_OUTPUT@"~
319 kx case $lt_outputfile in
319 kx *.exe|*.EXE) ;;
319 kx *)
319 kx lt_outputfile=$lt_outputfile.exe
319 kx lt_tool_outputfile=$lt_tool_outputfile.exe
319 kx ;;
319 kx esac~
319 kx func_to_tool_file "$lt_outputfile"~
319 kx if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
319 kx $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
319 kx $RM "$lt_outputfile.manifest";
319 kx fi'
319 kx ;;
319 kx *)
319 kx # g++
319 kx # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
319 kx # as there is no search path for DLLs.
319 kx hardcode_libdir_flag_spec_CXX='-L$libdir'
319 kx export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
319 kx allow_undefined_flag_CXX=unsupported
319 kx always_export_symbols_CXX=no
319 kx enable_shared_with_static_runtimes_CXX=yes
319 kx
319 kx if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
319 kx 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'
319 kx # If the export-symbols file already is a .def file, use it as
319 kx # is; otherwise, prepend EXPORTS...
319 kx archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
319 kx cp $export_symbols $output_objdir/$soname.def;
319 kx else
319 kx echo EXPORTS > $output_objdir/$soname.def;
319 kx cat $export_symbols >> $output_objdir/$soname.def;
319 kx fi~
319 kx $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'
319 kx else
319 kx ld_shlibs_CXX=no
319 kx fi
319 kx ;;
319 kx esac
319 kx ;;
319 kx darwin* | rhapsody*)
319 kx
319 kx
319 kx archive_cmds_need_lc_CXX=no
319 kx hardcode_direct_CXX=no
319 kx hardcode_automatic_CXX=yes
319 kx hardcode_shlibpath_var_CXX=unsupported
319 kx if test yes = "$lt_cv_ld_force_load"; then
319 kx whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
319 kx
319 kx else
319 kx whole_archive_flag_spec_CXX=''
319 kx fi
319 kx link_all_deplibs_CXX=yes
319 kx allow_undefined_flag_CXX=$_lt_dar_allow_undefined
319 kx case $cc_basename in
319 kx ifort*|nagfor*) _lt_dar_can_shared=yes ;;
319 kx *) _lt_dar_can_shared=$GCC ;;
319 kx esac
319 kx if test yes = "$_lt_dar_can_shared"; then
319 kx output_verbose_link_cmd=func_echo_all
319 kx 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"
319 kx module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
319 kx 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"
319 kx 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"
319 kx if test yes != "$lt_cv_apple_cc_single_mod"; then
319 kx 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"
319 kx 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"
319 kx fi
319 kx
319 kx else
319 kx ld_shlibs_CXX=no
319 kx fi
319 kx
319 kx ;;
319 kx
319 kx os2*)
319 kx hardcode_libdir_flag_spec_CXX='-L$libdir'
319 kx hardcode_minus_L_CXX=yes
319 kx allow_undefined_flag_CXX=unsupported
319 kx shrext_cmds=.dll
319 kx archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
319 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
319 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
319 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
319 kx emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
319 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
319 kx emximp -o $lib $output_objdir/$libname.def'
319 kx archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
319 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
319 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
319 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
319 kx prefix_cmds="$SED"~
319 kx if test EXPORTS = "`$SED 1q $export_symbols`"; then
319 kx prefix_cmds="$prefix_cmds -e 1d";
319 kx fi~
319 kx prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
319 kx cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
319 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
319 kx emximp -o $lib $output_objdir/$libname.def'
319 kx old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
319 kx enable_shared_with_static_runtimes_CXX=yes
319 kx file_list_spec_CXX='@'
319 kx ;;
319 kx
319 kx dgux*)
319 kx case $cc_basename in
319 kx ec++*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx ghcx*)
319 kx # Green Hills C++ Compiler
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx *)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx freebsd2.*)
319 kx # C++ shared libraries reported to be fairly broken before
319 kx # switch to ELF
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx
319 kx freebsd-elf*)
319 kx archive_cmds_need_lc_CXX=no
319 kx ;;
319 kx
319 kx freebsd* | dragonfly* | midnightbsd*)
319 kx # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
319 kx # conventions
319 kx ld_shlibs_CXX=yes
319 kx ;;
319 kx
319 kx haiku*)
319 kx archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx link_all_deplibs_CXX=yes
319 kx ;;
319 kx
319 kx hpux9*)
319 kx hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
319 kx hardcode_libdir_separator_CXX=:
319 kx export_dynamic_flag_spec_CXX='$wl-E'
319 kx hardcode_direct_CXX=yes
319 kx hardcode_minus_L_CXX=yes # Not in the search PATH,
319 kx # but as the default
319 kx # location of the library.
319 kx
319 kx case $cc_basename in
319 kx CC*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx aCC*)
319 kx 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx #
319 kx # There doesn't appear to be a way to prevent this compiler from
319 kx # explicitly linking system object files so we need to strip them
319 kx # from the output so that they don't get included in the library
319 kx # dependencies.
319 kx 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; func_echo_all "$list"'
319 kx ;;
319 kx *)
319 kx if test yes = "$GXX"; then
319 kx archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
319 kx else
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx fi
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx hpux10*|hpux11*)
319 kx if test no = "$with_gnu_ld"; then
319 kx hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
319 kx hardcode_libdir_separator_CXX=:
319 kx
319 kx case $host_cpu in
319 kx hppa*64*|ia64*)
319 kx ;;
319 kx *)
319 kx export_dynamic_flag_spec_CXX='$wl-E'
319 kx ;;
319 kx esac
319 kx fi
319 kx case $host_cpu in
319 kx hppa*64*|ia64*)
319 kx hardcode_direct_CXX=no
319 kx hardcode_shlibpath_var_CXX=no
319 kx ;;
319 kx *)
319 kx hardcode_direct_CXX=yes
319 kx hardcode_direct_absolute_CXX=yes
319 kx hardcode_minus_L_CXX=yes # Not in the search PATH,
319 kx # but as the default
319 kx # location of the library.
319 kx ;;
319 kx esac
319 kx
319 kx case $cc_basename in
319 kx CC*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx aCC*)
319 kx case $host_cpu in
319 kx hppa*64*)
319 kx archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319 kx ;;
319 kx ia64*)
319 kx archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319 kx ;;
319 kx *)
319 kx archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319 kx ;;
319 kx esac
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx #
319 kx # There doesn't appear to be a way to prevent this compiler from
319 kx # explicitly linking system object files so we need to strip them
319 kx # from the output so that they don't get included in the library
319 kx # dependencies.
319 kx 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; func_echo_all "$list"'
319 kx ;;
319 kx *)
319 kx if test yes = "$GXX"; then
319 kx if test no = "$with_gnu_ld"; then
319 kx case $host_cpu in
319 kx hppa*64*)
319 kx archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319 kx ;;
319 kx ia64*)
319 kx archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319 kx ;;
319 kx *)
319 kx archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319 kx ;;
319 kx esac
319 kx fi
319 kx else
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx fi
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx interix[3-9]*)
319 kx hardcode_direct_CXX=no
319 kx hardcode_shlibpath_var_CXX=no
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
319 kx export_dynamic_flag_spec_CXX='$wl-E'
319 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
319 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
319 kx # default) and relocated if they conflict, which is a slow very memory
319 kx # consuming and fragmenting process. To avoid this, we pick a random,
319 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
319 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
319 kx 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'
319 kx 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'
319 kx ;;
319 kx irix5* | irix6*)
319 kx case $cc_basename in
319 kx CC*)
319 kx # SGI C++
319 kx archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
319 kx
319 kx # Archives containing C++ object files must be created using
319 kx # "CC -ar", where "CC" is the IRIX C++ compiler. This is
319 kx # necessary to make sure instantiated templates are included
319 kx # in the archive.
319 kx old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
319 kx ;;
319 kx *)
319 kx if test yes = "$GXX"; then
319 kx if test no = "$with_gnu_ld"; then
319 kx archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
319 kx else
319 kx archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
319 kx fi
319 kx fi
319 kx link_all_deplibs_CXX=yes
319 kx ;;
319 kx esac
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
319 kx hardcode_libdir_separator_CXX=:
319 kx inherit_rpath_CXX=yes
319 kx ;;
319 kx
319 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
319 kx case $cc_basename in
319 kx KCC*)
319 kx # Kuck and Associates, Inc. (KAI) C++ Compiler
319 kx
319 kx # KCC will only create a shared library if the output file
319 kx # ends with ".so" (or ".sl" for HP-UX), so rename the library
319 kx # to its proper name (with version) after linking.
319 kx 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'
319 kx 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'
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx #
319 kx # There doesn't appear to be a way to prevent this compiler from
319 kx # explicitly linking system object files so we need to strip them
319 kx # from the output so that they don't get included in the library
319 kx # dependencies.
319 kx 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; func_echo_all "$list"'
319 kx
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
319 kx export_dynamic_flag_spec_CXX='$wl--export-dynamic'
319 kx
319 kx # Archives containing C++ object files must be created using
319 kx # "CC -Bstatic", where "CC" is the KAI C++ compiler.
319 kx old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
319 kx ;;
319 kx icpc* | ecpc* )
319 kx # Intel C++
319 kx with_gnu_ld=yes
319 kx # version 8.0 and above of icpc choke on multiply defined symbols
319 kx # if we add $predep_objects and $postdep_objects, however 7.1 and
319 kx # earlier do not add the objects themselves.
319 kx case `$CC -V 2>&1` in
319 kx *"Version 7."*)
319 kx archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx 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'
319 kx ;;
319 kx *) # Version 8.0 or newer
319 kx tmp_idyn=
319 kx case $host_cpu in
319 kx ia64*) tmp_idyn=' -i_dynamic';;
319 kx esac
319 kx archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx 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'
319 kx ;;
319 kx esac
319 kx archive_cmds_need_lc_CXX=no
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
319 kx export_dynamic_flag_spec_CXX='$wl--export-dynamic'
319 kx whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
319 kx ;;
319 kx pgCC* | pgcpp*)
319 kx # Portland Group C++ compiler
319 kx case `$CC -V` in
319 kx *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
319 kx prelink_cmds_CXX='tpldir=Template.dir~
319 kx rm -rf $tpldir~
319 kx $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
319 kx compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
319 kx old_archive_cmds_CXX='tpldir=Template.dir~
319 kx rm -rf $tpldir~
319 kx $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
319 kx $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
319 kx $RANLIB $oldlib'
319 kx archive_cmds_CXX='tpldir=Template.dir~
319 kx rm -rf $tpldir~
319 kx $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
319 kx $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx archive_expsym_cmds_CXX='tpldir=Template.dir~
319 kx rm -rf $tpldir~
319 kx $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
319 kx $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
319 kx ;;
319 kx *) # Version 6 and above use weak symbols
319 kx archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx 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'
319 kx ;;
319 kx esac
319 kx
319 kx hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
319 kx export_dynamic_flag_spec_CXX='$wl--export-dynamic'
319 kx whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
319 kx ;;
319 kx cxx*)
319 kx # Compaq C++
319 kx archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx 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'
319 kx
319 kx runpath_var=LD_RUN_PATH
319 kx hardcode_libdir_flag_spec_CXX='-rpath $libdir'
319 kx hardcode_libdir_separator_CXX=:
319 kx
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx #
319 kx # There doesn't appear to be a way to prevent this compiler from
319 kx # explicitly linking system object files so we need to strip them
319 kx # from the output so that they don't get included in the library
319 kx # dependencies.
319 kx output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
319 kx ;;
319 kx xl* | mpixl* | bgxl*)
319 kx # IBM XL 8.0 on PPC, with GNU ld
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
319 kx export_dynamic_flag_spec_CXX='$wl--export-dynamic'
319 kx archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
319 kx if test yes = "$supports_anon_versioning"; then
319 kx archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
319 kx cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
319 kx echo "local: *; };" >> $output_objdir/$libname.ver~
319 kx $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
319 kx fi
319 kx ;;
319 kx *)
319 kx case `$CC -V 2>&1 | $SED 5q` in
319 kx *Sun\ C*)
319 kx # Sun C++ 5.9
319 kx no_undefined_flag_CXX=' -zdefs'
319 kx archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319 kx 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'
319 kx hardcode_libdir_flag_spec_CXX='-R$libdir'
319 kx whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
319 kx compiler_needs_object_CXX=yes
319 kx
319 kx # Not sure whether something based on
319 kx # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
319 kx # would be better.
319 kx output_verbose_link_cmd='func_echo_all'
319 kx
319 kx # Archives containing C++ object files must be created using
319 kx # "CC -xar", where "CC" is the Sun C++ compiler. This is
319 kx # necessary to make sure instantiated templates are included
319 kx # in the archive.
319 kx old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
319 kx ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx lynxos*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx
319 kx m88k*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx
319 kx mvs*)
319 kx case $cc_basename in
319 kx cxx*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx *)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx netbsd*)
319 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
319 kx archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
319 kx wlarc=
319 kx hardcode_libdir_flag_spec_CXX='-R$libdir'
319 kx hardcode_direct_CXX=yes
319 kx hardcode_shlibpath_var_CXX=no
319 kx fi
319 kx # Workaround some broken pre-1.5 toolchains
319 kx output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
319 kx ;;
319 kx
319 kx *nto* | *qnx*)
319 kx ld_shlibs_CXX=yes
319 kx ;;
319 kx
319 kx openbsd* | bitrig*)
319 kx if test -f /usr/libexec/ld.so; then
319 kx hardcode_direct_CXX=yes
319 kx hardcode_shlibpath_var_CXX=no
319 kx hardcode_direct_absolute_CXX=yes
319 kx archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
319 kx if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
319 kx archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
319 kx export_dynamic_flag_spec_CXX='$wl-E'
319 kx whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
319 kx fi
319 kx output_verbose_link_cmd=func_echo_all
319 kx else
319 kx ld_shlibs_CXX=no
319 kx fi
319 kx ;;
319 kx
319 kx osf3* | osf4* | osf5*)
319 kx case $cc_basename in
319 kx KCC*)
319 kx # Kuck and Associates, Inc. (KAI) C++ Compiler
319 kx
319 kx # KCC will only create a shared library if the output file
319 kx # ends with ".so" (or ".sl" for HP-UX), so rename the library
319 kx # to its proper name (with version) after linking.
319 kx 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'
319 kx
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
319 kx hardcode_libdir_separator_CXX=:
319 kx
319 kx # Archives containing C++ object files must be created using
319 kx # the KAI C++ compiler.
319 kx case $host in
319 kx osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
319 kx *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
319 kx esac
319 kx ;;
319 kx RCC*)
319 kx # Rational C++ 2.4.1
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx cxx*)
319 kx case $host in
319 kx osf3*)
319 kx allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
319 kx archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
319 kx ;;
319 kx *)
319 kx allow_undefined_flag_CXX=' -expect_unresolved \*'
319 kx archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
319 kx archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
319 kx echo "-hidden">> $lib.exp~
319 kx $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
319 kx $RM $lib.exp'
319 kx hardcode_libdir_flag_spec_CXX='-rpath $libdir'
319 kx ;;
319 kx esac
319 kx
319 kx hardcode_libdir_separator_CXX=:
319 kx
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx #
319 kx # There doesn't appear to be a way to prevent this compiler from
319 kx # explicitly linking system object files so we need to strip them
319 kx # from the output so that they don't get included in the library
319 kx # dependencies.
319 kx output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
319 kx ;;
319 kx *)
319 kx if test yes,no = "$GXX,$with_gnu_ld"; then
319 kx allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
319 kx case $host in
319 kx osf3*)
319 kx archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
319 kx ;;
319 kx *)
319 kx archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
319 kx ;;
319 kx esac
319 kx
319 kx hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
319 kx hardcode_libdir_separator_CXX=:
319 kx
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
319 kx
319 kx else
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx fi
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx psos*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx
319 kx sunos4*)
319 kx case $cc_basename in
319 kx CC*)
319 kx # Sun C++ 4.x
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx lcc*)
319 kx # Lucid
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx *)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx solaris*)
319 kx case $cc_basename in
319 kx CC* | sunCC*)
319 kx # Sun C++ 4.2, 5.x and Centerline C++
319 kx archive_cmds_need_lc_CXX=yes
319 kx no_undefined_flag_CXX=' -zdefs'
319 kx archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319 kx archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
319 kx $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'
319 kx
319 kx hardcode_libdir_flag_spec_CXX='-R$libdir'
319 kx hardcode_shlibpath_var_CXX=no
319 kx case $host_os in
319 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
319 kx *)
319 kx # The compiler driver will combine and reorder linker options,
319 kx # but understands '-z linker_flag'.
319 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
319 kx whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
319 kx ;;
319 kx esac
319 kx link_all_deplibs_CXX=yes
319 kx
319 kx output_verbose_link_cmd='func_echo_all'
319 kx
319 kx # Archives containing C++ object files must be created using
319 kx # "CC -xar", where "CC" is the Sun C++ compiler. This is
319 kx # necessary to make sure instantiated templates are included
319 kx # in the archive.
319 kx old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
319 kx ;;
319 kx gcx*)
319 kx # Green Hills C++ Compiler
319 kx archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
319 kx
319 kx # The C++ compiler must be used to create the archive.
319 kx old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
319 kx ;;
319 kx *)
319 kx # GNU C++ compiler with Solaris linker
319 kx if test yes,no = "$GXX,$with_gnu_ld"; then
319 kx no_undefined_flag_CXX=' $wl-z ${wl}defs'
319 kx if $CC --version | $GREP -v '^2\.7' > /dev/null; then
319 kx archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
319 kx archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
319 kx $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
319 kx
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
319 kx else
319 kx # g++ 2.7 appears to require '-G' NOT '-shared' on this
319 kx # platform.
319 kx archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
319 kx archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
319 kx $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
319 kx
319 kx # Commands to make compiler produce verbose output that lists
319 kx # what "hidden" libraries, object files and flags are used when
319 kx # linking a shared library.
319 kx output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
319 kx fi
319 kx
319 kx hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
319 kx case $host_os in
319 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
319 kx *)
319 kx whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
319 kx ;;
319 kx esac
319 kx fi
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
319 kx no_undefined_flag_CXX='$wl-z,text'
319 kx archive_cmds_need_lc_CXX=no
319 kx hardcode_shlibpath_var_CXX=no
319 kx runpath_var='LD_RUN_PATH'
319 kx
319 kx case $cc_basename in
319 kx CC*)
319 kx archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx *)
319 kx archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx sysv5* | sco3.2v5* | sco5v6*)
319 kx # Note: We CANNOT use -z defs as we might desire, because we do not
319 kx # link with -lc, and that would cause any symbols used from libc to
319 kx # always be unresolved, which means just about no library would
319 kx # ever link correctly. If we're not using GNU ld we use -z text
319 kx # though, which does catch some bad symbols but isn't as heavy-handed
319 kx # as -z defs.
319 kx no_undefined_flag_CXX='$wl-z,text'
319 kx allow_undefined_flag_CXX='$wl-z,nodefs'
319 kx archive_cmds_need_lc_CXX=no
319 kx hardcode_shlibpath_var_CXX=no
319 kx hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
319 kx hardcode_libdir_separator_CXX=':'
319 kx link_all_deplibs_CXX=yes
319 kx export_dynamic_flag_spec_CXX='$wl-Bexport'
319 kx runpath_var='LD_RUN_PATH'
319 kx
319 kx case $cc_basename in
319 kx CC*)
319 kx archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
319 kx '"$old_archive_cmds_CXX"
319 kx reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
319 kx '"$reload_cmds_CXX"
319 kx ;;
319 kx *)
319 kx archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx tandem*)
319 kx case $cc_basename in
319 kx NCC*)
319 kx # NonStop-UX NCC 3.20
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx *)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx vxworks*)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx
319 kx *)
319 kx # FIXME: insert proper C++ library support
319 kx ld_shlibs_CXX=no
319 kx ;;
319 kx esac
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
319 kx printf "%s\n" "$ld_shlibs_CXX" >&6; }
319 kx test no = "$ld_shlibs_CXX" && can_build_shared=no
319 kx
319 kx GCC_CXX=$GXX
319 kx LD_CXX=$LD
319 kx
319 kx ## CAVEAT EMPTOR:
319 kx ## There is no encapsulation within the following macros, do not change
319 kx ## the running order or otherwise move them around unless you know exactly
319 kx ## what you are doing...
319 kx # Dependencies to place before and after the object being linked:
319 kx predep_objects_CXX=
319 kx postdep_objects_CXX=
319 kx predeps_CXX=
319 kx postdeps_CXX=
319 kx compiler_lib_search_path_CXX=
319 kx
319 kx cat > conftest.$ac_ext <<_LT_EOF
319 kx class Foo
319 kx {
319 kx public:
319 kx Foo (void) { a = 0; }
319 kx private:
319 kx int a;
319 kx };
319 kx _LT_EOF
319 kx
319 kx
319 kx _lt_libdeps_save_CFLAGS=$CFLAGS
319 kx case "$CC $CFLAGS " in #(
319 kx *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
319 kx *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
319 kx *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
319 kx esac
319 kx
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }; then
319 kx # Parse the compiler output and extract the necessary
319 kx # objects, libraries and library flags.
319 kx
319 kx # Sentinel used to keep track of whether or not we are before
319 kx # the conftest object file.
319 kx pre_test_object_deps_done=no
319 kx
319 kx for p in `eval "$output_verbose_link_cmd"`; do
319 kx case $prev$p in
319 kx
319 kx -L* | -R* | -l*)
319 kx # Some compilers place space between "-{L,R}" and the path.
319 kx # Remove the space.
319 kx if test x-L = "$p" ||
319 kx test x-R = "$p"; then
319 kx prev=$p
319 kx continue
319 kx fi
319 kx
319 kx # Expand the sysroot to ease extracting the directories later.
319 kx if test -z "$prev"; then
319 kx case $p in
319 kx -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
319 kx -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
319 kx -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
319 kx esac
319 kx fi
319 kx case $p in
319 kx =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
319 kx esac
319 kx if test no = "$pre_test_object_deps_done"; then
319 kx case $prev in
319 kx -L | -R)
319 kx # Internal compiler library paths should come after those
319 kx # provided the user. The postdeps already come after the
319 kx # user supplied libs so there is no need to process them.
319 kx if test -z "$compiler_lib_search_path_CXX"; then
319 kx compiler_lib_search_path_CXX=$prev$p
319 kx else
319 kx compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
319 kx fi
319 kx ;;
319 kx # The "-l" case would never come before the object being
319 kx # linked, so don't bother handling this case.
319 kx esac
319 kx else
319 kx if test -z "$postdeps_CXX"; then
319 kx postdeps_CXX=$prev$p
319 kx else
319 kx postdeps_CXX="${postdeps_CXX} $prev$p"
319 kx fi
319 kx fi
319 kx prev=
319 kx ;;
319 kx
319 kx *.lto.$objext) ;; # Ignore GCC LTO objects
319 kx *.$objext)
319 kx # This assumes that the test object file only shows up
319 kx # once in the compiler output.
319 kx if test "$p" = "conftest.$objext"; then
319 kx pre_test_object_deps_done=yes
319 kx continue
319 kx fi
319 kx
319 kx if test no = "$pre_test_object_deps_done"; then
319 kx if test -z "$predep_objects_CXX"; then
319 kx predep_objects_CXX=$p
319 kx else
319 kx predep_objects_CXX="$predep_objects_CXX $p"
319 kx fi
319 kx else
319 kx if test -z "$postdep_objects_CXX"; then
319 kx postdep_objects_CXX=$p
319 kx else
319 kx postdep_objects_CXX="$postdep_objects_CXX $p"
319 kx fi
319 kx fi
319 kx ;;
319 kx
319 kx *) ;; # Ignore the rest.
319 kx
319 kx esac
319 kx done
319 kx
319 kx # Clean up.
319 kx rm -f a.out a.exe
319 kx else
319 kx echo "libtool.m4: error: problem compiling CXX test program"
319 kx fi
319 kx
319 kx $RM -f confest.$objext
319 kx CFLAGS=$_lt_libdeps_save_CFLAGS
319 kx
319 kx # PORTME: override above test on systems where it is broken
319 kx case $host_os in
319 kx interix[3-9]*)
319 kx # Interix 3.5 installs completely hosed .la files for C++, so rather than
319 kx # hack all around it, let's just trust "g++" to DTRT.
319 kx predep_objects_CXX=
319 kx postdep_objects_CXX=
319 kx postdeps_CXX=
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx case " $postdeps_CXX " in
319 kx *" -lc "*) archive_cmds_need_lc_CXX=no ;;
319 kx esac
319 kx compiler_lib_search_dirs_CXX=
319 kx if test -n "${compiler_lib_search_path_CXX}"; then
319 kx compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx lt_prog_compiler_wl_CXX=
319 kx lt_prog_compiler_pic_CXX=
319 kx lt_prog_compiler_static_CXX=
319 kx
319 kx
319 kx # C++ specific cases for pic, static, wl, etc.
319 kx if test yes = "$GXX"; then
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_static_CXX='-static'
319 kx
319 kx case $host_os in
319 kx aix*)
319 kx # All AIX code is PIC.
319 kx if test ia64 = "$host_cpu"; then
319 kx # AIX 5 now supports IA64 processor
319 kx lt_prog_compiler_static_CXX='-Bstatic'
319 kx fi
319 kx lt_prog_compiler_pic_CXX='-fPIC'
319 kx ;;
319 kx
319 kx amigaos*)
319 kx case $host_cpu in
319 kx powerpc)
319 kx # see comment about AmigaOS4 .so support
319 kx lt_prog_compiler_pic_CXX='-fPIC'
319 kx ;;
319 kx m68k)
319 kx # FIXME: we need at least 68020 code to build shared libraries, but
319 kx # adding the '-m68020' flag to GCC prevents building anything better,
319 kx # like '-m68040'.
319 kx lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
319 kx # PIC is the default for these OSes.
319 kx ;;
319 kx mingw* | cygwin* | os2* | pw32* | cegcc*)
319 kx # This hack is so that the source file can tell whether it is being
319 kx # built for inclusion in a dll (and should export symbols for example).
319 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
319 kx # (--disable-auto-import) libraries
319 kx lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
319 kx case $host_os in
319 kx os2*)
319 kx lt_prog_compiler_static_CXX='$wl-static'
319 kx ;;
319 kx esac
319 kx ;;
319 kx darwin* | rhapsody*)
319 kx # PIC is the default on this platform
319 kx # Common symbols not allowed in MH_DYLIB files
319 kx lt_prog_compiler_pic_CXX='-fno-common'
319 kx ;;
319 kx *djgpp*)
319 kx # DJGPP does not support shared libraries at all
319 kx lt_prog_compiler_pic_CXX=
319 kx ;;
319 kx haiku*)
319 kx # PIC is the default for Haiku.
319 kx # The "-static" flag exists, but is broken.
319 kx lt_prog_compiler_static_CXX=
319 kx ;;
319 kx interix[3-9]*)
319 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
319 kx # Instead, we relocate shared libraries at runtime.
319 kx ;;
319 kx sysv4*MP*)
319 kx if test -d /usr/nec; then
319 kx lt_prog_compiler_pic_CXX=-Kconform_pic
319 kx fi
319 kx ;;
319 kx hpux*)
319 kx # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
319 kx # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
319 kx # sets the default TLS model and affects inlining.
319 kx case $host_cpu in
319 kx hppa*64*)
319 kx ;;
319 kx *)
319 kx lt_prog_compiler_pic_CXX='-fPIC'
319 kx ;;
319 kx esac
319 kx ;;
319 kx *qnx* | *nto*)
319 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
319 kx # it will coredump.
319 kx lt_prog_compiler_pic_CXX='-fPIC -shared'
319 kx ;;
319 kx *)
319 kx lt_prog_compiler_pic_CXX='-fPIC'
319 kx ;;
319 kx esac
319 kx else
319 kx case $host_os in
319 kx aix[4-9]*)
319 kx # All AIX code is PIC.
319 kx if test ia64 = "$host_cpu"; then
319 kx # AIX 5 now supports IA64 processor
319 kx lt_prog_compiler_static_CXX='-Bstatic'
319 kx else
319 kx lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
319 kx fi
319 kx ;;
319 kx chorus*)
319 kx case $cc_basename in
319 kx cxch68*)
319 kx # Green Hills C++ Compiler
319 kx # _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"
319 kx ;;
319 kx esac
319 kx ;;
319 kx mingw* | cygwin* | os2* | pw32* | cegcc*)
319 kx # This hack is so that the source file can tell whether it is being
319 kx # built for inclusion in a dll (and should export symbols for example).
319 kx lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
319 kx ;;
319 kx dgux*)
319 kx case $cc_basename in
319 kx ec++*)
319 kx lt_prog_compiler_pic_CXX='-KPIC'
319 kx ;;
319 kx ghcx*)
319 kx # Green Hills C++ Compiler
319 kx lt_prog_compiler_pic_CXX='-pic'
319 kx ;;
319 kx *)
319 kx ;;
319 kx esac
319 kx ;;
319 kx freebsd* | dragonfly* | midnightbsd*)
319 kx # FreeBSD uses GNU C++
319 kx ;;
319 kx hpux9* | hpux10* | hpux11*)
319 kx case $cc_basename in
319 kx CC*)
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
319 kx if test ia64 != "$host_cpu"; then
319 kx lt_prog_compiler_pic_CXX='+Z'
319 kx fi
319 kx ;;
319 kx aCC*)
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
319 kx case $host_cpu in
319 kx hppa*64*|ia64*)
319 kx # +Z the default
319 kx ;;
319 kx *)
319 kx lt_prog_compiler_pic_CXX='+Z'
319 kx ;;
319 kx esac
319 kx ;;
319 kx *)
319 kx ;;
319 kx esac
319 kx ;;
319 kx interix*)
319 kx # This is c89, which is MS Visual C++ (no shared libs)
319 kx # Anyone wants to do a port?
319 kx ;;
319 kx irix5* | irix6* | nonstopux*)
319 kx case $cc_basename in
319 kx CC*)
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_static_CXX='-non_shared'
319 kx # CC pic flag -KPIC is the default.
319 kx ;;
319 kx *)
319 kx ;;
319 kx esac
319 kx ;;
319 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
319 kx case $cc_basename in
319 kx KCC*)
319 kx # KAI C++ Compiler
319 kx lt_prog_compiler_wl_CXX='--backend -Wl,'
319 kx lt_prog_compiler_pic_CXX='-fPIC'
319 kx ;;
319 kx ecpc* )
319 kx # old Intel C++ for x86_64, which still supported -KPIC.
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_pic_CXX='-KPIC'
319 kx lt_prog_compiler_static_CXX='-static'
319 kx ;;
319 kx icpc* )
319 kx # Intel C++, used to be incompatible with GCC.
319 kx # ICC 10 doesn't accept -KPIC any more.
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_pic_CXX='-fPIC'
319 kx lt_prog_compiler_static_CXX='-static'
319 kx ;;
319 kx pgCC* | pgcpp*)
319 kx # Portland Group C++ compiler
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_pic_CXX='-fpic'
319 kx lt_prog_compiler_static_CXX='-Bstatic'
319 kx ;;
319 kx cxx*)
319 kx # Compaq C++
319 kx # Make sure the PIC flag is empty. It appears that all Alpha
319 kx # Linux and Compaq Tru64 Unix objects are PIC.
319 kx lt_prog_compiler_pic_CXX=
319 kx lt_prog_compiler_static_CXX='-non_shared'
319 kx ;;
319 kx xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
319 kx # IBM XL 8.0, 9.0 on PPC and BlueGene
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_pic_CXX='-qpic'
319 kx lt_prog_compiler_static_CXX='-qstaticlink'
319 kx ;;
319 kx *)
319 kx case `$CC -V 2>&1 | $SED 5q` in
319 kx *Sun\ C*)
319 kx # Sun C++ 5.9
319 kx lt_prog_compiler_pic_CXX='-KPIC'
319 kx lt_prog_compiler_static_CXX='-Bstatic'
319 kx lt_prog_compiler_wl_CXX='-Qoption ld '
319 kx ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx ;;
319 kx lynxos*)
319 kx ;;
319 kx m88k*)
319 kx ;;
319 kx mvs*)
319 kx case $cc_basename in
319 kx cxx*)
319 kx lt_prog_compiler_pic_CXX='-W c,exportall'
319 kx ;;
319 kx *)
319 kx ;;
319 kx esac
319 kx ;;
319 kx netbsd*)
319 kx ;;
319 kx *qnx* | *nto*)
319 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
319 kx # it will coredump.
319 kx lt_prog_compiler_pic_CXX='-fPIC -shared'
319 kx ;;
319 kx osf3* | osf4* | osf5*)
319 kx case $cc_basename in
319 kx KCC*)
319 kx lt_prog_compiler_wl_CXX='--backend -Wl,'
319 kx ;;
319 kx RCC*)
319 kx # Rational C++ 2.4.1
319 kx lt_prog_compiler_pic_CXX='-pic'
319 kx ;;
319 kx cxx*)
319 kx # Digital/Compaq C++
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx # Make sure the PIC flag is empty. It appears that all Alpha
319 kx # Linux and Compaq Tru64 Unix objects are PIC.
319 kx lt_prog_compiler_pic_CXX=
319 kx lt_prog_compiler_static_CXX='-non_shared'
319 kx ;;
319 kx *)
319 kx ;;
319 kx esac
319 kx ;;
319 kx psos*)
319 kx ;;
319 kx solaris*)
319 kx case $cc_basename in
319 kx CC* | sunCC*)
319 kx # Sun C++ 4.2, 5.x and Centerline C++
319 kx lt_prog_compiler_pic_CXX='-KPIC'
319 kx lt_prog_compiler_static_CXX='-Bstatic'
319 kx lt_prog_compiler_wl_CXX='-Qoption ld '
319 kx ;;
319 kx gcx*)
319 kx # Green Hills C++ Compiler
319 kx lt_prog_compiler_pic_CXX='-PIC'
319 kx ;;
319 kx *)
319 kx ;;
319 kx esac
319 kx ;;
319 kx sunos4*)
319 kx case $cc_basename in
319 kx CC*)
319 kx # Sun C++ 4.x
319 kx lt_prog_compiler_pic_CXX='-pic'
319 kx lt_prog_compiler_static_CXX='-Bstatic'
319 kx ;;
319 kx lcc*)
319 kx # Lucid
319 kx lt_prog_compiler_pic_CXX='-pic'
319 kx ;;
319 kx *)
319 kx ;;
319 kx esac
319 kx ;;
319 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
319 kx case $cc_basename in
319 kx CC*)
319 kx lt_prog_compiler_wl_CXX='-Wl,'
319 kx lt_prog_compiler_pic_CXX='-KPIC'
319 kx lt_prog_compiler_static_CXX='-Bstatic'
319 kx ;;
319 kx esac
319 kx ;;
319 kx tandem*)
319 kx case $cc_basename in
319 kx NCC*)
319 kx # NonStop-UX NCC 3.20
319 kx lt_prog_compiler_pic_CXX='-KPIC'
319 kx ;;
319 kx *)
319 kx ;;
319 kx esac
319 kx ;;
319 kx vxworks*)
319 kx ;;
319 kx *)
319 kx lt_prog_compiler_can_build_shared_CXX=no
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx case $host_os in
319 kx # For platforms that do not support PIC, -DPIC is meaningless:
319 kx *djgpp*)
319 kx lt_prog_compiler_pic_CXX=
319 kx ;;
319 kx *)
319 kx lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
319 kx ;;
319 kx esac
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
319 kx printf %s "checking for $compiler option to produce PIC... " >&6; }
319 kx if test ${lt_cv_prog_compiler_pic_CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
319 kx lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
319 kx
319 kx #
319 kx # Check to make sure the PIC flag actually works.
319 kx #
319 kx if test -n "$lt_prog_compiler_pic_CXX"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
319 kx printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
319 kx if test ${lt_cv_prog_compiler_pic_works_CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_pic_works_CXX=no
319 kx ac_outfile=conftest.$ac_objext
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
319 kx # Insert the option either (1) after the last *FLAGS variable, or
319 kx # (2) before a word containing "conftest.", or (3) at the end.
319 kx # Note that $ac_compile itself does not contain backslashes and begins
319 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
319 kx # The option is referenced via a variable to avoid confusing sed.
319 kx lt_compile=`echo "$ac_compile" | $SED \
319 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
319 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
319 kx -e 's:$: $lt_compiler_flag:'`
319 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
319 kx (eval "$lt_compile" 2>conftest.err)
319 kx ac_status=$?
319 kx cat conftest.err >&5
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx if (exit $ac_status) && test -s "$ac_outfile"; then
319 kx # The compiler can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings other than the usual output.
319 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
319 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
319 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_pic_works_CXX=yes
319 kx fi
319 kx fi
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
319 kx
319 kx if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
319 kx case $lt_prog_compiler_pic_CXX in
319 kx "" | " "*) ;;
319 kx *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
319 kx esac
319 kx else
319 kx lt_prog_compiler_pic_CXX=
319 kx lt_prog_compiler_can_build_shared_CXX=no
319 kx fi
319 kx
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx #
319 kx # Check to make sure the static flag actually works.
319 kx #
319 kx wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
319 kx printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
319 kx if test ${lt_cv_prog_compiler_static_works_CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_static_works_CXX=no
319 kx save_LDFLAGS=$LDFLAGS
319 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
319 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
319 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
319 kx # The linker can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings
319 kx if test -s conftest.err; then
319 kx # Append any errors to the config.log.
319 kx cat conftest.err 1>&5
319 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
319 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
319 kx if diff conftest.exp conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_static_works_CXX=yes
319 kx fi
319 kx else
319 kx lt_cv_prog_compiler_static_works_CXX=yes
319 kx fi
319 kx fi
319 kx $RM -r conftest*
319 kx LDFLAGS=$save_LDFLAGS
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
319 kx
319 kx if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
319 kx :
319 kx else
319 kx lt_prog_compiler_static_CXX=
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
319 kx printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
319 kx if test ${lt_cv_prog_compiler_c_o_CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_c_o_CXX=no
319 kx $RM -r conftest 2>/dev/null
319 kx mkdir conftest
319 kx cd conftest
319 kx mkdir out
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx
319 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
319 kx # Insert the option either (1) after the last *FLAGS variable, or
319 kx # (2) before a word containing "conftest.", or (3) at the end.
319 kx # Note that $ac_compile itself does not contain backslashes and begins
319 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
319 kx lt_compile=`echo "$ac_compile" | $SED \
319 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
319 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
319 kx -e 's:$: $lt_compiler_flag:'`
319 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
319 kx (eval "$lt_compile" 2>out/conftest.err)
319 kx ac_status=$?
319 kx cat out/conftest.err >&5
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
319 kx then
319 kx # The compiler can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings
319 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
319 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
319 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_c_o_CXX=yes
319 kx fi
319 kx fi
319 kx chmod u+w . 2>&5
319 kx $RM conftest*
319 kx # SGI C++ compiler will create directory out/ii_files/ for
319 kx # template instantiation
319 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
319 kx $RM out/* && rmdir out
319 kx cd ..
319 kx $RM -r conftest
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
319 kx printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
319 kx if test ${lt_cv_prog_compiler_c_o_CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_prog_compiler_c_o_CXX=no
319 kx $RM -r conftest 2>/dev/null
319 kx mkdir conftest
319 kx cd conftest
319 kx mkdir out
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx
319 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
319 kx # Insert the option either (1) after the last *FLAGS variable, or
319 kx # (2) before a word containing "conftest.", or (3) at the end.
319 kx # Note that $ac_compile itself does not contain backslashes and begins
319 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
319 kx lt_compile=`echo "$ac_compile" | $SED \
319 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
319 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
319 kx -e 's:$: $lt_compiler_flag:'`
319 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
319 kx (eval "$lt_compile" 2>out/conftest.err)
319 kx ac_status=$?
319 kx cat out/conftest.err >&5
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
319 kx then
319 kx # The compiler can only warn and ignore the option if not recognized
319 kx # So say no if there are warnings
319 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
319 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
319 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
319 kx lt_cv_prog_compiler_c_o_CXX=yes
319 kx fi
319 kx fi
319 kx chmod u+w . 2>&5
319 kx $RM conftest*
319 kx # SGI C++ compiler will create directory out/ii_files/ for
319 kx # template instantiation
319 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
319 kx $RM out/* && rmdir out
319 kx cd ..
319 kx $RM -r conftest
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
319 kx printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
319 kx
319 kx
319 kx
319 kx
319 kx hard_links=nottested
319 kx if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
319 kx # do not overwrite the value of need_locks provided by the user
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
319 kx printf %s "checking if we can lock with hard links... " >&6; }
319 kx hard_links=yes
319 kx $RM conftest*
319 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
319 kx touch conftest.a
319 kx ln conftest.a conftest.b 2>&5 || hard_links=no
319 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
319 kx printf "%s\n" "$hard_links" >&6; }
319 kx if test no = "$hard_links"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
319 kx printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
319 kx need_locks=warn
319 kx fi
319 kx else
319 kx need_locks=no
319 kx fi
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
319 kx printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
319 kx
319 kx export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
319 kx exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
319 kx case $host_os in
319 kx aix[4-9]*)
319 kx # If we're using GNU nm, then we don't want the "-C" option.
319 kx # -C means demangle to GNU nm, but means don't demangle to AIX nm.
319 kx # Without the "-l" option, or with the "-B" option, AIX nm treats
319 kx # weak defined symbols like other global defined symbols, whereas
319 kx # GNU nm marks them as "W".
319 kx # While the 'weak' keyword is ignored in the Export File, we need
319 kx # it in the Import File for the 'aix-soname' feature, so we have
319 kx # to replace the "-B" option with "-P" for AIX nm.
319 kx if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
319 kx export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
319 kx else
319 kx export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
319 kx fi
319 kx ;;
319 kx pw32*)
319 kx export_symbols_cmds_CXX=$ltdll_cmds
319 kx ;;
319 kx cygwin* | mingw* | cegcc*)
319 kx case $cc_basename in
319 kx cl* | icl*)
319 kx exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
319 kx ;;
319 kx *)
319 kx export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
319 kx exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
319 kx ;;
319 kx esac
319 kx ;;
319 kx *)
319 kx export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
319 kx ;;
319 kx esac
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
319 kx printf "%s\n" "$ld_shlibs_CXX" >&6; }
319 kx test no = "$ld_shlibs_CXX" && can_build_shared=no
319 kx
319 kx with_gnu_ld_CXX=$with_gnu_ld
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx #
319 kx # Do we need to explicitly link libc?
319 kx #
319 kx case "x$archive_cmds_need_lc_CXX" in
319 kx x|xyes)
319 kx # Assume -lc should be added
319 kx archive_cmds_need_lc_CXX=yes
319 kx
319 kx if test yes,yes = "$GCC,$enable_shared"; then
319 kx case $archive_cmds_CXX in
319 kx *'~'*)
319 kx # FIXME: we may have to deal with multi-command sequences.
319 kx ;;
319 kx '$CC '*)
319 kx # Test whether the compiler implicitly links with -lc since on some
319 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
319 kx # to ld, don't add -lc before -lgcc.
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
319 kx printf %s "checking whether -lc should be explicitly linked in... " >&6; }
319 kx if test ${lt_cv_archive_cmds_need_lc_CXX+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx $RM conftest*
319 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
319 kx
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
319 kx (eval $ac_compile) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } 2>conftest.err; then
319 kx soname=conftest
319 kx lib=conftest
319 kx libobjs=conftest.$ac_objext
319 kx deplibs=
319 kx wl=$lt_prog_compiler_wl_CXX
319 kx pic_flag=$lt_prog_compiler_pic_CXX
319 kx compiler_flags=-v
319 kx linker_flags=-v
319 kx verstring=
319 kx output_objdir=.
319 kx libname=conftest
319 kx lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
319 kx allow_undefined_flag_CXX=
319 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
319 kx (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx then
319 kx lt_cv_archive_cmds_need_lc_CXX=no
319 kx else
319 kx lt_cv_archive_cmds_need_lc_CXX=yes
319 kx fi
319 kx allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
319 kx else
319 kx cat conftest.err 1>&5
319 kx fi
319 kx $RM conftest*
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
319 kx printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
319 kx archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
319 kx ;;
319 kx esac
319 kx fi
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
319 kx printf %s "checking dynamic linker characteristics... " >&6; }
319 kx
319 kx library_names_spec=
319 kx libname_spec='lib$name'
319 kx soname_spec=
319 kx shrext_cmds=.so
319 kx postinstall_cmds=
319 kx postuninstall_cmds=
319 kx finish_cmds=
319 kx finish_eval=
319 kx shlibpath_var=
319 kx shlibpath_overrides_runpath=unknown
319 kx version_type=none
319 kx dynamic_linker="$host_os ld.so"
319 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
319 kx need_lib_prefix=unknown
319 kx hardcode_into_libs=no
319 kx
319 kx # when you set need_version to no, make sure it does not cause -set_version
319 kx # flags to be left without arguments
319 kx need_version=unknown
319 kx
319 kx
319 kx
319 kx case $host_os in
319 kx aix3*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
319 kx shlibpath_var=LIBPATH
319 kx
319 kx # AIX 3 has no versioning support, so we append a major version to the name.
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx ;;
319 kx
319 kx aix[4-9]*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx hardcode_into_libs=yes
319 kx if test ia64 = "$host_cpu"; then
319 kx # AIX 5 supports IA64
319 kx library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx else
319 kx # With GCC up to 2.95.x, collect2 would create an import file
319 kx # for dependence libraries. The import file would start with
319 kx # the line '#! .'. This would cause the generated library to
319 kx # depend on '.', always an invalid library. This was fixed in
319 kx # development snapshots of GCC prior to 3.0.
319 kx case $host_os in
319 kx aix4 | aix4.[01] | aix4.[01].*)
319 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
319 kx echo ' yes '
319 kx echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
319 kx :
319 kx else
319 kx can_build_shared=no
319 kx fi
319 kx ;;
319 kx esac
319 kx # Using Import Files as archive members, it is possible to support
319 kx # filename-based versioning of shared library archives on AIX. While
319 kx # this would work for both with and without runtime linking, it will
319 kx # prevent static linking of such archives. So we do filename-based
319 kx # shared library versioning with .so extension only, which is used
319 kx # when both runtime linking and shared linking is enabled.
319 kx # Unfortunately, runtime linking may impact performance, so we do
319 kx # not want this to be the default eventually. Also, we use the
319 kx # versioned .so libs for executables only if there is the -brtl
319 kx # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
319 kx # To allow for filename-based versioning support, we need to create
319 kx # libNAME.so.V as an archive file, containing:
319 kx # *) an Import File, referring to the versioned filename of the
319 kx # archive as well as the shared archive member, telling the
319 kx # bitwidth (32 or 64) of that shared object, and providing the
319 kx # list of exported symbols of that shared object, eventually
319 kx # decorated with the 'weak' keyword
319 kx # *) the shared object with the F_LOADONLY flag set, to really avoid
319 kx # it being seen by the linker.
319 kx # At run time we better use the real file rather than another symlink,
319 kx # but for link time we create the symlink libNAME.so -> libNAME.so.V
319 kx
319 kx case $with_aix_soname,$aix_use_runtimelinking in
319 kx # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
319 kx # soname into executable. Probably we can add versioning support to
319 kx # collect2, so additional links can be useful in future.
319 kx aix,yes) # traditional libtool
319 kx dynamic_linker='AIX unversionable lib.so'
319 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
319 kx # instead of lib<name>.a to let people know that these are not
319 kx # typical AIX shared libraries.
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx ;;
319 kx aix,no) # traditional AIX only
319 kx dynamic_linker='AIX lib.a(lib.so.V)'
319 kx # We preserve .a as extension for shared libraries through AIX4.2
319 kx # and later when we are not doing run time linking.
319 kx library_names_spec='$libname$release.a $libname.a'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx ;;
319 kx svr4,*) # full svr4 only
319 kx dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
319 kx library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
319 kx # We do not specify a path in Import Files, so LIBPATH fires.
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx *,yes) # both, prefer svr4
319 kx dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
319 kx library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
319 kx # unpreferred sharedlib libNAME.a needs extra handling
319 kx postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
319 kx postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
319 kx # We do not specify a path in Import Files, so LIBPATH fires.
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx *,no) # both, prefer aix
319 kx dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
319 kx library_names_spec='$libname$release.a $libname.a'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
319 kx postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
319 kx postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
319 kx ;;
319 kx esac
319 kx shlibpath_var=LIBPATH
319 kx fi
319 kx ;;
319 kx
319 kx amigaos*)
319 kx case $host_cpu in
319 kx powerpc)
319 kx # Since July 2007 AmigaOS4 officially supports .so libraries.
319 kx # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx ;;
319 kx m68k)
319 kx library_names_spec='$libname.ixlibrary $libname.a'
319 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
319 kx finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx beos*)
319 kx library_names_spec='$libname$shared_ext'
319 kx dynamic_linker="$host_os ld.so"
319 kx shlibpath_var=LIBRARY_PATH
319 kx ;;
319 kx
319 kx bsdi[45]*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
319 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
319 kx # the default ld.so.conf also contains /usr/contrib/lib and
319 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
319 kx # libtool to hard-code these into programs
319 kx ;;
319 kx
319 kx cygwin* | mingw* | pw32* | cegcc*)
319 kx version_type=windows
319 kx shrext_cmds=.dll
319 kx need_version=no
319 kx need_lib_prefix=no
319 kx
319 kx case $GCC,$cc_basename in
319 kx yes,*)
319 kx # gcc
319 kx library_names_spec='$libname.dll.a'
319 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
319 kx postinstall_cmds='base_file=`basename \$file`~
319 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
319 kx dldir=$destdir/`dirname \$dlpath`~
319 kx test -d \$dldir || mkdir -p \$dldir~
319 kx $install_prog $dir/$dlname \$dldir/$dlname~
319 kx chmod a+x \$dldir/$dlname~
319 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
319 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
319 kx fi'
319 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
319 kx dlpath=$dir/\$dldll~
319 kx $RM \$dlpath'
319 kx shlibpath_overrides_runpath=yes
319 kx
319 kx case $host_os in
319 kx cygwin*)
319 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
319 kx soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
319 kx
319 kx ;;
319 kx mingw* | cegcc*)
319 kx # MinGW DLLs use traditional 'lib' prefix
319 kx soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
319 kx ;;
319 kx pw32*)
319 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
319 kx library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
319 kx ;;
319 kx esac
319 kx dynamic_linker='Win32 ld.exe'
319 kx ;;
319 kx
319 kx *,cl* | *,icl*)
319 kx # Native MSVC or ICC
319 kx libname_spec='$name'
319 kx soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
319 kx library_names_spec='$libname.dll.lib'
319 kx
319 kx case $build_os in
319 kx mingw*)
319 kx sys_lib_search_path_spec=
319 kx lt_save_ifs=$IFS
319 kx IFS=';'
319 kx for lt_path in $LIB
319 kx do
319 kx IFS=$lt_save_ifs
319 kx # Let DOS variable expansion print the short 8.3 style file name.
319 kx lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
319 kx sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
319 kx done
319 kx IFS=$lt_save_ifs
319 kx # Convert to MSYS style.
319 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
319 kx ;;
319 kx cygwin*)
319 kx # Convert to unix form, then to dos form, then back to unix form
319 kx # but this time dos style (no spaces!) so that the unix form looks
319 kx # like /cygdrive/c/PROGRA~1:/cygdr...
319 kx sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
319 kx sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
319 kx sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
319 kx ;;
319 kx *)
319 kx sys_lib_search_path_spec=$LIB
319 kx if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
319 kx # It is most probably a Windows format PATH.
319 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
319 kx else
319 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
319 kx fi
319 kx # FIXME: find the short name or the path components, as spaces are
319 kx # common. (e.g. "Program Files" -> "PROGRA~1")
319 kx ;;
319 kx esac
319 kx
319 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
319 kx postinstall_cmds='base_file=`basename \$file`~
319 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
319 kx dldir=$destdir/`dirname \$dlpath`~
319 kx test -d \$dldir || mkdir -p \$dldir~
319 kx $install_prog $dir/$dlname \$dldir/$dlname'
319 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
319 kx dlpath=$dir/\$dldll~
319 kx $RM \$dlpath'
319 kx shlibpath_overrides_runpath=yes
319 kx dynamic_linker='Win32 link.exe'
319 kx ;;
319 kx
319 kx *)
319 kx # Assume MSVC and ICC wrapper
319 kx library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
319 kx dynamic_linker='Win32 ld.exe'
319 kx ;;
319 kx esac
319 kx # FIXME: first we should search . and the directory the executable is in
319 kx shlibpath_var=PATH
319 kx ;;
319 kx
319 kx darwin* | rhapsody*)
319 kx dynamic_linker="$host_os dyld"
319 kx version_type=darwin
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
319 kx soname_spec='$libname$release$major$shared_ext'
319 kx shlibpath_overrides_runpath=yes
319 kx shlibpath_var=DYLD_LIBRARY_PATH
319 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
319 kx
319 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
319 kx ;;
319 kx
319 kx dgux*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx ;;
319 kx
319 kx freebsd* | dragonfly* | midnightbsd*)
319 kx # DragonFly does not have aout. When/if they implement a new
319 kx # versioning mechanism, adjust this.
319 kx if test -x /usr/bin/objformat; then
319 kx objformat=`/usr/bin/objformat`
319 kx else
319 kx case $host_os in
319 kx freebsd[23].*) objformat=aout ;;
319 kx *) objformat=elf ;;
319 kx esac
319 kx fi
319 kx version_type=freebsd-$objformat
319 kx case $version_type in
319 kx freebsd-elf*)
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx need_version=no
319 kx need_lib_prefix=no
319 kx ;;
319 kx freebsd-*)
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
319 kx need_version=yes
319 kx ;;
319 kx esac
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx case $host_os in
319 kx freebsd2.*)
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx freebsd3.[01]* | freebsdelf3.[01]*)
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
319 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
319 kx shlibpath_overrides_runpath=no
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx *) # from 4.6 on, and DragonFly
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx haiku*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx dynamic_linker="$host_os runtime_loader"
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx hpux9* | hpux10* | hpux11*)
319 kx # Give a soname corresponding to the major version so that dld.sl refuses to
319 kx # link against other versions.
319 kx version_type=sunos
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx case $host_cpu in
319 kx ia64*)
319 kx shrext_cmds='.so'
319 kx hardcode_into_libs=yes
319 kx dynamic_linker="$host_os dld.so"
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx if test 32 = "$HPUX_IA64_MODE"; then
319 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
319 kx sys_lib_dlsearch_path_spec=/usr/lib/hpux32
319 kx else
319 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
319 kx sys_lib_dlsearch_path_spec=/usr/lib/hpux64
319 kx fi
319 kx ;;
319 kx hppa*64*)
319 kx shrext_cmds='.sl'
319 kx hardcode_into_libs=yes
319 kx dynamic_linker="$host_os dld.sl"
319 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
319 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
319 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
319 kx ;;
319 kx *)
319 kx shrext_cmds='.sl'
319 kx dynamic_linker="$host_os dld.sl"
319 kx shlibpath_var=SHLIB_PATH
319 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx ;;
319 kx esac
319 kx # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
319 kx postinstall_cmds='chmod 555 $lib'
319 kx # or fails outright, so override atomically:
319 kx install_override_mode=555
319 kx ;;
319 kx
319 kx interix[3-9]*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx irix5* | irix6* | nonstopux*)
319 kx case $host_os in
319 kx nonstopux*) version_type=nonstopux ;;
319 kx *)
319 kx if test yes = "$lt_cv_prog_gnu_ld"; then
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx else
319 kx version_type=irix
319 kx fi ;;
319 kx esac
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
319 kx case $host_os in
319 kx irix5* | nonstopux*)
319 kx libsuff= shlibsuff=
319 kx ;;
319 kx *)
319 kx case $LD in # libtool.m4 will add one of these switches to LD
319 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
319 kx libsuff= shlibsuff= libmagic=32-bit;;
319 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
319 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
319 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
319 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
319 kx *) libsuff= shlibsuff= libmagic=never-match;;
319 kx esac
319 kx ;;
319 kx esac
319 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
319 kx shlibpath_overrides_runpath=no
319 kx sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
319 kx sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx # No shared lib support for Linux oldld, aout, or coff.
319 kx linux*oldld* | linux*aout* | linux*coff*)
319 kx dynamic_linker=no
319 kx ;;
319 kx
319 kx linux*android*)
319 kx version_type=none # Android doesn't support versioned libraries.
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext'
319 kx soname_spec='$libname$release$shared_ext'
319 kx finish_cmds=
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx
319 kx # This implies no fast_install, which is unacceptable.
319 kx # Some rework will be needed to allow for fast_install
319 kx # before this can be enabled.
319 kx hardcode_into_libs=yes
319 kx
319 kx dynamic_linker='Android linker'
319 kx # Don't embed -rpath directories since the linker doesn't support them.
319 kx hardcode_libdir_flag_spec_CXX='-L$libdir'
319 kx ;;
319 kx
319 kx # This must be glibc/ELF.
319 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx
319 kx # Some binutils ld are patched to set DT_RUNPATH
319 kx if test ${lt_cv_shlibpath_overrides_runpath+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx lt_cv_shlibpath_overrides_runpath=no
319 kx save_LDFLAGS=$LDFLAGS
319 kx save_libdir=$libdir
319 kx eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
319 kx LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_link "$LINENO"
319 kx then :
319 kx if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
319 kx then :
319 kx lt_cv_shlibpath_overrides_runpath=yes
319 kx fi
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext conftest.$ac_ext
319 kx LDFLAGS=$save_LDFLAGS
319 kx libdir=$save_libdir
319 kx
319 kx fi
319 kx
319 kx shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
319 kx
319 kx # This implies no fast_install, which is unacceptable.
319 kx # Some rework will be needed to allow for fast_install
319 kx # before this can be enabled.
319 kx hardcode_into_libs=yes
319 kx
319 kx # Add ABI-specific directories to the system library path.
319 kx sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
319 kx
319 kx # Ideally, we could use ldconfig to report *all* directores which are
319 kx # searched for libraries, however this is still not possible. Aside from not
319 kx # being certain /sbin/ldconfig is available, command
319 kx # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
319 kx # even though it is searched at run-time. Try to do the best guess by
319 kx # appending ld.so.conf contents (and includes) to the search path.
319 kx if test -f /etc/ld.so.conf; then
319 kx lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
319 kx sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
319 kx fi
319 kx
319 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
319 kx # powerpc, because MkLinux only supported shared libraries with the
319 kx # GNU dynamic linker. Since this was broken with cross compilers,
319 kx # most powerpc-linux boxes support dynamic linking these days and
319 kx # people can always --disable-shared, the test was removed, and we
319 kx # assume the GNU/Linux dynamic linker is in use.
319 kx dynamic_linker='GNU/Linux ld.so'
319 kx ;;
319 kx
319 kx netbsd*)
319 kx version_type=sunos
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
319 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
319 kx dynamic_linker='NetBSD (a.out) ld.so'
319 kx else
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx dynamic_linker='NetBSD ld.elf_so'
319 kx fi
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx newsos6)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx
319 kx *nto* | *qnx*)
319 kx version_type=qnx
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx hardcode_into_libs=yes
319 kx dynamic_linker='ldqnx.so'
319 kx ;;
319 kx
319 kx openbsd* | bitrig*)
319 kx version_type=sunos
319 kx sys_lib_dlsearch_path_spec=/usr/lib
319 kx need_lib_prefix=no
319 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
319 kx need_version=no
319 kx else
319 kx need_version=yes
319 kx fi
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
319 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx ;;
319 kx
319 kx os2*)
319 kx libname_spec='$name'
319 kx version_type=windows
319 kx shrext_cmds=.dll
319 kx need_version=no
319 kx need_lib_prefix=no
319 kx # OS/2 can only load a DLL with a base name of 8 characters or less.
319 kx soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
319 kx v=$($ECHO $release$versuffix | tr -d .-);
319 kx n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
319 kx $ECHO $n$v`$shared_ext'
319 kx library_names_spec='${libname}_dll.$libext'
319 kx dynamic_linker='OS/2 ld.exe'
319 kx shlibpath_var=BEGINLIBPATH
319 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
319 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
319 kx postinstall_cmds='base_file=`basename \$file`~
319 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
319 kx dldir=$destdir/`dirname \$dlpath`~
319 kx test -d \$dldir || mkdir -p \$dldir~
319 kx $install_prog $dir/$dlname \$dldir/$dlname~
319 kx chmod a+x \$dldir/$dlname~
319 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
319 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
319 kx fi'
319 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
319 kx dlpath=$dir/\$dldll~
319 kx $RM \$dlpath'
319 kx ;;
319 kx
319 kx osf3* | osf4* | osf5*)
319 kx version_type=osf
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
319 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
319 kx ;;
319 kx
319 kx rdos*)
319 kx dynamic_linker=no
319 kx ;;
319 kx
319 kx solaris*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx # ldd complains unless libraries are executable
319 kx postinstall_cmds='chmod +x $lib'
319 kx ;;
319 kx
319 kx sunos4*)
319 kx version_type=sunos
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
319 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx if test yes = "$with_gnu_ld"; then
319 kx need_lib_prefix=no
319 kx fi
319 kx need_version=yes
319 kx ;;
319 kx
319 kx sysv4 | sysv4.3*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx case $host_vendor in
319 kx sni)
319 kx shlibpath_overrides_runpath=no
319 kx need_lib_prefix=no
319 kx runpath_var=LD_RUN_PATH
319 kx ;;
319 kx siemens)
319 kx need_lib_prefix=no
319 kx ;;
319 kx motorola)
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx shlibpath_overrides_runpath=no
319 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
319 kx ;;
319 kx esac
319 kx ;;
319 kx
319 kx sysv4*MP*)
319 kx if test -d /usr/nec; then
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
319 kx soname_spec='$libname$shared_ext.$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx fi
319 kx ;;
319 kx
319 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
319 kx version_type=sco
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=yes
319 kx hardcode_into_libs=yes
319 kx if test yes = "$with_gnu_ld"; then
319 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
319 kx else
319 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
319 kx case $host_os in
319 kx sco3.2v5*)
319 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
319 kx ;;
319 kx esac
319 kx fi
319 kx sys_lib_dlsearch_path_spec='/usr/lib'
319 kx ;;
319 kx
319 kx tpf*)
319 kx # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx need_lib_prefix=no
319 kx need_version=no
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx shlibpath_overrides_runpath=no
319 kx hardcode_into_libs=yes
319 kx ;;
319 kx
319 kx uts4*)
319 kx version_type=linux # correct to gnu/linux during the next big refactor
319 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
319 kx soname_spec='$libname$release$shared_ext$major'
319 kx shlibpath_var=LD_LIBRARY_PATH
319 kx ;;
319 kx
319 kx *)
319 kx dynamic_linker=no
319 kx ;;
319 kx esac
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
319 kx printf "%s\n" "$dynamic_linker" >&6; }
319 kx test no = "$dynamic_linker" && can_build_shared=no
319 kx
319 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
319 kx if test yes = "$GCC"; then
319 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
319 kx fi
319 kx
319 kx if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
319 kx sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
319 kx fi
319 kx
319 kx if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
319 kx sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
319 kx fi
319 kx
319 kx # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
319 kx configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
319 kx
319 kx # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
319 kx func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
319 kx
319 kx # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
319 kx configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
319 kx printf %s "checking how to hardcode library paths into programs... " >&6; }
319 kx hardcode_action_CXX=
319 kx if test -n "$hardcode_libdir_flag_spec_CXX" ||
319 kx test -n "$runpath_var_CXX" ||
319 kx test yes = "$hardcode_automatic_CXX"; then
319 kx
319 kx # We can hardcode non-existent directories.
319 kx if test no != "$hardcode_direct_CXX" &&
319 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
319 kx # have to relink, otherwise we might link with an installed library
319 kx # when we should be linking with a yet-to-be-installed one
319 kx ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
319 kx test no != "$hardcode_minus_L_CXX"; then
319 kx # Linking always hardcodes the temporary library directory.
319 kx hardcode_action_CXX=relink
319 kx else
319 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
319 kx hardcode_action_CXX=immediate
319 kx fi
319 kx else
319 kx # We cannot hardcode anything, or else we can only hardcode existing
319 kx # directories.
319 kx hardcode_action_CXX=unsupported
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
319 kx printf "%s\n" "$hardcode_action_CXX" >&6; }
319 kx
319 kx if test relink = "$hardcode_action_CXX" ||
319 kx test yes = "$inherit_rpath_CXX"; then
319 kx # Fast installation is not supported
319 kx enable_fast_install=no
319 kx elif test yes = "$shlibpath_overrides_runpath" ||
319 kx test no = "$enable_shared"; then
319 kx # Fast installation is not necessary
319 kx enable_fast_install=needless
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx fi # test -n "$compiler"
319 kx
319 kx CC=$lt_save_CC
319 kx CFLAGS=$lt_save_CFLAGS
319 kx LDCXX=$LD
319 kx LD=$lt_save_LD
319 kx GCC=$lt_save_GCC
319 kx with_gnu_ld=$lt_save_with_gnu_ld
319 kx lt_cv_path_LDCXX=$lt_cv_path_LD
319 kx lt_cv_path_LD=$lt_save_path_LD
319 kx lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
319 kx lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
319 kx fi # test yes != "$_lt_caught_CXX_error"
319 kx
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx ac_config_commands="$ac_config_commands libtool"
319 kx
319 kx
319 kx
319 kx
319 kx # Only expand once:
319 kx
319 kx
319 kx ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx ac_success=no
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
319 kx printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
319 kx if test ${ax_cv_cxx_compile_cxx11+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx
319 kx // If the compiler admits that it is not ready for C++11, why torture it?
319 kx // Hopefully, this will speed up the test.
319 kx
319 kx #ifndef __cplusplus
319 kx
319 kx #error "This is not a C++ compiler"
319 kx
319 kx #elif __cplusplus < 201103L
319 kx
319 kx #error "This is not a C++11 compiler"
319 kx
319 kx #else
319 kx
319 kx namespace cxx11
319 kx {
319 kx
319 kx namespace test_static_assert
319 kx {
319 kx
319 kx template <typename T>
319 kx struct check
319 kx {
319 kx static_assert(sizeof(int) <= sizeof(T), "not big enough");
319 kx };
319 kx
319 kx }
319 kx
319 kx namespace test_final_override
319 kx {
319 kx
319 kx struct Base
319 kx {
319 kx virtual void f() {}
319 kx };
319 kx
319 kx struct Derived : public Base
319 kx {
319 kx virtual void f() override {}
319 kx };
319 kx
319 kx }
319 kx
319 kx namespace test_double_right_angle_brackets
319 kx {
319 kx
319 kx template < typename T >
319 kx struct check {};
319 kx
319 kx typedef check<void> single_type;
319 kx typedef check<check<void>> double_type;
319 kx typedef check<check<check<void>>> triple_type;
319 kx typedef check<check<check<check<void>>>> quadruple_type;
319 kx
319 kx }
319 kx
319 kx namespace test_decltype
319 kx {
319 kx
319 kx int
319 kx f()
319 kx {
319 kx int a = 1;
319 kx decltype(a) b = 2;
319 kx return a + b;
319 kx }
319 kx
319 kx }
319 kx
319 kx namespace test_type_deduction
319 kx {
319 kx
319 kx template < typename T1, typename T2 >
319 kx struct is_same
319 kx {
319 kx static const bool value = false;
319 kx };
319 kx
319 kx template < typename T >
319 kx struct is_same<T, T>
319 kx {
319 kx static const bool value = true;
319 kx };
319 kx
319 kx template < typename T1, typename T2 >
319 kx auto
319 kx add(T1 a1, T2 a2) -> decltype(a1 + a2)
319 kx {
319 kx return a1 + a2;
319 kx }
319 kx
319 kx int
319 kx test(const int c, volatile int v)
319 kx {
319 kx static_assert(is_same<int, decltype(0)>::value == true, "");
319 kx static_assert(is_same<int, decltype(c)>::value == false, "");
319 kx static_assert(is_same<int, decltype(v)>::value == false, "");
319 kx auto ac = c;
319 kx auto av = v;
319 kx auto sumi = ac + av + 'x';
319 kx auto sumf = ac + av + 1.0;
319 kx static_assert(is_same<int, decltype(ac)>::value == true, "");
319 kx static_assert(is_same<int, decltype(av)>::value == true, "");
319 kx static_assert(is_same<int, decltype(sumi)>::value == true, "");
319 kx static_assert(is_same<int, decltype(sumf)>::value == false, "");
319 kx static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
319 kx return (sumf > 0.0) ? sumi : add(c, v);
319 kx }
319 kx
319 kx }
319 kx
319 kx namespace test_noexcept
319 kx {
319 kx
319 kx int f() { return 0; }
319 kx int g() noexcept { return 0; }
319 kx
319 kx static_assert(noexcept(f()) == false, "");
319 kx static_assert(noexcept(g()) == true, "");
319 kx
319 kx }
319 kx
319 kx namespace test_constexpr
319 kx {
319 kx
319 kx template < typename CharT >
319 kx unsigned long constexpr
319 kx strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
319 kx {
319 kx return *s ? strlen_c_r(s + 1, acc + 1) : acc;
319 kx }
319 kx
319 kx template < typename CharT >
319 kx unsigned long constexpr
319 kx strlen_c(const CharT *const s) noexcept
319 kx {
319 kx return strlen_c_r(s, 0UL);
319 kx }
319 kx
319 kx static_assert(strlen_c("") == 0UL, "");
319 kx static_assert(strlen_c("1") == 1UL, "");
319 kx static_assert(strlen_c("example") == 7UL, "");
319 kx static_assert(strlen_c("another\0example") == 7UL, "");
319 kx
319 kx }
319 kx
319 kx namespace test_rvalue_references
319 kx {
319 kx
319 kx template < int N >
319 kx struct answer
319 kx {
319 kx static constexpr int value = N;
319 kx };
319 kx
319 kx answer<1> f(int&) { return answer<1>(); }
319 kx answer<2> f(const int&) { return answer<2>(); }
319 kx answer<3> f(int&&) { return answer<3>(); }
319 kx
319 kx void
319 kx test()
319 kx {
319 kx int i = 0;
319 kx const int c = 0;
319 kx static_assert(decltype(f(i))::value == 1, "");
319 kx static_assert(decltype(f(c))::value == 2, "");
319 kx static_assert(decltype(f(0))::value == 3, "");
319 kx }
319 kx
319 kx }
319 kx
319 kx namespace test_uniform_initialization
319 kx {
319 kx
319 kx struct test
319 kx {
319 kx static const int zero {};
319 kx static const int one {1};
319 kx };
319 kx
319 kx static_assert(test::zero == 0, "");
319 kx static_assert(test::one == 1, "");
319 kx
319 kx }
319 kx
319 kx namespace test_lambdas
319 kx {
319 kx
319 kx void
319 kx test1()
319 kx {
319 kx auto lambda1 = [](){};
319 kx auto lambda2 = lambda1;
319 kx lambda1();
319 kx lambda2();
319 kx }
319 kx
319 kx int
319 kx test2()
319 kx {
319 kx auto a = [](int i, int j){ return i + j; }(1, 2);
319 kx auto b = []() -> int { return '0'; }();
319 kx auto c = [=](){ return a + b; }();
319 kx auto d = [&](){ return c; }();
319 kx auto e = [a, &b](int x) mutable {
319 kx const auto identity = [](int y){ return y; };
319 kx for (auto i = 0; i < a; ++i)
319 kx a += b--;
319 kx return x + identity(a + b);
319 kx }(0);
319 kx return a + b + c + d + e;
319 kx }
319 kx
319 kx int
319 kx test3()
319 kx {
319 kx const auto nullary = [](){ return 0; };
319 kx const auto unary = [](int x){ return x; };
319 kx using nullary_t = decltype(nullary);
319 kx using unary_t = decltype(unary);
319 kx const auto higher1st = [](nullary_t f){ return f(); };
319 kx const auto higher2nd = [unary](nullary_t f1){
319 kx return [unary, f1](unary_t f2){ return f2(unary(f1())); };
319 kx };
319 kx return higher1st(nullary) + higher2nd(nullary)(unary);
319 kx }
319 kx
319 kx }
319 kx
319 kx namespace test_variadic_templates
319 kx {
319 kx
319 kx template <int...>
319 kx struct sum;
319 kx
319 kx template <int N0, int... N1toN>
319 kx struct sum<N0, N1toN...>
319 kx {
319 kx static constexpr auto value = N0 + sum<N1toN...>::value;
319 kx };
319 kx
319 kx template <>
319 kx struct sum<>
319 kx {
319 kx static constexpr auto value = 0;
319 kx };
319 kx
319 kx static_assert(sum<>::value == 0, "");
319 kx static_assert(sum<1>::value == 1, "");
319 kx static_assert(sum<23>::value == 23, "");
319 kx static_assert(sum<1, 2>::value == 3, "");
319 kx static_assert(sum<5, 5, 11>::value == 21, "");
319 kx static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
319 kx
319 kx }
319 kx
319 kx // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
319 kx // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
319 kx // because of this.
319 kx namespace test_template_alias_sfinae
319 kx {
319 kx
319 kx struct foo {};
319 kx
319 kx template<typename T>
319 kx using member = typename T::member_type;
319 kx
319 kx template<typename T>
319 kx void func(...) {}
319 kx
319 kx template<typename T>
319 kx void func(member<T>*) {}
319 kx
319 kx void test();
319 kx
319 kx void test() { func<foo>(0); }
319 kx
319 kx }
319 kx
319 kx } // namespace cxx11
319 kx
319 kx #endif // __cplusplus >= 201103L
319 kx
319 kx
319 kx
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx ax_cv_cxx_compile_cxx11=yes
319 kx else $as_nop
319 kx ax_cv_cxx_compile_cxx11=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
319 kx printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
319 kx if test x$ax_cv_cxx_compile_cxx11 = xyes; then
319 kx ac_success=yes
319 kx fi
319 kx
319 kx
319 kx
319 kx if test x$ac_success = xno; then
319 kx for alternative in ${ax_cxx_compile_alternatives}; do
319 kx for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
319 kx cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
319 kx printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
319 kx if eval test \${$cachevar+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_save_CXX="$CXX"
319 kx CXX="$CXX $switch"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx
319 kx // If the compiler admits that it is not ready for C++11, why torture it?
319 kx // Hopefully, this will speed up the test.
319 kx
319 kx #ifndef __cplusplus
319 kx
319 kx #error "This is not a C++ compiler"
319 kx
319 kx #elif __cplusplus < 201103L
319 kx
319 kx #error "This is not a C++11 compiler"
319 kx
319 kx #else
319 kx
319 kx namespace cxx11
319 kx {
319 kx
319 kx namespace test_static_assert
319 kx {
319 kx
319 kx template <typename T>
319 kx struct check
319 kx {
319 kx static_assert(sizeof(int) <= sizeof(T), "not big enough");
319 kx };
319 kx
319 kx }
319 kx
319 kx namespace test_final_override
319 kx {
319 kx
319 kx struct Base
319 kx {
319 kx virtual void f() {}
319 kx };
319 kx
319 kx struct Derived : public Base
319 kx {
319 kx virtual void f() override {}
319 kx };
319 kx
319 kx }
319 kx
319 kx namespace test_double_right_angle_brackets
319 kx {
319 kx
319 kx template < typename T >
319 kx struct check {};
319 kx
319 kx typedef check<void> single_type;
319 kx typedef check<check<void>> double_type;
319 kx typedef check<check<check<void>>> triple_type;
319 kx typedef check<check<check<check<void>>>> quadruple_type;
319 kx
319 kx }
319 kx
319 kx namespace test_decltype
319 kx {
319 kx
319 kx int
319 kx f()
319 kx {
319 kx int a = 1;
319 kx decltype(a) b = 2;
319 kx return a + b;
319 kx }
319 kx
319 kx }
319 kx
319 kx namespace test_type_deduction
319 kx {
319 kx
319 kx template < typename T1, typename T2 >
319 kx struct is_same
319 kx {
319 kx static const bool value = false;
319 kx };
319 kx
319 kx template < typename T >
319 kx struct is_same<T, T>
319 kx {
319 kx static const bool value = true;
319 kx };
319 kx
319 kx template < typename T1, typename T2 >
319 kx auto
319 kx add(T1 a1, T2 a2) -> decltype(a1 + a2)
319 kx {
319 kx return a1 + a2;
319 kx }
319 kx
319 kx int
319 kx test(const int c, volatile int v)
319 kx {
319 kx static_assert(is_same<int, decltype(0)>::value == true, "");
319 kx static_assert(is_same<int, decltype(c)>::value == false, "");
319 kx static_assert(is_same<int, decltype(v)>::value == false, "");
319 kx auto ac = c;
319 kx auto av = v;
319 kx auto sumi = ac + av + 'x';
319 kx auto sumf = ac + av + 1.0;
319 kx static_assert(is_same<int, decltype(ac)>::value == true, "");
319 kx static_assert(is_same<int, decltype(av)>::value == true, "");
319 kx static_assert(is_same<int, decltype(sumi)>::value == true, "");
319 kx static_assert(is_same<int, decltype(sumf)>::value == false, "");
319 kx static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
319 kx return (sumf > 0.0) ? sumi : add(c, v);
319 kx }
319 kx
319 kx }
319 kx
319 kx namespace test_noexcept
319 kx {
319 kx
319 kx int f() { return 0; }
319 kx int g() noexcept { return 0; }
319 kx
319 kx static_assert(noexcept(f()) == false, "");
319 kx static_assert(noexcept(g()) == true, "");
319 kx
319 kx }
319 kx
319 kx namespace test_constexpr
319 kx {
319 kx
319 kx template < typename CharT >
319 kx unsigned long constexpr
319 kx strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
319 kx {
319 kx return *s ? strlen_c_r(s + 1, acc + 1) : acc;
319 kx }
319 kx
319 kx template < typename CharT >
319 kx unsigned long constexpr
319 kx strlen_c(const CharT *const s) noexcept
319 kx {
319 kx return strlen_c_r(s, 0UL);
319 kx }
319 kx
319 kx static_assert(strlen_c("") == 0UL, "");
319 kx static_assert(strlen_c("1") == 1UL, "");
319 kx static_assert(strlen_c("example") == 7UL, "");
319 kx static_assert(strlen_c("another\0example") == 7UL, "");
319 kx
319 kx }
319 kx
319 kx namespace test_rvalue_references
319 kx {
319 kx
319 kx template < int N >
319 kx struct answer
319 kx {
319 kx static constexpr int value = N;
319 kx };
319 kx
319 kx answer<1> f(int&) { return answer<1>(); }
319 kx answer<2> f(const int&) { return answer<2>(); }
319 kx answer<3> f(int&&) { return answer<3>(); }
319 kx
319 kx void
319 kx test()
319 kx {
319 kx int i = 0;
319 kx const int c = 0;
319 kx static_assert(decltype(f(i))::value == 1, "");
319 kx static_assert(decltype(f(c))::value == 2, "");
319 kx static_assert(decltype(f(0))::value == 3, "");
319 kx }
319 kx
319 kx }
319 kx
319 kx namespace test_uniform_initialization
319 kx {
319 kx
319 kx struct test
319 kx {
319 kx static const int zero {};
319 kx static const int one {1};
319 kx };
319 kx
319 kx static_assert(test::zero == 0, "");
319 kx static_assert(test::one == 1, "");
319 kx
319 kx }
319 kx
319 kx namespace test_lambdas
319 kx {
319 kx
319 kx void
319 kx test1()
319 kx {
319 kx auto lambda1 = [](){};
319 kx auto lambda2 = lambda1;
319 kx lambda1();
319 kx lambda2();
319 kx }
319 kx
319 kx int
319 kx test2()
319 kx {
319 kx auto a = [](int i, int j){ return i + j; }(1, 2);
319 kx auto b = []() -> int { return '0'; }();
319 kx auto c = [=](){ return a + b; }();
319 kx auto d = [&](){ return c; }();
319 kx auto e = [a, &b](int x) mutable {
319 kx const auto identity = [](int y){ return y; };
319 kx for (auto i = 0; i < a; ++i)
319 kx a += b--;
319 kx return x + identity(a + b);
319 kx }(0);
319 kx return a + b + c + d + e;
319 kx }
319 kx
319 kx int
319 kx test3()
319 kx {
319 kx const auto nullary = [](){ return 0; };
319 kx const auto unary = [](int x){ return x; };
319 kx using nullary_t = decltype(nullary);
319 kx using unary_t = decltype(unary);
319 kx const auto higher1st = [](nullary_t f){ return f(); };
319 kx const auto higher2nd = [unary](nullary_t f1){
319 kx return [unary, f1](unary_t f2){ return f2(unary(f1())); };
319 kx };
319 kx return higher1st(nullary) + higher2nd(nullary)(unary);
319 kx }
319 kx
319 kx }
319 kx
319 kx namespace test_variadic_templates
319 kx {
319 kx
319 kx template <int...>
319 kx struct sum;
319 kx
319 kx template <int N0, int... N1toN>
319 kx struct sum<N0, N1toN...>
319 kx {
319 kx static constexpr auto value = N0 + sum<N1toN...>::value;
319 kx };
319 kx
319 kx template <>
319 kx struct sum<>
319 kx {
319 kx static constexpr auto value = 0;
319 kx };
319 kx
319 kx static_assert(sum<>::value == 0, "");
319 kx static_assert(sum<1>::value == 1, "");
319 kx static_assert(sum<23>::value == 23, "");
319 kx static_assert(sum<1, 2>::value == 3, "");
319 kx static_assert(sum<5, 5, 11>::value == 21, "");
319 kx static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
319 kx
319 kx }
319 kx
319 kx // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
319 kx // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
319 kx // because of this.
319 kx namespace test_template_alias_sfinae
319 kx {
319 kx
319 kx struct foo {};
319 kx
319 kx template<typename T>
319 kx using member = typename T::member_type;
319 kx
319 kx template<typename T>
319 kx void func(...) {}
319 kx
319 kx template<typename T>
319 kx void func(member<T>*) {}
319 kx
319 kx void test();
319 kx
319 kx void test() { func<foo>(0); }
319 kx
319 kx }
319 kx
319 kx } // namespace cxx11
319 kx
319 kx #endif // __cplusplus >= 201103L
319 kx
319 kx
319 kx
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx eval $cachevar=yes
319 kx else $as_nop
319 kx eval $cachevar=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx CXX="$ac_save_CXX"
319 kx fi
319 kx eval ac_res=\$$cachevar
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
319 kx printf "%s\n" "$ac_res" >&6; }
319 kx if eval test x\$$cachevar = xyes; then
319 kx CXX="$CXX $switch"
319 kx if test -n "$CXXCPP" ; then
319 kx CXXCPP="$CXXCPP $switch"
319 kx fi
319 kx ac_success=yes
319 kx break
319 kx fi
319 kx done
319 kx if test x$ac_success = xyes; then
319 kx break
319 kx fi
319 kx done
319 kx fi
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx if test x$ax_cxx_compile_cxx11_required = xtrue; then
319 kx if test x$ac_success = xno; then
319 kx as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
319 kx fi
319 kx fi
319 kx if test x$ac_success = xno; then
319 kx HAVE_CXX11=0
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
319 kx printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
319 kx else
319 kx HAVE_CXX11=1
319 kx
319 kx printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
319 kx
319 kx fi
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
319 kx printf %s "checking whether byte ordering is bigendian... " >&6; }
319 kx if test ${ac_cv_c_bigendian+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_cv_c_bigendian=unknown
319 kx # See if we're dealing with a universal compiler.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #ifndef __APPLE_CC__
319 kx not a universal capable compiler
319 kx #endif
319 kx typedef int dummy;
319 kx
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx
319 kx # Check for potential -arch flags. It is not universal unless
319 kx # there are at least two -arch flags with different values.
319 kx ac_arch=
319 kx ac_prev=
319 kx for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
319 kx if test -n "$ac_prev"; then
319 kx case $ac_word in
319 kx i?86 | x86_64 | ppc | ppc64)
319 kx if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
319 kx ac_arch=$ac_word
319 kx else
319 kx ac_cv_c_bigendian=universal
319 kx break
319 kx fi
319 kx ;;
319 kx esac
319 kx ac_prev=
319 kx elif test "x$ac_word" = "x-arch"; then
319 kx ac_prev=arch
319 kx fi
319 kx done
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx if test $ac_cv_c_bigendian = unknown; then
319 kx # See if sys/param.h defines the BYTE_ORDER macro.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <sys/types.h>
319 kx #include <sys/param.h>
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
319 kx && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
319 kx && LITTLE_ENDIAN)
319 kx bogus endian macros
319 kx #endif
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx # It does; now see whether it defined to BIG_ENDIAN or not.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <sys/types.h>
319 kx #include <sys/param.h>
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx #if BYTE_ORDER != BIG_ENDIAN
319 kx not big endian
319 kx #endif
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_c_bigendian=yes
319 kx else $as_nop
319 kx ac_cv_c_bigendian=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx if test $ac_cv_c_bigendian = unknown; then
319 kx # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <limits.h>
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
319 kx bogus endian macros
319 kx #endif
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx # It does; now see whether it defined to _BIG_ENDIAN or not.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <limits.h>
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx #ifndef _BIG_ENDIAN
319 kx not big endian
319 kx #endif
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_c_bigendian=yes
319 kx else $as_nop
319 kx ac_cv_c_bigendian=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx if test $ac_cv_c_bigendian = unknown; then
319 kx # Compile a test program.
319 kx if test "$cross_compiling" = yes
319 kx then :
319 kx # Try to guess by grepping values from an object file.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx unsigned short int ascii_mm[] =
319 kx { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
319 kx unsigned short int ascii_ii[] =
319 kx { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
319 kx int use_ascii (int i) {
319 kx return ascii_mm[i] + ascii_ii[i];
319 kx }
319 kx unsigned short int ebcdic_ii[] =
319 kx { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
319 kx unsigned short int ebcdic_mm[] =
319 kx { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
319 kx int use_ebcdic (int i) {
319 kx return ebcdic_mm[i] + ebcdic_ii[i];
319 kx }
319 kx extern int foo;
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx return use_ascii (foo) == use_ebcdic (foo);
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
319 kx ac_cv_c_bigendian=yes
319 kx fi
319 kx if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
319 kx if test "$ac_cv_c_bigendian" = unknown; then
319 kx ac_cv_c_bigendian=no
319 kx else
319 kx # finding both strings is unlikely to happen, but who knows?
319 kx ac_cv_c_bigendian=unknown
319 kx fi
319 kx fi
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx else $as_nop
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx $ac_includes_default
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx /* Are we little or big endian? From Harbison&Steele. */
319 kx union
319 kx {
319 kx long int l;
319 kx char c[sizeof (long int)];
319 kx } u;
319 kx u.l = 1;
319 kx return u.c[sizeof (long int) - 1] == 1;
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_run "$LINENO"
319 kx then :
319 kx ac_cv_c_bigendian=no
319 kx else $as_nop
319 kx ac_cv_c_bigendian=yes
319 kx fi
319 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
319 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx fi
319 kx
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
319 kx printf "%s\n" "$ac_cv_c_bigendian" >&6; }
319 kx case $ac_cv_c_bigendian in #(
319 kx yes)
319 kx printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
319 kx ;; #(
319 kx no)
319 kx ;; #(
319 kx universal)
319 kx
319 kx printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
319 kx
319 kx ;; #(
319 kx *)
319 kx as_fn_error $? "unknown endianness
319 kx presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
319 kx esac
319 kx
319 kx printf "%s\n" "#define CHECKED_ENDIANNESS 1" >>confdefs.h
319 kx
319 kx
319 kx
319 kx # Check whether --with-darwinports was given.
319 kx if test ${with_darwinports+y}
319 kx then :
319 kx withval=$with_darwinports;
319 kx if test "x$withval" != "xno"; then
319 kx CPPFLAGS="$CPPFLAGS -I/opt/local/include"
319 kx LDFLAGS="$LDFLAGS -L/opt/local/lib"
319 kx CC=g++
319 kx fi
319 kx
319 kx fi
319 kx
319 kx
319 kx # Check whether --with-fink was given.
319 kx if test ${with_fink+y}
319 kx then :
319 kx withval=$with_fink;
319 kx if test "x$withval" != "xno"; then
319 kx CPPFLAGS="$CPPFLAGS -I/sw/include"
319 kx LDFLAGS="$LDFLAGS -L/sw/lib"
319 kx CC=g++
319 kx fi
319 kx
319 kx fi
319 kx
319 kx
319 kx
319 kx ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
319 kx if test "x$ac_cv_header_expat_h" = xyes
319 kx then :
319 kx
319 kx else $as_nop
319 kx as_fn_error $? "expat headers missing" "$LINENO" 5
319 kx fi
319 kx
319 kx ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
319 kx if test "x$ac_cv_header_iconv_h" = xyes
319 kx then :
319 kx
319 kx else $as_nop
319 kx as_fn_error $? "iconv headers missing" "$LINENO" 5
319 kx fi
319 kx
319 kx ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
319 kx if test "x$ac_cv_header_zlib_h" = xyes
319 kx then :
319 kx
319 kx else $as_nop
319 kx as_fn_error $? "zlib headers missing" "$LINENO" 5
319 kx fi
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
319 kx printf %s "checking for iconv declaration... " >&6; }
319 kx if test ${am_cv_proto_iconv+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx #include <stdlib.h>
319 kx #include <iconv.h>
319 kx extern
319 kx #ifdef __cplusplus
319 kx "C"
319 kx #endif
319 kx #if defined(__STDC__) || defined(__cplusplus)
319 kx size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
319 kx #else
319 kx size_t iconv();
319 kx #endif
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx am_cv_proto_iconv_arg1=""
319 kx else $as_nop
319 kx am_cv_proto_iconv_arg1="const"
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
319 kx fi
319 kx
319 kx am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
319 kx }$am_cv_proto_iconv" >&5
319 kx printf "%s\n" "${ac_t:-
319 kx }$am_cv_proto_iconv" >&6; }
319 kx
319 kx printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
319 kx
319 kx
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
319 kx printf %s "checking for thread local storage (TLS) class... " >&6; }
319 kx if test ${ac_cv_tls+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx
319 kx ax_tls_keywords="__thread __declspec(thread) none"
319 kx for ax_tls_keyword in $ax_tls_keywords; do
319 kx case $ax_tls_keyword in
319 kx none) ac_cv_tls=none ; break ;;
319 kx *)
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <stdlib.h>
319 kx static void
319 kx foo(void) {
319 kx static $ax_tls_keyword int bar;
319 kx exit(1);
319 kx }
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_c_try_compile "$LINENO"
319 kx then :
319 kx ac_cv_tls=$ax_tls_keyword ; break
319 kx else $as_nop
319 kx ac_cv_tls=none
319 kx
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx esac
319 kx done
319 kx
319 kx fi
319 kx
319 kx
319 kx if test "$ac_cv_tls" != "none"; then
319 kx
319 kx printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
319 kx printf "%s\n" "$ac_cv_tls" >&6; }
319 kx
319 kx if test "$ac_cv_tls" != "none"; then
319 kx
319 kx printf "%s\n" "#define HAVE_NATIVE_TLS 1" >>confdefs.h
319 kx
319 kx fi
319 kx
319 kx
319 kx # Check whether --enable-samples was given.
319 kx if test ${enable_samples+y}
319 kx then :
319 kx enableval=$enable_samples; enable_samples=$enableval
319 kx else $as_nop
319 kx enable_samples=yes
319 kx fi
319 kx
319 kx if test x"$enable_samples" = xyes; then
319 kx ENABLE_SAMPLES_TRUE=
319 kx ENABLE_SAMPLES_FALSE='#'
319 kx else
319 kx ENABLE_SAMPLES_TRUE='#'
319 kx ENABLE_SAMPLES_FALSE=
319 kx fi
319 kx
319 kx
319 kx
319 kx # Check whether --enable-unittest was given.
319 kx if test ${enable_unittest+y}
319 kx then :
319 kx enableval=$enable_unittest; ENABLE_UNITTEST=$enableval
319 kx else $as_nop
319 kx ENABLE_UNITTEST=yes
319 kx fi
319 kx
319 kx if test x$ENABLE_UNITTEST = xyes ; then
319 kx
319 kx echo "$as_me: this is boost.m4 serial 25" >&5
319 kx boost_save_IFS=$IFS
319 kx boost_version_req=1.60.0
319 kx IFS=.
319 kx set x $boost_version_req 0 0 0
319 kx IFS=$boost_save_IFS
319 kx shift
319 kx boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
319 kx boost_version_req_string=$1.$2.$3
319 kx
319 kx # Check whether --with-boost was given.
319 kx if test ${with_boost+y}
319 kx then :
319 kx withval=$with_boost;
319 kx fi
319 kx # If BOOST_ROOT is set and the user has not provided a value to
319 kx # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
319 kx if test x"$BOOST_ROOT" != x; then
319 kx if test x"$with_boost" = x; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
319 kx printf "%s\n" "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
319 kx with_boost=$BOOST_ROOT
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
319 kx printf "%s\n" "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
319 kx fi
319 kx fi
319 kx DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
319 kx boost_save_CPPFLAGS=$CPPFLAGS
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
319 kx printf %s "checking for Boost headers version >= $boost_version_req_string... " >&6; }
319 kx if test ${boost_cv_inc_path+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx boost_cv_inc_path=no
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <boost/version.hpp>
319 kx #if !defined BOOST_VERSION
319 kx # error BOOST_VERSION is not defined
319 kx #elif BOOST_VERSION < $boost_version_req
319 kx # error Boost headers version < $boost_version_req
319 kx #endif
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx # If the user provided a value to --with-boost, use it and only it.
319 kx case $with_boost in #(
319 kx ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
319 kx /usr/include C:/Boost/include;; #(
319 kx *) set x "$with_boost/include" "$with_boost";;
319 kx esac
319 kx shift
319 kx for boost_dir
319 kx do
319 kx # Without --layout=system, Boost (or at least some versions) installs
319 kx # itself in <prefix>/include/boost-<version>. This inner loop helps to
319 kx # find headers in such directories.
319 kx #
319 kx # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
319 kx # order followed by ${boost_dir}. The final '.' is a sentinel for
319 kx # searching $boost_dir" itself. Entries are whitespace separated.
319 kx #
319 kx # I didn't indent this loop on purpose (to avoid over-indented code)
319 kx boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
319 kx && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
319 kx && echo .`
319 kx for boost_inc in $boost_layout_system_search_list
319 kx do
319 kx if test x"$boost_inc" != x.; then
319 kx boost_inc="$boost_dir/$boost_inc"
319 kx else
319 kx boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
319 kx fi
319 kx if test x"$boost_inc" != x; then
319 kx # We are going to check whether the version of Boost installed
319 kx # in $boost_inc is usable by running a compilation that
319 kx # #includes it. But if we pass a -I/some/path in which Boost
319 kx # is not installed, the compiler will just skip this -I and
319 kx # use other locations (either from CPPFLAGS, or from its list
319 kx # of system include directories). As a result we would use
319 kx # header installed on the machine instead of the /some/path
319 kx # specified by the user. So in that precise case (trying
319 kx # $boost_inc), make sure the version.hpp exists.
319 kx #
319 kx # Use test -e as there can be symlinks.
319 kx test -e "$boost_inc/boost/version.hpp" || continue
319 kx CPPFLAGS="$CPPFLAGS -I$boost_inc"
319 kx fi
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx boost_cv_inc_path=yes
319 kx else $as_nop
319 kx boost_cv_version=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
319 kx if test x"$boost_cv_inc_path" = xyes; then
319 kx if test x"$boost_inc" != x; then
319 kx boost_cv_inc_path=$boost_inc
319 kx fi
319 kx break 2
319 kx fi
319 kx done
319 kx done
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
319 kx printf "%s\n" "$boost_cv_inc_path" >&6; }
319 kx case $boost_cv_inc_path in #(
319 kx no)
319 kx boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
319 kx as_fn_error $? "$boost_errmsg" "$LINENO" 5
319 kx
319 kx ;;#(
319 kx yes)
319 kx BOOST_CPPFLAGS=
319 kx ;;#(
319 kx *)
319 kx BOOST_CPPFLAGS="-I$boost_cv_inc_path"
319 kx ;;
319 kx esac
319 kx if test x"$boost_cv_inc_path" != xno; then
319 kx
319 kx printf "%s\n" "#define HAVE_BOOST 1" >>confdefs.h
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
319 kx printf %s "checking for Boost's header version... " >&6; }
319 kx if test ${boost_cv_lib_version+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <boost/version.hpp>
319 kx boost-lib-version = BOOST_LIB_VERSION
319 kx _ACEOF
319 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
319 kx grep -v '#' |
319 kx tr -d '\r' |
319 kx tr -s '\n' ' ' |
319 kx $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1
319 kx then :
319 kx boost_cv_lib_version=`cat conftest.i`
319 kx fi
319 kx rm -rf conftest*
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
319 kx printf "%s\n" "$boost_cv_lib_version" >&6; }
319 kx # e.g. "134" for 1_34_1 or "135" for 1_35
319 kx boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
319 kx case $boost_major_version in #(
319 kx '' | *[!0-9]*)
319 kx as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
319 kx ;;
319 kx esac
319 kx fi
319 kx CPPFLAGS=$boost_save_CPPFLAGS
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
319 kx printf %s "checking for the toolset name used by Boost for $CXX... " >&6; }
319 kx if test ${boost_cv_lib_tag+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx boost_cv_lib_tag=unknown
319 kx if test x$boost_cv_inc_path != xno; then
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx # The following tests are mostly inspired by boost/config/auto_link.hpp
319 kx # The list is sorted to most recent/common to oldest compiler (in order
319 kx # to increase the likelihood of finding the right compiler with the
319 kx # least number of compilation attempt).
319 kx # Beware that some tests are sensible to the order (for instance, we must
319 kx # look for MinGW before looking for GCC3).
319 kx # I used one compilation test per compiler with a #error to recognize
319 kx # each compiler so that it works even when cross-compiling (let me know
319 kx # if you know a better approach).
319 kx # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
319 kx # como, edg, kcc, bck, mp, sw, tru, xlc
319 kx # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
319 kx # the same defines as GCC's).
319 kx for i in \
319 kx "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
319 kx "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
319 kx "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
319 kx "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
319 kx "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
319 kx "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
319 kx "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
319 kx "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
319 kx (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
319 kx "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
319 kx "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
319 kx && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
319 kx || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
319 kx "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
319 kx "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
319 kx "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
319 kx "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
319 kx "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
319 kx "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
319 kx "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
319 kx "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
319 kx "defined __BORLANDC__ @ bcb" \
319 kx "defined __ICC && (defined __unix || defined ) @ il" \
319 kx "defined __ICL @ iw" \
319 kx "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
319 kx "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
319 kx "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
319 kx "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
319 kx "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
319 kx "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
319 kx do
319 kx boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
319 kx boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx #if $boost_tag_test
319 kx /* OK */
319 kx #else
319 kx # error $boost_tag_test
319 kx #endif
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx boost_cv_lib_tag=$boost_tag; break
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx done
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx case $boost_cv_lib_tag in #(
319 kx # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
319 kx # to "gcc41" for instance.
319 kx *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
319 kx gcc*)
319 kx boost_tag_x=
319 kx case $host_os in #(
319 kx darwin*)
319 kx if test $boost_major_version -ge 136; then
319 kx # The `x' added in r46793 of Boost.
319 kx boost_tag_x=x
319 kx fi;;
319 kx esac
319 kx # We can specify multiple tags in this variable because it's used by
319 kx # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
319 kx boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
319 kx ;; #(
319 kx unknown)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
319 kx printf "%s\n" "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
319 kx boost_cv_lib_tag=
319 kx ;;
319 kx esac
319 kx fi
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
319 kx printf "%s\n" "$boost_cv_lib_tag" >&6; }
319 kx # Check whether --enable-static-boost was given.
319 kx if test ${enable_static_boost+y}
319 kx then :
319 kx enableval=$enable_static_boost; enable_static_boost=yes
319 kx else $as_nop
319 kx enable_static_boost=no
319 kx fi
319 kx
319 kx # Check whether we do better use `mt' even though we weren't ask to.
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx #if defined _REENTRANT || defined _MT || defined __MT__
319 kx /* use -mt */
319 kx #else
319 kx # error MT not needed
319 kx #endif
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx boost_guess_use_mt=:
319 kx else $as_nop
319 kx boost_guess_use_mt=false
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx
319 kx if test x"$boost_cv_inc_path" = xno; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost unit_test_framework library" >&5
319 kx printf "%s\n" "$as_me: Boost not available, not searching for the Boost unit_test_framework library" >&6;}
319 kx else
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx if test x"$boost_cv_inc_path" = xno; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/test/unit_test.hpp" >&5
319 kx printf "%s\n" "$as_me: Boost not available, not searching for boost/test/unit_test.hpp" >&6;}
319 kx else
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx boost_save_CPPFLAGS=$CPPFLAGS
319 kx CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
319 kx ac_fn_cxx_check_header_compile "$LINENO" "boost/test/unit_test.hpp" "ac_cv_header_boost_test_unit_test_hpp" "$ac_includes_default"
319 kx if test "x$ac_cv_header_boost_test_unit_test_hpp" = xyes
319 kx then :
319 kx
319 kx printf "%s\n" "#define HAVE_BOOST_TEST_UNIT_TEST_HPP 1" >>confdefs.h
319 kx
319 kx else $as_nop
319 kx as_fn_error $? "cannot find boost/test/unit_test.hpp" "$LINENO" 5
319 kx fi
319 kx
319 kx CPPFLAGS=$boost_save_CPPFLAGS
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx fi
319 kx
319 kx boost_save_CPPFLAGS=$CPPFLAGS
319 kx CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost unit_test_framework library" >&5
319 kx printf %s "checking for the Boost unit_test_framework library... " >&6; }
319 kx if test ${boost_cv_lib_unit_test_framework+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx boost_cv_lib_unit_test_framework=no
319 kx case "mt-s" in #(
319 kx (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
319 kx (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt-s" : 'Xmt-*\(.*\)'`;; #(
319 kx (*) boost_mt=; boost_rtopt=mt-s;;
319 kx esac
319 kx if test $enable_static_boost = yes; then
319 kx boost_rtopt="s$boost_rtopt"
319 kx fi
319 kx # Find the proper debug variant depending on what we've been asked to find.
319 kx case $boost_rtopt in #(
319 kx (*d*) boost_rt_d=$boost_rtopt;; #(
319 kx (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
319 kx boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
319 kx (*) boost_rt_d='-d';;
319 kx esac
319 kx # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
319 kx test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
319 kx $boost_guess_use_mt && boost_mt=-mt
319 kx # Look for the abs path the static archive.
319 kx # $libext is computed by Libtool but let's make sure it's non empty.
319 kx test -z "$libext" &&
319 kx as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
319 kx boost_save_ac_objext=$ac_objext
319 kx # Generate the test file.
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx #include <boost/test/unit_test.hpp>
319 kx using boost::unit_test::test_suite;
319 kx test_suite* init_unit_test_suite(int argc, char ** argv)
319 kx { return NULL; }
319 kx int
319 kx main (void)
319 kx {
319 kx BOOST_CHECK(2 == 2);
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx ac_objext=do_not_rm_me_plz
319 kx else $as_nop
319 kx as_fn_error $? "cannot compile a test that uses Boost unit_test_framework" "$LINENO" 5
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam
319 kx ac_objext=$boost_save_ac_objext
319 kx boost_failed_libs=
319 kx # Don't bother to ident the following nested for loops, only the 2
319 kx # innermost ones matter.
319 kx for boost_lib_ in unit_test_framework; do
319 kx for boost_tag_ in -$boost_cv_lib_tag ''; do
319 kx for boost_ver_ in -$boost_cv_lib_version ''; do
319 kx for boost_mt_ in $boost_mt -mt ''; do
319 kx for boost_rtopt_ in $boost_rtopt '' -d; do
319 kx for boost_lib in \
319 kx boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
319 kx boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
319 kx boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
319 kx boost_$boost_lib_$boost_tag_$boost_ver_
319 kx do
319 kx # Avoid testing twice the same lib
319 kx case $boost_failed_libs in #(
319 kx (*@$boost_lib@*) continue;;
319 kx esac
319 kx # If with_boost is empty, we'll search in /lib first, which is not quite
319 kx # right so instead we'll try to a location based on where the headers are.
319 kx boost_tmp_lib=$with_boost
319 kx test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
319 kx for boost_ldpath in "$boost_tmp_lib/lib" '' \
319 kx /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
319 kx "$with_boost" C:/Boost/lib /lib*
319 kx do
319 kx # Don't waste time with directories that don't exist.
319 kx if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
319 kx continue
319 kx fi
319 kx boost_save_LDFLAGS=$LDFLAGS
319 kx # Are we looking for a static library?
319 kx case $boost_ldpath:$boost_rtopt_ in #(
319 kx (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
319 kx boost_cv_lib_unit_test_framework_LIBS="$boost_ldpath/lib$boost_lib.$libext"
319 kx test -e "$boost_cv_lib_unit_test_framework_LIBS" || continue;; #(
319 kx (*) # No: use -lboost_foo to find the shared library.
319 kx boost_cv_lib_unit_test_framework_LIBS="-l$boost_lib";;
319 kx esac
319 kx boost_save_LIBS=$LIBS
319 kx LIBS="$boost_cv_lib_unit_test_framework_LIBS $LIBS"
319 kx test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
319 kx rm -f conftest$ac_exeext
319 kx boost_save_ac_ext=$ac_ext
319 kx boost_use_source=:
319 kx # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
319 kx # tries to link the existing object file instead of compiling from source.
319 kx test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
319 kx if { { ac_try="$ac_link"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_link") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx grep -v '^ *+' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx mv -f conftest.er1 conftest.err
319 kx fi
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && {
319 kx test -z "$ac_cxx_werror_flag" ||
319 kx test ! -s conftest.err
319 kx } && test -s conftest$ac_exeext && {
319 kx test "$cross_compiling" = yes ||
319 kx $as_executable_p conftest$ac_exeext
319 kx }
319 kx then :
319 kx boost_cv_lib_unit_test_framework=yes
319 kx else $as_nop
319 kx if $boost_use_source; then
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx fi
319 kx boost_cv_lib_unit_test_framework=no
319 kx fi
319 kx ac_objext=$boost_save_ac_objext
319 kx ac_ext=$boost_save_ac_ext
319 kx rm -f core conftest.err conftest_ipa8_conftest.oo \
319 kx conftest$ac_exeext
319 kx ac_objext=$boost_save_ac_objext
319 kx LDFLAGS=$boost_save_LDFLAGS
319 kx LIBS=$boost_save_LIBS
319 kx if test x"$boost_cv_lib_unit_test_framework" = xyes; then
319 kx # Check or used cached result of whether or not using -R or
319 kx # -rpath makes sense. Some implementations of ld, such as for
319 kx # Mac OSX, require -rpath but -R is the flag known to work on
319 kx # other systems. https://github.com/tsuna/boost.m4/issues/19
319 kx if test ${boost_cv_rpath_link_ldflag+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx case $boost_ldpath in
319 kx '') # Nothing to do.
319 kx boost_cv_rpath_link_ldflag=
319 kx boost_rpath_link_ldflag_found=yes;;
319 kx *)
319 kx for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
319 kx LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
319 kx LIBS="$boost_save_LIBS $boost_cv_lib_unit_test_framework_LIBS"
319 kx rm -f conftest$ac_exeext
319 kx boost_save_ac_ext=$ac_ext
319 kx boost_use_source=:
319 kx # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
319 kx # tries to link the existing object file instead of compiling from source.
319 kx test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
319 kx if { { ac_try="$ac_link"
319 kx case "(($ac_try" in
319 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
319 kx *) ac_try_echo=$ac_try;;
319 kx esac
319 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
319 kx printf "%s\n" "$ac_try_echo"; } >&5
319 kx (eval "$ac_link") 2>conftest.err
319 kx ac_status=$?
319 kx if test -s conftest.err; then
319 kx grep -v '^ *+' conftest.err >conftest.er1
319 kx cat conftest.er1 >&5
319 kx mv -f conftest.er1 conftest.err
319 kx fi
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } && {
319 kx test -z "$ac_cxx_werror_flag" ||
319 kx test ! -s conftest.err
319 kx } && test -s conftest$ac_exeext && {
319 kx test "$cross_compiling" = yes ||
319 kx $as_executable_p conftest$ac_exeext
319 kx }
319 kx then :
319 kx boost_rpath_link_ldflag_found=yes
319 kx break
319 kx else $as_nop
319 kx if $boost_use_source; then
319 kx printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx fi
319 kx boost_rpath_link_ldflag_found=no
319 kx fi
319 kx ac_objext=$boost_save_ac_objext
319 kx ac_ext=$boost_save_ac_ext
319 kx rm -f core conftest.err conftest_ipa8_conftest.oo \
319 kx conftest$ac_exeext
319 kx done
319 kx ;;
319 kx esac
319 kx if test "x$boost_rpath_link_ldflag_found" != "xyes"
319 kx then :
319 kx as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
319 kx fi
319 kx LDFLAGS=$boost_save_LDFLAGS
319 kx LIBS=$boost_save_LIBS
319 kx
319 kx fi
319 kx
319 kx test x"$boost_ldpath" != x &&
319 kx boost_cv_lib_unit_test_framework_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
319 kx boost_cv_lib_unit_test_framework_LDPATH="$boost_ldpath"
319 kx break 7
319 kx else
319 kx boost_failed_libs="$boost_failed_libs@$boost_lib@"
319 kx fi
319 kx done
319 kx done
319 kx done
319 kx done
319 kx done
319 kx done
319 kx done # boost_lib_
319 kx rm -f conftest.$ac_objext
319 kx
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_unit_test_framework" >&5
319 kx printf "%s\n" "$boost_cv_lib_unit_test_framework" >&6; }
319 kx case $boost_cv_lib_unit_test_framework in #(
319 kx (no) printf "%s\n" "$as_me: failed program was:" >&5
319 kx sed 's/^/| /' conftest.$ac_ext >&5
319 kx
319 kx as_fn_error $? "cannot find the flags to link with Boost unit_test_framework" "$LINENO" 5
319 kx ;;
319 kx esac
319 kx BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS=$boost_cv_lib_unit_test_framework_LDFLAGS
319 kx BOOST_UNIT_TEST_FRAMEWORK_LDPATH=$boost_cv_lib_unit_test_framework_LDPATH
319 kx BOOST_LDPATH=$boost_cv_lib_unit_test_framework_LDPATH
319 kx BOOST_UNIT_TEST_FRAMEWORK_LIBS=$boost_cv_lib_unit_test_framework_LIBS
319 kx CPPFLAGS=$boost_save_CPPFLAGS
319 kx ac_ext=c
319 kx ac_cpp='$CPP $CPPFLAGS'
319 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
319 kx fi
319 kx
319 kx
319 kx
319 kx else
319 kx ENABLE_UNITTEST=no
319 kx fi
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
319 kx printf %s "checking for library containing dlopen... " >&6; }
319 kx if test ${ac_cv_search_dlopen+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_func_search_save_LIBS=$LIBS
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx /* Override any GCC internal prototype to avoid an error.
319 kx Use char because int might match the return type of a GCC
319 kx builtin and then its argument prototype would still apply. */
319 kx char dlopen ();
319 kx int
319 kx main (void)
319 kx {
319 kx return dlopen ();
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx for ac_lib in '' dl dld
319 kx do
319 kx if test -z "$ac_lib"; then
319 kx ac_res="none required"
319 kx else
319 kx ac_res=-l$ac_lib
319 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
319 kx fi
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx ac_cv_search_dlopen=$ac_res
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext
319 kx if test ${ac_cv_search_dlopen+y}
319 kx then :
319 kx break
319 kx fi
319 kx done
319 kx if test ${ac_cv_search_dlopen+y}
319 kx then :
319 kx
319 kx else $as_nop
319 kx ac_cv_search_dlopen=no
319 kx fi
319 kx rm conftest.$ac_ext
319 kx LIBS=$ac_func_search_save_LIBS
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
319 kx printf "%s\n" "$ac_cv_search_dlopen" >&6; }
319 kx ac_res=$ac_cv_search_dlopen
319 kx if test "$ac_res" != no
319 kx then :
319 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
319 kx
319 kx else $as_nop
319 kx
319 kx as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
319 kx
319 kx fi
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
319 kx printf %s "checking for library containing clock_gettime... " >&6; }
319 kx if test ${ac_cv_search_clock_gettime+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx ac_func_search_save_LIBS=$LIBS
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx /* Override any GCC internal prototype to avoid an error.
319 kx Use char because int might match the return type of a GCC
319 kx builtin and then its argument prototype would still apply. */
319 kx char clock_gettime ();
319 kx int
319 kx main (void)
319 kx {
319 kx return clock_gettime ();
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx for ac_lib in '' rt
319 kx do
319 kx if test -z "$ac_lib"; then
319 kx ac_res="none required"
319 kx else
319 kx ac_res=-l$ac_lib
319 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
319 kx fi
319 kx if ac_fn_c_try_link "$LINENO"
319 kx then :
319 kx ac_cv_search_clock_gettime=$ac_res
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam \
319 kx conftest$ac_exeext
319 kx if test ${ac_cv_search_clock_gettime+y}
319 kx then :
319 kx break
319 kx fi
319 kx done
319 kx if test ${ac_cv_search_clock_gettime+y}
319 kx then :
319 kx
319 kx else $as_nop
319 kx ac_cv_search_clock_gettime=no
319 kx fi
319 kx rm conftest.$ac_ext
319 kx LIBS=$ac_func_search_save_LIBS
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
319 kx printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
319 kx ac_res=$ac_cv_search_clock_gettime
319 kx if test "$ac_res" != no
319 kx then :
319 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
319 kx
319 kx else $as_nop
319 kx
319 kx as_fn_error $? "unable to find the clock_gettime() function" "$LINENO" 5
319 kx
319 kx fi
319 kx
319 kx
319 kx case $build_vendor in
319 kx apple)
319 kx EXEMPI_PLATFORM_DEF=MAC_ENV
319 kx LDFLAGS="$LDFLAGS -framework CoreServices -stdlib=libc++"
319 kx CPPFLAGS="$CPPFLAGS -std=c++11 -stdlib=libc++"
319 kx ;;
319 kx *)
319 kx EXEMPI_PLATFORM_DEF=UNIX_ENV
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx if test x$EXEMPI_PLATFORM_DEF = xMAC_ENV; then
319 kx MAC_ENV_TRUE=
319 kx MAC_ENV_FALSE='#'
319 kx else
319 kx MAC_ENV_TRUE='#'
319 kx MAC_ENV_FALSE=
319 kx fi
319 kx
319 kx if test x$EXEMPI_PLATFORM_DEF = xUNIX_ENV; then
319 kx UNIX_ENV_TRUE=
319 kx UNIX_ENV_FALSE='#'
319 kx else
319 kx UNIX_ENV_TRUE='#'
319 kx UNIX_ENV_FALSE=
319 kx fi
319 kx
319 kx
319 kx if test x$ENABLE_UNITTEST = xyes; then
319 kx WITH_UNIT_TEST_TRUE=
319 kx WITH_UNIT_TEST_FALSE='#'
319 kx else
319 kx WITH_UNIT_TEST_TRUE='#'
319 kx WITH_UNIT_TEST_FALSE=
319 kx fi
319 kx
319 kx
319 kx ac_fn_c_check_header_compile "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
319 kx if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
319 kx then :
319 kx printf "%s\n" "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
319 kx
319 kx fi
319 kx
319 kx if test "$VALGRIND" = ""; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Valgrind is missing. checks will run without" >&5
319 kx printf "%s\n" "$as_me: WARNING: Valgrind is missing. checks will run without" >&2;}
319 kx fi
319 kx if test "$VALGRIND" != ""; then
319 kx vg_ver=`valgrind --version | sed -e 's/.*-\([0-9]\)\.[0-9].*/\1/'`
319 kx VALGRIND="$VALGRIND --tool=memcheck --leak-check=yes --num-callers=10 --error-exitcode=100"
319 kx if test "$vg_ver" != "3" ; then
319 kx VALGRIND="$VALGRIND --logfile-fd=-1"
319 kx fi
319 kx fi
319 kx
319 kx
319 kx ac_ext=cpp
319 kx ac_cpp='$CXXCPP $CPPFLAGS'
319 kx ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319 kx ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319 kx ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx for flag in -fvisibility=hidden; do
319 kx as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
319 kx printf %s "checking whether C++ compiler accepts $flag... " >&6; }
319 kx if eval test \${$as_CACHEVAR+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx
319 kx ax_check_save_flags=$CXXFLAGS
319 kx CXXFLAGS="$CXXFLAGS $flag"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx eval "$as_CACHEVAR=yes"
319 kx else $as_nop
319 kx eval "$as_CACHEVAR=no"
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx CXXFLAGS=$ax_check_save_flags
319 kx fi
319 kx eval ac_res=\$$as_CACHEVAR
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
319 kx printf "%s\n" "$ac_res" >&6; }
319 kx if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
319 kx then :
319 kx
319 kx if test ${CXXFLAGS+y}
319 kx then :
319 kx
319 kx case " $CXXFLAGS " in #(
319 kx *" $flag "*) :
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
319 kx (: CXXFLAGS already contains $flag) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } ;; #(
319 kx *) :
319 kx
319 kx as_fn_append CXXFLAGS " $flag"
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
319 kx (: CXXFLAGS="$CXXFLAGS") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx ;;
319 kx esac
319 kx
319 kx else $as_nop
319 kx
319 kx CXXFLAGS=$flag
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
319 kx (: CXXFLAGS="$CXXFLAGS") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx
319 kx fi
319 kx
319 kx else $as_nop
319 kx :
319 kx fi
319 kx
319 kx done
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
319 kx printf %s "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
319 kx if test ${ax_cv_check_cxxflags___Werror_unknown_warning_option+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx
319 kx ax_check_save_flags=$CXXFLAGS
319 kx CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
319 kx else $as_nop
319 kx ax_cv_check_cxxflags___Werror_unknown_warning_option=no
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx CXXFLAGS=$ax_check_save_flags
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
319 kx printf "%s\n" "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
319 kx if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes
319 kx then :
319 kx
319 kx ax_compiler_flags_test="-Werror=unknown-warning-option"
319 kx
319 kx else $as_nop
319 kx
319 kx ax_compiler_flags_test=""
319 kx
319 kx fi
319 kx
319 kx
319 kx
319 kx # Check whether --enable-asan was given.
319 kx if test ${enable_asan+y}
319 kx then :
319 kx enableval=$enable_asan;
319 kx
319 kx
319 kx
319 kx
319 kx for flag in -fsanitize=address -fno-omit-frame-pointer; do
319 kx as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
319 kx printf %s "checking whether C++ compiler accepts $flag... " >&6; }
319 kx if eval test \${$as_CACHEVAR+y}
319 kx then :
319 kx printf %s "(cached) " >&6
319 kx else $as_nop
319 kx
319 kx ax_check_save_flags=$CXXFLAGS
319 kx CXXFLAGS="$CXXFLAGS $flag"
319 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
319 kx /* end confdefs.h. */
319 kx
319 kx int
319 kx main (void)
319 kx {
319 kx
319 kx ;
319 kx return 0;
319 kx }
319 kx _ACEOF
319 kx if ac_fn_cxx_try_compile "$LINENO"
319 kx then :
319 kx eval "$as_CACHEVAR=yes"
319 kx else $as_nop
319 kx eval "$as_CACHEVAR=no"
319 kx fi
319 kx rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
319 kx CXXFLAGS=$ax_check_save_flags
319 kx fi
319 kx eval ac_res=\$$as_CACHEVAR
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
319 kx printf "%s\n" "$ac_res" >&6; }
319 kx if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
319 kx then :
319 kx
319 kx if test ${CXXFLAGS+y}
319 kx then :
319 kx
319 kx case " $CXXFLAGS " in #(
319 kx *" $flag "*) :
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
319 kx (: CXXFLAGS already contains $flag) 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; } ;; #(
319 kx *) :
319 kx
319 kx as_fn_append CXXFLAGS " $flag"
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
319 kx (: CXXFLAGS="$CXXFLAGS") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx ;;
319 kx esac
319 kx
319 kx else $as_nop
319 kx
319 kx CXXFLAGS=$flag
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
319 kx (: CXXFLAGS="$CXXFLAGS") 2>&5
319 kx ac_status=$?
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319 kx test $ac_status = 0; }
319 kx
319 kx fi
319 kx
319 kx else $as_nop
319 kx :
319 kx fi
319 kx
319 kx done
319 kx
319 kx
319 kx
319 kx fi
319 kx
319 kx
319 kx XMPCORE_CPPFLAGS="-D$EXEMPI_PLATFORM_DEF=1 -DXMP_IMPL=1 -DXMP_ClientBuild=0 \
319 kx -DXMP_StaticBuild=1 -DBanAllEntityUsage=1 \
319 kx -D_FILE_OFFSET_BITS=64 -DHAVE_EXPAT_CONFIG_H=1 -DXML_STATIC=1"
319 kx
319 kx
319 kx ac_config_files="$ac_config_files Makefile third-party/Makefile third-party/zuid/interfaces/Makefile third-party/zlib/Makefile third-party/expat/Makefile source/Makefile XMPCore/Makefile XMPCore/source/Makefile XMPFiles/Makefile XMPFiles/source/Makefile XMPFiles/source/FileHandlers/Makefile XMPFiles/source/FormatSupport/Makefile XMPFiles/source/NativeMetadataSupport/Makefile XMPFiles/source/PluginHandler/Makefile XMPFilesPlugins/Makefile XMPFilesPlugins/api/Makefile XMPFilesPlugins/api/source/Makefile XMPFilesPlugins/PDF_Handler/Makefile samples/Makefile samples/source/Makefile samples/testfiles/Makefile build/GNUmakefile public/Makefile public/include/Makefile public/include/client-glue/Makefile exempi/Makefile exempi/doc/Makefile exempi/doc/Doxyfile exempi/exempi-2.0.pc"
319 kx
319 kx cat >confcache <<\_ACEOF
319 kx # This file is a shell script that caches the results of configure
319 kx # tests run on this system so they can be shared between configure
319 kx # scripts and configure runs, see configure's option --config-cache.
319 kx # It is not useful on other systems. If it contains results you don't
319 kx # want to keep, you may remove or edit it.
319 kx #
319 kx # config.status only pays attention to the cache file if you give it
319 kx # the --recheck option to rerun configure.
319 kx #
319 kx # `ac_cv_env_foo' variables (set or unset) will be overridden when
319 kx # loading this file, other *unset* `ac_cv_foo' will be assigned the
319 kx # following values.
319 kx
319 kx _ACEOF
319 kx
319 kx # The following way of writing the cache mishandles newlines in values,
319 kx # but we know of no workaround that is simple, portable, and efficient.
319 kx # So, we kill variables containing newlines.
319 kx # Ultrix sh set writes to stderr and can't be redirected directly,
319 kx # and sets the high bit in the cache file unless we assign to the vars.
319 kx (
319 kx for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
319 kx eval ac_val=\$$ac_var
319 kx case $ac_val in #(
319 kx *${as_nl}*)
319 kx case $ac_var in #(
319 kx *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
319 kx printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
319 kx esac
319 kx case $ac_var in #(
319 kx _ | IFS | as_nl) ;; #(
319 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
319 kx *) { eval $ac_var=; unset $ac_var;} ;;
319 kx esac ;;
319 kx esac
319 kx done
319 kx
319 kx (set) 2>&1 |
319 kx case $as_nl`(ac_space=' '; set) 2>&1` in #(
319 kx *${as_nl}ac_space=\ *)
319 kx # `set' does not quote correctly, so add quotes: double-quote
319 kx # substitution turns \\\\ into \\, and sed turns \\ into \.
319 kx sed -n \
319 kx "s/'/'\\\\''/g;
319 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
319 kx ;; #(
319 kx *)
319 kx # `set' quotes correctly as required by POSIX, so do not add quotes.
319 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
319 kx ;;
319 kx esac |
319 kx sort
319 kx ) |
319 kx sed '
319 kx /^ac_cv_env_/b end
319 kx t clear
319 kx :clear
319 kx s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
319 kx t end
319 kx s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
319 kx :end' >>confcache
319 kx if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
319 kx if test -w "$cache_file"; then
319 kx if test "x$cache_file" != "x/dev/null"; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
319 kx printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
319 kx if test ! -f "$cache_file" || test -h "$cache_file"; then
319 kx cat confcache >"$cache_file"
319 kx else
319 kx case $cache_file in #(
319 kx */* | ?:*)
319 kx mv -f confcache "$cache_file"$$ &&
319 kx mv -f "$cache_file"$$ "$cache_file" ;; #(
319 kx *)
319 kx mv -f confcache "$cache_file" ;;
319 kx esac
319 kx fi
319 kx fi
319 kx else
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
319 kx printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
319 kx fi
319 kx fi
319 kx rm -f confcache
319 kx
319 kx test "x$prefix" = xNONE && prefix=$ac_default_prefix
319 kx # Let make expand exec_prefix.
319 kx test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
319 kx
319 kx # Transform confdefs.h into DEFS.
319 kx # Protect against shell expansion while executing Makefile rules.
319 kx # Protect against Makefile macro expansion.
319 kx #
319 kx # If the first sed substitution is executed (which looks for macros that
319 kx # take arguments), then branch to the quote section. Otherwise,
319 kx # look for a macro that doesn't take arguments.
319 kx ac_script='
319 kx :mline
319 kx /\\$/{
319 kx N
319 kx s,\\\n,,
319 kx b mline
319 kx }
319 kx t clear
319 kx :clear
319 kx s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
319 kx t quote
319 kx s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
319 kx t quote
319 kx b any
319 kx :quote
319 kx s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
319 kx s/\[/\\&/g
319 kx s/\]/\\&/g
319 kx s/\$/$$/g
319 kx H
319 kx :any
319 kx ${
319 kx g
319 kx s/^\n//
319 kx s/\n/ /g
319 kx p
319 kx }
319 kx '
319 kx DEFS=`sed -n "$ac_script" confdefs.h`
319 kx
319 kx
319 kx ac_libobjs=
319 kx ac_ltlibobjs=
319 kx U=
319 kx for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
319 kx # 1. Remove the extension, and $U if already installed.
319 kx ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
319 kx ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
319 kx # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
319 kx # will be set to the directory where LIBOBJS objects are built.
319 kx as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
319 kx as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
319 kx done
319 kx LIBOBJS=$ac_libobjs
319 kx
319 kx LTLIBOBJS=$ac_ltlibobjs
319 kx
319 kx
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
319 kx printf %s "checking that generated files are newer than configure... " >&6; }
319 kx if test -n "$am_sleep_pid"; then
319 kx # Hide warnings about reused PIDs.
319 kx wait $am_sleep_pid 2>/dev/null
319 kx fi
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
319 kx printf "%s\n" "done" >&6; }
319 kx if test -n "$EXEEXT"; then
319 kx am__EXEEXT_TRUE=
319 kx am__EXEEXT_FALSE='#'
319 kx else
319 kx am__EXEEXT_TRUE='#'
319 kx am__EXEEXT_FALSE=
319 kx fi
319 kx
319 kx if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
319 kx as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
319 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
319 kx fi
319 kx if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
319 kx as_fn_error $? "conditional \"AMDEP\" was never defined.
319 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
319 kx fi
319 kx if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
319 kx as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
319 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
319 kx fi
319 kx if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
319 kx as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
319 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
319 kx fi
319 kx
319 kx if test -z "${ENABLE_SAMPLES_TRUE}" && test -z "${ENABLE_SAMPLES_FALSE}"; then
319 kx as_fn_error $? "conditional \"ENABLE_SAMPLES\" was never defined.
319 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
319 kx fi
319 kx if test -z "${MAC_ENV_TRUE}" && test -z "${MAC_ENV_FALSE}"; then
319 kx as_fn_error $? "conditional \"MAC_ENV\" was never defined.
319 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
319 kx fi
319 kx if test -z "${UNIX_ENV_TRUE}" && test -z "${UNIX_ENV_FALSE}"; then
319 kx as_fn_error $? "conditional \"UNIX_ENV\" was never defined.
319 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
319 kx fi
319 kx if test -z "${WITH_UNIT_TEST_TRUE}" && test -z "${WITH_UNIT_TEST_FALSE}"; then
319 kx as_fn_error $? "conditional \"WITH_UNIT_TEST\" was never defined.
319 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
319 kx fi
319 kx
319 kx : "${CONFIG_STATUS=./config.status}"
319 kx ac_write_fail=0
319 kx ac_clean_files_save=$ac_clean_files
319 kx ac_clean_files="$ac_clean_files $CONFIG_STATUS"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
319 kx printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
319 kx as_write_fail=0
319 kx cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
319 kx #! $SHELL
319 kx # Generated by $as_me.
319 kx # Run this file to recreate the current configuration.
319 kx # Compiler output produced by configure, useful for debugging
319 kx # configure, is in config.log if it exists.
319 kx
319 kx debug=false
319 kx ac_cs_recheck=false
319 kx ac_cs_silent=false
319 kx
319 kx SHELL=\${CONFIG_SHELL-$SHELL}
319 kx export SHELL
319 kx _ASEOF
319 kx cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
319 kx ## -------------------- ##
319 kx ## M4sh Initialization. ##
319 kx ## -------------------- ##
319 kx
319 kx # Be more Bourne compatible
319 kx DUALCASE=1; export DUALCASE # for MKS sh
319 kx as_nop=:
319 kx if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
319 kx then :
319 kx emulate sh
319 kx NULLCMD=:
319 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
319 kx # is contrary to our usage. Disable this feature.
319 kx alias -g '${1+"$@"}'='"$@"'
319 kx setopt NO_GLOB_SUBST
319 kx else $as_nop
319 kx case `(set -o) 2>/dev/null` in #(
319 kx *posix*) :
319 kx set -o posix ;; #(
319 kx *) :
319 kx ;;
319 kx esac
319 kx fi
319 kx
319 kx
319 kx
319 kx # Reset variables that may have inherited troublesome values from
319 kx # the environment.
319 kx
319 kx # IFS needs to be set, to space, tab, and newline, in precisely that order.
319 kx # (If _AS_PATH_WALK were called with IFS unset, it would have the
319 kx # side effect of setting IFS to empty, thus disabling word splitting.)
319 kx # Quoting is to prevent editors from complaining about space-tab.
319 kx as_nl='
319 kx '
319 kx export as_nl
319 kx IFS=" "" $as_nl"
319 kx
319 kx PS1='$ '
319 kx PS2='> '
319 kx PS4='+ '
319 kx
319 kx # Ensure predictable behavior from utilities with locale-dependent output.
319 kx LC_ALL=C
319 kx export LC_ALL
319 kx LANGUAGE=C
319 kx export LANGUAGE
319 kx
319 kx # We cannot yet rely on "unset" to work, but we need these variables
319 kx # to be unset--not just set to an empty or harmless value--now, to
319 kx # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
319 kx # also avoids known problems related to "unset" and subshell syntax
319 kx # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
319 kx for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
319 kx do eval test \${$as_var+y} \
319 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
319 kx done
319 kx
319 kx # Ensure that fds 0, 1, and 2 are open.
319 kx if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
319 kx if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
319 kx if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
319 kx
319 kx # The user is always right.
319 kx if ${PATH_SEPARATOR+false} :; then
319 kx PATH_SEPARATOR=:
319 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
319 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
319 kx PATH_SEPARATOR=';'
319 kx }
319 kx fi
319 kx
319 kx
319 kx # Find who we are. Look in the path if we contain no directory separator.
319 kx as_myself=
319 kx case $0 in #((
319 kx *[\\/]* ) as_myself=$0 ;;
319 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
319 kx for as_dir in $PATH
319 kx do
319 kx IFS=$as_save_IFS
319 kx case $as_dir in #(((
319 kx '') as_dir=./ ;;
319 kx */) ;;
319 kx *) as_dir=$as_dir/ ;;
319 kx esac
319 kx test -r "$as_dir$0" && as_myself=$as_dir$0 && break
319 kx done
319 kx IFS=$as_save_IFS
319 kx
319 kx ;;
319 kx esac
319 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
319 kx # in which case we are not to be found in the path.
319 kx if test "x$as_myself" = x; then
319 kx as_myself=$0
319 kx fi
319 kx if test ! -f "$as_myself"; then
319 kx printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
319 kx exit 1
319 kx fi
319 kx
319 kx
319 kx
319 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
319 kx # ----------------------------------------
319 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
319 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
319 kx # script with STATUS, using 1 if that was 0.
319 kx as_fn_error ()
319 kx {
319 kx as_status=$1; test $as_status -eq 0 && as_status=1
319 kx if test "$4"; then
319 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
319 kx printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
319 kx fi
319 kx printf "%s\n" "$as_me: error: $2" >&2
319 kx as_fn_exit $as_status
319 kx } # as_fn_error
319 kx
319 kx
319 kx
319 kx # as_fn_set_status STATUS
319 kx # -----------------------
319 kx # Set $? to STATUS, without forking.
319 kx as_fn_set_status ()
319 kx {
319 kx return $1
319 kx } # as_fn_set_status
319 kx
319 kx # as_fn_exit STATUS
319 kx # -----------------
319 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 kx as_fn_exit ()
319 kx {
319 kx set +e
319 kx as_fn_set_status $1
319 kx exit $1
319 kx } # as_fn_exit
319 kx
319 kx # as_fn_unset VAR
319 kx # ---------------
319 kx # Portably unset VAR.
319 kx as_fn_unset ()
319 kx {
319 kx { eval $1=; unset $1;}
319 kx }
319 kx as_unset=as_fn_unset
319 kx
319 kx # as_fn_append VAR VALUE
319 kx # ----------------------
319 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
319 kx # advantage of any shell optimizations that allow amortized linear growth over
319 kx # repeated appends, instead of the typical quadratic growth present in naive
319 kx # implementations.
319 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
319 kx then :
319 kx eval 'as_fn_append ()
319 kx {
319 kx eval $1+=\$2
319 kx }'
319 kx else $as_nop
319 kx as_fn_append ()
319 kx {
319 kx eval $1=\$$1\$2
319 kx }
319 kx fi # as_fn_append
319 kx
319 kx # as_fn_arith ARG...
319 kx # ------------------
319 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
319 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
319 kx # must be portable across $(()) and expr.
319 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
319 kx then :
319 kx eval 'as_fn_arith ()
319 kx {
319 kx as_val=$(( $* ))
319 kx }'
319 kx else $as_nop
319 kx as_fn_arith ()
319 kx {
319 kx as_val=`expr "$@" || test $? -eq 1`
319 kx }
319 kx fi # as_fn_arith
319 kx
319 kx
319 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
319 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
319 kx as_expr=expr
319 kx else
319 kx as_expr=false
319 kx fi
319 kx
319 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
319 kx as_basename=basename
319 kx else
319 kx as_basename=false
319 kx fi
319 kx
319 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
319 kx as_dirname=dirname
319 kx else
319 kx as_dirname=false
319 kx fi
319 kx
319 kx as_me=`$as_basename -- "$0" ||
319 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
319 kx X"$0" : 'X\(//\)$' \| \
319 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
319 kx printf "%s\n" X/"$0" |
319 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\/\(\/\/\)$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\/\(\/\).*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx s/.*/./; q'`
319 kx
319 kx # Avoid depending upon Character Ranges.
319 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
319 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
319 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
319 kx as_cr_digits='0123456789'
319 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
319 kx
319 kx
319 kx # Determine whether it's possible to make 'echo' print without a newline.
319 kx # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
319 kx # for compatibility with existing Makefiles.
319 kx ECHO_C= ECHO_N= ECHO_T=
319 kx case `echo -n x` in #(((((
319 kx -n*)
319 kx case `echo 'xy\c'` in
319 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
319 kx xy) ECHO_C='\c';;
319 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
319 kx ECHO_T=' ';;
319 kx esac;;
319 kx *)
319 kx ECHO_N='-n';;
319 kx esac
319 kx
319 kx # For backward compatibility with old third-party macros, we provide
319 kx # the shell variables $as_echo and $as_echo_n. New code should use
319 kx # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
319 kx as_echo='printf %s\n'
319 kx as_echo_n='printf %s'
319 kx
319 kx rm -f conf$$ conf$$.exe conf$$.file
319 kx if test -d conf$$.dir; then
319 kx rm -f conf$$.dir/conf$$.file
319 kx else
319 kx rm -f conf$$.dir
319 kx mkdir conf$$.dir 2>/dev/null
319 kx fi
319 kx if (echo >conf$$.file) 2>/dev/null; then
319 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
319 kx as_ln_s='ln -s'
319 kx # ... but there are two gotchas:
319 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
319 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
319 kx # In both cases, we have to default to `cp -pR'.
319 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
319 kx as_ln_s='cp -pR'
319 kx elif ln conf$$.file conf$$ 2>/dev/null; then
319 kx as_ln_s=ln
319 kx else
319 kx as_ln_s='cp -pR'
319 kx fi
319 kx else
319 kx as_ln_s='cp -pR'
319 kx fi
319 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
319 kx rmdir conf$$.dir 2>/dev/null
319 kx
319 kx
319 kx # as_fn_mkdir_p
319 kx # -------------
319 kx # Create "$as_dir" as a directory, including parents if necessary.
319 kx as_fn_mkdir_p ()
319 kx {
319 kx
319 kx case $as_dir in #(
319 kx -*) as_dir=./$as_dir;;
319 kx esac
319 kx test -d "$as_dir" || eval $as_mkdir_p || {
319 kx as_dirs=
319 kx while :; do
319 kx case $as_dir in #(
319 kx *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
319 kx *) as_qdir=$as_dir;;
319 kx esac
319 kx as_dirs="'$as_qdir' $as_dirs"
319 kx as_dir=`$as_dirname -- "$as_dir" ||
319 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
319 kx X"$as_dir" : 'X\(//\)[^/]' \| \
319 kx X"$as_dir" : 'X\(//\)$' \| \
319 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
319 kx printf "%s\n" X"$as_dir" |
319 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)[^/].*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\).*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx s/.*/./; q'`
319 kx test -d "$as_dir" && break
319 kx done
319 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
319 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
319 kx
319 kx
319 kx } # as_fn_mkdir_p
319 kx if mkdir -p . 2>/dev/null; then
319 kx as_mkdir_p='mkdir -p "$as_dir"'
319 kx else
319 kx test -d ./-p && rmdir ./-p
319 kx as_mkdir_p=false
319 kx fi
319 kx
319 kx
319 kx # as_fn_executable_p FILE
319 kx # -----------------------
319 kx # Test if FILE is an executable regular file.
319 kx as_fn_executable_p ()
319 kx {
319 kx test -f "$1" && test -x "$1"
319 kx } # as_fn_executable_p
319 kx as_test_x='test -x'
319 kx as_executable_p=as_fn_executable_p
319 kx
319 kx # Sed expression to map a string onto a valid CPP name.
319 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
319 kx
319 kx # Sed expression to map a string onto a valid variable name.
319 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
319 kx
319 kx
319 kx exec 6>&1
319 kx ## ----------------------------------- ##
319 kx ## Main body of $CONFIG_STATUS script. ##
319 kx ## ----------------------------------- ##
319 kx _ASEOF
319 kx test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
319 kx
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx # Save the log message, to keep $0 and so on meaningful, and to
319 kx # report actual input values of CONFIG_FILES etc. instead of their
319 kx # values after options handling.
319 kx ac_log="
319 kx This file was extended by exempi $as_me 2.6.5, which was
319 kx generated by GNU Autoconf 2.71. Invocation command line was
319 kx
319 kx CONFIG_FILES = $CONFIG_FILES
319 kx CONFIG_HEADERS = $CONFIG_HEADERS
319 kx CONFIG_LINKS = $CONFIG_LINKS
319 kx CONFIG_COMMANDS = $CONFIG_COMMANDS
319 kx $ $0 $@
319 kx
319 kx on `(hostname || uname -n) 2>/dev/null | sed 1q`
319 kx "
319 kx
319 kx _ACEOF
319 kx
319 kx case $ac_config_files in *"
319 kx "*) set x $ac_config_files; shift; ac_config_files=$*;;
319 kx esac
319 kx
319 kx
319 kx
319 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
319 kx # Files that config.status was made for.
319 kx config_files="$ac_config_files"
319 kx config_commands="$ac_config_commands"
319 kx
319 kx _ACEOF
319 kx
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx ac_cs_usage="\
319 kx \`$as_me' instantiates files and other configuration actions
319 kx from templates according to the current configuration. Unless the files
319 kx and actions are specified as TAGs, all are instantiated by default.
319 kx
319 kx Usage: $0 [OPTION]... [TAG]...
319 kx
319 kx -h, --help print this help, then exit
319 kx -V, --version print version number and configuration settings, then exit
319 kx --config print configuration, then exit
319 kx -q, --quiet, --silent
319 kx do not print progress messages
319 kx -d, --debug don't remove temporary files
319 kx --recheck update $as_me by reconfiguring in the same conditions
319 kx --file=FILE[:TEMPLATE]
319 kx instantiate the configuration file FILE
319 kx
319 kx Configuration files:
319 kx $config_files
319 kx
319 kx Configuration commands:
319 kx $config_commands
319 kx
319 kx Report bugs to the package provider."
319 kx
319 kx _ACEOF
319 kx ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
319 kx ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
319 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
319 kx ac_cs_config='$ac_cs_config_escaped'
319 kx ac_cs_version="\\
319 kx exempi config.status 2.6.5
319 kx configured by $0, generated by GNU Autoconf 2.71,
319 kx with options \\"\$ac_cs_config\\"
319 kx
319 kx Copyright (C) 2021 Free Software Foundation, Inc.
319 kx This config.status script is free software; the Free Software Foundation
319 kx gives unlimited permission to copy, distribute and modify it."
319 kx
319 kx ac_pwd='$ac_pwd'
319 kx srcdir='$srcdir'
319 kx INSTALL='$INSTALL'
319 kx MKDIR_P='$MKDIR_P'
319 kx AWK='$AWK'
319 kx test -n "\$AWK" || AWK=awk
319 kx _ACEOF
319 kx
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx # The default lists apply if the user does not specify any file.
319 kx ac_need_defaults=:
319 kx while test $# != 0
319 kx do
319 kx case $1 in
319 kx --*=?*)
319 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
319 kx ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
319 kx ac_shift=:
319 kx ;;
319 kx --*=)
319 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
319 kx ac_optarg=
319 kx ac_shift=:
319 kx ;;
319 kx *)
319 kx ac_option=$1
319 kx ac_optarg=$2
319 kx ac_shift=shift
319 kx ;;
319 kx esac
319 kx
319 kx case $ac_option in
319 kx # Handling of the options.
319 kx -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
319 kx ac_cs_recheck=: ;;
319 kx --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
319 kx printf "%s\n" "$ac_cs_version"; exit ;;
319 kx --config | --confi | --conf | --con | --co | --c )
319 kx printf "%s\n" "$ac_cs_config"; exit ;;
319 kx --debug | --debu | --deb | --de | --d | -d )
319 kx debug=: ;;
319 kx --file | --fil | --fi | --f )
319 kx $ac_shift
319 kx case $ac_optarg in
319 kx *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
319 kx '') as_fn_error $? "missing file argument" ;;
319 kx esac
319 kx as_fn_append CONFIG_FILES " '$ac_optarg'"
319 kx ac_need_defaults=false;;
319 kx --he | --h | --help | --hel | -h )
319 kx printf "%s\n" "$ac_cs_usage"; exit ;;
319 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 kx | -silent | --silent | --silen | --sile | --sil | --si | --s)
319 kx ac_cs_silent=: ;;
319 kx
319 kx # This is an error.
319 kx -*) as_fn_error $? "unrecognized option: \`$1'
319 kx Try \`$0 --help' for more information." ;;
319 kx
319 kx *) as_fn_append ac_config_targets " $1"
319 kx ac_need_defaults=false ;;
319 kx
319 kx esac
319 kx shift
319 kx done
319 kx
319 kx ac_configure_extra_args=
319 kx
319 kx if $ac_cs_silent; then
319 kx exec 6>/dev/null
319 kx ac_configure_extra_args="$ac_configure_extra_args --silent"
319 kx fi
319 kx
319 kx _ACEOF
319 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
319 kx if \$ac_cs_recheck; then
319 kx set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
319 kx shift
319 kx \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
319 kx CONFIG_SHELL='$SHELL'
319 kx export CONFIG_SHELL
319 kx exec "\$@"
319 kx fi
319 kx
319 kx _ACEOF
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx exec 5>>config.log
319 kx {
319 kx echo
319 kx sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
319 kx ## Running $as_me. ##
319 kx _ASBOX
319 kx printf "%s\n" "$ac_log"
319 kx } >&5
319 kx
319 kx _ACEOF
319 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
319 kx #
319 kx # INIT-COMMANDS
319 kx #
319 kx AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
319 kx
319 kx
319 kx # The HP-UX ksh and POSIX shell print the target directory to stdout
319 kx # if CDPATH is set.
319 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
319 kx
319 kx sed_quote_subst='$sed_quote_subst'
319 kx double_quote_subst='$double_quote_subst'
319 kx delay_variable_subst='$delay_variable_subst'
319 kx macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
319 kx macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
319 kx enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
319 kx enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
319 kx pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
319 kx enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
319 kx shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
319 kx SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
319 kx ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
319 kx PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
319 kx host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
319 kx host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
319 kx host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
319 kx build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
319 kx build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
319 kx build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
319 kx SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
319 kx Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
319 kx GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
319 kx EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
319 kx FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
319 kx LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
319 kx NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
319 kx LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
319 kx max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
319 kx ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
319 kx exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
319 kx lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
319 kx lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
319 kx lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
319 kx reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
319 kx reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
319 kx FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
319 kx OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
319 kx deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
319 kx file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
319 kx file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
319 kx want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
319 kx DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
319 kx sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
319 kx AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
319 kx lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
319 kx AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
319 kx archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
319 kx STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
319 kx RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
319 kx old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
319 kx old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
319 kx old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
319 kx lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
319 kx CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
319 kx CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
319 kx compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
319 kx GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
319 kx nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
319 kx lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
319 kx objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
319 kx MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
319 kx lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
319 kx lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
319 kx lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
319 kx lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
319 kx need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
319 kx MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
319 kx DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
319 kx NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
319 kx LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
319 kx OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
319 kx OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
319 kx libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
319 kx shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
319 kx extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
319 kx archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
319 kx enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
319 kx export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
319 kx whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
319 kx compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
319 kx old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
319 kx old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
319 kx archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
319 kx archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
319 kx module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
319 kx module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
319 kx with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
319 kx allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
319 kx no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
319 kx inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
319 kx link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
319 kx always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
319 kx export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
319 kx exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
319 kx include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
319 kx prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
319 kx postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
319 kx file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
319 kx variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
319 kx need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
319 kx need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
319 kx version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
319 kx runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
319 kx shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
319 kx shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
319 kx libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
319 kx library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
319 kx soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
319 kx install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
319 kx postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
319 kx postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
319 kx finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
319 kx finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
319 kx sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
319 kx configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
319 kx configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
319 kx enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
319 kx enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
319 kx enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
319 kx old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
319 kx striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
319 kx compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
319 kx predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
319 kx postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
319 kx predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
319 kx postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
319 kx compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
319 kx LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
319 kx reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
319 kx reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
319 kx GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
319 kx lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
319 kx lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
319 kx lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
319 kx lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
319 kx lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
319 kx archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
319 kx enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
319 kx export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
319 kx whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
319 kx compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
319 kx old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
319 kx allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
319 kx no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
319 kx inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
319 kx link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
319 kx always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
319 kx export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
319 kx include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
319 kx prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
319 kx file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
319 kx hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
319 kx compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
319 kx predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
319 kx postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
319 kx predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
319 kx postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
319 kx compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
319 kx
319 kx LTCC='$LTCC'
319 kx LTCFLAGS='$LTCFLAGS'
319 kx compiler='$compiler_DEFAULT'
319 kx
319 kx # A function that is used when there is no print builtin or printf.
319 kx func_fallback_echo ()
319 kx {
319 kx eval 'cat <<_LTECHO_EOF
319 kx \$1
319 kx _LTECHO_EOF'
319 kx }
319 kx
319 kx # Quote evaled strings.
319 kx for var in SHELL \
319 kx ECHO \
319 kx PATH_SEPARATOR \
319 kx SED \
319 kx GREP \
319 kx EGREP \
319 kx FGREP \
319 kx LD \
319 kx NM \
319 kx LN_S \
319 kx lt_SP2NL \
319 kx lt_NL2SP \
319 kx reload_flag \
319 kx FILECMD \
319 kx OBJDUMP \
319 kx deplibs_check_method \
319 kx file_magic_cmd \
319 kx file_magic_glob \
319 kx want_nocaseglob \
319 kx DLLTOOL \
319 kx sharedlib_from_linklib_cmd \
319 kx AR \
319 kx archiver_list_spec \
319 kx STRIP \
319 kx RANLIB \
319 kx CC \
319 kx CFLAGS \
319 kx compiler \
319 kx lt_cv_sys_global_symbol_pipe \
319 kx lt_cv_sys_global_symbol_to_cdecl \
319 kx lt_cv_sys_global_symbol_to_import \
319 kx lt_cv_sys_global_symbol_to_c_name_address \
319 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
319 kx lt_cv_nm_interface \
319 kx nm_file_list_spec \
319 kx lt_cv_truncate_bin \
319 kx lt_prog_compiler_no_builtin_flag \
319 kx lt_prog_compiler_pic \
319 kx lt_prog_compiler_wl \
319 kx lt_prog_compiler_static \
319 kx lt_cv_prog_compiler_c_o \
319 kx need_locks \
319 kx MANIFEST_TOOL \
319 kx DSYMUTIL \
319 kx NMEDIT \
319 kx LIPO \
319 kx OTOOL \
319 kx OTOOL64 \
319 kx shrext_cmds \
319 kx export_dynamic_flag_spec \
319 kx whole_archive_flag_spec \
319 kx compiler_needs_object \
319 kx with_gnu_ld \
319 kx allow_undefined_flag \
319 kx no_undefined_flag \
319 kx hardcode_libdir_flag_spec \
319 kx hardcode_libdir_separator \
319 kx exclude_expsyms \
319 kx include_expsyms \
319 kx file_list_spec \
319 kx variables_saved_for_relink \
319 kx libname_spec \
319 kx library_names_spec \
319 kx soname_spec \
319 kx install_override_mode \
319 kx finish_eval \
319 kx old_striplib \
319 kx striplib \
319 kx compiler_lib_search_dirs \
319 kx predep_objects \
319 kx postdep_objects \
319 kx predeps \
319 kx postdeps \
319 kx compiler_lib_search_path \
319 kx LD_CXX \
319 kx reload_flag_CXX \
319 kx compiler_CXX \
319 kx lt_prog_compiler_no_builtin_flag_CXX \
319 kx lt_prog_compiler_pic_CXX \
319 kx lt_prog_compiler_wl_CXX \
319 kx lt_prog_compiler_static_CXX \
319 kx lt_cv_prog_compiler_c_o_CXX \
319 kx export_dynamic_flag_spec_CXX \
319 kx whole_archive_flag_spec_CXX \
319 kx compiler_needs_object_CXX \
319 kx with_gnu_ld_CXX \
319 kx allow_undefined_flag_CXX \
319 kx no_undefined_flag_CXX \
319 kx hardcode_libdir_flag_spec_CXX \
319 kx hardcode_libdir_separator_CXX \
319 kx exclude_expsyms_CXX \
319 kx include_expsyms_CXX \
319 kx file_list_spec_CXX \
319 kx compiler_lib_search_dirs_CXX \
319 kx predep_objects_CXX \
319 kx postdep_objects_CXX \
319 kx predeps_CXX \
319 kx postdeps_CXX \
319 kx compiler_lib_search_path_CXX; do
319 kx case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
319 kx *[\\\\\\\`\\"\\\$]*)
319 kx eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
319 kx ;;
319 kx *)
319 kx eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
319 kx ;;
319 kx esac
319 kx done
319 kx
319 kx # Double-quote double-evaled strings.
319 kx for var in reload_cmds \
319 kx old_postinstall_cmds \
319 kx old_postuninstall_cmds \
319 kx old_archive_cmds \
319 kx extract_expsyms_cmds \
319 kx old_archive_from_new_cmds \
319 kx old_archive_from_expsyms_cmds \
319 kx archive_cmds \
319 kx archive_expsym_cmds \
319 kx module_cmds \
319 kx module_expsym_cmds \
319 kx export_symbols_cmds \
319 kx prelink_cmds \
319 kx postlink_cmds \
319 kx postinstall_cmds \
319 kx postuninstall_cmds \
319 kx finish_cmds \
319 kx sys_lib_search_path_spec \
319 kx configure_time_dlsearch_path \
319 kx configure_time_lt_sys_library_path \
319 kx reload_cmds_CXX \
319 kx old_archive_cmds_CXX \
319 kx old_archive_from_new_cmds_CXX \
319 kx old_archive_from_expsyms_cmds_CXX \
319 kx archive_cmds_CXX \
319 kx archive_expsym_cmds_CXX \
319 kx module_cmds_CXX \
319 kx module_expsym_cmds_CXX \
319 kx export_symbols_cmds_CXX \
319 kx prelink_cmds_CXX \
319 kx postlink_cmds_CXX; do
319 kx case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
319 kx *[\\\\\\\`\\"\\\$]*)
319 kx eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
319 kx ;;
319 kx *)
319 kx eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
319 kx ;;
319 kx esac
319 kx done
319 kx
319 kx ac_aux_dir='$ac_aux_dir'
319 kx
319 kx # See if we are running on zsh, and set the options that allow our
319 kx # commands through without removal of \ escapes INIT.
319 kx if test -n "\${ZSH_VERSION+set}"; then
319 kx setopt NO_GLOB_SUBST
319 kx fi
319 kx
319 kx
319 kx PACKAGE='$PACKAGE'
319 kx VERSION='$VERSION'
319 kx RM='$RM'
319 kx ofile='$ofile'
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx
319 kx _ACEOF
319 kx
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx
319 kx # Handling of arguments.
319 kx for ac_config_target in $ac_config_targets
319 kx do
319 kx case $ac_config_target in
319 kx "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
319 kx "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
319 kx "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
319 kx "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
319 kx "third-party/zuid/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/zuid/interfaces/Makefile" ;;
319 kx "third-party/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/zlib/Makefile" ;;
319 kx "third-party/expat/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/expat/Makefile" ;;
319 kx "source/Makefile") CONFIG_FILES="$CONFIG_FILES source/Makefile" ;;
319 kx "XMPCore/Makefile") CONFIG_FILES="$CONFIG_FILES XMPCore/Makefile" ;;
319 kx "XMPCore/source/Makefile") CONFIG_FILES="$CONFIG_FILES XMPCore/source/Makefile" ;;
319 kx "XMPFiles/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFiles/Makefile" ;;
319 kx "XMPFiles/source/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFiles/source/Makefile" ;;
319 kx "XMPFiles/source/FileHandlers/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFiles/source/FileHandlers/Makefile" ;;
319 kx "XMPFiles/source/FormatSupport/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFiles/source/FormatSupport/Makefile" ;;
319 kx "XMPFiles/source/NativeMetadataSupport/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFiles/source/NativeMetadataSupport/Makefile" ;;
319 kx "XMPFiles/source/PluginHandler/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFiles/source/PluginHandler/Makefile" ;;
319 kx "XMPFilesPlugins/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFilesPlugins/Makefile" ;;
319 kx "XMPFilesPlugins/api/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFilesPlugins/api/Makefile" ;;
319 kx "XMPFilesPlugins/api/source/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFilesPlugins/api/source/Makefile" ;;
319 kx "XMPFilesPlugins/PDF_Handler/Makefile") CONFIG_FILES="$CONFIG_FILES XMPFilesPlugins/PDF_Handler/Makefile" ;;
319 kx "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
319 kx "samples/source/Makefile") CONFIG_FILES="$CONFIG_FILES samples/source/Makefile" ;;
319 kx "samples/testfiles/Makefile") CONFIG_FILES="$CONFIG_FILES samples/testfiles/Makefile" ;;
319 kx "build/GNUmakefile") CONFIG_FILES="$CONFIG_FILES build/GNUmakefile" ;;
319 kx "public/Makefile") CONFIG_FILES="$CONFIG_FILES public/Makefile" ;;
319 kx "public/include/Makefile") CONFIG_FILES="$CONFIG_FILES public/include/Makefile" ;;
319 kx "public/include/client-glue/Makefile") CONFIG_FILES="$CONFIG_FILES public/include/client-glue/Makefile" ;;
319 kx "exempi/Makefile") CONFIG_FILES="$CONFIG_FILES exempi/Makefile" ;;
319 kx "exempi/doc/Makefile") CONFIG_FILES="$CONFIG_FILES exempi/doc/Makefile" ;;
319 kx "exempi/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES exempi/doc/Doxyfile" ;;
319 kx "exempi/exempi-2.0.pc") CONFIG_FILES="$CONFIG_FILES exempi/exempi-2.0.pc" ;;
319 kx
319 kx *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
319 kx esac
319 kx done
319 kx
319 kx
319 kx # If the user did not use the arguments to specify the items to instantiate,
319 kx # then the envvar interface is used. Set only those that are not.
319 kx # We use the long form for the default assignment because of an extremely
319 kx # bizarre bug on SunOS 4.1.3.
319 kx if $ac_need_defaults; then
319 kx test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
319 kx test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
319 kx fi
319 kx
319 kx # Have a temporary directory for convenience. Make it in the build tree
319 kx # simply because there is no reason against having it here, and in addition,
319 kx # creating and moving files from /tmp can sometimes cause problems.
319 kx # Hook for its removal unless debugging.
319 kx # Note that there is a small window in which the directory will not be cleaned:
319 kx # after its creation but before its name has been assigned to `$tmp'.
319 kx $debug ||
319 kx {
319 kx tmp= ac_tmp=
319 kx trap 'exit_status=$?
319 kx : "${ac_tmp:=$tmp}"
319 kx { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
319 kx ' 0
319 kx trap 'as_fn_exit 1' 1 2 13 15
319 kx }
319 kx # Create a (secure) tmp directory for tmp files.
319 kx
319 kx {
319 kx tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
319 kx test -d "$tmp"
319 kx } ||
319 kx {
319 kx tmp=./conf$$-$RANDOM
319 kx (umask 077 && mkdir "$tmp")
319 kx } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
319 kx ac_tmp=$tmp
319 kx
319 kx # Set up the scripts for CONFIG_FILES section.
319 kx # No need to generate them if there are no CONFIG_FILES.
319 kx # This happens for instance with `./config.status config.h'.
319 kx if test -n "$CONFIG_FILES"; then
319 kx
319 kx
319 kx ac_cr=`echo X | tr X '\015'`
319 kx # On cygwin, bash can eat \r inside `` if the user requested igncr.
319 kx # But we know of no other shell where ac_cr would be empty at this
319 kx # point, so we can use a bashism as a fallback.
319 kx if test "x$ac_cr" = x; then
319 kx eval ac_cr=\$\'\\r\'
319 kx fi
319 kx ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
319 kx if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
319 kx ac_cs_awk_cr='\\r'
319 kx else
319 kx ac_cs_awk_cr=$ac_cr
319 kx fi
319 kx
319 kx echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
319 kx _ACEOF
319 kx
319 kx
319 kx {
319 kx echo "cat >conf$$subs.awk <<_ACEOF" &&
319 kx echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
319 kx echo "_ACEOF"
319 kx } >conf$$subs.sh ||
319 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
319 kx ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
319 kx ac_delim='%!_!# '
319 kx for ac_last_try in false false false false false :; do
319 kx . ./conf$$subs.sh ||
319 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
319 kx
319 kx ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
319 kx if test $ac_delim_n = $ac_delim_num; then
319 kx break
319 kx elif $ac_last_try; then
319 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
319 kx else
319 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
319 kx fi
319 kx done
319 kx rm -f conf$$subs.sh
319 kx
319 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
319 kx cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
319 kx _ACEOF
319 kx sed -n '
319 kx h
319 kx s/^/S["/; s/!.*/"]=/
319 kx p
319 kx g
319 kx s/^[^!]*!//
319 kx :repl
319 kx t repl
319 kx s/'"$ac_delim"'$//
319 kx t delim
319 kx :nl
319 kx h
319 kx s/\(.\{148\}\)..*/\1/
319 kx t more1
319 kx s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
319 kx p
319 kx n
319 kx b repl
319 kx :more1
319 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
319 kx p
319 kx g
319 kx s/.\{148\}//
319 kx t nl
319 kx :delim
319 kx h
319 kx s/\(.\{148\}\)..*/\1/
319 kx t more2
319 kx s/["\\]/\\&/g; s/^/"/; s/$/"/
319 kx p
319 kx b
319 kx :more2
319 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
319 kx p
319 kx g
319 kx s/.\{148\}//
319 kx t delim
319 kx ' <conf$$subs.awk | sed '
319 kx /^[^""]/{
319 kx N
319 kx s/\n//
319 kx }
319 kx ' >>$CONFIG_STATUS || ac_write_fail=1
319 kx rm -f conf$$subs.awk
319 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
319 kx _ACAWK
319 kx cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
319 kx for (key in S) S_is_set[key] = 1
319 kx FS = ""
319 kx
319 kx }
319 kx {
319 kx line = $ 0
319 kx nfields = split(line, field, "@")
319 kx substed = 0
319 kx len = length(field[1])
319 kx for (i = 2; i < nfields; i++) {
319 kx key = field[i]
319 kx keylen = length(key)
319 kx if (S_is_set[key]) {
319 kx value = S[key]
319 kx line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
319 kx len += length(value) + length(field[++i])
319 kx substed = 1
319 kx } else
319 kx len += 1 + keylen
319 kx }
319 kx
319 kx print line
319 kx }
319 kx
319 kx _ACAWK
319 kx _ACEOF
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
319 kx sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
319 kx else
319 kx cat
319 kx fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
319 kx || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
319 kx _ACEOF
319 kx
319 kx # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
319 kx # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
319 kx # trailing colons and then remove the whole line if VPATH becomes empty
319 kx # (actually we leave an empty line to preserve line numbers).
319 kx if test "x$srcdir" = x.; then
319 kx ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
319 kx h
319 kx s///
319 kx s/^/:/
319 kx s/[ ]*$/:/
319 kx s/:\$(srcdir):/:/g
319 kx s/:\${srcdir}:/:/g
319 kx s/:@srcdir@:/:/g
319 kx s/^:*//
319 kx s/:*$//
319 kx x
319 kx s/\(=[ ]*\).*/\1/
319 kx G
319 kx s/\n//
319 kx s/^[^=]*=[ ]*$//
319 kx }'
319 kx fi
319 kx
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx fi # test -n "$CONFIG_FILES"
319 kx
319 kx
319 kx eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
319 kx shift
319 kx for ac_tag
319 kx do
319 kx case $ac_tag in
319 kx :[FHLC]) ac_mode=$ac_tag; continue;;
319 kx esac
319 kx case $ac_mode$ac_tag in
319 kx :[FHL]*:*);;
319 kx :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
319 kx :[FH]-) ac_tag=-:-;;
319 kx :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
319 kx esac
319 kx ac_save_IFS=$IFS
319 kx IFS=:
319 kx set x $ac_tag
319 kx IFS=$ac_save_IFS
319 kx shift
319 kx ac_file=$1
319 kx shift
319 kx
319 kx case $ac_mode in
319 kx :L) ac_source=$1;;
319 kx :[FH])
319 kx ac_file_inputs=
319 kx for ac_f
319 kx do
319 kx case $ac_f in
319 kx -) ac_f="$ac_tmp/stdin";;
319 kx *) # Look for the file first in the build tree, then in the source tree
319 kx # (if the path is not absolute). The absolute path cannot be DOS-style,
319 kx # because $ac_f cannot contain `:'.
319 kx test -f "$ac_f" ||
319 kx case $ac_f in
319 kx [\\/$]*) false;;
319 kx *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
319 kx esac ||
319 kx as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
319 kx esac
319 kx case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
319 kx as_fn_append ac_file_inputs " '$ac_f'"
319 kx done
319 kx
319 kx # Let's still pretend it is `configure' which instantiates (i.e., don't
319 kx # use $as_me), people would be surprised to read:
319 kx # /* config.h. Generated by config.status. */
319 kx configure_input='Generated from '`
319 kx printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
319 kx `' by configure.'
319 kx if test x"$ac_file" != x-; then
319 kx configure_input="$ac_file. $configure_input"
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
319 kx printf "%s\n" "$as_me: creating $ac_file" >&6;}
319 kx fi
319 kx # Neutralize special characters interpreted by sed in replacement strings.
319 kx case $configure_input in #(
319 kx *\&* | *\|* | *\\* )
319 kx ac_sed_conf_input=`printf "%s\n" "$configure_input" |
319 kx sed 's/[\\\\&|]/\\\\&/g'`;; #(
319 kx *) ac_sed_conf_input=$configure_input;;
319 kx esac
319 kx
319 kx case $ac_tag in
319 kx *:-:* | *:-) cat >"$ac_tmp/stdin" \
319 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
319 kx esac
319 kx ;;
319 kx esac
319 kx
319 kx ac_dir=`$as_dirname -- "$ac_file" ||
319 kx $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
319 kx X"$ac_file" : 'X\(//\)[^/]' \| \
319 kx X"$ac_file" : 'X\(//\)$' \| \
319 kx X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
319 kx printf "%s\n" X"$ac_file" |
319 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)[^/].*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\).*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx s/.*/./; q'`
319 kx as_dir="$ac_dir"; as_fn_mkdir_p
319 kx ac_builddir=.
319 kx
319 kx case "$ac_dir" in
319 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
319 kx *)
319 kx ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
319 kx # A ".." for each directory in $ac_dir_suffix.
319 kx ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
319 kx case $ac_top_builddir_sub in
319 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
319 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
319 kx esac ;;
319 kx esac
319 kx ac_abs_top_builddir=$ac_pwd
319 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
319 kx # for backward compatibility:
319 kx ac_top_builddir=$ac_top_build_prefix
319 kx
319 kx case $srcdir in
319 kx .) # We are building in place.
319 kx ac_srcdir=.
319 kx ac_top_srcdir=$ac_top_builddir_sub
319 kx ac_abs_top_srcdir=$ac_pwd ;;
319 kx [\\/]* | ?:[\\/]* ) # Absolute name.
319 kx ac_srcdir=$srcdir$ac_dir_suffix;
319 kx ac_top_srcdir=$srcdir
319 kx ac_abs_top_srcdir=$srcdir ;;
319 kx *) # Relative name.
319 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
319 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
319 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
319 kx esac
319 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
319 kx
319 kx
319 kx case $ac_mode in
319 kx :F)
319 kx #
319 kx # CONFIG_FILE
319 kx #
319 kx
319 kx case $INSTALL in
319 kx [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
319 kx *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
319 kx esac
319 kx ac_MKDIR_P=$MKDIR_P
319 kx case $MKDIR_P in
319 kx [\\/$]* | ?:[\\/]* ) ;;
319 kx */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
319 kx esac
319 kx _ACEOF
319 kx
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx # If the template does not know about datarootdir, expand it.
319 kx # FIXME: This hack should be removed a few years after 2.60.
319 kx ac_datarootdir_hack=; ac_datarootdir_seen=
319 kx ac_sed_dataroot='
319 kx /datarootdir/ {
319 kx p
319 kx q
319 kx }
319 kx /@datadir@/p
319 kx /@docdir@/p
319 kx /@infodir@/p
319 kx /@localedir@/p
319 kx /@mandir@/p'
319 kx case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
319 kx *datarootdir*) ac_datarootdir_seen=yes;;
319 kx *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
319 kx printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
319 kx _ACEOF
319 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
319 kx ac_datarootdir_hack='
319 kx s&@datadir@&$datadir&g
319 kx s&@docdir@&$docdir&g
319 kx s&@infodir@&$infodir&g
319 kx s&@localedir@&$localedir&g
319 kx s&@mandir@&$mandir&g
319 kx s&\\\${datarootdir}&$datarootdir&g' ;;
319 kx esac
319 kx _ACEOF
319 kx
319 kx # Neutralize VPATH when `$srcdir' = `.'.
319 kx # Shell code in configure.ac might set extrasub.
319 kx # FIXME: do we really want to maintain this feature?
319 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
319 kx ac_sed_extra="$ac_vpsub
319 kx $extrasub
319 kx _ACEOF
319 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
319 kx :t
319 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
319 kx s|@configure_input@|$ac_sed_conf_input|;t t
319 kx s&@top_builddir@&$ac_top_builddir_sub&;t t
319 kx s&@top_build_prefix@&$ac_top_build_prefix&;t t
319 kx s&@srcdir@&$ac_srcdir&;t t
319 kx s&@abs_srcdir@&$ac_abs_srcdir&;t t
319 kx s&@top_srcdir@&$ac_top_srcdir&;t t
319 kx s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
319 kx s&@builddir@&$ac_builddir&;t t
319 kx s&@abs_builddir@&$ac_abs_builddir&;t t
319 kx s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
319 kx s&@INSTALL@&$ac_INSTALL&;t t
319 kx s&@MKDIR_P@&$ac_MKDIR_P&;t t
319 kx $ac_datarootdir_hack
319 kx "
319 kx eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
319 kx >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
319 kx
319 kx test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
319 kx { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
319 kx { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
319 kx "$ac_tmp/out"`; test -z "$ac_out"; } &&
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
319 kx which seems to be undefined. Please make sure it is defined" >&5
319 kx printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
319 kx which seems to be undefined. Please make sure it is defined" >&2;}
319 kx
319 kx rm -f "$ac_tmp/stdin"
319 kx case $ac_file in
319 kx -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
319 kx *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
319 kx esac \
319 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
319 kx ;;
319 kx
319 kx
319 kx :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
319 kx printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx case $ac_file$ac_mode in
319 kx "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
319 kx # Older Autoconf quotes --file arguments for eval, but not when files
319 kx # are listed without --file. Let's play safe and only enable the eval
319 kx # if we detect the quoting.
319 kx # TODO: see whether this extra hack can be removed once we start
319 kx # requiring Autoconf 2.70 or later.
319 kx case $CONFIG_FILES in #(
319 kx *\'*) :
319 kx eval set x "$CONFIG_FILES" ;; #(
319 kx *) :
319 kx set x $CONFIG_FILES ;; #(
319 kx *) :
319 kx ;;
319 kx esac
319 kx shift
319 kx # Used to flag and report bootstrapping failures.
319 kx am_rc=0
319 kx for am_mf
319 kx do
319 kx # Strip MF so we end up with the name of the file.
319 kx am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
319 kx # Check whether this is an Automake generated Makefile which includes
319 kx # dependency-tracking related rules and includes.
319 kx # Grep'ing the whole file directly is not great: AIX grep has a line
319 kx # limit of 2048, but all sed's we know have understand at least 4000.
319 kx sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
319 kx || continue
319 kx am_dirpart=`$as_dirname -- "$am_mf" ||
319 kx $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
319 kx X"$am_mf" : 'X\(//\)[^/]' \| \
319 kx X"$am_mf" : 'X\(//\)$' \| \
319 kx X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
319 kx printf "%s\n" X"$am_mf" |
319 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)[^/].*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\/\)$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\(\/\).*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx s/.*/./; q'`
319 kx am_filepart=`$as_basename -- "$am_mf" ||
319 kx $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
319 kx X"$am_mf" : 'X\(//\)$' \| \
319 kx X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
319 kx printf "%s\n" X/"$am_mf" |
319 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\/\(\/\/\)$/{
319 kx s//\1/
319 kx q
319 kx }
319 kx /^X\/\(\/\).*/{
319 kx s//\1/
319 kx q
319 kx }
319 kx s/.*/./; q'`
319 kx { echo "$as_me:$LINENO: cd "$am_dirpart" \
319 kx && sed -e '/# am--include-marker/d' "$am_filepart" \
319 kx | $MAKE -f - am--depfiles" >&5
319 kx (cd "$am_dirpart" \
319 kx && sed -e '/# am--include-marker/d' "$am_filepart" \
319 kx | $MAKE -f - am--depfiles) >&5 2>&5
319 kx ac_status=$?
319 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
319 kx (exit $ac_status); } || am_rc=$?
319 kx done
319 kx if test $am_rc -ne 0; then
319 kx { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
319 kx printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
319 kx as_fn_error $? "Something went wrong bootstrapping makefile fragments
319 kx for automatic dependency tracking. If GNU make was not used, consider
319 kx re-running the configure script with MAKE=\"gmake\" (or whatever is
319 kx necessary). You can also try re-running configure with the
319 kx '--disable-dependency-tracking' option to at least be able to build
319 kx the package (albeit without support for automatic dependency tracking).
319 kx See \`config.log' for more details" "$LINENO" 5; }
319 kx fi
319 kx { am_dirpart=; unset am_dirpart;}
319 kx { am_filepart=; unset am_filepart;}
319 kx { am_mf=; unset am_mf;}
319 kx { am_rc=; unset am_rc;}
319 kx rm -f conftest-deps.mk
319 kx }
319 kx ;;
319 kx "libtool":C)
319 kx
319 kx # See if we are running on zsh, and set the options that allow our
319 kx # commands through without removal of \ escapes.
319 kx if test -n "${ZSH_VERSION+set}"; then
319 kx setopt NO_GLOB_SUBST
319 kx fi
319 kx
319 kx cfgfile=${ofile}T
319 kx trap "$RM \"$cfgfile\"; exit 1" 1 2 15
319 kx $RM "$cfgfile"
319 kx
319 kx cat <<_LT_EOF >> "$cfgfile"
319 kx #! $SHELL
319 kx # Generated automatically by $as_me ($PACKAGE) $VERSION
319 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
319 kx # NOTE: Changes made to this file will be lost: look at ltmain.sh.
319 kx
319 kx # Provide generalized library-building support services.
319 kx # Written by Gordon Matzigkeit, 1996
319 kx
319 kx # Copyright (C) 2014 Free Software Foundation, Inc.
319 kx # This is free software; see the source for copying conditions. There is NO
319 kx # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
319 kx
319 kx # GNU Libtool is free software; you can redistribute it and/or modify
319 kx # it under the terms of the GNU General Public License as published by
319 kx # the Free Software Foundation; either version 2 of of the License, or
319 kx # (at your option) any later version.
319 kx #
319 kx # As a special exception to the GNU General Public License, if you
319 kx # distribute this file as part of a program or library that is built
319 kx # using GNU Libtool, you may include this file under the same
319 kx # distribution terms that you use for the rest of that program.
319 kx #
319 kx # GNU Libtool is distributed in the hope that it will be useful, but
319 kx # WITHOUT ANY WARRANTY; without even the implied warranty of
319 kx # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
319 kx # GNU General Public License for more details.
319 kx #
319 kx # You should have received a copy of the GNU General Public License
319 kx # along with this program. If not, see <http://www.gnu.org/licenses/>.
319 kx
319 kx
319 kx # The names of the tagged configurations supported by this script.
319 kx available_tags='CXX '
319 kx
319 kx # Configured defaults for sys_lib_dlsearch_path munging.
319 kx : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
319 kx
319 kx # ### BEGIN LIBTOOL CONFIG
319 kx
319 kx # Which release of libtool.m4 was used?
319 kx macro_version=$macro_version
319 kx macro_revision=$macro_revision
319 kx
319 kx # Whether or not to build shared libraries.
319 kx build_libtool_libs=$enable_shared
319 kx
319 kx # Whether or not to build static libraries.
319 kx build_old_libs=$enable_static
319 kx
319 kx # What type of objects to build.
319 kx pic_mode=$pic_mode
319 kx
319 kx # Whether or not to optimize for fast installation.
319 kx fast_install=$enable_fast_install
319 kx
319 kx # Shared archive member basename,for filename based shared library versioning on AIX.
319 kx shared_archive_member_spec=$shared_archive_member_spec
319 kx
319 kx # Shell to use when invoking shell scripts.
319 kx SHELL=$lt_SHELL
319 kx
319 kx # An echo program that protects backslashes.
319 kx ECHO=$lt_ECHO
319 kx
319 kx # The PATH separator for the build system.
319 kx PATH_SEPARATOR=$lt_PATH_SEPARATOR
319 kx
319 kx # The host system.
319 kx host_alias=$host_alias
319 kx host=$host
319 kx host_os=$host_os
319 kx
319 kx # The build system.
319 kx build_alias=$build_alias
319 kx build=$build
319 kx build_os=$build_os
319 kx
319 kx # A sed program that does not truncate output.
319 kx SED=$lt_SED
319 kx
319 kx # Sed that helps us avoid accidentally triggering echo(1) options like -n.
319 kx Xsed="\$SED -e 1s/^X//"
319 kx
319 kx # A grep program that handles long lines.
319 kx GREP=$lt_GREP
319 kx
319 kx # An ERE matcher.
319 kx EGREP=$lt_EGREP
319 kx
319 kx # A literal string matcher.
319 kx FGREP=$lt_FGREP
319 kx
319 kx # A BSD- or MS-compatible name lister.
319 kx NM=$lt_NM
319 kx
319 kx # Whether we need soft or hard links.
319 kx LN_S=$lt_LN_S
319 kx
319 kx # What is the maximum length of a command?
319 kx max_cmd_len=$max_cmd_len
319 kx
319 kx # Object file suffix (normally "o").
319 kx objext=$ac_objext
319 kx
319 kx # Executable file suffix (normally "").
319 kx exeext=$exeext
319 kx
319 kx # whether the shell understands "unset".
319 kx lt_unset=$lt_unset
319 kx
319 kx # turn spaces into newlines.
319 kx SP2NL=$lt_lt_SP2NL
319 kx
319 kx # turn newlines into spaces.
319 kx NL2SP=$lt_lt_NL2SP
319 kx
319 kx # convert \$build file names to \$host format.
319 kx to_host_file_cmd=$lt_cv_to_host_file_cmd
319 kx
319 kx # convert \$build files to toolchain format.
319 kx to_tool_file_cmd=$lt_cv_to_tool_file_cmd
319 kx
319 kx # A file(cmd) program that detects file types.
319 kx FILECMD=$lt_FILECMD
319 kx
319 kx # An object symbol dumper.
319 kx OBJDUMP=$lt_OBJDUMP
319 kx
319 kx # Method to check whether dependent libraries are shared objects.
319 kx deplibs_check_method=$lt_deplibs_check_method
319 kx
319 kx # Command to use when deplibs_check_method = "file_magic".
319 kx file_magic_cmd=$lt_file_magic_cmd
319 kx
319 kx # How to find potential files when deplibs_check_method = "file_magic".
319 kx file_magic_glob=$lt_file_magic_glob
319 kx
319 kx # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
319 kx want_nocaseglob=$lt_want_nocaseglob
319 kx
319 kx # DLL creation program.
319 kx DLLTOOL=$lt_DLLTOOL
319 kx
319 kx # Command to associate shared and link libraries.
319 kx sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
319 kx
319 kx # The archiver.
319 kx AR=$lt_AR
319 kx
319 kx # Flags to create an archive (by configure).
319 kx lt_ar_flags=$lt_ar_flags
319 kx
319 kx # Flags to create an archive.
319 kx AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
319 kx
319 kx # How to feed a file listing to the archiver.
319 kx archiver_list_spec=$lt_archiver_list_spec
319 kx
319 kx # A symbol stripping program.
319 kx STRIP=$lt_STRIP
319 kx
319 kx # Commands used to install an old-style archive.
319 kx RANLIB=$lt_RANLIB
319 kx old_postinstall_cmds=$lt_old_postinstall_cmds
319 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
319 kx
319 kx # Whether to use a lock for old archive extraction.
319 kx lock_old_archive_extraction=$lock_old_archive_extraction
319 kx
319 kx # A C compiler.
319 kx LTCC=$lt_CC
319 kx
319 kx # LTCC compiler flags.
319 kx LTCFLAGS=$lt_CFLAGS
319 kx
319 kx # Take the output of nm and produce a listing of raw symbols and C names.
319 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
319 kx
319 kx # Transform the output of nm in a proper C declaration.
319 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
319 kx
319 kx # Transform the output of nm into a list of symbols to manually relocate.
319 kx global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
319 kx
319 kx # Transform the output of nm in a C name address pair.
319 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
319 kx
319 kx # Transform the output of nm in a C name address pair when lib prefix is needed.
319 kx global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
319 kx
319 kx # The name lister interface.
319 kx nm_interface=$lt_lt_cv_nm_interface
319 kx
319 kx # Specify filename containing input files for \$NM.
319 kx nm_file_list_spec=$lt_nm_file_list_spec
319 kx
319 kx # The root where to search for dependent libraries,and where our libraries should be installed.
319 kx lt_sysroot=$lt_sysroot
319 kx
319 kx # Command to truncate a binary pipe.
319 kx lt_truncate_bin=$lt_lt_cv_truncate_bin
319 kx
319 kx # The name of the directory that contains temporary libtool files.
319 kx objdir=$objdir
319 kx
319 kx # Used to examine libraries when file_magic_cmd begins with "file".
319 kx MAGIC_CMD=$MAGIC_CMD
319 kx
319 kx # Must we lock files when doing compilation?
319 kx need_locks=$lt_need_locks
319 kx
319 kx # Manifest tool.
319 kx MANIFEST_TOOL=$lt_MANIFEST_TOOL
319 kx
319 kx # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
319 kx DSYMUTIL=$lt_DSYMUTIL
319 kx
319 kx # Tool to change global to local symbols on Mac OS X.
319 kx NMEDIT=$lt_NMEDIT
319 kx
319 kx # Tool to manipulate fat objects and archives on Mac OS X.
319 kx LIPO=$lt_LIPO
319 kx
319 kx # ldd/readelf like tool for Mach-O binaries on Mac OS X.
319 kx OTOOL=$lt_OTOOL
319 kx
319 kx # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
319 kx OTOOL64=$lt_OTOOL64
319 kx
319 kx # Old archive suffix (normally "a").
319 kx libext=$libext
319 kx
319 kx # Shared library suffix (normally ".so").
319 kx shrext_cmds=$lt_shrext_cmds
319 kx
319 kx # The commands to extract the exported symbol list from a shared archive.
319 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
319 kx
319 kx # Variables whose values should be saved in libtool wrapper scripts and
319 kx # restored at link time.
319 kx variables_saved_for_relink=$lt_variables_saved_for_relink
319 kx
319 kx # Do we need the "lib" prefix for modules?
319 kx need_lib_prefix=$need_lib_prefix
319 kx
319 kx # Do we need a version for libraries?
319 kx need_version=$need_version
319 kx
319 kx # Library versioning type.
319 kx version_type=$version_type
319 kx
319 kx # Shared library runtime path variable.
319 kx runpath_var=$runpath_var
319 kx
319 kx # Shared library path variable.
319 kx shlibpath_var=$shlibpath_var
319 kx
319 kx # Is shlibpath searched before the hard-coded library search path?
319 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
319 kx
319 kx # Format of library name prefix.
319 kx libname_spec=$lt_libname_spec
319 kx
319 kx # List of archive names. First name is the real one, the rest are links.
319 kx # The last name is the one that the linker finds with -lNAME
319 kx library_names_spec=$lt_library_names_spec
319 kx
319 kx # The coded name of the library, if different from the real name.
319 kx soname_spec=$lt_soname_spec
319 kx
319 kx # Permission mode override for installation of shared libraries.
319 kx install_override_mode=$lt_install_override_mode
319 kx
319 kx # Command to use after installation of a shared archive.
319 kx postinstall_cmds=$lt_postinstall_cmds
319 kx
319 kx # Command to use after uninstallation of a shared archive.
319 kx postuninstall_cmds=$lt_postuninstall_cmds
319 kx
319 kx # Commands used to finish a libtool library installation in a directory.
319 kx finish_cmds=$lt_finish_cmds
319 kx
319 kx # As "finish_cmds", except a single script fragment to be evaled but
319 kx # not shown.
319 kx finish_eval=$lt_finish_eval
319 kx
319 kx # Whether we should hardcode library paths into libraries.
319 kx hardcode_into_libs=$hardcode_into_libs
319 kx
319 kx # Compile-time system search path for libraries.
319 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
319 kx
319 kx # Detected run-time system search path for libraries.
319 kx sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
319 kx
319 kx # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
319 kx configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
319 kx
319 kx # Whether dlopen is supported.
319 kx dlopen_support=$enable_dlopen
319 kx
319 kx # Whether dlopen of programs is supported.
319 kx dlopen_self=$enable_dlopen_self
319 kx
319 kx # Whether dlopen of statically linked programs is supported.
319 kx dlopen_self_static=$enable_dlopen_self_static
319 kx
319 kx # Commands to strip libraries.
319 kx old_striplib=$lt_old_striplib
319 kx striplib=$lt_striplib
319 kx
319 kx
319 kx # The linker used to build libraries.
319 kx LD=$lt_LD
319 kx
319 kx # How to create reloadable object files.
319 kx reload_flag=$lt_reload_flag
319 kx reload_cmds=$lt_reload_cmds
319 kx
319 kx # Commands used to build an old-style archive.
319 kx old_archive_cmds=$lt_old_archive_cmds
319 kx
319 kx # A language specific compiler.
319 kx CC=$lt_compiler
319 kx
319 kx # Is the compiler the GNU compiler?
319 kx with_gcc=$GCC
319 kx
319 kx # Compiler flag to turn off builtin functions.
319 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
319 kx
319 kx # Additional compiler flags for building library objects.
319 kx pic_flag=$lt_lt_prog_compiler_pic
319 kx
319 kx # How to pass a linker flag through the compiler.
319 kx wl=$lt_lt_prog_compiler_wl
319 kx
319 kx # Compiler flag to prevent dynamic linking.
319 kx link_static_flag=$lt_lt_prog_compiler_static
319 kx
319 kx # Does compiler simultaneously support -c and -o options?
319 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o
319 kx
319 kx # Whether or not to add -lc for building shared libraries.
319 kx build_libtool_need_lc=$archive_cmds_need_lc
319 kx
319 kx # Whether or not to disallow shared libs when runtime libs are static.
319 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
319 kx
319 kx # Compiler flag to allow reflexive dlopens.
319 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
319 kx
319 kx # Compiler flag to generate shared objects directly from archives.
319 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec
319 kx
319 kx # Whether the compiler copes with passing no objects directly.
319 kx compiler_needs_object=$lt_compiler_needs_object
319 kx
319 kx # Create an old-style archive from a shared archive.
319 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
319 kx
319 kx # Create a temporary old-style archive to link instead of a shared archive.
319 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
319 kx
319 kx # Commands used to build a shared archive.
319 kx archive_cmds=$lt_archive_cmds
319 kx archive_expsym_cmds=$lt_archive_expsym_cmds
319 kx
319 kx # Commands used to build a loadable module if different from building
319 kx # a shared archive.
319 kx module_cmds=$lt_module_cmds
319 kx module_expsym_cmds=$lt_module_expsym_cmds
319 kx
319 kx # Whether we are building with GNU ld or not.
319 kx with_gnu_ld=$lt_with_gnu_ld
319 kx
319 kx # Flag that allows shared libraries with undefined symbols to be built.
319 kx allow_undefined_flag=$lt_allow_undefined_flag
319 kx
319 kx # Flag that enforces no undefined symbols.
319 kx no_undefined_flag=$lt_no_undefined_flag
319 kx
319 kx # Flag to hardcode \$libdir into a binary during linking.
319 kx # This must work even if \$libdir does not exist
319 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
319 kx
319 kx # Whether we need a single "-rpath" flag with a separated argument.
319 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator
319 kx
319 kx # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
319 kx # DIR into the resulting binary.
319 kx hardcode_direct=$hardcode_direct
319 kx
319 kx # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
319 kx # DIR into the resulting binary and the resulting library dependency is
319 kx # "absolute",i.e impossible to change by setting \$shlibpath_var if the
319 kx # library is relocated.
319 kx hardcode_direct_absolute=$hardcode_direct_absolute
319 kx
319 kx # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
319 kx # into the resulting binary.
319 kx hardcode_minus_L=$hardcode_minus_L
319 kx
319 kx # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
319 kx # into the resulting binary.
319 kx hardcode_shlibpath_var=$hardcode_shlibpath_var
319 kx
319 kx # Set to "yes" if building a shared library automatically hardcodes DIR
319 kx # into the library and all subsequent libraries and executables linked
319 kx # against it.
319 kx hardcode_automatic=$hardcode_automatic
319 kx
319 kx # Set to yes if linker adds runtime paths of dependent libraries
319 kx # to runtime path list.
319 kx inherit_rpath=$inherit_rpath
319 kx
319 kx # Whether libtool must link a program against all its dependency libraries.
319 kx link_all_deplibs=$link_all_deplibs
319 kx
319 kx # Set to "yes" if exported symbols are required.
319 kx always_export_symbols=$always_export_symbols
319 kx
319 kx # The commands to list exported symbols.
319 kx export_symbols_cmds=$lt_export_symbols_cmds
319 kx
319 kx # Symbols that should not be listed in the preloaded symbols.
319 kx exclude_expsyms=$lt_exclude_expsyms
319 kx
319 kx # Symbols that must always be exported.
319 kx include_expsyms=$lt_include_expsyms
319 kx
319 kx # Commands necessary for linking programs (against libraries) with templates.
319 kx prelink_cmds=$lt_prelink_cmds
319 kx
319 kx # Commands necessary for finishing linking programs.
319 kx postlink_cmds=$lt_postlink_cmds
319 kx
319 kx # Specify filename containing input files.
319 kx file_list_spec=$lt_file_list_spec
319 kx
319 kx # How to hardcode a shared library path into an executable.
319 kx hardcode_action=$hardcode_action
319 kx
319 kx # The directories searched by this compiler when creating a shared library.
319 kx compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
319 kx
319 kx # Dependencies to place before and after the objects being linked to
319 kx # create a shared library.
319 kx predep_objects=$lt_predep_objects
319 kx postdep_objects=$lt_postdep_objects
319 kx predeps=$lt_predeps
319 kx postdeps=$lt_postdeps
319 kx
319 kx # The library search path used internally by the compiler when linking
319 kx # a shared library.
319 kx compiler_lib_search_path=$lt_compiler_lib_search_path
319 kx
319 kx # ### END LIBTOOL CONFIG
319 kx
319 kx _LT_EOF
319 kx
319 kx cat <<'_LT_EOF' >> "$cfgfile"
319 kx
319 kx # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
319 kx
319 kx # func_munge_path_list VARIABLE PATH
319 kx # -----------------------------------
319 kx # VARIABLE is name of variable containing _space_ separated list of
319 kx # directories to be munged by the contents of PATH, which is string
319 kx # having a format:
319 kx # "DIR[:DIR]:"
319 kx # string "DIR[ DIR]" will be prepended to VARIABLE
319 kx # ":DIR[:DIR]"
319 kx # string "DIR[ DIR]" will be appended to VARIABLE
319 kx # "DIRP[:DIRP]::[DIRA:]DIRA"
319 kx # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
319 kx # "DIRA[ DIRA]" will be appended to VARIABLE
319 kx # "DIR[:DIR]"
319 kx # VARIABLE will be replaced by "DIR[ DIR]"
319 kx func_munge_path_list ()
319 kx {
319 kx case x$2 in
319 kx x)
319 kx ;;
319 kx *:)
319 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
319 kx ;;
319 kx x:*)
319 kx eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
319 kx ;;
319 kx *::*)
319 kx eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
319 kx eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
319 kx ;;
319 kx *)
319 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
319 kx ;;
319 kx esac
319 kx }
319 kx
319 kx
319 kx # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
319 kx func_cc_basename ()
319 kx {
319 kx for cc_temp in $*""; do
319 kx case $cc_temp in
319 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
319 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
319 kx \-*) ;;
319 kx *) break;;
319 kx esac
319 kx done
319 kx func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
319 kx }
319 kx
319 kx
319 kx # ### END FUNCTIONS SHARED WITH CONFIGURE
319 kx
319 kx _LT_EOF
319 kx
319 kx case $host_os in
319 kx aix3*)
319 kx cat <<\_LT_EOF >> "$cfgfile"
319 kx # AIX sometimes has problems with the GCC collect2 program. For some
319 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
319 kx # vanish in a puff of smoke.
319 kx if test set != "${COLLECT_NAMES+set}"; then
319 kx COLLECT_NAMES=
319 kx export COLLECT_NAMES
319 kx fi
319 kx _LT_EOF
319 kx ;;
319 kx esac
319 kx
319 kx
319 kx
319 kx ltmain=$ac_aux_dir/ltmain.sh
319 kx
319 kx
319 kx # We use sed instead of cat because bash on DJGPP gets confused if
319 kx # if finds mixed CR/LF and LF-only lines. Since sed operates in
319 kx # text mode, it properly converts lines to CR/LF. This bash problem
319 kx # is reportedly fixed, but why not run on old versions too?
319 kx $SED '$q' "$ltmain" >> "$cfgfile" \
319 kx || (rm -f "$cfgfile"; exit 1)
319 kx
319 kx mv -f "$cfgfile" "$ofile" ||
319 kx (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
319 kx chmod +x "$ofile"
319 kx
319 kx
319 kx cat <<_LT_EOF >> "$ofile"
319 kx
319 kx # ### BEGIN LIBTOOL TAG CONFIG: CXX
319 kx
319 kx # The linker used to build libraries.
319 kx LD=$lt_LD_CXX
319 kx
319 kx # How to create reloadable object files.
319 kx reload_flag=$lt_reload_flag_CXX
319 kx reload_cmds=$lt_reload_cmds_CXX
319 kx
319 kx # Commands used to build an old-style archive.
319 kx old_archive_cmds=$lt_old_archive_cmds_CXX
319 kx
319 kx # A language specific compiler.
319 kx CC=$lt_compiler_CXX
319 kx
319 kx # Is the compiler the GNU compiler?
319 kx with_gcc=$GCC_CXX
319 kx
319 kx # Compiler flag to turn off builtin functions.
319 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
319 kx
319 kx # Additional compiler flags for building library objects.
319 kx pic_flag=$lt_lt_prog_compiler_pic_CXX
319 kx
319 kx # How to pass a linker flag through the compiler.
319 kx wl=$lt_lt_prog_compiler_wl_CXX
319 kx
319 kx # Compiler flag to prevent dynamic linking.
319 kx link_static_flag=$lt_lt_prog_compiler_static_CXX
319 kx
319 kx # Does compiler simultaneously support -c and -o options?
319 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
319 kx
319 kx # Whether or not to add -lc for building shared libraries.
319 kx build_libtool_need_lc=$archive_cmds_need_lc_CXX
319 kx
319 kx # Whether or not to disallow shared libs when runtime libs are static.
319 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
319 kx
319 kx # Compiler flag to allow reflexive dlopens.
319 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
319 kx
319 kx # Compiler flag to generate shared objects directly from archives.
319 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
319 kx
319 kx # Whether the compiler copes with passing no objects directly.
319 kx compiler_needs_object=$lt_compiler_needs_object_CXX
319 kx
319 kx # Create an old-style archive from a shared archive.
319 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
319 kx
319 kx # Create a temporary old-style archive to link instead of a shared archive.
319 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
319 kx
319 kx # Commands used to build a shared archive.
319 kx archive_cmds=$lt_archive_cmds_CXX
319 kx archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
319 kx
319 kx # Commands used to build a loadable module if different from building
319 kx # a shared archive.
319 kx module_cmds=$lt_module_cmds_CXX
319 kx module_expsym_cmds=$lt_module_expsym_cmds_CXX
319 kx
319 kx # Whether we are building with GNU ld or not.
319 kx with_gnu_ld=$lt_with_gnu_ld_CXX
319 kx
319 kx # Flag that allows shared libraries with undefined symbols to be built.
319 kx allow_undefined_flag=$lt_allow_undefined_flag_CXX
319 kx
319 kx # Flag that enforces no undefined symbols.
319 kx no_undefined_flag=$lt_no_undefined_flag_CXX
319 kx
319 kx # Flag to hardcode \$libdir into a binary during linking.
319 kx # This must work even if \$libdir does not exist
319 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
319 kx
319 kx # Whether we need a single "-rpath" flag with a separated argument.
319 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
319 kx
319 kx # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
319 kx # DIR into the resulting binary.
319 kx hardcode_direct=$hardcode_direct_CXX
319 kx
319 kx # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
319 kx # DIR into the resulting binary and the resulting library dependency is
319 kx # "absolute",i.e impossible to change by setting \$shlibpath_var if the
319 kx # library is relocated.
319 kx hardcode_direct_absolute=$hardcode_direct_absolute_CXX
319 kx
319 kx # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
319 kx # into the resulting binary.
319 kx hardcode_minus_L=$hardcode_minus_L_CXX
319 kx
319 kx # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
319 kx # into the resulting binary.
319 kx hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
319 kx
319 kx # Set to "yes" if building a shared library automatically hardcodes DIR
319 kx # into the library and all subsequent libraries and executables linked
319 kx # against it.
319 kx hardcode_automatic=$hardcode_automatic_CXX
319 kx
319 kx # Set to yes if linker adds runtime paths of dependent libraries
319 kx # to runtime path list.
319 kx inherit_rpath=$inherit_rpath_CXX
319 kx
319 kx # Whether libtool must link a program against all its dependency libraries.
319 kx link_all_deplibs=$link_all_deplibs_CXX
319 kx
319 kx # Set to "yes" if exported symbols are required.
319 kx always_export_symbols=$always_export_symbols_CXX
319 kx
319 kx # The commands to list exported symbols.
319 kx export_symbols_cmds=$lt_export_symbols_cmds_CXX
319 kx
319 kx # Symbols that should not be listed in the preloaded symbols.
319 kx exclude_expsyms=$lt_exclude_expsyms_CXX
319 kx
319 kx # Symbols that must always be exported.
319 kx include_expsyms=$lt_include_expsyms_CXX
319 kx
319 kx # Commands necessary for linking programs (against libraries) with templates.
319 kx prelink_cmds=$lt_prelink_cmds_CXX
319 kx
319 kx # Commands necessary for finishing linking programs.
319 kx postlink_cmds=$lt_postlink_cmds_CXX
319 kx
319 kx # Specify filename containing input files.
319 kx file_list_spec=$lt_file_list_spec_CXX
319 kx
319 kx # How to hardcode a shared library path into an executable.
319 kx hardcode_action=$hardcode_action_CXX
319 kx
319 kx # The directories searched by this compiler when creating a shared library.
319 kx compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
319 kx
319 kx # Dependencies to place before and after the objects being linked to
319 kx # create a shared library.
319 kx predep_objects=$lt_predep_objects_CXX
319 kx postdep_objects=$lt_postdep_objects_CXX
319 kx predeps=$lt_predeps_CXX
319 kx postdeps=$lt_postdeps_CXX
319 kx
319 kx # The library search path used internally by the compiler when linking
319 kx # a shared library.
319 kx compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
319 kx
319 kx # ### END LIBTOOL TAG CONFIG: CXX
319 kx _LT_EOF
319 kx
319 kx ;;
319 kx
319 kx esac
319 kx done # for ac_tag
319 kx
319 kx
319 kx as_fn_exit 0
319 kx _ACEOF
319 kx ac_clean_files=$ac_clean_files_save
319 kx
319 kx test $ac_write_fail = 0 ||
319 kx as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
319 kx
319 kx
319 kx # configure is writing to config.log, and then calls config.status.
319 kx # config.status does its own redirection, appending to config.log.
319 kx # Unfortunately, on DOS this fails, as config.log is still kept open
319 kx # by configure, so config.status won't be able to write to it; its
319 kx # output is simply discarded. So we exec the FD to /dev/null,
319 kx # effectively closing config.log, so it can be properly (re)opened and
319 kx # appended to by config.status. When coming back to configure, we
319 kx # need to make the FD available again.
319 kx if test "$no_create" != yes; then
319 kx ac_cs_success=:
319 kx ac_config_status_args=
319 kx test "$silent" = yes &&
319 kx ac_config_status_args="$ac_config_status_args --quiet"
319 kx exec 5>/dev/null
319 kx $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
319 kx exec 5>>config.log
319 kx # Use ||, not &&, to avoid exiting from the if with $? = 1, which
319 kx # would make configure fail if this is the last instruction.
319 kx $ac_cs_success || as_fn_exit 1
319 kx fi
319 kx if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
319 kx { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
319 kx printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
319 kx fi
319 kx
319 kx
319 kx
319 kx echo "
319 kx Defines:
319 kx
319 kx EXEMPI_PLATFORM_DEF = $EXEMPI_PLATFORM_DEF
319 kx CPPFLAGS = $CPPFLAGS
319 kx LDFLAGS = $LDFLAGS
319 kx Thread Local Storage = $ac_cv_tls
319 kx Run unit test = $ENABLE_UNITTEST
319 kx "
319 kx