5 kx #! /bin/sh
5 kx # Guess values for system-dependent variables and create Makefiles.
5 kx # Generated by GNU Autoconf 2.69 for GNU Libidn 1.36.
5 kx #
5 kx # Report bugs to <bug-libidn@gnu.org>.
5 kx #
5 kx #
5 kx # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5 kx #
5 kx #
5 kx # This configure script is free software; the Free Software Foundation
5 kx # gives unlimited permission to copy, distribute and modify it.
5 kx ## -------------------- ##
5 kx ## M4sh Initialization. ##
5 kx ## -------------------- ##
5 kx
5 kx # Be more Bourne compatible
5 kx DUALCASE=1; export DUALCASE # for MKS sh
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx as_nl='
5 kx '
5 kx export as_nl
5 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
5 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
5 kx # but without wasting forks for bash or zsh.
5 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
5 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='print -r --'
5 kx as_echo_n='print -rn --'
5 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='printf %s\n'
5 kx as_echo_n='printf %s'
5 kx else
5 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5 kx as_echo_n='/usr/ucb/echo -n'
5 kx else
5 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5 kx as_echo_n_body='eval
5 kx arg=$1;
5 kx case $arg in #(
5 kx *"$as_nl"*)
5 kx expr "X$arg" : "X\\(.*\\)$as_nl";
5 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5 kx esac;
5 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5 kx '
5 kx export as_echo_n_body
5 kx as_echo_n='sh -c $as_echo_n_body as_echo'
5 kx fi
5 kx export as_echo_body
5 kx as_echo='sh -c $as_echo_body as_echo'
5 kx fi
5 kx
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5 kx PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx
5 kx # IFS
5 kx # We need space, tab and new line, in precisely that order. Quoting is
5 kx # there to prevent editors from complaining about space-tab.
5 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5 kx # splitting by setting IFS to empty value.)
5 kx IFS=" "" $as_nl"
5 kx
5 kx # Find who we are. Look in the path if we contain no directory separator.
5 kx as_myself=
5 kx case $0 in #((
5 kx *[\\/]* ) as_myself=$0 ;;
5 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
5 kx # in which case we are not to be found in the path.
5 kx if test "x$as_myself" = x; then
5 kx as_myself=$0
5 kx fi
5 kx if test ! -f "$as_myself"; then
5 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5 kx exit 1
5 kx fi
5 kx
5 kx # Unset variables that we do not need and which cause bugs (e.g. in
5 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5 kx # suppresses any "Segmentation fault" message there. '((' could
5 kx # trigger a bug in pdksh 5.2.14.
5 kx for as_var in BASH_ENV ENV MAIL MAILPATH
5 kx do eval test x\${$as_var+set} = xset \
5 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 kx done
5 kx PS1='$ '
5 kx PS2='> '
5 kx PS4='+ '
5 kx
5 kx # NLS nuisances.
5 kx LC_ALL=C
5 kx export LC_ALL
5 kx LANGUAGE=C
5 kx export LANGUAGE
5 kx
5 kx # CDPATH.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx # Use a proper internal environment variable to ensure we don't fall
5 kx # into an infinite loop, continuously re-executing ourselves.
5 kx if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
5 kx _as_can_reexec=no; export _as_can_reexec;
5 kx # We cannot yet assume a decent shell, so we have to provide a
5 kx # neutralization value for shells without unset; and this also
5 kx # works around shells that cannot unset nonexistent variables.
5 kx # Preserve -v and -x to the replacement shell.
5 kx BASH_ENV=/dev/null
5 kx ENV=/dev/null
5 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
5 kx case $- in # ((((
5 kx *v*x* | *x*v* ) as_opts=-vx ;;
5 kx *v* ) as_opts=-v ;;
5 kx *x* ) as_opts=-x ;;
5 kx * ) as_opts= ;;
5 kx esac
5 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
5 kx # Admittedly, this is quite paranoid, since all the known shells bail
5 kx # out after a failed `exec'.
5 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
5 kx as_fn_exit 255
5 kx fi
5 kx # We don't want this to propagate to other subprocesses.
5 kx { _as_can_reexec=; unset _as_can_reexec;}
5 kx if test "x$CONFIG_SHELL" = x; then
5 kx as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '\${1+\"\$@\"}'='\"\$@\"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case \`(set -o) 2>/dev/null\` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx "
5 kx as_required="as_fn_return () { (exit \$1); }
5 kx as_fn_success () { as_fn_return 0; }
5 kx as_fn_failure () { as_fn_return 1; }
5 kx as_fn_ret_success () { return 0; }
5 kx as_fn_ret_failure () { return 1; }
5 kx
5 kx exitcode=0
5 kx as_fn_success || { exitcode=1; echo as_fn_success failed.; }
5 kx as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
5 kx as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
5 kx as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
5 kx if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
5 kx
5 kx else
5 kx exitcode=1; echo positional parameters were not saved.
5 kx fi
5 kx test x\$exitcode = x0 || exit 1
5 kx test -x / || exit 1"
5 kx as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
5 kx as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
5 kx eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
5 kx test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
5 kx test \$(( 1 + 1 )) = 2 || exit 1
5 kx
5 kx test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
5 kx ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5 kx ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
5 kx ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
5 kx PATH=/empty FPATH=/empty; export PATH FPATH
5 kx test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
5 kx || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
5 kx if (eval "$as_required") 2>/dev/null; then :
5 kx as_have_required=yes
5 kx else
5 kx as_have_required=no
5 kx fi
5 kx if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
5 kx
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx as_found=false
5 kx for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx as_found=:
5 kx case $as_dir in #(
5 kx /*)
5 kx for as_base in sh bash ksh sh5; do
5 kx # Try only shells that exist, to save several forks.
5 kx as_shell=$as_dir/$as_base
5 kx if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
5 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
5 kx CONFIG_SHELL=$as_shell as_have_required=yes
5 kx if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
5 kx break 2
5 kx fi
5 kx fi
5 kx done;;
5 kx esac
5 kx as_found=false
5 kx done
5 kx $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
5 kx { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
5 kx CONFIG_SHELL=$SHELL as_have_required=yes
5 kx fi; }
5 kx IFS=$as_save_IFS
5 kx
5 kx
5 kx if test "x$CONFIG_SHELL" != x; then :
5 kx export CONFIG_SHELL
5 kx # We cannot yet assume a decent shell, so we have to provide a
5 kx # neutralization value for shells without unset; and this also
5 kx # works around shells that cannot unset nonexistent variables.
5 kx # Preserve -v and -x to the replacement shell.
5 kx BASH_ENV=/dev/null
5 kx ENV=/dev/null
5 kx (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
5 kx case $- in # ((((
5 kx *v*x* | *x*v* ) as_opts=-vx ;;
5 kx *v* ) as_opts=-v ;;
5 kx *x* ) as_opts=-x ;;
5 kx * ) as_opts= ;;
5 kx esac
5 kx exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
5 kx # Admittedly, this is quite paranoid, since all the known shells bail
5 kx # out after a failed `exec'.
5 kx $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
5 kx exit 255
5 kx fi
5 kx
5 kx if test x$as_have_required = xno; then :
5 kx $as_echo "$0: This script requires a shell more modern than all"
5 kx $as_echo "$0: the shells that I found on your system."
5 kx if test x${ZSH_VERSION+set} = xset ; then
5 kx $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
5 kx $as_echo "$0: be upgraded to zsh 4.3.4 or later."
5 kx else
5 kx $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-libidn@gnu.org
5 kx $0: about your system, including any error possibly output
5 kx $0: before this message. Then install a modern shell, or
5 kx $0: manually run the script under such a shell if you do
5 kx $0: have one."
5 kx fi
5 kx exit 1
5 kx fi
5 kx fi
5 kx fi
5 kx SHELL=${CONFIG_SHELL-/bin/sh}
5 kx export SHELL
5 kx # Unset more variables known to interfere with behavior of common tools.
5 kx CLICOLOR_FORCE= GREP_OPTIONS=
5 kx unset CLICOLOR_FORCE GREP_OPTIONS
5 kx
5 kx ## --------------------- ##
5 kx ## M4sh Shell Functions. ##
5 kx ## --------------------- ##
5 kx # as_fn_unset VAR
5 kx # ---------------
5 kx # Portably unset VAR.
5 kx as_fn_unset ()
5 kx {
5 kx { eval $1=; unset $1;}
5 kx }
5 kx as_unset=as_fn_unset
5 kx
5 kx # as_fn_set_status STATUS
5 kx # -----------------------
5 kx # Set $? to STATUS, without forking.
5 kx as_fn_set_status ()
5 kx {
5 kx return $1
5 kx } # as_fn_set_status
5 kx
5 kx # as_fn_exit STATUS
5 kx # -----------------
5 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5 kx as_fn_exit ()
5 kx {
5 kx set +e
5 kx as_fn_set_status $1
5 kx exit $1
5 kx } # as_fn_exit
5 kx
5 kx # as_fn_mkdir_p
5 kx # -------------
5 kx # Create "$as_dir" as a directory, including parents if necessary.
5 kx as_fn_mkdir_p ()
5 kx {
5 kx
5 kx case $as_dir in #(
5 kx -*) as_dir=./$as_dir;;
5 kx esac
5 kx test -d "$as_dir" || eval $as_mkdir_p || {
5 kx as_dirs=
5 kx while :; do
5 kx case $as_dir in #(
5 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5 kx *) as_qdir=$as_dir;;
5 kx esac
5 kx as_dirs="'$as_qdir' $as_dirs"
5 kx as_dir=`$as_dirname -- "$as_dir" ||
5 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_dir" : 'X\(//\)[^/]' \| \
5 kx X"$as_dir" : 'X\(//\)$' \| \
5 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_dir" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx test -d "$as_dir" && break
5 kx done
5 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
5 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5 kx
5 kx
5 kx } # as_fn_mkdir_p
5 kx
5 kx # as_fn_executable_p FILE
5 kx # -----------------------
5 kx # Test if FILE is an executable regular file.
5 kx as_fn_executable_p ()
5 kx {
5 kx test -f "$1" && test -x "$1"
5 kx } # as_fn_executable_p
5 kx # as_fn_append VAR VALUE
5 kx # ----------------------
5 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
5 kx # advantage of any shell optimizations that allow amortized linear growth over
5 kx # repeated appends, instead of the typical quadratic growth present in naive
5 kx # implementations.
5 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5 kx eval 'as_fn_append ()
5 kx {
5 kx eval $1+=\$2
5 kx }'
5 kx else
5 kx as_fn_append ()
5 kx {
5 kx eval $1=\$$1\$2
5 kx }
5 kx fi # as_fn_append
5 kx
5 kx # as_fn_arith ARG...
5 kx # ------------------
5 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
5 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
5 kx # must be portable across $(()) and expr.
5 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5 kx eval 'as_fn_arith ()
5 kx {
5 kx as_val=$(( $* ))
5 kx }'
5 kx else
5 kx as_fn_arith ()
5 kx {
5 kx as_val=`expr "$@" || test $? -eq 1`
5 kx }
5 kx fi # as_fn_arith
5 kx
5 kx
5 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
5 kx # ----------------------------------------
5 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5 kx # script with STATUS, using 1 if that was 0.
5 kx as_fn_error ()
5 kx {
5 kx as_status=$1; test $as_status -eq 0 && as_status=1
5 kx if test "$4"; then
5 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5 kx fi
5 kx $as_echo "$as_me: error: $2" >&2
5 kx as_fn_exit $as_status
5 kx } # as_fn_error
5 kx
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5 kx as_basename=basename
5 kx else
5 kx as_basename=false
5 kx fi
5 kx
5 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5 kx as_dirname=dirname
5 kx else
5 kx as_dirname=false
5 kx fi
5 kx
5 kx as_me=`$as_basename -- "$0" ||
5 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X/"$0" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx
5 kx # Avoid depending upon Character Ranges.
5 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5 kx as_cr_digits='0123456789'
5 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
5 kx
5 kx
5 kx as_lineno_1=$LINENO as_lineno_1a=$LINENO
5 kx as_lineno_2=$LINENO as_lineno_2a=$LINENO
5 kx eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
5 kx test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
5 kx # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
5 kx sed -n '
5 kx p
5 kx /[$]LINENO/=
5 kx ' <$as_myself |
5 kx sed '
5 kx s/[$]LINENO.*/&-/
5 kx t lineno
5 kx b
5 kx :lineno
5 kx N
5 kx :loop
5 kx s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5 kx t loop
5 kx s/-\n.*//
5 kx ' >$as_me.lineno &&
5 kx chmod +x "$as_me.lineno" ||
5 kx { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5 kx
5 kx # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5 kx # already done that, so ensure we don't try to do so again and fall
5 kx # in an infinite loop. This has already happened in practice.
5 kx _as_can_reexec=no; export _as_can_reexec
5 kx # Don't try to exec as it changes $[0], causing all sort of problems
5 kx # (the dirname of $[0] is not the place where we might find the
5 kx # original and so on. Autoconf is especially sensitive to this).
5 kx . "./$as_me.lineno"
5 kx # Exit status is that of the last command.
5 kx exit
5 kx }
5 kx
5 kx ECHO_C= ECHO_N= ECHO_T=
5 kx case `echo -n x` in #(((((
5 kx -n*)
5 kx case `echo 'xy\c'` in
5 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5 kx xy) ECHO_C='\c';;
5 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5 kx ECHO_T=' ';;
5 kx esac;;
5 kx *)
5 kx ECHO_N='-n';;
5 kx esac
5 kx
5 kx rm -f conf$$ conf$$.exe conf$$.file
5 kx if test -d conf$$.dir; then
5 kx rm -f conf$$.dir/conf$$.file
5 kx else
5 kx rm -f conf$$.dir
5 kx mkdir conf$$.dir 2>/dev/null
5 kx fi
5 kx if (echo >conf$$.file) 2>/dev/null; then
5 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s='ln -s'
5 kx # ... but there are two gotchas:
5 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5 kx # In both cases, we have to default to `cp -pR'.
5 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5 kx as_ln_s='cp -pR'
5 kx elif ln conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s=ln
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5 kx rmdir conf$$.dir 2>/dev/null
5 kx
5 kx if mkdir -p . 2>/dev/null; then
5 kx as_mkdir_p='mkdir -p "$as_dir"'
5 kx else
5 kx test -d ./-p && rmdir ./-p
5 kx as_mkdir_p=false
5 kx fi
5 kx
5 kx as_test_x='test -x'
5 kx as_executable_p=as_fn_executable_p
5 kx
5 kx # Sed expression to map a string onto a valid CPP name.
5 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx # Sed expression to map a string onto a valid variable name.
5 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx SHELL=${CONFIG_SHELL-/bin/sh}
5 kx
5 kx
5 kx test -n "$DJDIR" || exec 7<&0 </dev/null
5 kx exec 6>&1
5 kx
5 kx # Name of the host.
5 kx # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5 kx # so uname gets run too.
5 kx ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx
5 kx #
5 kx # Initializations.
5 kx #
5 kx ac_default_prefix=/usr/local
5 kx ac_clean_files=
5 kx ac_config_libobj_dir=.
5 kx LIBOBJS=
5 kx cross_compiling=no
5 kx subdirs=
5 kx MFLAGS=
5 kx MAKEFLAGS=
5 kx
5 kx # Identity of this package.
5 kx PACKAGE_NAME='GNU Libidn'
5 kx PACKAGE_TARNAME='libidn'
5 kx PACKAGE_VERSION='1.36'
5 kx PACKAGE_STRING='GNU Libidn 1.36'
5 kx PACKAGE_BUGREPORT='bug-libidn@gnu.org'
5 kx PACKAGE_URL='http://www.gnu.org/software/libidn/'
5 kx
5 kx # Factoring default headers for most tests.
5 kx ac_includes_default="\
5 kx #include <stdio.h>
5 kx #ifdef HAVE_SYS_TYPES_H
5 kx # include <sys/types.h>
5 kx #endif
5 kx #ifdef HAVE_SYS_STAT_H
5 kx # include <sys/stat.h>
5 kx #endif
5 kx #ifdef STDC_HEADERS
5 kx # include <stdlib.h>
5 kx # include <stddef.h>
5 kx #else
5 kx # ifdef HAVE_STDLIB_H
5 kx # include <stdlib.h>
5 kx # endif
5 kx #endif
5 kx #ifdef HAVE_STRING_H
5 kx # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5 kx # include <memory.h>
5 kx # endif
5 kx # include <string.h>
5 kx #endif
5 kx #ifdef HAVE_STRINGS_H
5 kx # include <strings.h>
5 kx #endif
5 kx #ifdef HAVE_INTTYPES_H
5 kx # include <inttypes.h>
5 kx #endif
5 kx #ifdef HAVE_STDINT_H
5 kx # include <stdint.h>
5 kx #endif
5 kx #ifdef HAVE_UNISTD_H
5 kx # include <unistd.h>
5 kx #endif"
5 kx
5 kx gl_use_threads_default=
5 kx gt_needs=
5 kx ac_func_list=
5 kx ac_header_list=
5 kx gl_getopt_required=POSIX
5 kx ac_subst_vars='lgltests_LTLIBOBJS
5 kx lgltests_LIBOBJS
5 kx lgl_LTLIBOBJS
5 kx lgl_LIBOBJS
5 kx gltests_LTLIBOBJS
5 kx gltests_LIBOBJS
5 kx gl_LTLIBOBJS
5 kx gl_LIBOBJS
5 kx CONFIG_INCLUDE
5 kx am__EXEEXT_FALSE
5 kx am__EXEEXT_TRUE
5 kx LTLIBOBJS
5 kx LIBOBJS
5 kx ENABLE_DOC_FALSE
5 kx ENABLE_DOC_TRUE
5 kx WARN_CFLAGS
5 kx WSTACK_CFLAGS
5 kx CSHARP_FALSE
5 kx CSHARP_TRUE
5 kx HAVE_CLIX
5 kx HAVE_MONO
5 kx CLIX_PATH
5 kx CLIX_PATH_VAR
5 kx MONO_PATH_SEPARATOR
5 kx MONO_PATH
5 kx HAVE_CLIX_IN_PATH
5 kx HAVE_MONO_IN_PATH
5 kx JAVA_FALSE
5 kx JAVA_TRUE
5 kx JAR
5 kx JAVADOC
5 kx JAVAC
5 kx JAVA
5 kx JAVAFLAGS
5 kx JAVACFLAGS
5 kx JAVAPREFIX
5 kx GTK_DOC_USE_REBASE_FALSE
5 kx GTK_DOC_USE_REBASE_TRUE
5 kx GTK_DOC_USE_LIBTOOL_FALSE
5 kx GTK_DOC_USE_LIBTOOL_TRUE
5 kx GTK_DOC_BUILD_PDF_FALSE
5 kx GTK_DOC_BUILD_PDF_TRUE
5 kx GTK_DOC_BUILD_HTML_FALSE
5 kx GTK_DOC_BUILD_HTML_TRUE
5 kx ENABLE_GTK_DOC_FALSE
5 kx ENABLE_GTK_DOC_TRUE
5 kx HAVE_GTK_DOC_FALSE
5 kx HAVE_GTK_DOC_TRUE
5 kx GTKDOC_DEPS_LIBS
5 kx GTKDOC_DEPS_CFLAGS
5 kx HTML_DIR
5 kx GTKDOC_MKPDF
5 kx GTKDOC_REBASE
5 kx GTKDOC_CHECK_PATH
5 kx GTKDOC_CHECK
5 kx PKG_CONFIG
5 kx TLD_FALSE
5 kx TLD_TRUE
5 kx LOCALE_ZH_CN
5 kx LOCALE_JA
5 kx LOCALE_FR_UTF8
5 kx LIB_SETLOCALE
5 kx LIB_SETLOCALE_NULL
5 kx NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
5 kx NEXT_LOCALE_H
5 kx HAVE_XLOCALE_H
5 kx REPLACE_STRUCT_LCONV
5 kx REPLACE_FREELOCALE
5 kx REPLACE_DUPLOCALE
5 kx REPLACE_NEWLOCALE
5 kx REPLACE_SETLOCALE
5 kx REPLACE_LOCALECONV
5 kx HAVE_FREELOCALE
5 kx HAVE_DUPLOCALE
5 kx HAVE_NEWLOCALE
5 kx GNULIB_LOCALENAME
5 kx GNULIB_DUPLOCALE
5 kx GNULIB_SETLOCALE_NULL
5 kx GNULIB_SETLOCALE
5 kx GNULIB_LOCALECONV
5 kx HAVE_LANGINFO_YESEXPR
5 kx HAVE_LANGINFO_ERA
5 kx HAVE_LANGINFO_ALTMON
5 kx HAVE_LANGINFO_T_FMT_AMPM
5 kx HAVE_LANGINFO_CODESET
5 kx HAVE_LANGINFO_H
5 kx NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
5 kx NEXT_LANGINFO_H
5 kx REPLACE_NL_LANGINFO
5 kx HAVE_NL_LANGINFO
5 kx GNULIB_NL_LANGINFO
5 kx LOCALE_TR_UTF8
5 kx LOCALE_FR
5 kx lgltests_WITNESS
5 kx LIBUNISTRING_UNITYPES_H
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE
5 kx LIBUNISTRING_UNISTR_H
5 kx HAVE_VISIBILITY
5 kx CFLAG_VISIBILITY
5 kx HAVE_LD_VERSION_SCRIPT_FALSE
5 kx HAVE_LD_VERSION_SCRIPT_TRUE
5 kx HAVE_LD_OUTPUT_DEF_FALSE
5 kx HAVE_LD_OUTPUT_DEF_TRUE
5 kx NEXT_AS_FIRST_DIRECTIVE_ICONV_H
5 kx NEXT_ICONV_H
5 kx LIBTESTS_LIBDEPS
5 kx YIELD_LIB
5 kx HAVE_CRTDEFS_H
5 kx HAVE_WINT_T
5 kx NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
5 kx NEXT_WCHAR_H
5 kx REPLACE_WCSTOK
5 kx REPLACE_WCSFTIME
5 kx REPLACE_WCSWIDTH
5 kx REPLACE_WCWIDTH
5 kx REPLACE_WCSNRTOMBS
5 kx REPLACE_WCSRTOMBS
5 kx REPLACE_WCRTOMB
5 kx REPLACE_MBSNRTOWCS
5 kx REPLACE_MBSRTOWCS
5 kx REPLACE_MBRLEN
5 kx REPLACE_MBRTOWC
5 kx REPLACE_MBSINIT
5 kx REPLACE_WCTOB
5 kx REPLACE_BTOWC
5 kx REPLACE_MBSTATE_T
5 kx HAVE_DECL_WCWIDTH
5 kx HAVE_DECL_WCTOB
5 kx HAVE_WCSFTIME
5 kx HAVE_WCSWIDTH
5 kx HAVE_WCSTOK
5 kx HAVE_WCSSTR
5 kx HAVE_WCSPBRK
5 kx HAVE_WCSSPN
5 kx HAVE_WCSCSPN
5 kx HAVE_WCSRCHR
5 kx HAVE_WCSCHR
5 kx HAVE_WCSDUP
5 kx HAVE_WCSXFRM
5 kx HAVE_WCSCOLL
5 kx HAVE_WCSNCASECMP
5 kx HAVE_WCSCASECMP
5 kx HAVE_WCSNCMP
5 kx HAVE_WCSCMP
5 kx HAVE_WCSNCAT
5 kx HAVE_WCSCAT
5 kx HAVE_WCPNCPY
5 kx HAVE_WCSNCPY
5 kx HAVE_WCPCPY
5 kx HAVE_WCSCPY
5 kx HAVE_WCSNLEN
5 kx HAVE_WCSLEN
5 kx HAVE_WMEMSET
5 kx HAVE_WMEMPCPY
5 kx HAVE_WMEMMOVE
5 kx HAVE_WMEMCPY
5 kx HAVE_WMEMCMP
5 kx HAVE_WMEMCHR
5 kx HAVE_WCSNRTOMBS
5 kx HAVE_WCSRTOMBS
5 kx HAVE_WCRTOMB
5 kx HAVE_MBSNRTOWCS
5 kx HAVE_MBSRTOWCS
5 kx HAVE_MBRLEN
5 kx HAVE_MBRTOWC
5 kx HAVE_MBSINIT
5 kx HAVE_BTOWC
5 kx GNULIB_WCSFTIME
5 kx GNULIB_WCSWIDTH
5 kx GNULIB_WCSTOK
5 kx GNULIB_WCSSTR
5 kx GNULIB_WCSPBRK
5 kx GNULIB_WCSSPN
5 kx GNULIB_WCSCSPN
5 kx GNULIB_WCSRCHR
5 kx GNULIB_WCSCHR
5 kx GNULIB_WCSDUP
5 kx GNULIB_WCSXFRM
5 kx GNULIB_WCSCOLL
5 kx GNULIB_WCSNCASECMP
5 kx GNULIB_WCSCASECMP
5 kx GNULIB_WCSNCMP
5 kx GNULIB_WCSCMP
5 kx GNULIB_WCSNCAT
5 kx GNULIB_WCSCAT
5 kx GNULIB_WCPNCPY
5 kx GNULIB_WCSNCPY
5 kx GNULIB_WCPCPY
5 kx GNULIB_WCSCPY
5 kx GNULIB_WCSNLEN
5 kx GNULIB_WCSLEN
5 kx GNULIB_WMEMSET
5 kx GNULIB_WMEMPCPY
5 kx GNULIB_WMEMMOVE
5 kx GNULIB_WMEMCPY
5 kx GNULIB_WMEMCMP
5 kx GNULIB_WMEMCHR
5 kx GNULIB_WCWIDTH
5 kx GNULIB_WCSNRTOMBS
5 kx GNULIB_WCSRTOMBS
5 kx GNULIB_WCRTOMB
5 kx GNULIB_MBSNRTOWCS
5 kx GNULIB_MBSRTOWCS
5 kx GNULIB_MBRLEN
5 kx GNULIB_MBRTOWC
5 kx GNULIB_MBSINIT
5 kx GNULIB_WCTOB
5 kx GNULIB_BTOWC
5 kx abs_aux_dir
5 kx HAVE_SYS_UIO_H
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
5 kx NEXT_SYS_UIO_H
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
5 kx NEXT_SYS_IOCTL_H
5 kx HAVE_SYS_IOCTL_H
5 kx NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
5 kx NEXT_STDLIB_H
5 kx GL_GENERATE_STDALIGN_H_FALSE
5 kx GL_GENERATE_STDALIGN_H_TRUE
5 kx STDALIGN_H
5 kx NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
5 kx NEXT_SIGNAL_H
5 kx HAVE_STRUCT_SCHED_PARAM
5 kx HAVE_SCHED_H
5 kx NEXT_AS_FIRST_DIRECTIVE_SCHED_H
5 kx NEXT_SCHED_H
5 kx REPLACE_SCHED_YIELD
5 kx HAVE_SCHED_YIELD
5 kx GNULIB_SCHED_YIELD
5 kx LIB_PTHREAD_SIGMASK
5 kx REPLACE_RAISE
5 kx REPLACE_PTHREAD_SIGMASK
5 kx HAVE_SIGHANDLER_T
5 kx HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
5 kx HAVE_STRUCT_SIGACTION_SA_SIGACTION
5 kx HAVE_SIGACTION
5 kx HAVE_SIGINFO_T
5 kx HAVE_SIGSET_T
5 kx HAVE_RAISE
5 kx HAVE_PTHREAD_SIGMASK
5 kx HAVE_POSIX_SIGNALBLOCKING
5 kx GNULIB_SIGACTION
5 kx GNULIB_SIGPROCMASK
5 kx GNULIB_SIGNAL_H_SIGPIPE
5 kx GNULIB_RAISE
5 kx GNULIB_PTHREAD_SIGMASK
5 kx LIB_PTHREAD
5 kx HAVE_PTHREAD_H
5 kx NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H
5 kx NEXT_PTHREAD_H
5 kx LIB_SCHED_YIELD
5 kx LIBPMULTITHREAD
5 kx LIBPTHREAD
5 kx REPLACE_PTHREAD_SPIN_DESTROY
5 kx REPLACE_PTHREAD_SPIN_UNLOCK
5 kx REPLACE_PTHREAD_SPIN_TRYLOCK
5 kx REPLACE_PTHREAD_SPIN_LOCK
5 kx REPLACE_PTHREAD_SPIN_INIT
5 kx REPLACE_PTHREAD_KEY_DELETE
5 kx REPLACE_PTHREAD_GETSPECIFIC
5 kx REPLACE_PTHREAD_SETSPECIFIC
5 kx REPLACE_PTHREAD_KEY_CREATE
5 kx REPLACE_PTHREAD_COND_DESTROY
5 kx REPLACE_PTHREAD_COND_BROADCAST
5 kx REPLACE_PTHREAD_COND_SIGNAL
5 kx REPLACE_PTHREAD_COND_TIMEDWAIT
5 kx REPLACE_PTHREAD_COND_WAIT
5 kx REPLACE_PTHREAD_CONDATTR_DESTROY
5 kx REPLACE_PTHREAD_CONDATTR_INIT
5 kx REPLACE_PTHREAD_COND_INIT
5 kx REPLACE_PTHREAD_RWLOCK_DESTROY
5 kx REPLACE_PTHREAD_RWLOCK_UNLOCK
5 kx REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK
5 kx REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK
5 kx REPLACE_PTHREAD_RWLOCK_TRYWRLOCK
5 kx REPLACE_PTHREAD_RWLOCK_TRYRDLOCK
5 kx REPLACE_PTHREAD_RWLOCK_WRLOCK
5 kx REPLACE_PTHREAD_RWLOCK_RDLOCK
5 kx REPLACE_PTHREAD_RWLOCKATTR_DESTROY
5 kx REPLACE_PTHREAD_RWLOCKATTR_INIT
5 kx REPLACE_PTHREAD_RWLOCK_INIT
5 kx REPLACE_PTHREAD_MUTEX_DESTROY
5 kx REPLACE_PTHREAD_MUTEX_UNLOCK
5 kx REPLACE_PTHREAD_MUTEX_TIMEDLOCK
5 kx REPLACE_PTHREAD_MUTEX_TRYLOCK
5 kx REPLACE_PTHREAD_MUTEX_LOCK
5 kx REPLACE_PTHREAD_MUTEXATTR_DESTROY
5 kx REPLACE_PTHREAD_MUTEXATTR_SETROBUST
5 kx REPLACE_PTHREAD_MUTEXATTR_GETROBUST
5 kx REPLACE_PTHREAD_MUTEXATTR_SETTYPE
5 kx REPLACE_PTHREAD_MUTEXATTR_GETTYPE
5 kx REPLACE_PTHREAD_MUTEXATTR_INIT
5 kx REPLACE_PTHREAD_MUTEX_INIT
5 kx REPLACE_PTHREAD_ONCE
5 kx REPLACE_PTHREAD_EXIT
5 kx REPLACE_PTHREAD_JOIN
5 kx REPLACE_PTHREAD_DETACH
5 kx REPLACE_PTHREAD_EQUAL
5 kx REPLACE_PTHREAD_SELF
5 kx REPLACE_PTHREAD_ATTR_DESTROY
5 kx REPLACE_PTHREAD_ATTR_SETDETACHSTATE
5 kx REPLACE_PTHREAD_ATTR_GETDETACHSTATE
5 kx REPLACE_PTHREAD_ATTR_INIT
5 kx REPLACE_PTHREAD_CREATE
5 kx HAVE_PTHREAD_SPIN_DESTROY
5 kx HAVE_PTHREAD_SPIN_UNLOCK
5 kx HAVE_PTHREAD_SPIN_TRYLOCK
5 kx HAVE_PTHREAD_SPIN_LOCK
5 kx HAVE_PTHREAD_SPIN_INIT
5 kx HAVE_PTHREAD_KEY_DELETE
5 kx HAVE_PTHREAD_GETSPECIFIC
5 kx HAVE_PTHREAD_SETSPECIFIC
5 kx HAVE_PTHREAD_KEY_CREATE
5 kx HAVE_PTHREAD_COND_DESTROY
5 kx HAVE_PTHREAD_COND_BROADCAST
5 kx HAVE_PTHREAD_COND_SIGNAL
5 kx HAVE_PTHREAD_COND_TIMEDWAIT
5 kx HAVE_PTHREAD_COND_WAIT
5 kx HAVE_PTHREAD_CONDATTR_DESTROY
5 kx HAVE_PTHREAD_CONDATTR_INIT
5 kx HAVE_PTHREAD_COND_INIT
5 kx HAVE_PTHREAD_RWLOCK_DESTROY
5 kx HAVE_PTHREAD_RWLOCK_UNLOCK
5 kx HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK
5 kx HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK
5 kx HAVE_PTHREAD_RWLOCK_TRYWRLOCK
5 kx HAVE_PTHREAD_RWLOCK_TRYRDLOCK
5 kx HAVE_PTHREAD_RWLOCK_WRLOCK
5 kx HAVE_PTHREAD_RWLOCK_RDLOCK
5 kx HAVE_PTHREAD_RWLOCKATTR_DESTROY
5 kx HAVE_PTHREAD_RWLOCKATTR_INIT
5 kx HAVE_PTHREAD_RWLOCK_INIT
5 kx HAVE_PTHREAD_MUTEX_DESTROY
5 kx HAVE_PTHREAD_MUTEX_UNLOCK
5 kx HAVE_PTHREAD_MUTEX_TIMEDLOCK
5 kx HAVE_PTHREAD_MUTEX_TRYLOCK
5 kx HAVE_PTHREAD_MUTEX_LOCK
5 kx HAVE_PTHREAD_MUTEXATTR_DESTROY
5 kx HAVE_PTHREAD_MUTEXATTR_SETROBUST
5 kx HAVE_PTHREAD_MUTEXATTR_GETROBUST
5 kx HAVE_PTHREAD_MUTEXATTR_SETTYPE
5 kx HAVE_PTHREAD_MUTEXATTR_GETTYPE
5 kx HAVE_PTHREAD_MUTEXATTR_INIT
5 kx HAVE_PTHREAD_MUTEX_INIT
5 kx HAVE_PTHREAD_ONCE
5 kx HAVE_PTHREAD_EXIT
5 kx HAVE_PTHREAD_JOIN
5 kx HAVE_PTHREAD_DETACH
5 kx HAVE_PTHREAD_EQUAL
5 kx HAVE_PTHREAD_SELF
5 kx HAVE_PTHREAD_ATTR_DESTROY
5 kx HAVE_PTHREAD_ATTR_SETDETACHSTATE
5 kx HAVE_PTHREAD_ATTR_GETDETACHSTATE
5 kx HAVE_PTHREAD_ATTR_INIT
5 kx HAVE_PTHREAD_CREATE
5 kx HAVE_PTHREAD_PROCESS_SHARED
5 kx HAVE_PTHREAD_MUTEX_ROBUST
5 kx HAVE_PTHREAD_MUTEX_RECURSIVE
5 kx HAVE_PTHREAD_CREATE_DETACHED
5 kx HAVE_PTHREAD_SPINLOCK_T
5 kx HAVE_PTHREAD_T
5 kx GNULIB_PTHREAD_MUTEX_TIMEDLOCK
5 kx GNULIB_PTHREAD_SPIN
5 kx GNULIB_PTHREAD_TSS
5 kx GNULIB_PTHREAD_COND
5 kx GNULIB_PTHREAD_RWLOCK
5 kx GNULIB_PTHREAD_MUTEX
5 kx GNULIB_PTHREAD_ONCE
5 kx GNULIB_PTHREAD_THREAD
5 kx GL_GENERATE_NETINET_IN_H_FALSE
5 kx GL_GENERATE_NETINET_IN_H_TRUE
5 kx NETINET_IN_H
5 kx HAVE_NETINET_IN_H
5 kx NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
5 kx NEXT_NETINET_IN_H
5 kx LIB_NANOSLEEP
5 kx LIB_SELECT
5 kx LIBSOCKET
5 kx HAVE_SYS_SELECT_H
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
5 kx NEXT_SYS_SELECT_H
5 kx REPLACE_SELECT
5 kx REPLACE_PSELECT
5 kx HAVE_PSELECT
5 kx GNULIB_SELECT
5 kx GNULIB_PSELECT
5 kx REPLACE_WCTOMB
5 kx REPLACE_UNSETENV
5 kx REPLACE_STRTOLD
5 kx REPLACE_STRTOD
5 kx REPLACE_SETSTATE
5 kx REPLACE_SETENV
5 kx REPLACE_REALPATH
5 kx REPLACE_REALLOC
5 kx REPLACE_RANDOM_R
5 kx REPLACE_RANDOM
5 kx REPLACE_QSORT_R
5 kx REPLACE_PUTENV
5 kx REPLACE_PTSNAME_R
5 kx REPLACE_PTSNAME
5 kx REPLACE_MKSTEMP
5 kx REPLACE_MBTOWC
5 kx REPLACE_MALLOC
5 kx REPLACE_INITSTATE
5 kx REPLACE_CANONICALIZE_FILE_NAME
5 kx REPLACE_CALLOC
5 kx HAVE_DECL_UNSETENV
5 kx HAVE_UNLOCKPT
5 kx HAVE_SYS_LOADAVG_H
5 kx HAVE_STRUCT_RANDOM_DATA
5 kx HAVE_STRTOULL
5 kx HAVE_STRTOLL
5 kx HAVE_STRTOLD
5 kx HAVE_STRTOD
5 kx HAVE_DECL_SETSTATE
5 kx HAVE_SETSTATE
5 kx HAVE_DECL_SETENV
5 kx HAVE_SETENV
5 kx HAVE_SECURE_GETENV
5 kx HAVE_RPMATCH
5 kx HAVE_REALPATH
5 kx HAVE_REALLOCARRAY
5 kx HAVE_RANDOM_R
5 kx HAVE_RANDOM_H
5 kx HAVE_RANDOM
5 kx HAVE_QSORT_R
5 kx HAVE_PTSNAME_R
5 kx HAVE_PTSNAME
5 kx HAVE_POSIX_OPENPT
5 kx HAVE_MKSTEMPS
5 kx HAVE_MKSTEMP
5 kx HAVE_MKOSTEMPS
5 kx HAVE_MKOSTEMP
5 kx HAVE_MKDTEMP
5 kx HAVE_MBTOWC
5 kx HAVE_DECL_INITSTATE
5 kx HAVE_INITSTATE
5 kx HAVE_GRANTPT
5 kx HAVE_GETSUBOPT
5 kx HAVE_DECL_GETLOADAVG
5 kx HAVE_CANONICALIZE_FILE_NAME
5 kx HAVE_ATOLL
5 kx HAVE__EXIT
5 kx GNULIB_WCTOMB
5 kx GNULIB_UNSETENV
5 kx GNULIB_UNLOCKPT
5 kx GNULIB_SYSTEM_POSIX
5 kx GNULIB_STRTOULL
5 kx GNULIB_STRTOLL
5 kx GNULIB_STRTOLD
5 kx GNULIB_STRTOD
5 kx GNULIB_SETENV
5 kx GNULIB_SECURE_GETENV
5 kx GNULIB_RPMATCH
5 kx GNULIB_REALPATH
5 kx GNULIB_REALLOC_POSIX
5 kx GNULIB_REALLOCARRAY
5 kx GNULIB_RANDOM_R
5 kx GNULIB_RANDOM
5 kx GNULIB_QSORT_R
5 kx GNULIB_PUTENV
5 kx GNULIB_PTSNAME_R
5 kx GNULIB_PTSNAME
5 kx GNULIB_POSIX_OPENPT
5 kx GNULIB_MKSTEMPS
5 kx GNULIB_MKSTEMP
5 kx GNULIB_MKOSTEMPS
5 kx GNULIB_MKOSTEMP
5 kx GNULIB_MKDTEMP
5 kx GNULIB_MBTOWC
5 kx GNULIB_MALLOC_POSIX
5 kx GNULIB_GRANTPT
5 kx GNULIB_GETSUBOPT
5 kx GNULIB_GETLOADAVG
5 kx GNULIB_CANONICALIZE_FILE_NAME
5 kx GNULIB_CALLOC_POSIX
5 kx GNULIB_ATOLL
5 kx GNULIB__EXIT
5 kx LIB_SEMAPHORE
5 kx LTLIBMULTITHREAD
5 kx LIBMULTITHREAD
5 kx LTLIBTHREAD
5 kx LIBTHREAD
5 kx LIBPTH_PREFIX
5 kx LTLIBPTH
5 kx LIBPTH
5 kx NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
5 kx NEXT_INTTYPES_H
5 kx UINT64_MAX_EQ_ULONG_MAX
5 kx UINT32_MAX_LT_UINTMAX_MAX
5 kx PRIPTR_PREFIX
5 kx PRI_MACROS_BROKEN
5 kx INT64_MAX_EQ_LONG_MAX
5 kx INT32_MAX_LT_INTMAX_MAX
5 kx REPLACE_STRTOUMAX
5 kx REPLACE_STRTOIMAX
5 kx HAVE_IMAXDIV_T
5 kx HAVE_DECL_STRTOUMAX
5 kx HAVE_DECL_STRTOIMAX
5 kx HAVE_DECL_IMAXDIV
5 kx HAVE_DECL_IMAXABS
5 kx GNULIB_STRTOUMAX
5 kx GNULIB_STRTOIMAX
5 kx GNULIB_IMAXDIV
5 kx GNULIB_IMAXABS
5 kx INET_PTON_LIB
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
5 kx NEXT_SYS_TIME_H
5 kx REPLACE_STRUCT_TIMEVAL
5 kx REPLACE_GETTIMEOFDAY
5 kx HAVE_SYS_TIME_H
5 kx HAVE_STRUCT_TIMEVAL
5 kx HAVE_GETTIMEOFDAY
5 kx NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
5 kx NEXT_CTYPE_H
5 kx HAVE_ISBLANK
5 kx GNULIB_ISBLANK
5 kx HAVE_FEATURES_H
5 kx NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
5 kx NEXT_ARPA_INET_H
5 kx HAVE_ARPA_INET_H
5 kx REPLACE_INET_PTON
5 kx REPLACE_INET_NTOP
5 kx HAVE_DECL_INET_PTON
5 kx HAVE_DECL_INET_NTOP
5 kx GNULIB_INET_PTON
5 kx GNULIB_INET_NTOP
5 kx HAVE_WS2TCPIP_H
5 kx HAVE_SYS_SOCKET_H
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
5 kx NEXT_SYS_SOCKET_H
5 kx HAVE_ACCEPT4
5 kx HAVE_SA_FAMILY_T
5 kx HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
5 kx HAVE_STRUCT_SOCKADDR_STORAGE
5 kx GNULIB_ACCEPT4
5 kx GNULIB_SHUTDOWN
5 kx GNULIB_SETSOCKOPT
5 kx GNULIB_SENDTO
5 kx GNULIB_RECVFROM
5 kx GNULIB_SEND
5 kx GNULIB_RECV
5 kx GNULIB_LISTEN
5 kx GNULIB_GETSOCKOPT
5 kx GNULIB_GETSOCKNAME
5 kx GNULIB_GETPEERNAME
5 kx GNULIB_BIND
5 kx GNULIB_ACCEPT
5 kx GNULIB_CONNECT
5 kx GNULIB_SOCKET
5 kx gltests_WITNESS
5 kx VALGRIND
5 kx HAVE_UNISTD_H
5 kx NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
5 kx NEXT_UNISTD_H
5 kx UNISTD_H_DEFINES_STRUCT_TIMESPEC
5 kx PTHREAD_H_DEFINES_STRUCT_TIMESPEC
5 kx SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
5 kx TIME_H_DEFINES_STRUCT_TIMESPEC
5 kx NEXT_AS_FIRST_DIRECTIVE_TIME_H
5 kx NEXT_TIME_H
5 kx REPLACE_LOCALTIME
5 kx REPLACE_GMTIME
5 kx GNULIB_GETTIMEOFDAY
5 kx REPLACE_TZSET
5 kx REPLACE_TIMEGM
5 kx REPLACE_STRFTIME
5 kx REPLACE_NANOSLEEP
5 kx REPLACE_MKTIME
5 kx REPLACE_LOCALTIME_R
5 kx REPLACE_CTIME
5 kx HAVE_TIMEZONE_T
5 kx HAVE_TZSET
5 kx HAVE_TIMEGM
5 kx HAVE_STRPTIME
5 kx HAVE_NANOSLEEP
5 kx HAVE_DECL_LOCALTIME_R
5 kx GNULIB_TZSET
5 kx GNULIB_TIME_RZ
5 kx GNULIB_TIME_R
5 kx GNULIB_TIMEGM
5 kx GNULIB_STRPTIME
5 kx GNULIB_STRFTIME
5 kx GNULIB_NANOSLEEP
5 kx GNULIB_LOCALTIME
5 kx GNULIB_MKTIME
5 kx GNULIB_CTIME
5 kx WINDOWS_STAT_INODES
5 kx WINDOWS_64_BIT_OFF_T
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
5 kx NEXT_SYS_TYPES_H
5 kx NEXT_AS_FIRST_DIRECTIVE_STRING_H
5 kx NEXT_STRING_H
5 kx UNDEFINE_STRTOK_R
5 kx REPLACE_STRSIGNAL
5 kx REPLACE_STRERROR_R
5 kx REPLACE_STRERROR
5 kx REPLACE_STRTOK_R
5 kx REPLACE_STRCASESTR
5 kx REPLACE_STRSTR
5 kx REPLACE_STRNLEN
5 kx REPLACE_STRNDUP
5 kx REPLACE_STRNCAT
5 kx REPLACE_STRDUP
5 kx REPLACE_STRCHRNUL
5 kx REPLACE_STPNCPY
5 kx REPLACE_MEMMEM
5 kx REPLACE_MEMCHR
5 kx HAVE_STRVERSCMP
5 kx HAVE_DECL_STRSIGNAL
5 kx HAVE_DECL_STRERROR_R
5 kx HAVE_DECL_STRTOK_R
5 kx HAVE_STRCASESTR
5 kx HAVE_STRSEP
5 kx HAVE_STRPBRK
5 kx HAVE_DECL_STRNLEN
5 kx HAVE_DECL_STRNDUP
5 kx HAVE_DECL_STRDUP
5 kx HAVE_STRCHRNUL
5 kx HAVE_STPNCPY
5 kx HAVE_STPCPY
5 kx HAVE_RAWMEMCHR
5 kx HAVE_DECL_MEMRCHR
5 kx HAVE_MEMPCPY
5 kx HAVE_DECL_MEMMEM
5 kx HAVE_FFSLL
5 kx HAVE_FFSL
5 kx HAVE_EXPLICIT_BZERO
5 kx HAVE_MBSLEN
5 kx GNULIB_STRVERSCMP
5 kx GNULIB_STRSIGNAL
5 kx GNULIB_STRERROR_R
5 kx GNULIB_STRERROR
5 kx GNULIB_MBSTOK_R
5 kx GNULIB_MBSSEP
5 kx GNULIB_MBSSPN
5 kx GNULIB_MBSPBRK
5 kx GNULIB_MBSCSPN
5 kx GNULIB_MBSCASESTR
5 kx GNULIB_MBSPCASECMP
5 kx GNULIB_MBSNCASECMP
5 kx GNULIB_MBSCASECMP
5 kx GNULIB_MBSSTR
5 kx GNULIB_MBSRCHR
5 kx GNULIB_MBSCHR
5 kx GNULIB_MBSNLEN
5 kx GNULIB_MBSLEN
5 kx GNULIB_STRTOK_R
5 kx GNULIB_STRCASESTR
5 kx GNULIB_STRSTR
5 kx GNULIB_STRSEP
5 kx GNULIB_STRPBRK
5 kx GNULIB_STRNLEN
5 kx GNULIB_STRNDUP
5 kx GNULIB_STRNCAT
5 kx GNULIB_STRDUP
5 kx GNULIB_STRCHRNUL
5 kx GNULIB_STPNCPY
5 kx GNULIB_STPCPY
5 kx GNULIB_RAWMEMCHR
5 kx GNULIB_MEMRCHR
5 kx GNULIB_MEMPCPY
5 kx GNULIB_MEMMEM
5 kx GNULIB_MEMCHR
5 kx GNULIB_FFSLL
5 kx GNULIB_FFSL
5 kx GNULIB_EXPLICIT_BZERO
5 kx NEXT_AS_FIRST_DIRECTIVE_STDIO_H
5 kx NEXT_STDIO_H
5 kx GL_GENERATE_STDINT_H_FALSE
5 kx GL_GENERATE_STDINT_H_TRUE
5 kx STDINT_H
5 kx HAVE_SYS_INTTYPES_H
5 kx HAVE_SYS_BITYPES_H
5 kx HAVE_C99_STDINT_H
5 kx WINT_T_SUFFIX
5 kx WCHAR_T_SUFFIX
5 kx SIG_ATOMIC_T_SUFFIX
5 kx SIZE_T_SUFFIX
5 kx PTRDIFF_T_SUFFIX
5 kx HAVE_SIGNED_WINT_T
5 kx HAVE_SIGNED_WCHAR_T
5 kx HAVE_SIGNED_SIG_ATOMIC_T
5 kx BITSIZEOF_WINT_T
5 kx BITSIZEOF_WCHAR_T
5 kx BITSIZEOF_SIG_ATOMIC_T
5 kx BITSIZEOF_SIZE_T
5 kx BITSIZEOF_PTRDIFF_T
5 kx HAVE_STDINT_H
5 kx NEXT_AS_FIRST_DIRECTIVE_STDINT_H
5 kx NEXT_STDINT_H
5 kx HAVE_SYS_TYPES_H
5 kx HAVE_INTTYPES_H
5 kx HAVE_WCHAR_H
5 kx GNULIB_OVERRIDES_WINT_T
5 kx NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
5 kx NEXT_STDDEF_H
5 kx GL_GENERATE_STDDEF_H_FALSE
5 kx GL_GENERATE_STDDEF_H_TRUE
5 kx STDDEF_H
5 kx HAVE_WCHAR_T
5 kx HAVE_MAX_ALIGN_T
5 kx REPLACE_NULL
5 kx HAVE__BOOL
5 kx GL_GENERATE_STDBOOL_H_FALSE
5 kx GL_GENERATE_STDBOOL_H_TRUE
5 kx STDBOOL_H
5 kx GL_GENERATE_STDARG_H_FALSE
5 kx GL_GENERATE_STDARG_H_TRUE
5 kx STDARG_H
5 kx NEXT_AS_FIRST_DIRECTIVE_STDARG_H
5 kx NEXT_STDARG_H
5 kx PMCCABE
5 kx APPLE_UNIVERSAL_BUILD
5 kx GL_GENERATE_LIMITS_H_FALSE
5 kx GL_GENERATE_LIMITS_H_TRUE
5 kx LIMITS_H
5 kx NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
5 kx NEXT_LIMITS_H
5 kx GNULIB_GL_UNISTD_H_GETOPT
5 kx GETOPT_CDEFS_H
5 kx GETOPT_H
5 kx HAVE_SYS_CDEFS_H
5 kx HAVE_GETOPT_H
5 kx NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
5 kx NEXT_GETOPT_H
5 kx REPLACE_VSPRINTF
5 kx REPLACE_VSNPRINTF
5 kx REPLACE_VPRINTF
5 kx REPLACE_VFPRINTF
5 kx REPLACE_VDPRINTF
5 kx REPLACE_VASPRINTF
5 kx REPLACE_TMPFILE
5 kx REPLACE_STDIO_WRITE_FUNCS
5 kx REPLACE_STDIO_READ_FUNCS
5 kx REPLACE_SPRINTF
5 kx REPLACE_SNPRINTF
5 kx REPLACE_RENAMEAT
5 kx REPLACE_RENAME
5 kx REPLACE_REMOVE
5 kx REPLACE_PRINTF
5 kx REPLACE_POPEN
5 kx REPLACE_PERROR
5 kx REPLACE_OBSTACK_PRINTF
5 kx REPLACE_GETLINE
5 kx REPLACE_GETDELIM
5 kx REPLACE_FTELLO
5 kx REPLACE_FTELL
5 kx REPLACE_FSEEKO
5 kx REPLACE_FSEEK
5 kx REPLACE_FREOPEN
5 kx REPLACE_FPURGE
5 kx REPLACE_FPRINTF
5 kx REPLACE_FOPEN
5 kx REPLACE_FFLUSH
5 kx REPLACE_FDOPEN
5 kx REPLACE_FCLOSE
5 kx REPLACE_DPRINTF
5 kx HAVE_VDPRINTF
5 kx HAVE_VASPRINTF
5 kx HAVE_RENAMEAT
5 kx HAVE_POPEN
5 kx HAVE_PCLOSE
5 kx HAVE_FTELLO
5 kx HAVE_FSEEKO
5 kx HAVE_DPRINTF
5 kx HAVE_DECL_VSNPRINTF
5 kx HAVE_DECL_SNPRINTF
5 kx HAVE_DECL_OBSTACK_PRINTF
5 kx HAVE_DECL_GETLINE
5 kx HAVE_DECL_GETDELIM
5 kx HAVE_DECL_FTELLO
5 kx HAVE_DECL_FSEEKO
5 kx HAVE_DECL_FPURGE
5 kx GNULIB_VSPRINTF_POSIX
5 kx GNULIB_VSNPRINTF
5 kx GNULIB_VPRINTF_POSIX
5 kx GNULIB_VPRINTF
5 kx GNULIB_VFPRINTF_POSIX
5 kx GNULIB_VFPRINTF
5 kx GNULIB_VDPRINTF
5 kx GNULIB_VSCANF
5 kx GNULIB_VFSCANF
5 kx GNULIB_VASPRINTF
5 kx GNULIB_TMPFILE
5 kx GNULIB_STDIO_H_SIGPIPE
5 kx GNULIB_STDIO_H_NONBLOCKING
5 kx GNULIB_SPRINTF_POSIX
5 kx GNULIB_SNPRINTF
5 kx GNULIB_SCANF
5 kx GNULIB_RENAMEAT
5 kx GNULIB_RENAME
5 kx GNULIB_REMOVE
5 kx GNULIB_PUTS
5 kx GNULIB_PUTCHAR
5 kx GNULIB_PUTC
5 kx GNULIB_PRINTF_POSIX
5 kx GNULIB_PRINTF
5 kx GNULIB_POPEN
5 kx GNULIB_PERROR
5 kx GNULIB_PCLOSE
5 kx GNULIB_OBSTACK_PRINTF_POSIX
5 kx GNULIB_OBSTACK_PRINTF
5 kx GNULIB_GETLINE
5 kx GNULIB_GETDELIM
5 kx GNULIB_GETCHAR
5 kx GNULIB_GETC
5 kx GNULIB_FWRITE
5 kx GNULIB_FTELLO
5 kx GNULIB_FTELL
5 kx GNULIB_FSEEKO
5 kx GNULIB_FSEEK
5 kx GNULIB_FSCANF
5 kx GNULIB_FREOPEN
5 kx GNULIB_FREAD
5 kx GNULIB_FPUTS
5 kx GNULIB_FPUTC
5 kx GNULIB_FPURGE
5 kx GNULIB_FPRINTF_POSIX
5 kx GNULIB_FPRINTF
5 kx GNULIB_FOPEN
5 kx GNULIB_FGETS
5 kx GNULIB_FGETC
5 kx GNULIB_FFLUSH
5 kx GNULIB_FDOPEN
5 kx GNULIB_FCLOSE
5 kx GNULIB_DPRINTF
5 kx WINDOWS_64_BIT_ST_SIZE
5 kx WINDOWS_STAT_TIMESPEC
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
5 kx NEXT_SYS_STAT_H
5 kx REPLACE_UTIMENSAT
5 kx REPLACE_STAT
5 kx REPLACE_MKNOD
5 kx REPLACE_MKFIFO
5 kx REPLACE_MKDIR
5 kx REPLACE_LSTAT
5 kx REPLACE_FUTIMENS
5 kx REPLACE_FSTATAT
5 kx REPLACE_FSTAT
5 kx REPLACE_FCHMODAT
5 kx HAVE_UTIMENSAT
5 kx HAVE_MKNODAT
5 kx HAVE_MKNOD
5 kx HAVE_MKFIFOAT
5 kx HAVE_MKFIFO
5 kx HAVE_MKDIRAT
5 kx HAVE_LSTAT
5 kx HAVE_LCHMOD
5 kx HAVE_GETUMASK
5 kx HAVE_FUTIMENS
5 kx HAVE_FSTATAT
5 kx HAVE_FCHMODAT
5 kx GNULIB_OVERRIDES_STRUCT_STAT
5 kx GNULIB_UTIMENSAT
5 kx GNULIB_STAT
5 kx GNULIB_MKNODAT
5 kx GNULIB_MKNOD
5 kx GNULIB_MKFIFOAT
5 kx GNULIB_MKFIFO
5 kx GNULIB_MKDIRAT
5 kx GNULIB_LSTAT
5 kx GNULIB_LCHMOD
5 kx GNULIB_GETUMASK
5 kx GNULIB_FUTIMENS
5 kx GNULIB_FSTATAT
5 kx GNULIB_FSTAT
5 kx GNULIB_FCHMODAT
5 kx NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
5 kx NEXT_FCNTL_H
5 kx REPLACE_OPENAT
5 kx REPLACE_OPEN
5 kx REPLACE_FCNTL
5 kx REPLACE_CREAT
5 kx HAVE_OPENAT
5 kx HAVE_FCNTL
5 kx GNULIB_OPENAT
5 kx GNULIB_OPEN
5 kx GNULIB_NONBLOCKING
5 kx GNULIB_FCNTL
5 kx GNULIB_CREAT
5 kx EOVERFLOW_VALUE
5 kx EOVERFLOW_HIDDEN
5 kx ENOLINK_VALUE
5 kx ENOLINK_HIDDEN
5 kx EMULTIHOP_VALUE
5 kx EMULTIHOP_HIDDEN
5 kx GL_GENERATE_ERRNO_H_FALSE
5 kx GL_GENERATE_ERRNO_H_TRUE
5 kx ERRNO_H
5 kx NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
5 kx NEXT_ERRNO_H
5 kx PRAGMA_COLUMNS
5 kx PRAGMA_SYSTEM_HEADER
5 kx INCLUDE_NEXT_AS_FIRST_DIRECTIVE
5 kx INCLUDE_NEXT
5 kx CSHARPCOMPFLAGS
5 kx HAVE_CSC
5 kx HAVE_MCS
5 kx HAVE_CSC_IN_PATH
5 kx HAVE_MCS_IN_PATH
5 kx CSHARP_CHOICE
5 kx HAVE_WINSOCK2_H
5 kx REPLACE_IOCTL
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H
5 kx GNULIB_IOCTL
5 kx HAVE_MSVC_INVALID_PARAMETER_HANDLER
5 kx UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
5 kx UNISTD_H_HAVE_WINSOCK2_H
5 kx UNISTD_H_HAVE_SYS_RANDOM_H
5 kx REPLACE_WRITE
5 kx REPLACE_USLEEP
5 kx REPLACE_UNLINKAT
5 kx REPLACE_UNLINK
5 kx REPLACE_TTYNAME_R
5 kx REPLACE_TRUNCATE
5 kx REPLACE_SYMLINKAT
5 kx REPLACE_SYMLINK
5 kx REPLACE_SLEEP
5 kx REPLACE_RMDIR
5 kx REPLACE_READLINKAT
5 kx REPLACE_READLINK
5 kx REPLACE_READ
5 kx REPLACE_PWRITE
5 kx REPLACE_PREAD
5 kx REPLACE_LSEEK
5 kx REPLACE_LINKAT
5 kx REPLACE_LINK
5 kx REPLACE_LCHOWN
5 kx REPLACE_ISATTY
5 kx REPLACE_GETPASS
5 kx REPLACE_GETPAGESIZE
5 kx REPLACE_GETGROUPS
5 kx REPLACE_GETLOGIN_R
5 kx REPLACE_GETDTABLESIZE
5 kx REPLACE_GETDOMAINNAME
5 kx REPLACE_GETCWD
5 kx REPLACE_FTRUNCATE
5 kx REPLACE_FCHOWNAT
5 kx REPLACE_FACCESSAT
5 kx REPLACE_DUP2
5 kx REPLACE_DUP
5 kx REPLACE_CLOSE
5 kx REPLACE_CHOWN
5 kx REPLACE_ACCESS
5 kx HAVE_SYS_PARAM_H
5 kx HAVE_OS_H
5 kx HAVE_DECL_TTYNAME_R
5 kx HAVE_DECL_TRUNCATE
5 kx HAVE_DECL_SETHOSTNAME
5 kx HAVE_DECL_GETUSERSHELL
5 kx HAVE_DECL_GETPAGESIZE
5 kx HAVE_DECL_GETLOGIN_R
5 kx HAVE_DECL_GETLOGIN
5 kx HAVE_DECL_GETDOMAINNAME
5 kx HAVE_DECL_FDATASYNC
5 kx HAVE_DECL_FCHDIR
5 kx HAVE_DECL_ENVIRON
5 kx HAVE_USLEEP
5 kx HAVE_UNLINKAT
5 kx HAVE_SYMLINKAT
5 kx HAVE_SYMLINK
5 kx HAVE_SLEEP
5 kx HAVE_SETHOSTNAME
5 kx HAVE_READLINKAT
5 kx HAVE_READLINK
5 kx HAVE_PWRITE
5 kx HAVE_PREAD
5 kx HAVE_PIPE2
5 kx HAVE_PIPE
5 kx HAVE_LINKAT
5 kx HAVE_LINK
5 kx HAVE_LCHOWN
5 kx HAVE_GROUP_MEMBER
5 kx HAVE_GETPASS
5 kx HAVE_GETPAGESIZE
5 kx HAVE_GETLOGIN
5 kx HAVE_GETHOSTNAME
5 kx HAVE_GETGROUPS
5 kx HAVE_GETENTROPY
5 kx HAVE_GETDTABLESIZE
5 kx HAVE_FTRUNCATE
5 kx HAVE_FSYNC
5 kx HAVE_FDATASYNC
5 kx HAVE_FCHOWNAT
5 kx HAVE_FCHDIR
5 kx HAVE_FACCESSAT
5 kx HAVE_EUIDACCESS
5 kx HAVE_DUP3
5 kx HAVE_COPY_FILE_RANGE
5 kx HAVE_CHOWN
5 kx GNULIB_WRITE
5 kx GNULIB_USLEEP
5 kx GNULIB_UNLINKAT
5 kx GNULIB_UNLINK
5 kx GNULIB_UNISTD_H_SIGPIPE
5 kx GNULIB_UNISTD_H_NONBLOCKING
5 kx GNULIB_TTYNAME_R
5 kx GNULIB_TRUNCATE
5 kx GNULIB_SYMLINKAT
5 kx GNULIB_SYMLINK
5 kx GNULIB_SLEEP
5 kx GNULIB_SETHOSTNAME
5 kx GNULIB_RMDIR
5 kx GNULIB_READLINKAT
5 kx GNULIB_READLINK
5 kx GNULIB_READ
5 kx GNULIB_PWRITE
5 kx GNULIB_PREAD
5 kx GNULIB_PIPE2
5 kx GNULIB_PIPE
5 kx GNULIB_LSEEK
5 kx GNULIB_LINKAT
5 kx GNULIB_LINK
5 kx GNULIB_LCHOWN
5 kx GNULIB_ISATTY
5 kx GNULIB_GROUP_MEMBER
5 kx GNULIB_GETUSERSHELL
5 kx GNULIB_GETPASS
5 kx GNULIB_GETPAGESIZE
5 kx GNULIB_GETOPT_POSIX
5 kx GNULIB_GETLOGIN_R
5 kx GNULIB_GETLOGIN
5 kx GNULIB_GETHOSTNAME
5 kx GNULIB_GETGROUPS
5 kx GNULIB_GETENTROPY
5 kx GNULIB_GETDTABLESIZE
5 kx GNULIB_GETDOMAINNAME
5 kx GNULIB_GETCWD
5 kx GNULIB_FTRUNCATE
5 kx GNULIB_FSYNC
5 kx GNULIB_FDATASYNC
5 kx GNULIB_FCHOWNAT
5 kx GNULIB_FCHDIR
5 kx GNULIB_FACCESSAT
5 kx GNULIB_EUIDACCESS
5 kx GNULIB_ENVIRON
5 kx GNULIB_DUP3
5 kx GNULIB_DUP2
5 kx GNULIB_DUP
5 kx GNULIB_COPY_FILE_RANGE
5 kx GNULIB_CLOSE
5 kx GNULIB_CHOWN
5 kx GNULIB_CHDIR
5 kx GNULIB_ACCESS
5 kx HAVE_ALLOCA_H
5 kx GL_GENERATE_ALLOCA_H_FALSE
5 kx GL_GENERATE_ALLOCA_H_TRUE
5 kx ALLOCA_H
5 kx ALLOCA
5 kx GL_COND_LIBTOOL_FALSE
5 kx GL_COND_LIBTOOL_TRUE
5 kx lispdir
5 kx EMACSLOADPATH
5 kx EMACS
5 kx GL_GENERATE_ICONV_H_FALSE
5 kx GL_GENERATE_ICONV_H_TRUE
5 kx ICONV_H
5 kx REPLACE_ICONV_UTF
5 kx REPLACE_ICONV_OPEN
5 kx REPLACE_ICONV
5 kx ICONV_CONST
5 kx GNULIB_ICONV
5 kx POSUB
5 kx LTLIBINTL
5 kx LIBINTL
5 kx INTLLIBS
5 kx LTLIBICONV
5 kx LIBICONV
5 kx INTL_MACOSX_LIBS
5 kx XGETTEXT_EXTRA_OPTIONS
5 kx MSGMERGE
5 kx XGETTEXT_015
5 kx XGETTEXT
5 kx GMSGFMT_015
5 kx MSGFMT_015
5 kx GMSGFMT
5 kx MSGFMT
5 kx GETTEXT_MACRO_VERSION
5 kx USE_NLS
5 kx HELP2MAN
5 kx PERL
5 kx LT_SYS_LIBRARY_PATH
5 kx OTOOL64
5 kx OTOOL
5 kx LIPO
5 kx NMEDIT
5 kx DSYMUTIL
5 kx MANIFEST_TOOL
5 kx LN_S
5 kx NM
5 kx ac_ct_DUMPBIN
5 kx DUMPBIN
5 kx LD
5 kx FGREP
5 kx SED
5 kx LIBTOOL
5 kx OBJDUMP
5 kx DLLTOOL
5 kx AS
5 kx DLL_VERSION
5 kx host_os
5 kx host_vendor
5 kx host_cpu
5 kx host
5 kx build_os
5 kx build_vendor
5 kx build_cpu
5 kx build
5 kx RANLIB
5 kx ARFLAGS
5 kx ac_ct_AR
5 kx AR
5 kx EGREP
5 kx GREP
5 kx CPP
5 kx am__fastdepCC_FALSE
5 kx am__fastdepCC_TRUE
5 kx CCDEPMODE
5 kx am__nodep
5 kx AMDEPBACKSLASH
5 kx AMDEP_FALSE
5 kx AMDEP_TRUE
5 kx am__include
5 kx DEPDIR
5 kx OBJEXT
5 kx EXEEXT
5 kx ac_ct_CC
5 kx CPPFLAGS
5 kx LDFLAGS
5 kx CFLAGS
5 kx CC
5 kx LT_AGE
5 kx LT_REVISION
5 kx LT_CURRENT
5 kx AM_BACKSLASH
5 kx AM_DEFAULT_VERBOSITY
5 kx AM_DEFAULT_V
5 kx AM_V
5 kx am__untar
5 kx am__tar
5 kx AMTAR
5 kx am__leading_dot
5 kx SET_MAKE
5 kx AWK
5 kx mkdir_p
5 kx MKDIR_P
5 kx INSTALL_STRIP_PROGRAM
5 kx STRIP
5 kx install_sh
5 kx MAKEINFO
5 kx AUTOHEADER
5 kx AUTOMAKE
5 kx AUTOCONF
5 kx ACLOCAL
5 kx VERSION
5 kx PACKAGE
5 kx CYGPATH_W
5 kx am__isrc
5 kx INSTALL_DATA
5 kx INSTALL_SCRIPT
5 kx INSTALL_PROGRAM
5 kx target_alias
5 kx host_alias
5 kx build_alias
5 kx LIBS
5 kx ECHO_T
5 kx ECHO_N
5 kx ECHO_C
5 kx DEFS
5 kx mandir
5 kx localedir
5 kx libdir
5 kx psdir
5 kx pdfdir
5 kx dvidir
5 kx htmldir
5 kx infodir
5 kx docdir
5 kx oldincludedir
5 kx includedir
5 kx runstatedir
5 kx localstatedir
5 kx sharedstatedir
5 kx sysconfdir
5 kx datadir
5 kx datarootdir
5 kx libexecdir
5 kx sbindir
5 kx bindir
5 kx program_transform_name
5 kx prefix
5 kx exec_prefix
5 kx PACKAGE_URL
5 kx PACKAGE_BUGREPORT
5 kx PACKAGE_STRING
5 kx PACKAGE_VERSION
5 kx PACKAGE_TARNAME
5 kx PACKAGE_NAME
5 kx PATH_SEPARATOR
5 kx SHELL
5 kx am__quote'
5 kx ac_subst_files=''
5 kx ac_user_opts='
5 kx enable_option_checking
5 kx enable_silent_rules
5 kx enable_dependency_tracking
5 kx enable_largefile
5 kx enable_threads
5 kx enable_shared
5 kx enable_static
5 kx with_pic
5 kx enable_fast_install
5 kx with_aix_soname
5 kx with_gnu_ld
5 kx with_sysroot
5 kx enable_libtool_lock
5 kx enable_nls
5 kx enable_rpath
5 kx with_libiconv_prefix
5 kx with_libintl_prefix
5 kx with_lispdir
5 kx enable_cross_guesses
5 kx enable_csharp
5 kx enable_valgrind_tests
5 kx with_packager
5 kx with_packager_version
5 kx with_packager_bug_reports
5 kx with_libpth_prefix
5 kx enable_ld_version_script
5 kx enable_tld
5 kx with_html_dir
5 kx enable_gtk_doc
5 kx enable_gtk_doc_html
5 kx enable_gtk_doc_pdf
5 kx enable_java
5 kx with_java_prefix
5 kx with_javac_flags
5 kx with_java_flags
5 kx enable_ubsan
5 kx enable_asan
5 kx enable_gcc_warnings
5 kx enable_doc
5 kx '
5 kx ac_precious_vars='build_alias
5 kx host_alias
5 kx target_alias
5 kx CC
5 kx CFLAGS
5 kx LDFLAGS
5 kx LIBS
5 kx CPPFLAGS
5 kx CPP
5 kx LT_SYS_LIBRARY_PATH
5 kx EMACS
5 kx EMACSLOADPATH
5 kx PKG_CONFIG
5 kx GTKDOC_DEPS_CFLAGS
5 kx GTKDOC_DEPS_LIBS'
5 kx
5 kx
5 kx # Initialize some variables set by options.
5 kx ac_init_help=
5 kx ac_init_version=false
5 kx ac_unrecognized_opts=
5 kx ac_unrecognized_sep=
5 kx # The variables have the same names as the options, with
5 kx # dashes changed to underlines.
5 kx cache_file=/dev/null
5 kx exec_prefix=NONE
5 kx no_create=
5 kx no_recursion=
5 kx prefix=NONE
5 kx program_prefix=NONE
5 kx program_suffix=NONE
5 kx program_transform_name=s,x,x,
5 kx silent=
5 kx site=
5 kx srcdir=
5 kx verbose=
5 kx x_includes=NONE
5 kx x_libraries=NONE
5 kx
5 kx # Installation directory options.
5 kx # These are left unexpanded so users can "make install exec_prefix=/foo"
5 kx # and all the variables that are supposed to be based on exec_prefix
5 kx # by default will actually change.
5 kx # Use braces instead of parens because sh, perl, etc. also accept them.
5 kx # (The list follows the same order as the GNU Coding Standards.)
5 kx bindir='${exec_prefix}/bin'
5 kx sbindir='${exec_prefix}/sbin'
5 kx libexecdir='${exec_prefix}/libexec'
5 kx datarootdir='${prefix}/share'
5 kx datadir='${datarootdir}'
5 kx sysconfdir='${prefix}/etc'
5 kx sharedstatedir='${prefix}/com'
5 kx localstatedir='${prefix}/var'
5 kx runstatedir='${localstatedir}/run'
5 kx includedir='${prefix}/include'
5 kx oldincludedir='/usr/include'
5 kx docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
5 kx infodir='${datarootdir}/info'
5 kx htmldir='${docdir}'
5 kx dvidir='${docdir}'
5 kx pdfdir='${docdir}'
5 kx psdir='${docdir}'
5 kx libdir='${exec_prefix}/lib'
5 kx localedir='${datarootdir}/locale'
5 kx mandir='${datarootdir}/man'
5 kx
5 kx ac_prev=
5 kx ac_dashdash=
5 kx for ac_option
5 kx do
5 kx # If the previous option needs an argument, assign it.
5 kx if test -n "$ac_prev"; then
5 kx eval $ac_prev=\$ac_option
5 kx ac_prev=
5 kx continue
5 kx fi
5 kx
5 kx case $ac_option in
5 kx *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
5 kx *=) ac_optarg= ;;
5 kx *) ac_optarg=yes ;;
5 kx esac
5 kx
5 kx # Accept the important Cygnus configure options, so we can diagnose typos.
5 kx
5 kx case $ac_dashdash$ac_option in
5 kx --)
5 kx ac_dashdash=yes ;;
5 kx
5 kx -bindir | --bindir | --bindi | --bind | --bin | --bi)
5 kx ac_prev=bindir ;;
5 kx -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5 kx bindir=$ac_optarg ;;
5 kx
5 kx -build | --build | --buil | --bui | --bu)
5 kx ac_prev=build_alias ;;
5 kx -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5 kx build_alias=$ac_optarg ;;
5 kx
5 kx -cache-file | --cache-file | --cache-fil | --cache-fi \
5 kx | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5 kx ac_prev=cache_file ;;
5 kx -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5 kx | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5 kx cache_file=$ac_optarg ;;
5 kx
5 kx --config-cache | -C)
5 kx cache_file=config.cache ;;
5 kx
5 kx -datadir | --datadir | --datadi | --datad)
5 kx ac_prev=datadir ;;
5 kx -datadir=* | --datadir=* | --datadi=* | --datad=*)
5 kx datadir=$ac_optarg ;;
5 kx
5 kx -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
5 kx | --dataroo | --dataro | --datar)
5 kx ac_prev=datarootdir ;;
5 kx -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
5 kx | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
5 kx datarootdir=$ac_optarg ;;
5 kx
5 kx -disable-* | --disable-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid feature name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "enable_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval enable_$ac_useropt=no ;;
5 kx
5 kx -docdir | --docdir | --docdi | --doc | --do)
5 kx ac_prev=docdir ;;
5 kx -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
5 kx docdir=$ac_optarg ;;
5 kx
5 kx -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
5 kx ac_prev=dvidir ;;
5 kx -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
5 kx dvidir=$ac_optarg ;;
5 kx
5 kx -enable-* | --enable-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid feature name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "enable_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval enable_$ac_useropt=\$ac_optarg ;;
5 kx
5 kx -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
5 kx | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
5 kx | --exec | --exe | --ex)
5 kx ac_prev=exec_prefix ;;
5 kx -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
5 kx | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
5 kx | --exec=* | --exe=* | --ex=*)
5 kx exec_prefix=$ac_optarg ;;
5 kx
5 kx -gas | --gas | --ga | --g)
5 kx # Obsolete; use --with-gas.
5 kx with_gas=yes ;;
5 kx
5 kx -help | --help | --hel | --he | -h)
5 kx ac_init_help=long ;;
5 kx -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
5 kx ac_init_help=recursive ;;
5 kx -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
5 kx ac_init_help=short ;;
5 kx
5 kx -host | --host | --hos | --ho)
5 kx ac_prev=host_alias ;;
5 kx -host=* | --host=* | --hos=* | --ho=*)
5 kx host_alias=$ac_optarg ;;
5 kx
5 kx -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
5 kx ac_prev=htmldir ;;
5 kx -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
5 kx | --ht=*)
5 kx htmldir=$ac_optarg ;;
5 kx
5 kx -includedir | --includedir | --includedi | --included | --include \
5 kx | --includ | --inclu | --incl | --inc)
5 kx ac_prev=includedir ;;
5 kx -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
5 kx | --includ=* | --inclu=* | --incl=* | --inc=*)
5 kx includedir=$ac_optarg ;;
5 kx
5 kx -infodir | --infodir | --infodi | --infod | --info | --inf)
5 kx ac_prev=infodir ;;
5 kx -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5 kx infodir=$ac_optarg ;;
5 kx
5 kx -libdir | --libdir | --libdi | --libd)
5 kx ac_prev=libdir ;;
5 kx -libdir=* | --libdir=* | --libdi=* | --libd=*)
5 kx libdir=$ac_optarg ;;
5 kx
5 kx -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
5 kx | --libexe | --libex | --libe)
5 kx ac_prev=libexecdir ;;
5 kx -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
5 kx | --libexe=* | --libex=* | --libe=*)
5 kx libexecdir=$ac_optarg ;;
5 kx
5 kx -localedir | --localedir | --localedi | --localed | --locale)
5 kx ac_prev=localedir ;;
5 kx -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
5 kx localedir=$ac_optarg ;;
5 kx
5 kx -localstatedir | --localstatedir | --localstatedi | --localstated \
5 kx | --localstate | --localstat | --localsta | --localst | --locals)
5 kx ac_prev=localstatedir ;;
5 kx -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5 kx | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5 kx localstatedir=$ac_optarg ;;
5 kx
5 kx -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
5 kx ac_prev=mandir ;;
5 kx -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5 kx mandir=$ac_optarg ;;
5 kx
5 kx -nfp | --nfp | --nf)
5 kx # Obsolete; use --without-fp.
5 kx with_fp=no ;;
5 kx
5 kx -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5 kx | --no-cr | --no-c | -n)
5 kx no_create=yes ;;
5 kx
5 kx -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5 kx | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
5 kx no_recursion=yes ;;
5 kx
5 kx -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
5 kx | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
5 kx | --oldin | --oldi | --old | --ol | --o)
5 kx ac_prev=oldincludedir ;;
5 kx -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
5 kx | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
5 kx | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5 kx oldincludedir=$ac_optarg ;;
5 kx
5 kx -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5 kx ac_prev=prefix ;;
5 kx -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5 kx prefix=$ac_optarg ;;
5 kx
5 kx -program-prefix | --program-prefix | --program-prefi | --program-pref \
5 kx | --program-pre | --program-pr | --program-p)
5 kx ac_prev=program_prefix ;;
5 kx -program-prefix=* | --program-prefix=* | --program-prefi=* \
5 kx | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5 kx program_prefix=$ac_optarg ;;
5 kx
5 kx -program-suffix | --program-suffix | --program-suffi | --program-suff \
5 kx | --program-suf | --program-su | --program-s)
5 kx ac_prev=program_suffix ;;
5 kx -program-suffix=* | --program-suffix=* | --program-suffi=* \
5 kx | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5 kx program_suffix=$ac_optarg ;;
5 kx
5 kx -program-transform-name | --program-transform-name \
5 kx | --program-transform-nam | --program-transform-na \
5 kx | --program-transform-n | --program-transform- \
5 kx | --program-transform | --program-transfor \
5 kx | --program-transfo | --program-transf \
5 kx | --program-trans | --program-tran \
5 kx | --progr-tra | --program-tr | --program-t)
5 kx ac_prev=program_transform_name ;;
5 kx -program-transform-name=* | --program-transform-name=* \
5 kx | --program-transform-nam=* | --program-transform-na=* \
5 kx | --program-transform-n=* | --program-transform-=* \
5 kx | --program-transform=* | --program-transfor=* \
5 kx | --program-transfo=* | --program-transf=* \
5 kx | --program-trans=* | --program-tran=* \
5 kx | --progr-tra=* | --program-tr=* | --program-t=*)
5 kx program_transform_name=$ac_optarg ;;
5 kx
5 kx -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
5 kx ac_prev=pdfdir ;;
5 kx -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
5 kx pdfdir=$ac_optarg ;;
5 kx
5 kx -psdir | --psdir | --psdi | --psd | --ps)
5 kx ac_prev=psdir ;;
5 kx -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
5 kx psdir=$ac_optarg ;;
5 kx
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil)
5 kx silent=yes ;;
5 kx
5 kx -runstatedir | --runstatedir | --runstatedi | --runstated \
5 kx | --runstate | --runstat | --runsta | --runst | --runs \
5 kx | --run | --ru | --r)
5 kx ac_prev=runstatedir ;;
5 kx -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
5 kx | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
5 kx | --run=* | --ru=* | --r=*)
5 kx runstatedir=$ac_optarg ;;
5 kx
5 kx -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
5 kx ac_prev=sbindir ;;
5 kx -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
5 kx | --sbi=* | --sb=*)
5 kx sbindir=$ac_optarg ;;
5 kx
5 kx -sharedstatedir | --sharedstatedir | --sharedstatedi \
5 kx | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5 kx | --sharedst | --shareds | --shared | --share | --shar \
5 kx | --sha | --sh)
5 kx ac_prev=sharedstatedir ;;
5 kx -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
5 kx | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5 kx | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5 kx | --sha=* | --sh=*)
5 kx sharedstatedir=$ac_optarg ;;
5 kx
5 kx -site | --site | --sit)
5 kx ac_prev=site ;;
5 kx -site=* | --site=* | --sit=*)
5 kx site=$ac_optarg ;;
5 kx
5 kx -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5 kx ac_prev=srcdir ;;
5 kx -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5 kx srcdir=$ac_optarg ;;
5 kx
5 kx -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5 kx | --syscon | --sysco | --sysc | --sys | --sy)
5 kx ac_prev=sysconfdir ;;
5 kx -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5 kx | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5 kx sysconfdir=$ac_optarg ;;
5 kx
5 kx -target | --target | --targe | --targ | --tar | --ta | --t)
5 kx ac_prev=target_alias ;;
5 kx -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5 kx target_alias=$ac_optarg ;;
5 kx
5 kx -v | -verbose | --verbose | --verbos | --verbo | --verb)
5 kx verbose=yes ;;
5 kx
5 kx -version | --version | --versio | --versi | --vers | -V)
5 kx ac_init_version=: ;;
5 kx
5 kx -with-* | --with-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid package name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "with_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval with_$ac_useropt=\$ac_optarg ;;
5 kx
5 kx -without-* | --without-*)
5 kx ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5 kx # Reject names that are not valid shell variable names.
5 kx expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5 kx as_fn_error $? "invalid package name: $ac_useropt"
5 kx ac_useropt_orig=$ac_useropt
5 kx ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5 kx case $ac_user_opts in
5 kx *"
5 kx "with_$ac_useropt"
5 kx "*) ;;
5 kx *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
5 kx ac_unrecognized_sep=', ';;
5 kx esac
5 kx eval with_$ac_useropt=no ;;
5 kx
5 kx --x)
5 kx # Obsolete; use --with-x.
5 kx with_x=yes ;;
5 kx
5 kx -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
5 kx | --x-incl | --x-inc | --x-in | --x-i)
5 kx ac_prev=x_includes ;;
5 kx -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
5 kx | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5 kx x_includes=$ac_optarg ;;
5 kx
5 kx -x-libraries | --x-libraries | --x-librarie | --x-librari \
5 kx | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
5 kx ac_prev=x_libraries ;;
5 kx -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
5 kx | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5 kx x_libraries=$ac_optarg ;;
5 kx
5 kx -*) as_fn_error $? "unrecognized option: \`$ac_option'
5 kx Try \`$0 --help' for more information"
5 kx ;;
5 kx
5 kx *=*)
5 kx ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
5 kx # Reject names that are not valid shell variable names.
5 kx case $ac_envvar in #(
5 kx '' | [0-9]* | *[!_$as_cr_alnum]* )
5 kx as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5 kx esac
5 kx eval $ac_envvar=\$ac_optarg
5 kx export $ac_envvar ;;
5 kx
5 kx *)
5 kx # FIXME: should be removed in autoconf 3.0.
5 kx $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5 kx expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5 kx $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5 kx : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
5 kx ;;
5 kx
5 kx esac
5 kx done
5 kx
5 kx if test -n "$ac_prev"; then
5 kx ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5 kx as_fn_error $? "missing argument to $ac_option"
5 kx fi
5 kx
5 kx if test -n "$ac_unrecognized_opts"; then
5 kx case $enable_option_checking in
5 kx no) ;;
5 kx fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5 kx *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5 kx esac
5 kx fi
5 kx
5 kx # Check all directory arguments for consistency.
5 kx for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
5 kx datadir sysconfdir sharedstatedir localstatedir includedir \
5 kx oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
5 kx libdir localedir mandir runstatedir
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx # Remove trailing slashes.
5 kx case $ac_val in
5 kx */ )
5 kx ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
5 kx eval $ac_var=\$ac_val;;
5 kx esac
5 kx # Be sure to have absolute directory names.
5 kx case $ac_val in
5 kx [\\/$]* | ?:[\\/]* ) continue;;
5 kx NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
5 kx esac
5 kx as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
5 kx done
5 kx
5 kx # There might be people who depend on the old broken behavior: `$host'
5 kx # used to hold the argument of --host etc.
5 kx # FIXME: To remove some day.
5 kx build=$build_alias
5 kx host=$host_alias
5 kx target=$target_alias
5 kx
5 kx # FIXME: To remove some day.
5 kx if test "x$host_alias" != x; then
5 kx if test "x$build_alias" = x; then
5 kx cross_compiling=maybe
5 kx elif test "x$build_alias" != "x$host_alias"; then
5 kx cross_compiling=yes
5 kx fi
5 kx fi
5 kx
5 kx ac_tool_prefix=
5 kx test -n "$host_alias" && ac_tool_prefix=$host_alias-
5 kx
5 kx test "$silent" = yes && exec 6>/dev/null
5 kx
5 kx
5 kx ac_pwd=`pwd` && test -n "$ac_pwd" &&
5 kx ac_ls_di=`ls -di .` &&
5 kx ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5 kx as_fn_error $? "working directory cannot be determined"
5 kx test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5 kx as_fn_error $? "pwd does not report name of working directory"
5 kx
5 kx
5 kx # Find the source files, if location was not specified.
5 kx if test -z "$srcdir"; then
5 kx ac_srcdir_defaulted=yes
5 kx # Try the directory containing this script, then the parent directory.
5 kx ac_confdir=`$as_dirname -- "$as_myself" ||
5 kx $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_myself" : 'X\(//\)[^/]' \| \
5 kx X"$as_myself" : 'X\(//\)$' \| \
5 kx X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_myself" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx srcdir=$ac_confdir
5 kx if test ! -r "$srcdir/$ac_unique_file"; then
5 kx srcdir=..
5 kx fi
5 kx else
5 kx ac_srcdir_defaulted=no
5 kx fi
5 kx if test ! -r "$srcdir/$ac_unique_file"; then
5 kx test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5 kx as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5 kx fi
5 kx ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
5 kx ac_abs_confdir=`(
5 kx cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5 kx pwd)`
5 kx # When building in place, set srcdir=.
5 kx if test "$ac_abs_confdir" = "$ac_pwd"; then
5 kx srcdir=.
5 kx fi
5 kx # Remove unnecessary trailing slashes from srcdir.
5 kx # Double slashes in file names in object file debugging info
5 kx # mess up M-x gdb in Emacs.
5 kx case $srcdir in
5 kx */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
5 kx esac
5 kx for ac_var in $ac_precious_vars; do
5 kx eval ac_env_${ac_var}_set=\${${ac_var}+set}
5 kx eval ac_env_${ac_var}_value=\$${ac_var}
5 kx eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
5 kx eval ac_cv_env_${ac_var}_value=\$${ac_var}
5 kx done
5 kx
5 kx #
5 kx # Report the --help message.
5 kx #
5 kx if test "$ac_init_help" = "long"; then
5 kx # Omit some internal or obsolete options to make the list less imposing.
5 kx # This message is too long to be a string in the A/UX 3.1 sh.
5 kx cat <<_ACEOF
5 kx \`configure' configures GNU Libidn 1.36 to adapt to many kinds of systems.
5 kx
5 kx Usage: $0 [OPTION]... [VAR=VALUE]...
5 kx
5 kx To assign environment variables (e.g., CC, CFLAGS...), specify them as
5 kx VAR=VALUE. See below for descriptions of some of the useful variables.
5 kx
5 kx Defaults for the options are specified in brackets.
5 kx
5 kx Configuration:
5 kx -h, --help display this help and exit
5 kx --help=short display options specific to this package
5 kx --help=recursive display the short help of all the included packages
5 kx -V, --version display version information and exit
5 kx -q, --quiet, --silent do not print \`checking ...' messages
5 kx --cache-file=FILE cache test results in FILE [disabled]
5 kx -C, --config-cache alias for \`--cache-file=config.cache'
5 kx -n, --no-create do not create output files
5 kx --srcdir=DIR find the sources in DIR [configure dir or \`..']
5 kx
5 kx Installation directories:
5 kx --prefix=PREFIX install architecture-independent files in PREFIX
5 kx [$ac_default_prefix]
5 kx --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5 kx [PREFIX]
5 kx
5 kx By default, \`make install' will install all the files in
5 kx \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
5 kx an installation prefix other than \`$ac_default_prefix' using \`--prefix',
5 kx for instance \`--prefix=\$HOME'.
5 kx
5 kx For better control, use the options below.
5 kx
5 kx Fine tuning of the installation directories:
5 kx --bindir=DIR user executables [EPREFIX/bin]
5 kx --sbindir=DIR system admin executables [EPREFIX/sbin]
5 kx --libexecdir=DIR program executables [EPREFIX/libexec]
5 kx --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
5 kx --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
5 kx --localstatedir=DIR modifiable single-machine data [PREFIX/var]
5 kx --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
5 kx --libdir=DIR object code libraries [EPREFIX/lib]
5 kx --includedir=DIR C header files [PREFIX/include]
5 kx --oldincludedir=DIR C header files for non-gcc [/usr/include]
5 kx --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
5 kx --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
5 kx --infodir=DIR info documentation [DATAROOTDIR/info]
5 kx --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
5 kx --mandir=DIR man documentation [DATAROOTDIR/man]
5 kx --docdir=DIR documentation root [DATAROOTDIR/doc/libidn]
5 kx --htmldir=DIR html documentation [DOCDIR]
5 kx --dvidir=DIR dvi documentation [DOCDIR]
5 kx --pdfdir=DIR pdf documentation [DOCDIR]
5 kx --psdir=DIR ps documentation [DOCDIR]
5 kx _ACEOF
5 kx
5 kx cat <<\_ACEOF
5 kx
5 kx Program names:
5 kx --program-prefix=PREFIX prepend PREFIX to installed program names
5 kx --program-suffix=SUFFIX append SUFFIX to installed program names
5 kx --program-transform-name=PROGRAM run sed PROGRAM on installed program names
5 kx
5 kx System types:
5 kx --build=BUILD configure for building on BUILD [guessed]
5 kx --host=HOST cross-compile to build programs to run on HOST [BUILD]
5 kx _ACEOF
5 kx fi
5 kx
5 kx if test -n "$ac_init_help"; then
5 kx case $ac_init_help in
5 kx short | recursive ) echo "Configuration of GNU Libidn 1.36:";;
5 kx esac
5 kx cat <<\_ACEOF
5 kx
5 kx Optional Features:
5 kx --disable-option-checking ignore unrecognized --enable/--with options
5 kx --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5 kx --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5 kx --enable-silent-rules less verbose build output (undo: "make V=1")
5 kx --disable-silent-rules verbose build output (undo: "make V=0")
5 kx --enable-dependency-tracking
5 kx do not reject slow dependency extractors
5 kx --disable-dependency-tracking
5 kx speeds up one-time build
5 kx --disable-largefile omit support for large files
5 kx --enable-threads={posix|solaris|pth|windows}
5 kx specify multithreading API
5 kx --disable-threads build without multithread safety
5 kx --enable-shared[=PKGS] build shared libraries [default=yes]
5 kx --enable-static[=PKGS] build static libraries [default=yes]
5 kx --enable-fast-install[=PKGS]
5 kx optimize for fast installation [default=yes]
5 kx --disable-libtool-lock avoid locking (might break parallel builds)
5 kx --disable-nls do not use Native Language Support
5 kx --disable-rpath do not hardcode runtime library paths
5 kx --enable-cross-guesses={conservative|risky}
5 kx specify policy for cross-compilation guesses
5 kx --enable-csharp[=IMPL] choose preferred C# implementation (mono)
5 kx --disable-valgrind-tests
5 kx don't try to run self tests under valgrind
5 kx --enable-ld-version-script
5 kx enable linker version script (default is enabled
5 kx when possible)
5 kx --disable-tld disable TLD code
5 kx --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
5 kx --enable-gtk-doc-html build documentation in html format [[default=yes]]
5 kx --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
5 kx --enable-java enable Java API
5 kx --enable-ubsan Turn on Undefined Behavior Sanitizer (UBSan)
5 kx --enable-asan Turn on Address Sanitizer (ASan)
5 kx --enable-gcc-warnings turn on lots of GCC warnings (for developers)
5 kx --disable-doc don't generate any documentation
5 kx
5 kx Optional Packages:
5 kx --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5 kx --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5 kx --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
5 kx both]
5 kx --with-aix-soname=aix|svr4|both
5 kx shared library versioning (aka "SONAME") variant to
5 kx provide on AIX, [default=aix].
5 kx --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5 kx --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
5 kx compiler's sysroot if not specified).
5 kx --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5 kx --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
5 kx --without-libiconv-prefix don't search for libiconv in includedir and libdir
5 kx --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
5 kx --without-libintl-prefix don't search for libintl in includedir and libdir
5 kx --with-lispdir override the default lisp directory
5 kx --with-packager String identifying the packager of this software
5 kx --with-packager-version Packager-specific version information
5 kx --with-packager-bug-reports
5 kx Packager info for bug reports (URL/e-mail/...)
5 kx --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
5 kx --without-libpth-prefix don't search for libpth in includedir and libdir
5 kx --with-html-dir=PATH path to installed docs
5 kx --with-java-prefix=PFX prefix where Java runtime is installed (optional)
5 kx --with-javac-flags=FLAGS flags to pass to the Java compiler (optional)
5 kx --with-java-flags=FLAGS flags to pass to the Java VM (optional)
5 kx
5 kx Some influential environment variables:
5 kx CC C compiler command
5 kx CFLAGS C compiler flags
5 kx LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
5 kx nonstandard directory <lib dir>
5 kx LIBS libraries to pass to the linker, e.g. -l<library>
5 kx CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5 kx you have headers in a nonstandard directory <include dir>
5 kx CPP C preprocessor
5 kx LT_SYS_LIBRARY_PATH
5 kx User-defined run-time library search path.
5 kx EMACS the Emacs editor command
5 kx EMACSLOADPATH
5 kx the Emacs library search path
5 kx PKG_CONFIG path to pkg-config utility
5 kx GTKDOC_DEPS_CFLAGS
5 kx C compiler flags for GTKDOC_DEPS, overriding pkg-config
5 kx GTKDOC_DEPS_LIBS
5 kx linker flags for GTKDOC_DEPS, overriding pkg-config
5 kx
5 kx Use these variables to override the choices made by `configure' or to help
5 kx it to find libraries and programs with nonstandard names/locations.
5 kx
5 kx Report bugs to <bug-libidn@gnu.org>.
5 kx GNU Libidn home page: <http://www.gnu.org/software/libidn/>.
5 kx General help using GNU software: <http://www.gnu.org/gethelp/>.
5 kx _ACEOF
5 kx ac_status=$?
5 kx fi
5 kx
5 kx if test "$ac_init_help" = "recursive"; then
5 kx # If there are subdirs, report their specific --help.
5 kx for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5 kx test -d "$ac_dir" ||
5 kx { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
5 kx continue
5 kx ac_builddir=.
5 kx
5 kx case "$ac_dir" in
5 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *)
5 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 kx # A ".." for each directory in $ac_dir_suffix.
5 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 kx case $ac_top_builddir_sub in
5 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5 kx esac ;;
5 kx esac
5 kx ac_abs_top_builddir=$ac_pwd
5 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
5 kx # for backward compatibility:
5 kx ac_top_builddir=$ac_top_build_prefix
5 kx
5 kx case $srcdir in
5 kx .) # We are building in place.
5 kx ac_srcdir=.
5 kx ac_top_srcdir=$ac_top_builddir_sub
5 kx ac_abs_top_srcdir=$ac_pwd ;;
5 kx [\\/]* | ?:[\\/]* ) # Absolute name.
5 kx ac_srcdir=$srcdir$ac_dir_suffix;
5 kx ac_top_srcdir=$srcdir
5 kx ac_abs_top_srcdir=$srcdir ;;
5 kx *) # Relative name.
5 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
5 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5 kx esac
5 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5 kx
5 kx cd "$ac_dir" || { ac_status=$?; continue; }
5 kx # Check for guested configure.
5 kx if test -f "$ac_srcdir/configure.gnu"; then
5 kx echo &&
5 kx $SHELL "$ac_srcdir/configure.gnu" --help=recursive
5 kx elif test -f "$ac_srcdir/configure"; then
5 kx echo &&
5 kx $SHELL "$ac_srcdir/configure" --help=recursive
5 kx else
5 kx $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5 kx fi || ac_status=$?
5 kx cd "$ac_pwd" || { ac_status=$?; break; }
5 kx done
5 kx fi
5 kx
5 kx test -n "$ac_init_help" && exit $ac_status
5 kx if $ac_init_version; then
5 kx cat <<\_ACEOF
5 kx GNU Libidn configure 1.36
5 kx generated by GNU Autoconf 2.69
5 kx
5 kx Copyright (C) 2012 Free Software Foundation, Inc.
5 kx This configure script is free software; the Free Software Foundation
5 kx gives unlimited permission to copy, distribute and modify it.
5 kx _ACEOF
5 kx exit
5 kx fi
5 kx
5 kx ## ------------------------ ##
5 kx ## Autoconf initialization. ##
5 kx ## ------------------------ ##
5 kx
5 kx # ac_fn_c_try_compile LINENO
5 kx # --------------------------
5 kx # Try to compile conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_compile ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx rm -f conftest.$ac_objext
5 kx if { { ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compile") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest.$ac_objext; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_compile
5 kx
5 kx # ac_fn_c_try_cpp LINENO
5 kx # ----------------------
5 kx # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_cpp ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if { { ac_try="$ac_cpp conftest.$ac_ext"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } > conftest.i && {
5 kx test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_cpp
5 kx
5 kx # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5 kx # -------------------------------------------------------
5 kx # Tests whether HEADER exists, giving a warning if it cannot be compiled using
5 kx # the include files in INCLUDES and setting the cache variable VAR
5 kx # accordingly.
5 kx ac_fn_c_check_header_mongrel ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if eval \${$3+:} false; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx else
5 kx # Is the header compilable?
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
5 kx $as_echo_n "checking $2 usability... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_header_compiler=yes
5 kx else
5 kx ac_header_compiler=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
5 kx $as_echo "$ac_header_compiler" >&6; }
5 kx
5 kx # Is the header present?
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
5 kx $as_echo_n "checking $2 presence... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx ac_header_preproc=yes
5 kx else
5 kx ac_header_preproc=no
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
5 kx $as_echo "$ac_header_preproc" >&6; }
5 kx
5 kx # So? What about this header?
5 kx case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
5 kx yes:no: )
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
5 kx $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
5 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5 kx ;;
5 kx no:yes:* )
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
5 kx $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
5 kx $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
5 kx $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
5 kx $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
5 kx $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5 kx ( $as_echo "## --------------------------------- ##
5 kx ## Report this to bug-libidn@gnu.org ##
5 kx ## --------------------------------- ##"
5 kx ) | sed "s/^/$as_me: WARNING: /" >&2
5 kx ;;
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx eval "$3=\$ac_header_compiler"
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_header_mongrel
5 kx
5 kx # ac_fn_c_try_run LINENO
5 kx # ----------------------
5 kx # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
5 kx # that executables *can* be run.
5 kx ac_fn_c_try_run ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
5 kx { { case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: program exited with status $ac_status" >&5
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=$ac_status
5 kx fi
5 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_run
5 kx
5 kx # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
5 kx # -------------------------------------------------------
5 kx # Tests whether HEADER exists and can be compiled using the include files in
5 kx # INCLUDES, setting the cache variable VAR accordingly.
5 kx ac_fn_c_check_header_compile ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx #include <$2>
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$3=yes"
5 kx else
5 kx eval "$3=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_header_compile
5 kx
5 kx # ac_fn_c_try_link LINENO
5 kx # -----------------------
5 kx # Try to link conftest.$ac_ext, and return whether this succeeded.
5 kx ac_fn_c_try_link ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx rm -f conftest.$ac_objext conftest$ac_exeext
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx grep -v '^ *+' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx mv -f conftest.er1 conftest.err
5 kx fi
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && {
5 kx test -z "$ac_c_werror_flag" ||
5 kx test ! -s conftest.err
5 kx } && test -s conftest$ac_exeext && {
5 kx test "$cross_compiling" = yes ||
5 kx test -x conftest$ac_exeext
5 kx }; then :
5 kx ac_retval=0
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx ac_retval=1
5 kx fi
5 kx # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5 kx # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5 kx # interfere with the next link command; also delete a directory that is
5 kx # left behind by Apple's compiler. We do this before executing the actions.
5 kx rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_try_link
5 kx
5 kx # ac_fn_c_check_func LINENO FUNC VAR
5 kx # ----------------------------------
5 kx # Tests whether FUNC exists, setting the cache variable VAR accordingly
5 kx ac_fn_c_check_func ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
5 kx For example, HP-UX 11i <limits.h> declares gettimeofday. */
5 kx #define $2 innocuous_$2
5 kx
5 kx /* System header to define __stub macros and hopefully few prototypes,
5 kx which can conflict with char $2 (); below.
5 kx Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx <limits.h> exists even on freestanding compilers. */
5 kx
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx
5 kx #undef $2
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char $2 ();
5 kx /* The GNU C library defines this for functions which it implements
5 kx to always fail with ENOSYS. Some functions are actually named
5 kx something starting with __ and the normal name is an alias. */
5 kx #if defined __stub_$2 || defined __stub___$2
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return $2 ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx eval "$3=yes"
5 kx else
5 kx eval "$3=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_func
5 kx
5 kx # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
5 kx # -------------------------------------------
5 kx # Tests whether TYPE exists after having included INCLUDES, setting cache
5 kx # variable VAR accordingly.
5 kx ac_fn_c_check_type ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5 kx $as_echo_n "checking for $2... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx eval "$3=no"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx if (sizeof ($2))
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx if (sizeof (($2)))
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx eval "$3=yes"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_type
5 kx
5 kx # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
5 kx # --------------------------------------------
5 kx # Tries to find the compile-time value of EXPR in a program that includes
5 kx # INCLUDES, setting VAR accordingly. Returns whether the value could be
5 kx # computed
5 kx ac_fn_c_compute_int ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx if test "$cross_compiling" = yes; then
5 kx # Depending upon the size, compute the lo and hi bounds.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) >= 0)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_lo=0 ac_mid=0
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_hi=$ac_mid; break
5 kx else
5 kx as_fn_arith $ac_mid + 1 && ac_lo=$as_val
5 kx if test $ac_lo -le $ac_mid; then
5 kx ac_lo= ac_hi=
5 kx break
5 kx fi
5 kx as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx done
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) < 0)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_hi=-1 ac_mid=-1
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) >= $ac_mid)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_lo=$ac_mid; break
5 kx else
5 kx as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
5 kx if test $ac_mid -le $ac_hi; then
5 kx ac_lo= ac_hi=
5 kx break
5 kx fi
5 kx as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx done
5 kx else
5 kx ac_lo= ac_hi=
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx # Binary search between lo and hi bounds.
5 kx while test "x$ac_lo" != "x$ac_hi"; do
5 kx as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5 kx test_array [0] = 0;
5 kx return test_array [0];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_hi=$ac_mid
5 kx else
5 kx as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx done
5 kx case $ac_lo in #((
5 kx ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
5 kx '') ac_retval=1 ;;
5 kx esac
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx static long int longval () { return $2; }
5 kx static unsigned long int ulongval () { return $2; }
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx FILE *f = fopen ("conftest.val", "w");
5 kx if (! f)
5 kx return 1;
5 kx if (($2) < 0)
5 kx {
5 kx long int i = longval ();
5 kx if (i != ($2))
5 kx return 1;
5 kx fprintf (f, "%ld", i);
5 kx }
5 kx else
5 kx {
5 kx unsigned long int i = ulongval ();
5 kx if (i != ($2))
5 kx return 1;
5 kx fprintf (f, "%lu", i);
5 kx }
5 kx /* Do not output a trailing newline, as this causes \r\n confusion
5 kx on some platforms. */
5 kx return ferror (f) || fclose (f) != 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5 kx else
5 kx ac_retval=1
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx rm -f conftest.val
5 kx
5 kx fi
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx as_fn_set_status $ac_retval
5 kx
5 kx } # ac_fn_c_compute_int
5 kx
5 kx # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
5 kx # ---------------------------------------------
5 kx # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
5 kx # accordingly.
5 kx ac_fn_c_check_decl ()
5 kx {
5 kx ac_save_ac_compile="$ac_compile"
5 kx if test -n "$ac_compile_for_check_decl"; then
5 kx ac_compile="$ac_compile_for_check_decl"
5 kx fi
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx as_decl_name=`echo $2|sed 's/ *(.*//'`
5 kx as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
5 kx $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
5 kx if eval \${$3+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $4
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef $as_decl_name
5 kx #ifdef __cplusplus
5 kx (void) $as_decl_use;
5 kx #else
5 kx (void) $as_decl_name;
5 kx #endif
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$3=yes"
5 kx else
5 kx eval "$3=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$3
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx ac_compile="$ac_save_ac_compile"
5 kx
5 kx } # ac_fn_c_check_decl
5 kx
5 kx # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
5 kx # ----------------------------------------------------
5 kx # Tries to find if the field MEMBER exists in type AGGR, after including
5 kx # INCLUDES, setting cache variable VAR accordingly.
5 kx ac_fn_c_check_member ()
5 kx {
5 kx as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
5 kx $as_echo_n "checking for $2.$3... " >&6; }
5 kx if eval \${$4+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $5
5 kx int
5 kx main ()
5 kx {
5 kx static $2 ac_aggr;
5 kx if (ac_aggr.$3)
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$4=yes"
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $5
5 kx int
5 kx main ()
5 kx {
5 kx static $2 ac_aggr;
5 kx if (sizeof ac_aggr.$3)
5 kx return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval "$4=yes"
5 kx else
5 kx eval "$4=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$4
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5 kx
5 kx } # ac_fn_c_check_member
5 kx cat >config.log <<_ACEOF
5 kx This file contains any messages produced by compilers while
5 kx running configure, to aid debugging if configure makes a mistake.
5 kx
5 kx It was created by GNU Libidn $as_me 1.36, which was
5 kx generated by GNU Autoconf 2.69. Invocation command line was
5 kx
5 kx $ $0 $@
5 kx
5 kx _ACEOF
5 kx exec 5>>config.log
5 kx {
5 kx cat <<_ASUNAME
5 kx ## --------- ##
5 kx ## Platform. ##
5 kx ## --------- ##
5 kx
5 kx hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx uname -m = `(uname -m) 2>/dev/null || echo unknown`
5 kx uname -r = `(uname -r) 2>/dev/null || echo unknown`
5 kx uname -s = `(uname -s) 2>/dev/null || echo unknown`
5 kx uname -v = `(uname -v) 2>/dev/null || echo unknown`
5 kx
5 kx /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
5 kx /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5 kx
5 kx /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
5 kx /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
5 kx /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5 kx /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
5 kx /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
5 kx /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
5 kx /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5 kx
5 kx _ASUNAME
5 kx
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx $as_echo "PATH: $as_dir"
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx } >&5
5 kx
5 kx cat >&5 <<_ACEOF
5 kx
5 kx
5 kx ## ----------- ##
5 kx ## Core tests. ##
5 kx ## ----------- ##
5 kx
5 kx _ACEOF
5 kx
5 kx
5 kx # Keep a trace of the command line.
5 kx # Strip out --no-create and --no-recursion so they do not pile up.
5 kx # Strip out --silent because we don't want to record it for future runs.
5 kx # Also quote any args containing shell meta-characters.
5 kx # Make two passes to allow for proper duplicate-argument suppression.
5 kx ac_configure_args=
5 kx ac_configure_args0=
5 kx ac_configure_args1=
5 kx ac_must_keep_next=false
5 kx for ac_pass in 1 2
5 kx do
5 kx for ac_arg
5 kx do
5 kx case $ac_arg in
5 kx -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil)
5 kx continue ;;
5 kx *\'*)
5 kx ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx esac
5 kx case $ac_pass in
5 kx 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
5 kx 2)
5 kx as_fn_append ac_configure_args1 " '$ac_arg'"
5 kx if test $ac_must_keep_next = true; then
5 kx ac_must_keep_next=false # Got value, back to normal.
5 kx else
5 kx case $ac_arg in
5 kx *=* | --config-cache | -C | -disable-* | --disable-* \
5 kx | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5 kx | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5 kx | -with-* | --with-* | -without-* | --without-* | --x)
5 kx case "$ac_configure_args0 " in
5 kx "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
5 kx esac
5 kx ;;
5 kx -* ) ac_must_keep_next=true ;;
5 kx esac
5 kx fi
5 kx as_fn_append ac_configure_args " '$ac_arg'"
5 kx ;;
5 kx esac
5 kx done
5 kx done
5 kx { ac_configure_args0=; unset ac_configure_args0;}
5 kx { ac_configure_args1=; unset ac_configure_args1;}
5 kx
5 kx # When interrupted or exit'd, cleanup temporary files, and complete
5 kx # config.log. We remove comments because anyway the quotes in there
5 kx # would cause problems or look ugly.
5 kx # WARNING: Use '\'' to represent an apostrophe within the trap.
5 kx # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
5 kx trap 'exit_status=$?
5 kx # Save into config.log some information that might help in debugging.
5 kx {
5 kx echo
5 kx
5 kx $as_echo "## ---------------- ##
5 kx ## Cache variables. ##
5 kx ## ---------------- ##"
5 kx echo
5 kx # The following way of writing the cache mishandles newlines in values,
5 kx (
5 kx for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in #(
5 kx *${as_nl}*)
5 kx case $ac_var in #(
5 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 kx esac
5 kx case $ac_var in #(
5 kx _ | IFS | as_nl) ;; #(
5 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5 kx *) { eval $ac_var=; unset $ac_var;} ;;
5 kx esac ;;
5 kx esac
5 kx done
5 kx (set) 2>&1 |
5 kx case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
5 kx *${as_nl}ac_space=\ *)
5 kx sed -n \
5 kx "s/'\''/'\''\\\\'\'''\''/g;
5 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
5 kx ;; #(
5 kx *)
5 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5 kx ;;
5 kx esac |
5 kx sort
5 kx )
5 kx echo
5 kx
5 kx $as_echo "## ----------------- ##
5 kx ## Output variables. ##
5 kx ## ----------------- ##"
5 kx echo
5 kx for ac_var in $ac_subst_vars
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
5 kx esac
5 kx $as_echo "$ac_var='\''$ac_val'\''"
5 kx done | sort
5 kx echo
5 kx
5 kx if test -n "$ac_subst_files"; then
5 kx $as_echo "## ------------------- ##
5 kx ## File substitutions. ##
5 kx ## ------------------- ##"
5 kx echo
5 kx for ac_var in $ac_subst_files
5 kx do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in
5 kx *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
5 kx esac
5 kx $as_echo "$ac_var='\''$ac_val'\''"
5 kx done | sort
5 kx echo
5 kx fi
5 kx
5 kx if test -s confdefs.h; then
5 kx $as_echo "## ----------- ##
5 kx ## confdefs.h. ##
5 kx ## ----------- ##"
5 kx echo
5 kx cat confdefs.h
5 kx echo
5 kx fi
5 kx test "$ac_signal" != 0 &&
5 kx $as_echo "$as_me: caught signal $ac_signal"
5 kx $as_echo "$as_me: exit $exit_status"
5 kx } >&5
5 kx rm -f core *.core core.conftest.* &&
5 kx rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
5 kx exit $exit_status
5 kx ' 0
5 kx for ac_signal in 1 2 13 15; do
5 kx trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
5 kx done
5 kx ac_signal=0
5 kx
5 kx # confdefs.h avoids OS command line length limits that DEFS can exceed.
5 kx rm -f -r conftest* confdefs.h
5 kx
5 kx $as_echo "/* confdefs.h */" > confdefs.h
5 kx
5 kx # Predefined preprocessor variables.
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_NAME "$PACKAGE_NAME"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_VERSION "$PACKAGE_VERSION"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_STRING "$PACKAGE_STRING"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5 kx _ACEOF
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_URL "$PACKAGE_URL"
5 kx _ACEOF
5 kx
5 kx
5 kx # Let the site file select an alternate cache file if it wants to.
5 kx # Prefer an explicitly selected file to automatically selected ones.
5 kx ac_site_file1=NONE
5 kx ac_site_file2=NONE
5 kx if test -n "$CONFIG_SITE"; then
5 kx # We do not want a PATH search for config.site.
5 kx case $CONFIG_SITE in #((
5 kx -*) ac_site_file1=./$CONFIG_SITE;;
5 kx */*) ac_site_file1=$CONFIG_SITE;;
5 kx *) ac_site_file1=./$CONFIG_SITE;;
5 kx esac
5 kx elif test "x$prefix" != xNONE; then
5 kx ac_site_file1=$prefix/share/config.site
5 kx ac_site_file2=$prefix/etc/config.site
5 kx else
5 kx ac_site_file1=$ac_default_prefix/share/config.site
5 kx ac_site_file2=$ac_default_prefix/etc/config.site
5 kx fi
5 kx for ac_site_file in "$ac_site_file1" "$ac_site_file2"
5 kx do
5 kx test "x$ac_site_file" = xNONE && continue
5 kx if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
5 kx $as_echo "$as_me: loading site script $ac_site_file" >&6;}
5 kx sed 's/^/| /' "$ac_site_file" >&5
5 kx . "$ac_site_file" \
5 kx || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "failed to load site script $ac_site_file
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx done
5 kx
5 kx if test -r "$cache_file"; then
5 kx # Some versions of bash will fail to source /dev/null (special files
5 kx # actually), so we avoid doing that. DJGPP emulates it as a regular file.
5 kx if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
5 kx $as_echo "$as_me: loading cache $cache_file" >&6;}
5 kx case $cache_file in
5 kx [\\/]* | ?:[\\/]* ) . "$cache_file";;
5 kx *) . "./$cache_file";;
5 kx esac
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
5 kx $as_echo "$as_me: creating cache $cache_file" >&6;}
5 kx >$cache_file
5 kx fi
5 kx
5 kx gt_needs="$gt_needs "
5 kx as_fn_append ac_func_list " _set_invalid_parameter_handler"
5 kx as_fn_append ac_header_list " sys/socket.h"
5 kx as_fn_append ac_func_list " fcntl"
5 kx as_fn_append ac_header_list " unistd.h"
5 kx as_fn_append ac_func_list " symlink"
5 kx as_fn_append ac_header_list " sys/stat.h"
5 kx as_fn_append ac_func_list " getdelim"
5 kx as_fn_append ac_func_list " getdtablesize"
5 kx gl_getopt_required=GNU
5 kx as_fn_append ac_header_list " getopt.h"
5 kx as_fn_append ac_header_list " sys/cdefs.h"
5 kx as_fn_append ac_func_list " getprogname"
5 kx as_fn_append ac_func_list " getexecname"
5 kx as_fn_append ac_header_list " limits.h"
5 kx as_fn_append ac_func_list " lstat"
5 kx as_fn_append ac_header_list " sys/param.h"
5 kx as_fn_append ac_header_list " sys/time.h"
5 kx as_fn_append ac_header_list " wchar.h"
5 kx as_fn_append ac_header_list " stdint.h"
5 kx as_fn_append ac_func_list " strerror_r"
5 kx as_fn_append ac_func_list " __xpg_strerror_r"
5 kx as_fn_append ac_header_list " arpa/inet.h"
5 kx as_fn_append ac_header_list " features.h"
5 kx as_fn_append ac_func_list " ftruncate"
5 kx as_fn_append ac_func_list " gettimeofday"
5 kx as_fn_append ac_header_list " netdb.h"
5 kx as_fn_append ac_header_list " netinet/in.h"
5 kx as_fn_append ac_header_list " inttypes.h"
5 kx as_fn_append ac_func_list " isblank"
5 kx as_fn_append ac_header_list " semaphore.h"
5 kx as_fn_append ac_header_list " sys/select.h"
5 kx as_fn_append ac_func_list " pipe"
5 kx as_fn_append ac_header_list " pthread.h"
5 kx as_fn_append ac_func_list " pthread_sigmask"
5 kx as_fn_append ac_header_list " sys/wait.h"
5 kx as_fn_append ac_func_list " setenv"
5 kx as_fn_append ac_func_list " sigaction"
5 kx as_fn_append ac_func_list " sigaltstack"
5 kx as_fn_append ac_func_list " siginterrupt"
5 kx as_fn_append ac_func_list " sleep"
5 kx as_fn_append ac_func_list " catgets"
5 kx as_fn_append ac_func_list " snprintf"
5 kx as_fn_append ac_header_list " sys/ioctl.h"
5 kx as_fn_append ac_func_list " shutdown"
5 kx as_fn_append ac_header_list " sys/uio.h"
5 kx as_fn_append ac_func_list " usleep"
5 kx as_fn_append ac_header_list " crtdefs.h"
5 kx as_fn_append ac_header_list " iconv.h"
5 kx as_fn_append ac_header_list " langinfo.h"
5 kx as_fn_append ac_header_list " xlocale.h"
5 kx as_fn_append ac_func_list " newlocale"
5 kx as_fn_append ac_func_list " uselocale"
5 kx as_fn_append ac_func_list " duplocale"
5 kx as_fn_append ac_func_list " freelocale"
5 kx as_fn_append ac_header_list " threads.h"
5 kx # Check that the precious variables saved in the cache have kept the same
5 kx # value.
5 kx ac_cache_corrupted=false
5 kx for ac_var in $ac_precious_vars; do
5 kx eval ac_old_set=\$ac_cv_env_${ac_var}_set
5 kx eval ac_new_set=\$ac_env_${ac_var}_set
5 kx eval ac_old_val=\$ac_cv_env_${ac_var}_value
5 kx eval ac_new_val=\$ac_env_${ac_var}_value
5 kx case $ac_old_set,$ac_new_set in
5 kx set,)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
5 kx ac_cache_corrupted=: ;;
5 kx ,set)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
5 kx ac_cache_corrupted=: ;;
5 kx ,);;
5 kx *)
5 kx if test "x$ac_old_val" != "x$ac_new_val"; then
5 kx # differences in whitespace do not lead to failure.
5 kx ac_old_val_w=`echo x $ac_old_val`
5 kx ac_new_val_w=`echo x $ac_new_val`
5 kx if test "$ac_old_val_w" != "$ac_new_val_w"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
5 kx $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5 kx ac_cache_corrupted=:
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
5 kx $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
5 kx eval $ac_var=\$ac_old_val
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
5 kx $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
5 kx $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
5 kx fi;;
5 kx esac
5 kx # Pass precious variables to config.status.
5 kx if test "$ac_new_set" = set; then
5 kx case $ac_new_val in
5 kx *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx *) ac_arg=$ac_var=$ac_new_val ;;
5 kx esac
5 kx case " $ac_configure_args " in
5 kx *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5 kx *) as_fn_append ac_configure_args " '$ac_arg'" ;;
5 kx esac
5 kx fi
5 kx done
5 kx if $ac_cache_corrupted; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
5 kx $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5 kx as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5 kx fi
5 kx ## -------------------- ##
5 kx ## Main body of script. ##
5 kx ## -------------------- ##
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx ac_aux_dir=
5 kx for ac_dir in build-aux "$srcdir"/build-aux; do
5 kx if test -f "$ac_dir/install-sh"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/install-sh -c"
5 kx break
5 kx elif test -f "$ac_dir/install.sh"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/install.sh -c"
5 kx break
5 kx elif test -f "$ac_dir/shtool"; then
5 kx ac_aux_dir=$ac_dir
5 kx ac_install_sh="$ac_aux_dir/shtool install -c"
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$ac_aux_dir"; then
5 kx as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
5 kx fi
5 kx
5 kx # These three variables are undocumented and unsupported,
5 kx # and are intended to be withdrawn in a future Autoconf release.
5 kx # They can cause serious problems if a builder's source tree is in a directory
5 kx # whose full name contains unusual characters.
5 kx ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5 kx ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5 kx ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5 kx
5 kx
5 kx
5 kx ac_config_headers="$ac_config_headers config.h"
5 kx
5 kx am__api_version='1.16'
5 kx
5 kx # Find a good install program. We prefer a C program (faster),
5 kx # so one script is as good as another. But avoid the broken or
5 kx # incompatible versions:
5 kx # SysV /etc/install, /usr/sbin/install
5 kx # SunOS /usr/etc/install
5 kx # IRIX /sbin/install
5 kx # AIX /bin/install
5 kx # AmigaOS /C/install, which installs bootblocks on floppy discs
5 kx # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5 kx # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5 kx # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5 kx # OS/2's system install, which has a completely different semantic
5 kx # ./install, which can be erroneously created by make from ./install.sh.
5 kx # Reject install programs that cannot install multiple files.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5 kx $as_echo_n "checking for a BSD-compatible install... " >&6; }
5 kx if test -z "$INSTALL"; then
5 kx if ${ac_cv_path_install+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx # Account for people who put trailing slashes in PATH elements.
5 kx case $as_dir/ in #((
5 kx ./ | .// | /[cC]/* | \
5 kx /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5 kx ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5 kx /usr/ucb/* ) ;;
5 kx *)
5 kx # OSF1 and SCO ODT 3.0 have their own names for install.
5 kx # Don't use installbsd from OSF since it installs stuff as root
5 kx # by default.
5 kx for ac_prog in ginstall scoinst install; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5 kx if test $ac_prog = install &&
5 kx grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # AIX install. It has an incompatible calling convention.
5 kx :
5 kx elif test $ac_prog = install &&
5 kx grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5 kx # program-specific install script used by HP pwplus--don't use.
5 kx :
5 kx else
5 kx rm -rf conftest.one conftest.two conftest.dir
5 kx echo one > conftest.one
5 kx echo two > conftest.two
5 kx mkdir conftest.dir
5 kx if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5 kx test -s conftest.one && test -s conftest.two &&
5 kx test -s conftest.dir/conftest.one &&
5 kx test -s conftest.dir/conftest.two
5 kx then
5 kx ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5 kx break 3
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx ;;
5 kx esac
5 kx
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx rm -rf conftest.one conftest.two conftest.dir
5 kx
5 kx fi
5 kx if test "${ac_cv_path_install+set}" = set; then
5 kx INSTALL=$ac_cv_path_install
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for INSTALL within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx INSTALL=$ac_install_sh
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5 kx $as_echo "$INSTALL" >&6; }
5 kx
5 kx # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5 kx # It thinks the first close brace ends the variable substitution.
5 kx test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5 kx
5 kx test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5 kx $as_echo_n "checking whether build environment is sane... " >&6; }
5 kx # Reject unsafe characters in $srcdir or the absolute working directory
5 kx # name. Accept space and tab only in the latter.
5 kx am_lf='
5 kx '
5 kx case `pwd` in
5 kx *[\\\"\#\$\&\'\`$am_lf]*)
5 kx as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5 kx esac
5 kx case $srcdir in
5 kx *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5 kx as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5 kx esac
5 kx
5 kx # Do 'set' in a subshell so we don't clobber the current shell's
5 kx # arguments. Must try -L first in case configure is actually a
5 kx # symlink; some systems play weird games with the mod time of symlinks
5 kx # (eg FreeBSD returns the mod time of the symlink's containing
5 kx # directory).
5 kx if (
5 kx am_has_slept=no
5 kx for am_try in 1 2; do
5 kx echo "timestamp, slept: $am_has_slept" > conftest.file
5 kx set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5 kx if test "$*" = "X"; then
5 kx # -L didn't work.
5 kx set X `ls -t "$srcdir/configure" conftest.file`
5 kx fi
5 kx if test "$*" != "X $srcdir/configure conftest.file" \
5 kx && test "$*" != "X conftest.file $srcdir/configure"; then
5 kx
5 kx # If neither matched, then we have a broken ls. This can happen
5 kx # if, for instance, CONFIG_SHELL is bash and it inherits a
5 kx # broken ls alias from the environment. This has actually
5 kx # happened. Such a system could not be considered "sane".
5 kx as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5 kx alias in your environment" "$LINENO" 5
5 kx fi
5 kx if test "$2" = conftest.file || test $am_try -eq 2; then
5 kx break
5 kx fi
5 kx # Just in case.
5 kx sleep 1
5 kx am_has_slept=yes
5 kx done
5 kx test "$2" = conftest.file
5 kx )
5 kx then
5 kx # Ok.
5 kx :
5 kx else
5 kx as_fn_error $? "newly created file is older than distributed files!
5 kx Check your system clock" "$LINENO" 5
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx # If we didn't sleep, we still need to ensure time stamps of config.status and
5 kx # generated files are strictly newer.
5 kx am_sleep_pid=
5 kx if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5 kx ( sleep 1 ) &
5 kx am_sleep_pid=$!
5 kx fi
5 kx
5 kx rm -f conftest.file
5 kx
5 kx test "$program_prefix" != NONE &&
5 kx program_transform_name="s&^&$program_prefix&;$program_transform_name"
5 kx # Use a double $ so make ignores it.
5 kx test "$program_suffix" != NONE &&
5 kx program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5 kx # Double any \ or $.
5 kx # By default was `s,x,x', remove it if useless.
5 kx ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5 kx program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5 kx
5 kx # Expand $ac_aux_dir to an absolute path.
5 kx am_aux_dir=`cd "$ac_aux_dir" && pwd`
5 kx
5 kx if test x"${MISSING+set}" != xset; then
5 kx case $am_aux_dir in
5 kx *\ * | *\ *)
5 kx MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5 kx *)
5 kx MISSING="\${SHELL} $am_aux_dir/missing" ;;
5 kx esac
5 kx fi
5 kx # Use eval to expand $SHELL
5 kx if eval "$MISSING --is-lightweight"; then
5 kx am_missing_run="$MISSING "
5 kx else
5 kx am_missing_run=
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5 kx $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5 kx fi
5 kx
5 kx if test x"${install_sh+set}" != xset; then
5 kx case $am_aux_dir in
5 kx *\ * | *\ *)
5 kx install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5 kx *)
5 kx install_sh="\${SHELL} $am_aux_dir/install-sh"
5 kx esac
5 kx fi
5 kx
5 kx # Installed binaries are usually stripped using 'strip' when the user
5 kx # run "make install-strip". However 'strip' might not be the right
5 kx # tool to use in cross-compilation environments, therefore Automake
5 kx # will honor the 'STRIP' environment variable to overrule this program.
5 kx if test "$cross_compiling" != no; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_STRIP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$STRIP"; then
5 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx STRIP=$ac_cv_prog_STRIP
5 kx if test -n "$STRIP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5 kx $as_echo "$STRIP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_STRIP"; then
5 kx ac_ct_STRIP=$STRIP
5 kx # Extract the first word of "strip", so it can be a program name with args.
5 kx set dummy strip; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_STRIP"; then
5 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_STRIP="strip"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5 kx if test -n "$ac_ct_STRIP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5 kx $as_echo "$ac_ct_STRIP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_STRIP" = x; then
5 kx STRIP=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx STRIP=$ac_ct_STRIP
5 kx fi
5 kx else
5 kx STRIP="$ac_cv_prog_STRIP"
5 kx fi
5 kx
5 kx fi
5 kx INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5 kx $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5 kx if test -z "$MKDIR_P"; then
5 kx if ${ac_cv_path_mkdir+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in mkdir gmkdir; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5 kx case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5 kx 'mkdir (GNU coreutils) '* | \
5 kx 'mkdir (coreutils) '* | \
5 kx 'mkdir (fileutils) '4.1*)
5 kx ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5 kx break 3;;
5 kx esac
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx
5 kx test -d ./--version && rmdir ./--version
5 kx if test "${ac_cv_path_mkdir+set}" = set; then
5 kx MKDIR_P="$ac_cv_path_mkdir -p"
5 kx else
5 kx # As a last resort, use the slow shell script. Don't cache a
5 kx # value for MKDIR_P within a source directory, because that will
5 kx # break other packages using the cache if that directory is
5 kx # removed, or if the value is a relative name.
5 kx MKDIR_P="$ac_install_sh -d"
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5 kx $as_echo "$MKDIR_P" >&6; }
5 kx
5 kx for ac_prog in gawk mawk nawk awk
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AWK+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AWK"; then
5 kx ac_cv_prog_AWK="$AWK" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AWK="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AWK=$ac_cv_prog_AWK
5 kx if test -n "$AWK"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5 kx $as_echo "$AWK" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$AWK" && break
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5 kx $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5 kx set x ${MAKE-make}
5 kx ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5 kx if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat >conftest.make <<\_ACEOF
5 kx SHELL = /bin/sh
5 kx all:
5 kx @echo '@@@%%%=$(MAKE)=@@@%%%'
5 kx _ACEOF
5 kx # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5 kx case `${MAKE-make} -f conftest.make 2>/dev/null` in
5 kx *@@@%%%=?*=@@@%%%*)
5 kx eval ac_cv_prog_make_${ac_make}_set=yes;;
5 kx *)
5 kx eval ac_cv_prog_make_${ac_make}_set=no;;
5 kx esac
5 kx rm -f conftest.make
5 kx fi
5 kx if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx SET_MAKE=
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx SET_MAKE="MAKE=${MAKE-make}"
5 kx fi
5 kx
5 kx rm -rf .tst 2>/dev/null
5 kx mkdir .tst 2>/dev/null
5 kx if test -d .tst; then
5 kx am__leading_dot=.
5 kx else
5 kx am__leading_dot=_
5 kx fi
5 kx rmdir .tst 2>/dev/null
5 kx
5 kx # Check whether --enable-silent-rules was given.
5 kx if test "${enable_silent_rules+set}" = set; then :
5 kx enableval=$enable_silent_rules;
5 kx fi
5 kx
5 kx case $enable_silent_rules in # (((
5 kx yes) AM_DEFAULT_VERBOSITY=0;;
5 kx no) AM_DEFAULT_VERBOSITY=1;;
5 kx *) AM_DEFAULT_VERBOSITY=1;;
5 kx esac
5 kx am_make=${MAKE-make}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5 kx $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5 kx if ${am_cv_make_support_nested_variables+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if $as_echo 'TRUE=$(BAR$(V))
5 kx BAR0=false
5 kx BAR1=true
5 kx V=1
5 kx am__doit:
5 kx @$(TRUE)
5 kx .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5 kx am_cv_make_support_nested_variables=yes
5 kx else
5 kx am_cv_make_support_nested_variables=no
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5 kx $as_echo "$am_cv_make_support_nested_variables" >&6; }
5 kx if test $am_cv_make_support_nested_variables = yes; then
5 kx AM_V='$(V)'
5 kx AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5 kx else
5 kx AM_V=$AM_DEFAULT_VERBOSITY
5 kx AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5 kx fi
5 kx AM_BACKSLASH='\'
5 kx
5 kx if test "`cd $srcdir && pwd`" != "`pwd`"; then
5 kx # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5 kx # is not polluted with repeated "-I."
5 kx am__isrc=' -I$(srcdir)'
5 kx # test to see if srcdir already configured
5 kx if test -f $srcdir/config.status; then
5 kx as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx # test whether we have cygpath
5 kx if test -z "$CYGPATH_W"; then
5 kx if (cygpath --version) >/dev/null 2>/dev/null; then
5 kx CYGPATH_W='cygpath -w'
5 kx else
5 kx CYGPATH_W=echo
5 kx fi
5 kx fi
5 kx
5 kx
5 kx # Define the identity of the package.
5 kx PACKAGE='libidn'
5 kx VERSION='1.36'
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE "$PACKAGE"
5 kx _ACEOF
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define VERSION "$VERSION"
5 kx _ACEOF
5 kx
5 kx # Some tools Automake needs.
5 kx
5 kx ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5 kx
5 kx
5 kx AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5 kx
5 kx
5 kx AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5 kx
5 kx
5 kx AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5 kx
5 kx
5 kx MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5 kx
5 kx # For better backward compatibility. To be removed once Automake 1.9.x
5 kx # dies out for good. For more background, see:
5 kx # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5 kx # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5 kx mkdir_p='$(MKDIR_P)'
5 kx
5 kx # We need awk for the "check" target (and possibly the TAP driver). The
5 kx # system "awk" is bad on some platforms.
5 kx # Always define AMTAR for backward compatibility. Yes, it's still used
5 kx # in the wild :-( We should find a proper way to deprecate it ...
5 kx AMTAR='$${TAR-tar}'
5 kx
5 kx
5 kx # We'll loop over all known methods to create a tar archive until one works.
5 kx _am_tools='gnutar pax cpio none'
5 kx
5 kx am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # POSIX will say in a future version that running "rm -f" with no argument
5 kx # is OK; and we want to be able to make that assumption in our Makefile
5 kx # recipes. So use an aggressive probe to check that the usage we want is
5 kx # actually supported "in the wild" to an acceptable degree.
5 kx # See automake bug#10828.
5 kx # To make any issue more visible, cause the running configure to be aborted
5 kx # by default if the 'rm' program in use doesn't match our expectations; the
5 kx # user can still override this though.
5 kx if rm -f && rm -fr && rm -rf; then : OK; else
5 kx cat >&2 <<'END'
5 kx Oops!
5 kx
5 kx Your 'rm' program seems unable to run without file operands specified
5 kx on the command line, even when the '-f' option is present. This is contrary
5 kx to the behaviour of most rm programs out there, and not conforming with
5 kx the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5 kx
5 kx Please tell bug-automake@gnu.org about your system, including the value
5 kx of your $PATH and any error possibly output before this message. This
5 kx can help us improve future automake versions.
5 kx
5 kx END
5 kx if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5 kx echo 'Configuration will proceed anyway, since you have set the' >&2
5 kx echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5 kx echo >&2
5 kx else
5 kx cat >&2 <<'END'
5 kx Aborting the configuration process, to ensure you take notice of the issue.
5 kx
5 kx You can download and install GNU coreutils to get an 'rm' implementation
5 kx that behaves properly: <https://www.gnu.org/software/coreutils/>.
5 kx
5 kx If you want to complete the configuration process using your problematic
5 kx 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5 kx to "yes", and re-run configure.
5 kx
5 kx END
5 kx as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5 kx fi
5 kx fi
5 kx
5 kx # Check whether --enable-silent-rules was given.
5 kx if test "${enable_silent_rules+set}" = set; then :
5 kx enableval=$enable_silent_rules;
5 kx fi
5 kx
5 kx case $enable_silent_rules in # (((
5 kx yes) AM_DEFAULT_VERBOSITY=0;;
5 kx no) AM_DEFAULT_VERBOSITY=1;;
5 kx *) AM_DEFAULT_VERBOSITY=0;;
5 kx esac
5 kx am_make=${MAKE-make}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5 kx $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5 kx if ${am_cv_make_support_nested_variables+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if $as_echo 'TRUE=$(BAR$(V))
5 kx BAR0=false
5 kx BAR1=true
5 kx V=1
5 kx am__doit:
5 kx @$(TRUE)
5 kx .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5 kx am_cv_make_support_nested_variables=yes
5 kx else
5 kx am_cv_make_support_nested_variables=no
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5 kx $as_echo "$am_cv_make_support_nested_variables" >&6; }
5 kx if test $am_cv_make_support_nested_variables = yes; then
5 kx AM_V='$(V)'
5 kx AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5 kx else
5 kx AM_V=$AM_DEFAULT_VERBOSITY
5 kx AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5 kx fi
5 kx AM_BACKSLASH='\'
5 kx
5 kx
5 kx # Library code modified: REVISION++
5 kx # Interfaces changed/added/removed: CURRENT++ REVISION=0
5 kx # Interfaces added: AGE++
5 kx # Interfaces removed: AGE=0
5 kx LT_CURRENT=18
5 kx
5 kx LT_REVISION=1
5 kx
5 kx LT_AGE=6
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}gcc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}gcc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_CC"; then
5 kx ac_ct_CC=$CC
5 kx # Extract the first word of "gcc", so it can be a program name with args.
5 kx set dummy gcc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CC="gcc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5 kx $as_echo "$ac_ct_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx else
5 kx CC="$ac_cv_prog_CC"
5 kx fi
5 kx
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}cc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}cc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx fi
5 kx if test -z "$CC"; then
5 kx # Extract the first word of "cc", so it can be a program name with args.
5 kx set dummy cc; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx ac_prog_rejected=no
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5 kx ac_prog_rejected=yes
5 kx continue
5 kx fi
5 kx ac_cv_prog_CC="cc"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx if test $ac_prog_rejected = yes; then
5 kx # We found a bogon in the path, so make sure we never use it.
5 kx set dummy $ac_cv_prog_CC
5 kx shift
5 kx if test $# != 0; then
5 kx # We chose a different compiler from the bogus one.
5 kx # However, it has the same basename, so the bogon will be chosen
5 kx # first if we set CC to just the basename; use the full file name.
5 kx shift
5 kx ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$CC" && break
5 kx done
5 kx fi
5 kx if test -z "$CC"; then
5 kx ac_ct_CC=$CC
5 kx for ac_prog in cl.exe
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5 kx $as_echo "$ac_ct_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_CC" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx if test -z "$CC"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}clang; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$CC"; then
5 kx ac_cv_prog_CC="$CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_CC="${ac_tool_prefix}clang"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx CC=$ac_cv_prog_CC
5 kx if test -n "$CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5 kx $as_echo "$CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_CC"; then
5 kx ac_ct_CC=$CC
5 kx # Extract the first word of "clang", so it can be a program name with args.
5 kx set dummy clang; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_CC"; then
5 kx ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_CC="clang"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_CC=$ac_cv_prog_ac_ct_CC
5 kx if test -n "$ac_ct_CC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5 kx $as_echo "$ac_ct_CC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_CC" = x; then
5 kx CC=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx CC=$ac_ct_CC
5 kx fi
5 kx else
5 kx CC="$ac_cv_prog_CC"
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "no acceptable C compiler found in \$PATH
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx
5 kx # Provide some information about the compiler.
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5 kx set X $ac_compile
5 kx ac_compiler=$2
5 kx for ac_option in --version -v -V -qversion -version; do
5 kx { { ac_try="$ac_compiler $ac_option >&5"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5 kx ac_status=$?
5 kx if test -s conftest.err; then
5 kx sed '10a\
5 kx ... rest of stderr output deleted ...
5 kx 10q' conftest.err >conftest.er1
5 kx cat conftest.er1 >&5
5 kx fi
5 kx rm -f conftest.er1 conftest.err
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx done
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx ac_clean_files_save=$ac_clean_files
5 kx ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5 kx # Try to create an executable without -o first, disregard a.out.
5 kx # It will help us diagnose broken compilers, and finding out an intuition
5 kx # of exeext.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5 kx $as_echo_n "checking whether the C compiler works... " >&6; }
5 kx ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5 kx
5 kx # The possible output files:
5 kx ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5 kx
5 kx ac_rmfiles=
5 kx for ac_file in $ac_files
5 kx do
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5 kx * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5 kx esac
5 kx done
5 kx rm -f $ac_rmfiles
5 kx
5 kx if { { ac_try="$ac_link_default"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link_default") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5 kx # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5 kx # in a Makefile. We should not override ac_cv_exeext if it was cached,
5 kx # so that the user can short-circuit this test for compilers unknown to
5 kx # Autoconf.
5 kx for ac_file in $ac_files ''
5 kx do
5 kx test -f "$ac_file" || continue
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5 kx ;;
5 kx [ab].out )
5 kx # We found the default executable, but exeext='' is most
5 kx # certainly right.
5 kx break;;
5 kx *.* )
5 kx if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5 kx then :; else
5 kx ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5 kx fi
5 kx # We set ac_cv_exeext here because the later test for it is not
5 kx # safe: cross compilers may not add the suffix if given an `-o'
5 kx # argument, so we may need to know it at that point already.
5 kx # Even if this section looks crufty: it has the advantage of
5 kx # actually working.
5 kx break;;
5 kx * )
5 kx break;;
5 kx esac
5 kx done
5 kx test "$ac_cv_exeext" = no && ac_cv_exeext=
5 kx
5 kx else
5 kx ac_file=''
5 kx fi
5 kx if test -z "$ac_file"; then :
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error 77 "C compiler cannot create executables
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5 kx $as_echo_n "checking for C compiler default output file name... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5 kx $as_echo "$ac_file" >&6; }
5 kx ac_exeext=$ac_cv_exeext
5 kx
5 kx rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5 kx ac_clean_files=$ac_clean_files_save
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5 kx $as_echo_n "checking for suffix of executables... " >&6; }
5 kx if { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx # If both `conftest.exe' and `conftest' are `present' (well, observable)
5 kx # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5 kx # work properly (i.e., refer to `conftest.exe'), while it won't with
5 kx # `rm'.
5 kx for ac_file in conftest.exe conftest conftest.*; do
5 kx test -f "$ac_file" || continue
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5 kx *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5 kx break;;
5 kx * ) break;;
5 kx esac
5 kx done
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx rm -f conftest conftest$ac_cv_exeext
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5 kx $as_echo "$ac_cv_exeext" >&6; }
5 kx
5 kx rm -f conftest.$ac_ext
5 kx EXEEXT=$ac_cv_exeext
5 kx ac_exeext=$EXEEXT
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx int
5 kx main ()
5 kx {
5 kx FILE *f = fopen ("conftest.out", "w");
5 kx return ferror (f) || fclose (f) != 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx ac_clean_files="$ac_clean_files conftest.out"
5 kx # Check that the compiler produces executables we can run. If not, either
5 kx # the compiler is broken, or we cross compile.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5 kx $as_echo_n "checking whether we are cross compiling... " >&6; }
5 kx if test "$cross_compiling" != yes; then
5 kx { { ac_try="$ac_link"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_link") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if { ac_try='./conftest$ac_cv_exeext'
5 kx { { case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_try") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; }; then
5 kx cross_compiling=no
5 kx else
5 kx if test "$cross_compiling" = maybe; then
5 kx cross_compiling=yes
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot run C compiled programs.
5 kx If you meant to cross compile, use \`--host'.
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5 kx $as_echo "$cross_compiling" >&6; }
5 kx
5 kx rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5 kx ac_clean_files=$ac_clean_files_save
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5 kx $as_echo_n "checking for suffix of object files... " >&6; }
5 kx if ${ac_cv_objext+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx rm -f conftest.o conftest.obj
5 kx if { { ac_try="$ac_compile"
5 kx case "(($ac_try" in
5 kx *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5 kx *) ac_try_echo=$ac_try;;
5 kx esac
5 kx eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5 kx $as_echo "$ac_try_echo"; } >&5
5 kx (eval "$ac_compile") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then :
5 kx for ac_file in conftest.o conftest.obj conftest.*; do
5 kx test -f "$ac_file" || continue;
5 kx case $ac_file in
5 kx *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5 kx *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5 kx break;;
5 kx esac
5 kx done
5 kx else
5 kx $as_echo "$as_me: failed program was:" >&5
5 kx sed 's/^/| /' conftest.$ac_ext >&5
5 kx
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot compute suffix of object files: cannot compile
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx rm -f conftest.$ac_cv_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5 kx $as_echo "$ac_cv_objext" >&6; }
5 kx OBJEXT=$ac_cv_objext
5 kx ac_objext=$OBJEXT
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5 kx $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5 kx if ${ac_cv_c_compiler_gnu+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef __GNUC__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_compiler_gnu=yes
5 kx else
5 kx ac_compiler_gnu=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_c_compiler_gnu=$ac_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5 kx $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5 kx if test $ac_compiler_gnu = yes; then
5 kx GCC=yes
5 kx else
5 kx GCC=
5 kx fi
5 kx ac_test_CFLAGS=${CFLAGS+set}
5 kx ac_save_CFLAGS=$CFLAGS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5 kx $as_echo_n "checking whether $CC accepts -g... " >&6; }
5 kx if ${ac_cv_prog_cc_g+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_save_c_werror_flag=$ac_c_werror_flag
5 kx ac_c_werror_flag=yes
5 kx ac_cv_prog_cc_g=no
5 kx CFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_g=yes
5 kx else
5 kx CFLAGS=""
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx CFLAGS="-g"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_g=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_c_werror_flag=$ac_save_c_werror_flag
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5 kx $as_echo "$ac_cv_prog_cc_g" >&6; }
5 kx if test "$ac_test_CFLAGS" = set; then
5 kx CFLAGS=$ac_save_CFLAGS
5 kx elif test $ac_cv_prog_cc_g = yes; then
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-g -O2"
5 kx else
5 kx CFLAGS="-g"
5 kx fi
5 kx else
5 kx if test "$GCC" = yes; then
5 kx CFLAGS="-O2"
5 kx else
5 kx CFLAGS=
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5 kx $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
5 kx if ${ac_cv_prog_cc_c11+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c11=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdbool.h>
5 kx #include <stddef.h>
5 kx #include <stdlib.h>
5 kx #include <wchar.h>
5 kx #include <stdio.h>
5 kx
5 kx // Check varargs macros. These examples are taken from C99 6.10.3.5.
5 kx #define debug(...) fprintf (stderr, __VA_ARGS__)
5 kx #define showlist(...) puts (#__VA_ARGS__)
5 kx #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5 kx static void
5 kx test_varargs_macros (void)
5 kx {
5 kx int x = 1234;
5 kx int y = 5678;
5 kx debug ("Flag");
5 kx debug ("X = %d\n", x);
5 kx showlist (The first, second, and third items.);
5 kx report (x>y, "x is %d but y is %d", x, y);
5 kx }
5 kx
5 kx // Check long long types.
5 kx #define BIG64 18446744073709551615ull
5 kx #define BIG32 4294967295ul
5 kx #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5 kx #if !BIG_OK
5 kx your preprocessor is broken;
5 kx #endif
5 kx #if BIG_OK
5 kx #else
5 kx your preprocessor is broken;
5 kx #endif
5 kx static long long int bignum = -9223372036854775807LL;
5 kx static unsigned long long int ubignum = BIG64;
5 kx
5 kx struct incomplete_array
5 kx {
5 kx int datasize;
5 kx double data[];
5 kx };
5 kx
5 kx struct named_init {
5 kx int number;
5 kx const wchar_t *name;
5 kx double average;
5 kx };
5 kx
5 kx typedef const char *ccp;
5 kx
5 kx static inline int
5 kx test_restrict (ccp restrict text)
5 kx {
5 kx // See if C++-style comments work.
5 kx // Iterate through items via the restricted pointer.
5 kx // Also check for declarations in for loops.
5 kx for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5 kx continue;
5 kx return 0;
5 kx }
5 kx
5 kx // Check varargs and va_copy.
5 kx static bool
5 kx test_varargs (const char *format, ...)
5 kx {
5 kx va_list args;
5 kx va_start (args, format);
5 kx va_list args_copy;
5 kx va_copy (args_copy, args);
5 kx
5 kx const char *str = "";
5 kx int number = 0;
5 kx float fnumber = 0;
5 kx
5 kx while (*format)
5 kx {
5 kx switch (*format++)
5 kx {
5 kx case 's': // string
5 kx str = va_arg (args_copy, const char *);
5 kx break;
5 kx case 'd': // int
5 kx number = va_arg (args_copy, int);
5 kx break;
5 kx case 'f': // float
5 kx fnumber = va_arg (args_copy, double);
5 kx break;
5 kx default:
5 kx break;
5 kx }
5 kx }
5 kx va_end (args_copy);
5 kx va_end (args);
5 kx
5 kx return *str && number && fnumber;
5 kx }
5 kx // Check _Alignas.
5 kx char _Alignas (double) aligned_as_double;
5 kx char _Alignas (0) no_special_alignment;
5 kx extern char aligned_as_int;
5 kx char _Alignas (0) _Alignas (int) aligned_as_int;
5 kx
5 kx // Check _Alignof.
5 kx enum
5 kx {
5 kx int_alignment = _Alignof (int),
5 kx int_array_alignment = _Alignof (int[100]),
5 kx char_alignment = _Alignof (char)
5 kx };
5 kx _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
5 kx
5 kx // Check _Noreturn.
5 kx int _Noreturn does_not_return (void) { for (;;) continue; }
5 kx
5 kx // Check _Static_assert.
5 kx struct test_static_assert
5 kx {
5 kx int x;
5 kx _Static_assert (sizeof (int) <= sizeof (long int),
5 kx "_Static_assert does not work in struct");
5 kx long int y;
5 kx };
5 kx
5 kx // Check UTF-8 literals.
5 kx #define u8 syntax error!
5 kx char const utf8_literal[] = u8"happens to be ASCII" "another string";
5 kx
5 kx // Check duplicate typedefs.
5 kx typedef long *long_ptr;
5 kx typedef long int *long_ptr;
5 kx typedef long_ptr long_ptr;
5 kx
5 kx // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
5 kx struct anonymous
5 kx {
5 kx union {
5 kx struct { int i; int j; };
5 kx struct { int k; long int l; } w;
5 kx };
5 kx int m;
5 kx } v1;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx // Check bool.
5 kx _Bool success = false;
5 kx
5 kx // Check restrict.
5 kx if (test_restrict ("String literal") == 0)
5 kx success = true;
5 kx char *restrict newvar = "Another string";
5 kx
5 kx // Check varargs.
5 kx success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5 kx test_varargs_macros ();
5 kx
5 kx // Check flexible array members.
5 kx struct incomplete_array *ia =
5 kx malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5 kx ia->datasize = 10;
5 kx for (int i = 0; i < ia->datasize; ++i)
5 kx ia->data[i] = i * 1.234;
5 kx
5 kx // Check named initializers.
5 kx struct named_init ni = {
5 kx .number = 34,
5 kx .name = L"Test wide string",
5 kx .average = 543.34343,
5 kx };
5 kx
5 kx ni.number = 58;
5 kx
5 kx int dynamic_array[ni.number];
5 kx dynamic_array[ni.number - 1] = 543;
5 kx
5 kx // work around unused variable warnings
5 kx return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5 kx || dynamic_array[ni.number - 1] != 543);
5 kx
5 kx v1.i = 2;
5 kx v1.w.k = 5;
5 kx _Static_assert ((offsetof (struct anonymous, i)
5 kx == offsetof (struct anonymous, w.k)),
5 kx "Anonymous union alignment botch");
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -std=gnu11
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c11=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c11" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx ac_prog_cc_stdc_options=
5 kx case "x$ac_cv_prog_cc_c11" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5 kx CC=$CC$ac_prog_cc_stdc_options
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5 kx $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c11" != xno; then :
5 kx ac_prog_cc_stdc=c11
5 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5 kx $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
5 kx if ${ac_cv_prog_cc_c99+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c99=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdbool.h>
5 kx #include <stddef.h>
5 kx #include <stdlib.h>
5 kx #include <wchar.h>
5 kx #include <stdio.h>
5 kx
5 kx // Check varargs macros. These examples are taken from C99 6.10.3.5.
5 kx #define debug(...) fprintf (stderr, __VA_ARGS__)
5 kx #define showlist(...) puts (#__VA_ARGS__)
5 kx #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5 kx static void
5 kx test_varargs_macros (void)
5 kx {
5 kx int x = 1234;
5 kx int y = 5678;
5 kx debug ("Flag");
5 kx debug ("X = %d\n", x);
5 kx showlist (The first, second, and third items.);
5 kx report (x>y, "x is %d but y is %d", x, y);
5 kx }
5 kx
5 kx // Check long long types.
5 kx #define BIG64 18446744073709551615ull
5 kx #define BIG32 4294967295ul
5 kx #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5 kx #if !BIG_OK
5 kx your preprocessor is broken;
5 kx #endif
5 kx #if BIG_OK
5 kx #else
5 kx your preprocessor is broken;
5 kx #endif
5 kx static long long int bignum = -9223372036854775807LL;
5 kx static unsigned long long int ubignum = BIG64;
5 kx
5 kx struct incomplete_array
5 kx {
5 kx int datasize;
5 kx double data[];
5 kx };
5 kx
5 kx struct named_init {
5 kx int number;
5 kx const wchar_t *name;
5 kx double average;
5 kx };
5 kx
5 kx typedef const char *ccp;
5 kx
5 kx static inline int
5 kx test_restrict (ccp restrict text)
5 kx {
5 kx // See if C++-style comments work.
5 kx // Iterate through items via the restricted pointer.
5 kx // Also check for declarations in for loops.
5 kx for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5 kx continue;
5 kx return 0;
5 kx }
5 kx
5 kx // Check varargs and va_copy.
5 kx static bool
5 kx test_varargs (const char *format, ...)
5 kx {
5 kx va_list args;
5 kx va_start (args, format);
5 kx va_list args_copy;
5 kx va_copy (args_copy, args);
5 kx
5 kx const char *str = "";
5 kx int number = 0;
5 kx float fnumber = 0;
5 kx
5 kx while (*format)
5 kx {
5 kx switch (*format++)
5 kx {
5 kx case 's': // string
5 kx str = va_arg (args_copy, const char *);
5 kx break;
5 kx case 'd': // int
5 kx number = va_arg (args_copy, int);
5 kx break;
5 kx case 'f': // float
5 kx fnumber = va_arg (args_copy, double);
5 kx break;
5 kx default:
5 kx break;
5 kx }
5 kx }
5 kx va_end (args_copy);
5 kx va_end (args);
5 kx
5 kx return *str && number && fnumber;
5 kx }
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx // Check bool.
5 kx _Bool success = false;
5 kx
5 kx // Check restrict.
5 kx if (test_restrict ("String literal") == 0)
5 kx success = true;
5 kx char *restrict newvar = "Another string";
5 kx
5 kx // Check varargs.
5 kx success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5 kx test_varargs_macros ();
5 kx
5 kx // Check flexible array members.
5 kx struct incomplete_array *ia =
5 kx malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5 kx ia->datasize = 10;
5 kx for (int i = 0; i < ia->datasize; ++i)
5 kx ia->data[i] = i * 1.234;
5 kx
5 kx // Check named initializers.
5 kx struct named_init ni = {
5 kx .number = 34,
5 kx .name = L"Test wide string",
5 kx .average = 543.34343,
5 kx };
5 kx
5 kx ni.number = 58;
5 kx
5 kx int dynamic_array[ni.number];
5 kx dynamic_array[ni.number - 1] = 543;
5 kx
5 kx // work around unused variable warnings
5 kx return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5 kx || dynamic_array[ni.number - 1] != 543);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c99=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c99" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx ac_prog_cc_stdc_options=
5 kx case "x$ac_cv_prog_cc_c99" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5 kx CC=$CC$ac_prog_cc_stdc_options
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5 kx $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c99" != xno; then :
5 kx ac_prog_cc_stdc=c99
5 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5 kx $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
5 kx if ${ac_cv_prog_cc_c89+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_prog_cc_c89=no
5 kx ac_save_CC=$CC
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx #include <stdio.h>
5 kx struct stat;
5 kx /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5 kx struct buf { int x; };
5 kx FILE * (*rcsopen) (struct buf *, struct stat *, int);
5 kx static char *e (p, i)
5 kx char **p;
5 kx int i;
5 kx {
5 kx return p[i];
5 kx }
5 kx static char *f (char * (*g) (char **, int), char **p, ...)
5 kx {
5 kx char *s;
5 kx va_list v;
5 kx va_start (v,p);
5 kx s = g (p, va_arg (v,int));
5 kx va_end (v);
5 kx return s;
5 kx }
5 kx
5 kx /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5 kx function prototypes and stuff, but not '\xHH' hex character constants.
5 kx These don't provoke an error unfortunately, instead are silently treated
5 kx as 'x'. The following induces an error, until -std is added to get
5 kx proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5 kx array size at least. It's necessary to write '\x00'==0 to get something
5 kx that's true only with -std. */
5 kx int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5 kx
5 kx /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5 kx inside strings and character constants. */
5 kx #define FOO(x) 'x'
5 kx int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5 kx
5 kx int test (int i, double x);
5 kx struct s1 {int (*f) (int a);};
5 kx struct s2 {int (*f) (double a);};
5 kx int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5 kx int argc;
5 kx char **argv;
5 kx int
5 kx main ()
5 kx {
5 kx return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5 kx -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5 kx do
5 kx CC="$ac_save_CC $ac_arg"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_prog_cc_c89=$ac_arg
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx test "x$ac_cv_prog_cc_c89" != "xno" && break
5 kx done
5 kx rm -f conftest.$ac_ext
5 kx CC=$ac_save_CC
5 kx
5 kx fi
5 kx # AC_CACHE_VAL
5 kx ac_prog_cc_stdc_options=
5 kx case "x$ac_cv_prog_cc_c89" in
5 kx x)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5 kx $as_echo "none needed" >&6; } ;;
5 kx xno)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5 kx $as_echo "unsupported" >&6; } ;;
5 kx *)
5 kx ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5 kx CC=$CC$ac_prog_cc_stdc_options
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5 kx $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5 kx esac
5 kx if test "x$ac_cv_prog_cc_c89" != xno; then :
5 kx ac_prog_cc_stdc=c89
5 kx ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5 kx else
5 kx ac_prog_cc_stdc=no
5 kx ac_cv_prog_cc_stdc=no
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5 kx $as_echo_n "checking whether the compiler is clang... " >&6; }
5 kx if ${gl_cv_compiler_clang+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef __clang__
5 kx barfbarf
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_compiler_clang=no
5 kx else
5 kx gl_cv_compiler_clang=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5 kx $as_echo "$gl_cv_compiler_clang" >&6; }
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5 kx $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5 kx if ${gl_cv_compiler_check_decl_option+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test $gl_cv_compiler_clang = yes; then
5 kx save_ac_compile="$ac_compile"
5 kx ac_compile="$ac_compile -Werror=implicit-function-declaration"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5 kx else
5 kx gl_cv_compiler_check_decl_option=none
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_compile="$save_ac_compile"
5 kx else
5 kx gl_cv_compiler_check_decl_option=none
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5 kx $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5 kx if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5 kx ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5 kx else
5 kx ac_compile_for_check_decl="$ac_compile"
5 kx fi
5 kx
5 kx DEPDIR="${am__leading_dot}deps"
5 kx
5 kx ac_config_commands="$ac_config_commands depfiles"
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5 kx $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5 kx cat > confinc.mk << 'END'
5 kx am__doit:
5 kx @echo this is the am__doit target >confinc.out
5 kx .PHONY: am__doit
5 kx END
5 kx am__include="#"
5 kx am__quote=
5 kx # BSD make does it like this.
5 kx echo '.include "confinc.mk" # ignored' > confmf.BSD
5 kx # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5 kx echo 'include confinc.mk # ignored' > confmf.GNU
5 kx _am_result=no
5 kx for s in GNU BSD; do
5 kx { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5 kx (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); }
5 kx case $?:`cat confinc.out 2>/dev/null` in #(
5 kx '0:this is the am__doit target') :
5 kx case $s in #(
5 kx BSD) :
5 kx am__include='.include' am__quote='"' ;; #(
5 kx *) :
5 kx am__include='include' am__quote='' ;;
5 kx esac ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx if test "$am__include" != "#"; then
5 kx _am_result="yes ($s style)"
5 kx break
5 kx fi
5 kx done
5 kx rm -f confinc.* confmf.*
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5 kx $as_echo "${_am_result}" >&6; }
5 kx
5 kx # Check whether --enable-dependency-tracking was given.
5 kx if test "${enable_dependency_tracking+set}" = set; then :
5 kx enableval=$enable_dependency_tracking;
5 kx fi
5 kx
5 kx if test "x$enable_dependency_tracking" != xno; then
5 kx am_depcomp="$ac_aux_dir/depcomp"
5 kx AMDEPBACKSLASH='\'
5 kx am__nodep='_no'
5 kx fi
5 kx if test "x$enable_dependency_tracking" != xno; then
5 kx AMDEP_TRUE=
5 kx AMDEP_FALSE='#'
5 kx else
5 kx AMDEP_TRUE='#'
5 kx AMDEP_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx depcc="$CC" am_compiler_list=
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5 kx $as_echo_n "checking dependency style of $depcc... " >&6; }
5 kx if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5 kx # We make a subdir and do the tests there. Otherwise we can end up
5 kx # making bogus files that we don't know about and never remove. For
5 kx # instance it was reported that on HP-UX the gcc test will end up
5 kx # making a dummy file named 'D' -- because '-MD' means "put the output
5 kx # in D".
5 kx rm -rf conftest.dir
5 kx mkdir conftest.dir
5 kx # Copy depcomp to subdir because otherwise we won't find it if we're
5 kx # using a relative directory.
5 kx cp "$am_depcomp" conftest.dir
5 kx cd conftest.dir
5 kx # We will build objects and dependencies in a subdirectory because
5 kx # it helps to detect inapplicable dependency modes. For instance
5 kx # both Tru64's cc and ICC support -MD to output dependencies as a
5 kx # side effect of compilation, but ICC will put the dependencies in
5 kx # the current directory while Tru64 will put them in the object
5 kx # directory.
5 kx mkdir sub
5 kx
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx if test "$am_compiler_list" = ""; then
5 kx am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5 kx fi
5 kx am__universal=false
5 kx case " $depcc " in #(
5 kx *\ -arch\ *\ -arch\ *) am__universal=true ;;
5 kx esac
5 kx
5 kx for depmode in $am_compiler_list; do
5 kx # Setup a source with many dependencies, because some compilers
5 kx # like to wrap large dependency lists on column 80 (with \), and
5 kx # we should not choose a depcomp mode which is confused by this.
5 kx #
5 kx # We need to recreate these files for each test, as the compiler may
5 kx # overwrite some of them when testing with obscure command lines.
5 kx # This happens at least with the AIX C compiler.
5 kx : > sub/conftest.c
5 kx for i in 1 2 3 4 5 6; do
5 kx echo '#include "conftst'$i'.h"' >> sub/conftest.c
5 kx # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5 kx # Solaris 10 /bin/sh.
5 kx echo '/* dummy */' > sub/conftst$i.h
5 kx done
5 kx echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5 kx
5 kx # We check with '-c' and '-o' for the sake of the "dashmstdout"
5 kx # mode. It turns out that the SunPro C++ compiler does not properly
5 kx # handle '-M -o', and we need to detect this. Also, some Intel
5 kx # versions had trouble with output in subdirs.
5 kx am__obj=sub/conftest.${OBJEXT-o}
5 kx am__minus_obj="-o $am__obj"
5 kx case $depmode in
5 kx gcc)
5 kx # This depmode causes a compiler race in universal mode.
5 kx test "$am__universal" = false || continue
5 kx ;;
5 kx nosideeffect)
5 kx # After this tag, mechanisms are not by side-effect, so they'll
5 kx # only be used when explicitly requested.
5 kx if test "x$enable_dependency_tracking" = xyes; then
5 kx continue
5 kx else
5 kx break
5 kx fi
5 kx ;;
5 kx msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5 kx # This compiler won't grok '-c -o', but also, the minuso test has
5 kx # not run yet. These depmodes are late enough in the game, and
5 kx # so weak that their functioning should not be impacted.
5 kx am__obj=conftest.${OBJEXT-o}
5 kx am__minus_obj=
5 kx ;;
5 kx none) break ;;
5 kx esac
5 kx if depmode=$depmode \
5 kx source=sub/conftest.c object=$am__obj \
5 kx depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5 kx $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5 kx >/dev/null 2>conftest.err &&
5 kx grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5 kx grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5 kx ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5 kx # icc doesn't choke on unknown options, it will just issue warnings
5 kx # or remarks (even with -Werror). So we grep stderr for any message
5 kx # that says an option was ignored or not supported.
5 kx # When given -MP, icc 7.0 and 7.1 complain thusly:
5 kx # icc: Command line warning: ignoring option '-M'; no argument required
5 kx # The diagnosis changed in icc 8.0:
5 kx # icc: Command line remark: option '-MP' not supported
5 kx if (grep 'ignoring option' conftest.err ||
5 kx grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5 kx am_cv_CC_dependencies_compiler_type=$depmode
5 kx break
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx cd ..
5 kx rm -rf conftest.dir
5 kx else
5 kx am_cv_CC_dependencies_compiler_type=none
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5 kx $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5 kx CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5 kx
5 kx if
5 kx test "x$enable_dependency_tracking" != xno \
5 kx && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5 kx am__fastdepCC_TRUE=
5 kx am__fastdepCC_FALSE='#'
5 kx else
5 kx am__fastdepCC_TRUE='#'
5 kx am__fastdepCC_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5 kx $as_echo_n "checking how to run the C preprocessor... " >&6; }
5 kx # On Suns, sometimes $CPP names a directory.
5 kx if test -n "$CPP" && test -d "$CPP"; then
5 kx CPP=
5 kx fi
5 kx if test -z "$CPP"; then
5 kx if ${ac_cv_prog_CPP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Double quotes because CPP needs to be expanded
5 kx for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5 kx do
5 kx ac_preproc_ok=false
5 kx for ac_c_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx
5 kx else
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.i conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then :
5 kx break
5 kx fi
5 kx
5 kx done
5 kx ac_cv_prog_CPP=$CPP
5 kx
5 kx fi
5 kx CPP=$ac_cv_prog_CPP
5 kx else
5 kx ac_cv_prog_CPP=$CPP
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5 kx $as_echo "$CPP" >&6; }
5 kx ac_preproc_ok=false
5 kx for ac_c_preproc_warn_flag in '' yes
5 kx do
5 kx # Use a header file that comes with gcc, so configuring glibc
5 kx # with a fresh cross-compiler works.
5 kx # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5 kx # <limits.h> exists even on freestanding compilers.
5 kx # On the NeXT, cc -E runs the code through the compiler's parser,
5 kx # not just through cpp. "Syntax error" is here to catch this case.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __STDC__
5 kx # include <limits.h>
5 kx #else
5 kx # include <assert.h>
5 kx #endif
5 kx Syntax error
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx
5 kx else
5 kx # Broken: fails on valid input.
5 kx continue
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx # OK, works on sane cases. Now check whether nonexistent headers
5 kx # can be detected and how.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ac_nonexistent.h>
5 kx _ACEOF
5 kx if ac_fn_c_try_cpp "$LINENO"; then :
5 kx # Broken: success on invalid input.
5 kx continue
5 kx else
5 kx # Passes both tests.
5 kx ac_preproc_ok=:
5 kx break
5 kx fi
5 kx rm -f conftest.err conftest.i conftest.$ac_ext
5 kx
5 kx done
5 kx # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5 kx rm -f conftest.i conftest.err conftest.$ac_ext
5 kx if $ac_preproc_ok; then :
5 kx
5 kx else
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5 kx $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5 kx if ${ac_cv_path_GREP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$GREP"; then
5 kx ac_path_GREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in grep ggrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_GREP" || continue
5 kx # Check for GNU ac_path_GREP and select it if it is found.
5 kx # Check for GNU $ac_path_GREP
5 kx case `"$ac_path_GREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo 'GREP' >> "conftest.nl"
5 kx "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_GREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_GREP="$ac_path_GREP"
5 kx ac_path_GREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_GREP_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_GREP"; then
5 kx as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_GREP=$GREP
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5 kx $as_echo "$ac_cv_path_GREP" >&6; }
5 kx GREP="$ac_cv_path_GREP"
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5 kx $as_echo_n "checking for egrep... " >&6; }
5 kx if ${ac_cv_path_EGREP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5 kx then ac_cv_path_EGREP="$GREP -E"
5 kx else
5 kx if test -z "$EGREP"; then
5 kx ac_path_EGREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in egrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_EGREP" || continue
5 kx # Check for GNU ac_path_EGREP and select it if it is found.
5 kx # Check for GNU $ac_path_EGREP
5 kx case `"$ac_path_EGREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo 'EGREP' >> "conftest.nl"
5 kx "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_EGREP="$ac_path_EGREP"
5 kx ac_path_EGREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_EGREP_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_EGREP"; then
5 kx as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_EGREP=$EGREP
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5 kx $as_echo "$ac_cv_path_EGREP" >&6; }
5 kx EGREP="$ac_cv_path_EGREP"
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5 kx $as_echo_n "checking for ANSI C header files... " >&6; }
5 kx if ${ac_cv_header_stdc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <stdarg.h>
5 kx #include <string.h>
5 kx #include <float.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_stdc=yes
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "memchr" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "free" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5 kx if test "$cross_compiling" = yes; then :
5 kx :
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx #include <stdlib.h>
5 kx #if ((' ' & 0x0FF) == 0x020)
5 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5 kx #else
5 kx # define ISLOWER(c) \
5 kx (('a' <= (c) && (c) <= 'i') \
5 kx || ('j' <= (c) && (c) <= 'r') \
5 kx || ('s' <= (c) && (c) <= 'z'))
5 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5 kx #endif
5 kx
5 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5 kx int
5 kx main ()
5 kx {
5 kx int i;
5 kx for (i = 0; i < 256; i++)
5 kx if (XOR (islower (i), ISLOWER (i))
5 kx || toupper (i) != TOUPPER (i))
5 kx return 2;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5 kx $as_echo "$ac_cv_header_stdc" >&6; }
5 kx if test $ac_cv_header_stdc = yes; then
5 kx
5 kx $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5 kx for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5 kx inttypes.h stdint.h unistd.h
5 kx do :
5 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5 kx "
5 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_minix_config_h" = xyes; then :
5 kx MINIX=yes
5 kx else
5 kx MINIX=
5 kx fi
5 kx
5 kx
5 kx if test "$MINIX" = yes; then
5 kx
5 kx $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define _MINIX 1" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5 kx $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5 kx if ${ac_cv_safe_to_define___extensions__+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx # define __EXTENSIONS__ 1
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_safe_to_define___extensions__=yes
5 kx else
5 kx ac_cv_safe_to_define___extensions__=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5 kx $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5 kx test $ac_cv_safe_to_define___extensions__ = yes &&
5 kx $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5 kx
5 kx $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5 kx
5 kx $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5 kx $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5 kx if ${ac_cv_should_define__xopen_source+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_should_define__xopen_source=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <wchar.h>
5 kx mbstate_t x;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define _XOPEN_SOURCE 500
5 kx #include <wchar.h>
5 kx mbstate_t x;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_should_define__xopen_source=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5 kx $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5 kx test $ac_cv_should_define__xopen_source = yes &&
5 kx $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5 kx
5 kx $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5 kx $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5 kx if ${gl_cv_c_amsterdam_compiler+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef __ACK__
5 kx Amsterdam
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Amsterdam" >/dev/null 2>&1; then :
5 kx gl_cv_c_amsterdam_compiler=yes
5 kx else
5 kx gl_cv_c_amsterdam_compiler=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5 kx $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5 kx
5 kx if test $gl_cv_c_amsterdam_compiler = yes; then
5 kx if test -z "$AR"; then
5 kx AR='cc -c.a'
5 kx fi
5 kx if test -z "$ARFLAGS"; then
5 kx ARFLAGS='-o'
5 kx fi
5 kx else
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in ar lib "link -lib"
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AR"; then
5 kx ac_cv_prog_AR="$AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AR=$ac_cv_prog_AR
5 kx if test -n "$AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5 kx $as_echo "$AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$AR" && break
5 kx done
5 kx fi
5 kx if test -z "$AR"; then
5 kx ac_ct_AR=$AR
5 kx for ac_prog in ar lib "link -lib"
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_AR"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
5 kx if test -n "$ac_ct_AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5 kx $as_echo "$ac_ct_AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_AR" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_AR" = x; then
5 kx AR="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx AR=$ac_ct_AR
5 kx fi
5 kx fi
5 kx
5 kx : ${AR=ar}
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5 kx $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5 kx if ${am_cv_ar_interface+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx am_cv_ar_interface=ar
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx int some_variable = 0;
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5 kx (eval $am_ar_try) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if test "$ac_status" -eq 0; then
5 kx am_cv_ar_interface=ar
5 kx else
5 kx am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5 kx (eval $am_ar_try) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if test "$ac_status" -eq 0; then
5 kx am_cv_ar_interface=lib
5 kx else
5 kx am_cv_ar_interface=unknown
5 kx fi
5 kx fi
5 kx rm -f conftest.lib libconftest.a
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5 kx $as_echo "$am_cv_ar_interface" >&6; }
5 kx
5 kx case $am_cv_ar_interface in
5 kx ar)
5 kx ;;
5 kx lib)
5 kx # Microsoft lib, so override with the ar-lib wrapper script.
5 kx # FIXME: It is wrong to rewrite AR.
5 kx # But if we don't then we get into trouble of one sort or another.
5 kx # A longer-term fix would be to have automake use am__AR in this case,
5 kx # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5 kx # similar.
5 kx AR="$am_aux_dir/ar-lib $AR"
5 kx ;;
5 kx unknown)
5 kx as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}ar; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AR"; then
5 kx ac_cv_prog_AR="$AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AR="${ac_tool_prefix}ar"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AR=$ac_cv_prog_AR
5 kx if test -n "$AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5 kx $as_echo "$AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_AR"; then
5 kx ac_ct_AR=$AR
5 kx # Extract the first word of "ar", so it can be a program name with args.
5 kx set dummy ar; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_AR"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_AR="ar"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
5 kx if test -n "$ac_ct_AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5 kx $as_echo "$ac_ct_AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_AR" = x; then
5 kx AR="ar"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx AR=$ac_ct_AR
5 kx fi
5 kx else
5 kx AR="$ac_cv_prog_AR"
5 kx fi
5 kx
5 kx if test -z "$ARFLAGS"; then
5 kx ARFLAGS='cr'
5 kx fi
5 kx
5 kx
5 kx
5 kx if test -z "$RANLIB"; then
5 kx if test $gl_cv_c_amsterdam_compiler = yes; then
5 kx RANLIB=':'
5 kx else
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_RANLIB+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$RANLIB"; then
5 kx ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx RANLIB=$ac_cv_prog_RANLIB
5 kx if test -n "$RANLIB"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5 kx $as_echo "$RANLIB" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_RANLIB"; then
5 kx ac_ct_RANLIB=$RANLIB
5 kx # Extract the first word of "ranlib", so it can be a program name with args.
5 kx set dummy ranlib; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_RANLIB"; then
5 kx ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_RANLIB="ranlib"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5 kx if test -n "$ac_ct_RANLIB"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5 kx $as_echo "$ac_ct_RANLIB" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_RANLIB" = x; then
5 kx RANLIB=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx RANLIB=$ac_ct_RANLIB
5 kx fi
5 kx else
5 kx RANLIB="$ac_cv_prog_RANLIB"
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx
5 kx
5 kx # Make sure we can run config.sub.
5 kx $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5 kx as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5 kx $as_echo_n "checking build system type... " >&6; }
5 kx if ${ac_cv_build+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_build_alias=$build_alias
5 kx test "x$ac_build_alias" = x &&
5 kx ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5 kx test "x$ac_build_alias" = x &&
5 kx as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5 kx ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5 kx $as_echo "$ac_cv_build" >&6; }
5 kx case $ac_cv_build in
5 kx *-*-*) ;;
5 kx *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5 kx esac
5 kx build=$ac_cv_build
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_build
5 kx shift
5 kx build_cpu=$1
5 kx build_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx build_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5 kx $as_echo_n "checking host system type... " >&6; }
5 kx if ${ac_cv_host+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "x$host_alias" = x; then
5 kx ac_cv_host=$ac_cv_build
5 kx else
5 kx ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5 kx as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5 kx $as_echo "$ac_cv_host" >&6; }
5 kx case $ac_cv_host in
5 kx *-*-*) ;;
5 kx *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5 kx esac
5 kx host=$ac_cv_host
5 kx ac_save_IFS=$IFS; IFS='-'
5 kx set x $ac_cv_host
5 kx shift
5 kx host_cpu=$1
5 kx host_vendor=$2
5 kx shift; shift
5 kx # Remember, the first character of IFS is used to create $*,
5 kx # except with old shells:
5 kx host_os=$*
5 kx IFS=$ac_save_IFS
5 kx case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5 kx
5 kx
5 kx # Check whether --enable-largefile was given.
5 kx if test "${enable_largefile+set}" = set; then :
5 kx enableval=$enable_largefile;
5 kx fi
5 kx
5 kx if test "$enable_largefile" != no; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5 kx $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5 kx if ${ac_cv_sys_largefile_CC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_sys_largefile_CC=no
5 kx if test "$GCC" != yes; then
5 kx ac_save_CC=$CC
5 kx while :; do
5 kx # IRIX 6.2 and later do not support large files by default,
5 kx # so use the C compiler's -n32 option if that helps.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx CC="$CC -n32"
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_largefile_CC=' -n32'; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext
5 kx break
5 kx done
5 kx CC=$ac_save_CC
5 kx rm -f conftest.$ac_ext
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5 kx $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5 kx if test "$ac_cv_sys_largefile_CC" != no; then
5 kx CC=$CC$ac_cv_sys_largefile_CC
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5 kx $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5 kx if ${ac_cv_sys_file_offset_bits+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_file_offset_bits=no; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #define _FILE_OFFSET_BITS 64
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_file_offset_bits=64; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_sys_file_offset_bits=unknown
5 kx break
5 kx done
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5 kx $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5 kx case $ac_cv_sys_file_offset_bits in #(
5 kx no | unknown) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx rm -rf conftest*
5 kx if test $ac_cv_sys_file_offset_bits = unknown; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5 kx $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5 kx if ${ac_cv_sys_large_files+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx while :; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_large_files=no; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #define _LARGE_FILES 1
5 kx #include <sys/types.h>
5 kx /* Check that off_t can represent 2**63 - 1 correctly.
5 kx We can't simply define LARGE_OFF_T to be 9223372036854775807,
5 kx since some C++ compilers masquerading as C compilers
5 kx incorrectly reject 9223372036854775807. */
5 kx #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5 kx int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5 kx && LARGE_OFF_T % 2147483647 == 1)
5 kx ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_sys_large_files=1; break
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_cv_sys_large_files=unknown
5 kx break
5 kx done
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5 kx $as_echo "$ac_cv_sys_large_files" >&6; }
5 kx case $ac_cv_sys_large_files in #(
5 kx no | unknown) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define _LARGE_FILES $ac_cv_sys_large_files
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx rm -rf conftest*
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --enable-threads was given.
5 kx if test "${enable_threads+set}" = set; then :
5 kx enableval=$enable_threads; gl_use_threads=$enableval
5 kx else
5 kx if test -n "$gl_use_threads_default"; then
5 kx gl_use_threads="$gl_use_threads_default"
5 kx else
5 kx case "$host_os" in
5 kx osf*) gl_use_threads=no ;;
5 kx cygwin*)
5 kx case `uname -r` in
5 kx 1.[0-5].*) gl_use_threads=no ;;
5 kx *) gl_use_threads=yes ;;
5 kx esac
5 kx ;;
5 kx *) gl_use_threads=yes ;;
5 kx esac
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5 kx # For using <pthread.h>:
5 kx case "$host_os" in
5 kx osf*)
5 kx # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5 kx # groks <pthread.h>. cc also understands the flag -pthread, but
5 kx # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5 kx # 2. putting a flag into CPPFLAGS that has an effect on the linker
5 kx # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
5 kx # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5 kx CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5 kx ;;
5 kx esac
5 kx # Some systems optimize for single-threaded programs by default, and
5 kx # need special flags to disable these optimizations. For example, the
5 kx # definition of 'errno' in <errno.h>.
5 kx case "$host_os" in
5 kx aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5 kx solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx
5 kx # Pre-early section.
5 kx
5 kx
5 kx
5 kx # Code from module absolute-header:
5 kx # Code from module accept:
5 kx # Code from module accept-tests:
5 kx # Code from module alloca:
5 kx # Code from module alloca-opt:
5 kx # Code from module alloca-opt-tests:
5 kx # Code from module arpa_inet:
5 kx # Code from module arpa_inet-tests:
5 kx # Code from module attribute:
5 kx # Code from module autobuild:
5 kx
5 kx
5 kx
5 kx
5 kx if test -z "$AB_PACKAGE"; then
5 kx AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
5 kx $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
5 kx
5 kx if test -z "$AB_VERSION"; then
5 kx AB_VERSION=${PACKAGE_VERSION:-$VERSION}
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
5 kx $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
5 kx
5 kx hostname=`hostname`
5 kx if test "$hostname"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
5 kx $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
5 kx fi
5 kx
5 kx
5 kx
5 kx date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
5 kx if test "$?" != 0; then
5 kx date=`date`
5 kx fi
5 kx if test "$date"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
5 kx $as_echo "$as_me: autobuild timestamp... $date" >&6;}
5 kx fi
5 kx
5 kx # Code from module basename-lgpl:
5 kx # Code from module binary-io:
5 kx # Code from module binary-io-tests:
5 kx # Code from module bind:
5 kx # Code from module bind-tests:
5 kx # Code from module c-ctype:
5 kx # Code from module c-ctype-tests:
5 kx # Code from module c99:
5 kx # Code from module cloexec:
5 kx # Code from module cloexec-tests:
5 kx # Code from module close:
5 kx # Code from module close-tests:
5 kx # Code from module connect:
5 kx # Code from module connect-tests:
5 kx # Code from module csharpcomp-script:
5 kx # Code from module csharpexec-script:
5 kx # Code from module ctype:
5 kx # Code from module ctype-tests:
5 kx # Code from module double-slash-root:
5 kx # Code from module dup2:
5 kx # Code from module dup2-tests:
5 kx # Code from module environ:
5 kx # Code from module environ-tests:
5 kx # Code from module errno:
5 kx # Code from module errno-tests:
5 kx # Code from module error:
5 kx # Code from module extensions:
5 kx # Code from module extern-inline:
5 kx # Code from module fcntl:
5 kx # Code from module fcntl-h:
5 kx # Code from module fcntl-tests:
5 kx # Code from module fd-hook:
5 kx # Code from module fdl-1.3:
5 kx # Code from module fdopen:
5 kx # Code from module fdopen-tests:
5 kx # Code from module fgetc-tests:
5 kx # Code from module filename:
5 kx # Code from module fputc-tests:
5 kx # Code from module fread-tests:
5 kx # Code from module fstat:
5 kx # Code from module fstat-tests:
5 kx # Code from module ftruncate:
5 kx # Code from module ftruncate-tests:
5 kx # Code from module fwrite-tests:
5 kx # Code from module gendocs:
5 kx # Code from module getcwd-lgpl:
5 kx # Code from module getcwd-lgpl-tests:
5 kx # Code from module getdelim:
5 kx # Code from module getdelim-tests:
5 kx # Code from module getdtablesize:
5 kx # Code from module getdtablesize-tests:
5 kx # Code from module getline:
5 kx # Code from module getline-tests:
5 kx # Code from module getopt-gnu:
5 kx # Code from module getopt-gnu-tests:
5 kx # Code from module getopt-posix:
5 kx # Code from module getopt-posix-tests:
5 kx # Code from module getprogname:
5 kx # Code from module getprogname-tests:
5 kx # Code from module gettext-h:
5 kx # Code from module gettimeofday:
5 kx # Code from module gettimeofday-tests:
5 kx # Code from module gnumakefile:
5 kx # Code from module gnupload:
5 kx # Code from module ignore-value:
5 kx # Code from module ignore-value-tests:
5 kx # Code from module include_next:
5 kx # Code from module inet_pton:
5 kx # Code from module inet_pton-tests:
5 kx # Code from module intprops:
5 kx # Code from module intprops-tests:
5 kx # Code from module inttypes:
5 kx # Code from module inttypes-incomplete:
5 kx # Code from module inttypes-tests:
5 kx # Code from module ioctl:
5 kx # Code from module ioctl-tests:
5 kx # Code from module isblank:
5 kx # Code from module isblank-tests:
5 kx # Code from module largefile:
5 kx
5 kx # Code from module limits-h:
5 kx # Code from module limits-h-tests:
5 kx # Code from module listen:
5 kx # Code from module listen-tests:
5 kx # Code from module localtime-buffer:
5 kx # Code from module lock:
5 kx # Code from module lock-tests:
5 kx # Code from module lstat:
5 kx # Code from module lstat-tests:
5 kx # Code from module maintainer-makefile:
5 kx # Code from module malloc-posix:
5 kx # Code from module malloca:
5 kx # Code from module malloca-tests:
5 kx # Code from module manywarnings:
5 kx # Code from module msvc-inval:
5 kx # Code from module msvc-nothrow:
5 kx # Code from module multiarch:
5 kx # Code from module nanosleep:
5 kx # Code from module nanosleep-tests:
5 kx # Code from module netinet_in:
5 kx # Code from module netinet_in-tests:
5 kx # Code from module nocrash:
5 kx # Code from module open:
5 kx # Code from module open-tests:
5 kx # Code from module pathmax:
5 kx # Code from module pathmax-tests:
5 kx # Code from module perror:
5 kx # Code from module perror-tests:
5 kx # Code from module pipe-posix:
5 kx # Code from module pipe-posix-tests:
5 kx # Code from module pmccabe2html:
5 kx # Code from module progname:
5 kx # Code from module pthread-h:
5 kx
5 kx
5 kx if test -z "$gl_anythreadlib_early_done"; then
5 kx case "$host_os" in
5 kx osf*)
5 kx # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5 kx # groks <pthread.h>. cc also understands the flag -pthread, but
5 kx # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5 kx # 2. putting a flag into CPPFLAGS that has an effect on the linker
5 kx # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
5 kx # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5 kx CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5 kx ;;
5 kx esac
5 kx # Some systems optimize for single-threaded programs by default, and
5 kx # need special flags to disable these optimizations. For example, the
5 kx # definition of 'errno' in <errno.h>.
5 kx case "$host_os" in
5 kx aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5 kx solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5 kx esac
5 kx gl_anythreadlib_early_done=done
5 kx fi
5 kx
5 kx # Code from module pthread-h-tests:
5 kx # Code from module pthread-thread:
5 kx # Code from module pthread-thread-tests:
5 kx # Code from module pthread_sigmask:
5 kx # Code from module pthread_sigmask-tests:
5 kx # Code from module putenv:
5 kx # Code from module raise:
5 kx # Code from module raise-tests:
5 kx # Code from module same-inode:
5 kx # Code from module sched:
5 kx # Code from module sched-tests:
5 kx # Code from module select:
5 kx # Code from module select-tests:
5 kx # Code from module setenv:
5 kx # Code from module setenv-tests:
5 kx # Code from module setsockopt:
5 kx # Code from module setsockopt-tests:
5 kx # Code from module sigaction:
5 kx # Code from module sigaction-tests:
5 kx # Code from module signal-h:
5 kx # Code from module signal-h-tests:
5 kx # Code from module sigprocmask:
5 kx # Code from module sigprocmask-tests:
5 kx # Code from module sleep:
5 kx # Code from module sleep-tests:
5 kx # Code from module snippet/_Noreturn:
5 kx # Code from module snippet/arg-nonnull:
5 kx # Code from module snippet/c++defs:
5 kx # Code from module snippet/warn-on-use:
5 kx # Code from module socket:
5 kx # Code from module socketlib:
5 kx # Code from module sockets:
5 kx # Code from module sockets-tests:
5 kx # Code from module socklen:
5 kx # Code from module ssize_t:
5 kx # Code from module stat:
5 kx # Code from module stat-tests:
5 kx # Code from module stat-time:
5 kx # Code from module stat-time-tests:
5 kx # Code from module std-gnu11:
5 kx # Code from module stdalign:
5 kx # Code from module stdalign-tests:
5 kx # Code from module stdarg:
5 kx
5 kx
5 kx
5 kx # Code from module stdarg-tests:
5 kx # Code from module stdbool:
5 kx # Code from module stdbool-tests:
5 kx # Code from module stddef:
5 kx # Code from module stddef-tests:
5 kx # Code from module stdint:
5 kx # Code from module stdint-tests:
5 kx # Code from module stdio:
5 kx # Code from module stdio-tests:
5 kx # Code from module stdlib:
5 kx # Code from module strerror:
5 kx # Code from module strerror-override:
5 kx # Code from module strerror-tests:
5 kx # Code from module strerror_r-posix:
5 kx # Code from module strerror_r-posix-tests:
5 kx # Code from module string:
5 kx # Code from module symlink:
5 kx # Code from module symlink-tests:
5 kx # Code from module sys_ioctl:
5 kx # Code from module sys_ioctl-tests:
5 kx # Code from module sys_select:
5 kx # Code from module sys_select-tests:
5 kx # Code from module sys_socket:
5 kx # Code from module sys_socket-tests:
5 kx # Code from module sys_stat:
5 kx # Code from module sys_time:
5 kx # Code from module sys_time-tests:
5 kx # Code from module sys_types:
5 kx # Code from module sys_types-tests:
5 kx # Code from module sys_uio:
5 kx # Code from module sys_uio-tests:
5 kx # Code from module test-framework-sh:
5 kx # Code from module test-framework-sh-tests:
5 kx # Code from module thread:
5 kx # Code from module thread-tests:
5 kx # Code from module threadlib:
5 kx
5 kx
5 kx
5 kx # Code from module time:
5 kx # Code from module unistd:
5 kx # Code from module unsetenv:
5 kx # Code from module unsetenv-tests:
5 kx # Code from module update-copyright:
5 kx # Code from module useless-if-before-free:
5 kx # Code from module usleep:
5 kx # Code from module usleep-tests:
5 kx # Code from module valgrind-tests:
5 kx # Code from module vc-list-files:
5 kx # Code from module vc-list-files-tests:
5 kx # Code from module verify:
5 kx # Code from module verify-tests:
5 kx # Code from module version-etc:
5 kx # Code from module warnings:
5 kx # Code from module wchar:
5 kx # Code from module windows-mutex:
5 kx # Code from module windows-once:
5 kx # Code from module windows-recmutex:
5 kx # Code from module windows-rwlock:
5 kx # Code from module windows-thread:
5 kx # Code from module windows-tls:
5 kx # Code from module xalloc-oversized:
5 kx # Code from module yield:
5 kx
5 kx
5 kx
5 kx
5 kx # Pre-early section.
5 kx
5 kx
5 kx
5 kx
5 kx # Code from module absolute-header:
5 kx # Code from module accept:
5 kx # Code from module accept-tests:
5 kx # Code from module alloca:
5 kx # Code from module alloca-opt:
5 kx # Code from module alloca-opt-tests:
5 kx # Code from module arpa_inet:
5 kx # Code from module arpa_inet-tests:
5 kx # Code from module attribute:
5 kx # Code from module binary-io:
5 kx # Code from module binary-io-tests:
5 kx # Code from module bind:
5 kx # Code from module bind-tests:
5 kx # Code from module c-ctype:
5 kx # Code from module c-ctype-tests:
5 kx # Code from module c-strcase:
5 kx # Code from module c-strcase-tests:
5 kx # Code from module c99:
5 kx # Code from module cloexec:
5 kx # Code from module cloexec-tests:
5 kx # Code from module close:
5 kx # Code from module close-tests:
5 kx # Code from module connect:
5 kx # Code from module connect-tests:
5 kx # Code from module ctype:
5 kx # Code from module ctype-tests:
5 kx # Code from module dup2:
5 kx # Code from module dup2-tests:
5 kx # Code from module environ:
5 kx # Code from module environ-tests:
5 kx # Code from module errno:
5 kx # Code from module errno-tests:
5 kx # Code from module extensions:
5 kx # Code from module extern-inline:
5 kx # Code from module fcntl:
5 kx # Code from module fcntl-h:
5 kx # Code from module fcntl-h-tests:
5 kx # Code from module fcntl-tests:
5 kx # Code from module fd-hook:
5 kx # Code from module fdopen:
5 kx # Code from module fdopen-tests:
5 kx # Code from module fgetc-tests:
5 kx # Code from module filename:
5 kx # Code from module flexmember:
5 kx # Code from module fputc-tests:
5 kx # Code from module fread-tests:
5 kx # Code from module fstat:
5 kx # Code from module fstat-tests:
5 kx # Code from module ftruncate:
5 kx # Code from module ftruncate-tests:
5 kx # Code from module fwrite-tests:
5 kx # Code from module getcwd-lgpl:
5 kx # Code from module getcwd-lgpl-tests:
5 kx # Code from module getdtablesize:
5 kx # Code from module getdtablesize-tests:
5 kx # Code from module gettext-h:
5 kx # Code from module gettimeofday:
5 kx # Code from module gettimeofday-tests:
5 kx # Code from module gperf:
5 kx # Code from module havelib:
5 kx # Code from module iconv:
5 kx # Code from module iconv-h:
5 kx # Code from module iconv-tests:
5 kx # Code from module iconv_open:
5 kx # Code from module ignore-value:
5 kx # Code from module ignore-value-tests:
5 kx # Code from module include_next:
5 kx # Code from module inet_pton:
5 kx # Code from module inet_pton-tests:
5 kx # Code from module inline:
5 kx # Code from module intprops:
5 kx # Code from module intprops-tests:
5 kx # Code from module inttypes:
5 kx # Code from module inttypes-incomplete:
5 kx # Code from module inttypes-tests:
5 kx # Code from module ioctl:
5 kx # Code from module ioctl-tests:
5 kx # Code from module isblank:
5 kx # Code from module isblank-tests:
5 kx # Code from module langinfo:
5 kx # Code from module langinfo-tests:
5 kx # Code from module largefile:
5 kx
5 kx # Code from module lib-msvc-compat:
5 kx # Code from module lib-symbol-versions:
5 kx # Code from module lib-symbol-visibility:
5 kx # Code from module libc-config:
5 kx # Code from module limits-h:
5 kx # Code from module limits-h-tests:
5 kx # Code from module listen:
5 kx # Code from module listen-tests:
5 kx # Code from module locale:
5 kx # Code from module locale-tests:
5 kx # Code from module localename:
5 kx # Code from module localename-tests:
5 kx # Code from module localtime-buffer:
5 kx # Code from module lock:
5 kx # Code from module lock-tests:
5 kx # Code from module lstat:
5 kx # Code from module lstat-tests:
5 kx # Code from module malloc-posix:
5 kx # Code from module malloca:
5 kx # Code from module malloca-tests:
5 kx # Code from module msvc-inval:
5 kx # Code from module msvc-nothrow:
5 kx # Code from module multiarch:
5 kx # Code from module nanosleep:
5 kx # Code from module nanosleep-tests:
5 kx # Code from module netinet_in:
5 kx # Code from module netinet_in-tests:
5 kx # Code from module open:
5 kx # Code from module open-tests:
5 kx # Code from module pathmax:
5 kx # Code from module pathmax-tests:
5 kx # Code from module perror:
5 kx # Code from module perror-tests:
5 kx # Code from module pipe-posix:
5 kx # Code from module pipe-posix-tests:
5 kx # Code from module pthread-h:
5 kx
5 kx
5 kx if test -z "$gl_anythreadlib_early_done"; then
5 kx case "$host_os" in
5 kx osf*)
5 kx # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5 kx # groks <pthread.h>. cc also understands the flag -pthread, but
5 kx # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5 kx # 2. putting a flag into CPPFLAGS that has an effect on the linker
5 kx # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
5 kx # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5 kx CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5 kx ;;
5 kx esac
5 kx # Some systems optimize for single-threaded programs by default, and
5 kx # need special flags to disable these optimizations. For example, the
5 kx # definition of 'errno' in <errno.h>.
5 kx case "$host_os" in
5 kx aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5 kx solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5 kx esac
5 kx gl_anythreadlib_early_done=done
5 kx fi
5 kx
5 kx # Code from module pthread-h-tests:
5 kx # Code from module pthread-thread:
5 kx # Code from module pthread-thread-tests:
5 kx # Code from module pthread_sigmask:
5 kx # Code from module pthread_sigmask-tests:
5 kx # Code from module putenv:
5 kx # Code from module raise:
5 kx # Code from module raise-tests:
5 kx # Code from module same-inode:
5 kx # Code from module sched:
5 kx # Code from module sched-tests:
5 kx # Code from module select:
5 kx # Code from module select-tests:
5 kx # Code from module setenv:
5 kx # Code from module setenv-tests:
5 kx # Code from module setlocale:
5 kx # Code from module setlocale-null:
5 kx # Code from module setlocale-null-tests:
5 kx # Code from module setlocale-tests:
5 kx # Code from module setsockopt:
5 kx # Code from module setsockopt-tests:
5 kx # Code from module sigaction:
5 kx # Code from module sigaction-tests:
5 kx # Code from module signal-h:
5 kx # Code from module signal-h-tests:
5 kx # Code from module sigprocmask:
5 kx # Code from module sigprocmask-tests:
5 kx # Code from module sleep:
5 kx # Code from module sleep-tests:
5 kx # Code from module snippet/_Noreturn:
5 kx # Code from module snippet/arg-nonnull:
5 kx # Code from module snippet/c++defs:
5 kx # Code from module snippet/unused-parameter:
5 kx # Code from module snippet/warn-on-use:
5 kx # Code from module socket:
5 kx # Code from module socketlib:
5 kx # Code from module sockets:
5 kx # Code from module sockets-tests:
5 kx # Code from module socklen:
5 kx # Code from module ssize_t:
5 kx # Code from module stat:
5 kx # Code from module stat-tests:
5 kx # Code from module stat-time:
5 kx # Code from module stat-time-tests:
5 kx # Code from module std-gnu11:
5 kx # Code from module stdalign:
5 kx # Code from module stdalign-tests:
5 kx # Code from module stdbool:
5 kx # Code from module stdbool-tests:
5 kx # Code from module stddef:
5 kx # Code from module stddef-tests:
5 kx # Code from module stdint:
5 kx # Code from module stdint-tests:
5 kx # Code from module stdio:
5 kx # Code from module stdio-tests:
5 kx # Code from module stdlib:
5 kx # Code from module stdlib-tests:
5 kx # Code from module strerror:
5 kx # Code from module strerror-override:
5 kx # Code from module strerror-tests:
5 kx # Code from module strerror_r-posix:
5 kx # Code from module strerror_r-posix-tests:
5 kx # Code from module striconv:
5 kx # Code from module striconv-tests:
5 kx # Code from module string:
5 kx # Code from module strverscmp:
5 kx # Code from module strverscmp-tests:
5 kx # Code from module symlink:
5 kx # Code from module symlink-tests:
5 kx # Code from module sys_ioctl:
5 kx # Code from module sys_ioctl-tests:
5 kx # Code from module sys_select:
5 kx # Code from module sys_select-tests:
5 kx # Code from module sys_socket:
5 kx # Code from module sys_socket-tests:
5 kx # Code from module sys_stat:
5 kx # Code from module sys_stat-tests:
5 kx # Code from module sys_time:
5 kx # Code from module sys_time-tests:
5 kx # Code from module sys_types:
5 kx # Code from module sys_types-tests:
5 kx # Code from module sys_uio:
5 kx # Code from module sys_uio-tests:
5 kx # Code from module test-framework-sh:
5 kx # Code from module test-framework-sh-tests:
5 kx # Code from module thread:
5 kx # Code from module thread-tests:
5 kx # Code from module threadlib:
5 kx
5 kx
5 kx
5 kx # Code from module time:
5 kx # Code from module time-tests:
5 kx # Code from module unistd:
5 kx # Code from module unistd-tests:
5 kx # Code from module unistr/base:
5 kx # Code from module unistr/u8-check:
5 kx # Code from module unistr/u8-check-tests:
5 kx # Code from module unistr/u8-mbtoucr:
5 kx # Code from module unistr/u8-mbtoucr-tests:
5 kx # Code from module unistr/u8-uctomb:
5 kx # Code from module unistr/u8-uctomb-tests:
5 kx # Code from module unitypes:
5 kx # Code from module unsetenv:
5 kx # Code from module unsetenv-tests:
5 kx # Code from module usleep:
5 kx # Code from module usleep-tests:
5 kx # Code from module verify:
5 kx # Code from module verify-tests:
5 kx # Code from module wchar:
5 kx # Code from module windows-mutex:
5 kx # Code from module windows-once:
5 kx # Code from module windows-recmutex:
5 kx # Code from module windows-rwlock:
5 kx # Code from module windows-thread:
5 kx # Code from module windows-tls:
5 kx # Code from module xalloc-oversized:
5 kx # Code from module yield:
5 kx
5 kx
5 kx # For DEF file.
5 kx DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in ar lib "link -lib"
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AR"; then
5 kx ac_cv_prog_AR="$AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AR=$ac_cv_prog_AR
5 kx if test -n "$AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5 kx $as_echo "$AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$AR" && break
5 kx done
5 kx fi
5 kx if test -z "$AR"; then
5 kx ac_ct_AR=$AR
5 kx for ac_prog in ar lib "link -lib"
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_AR"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
5 kx if test -n "$ac_ct_AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5 kx $as_echo "$ac_ct_AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_AR" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_AR" = x; then
5 kx AR="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx AR=$ac_ct_AR
5 kx fi
5 kx fi
5 kx
5 kx : ${AR=ar}
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5 kx $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5 kx if ${am_cv_ar_interface+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx am_cv_ar_interface=ar
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx int some_variable = 0;
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5 kx (eval $am_ar_try) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if test "$ac_status" -eq 0; then
5 kx am_cv_ar_interface=ar
5 kx else
5 kx am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5 kx (eval $am_ar_try) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if test "$ac_status" -eq 0; then
5 kx am_cv_ar_interface=lib
5 kx else
5 kx am_cv_ar_interface=unknown
5 kx fi
5 kx fi
5 kx rm -f conftest.lib libconftest.a
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5 kx $as_echo "$am_cv_ar_interface" >&6; }
5 kx
5 kx case $am_cv_ar_interface in
5 kx ar)
5 kx ;;
5 kx lib)
5 kx # Microsoft lib, so override with the ar-lib wrapper script.
5 kx # FIXME: It is wrong to rewrite AR.
5 kx # But if we don't then we get into trouble of one sort or another.
5 kx # A longer-term fix would be to have automake use am__AR in this case,
5 kx # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5 kx # similar.
5 kx AR="$am_aux_dir/ar-lib $AR"
5 kx ;;
5 kx unknown)
5 kx as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx case `pwd` in
5 kx *\ * | *\ *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5 kx $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx macro_version='2.4.6'
5 kx macro_revision='2.4.6'
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ltmain=$ac_aux_dir/ltmain.sh
5 kx
5 kx # Backslashify metacharacters that are still active within
5 kx # double-quoted strings.
5 kx sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5 kx
5 kx # Same as above, but do not quote variable references.
5 kx double_quote_subst='s/\(["`\\]\)/\\\1/g'
5 kx
5 kx # Sed substitution to delay expansion of an escaped shell variable in a
5 kx # double_quote_subst'ed string.
5 kx delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5 kx
5 kx # Sed substitution to delay expansion of an escaped single quote.
5 kx delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5 kx
5 kx # Sed substitution to avoid accidental globbing in evaled expressions
5 kx no_glob_subst='s/\*/\\\*/g'
5 kx
5 kx ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5 kx ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5 kx ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5 kx $as_echo_n "checking how to print strings... " >&6; }
5 kx # Test print first, because it will be a builtin if present.
5 kx if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5 kx test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5 kx ECHO='print -r --'
5 kx elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5 kx ECHO='printf %s\n'
5 kx else
5 kx # Use this function as a fallback that always works.
5 kx func_fallback_echo ()
5 kx {
5 kx eval 'cat <<_LTECHO_EOF
5 kx $1
5 kx _LTECHO_EOF'
5 kx }
5 kx ECHO='func_fallback_echo'
5 kx fi
5 kx
5 kx # func_echo_all arg...
5 kx # Invoke $ECHO with all args, space-separated.
5 kx func_echo_all ()
5 kx {
5 kx $ECHO ""
5 kx }
5 kx
5 kx case $ECHO in
5 kx printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5 kx $as_echo "printf" >&6; } ;;
5 kx print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5 kx $as_echo "print -r" >&6; } ;;
5 kx *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5 kx $as_echo "cat" >&6; } ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5 kx $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5 kx if ${ac_cv_path_SED+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5 kx for ac_i in 1 2 3 4 5 6 7; do
5 kx ac_script="$ac_script$as_nl$ac_script"
5 kx done
5 kx echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5 kx { ac_script=; unset ac_script;}
5 kx if test -z "$SED"; then
5 kx ac_path_SED_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in sed gsed; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_SED" || continue
5 kx # Check for GNU ac_path_SED and select it if it is found.
5 kx # Check for GNU $ac_path_SED
5 kx case `"$ac_path_SED" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo '' >> "conftest.nl"
5 kx "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_SED_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_SED="$ac_path_SED"
5 kx ac_path_SED_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_SED_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_SED"; then
5 kx as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_SED=$SED
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5 kx $as_echo "$ac_cv_path_SED" >&6; }
5 kx SED="$ac_cv_path_SED"
5 kx rm -f conftest.sed
5 kx
5 kx test -z "$SED" && SED=sed
5 kx Xsed="$SED -e 1s/^X//"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5 kx $as_echo_n "checking for fgrep... " >&6; }
5 kx if ${ac_cv_path_FGREP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5 kx then ac_cv_path_FGREP="$GREP -F"
5 kx else
5 kx if test -z "$FGREP"; then
5 kx ac_path_FGREP_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in fgrep; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_FGREP" || continue
5 kx # Check for GNU ac_path_FGREP and select it if it is found.
5 kx # Check for GNU $ac_path_FGREP
5 kx case `"$ac_path_FGREP" --version 2>&1` in
5 kx *GNU*)
5 kx ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5 kx *)
5 kx ac_count=0
5 kx $as_echo_n 0123456789 >"conftest.in"
5 kx while :
5 kx do
5 kx cat "conftest.in" "conftest.in" >"conftest.tmp"
5 kx mv "conftest.tmp" "conftest.in"
5 kx cp "conftest.in" "conftest.nl"
5 kx $as_echo 'FGREP' >> "conftest.nl"
5 kx "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5 kx diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5 kx as_fn_arith $ac_count + 1 && ac_count=$as_val
5 kx if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5 kx # Best one so far, save it but keep looking for a better one
5 kx ac_cv_path_FGREP="$ac_path_FGREP"
5 kx ac_path_FGREP_max=$ac_count
5 kx fi
5 kx # 10*(2^10) chars as input seems more than enough
5 kx test $ac_count -gt 10 && break
5 kx done
5 kx rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5 kx esac
5 kx
5 kx $ac_path_FGREP_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_FGREP"; then
5 kx as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5 kx fi
5 kx else
5 kx ac_cv_path_FGREP=$FGREP
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5 kx $as_echo "$ac_cv_path_FGREP" >&6; }
5 kx FGREP="$ac_cv_path_FGREP"
5 kx
5 kx
5 kx test -z "$GREP" && GREP=grep
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-gnu-ld was given.
5 kx if test "${with_gnu_ld+set}" = set; then :
5 kx withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5 kx else
5 kx with_gnu_ld=no
5 kx fi
5 kx
5 kx ac_prog=ld
5 kx if test yes = "$GCC"; then
5 kx # Check if gcc -print-prog-name=ld gives a path.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5 kx $as_echo_n "checking for ld used by $CC... " >&6; }
5 kx case $host in
5 kx *-*-mingw*)
5 kx # gcc leaves a trailing carriage return, which upsets mingw
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5 kx *)
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5 kx esac
5 kx case $ac_prog in
5 kx # Accept absolute paths.
5 kx [\\/]* | ?:[\\/]*)
5 kx re_direlt='/[^/][^/]*/\.\./'
5 kx # Canonicalize the pathname of ld
5 kx ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5 kx while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5 kx ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5 kx done
5 kx test -z "$LD" && LD=$ac_prog
5 kx ;;
5 kx "")
5 kx # If it fails, then pretend we aren't using GCC.
5 kx ac_prog=ld
5 kx ;;
5 kx *)
5 kx # If it is relative, then search for the first ld in PATH.
5 kx with_gnu_ld=unknown
5 kx ;;
5 kx esac
5 kx elif test yes = "$with_gnu_ld"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5 kx $as_echo_n "checking for GNU ld... " >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5 kx $as_echo_n "checking for non-GNU ld... " >&6; }
5 kx fi
5 kx if ${lt_cv_path_LD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$LD"; then
5 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS=$lt_save_ifs
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5 kx lt_cv_path_LD=$ac_dir/$ac_prog
5 kx # Check to see if the program is GNU ld. I'd rather use --version,
5 kx # but apparently some variants of GNU ld only accept -v.
5 kx # Break only if it was the GNU/non-GNU ld that we prefer.
5 kx case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx test no != "$with_gnu_ld" && break
5 kx ;;
5 kx *)
5 kx test yes != "$with_gnu_ld" && break
5 kx ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS=$lt_save_ifs
5 kx else
5 kx lt_cv_path_LD=$LD # Let the user override the test with a path.
5 kx fi
5 kx fi
5 kx
5 kx LD=$lt_cv_path_LD
5 kx if test -n "$LD"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5 kx $as_echo "$LD" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5 kx $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5 kx if ${lt_cv_prog_gnu_ld+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
5 kx case `$LD -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx lt_cv_prog_gnu_ld=yes
5 kx ;;
5 kx *)
5 kx lt_cv_prog_gnu_ld=no
5 kx ;;
5 kx esac
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5 kx $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5 kx with_gnu_ld=$lt_cv_prog_gnu_ld
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5 kx $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5 kx if ${lt_cv_path_NM+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$NM"; then
5 kx # Let the user override the test.
5 kx lt_cv_path_NM=$NM
5 kx else
5 kx lt_nm_to_check=${ac_tool_prefix}nm
5 kx if test -n "$ac_tool_prefix" \
5 kx && { test "$build" = "$host" \
5 kx || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
5 kx }; then
5 kx lt_nm_to_check="$lt_nm_to_check nm"
5 kx fi
5 kx for lt_tmp_nm in $lt_nm_to_check; do
5 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5 kx IFS=$lt_save_ifs
5 kx test -z "$ac_dir" && ac_dir=.
5 kx tmp_nm=$ac_dir/$lt_tmp_nm
5 kx if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5 kx # Check to see if the nm accepts a BSD-compat flag.
5 kx # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5 kx # nm: unknown option "B" ignored
5 kx # Tru64's nm complains that /dev/null is an invalid object file
5 kx # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5 kx case $build_os in
5 kx mingw*) lt_bad_file=conftest.nm/nofile ;;
5 kx *) lt_bad_file=/dev/null ;;
5 kx esac
5 kx case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5 kx *$lt_bad_file* | *'Invalid file or object type'*)
5 kx lt_cv_path_NM="$tmp_nm -B"
5 kx break 2
5 kx ;;
5 kx *)
5 kx case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5 kx */dev/null*)
5 kx lt_cv_path_NM="$tmp_nm -p"
5 kx break 2
5 kx ;;
5 kx *)
5 kx lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5 kx continue # so that we can try to find one that supports BSD flags
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS=$lt_save_ifs
5 kx done
5 kx : ${lt_cv_path_NM=no}
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5 kx $as_echo "$lt_cv_path_NM" >&6; }
5 kx if test no != "$lt_cv_path_NM"; then
5 kx NM=$lt_cv_path_NM
5 kx else
5 kx # Didn't find any BSD compatible name lister, look for dumpbin.
5 kx if test -n "$DUMPBIN"; then :
5 kx # Let the user override the test.
5 kx else
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in dumpbin "link -dump"
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_DUMPBIN+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$DUMPBIN"; then
5 kx ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx DUMPBIN=$ac_cv_prog_DUMPBIN
5 kx if test -n "$DUMPBIN"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5 kx $as_echo "$DUMPBIN" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$DUMPBIN" && break
5 kx done
5 kx fi
5 kx if test -z "$DUMPBIN"; then
5 kx ac_ct_DUMPBIN=$DUMPBIN
5 kx for ac_prog in dumpbin "link -dump"
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_DUMPBIN"; then
5 kx ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5 kx if test -n "$ac_ct_DUMPBIN"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5 kx $as_echo "$ac_ct_DUMPBIN" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_DUMPBIN" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_DUMPBIN" = x; then
5 kx DUMPBIN=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx DUMPBIN=$ac_ct_DUMPBIN
5 kx fi
5 kx fi
5 kx
5 kx case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5 kx *COFF*)
5 kx DUMPBIN="$DUMPBIN -symbols -headers"
5 kx ;;
5 kx *)
5 kx DUMPBIN=:
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test : != "$DUMPBIN"; then
5 kx NM=$DUMPBIN
5 kx fi
5 kx fi
5 kx test -z "$NM" && NM=nm
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5 kx $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5 kx if ${lt_cv_nm_interface+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_nm_interface="BSD nm"
5 kx echo "int some_variable = 0;" > conftest.$ac_ext
5 kx (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5 kx (eval "$ac_compile" 2>conftest.err)
5 kx cat conftest.err >&5
5 kx (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5 kx (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5 kx cat conftest.err >&5
5 kx (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5 kx cat conftest.out >&5
5 kx if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5 kx lt_cv_nm_interface="MS dumpbin"
5 kx fi
5 kx rm -f conftest*
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5 kx $as_echo "$lt_cv_nm_interface" >&6; }
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5 kx $as_echo_n "checking whether ln -s works... " >&6; }
5 kx LN_S=$as_ln_s
5 kx if test "$LN_S" = "ln -s"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5 kx $as_echo "no, using $LN_S" >&6; }
5 kx fi
5 kx
5 kx # find the maximum length of command line arguments
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5 kx $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5 kx if ${lt_cv_sys_max_cmd_len+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx i=0
5 kx teststring=ABCD
5 kx
5 kx case $build_os in
5 kx msdosdjgpp*)
5 kx # On DJGPP, this test can blow up pretty badly due to problems in libc
5 kx # (any single argument exceeding 2000 bytes causes a buffer overrun
5 kx # during glob expansion). Even if it were fixed, the result of this
5 kx # check would be larger than it should be.
5 kx lt_cv_sys_max_cmd_len=12288; # 12K is about right
5 kx ;;
5 kx
5 kx gnu*)
5 kx # Under GNU Hurd, this test is not required because there is
5 kx # no limit to the length of command line arguments.
5 kx # Libtool will interpret -1 as no limit whatsoever
5 kx lt_cv_sys_max_cmd_len=-1;
5 kx ;;
5 kx
5 kx cygwin* | mingw* | cegcc*)
5 kx # On Win9x/ME, this test blows up -- it succeeds, but takes
5 kx # about 5 minutes as the teststring grows exponentially.
5 kx # Worse, since 9x/ME are not pre-emptively multitasking,
5 kx # you end up with a "frozen" computer, even though with patience
5 kx # the test eventually succeeds (with a max line length of 256k).
5 kx # Instead, let's just punt: use the minimum linelength reported by
5 kx # all of the supported platforms: 8192 (on NT/2K/XP).
5 kx lt_cv_sys_max_cmd_len=8192;
5 kx ;;
5 kx
5 kx mint*)
5 kx # On MiNT this can take a long time and run out of memory.
5 kx lt_cv_sys_max_cmd_len=8192;
5 kx ;;
5 kx
5 kx amigaos*)
5 kx # On AmigaOS with pdksh, this test takes hours, literally.
5 kx # So we just punt and use a minimum line length of 8192.
5 kx lt_cv_sys_max_cmd_len=8192;
5 kx ;;
5 kx
5 kx bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5 kx # This has been around since 386BSD, at least. Likely further.
5 kx if test -x /sbin/sysctl; then
5 kx lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5 kx elif test -x /usr/sbin/sysctl; then
5 kx lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5 kx else
5 kx lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5 kx fi
5 kx # And add a safety zone
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5 kx ;;
5 kx
5 kx interix*)
5 kx # We know the value 262144 and hardcode it with a safety zone (like BSD)
5 kx lt_cv_sys_max_cmd_len=196608
5 kx ;;
5 kx
5 kx os2*)
5 kx # The test takes a long time on OS/2.
5 kx lt_cv_sys_max_cmd_len=8192
5 kx ;;
5 kx
5 kx osf*)
5 kx # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5 kx # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5 kx # nice to cause kernel panics so lets avoid the loop below.
5 kx # First set a reasonable default.
5 kx lt_cv_sys_max_cmd_len=16384
5 kx #
5 kx if test -x /sbin/sysconfig; then
5 kx case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5 kx *1*) lt_cv_sys_max_cmd_len=-1 ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx sco3.2v5*)
5 kx lt_cv_sys_max_cmd_len=102400
5 kx ;;
5 kx sysv5* | sco5v6* | sysv4.2uw2*)
5 kx kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5 kx if test -n "$kargmax"; then
5 kx lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5 kx else
5 kx lt_cv_sys_max_cmd_len=32768
5 kx fi
5 kx ;;
5 kx *)
5 kx lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5 kx if test -n "$lt_cv_sys_max_cmd_len" && \
5 kx test undefined != "$lt_cv_sys_max_cmd_len"; then
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5 kx else
5 kx # Make teststring a little bigger before we do anything with it.
5 kx # a 1K string should be a reasonable start.
5 kx for i in 1 2 3 4 5 6 7 8; do
5 kx teststring=$teststring$teststring
5 kx done
5 kx SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5 kx # If test is not a shell built-in, we'll probably end up computing a
5 kx # maximum length that is only half of the actual maximum length, but
5 kx # we can't tell.
5 kx while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5 kx = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5 kx test 17 != "$i" # 1/2 MB should be enough
5 kx do
5 kx i=`expr $i + 1`
5 kx teststring=$teststring$teststring
5 kx done
5 kx # Only check the string length outside the loop.
5 kx lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5 kx teststring=
5 kx # Add a significant safety factor because C++ compilers can tack on
5 kx # massive amounts of additional arguments before passing them to the
5 kx # linker. It appears as though 1/2 is a usable value.
5 kx lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx if test -n "$lt_cv_sys_max_cmd_len"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5 kx $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5 kx $as_echo "none" >&6; }
5 kx fi
5 kx max_cmd_len=$lt_cv_sys_max_cmd_len
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx : ${CP="cp -f"}
5 kx : ${MV="mv -f"}
5 kx : ${RM="rm -f"}
5 kx
5 kx if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5 kx lt_unset=unset
5 kx else
5 kx lt_unset=false
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # test EBCDIC or ASCII
5 kx case `echo X|tr X '\101'` in
5 kx A) # ASCII based system
5 kx # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5 kx lt_SP2NL='tr \040 \012'
5 kx lt_NL2SP='tr \015\012 \040\040'
5 kx ;;
5 kx *) # EBCDIC based system
5 kx lt_SP2NL='tr \100 \n'
5 kx lt_NL2SP='tr \r\n \100\100'
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5 kx $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5 kx if ${lt_cv_to_host_file_cmd+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $host in
5 kx *-*-mingw* )
5 kx case $build in
5 kx *-*-mingw* ) # actually msys
5 kx lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5 kx ;;
5 kx *-*-cygwin* )
5 kx lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5 kx ;;
5 kx * ) # otherwise, assume *nix
5 kx lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5 kx ;;
5 kx esac
5 kx ;;
5 kx *-*-cygwin* )
5 kx case $build in
5 kx *-*-mingw* ) # actually msys
5 kx lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5 kx ;;
5 kx *-*-cygwin* )
5 kx lt_cv_to_host_file_cmd=func_convert_file_noop
5 kx ;;
5 kx * ) # otherwise, assume *nix
5 kx lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5 kx ;;
5 kx esac
5 kx ;;
5 kx * ) # unhandled hosts (and "normal" native builds)
5 kx lt_cv_to_host_file_cmd=func_convert_file_noop
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx to_host_file_cmd=$lt_cv_to_host_file_cmd
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5 kx $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5 kx $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5 kx if ${lt_cv_to_tool_file_cmd+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx #assume ordinary cross tools, or native build.
5 kx lt_cv_to_tool_file_cmd=func_convert_file_noop
5 kx case $host in
5 kx *-*-mingw* )
5 kx case $build in
5 kx *-*-mingw* ) # actually msys
5 kx lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5 kx $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5 kx $as_echo_n "checking for $LD option to reload object files... " >&6; }
5 kx if ${lt_cv_ld_reload_flag+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_ld_reload_flag='-r'
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5 kx $as_echo "$lt_cv_ld_reload_flag" >&6; }
5 kx reload_flag=$lt_cv_ld_reload_flag
5 kx case $reload_flag in
5 kx "" | " "*) ;;
5 kx *) reload_flag=" $reload_flag" ;;
5 kx esac
5 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
5 kx case $host_os in
5 kx cygwin* | mingw* | pw32* | cegcc*)
5 kx if test yes != "$GCC"; then
5 kx reload_cmds=false
5 kx fi
5 kx ;;
5 kx darwin*)
5 kx if test yes = "$GCC"; then
5 kx reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5 kx else
5 kx reload_cmds='$LD$reload_flag -o $output$reload_objs'
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}objdump; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_OBJDUMP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$OBJDUMP"; then
5 kx ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx OBJDUMP=$ac_cv_prog_OBJDUMP
5 kx if test -n "$OBJDUMP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5 kx $as_echo "$OBJDUMP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_OBJDUMP"; then
5 kx ac_ct_OBJDUMP=$OBJDUMP
5 kx # Extract the first word of "objdump", so it can be a program name with args.
5 kx set dummy objdump; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_OBJDUMP"; then
5 kx ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_OBJDUMP="objdump"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5 kx if test -n "$ac_ct_OBJDUMP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5 kx $as_echo "$ac_ct_OBJDUMP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_OBJDUMP" = x; then
5 kx OBJDUMP="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx OBJDUMP=$ac_ct_OBJDUMP
5 kx fi
5 kx else
5 kx OBJDUMP="$ac_cv_prog_OBJDUMP"
5 kx fi
5 kx
5 kx test -z "$OBJDUMP" && OBJDUMP=objdump
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5 kx $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5 kx if ${lt_cv_deplibs_check_method+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_file_magic_cmd='$MAGIC_CMD'
5 kx lt_cv_file_magic_test_file=
5 kx lt_cv_deplibs_check_method='unknown'
5 kx # Need to set the preceding variable on all platforms that support
5 kx # interlibrary dependencies.
5 kx # 'none' -- dependencies not supported.
5 kx # 'unknown' -- same as none, but documents that we really don't know.
5 kx # 'pass_all' -- all dependencies passed with no checks.
5 kx # 'test_compile' -- check by making test program.
5 kx # 'file_magic [[regex]]' -- check by looking for files in library path
5 kx # that responds to the $file_magic_cmd with a given extended regex.
5 kx # If you have 'file' or equivalent on your system and you're not sure
5 kx # whether 'pass_all' will *always* work, you probably want this one.
5 kx
5 kx case $host_os in
5 kx aix[4-9]*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx beos*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5 kx lt_cv_file_magic_cmd='/usr/bin/file -L'
5 kx lt_cv_file_magic_test_file=/shlib/libc.so
5 kx ;;
5 kx
5 kx cygwin*)
5 kx # func_win32_libid is a shell function defined in ltmain.sh
5 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5 kx lt_cv_file_magic_cmd='func_win32_libid'
5 kx ;;
5 kx
5 kx mingw* | pw32*)
5 kx # Base MSYS/MinGW do not provide the 'file' command needed by
5 kx # func_win32_libid shell function, so use a weaker test based on 'objdump',
5 kx # unless we find 'file', for example because we are cross-compiling.
5 kx if ( file / ) >/dev/null 2>&1; then
5 kx lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5 kx lt_cv_file_magic_cmd='func_win32_libid'
5 kx else
5 kx # Keep this pattern in sync with the one in func_win32_libid.
5 kx lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
5 kx fi
5 kx ;;
5 kx
5 kx cegcc*)
5 kx # use the weaker test based on 'objdump'. See mingw*.
5 kx lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5 kx lt_cv_file_magic_cmd='$OBJDUMP -f'
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx freebsd* | dragonfly*)
5 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5 kx case $host_cpu in
5 kx i*86 )
5 kx # Not sure whether the presence of OpenBSD here was a mistake.
5 kx # Let's accept both of them until this is cleared up.
5 kx lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5 kx lt_cv_file_magic_cmd=/usr/bin/file
5 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5 kx ;;
5 kx esac
5 kx else
5 kx lt_cv_deplibs_check_method=pass_all
5 kx fi
5 kx ;;
5 kx
5 kx haiku*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx hpux10.20* | hpux11*)
5 kx lt_cv_file_magic_cmd=/usr/bin/file
5 kx case $host_cpu in
5 kx ia64*)
5 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5 kx lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5 kx ;;
5 kx hppa*64*)
5 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]'
5 kx lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5 kx ;;
5 kx *)
5 kx lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5 kx lt_cv_file_magic_test_file=/usr/lib/libc.sl
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx case $LD in
5 kx *-32|*"-32 ") libmagic=32-bit;;
5 kx *-n32|*"-n32 ") libmagic=N32;;
5 kx *-64|*"-64 ") libmagic=64-bit;;
5 kx *) libmagic=never-match;;
5 kx esac
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx # This must be glibc/ELF.
5 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5 kx else
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5 kx fi
5 kx ;;
5 kx
5 kx newos6*)
5 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5 kx lt_cv_file_magic_cmd=/usr/bin/file
5 kx lt_cv_file_magic_test_file=/usr/lib/libnls.so
5 kx ;;
5 kx
5 kx *nto* | *qnx*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx openbsd* | bitrig*)
5 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5 kx else
5 kx lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5 kx fi
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx rdos*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx solaris*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx
5 kx sysv4 | sysv4.3*)
5 kx case $host_vendor in
5 kx motorola)
5 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]'
5 kx lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5 kx ;;
5 kx ncr)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx sequent)
5 kx lt_cv_file_magic_cmd='/bin/file'
5 kx lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5 kx ;;
5 kx sni)
5 kx lt_cv_file_magic_cmd='/bin/file'
5 kx lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5 kx lt_cv_file_magic_test_file=/lib/libc.so
5 kx ;;
5 kx siemens)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx pc)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx tpf*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx os2*)
5 kx lt_cv_deplibs_check_method=pass_all
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5 kx $as_echo "$lt_cv_deplibs_check_method" >&6; }
5 kx
5 kx file_magic_glob=
5 kx want_nocaseglob=no
5 kx if test "$build" = "$host"; then
5 kx case $host_os in
5 kx mingw* | pw32*)
5 kx if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5 kx want_nocaseglob=yes
5 kx else
5 kx file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5 kx fi
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx file_magic_cmd=$lt_cv_file_magic_cmd
5 kx deplibs_check_method=$lt_cv_deplibs_check_method
5 kx test -z "$deplibs_check_method" && deplibs_check_method=unknown
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_DLLTOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$DLLTOOL"; then
5 kx ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx DLLTOOL=$ac_cv_prog_DLLTOOL
5 kx if test -n "$DLLTOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5 kx $as_echo "$DLLTOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_DLLTOOL"; then
5 kx ac_ct_DLLTOOL=$DLLTOOL
5 kx # Extract the first word of "dlltool", so it can be a program name with args.
5 kx set dummy dlltool; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_DLLTOOL"; then
5 kx ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5 kx if test -n "$ac_ct_DLLTOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5 kx $as_echo "$ac_ct_DLLTOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_DLLTOOL" = x; then
5 kx DLLTOOL="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx DLLTOOL=$ac_ct_DLLTOOL
5 kx fi
5 kx else
5 kx DLLTOOL="$ac_cv_prog_DLLTOOL"
5 kx fi
5 kx
5 kx test -z "$DLLTOOL" && DLLTOOL=dlltool
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5 kx $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5 kx if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_sharedlib_from_linklib_cmd='unknown'
5 kx
5 kx case $host_os in
5 kx cygwin* | mingw* | pw32* | cegcc*)
5 kx # two different shell functions defined in ltmain.sh;
5 kx # decide which one to use based on capabilities of $DLLTOOL
5 kx case `$DLLTOOL --help 2>&1` in
5 kx *--identify-strict*)
5 kx lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5 kx ;;
5 kx *)
5 kx lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5 kx ;;
5 kx esac
5 kx ;;
5 kx *)
5 kx # fallback: assume linklib IS sharedlib
5 kx lt_cv_sharedlib_from_linklib_cmd=$ECHO
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5 kx $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5 kx sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5 kx test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx for ac_prog in ar
5 kx do
5 kx # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AR"; then
5 kx ac_cv_prog_AR="$AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AR=$ac_cv_prog_AR
5 kx if test -n "$AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5 kx $as_echo "$AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$AR" && break
5 kx done
5 kx fi
5 kx if test -z "$AR"; then
5 kx ac_ct_AR=$AR
5 kx for ac_prog in ar
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_AR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_AR"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_AR="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_AR=$ac_cv_prog_ac_ct_AR
5 kx if test -n "$ac_ct_AR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5 kx $as_echo "$ac_ct_AR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$ac_ct_AR" && break
5 kx done
5 kx
5 kx if test "x$ac_ct_AR" = x; then
5 kx AR="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx AR=$ac_ct_AR
5 kx fi
5 kx fi
5 kx
5 kx : ${AR=ar}
5 kx : ${AR_FLAGS=cru}
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5 kx $as_echo_n "checking for archiver @FILE support... " >&6; }
5 kx if ${lt_cv_ar_at_file+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_ar_at_file=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx echo conftest.$ac_objext > conftest.lst
5 kx lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5 kx (eval $lt_ar_try) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if test 0 -eq "$ac_status"; then
5 kx # Ensure the archiver fails upon bogus file names.
5 kx rm -f conftest.$ac_objext libconftest.a
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5 kx (eval $lt_ar_try) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx if test 0 -ne "$ac_status"; then
5 kx lt_cv_ar_at_file=@
5 kx fi
5 kx fi
5 kx rm -f conftest.* libconftest.a
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5 kx $as_echo "$lt_cv_ar_at_file" >&6; }
5 kx
5 kx if test no = "$lt_cv_ar_at_file"; then
5 kx archiver_list_spec=
5 kx else
5 kx archiver_list_spec=$lt_cv_ar_at_file
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}strip; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_STRIP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$STRIP"; then
5 kx ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx STRIP=$ac_cv_prog_STRIP
5 kx if test -n "$STRIP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5 kx $as_echo "$STRIP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_STRIP"; then
5 kx ac_ct_STRIP=$STRIP
5 kx # Extract the first word of "strip", so it can be a program name with args.
5 kx set dummy strip; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_STRIP"; then
5 kx ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_STRIP="strip"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5 kx if test -n "$ac_ct_STRIP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5 kx $as_echo "$ac_ct_STRIP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_STRIP" = x; then
5 kx STRIP=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx STRIP=$ac_ct_STRIP
5 kx fi
5 kx else
5 kx STRIP="$ac_cv_prog_STRIP"
5 kx fi
5 kx
5 kx test -z "$STRIP" && STRIP=:
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_RANLIB+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$RANLIB"; then
5 kx ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx RANLIB=$ac_cv_prog_RANLIB
5 kx if test -n "$RANLIB"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5 kx $as_echo "$RANLIB" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_RANLIB"; then
5 kx ac_ct_RANLIB=$RANLIB
5 kx # Extract the first word of "ranlib", so it can be a program name with args.
5 kx set dummy ranlib; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_RANLIB"; then
5 kx ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_RANLIB="ranlib"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5 kx if test -n "$ac_ct_RANLIB"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5 kx $as_echo "$ac_ct_RANLIB" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_RANLIB" = x; then
5 kx RANLIB=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx RANLIB=$ac_ct_RANLIB
5 kx fi
5 kx else
5 kx RANLIB="$ac_cv_prog_RANLIB"
5 kx fi
5 kx
5 kx test -z "$RANLIB" && RANLIB=:
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Determine commands to create old-style static archives.
5 kx old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5 kx old_postinstall_cmds='chmod 644 $oldlib'
5 kx old_postuninstall_cmds=
5 kx
5 kx if test -n "$RANLIB"; then
5 kx case $host_os in
5 kx bitrig* | openbsd*)
5 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5 kx ;;
5 kx *)
5 kx old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5 kx ;;
5 kx esac
5 kx old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5 kx fi
5 kx
5 kx case $host_os in
5 kx darwin*)
5 kx lock_old_archive_extraction=yes ;;
5 kx *)
5 kx lock_old_archive_extraction=no ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # If no C compiler was specified, use CC.
5 kx LTCC=${LTCC-"$CC"}
5 kx
5 kx # If no C compiler flags were specified, use CFLAGS.
5 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx compiler=$CC
5 kx
5 kx
5 kx # Check for command to grab the raw symbol name followed by C symbol from nm.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5 kx $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5 kx if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx # These are sane defaults that work on at least a few old systems.
5 kx # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5 kx
5 kx # Character class describing NM global symbol codes.
5 kx symcode='[BCDEGRST]'
5 kx
5 kx # Regexp to match symbols that can be accessed directly from C.
5 kx sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5 kx
5 kx # Define system-specific variables.
5 kx case $host_os in
5 kx aix*)
5 kx symcode='[BCDT]'
5 kx ;;
5 kx cygwin* | mingw* | pw32* | cegcc*)
5 kx symcode='[ABCDGISTW]'
5 kx ;;
5 kx hpux*)
5 kx if test ia64 = "$host_cpu"; then
5 kx symcode='[ABCDEGRST]'
5 kx fi
5 kx ;;
5 kx irix* | nonstopux*)
5 kx symcode='[BCDEGRST]'
5 kx ;;
5 kx osf*)
5 kx symcode='[BCDEGQRST]'
5 kx ;;
5 kx solaris*)
5 kx symcode='[BCDRT]'
5 kx ;;
5 kx sco3.2v5*)
5 kx symcode='[DT]'
5 kx ;;
5 kx sysv4.2uw2*)
5 kx symcode='[DT]'
5 kx ;;
5 kx sysv5* | sco5v6* | unixware* | OpenUNIX*)
5 kx symcode='[ABDT]'
5 kx ;;
5 kx sysv4)
5 kx symcode='[DFNSTU]'
5 kx ;;
5 kx esac
5 kx
5 kx # If we're using GNU nm, then use its standard symbol codes.
5 kx case `$NM -V 2>&1` in
5 kx *GNU* | *'with BFD'*)
5 kx symcode='[ABCDGIRSTW]' ;;
5 kx esac
5 kx
5 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5 kx # Gets list of data symbols to import.
5 kx lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5 kx # Adjust the below global symbol transforms to fixup imported variables.
5 kx lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5 kx lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5 kx lt_c_name_lib_hook="\
5 kx -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5 kx -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5 kx else
5 kx # Disable hooks by default.
5 kx lt_cv_sys_global_symbol_to_import=
5 kx lt_cdecl_hook=
5 kx lt_c_name_hook=
5 kx lt_c_name_lib_hook=
5 kx fi
5 kx
5 kx # Transform an extracted symbol line into a proper C declaration.
5 kx # Some systems (esp. on ia64) link data and code symbols differently,
5 kx # so use this general approach.
5 kx lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5 kx $lt_cdecl_hook\
5 kx " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5 kx " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5 kx
5 kx # Transform an extracted symbol line into symbol name and symbol address
5 kx lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5 kx $lt_c_name_hook\
5 kx " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5 kx " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5 kx
5 kx # Transform an extracted symbol line into symbol name with lib prefix and
5 kx # symbol address.
5 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5 kx $lt_c_name_lib_hook\
5 kx " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5 kx " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5 kx " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5 kx
5 kx # Handle CRLF in mingw tool chain
5 kx opt_cr=
5 kx case $build_os in
5 kx mingw*)
5 kx opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5 kx ;;
5 kx esac
5 kx
5 kx # Try without a prefix underscore, then with it.
5 kx for ac_symprfx in "" "_"; do
5 kx
5 kx # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5 kx symxfrm="\\1 $ac_symprfx\\2 \\2"
5 kx
5 kx # Write the raw and C identifiers.
5 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5 kx # Fake it for dumpbin and say T for any non-static function,
5 kx # D for any global variable and I for any imported variable.
5 kx # Also find C++ and __fastcall symbols from MSVC++,
5 kx # which start with @ or ?.
5 kx lt_cv_sys_global_symbol_pipe="$AWK '"\
5 kx " {last_section=section; section=\$ 3};"\
5 kx " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5 kx " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5 kx " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5 kx " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5 kx " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5 kx " \$ 0!~/External *\|/{next};"\
5 kx " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5 kx " {if(hide[section]) next};"\
5 kx " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5 kx " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5 kx " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5 kx " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5 kx " ' prfx=^$ac_symprfx"
5 kx else
5 kx lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5 kx fi
5 kx lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5 kx
5 kx # Check to see that the pipe works correctly.
5 kx pipe_works=no
5 kx
5 kx rm -f conftest*
5 kx cat > conftest.$ac_ext <<_LT_EOF
5 kx #ifdef __cplusplus
5 kx extern "C" {
5 kx #endif
5 kx char nm_test_var;
5 kx void nm_test_func(void);
5 kx void nm_test_func(void){}
5 kx #ifdef __cplusplus
5 kx }
5 kx #endif
5 kx int main(){nm_test_var='a';nm_test_func();return(0);}
5 kx _LT_EOF
5 kx
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx # Now try to grab the symbols.
5 kx nlist=conftest.nm
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5 kx (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s "$nlist"; then
5 kx # Try sorting and uniquifying the output.
5 kx if sort "$nlist" | uniq > "$nlist"T; then
5 kx mv -f "$nlist"T "$nlist"
5 kx else
5 kx rm -f "$nlist"T
5 kx fi
5 kx
5 kx # Make sure that we snagged all the symbols we need.
5 kx if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5 kx if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5 kx cat <<_LT_EOF > conftest.$ac_ext
5 kx /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5 kx #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5 kx /* DATA imports from DLLs on WIN32 can't be const, because runtime
5 kx relocations are performed -- see ld's documentation on pseudo-relocs. */
5 kx # define LT_DLSYM_CONST
5 kx #elif defined __osf__
5 kx /* This system does not cope well with relocations in const data. */
5 kx # define LT_DLSYM_CONST
5 kx #else
5 kx # define LT_DLSYM_CONST const
5 kx #endif
5 kx
5 kx #ifdef __cplusplus
5 kx extern "C" {
5 kx #endif
5 kx
5 kx _LT_EOF
5 kx # Now generate the symbol file.
5 kx eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5 kx
5 kx cat <<_LT_EOF >> conftest.$ac_ext
5 kx
5 kx /* The mapping between symbol names and symbols. */
5 kx LT_DLSYM_CONST struct {
5 kx const char *name;
5 kx void *address;
5 kx }
5 kx lt__PROGRAM__LTX_preloaded_symbols[] =
5 kx {
5 kx { "@PROGRAM@", (void *) 0 },
5 kx _LT_EOF
5 kx $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5 kx cat <<\_LT_EOF >> conftest.$ac_ext
5 kx {0, (void *) 0}
5 kx };
5 kx
5 kx /* This works around a problem in FreeBSD linker */
5 kx #ifdef FREEBSD_WORKAROUND
5 kx static const void *lt_preloaded_setup() {
5 kx return lt__PROGRAM__LTX_preloaded_symbols;
5 kx }
5 kx #endif
5 kx
5 kx #ifdef __cplusplus
5 kx }
5 kx #endif
5 kx _LT_EOF
5 kx # Now try linking the two files.
5 kx mv conftest.$ac_objext conftstm.$ac_objext
5 kx lt_globsym_save_LIBS=$LIBS
5 kx lt_globsym_save_CFLAGS=$CFLAGS
5 kx LIBS=conftstm.$ac_objext
5 kx CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
5 kx pipe_works=yes
5 kx fi
5 kx LIBS=$lt_globsym_save_LIBS
5 kx CFLAGS=$lt_globsym_save_CFLAGS
5 kx else
5 kx echo "cannot find nm_test_func in $nlist" >&5
5 kx fi
5 kx else
5 kx echo "cannot find nm_test_var in $nlist" >&5
5 kx fi
5 kx else
5 kx echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5 kx fi
5 kx else
5 kx echo "$progname: failed program was:" >&5
5 kx cat conftest.$ac_ext >&5
5 kx fi
5 kx rm -rf conftest* conftst*
5 kx
5 kx # Do not use the global_symbol_pipe unless it works.
5 kx if test yes = "$pipe_works"; then
5 kx break
5 kx else
5 kx lt_cv_sys_global_symbol_pipe=
5 kx fi
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test -z "$lt_cv_sys_global_symbol_pipe"; then
5 kx lt_cv_sys_global_symbol_to_cdecl=
5 kx fi
5 kx if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5 kx $as_echo "failed" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5 kx $as_echo "ok" >&6; }
5 kx fi
5 kx
5 kx # Response file support.
5 kx if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5 kx nm_file_list_spec='@'
5 kx elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5 kx nm_file_list_spec='@'
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5 kx $as_echo_n "checking for sysroot... " >&6; }
5 kx
5 kx # Check whether --with-sysroot was given.
5 kx if test "${with_sysroot+set}" = set; then :
5 kx withval=$with_sysroot;
5 kx else
5 kx with_sysroot=no
5 kx fi
5 kx
5 kx
5 kx lt_sysroot=
5 kx case $with_sysroot in #(
5 kx yes)
5 kx if test yes = "$GCC"; then
5 kx lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5 kx fi
5 kx ;; #(
5 kx /*)
5 kx lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5 kx ;; #(
5 kx no|'')
5 kx ;; #(
5 kx *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5 kx $as_echo "$with_sysroot" >&6; }
5 kx as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5 kx $as_echo "${lt_sysroot:-no}" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5 kx $as_echo_n "checking for a working dd... " >&6; }
5 kx if ${ac_cv_path_lt_DD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx printf 0123456789abcdef0123456789abcdef >conftest.i
5 kx cat conftest.i conftest.i >conftest2.i
5 kx : ${lt_DD:=$DD}
5 kx if test -z "$lt_DD"; then
5 kx ac_path_lt_DD_found=false
5 kx # Loop through the user's path and test for each of PROGNAME-LIST
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_prog in dd; do
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5 kx as_fn_executable_p "$ac_path_lt_DD" || continue
5 kx if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5 kx cmp -s conftest.i conftest.out \
5 kx && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5 kx fi
5 kx $ac_path_lt_DD_found && break 3
5 kx done
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx if test -z "$ac_cv_path_lt_DD"; then
5 kx :
5 kx fi
5 kx else
5 kx ac_cv_path_lt_DD=$lt_DD
5 kx fi
5 kx
5 kx rm -f conftest.i conftest2.i conftest.out
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5 kx $as_echo "$ac_cv_path_lt_DD" >&6; }
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5 kx $as_echo_n "checking how to truncate binary pipes... " >&6; }
5 kx if ${lt_cv_truncate_bin+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx printf 0123456789abcdef0123456789abcdef >conftest.i
5 kx cat conftest.i conftest.i >conftest2.i
5 kx lt_cv_truncate_bin=
5 kx if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5 kx cmp -s conftest.i conftest.out \
5 kx && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5 kx fi
5 kx rm -f conftest.i conftest2.i conftest.out
5 kx test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5 kx $as_echo "$lt_cv_truncate_bin" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5 kx func_cc_basename ()
5 kx {
5 kx for cc_temp in $*""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5 kx }
5 kx
5 kx # Check whether --enable-libtool-lock was given.
5 kx if test "${enable_libtool_lock+set}" = set; then :
5 kx enableval=$enable_libtool_lock;
5 kx fi
5 kx
5 kx test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5 kx
5 kx # Some flags need to be propagated to the compiler or linker for good
5 kx # libtool support.
5 kx case $host in
5 kx ia64-*-hpux*)
5 kx # Find out what ABI is being produced by ac_compile, and set mode
5 kx # options accordingly.
5 kx echo 'int i;' > conftest.$ac_ext
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *ELF-32*)
5 kx HPUX_IA64_MODE=32
5 kx ;;
5 kx *ELF-64*)
5 kx HPUX_IA64_MODE=64
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx *-*-irix6*)
5 kx # Find out what ABI is being produced by ac_compile, and set linker
5 kx # options accordingly.
5 kx echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx if test yes = "$lt_cv_prog_gnu_ld"; then
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *32-bit*)
5 kx LD="${LD-ld} -melf32bsmip"
5 kx ;;
5 kx *N32*)
5 kx LD="${LD-ld} -melf32bmipn32"
5 kx ;;
5 kx *64-bit*)
5 kx LD="${LD-ld} -melf64bmip"
5 kx ;;
5 kx esac
5 kx else
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *32-bit*)
5 kx LD="${LD-ld} -32"
5 kx ;;
5 kx *N32*)
5 kx LD="${LD-ld} -n32"
5 kx ;;
5 kx *64-bit*)
5 kx LD="${LD-ld} -64"
5 kx ;;
5 kx esac
5 kx fi
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx
5 kx mips64*-*linux*)
5 kx # Find out what ABI is being produced by ac_compile, and set linker
5 kx # options accordingly.
5 kx echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx emul=elf
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *32-bit*)
5 kx emul="${emul}32"
5 kx ;;
5 kx *64-bit*)
5 kx emul="${emul}64"
5 kx ;;
5 kx esac
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *MSB*)
5 kx emul="${emul}btsmip"
5 kx ;;
5 kx *LSB*)
5 kx emul="${emul}ltsmip"
5 kx ;;
5 kx esac
5 kx case `/usr/bin/file conftest.$ac_objext` in
5 kx *N32*)
5 kx emul="${emul}n32"
5 kx ;;
5 kx esac
5 kx LD="${LD-ld} -m $emul"
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx
5 kx x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5 kx s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5 kx # Find out what ABI is being produced by ac_compile, and set linker
5 kx # options accordingly. Note that the listed cases only cover the
5 kx # situations where additional linker options are needed (such as when
5 kx # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5 kx # vice versa); the common cases where no linker options are needed do
5 kx # not appear in the list.
5 kx echo 'int i;' > conftest.$ac_ext
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx case `/usr/bin/file conftest.o` in
5 kx *32-bit*)
5 kx case $host in
5 kx x86_64-*kfreebsd*-gnu)
5 kx LD="${LD-ld} -m elf_i386_fbsd"
5 kx ;;
5 kx x86_64-*linux*)
5 kx case `/usr/bin/file conftest.o` in
5 kx *x86-64*)
5 kx LD="${LD-ld} -m elf32_x86_64"
5 kx ;;
5 kx *)
5 kx LD="${LD-ld} -m elf_i386"
5 kx ;;
5 kx esac
5 kx ;;
5 kx powerpc64le-*linux*)
5 kx LD="${LD-ld} -m elf32lppclinux"
5 kx ;;
5 kx powerpc64-*linux*)
5 kx LD="${LD-ld} -m elf32ppclinux"
5 kx ;;
5 kx s390x-*linux*)
5 kx LD="${LD-ld} -m elf_s390"
5 kx ;;
5 kx sparc64-*linux*)
5 kx LD="${LD-ld} -m elf32_sparc"
5 kx ;;
5 kx esac
5 kx ;;
5 kx *64-bit*)
5 kx case $host in
5 kx x86_64-*kfreebsd*-gnu)
5 kx LD="${LD-ld} -m elf_x86_64_fbsd"
5 kx ;;
5 kx x86_64-*linux*)
5 kx LD="${LD-ld} -m elf_x86_64"
5 kx ;;
5 kx powerpcle-*linux*)
5 kx LD="${LD-ld} -m elf64lppc"
5 kx ;;
5 kx powerpc-*linux*)
5 kx LD="${LD-ld} -m elf64ppc"
5 kx ;;
5 kx s390*-*linux*|s390*-*tpf*)
5 kx LD="${LD-ld} -m elf64_s390"
5 kx ;;
5 kx sparc*-*linux*)
5 kx LD="${LD-ld} -m elf64_sparc"
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx
5 kx *-*-sco3.2v5*)
5 kx # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5 kx SAVE_CFLAGS=$CFLAGS
5 kx CFLAGS="$CFLAGS -belf"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5 kx $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5 kx if ${lt_cv_cc_needs_belf+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx lt_cv_cc_needs_belf=yes
5 kx else
5 kx lt_cv_cc_needs_belf=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5 kx $as_echo "$lt_cv_cc_needs_belf" >&6; }
5 kx if test yes != "$lt_cv_cc_needs_belf"; then
5 kx # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5 kx CFLAGS=$SAVE_CFLAGS
5 kx fi
5 kx ;;
5 kx *-*solaris*)
5 kx # Find out what ABI is being produced by ac_compile, and set linker
5 kx # options accordingly.
5 kx echo 'int i;' > conftest.$ac_ext
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx case `/usr/bin/file conftest.o` in
5 kx *64-bit*)
5 kx case $lt_cv_prog_gnu_ld in
5 kx yes*)
5 kx case $host in
5 kx i?86-*-solaris*|x86_64-*-solaris*)
5 kx LD="${LD-ld} -m elf_x86_64"
5 kx ;;
5 kx sparc*-*-solaris*)
5 kx LD="${LD-ld} -m elf64_sparc"
5 kx ;;
5 kx esac
5 kx # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5 kx if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5 kx LD=${LD-ld}_sol2
5 kx fi
5 kx ;;
5 kx *)
5 kx if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5 kx LD="${LD-ld} -64"
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -rf conftest*
5 kx ;;
5 kx esac
5 kx
5 kx need_locks=$enable_libtool_lock
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}mt; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$MANIFEST_TOOL"; then
5 kx ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5 kx if test -n "$MANIFEST_TOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5 kx $as_echo "$MANIFEST_TOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5 kx ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5 kx # Extract the first word of "mt", so it can be a program name with args.
5 kx set dummy mt; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_MANIFEST_TOOL"; then
5 kx ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5 kx if test -n "$ac_ct_MANIFEST_TOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5 kx $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_MANIFEST_TOOL" = x; then
5 kx MANIFEST_TOOL=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5 kx fi
5 kx else
5 kx MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5 kx fi
5 kx
5 kx test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5 kx $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5 kx if ${lt_cv_path_mainfest_tool+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_path_mainfest_tool=no
5 kx echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5 kx $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5 kx cat conftest.err >&5
5 kx if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5 kx lt_cv_path_mainfest_tool=yes
5 kx fi
5 kx rm -f conftest*
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5 kx $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5 kx if test yes != "$lt_cv_path_mainfest_tool"; then
5 kx MANIFEST_TOOL=:
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case $host_os in
5 kx rhapsody* | darwin*)
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_DSYMUTIL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$DSYMUTIL"; then
5 kx ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx DSYMUTIL=$ac_cv_prog_DSYMUTIL
5 kx if test -n "$DSYMUTIL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5 kx $as_echo "$DSYMUTIL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_DSYMUTIL"; then
5 kx ac_ct_DSYMUTIL=$DSYMUTIL
5 kx # Extract the first word of "dsymutil", so it can be a program name with args.
5 kx set dummy dsymutil; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_DSYMUTIL"; then
5 kx ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5 kx if test -n "$ac_ct_DSYMUTIL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5 kx $as_echo "$ac_ct_DSYMUTIL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_DSYMUTIL" = x; then
5 kx DSYMUTIL=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx DSYMUTIL=$ac_ct_DSYMUTIL
5 kx fi
5 kx else
5 kx DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_NMEDIT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$NMEDIT"; then
5 kx ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx NMEDIT=$ac_cv_prog_NMEDIT
5 kx if test -n "$NMEDIT"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5 kx $as_echo "$NMEDIT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_NMEDIT"; then
5 kx ac_ct_NMEDIT=$NMEDIT
5 kx # Extract the first word of "nmedit", so it can be a program name with args.
5 kx set dummy nmedit; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_NMEDIT"; then
5 kx ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_NMEDIT="nmedit"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5 kx if test -n "$ac_ct_NMEDIT"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5 kx $as_echo "$ac_ct_NMEDIT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_NMEDIT" = x; then
5 kx NMEDIT=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx NMEDIT=$ac_ct_NMEDIT
5 kx fi
5 kx else
5 kx NMEDIT="$ac_cv_prog_NMEDIT"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}lipo; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_LIPO+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$LIPO"; then
5 kx ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx LIPO=$ac_cv_prog_LIPO
5 kx if test -n "$LIPO"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5 kx $as_echo "$LIPO" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_LIPO"; then
5 kx ac_ct_LIPO=$LIPO
5 kx # Extract the first word of "lipo", so it can be a program name with args.
5 kx set dummy lipo; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_LIPO"; then
5 kx ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_LIPO="lipo"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5 kx if test -n "$ac_ct_LIPO"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5 kx $as_echo "$ac_ct_LIPO" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_LIPO" = x; then
5 kx LIPO=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx LIPO=$ac_ct_LIPO
5 kx fi
5 kx else
5 kx LIPO="$ac_cv_prog_LIPO"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}otool; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_OTOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$OTOOL"; then
5 kx ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx OTOOL=$ac_cv_prog_OTOOL
5 kx if test -n "$OTOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5 kx $as_echo "$OTOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_OTOOL"; then
5 kx ac_ct_OTOOL=$OTOOL
5 kx # Extract the first word of "otool", so it can be a program name with args.
5 kx set dummy otool; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_OTOOL"; then
5 kx ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_OTOOL="otool"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5 kx if test -n "$ac_ct_OTOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5 kx $as_echo "$ac_ct_OTOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_OTOOL" = x; then
5 kx OTOOL=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx OTOOL=$ac_ct_OTOOL
5 kx fi
5 kx else
5 kx OTOOL="$ac_cv_prog_OTOOL"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}otool64; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_OTOOL64+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$OTOOL64"; then
5 kx ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx OTOOL64=$ac_cv_prog_OTOOL64
5 kx if test -n "$OTOOL64"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5 kx $as_echo "$OTOOL64" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_OTOOL64"; then
5 kx ac_ct_OTOOL64=$OTOOL64
5 kx # Extract the first word of "otool64", so it can be a program name with args.
5 kx set dummy otool64; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_OTOOL64"; then
5 kx ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_OTOOL64="otool64"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5 kx if test -n "$ac_ct_OTOOL64"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5 kx $as_echo "$ac_ct_OTOOL64" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_OTOOL64" = x; then
5 kx OTOOL64=":"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx OTOOL64=$ac_ct_OTOOL64
5 kx fi
5 kx else
5 kx OTOOL64="$ac_cv_prog_OTOOL64"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5 kx $as_echo_n "checking for -single_module linker flag... " >&6; }
5 kx if ${lt_cv_apple_cc_single_mod+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_apple_cc_single_mod=no
5 kx if test -z "$LT_MULTI_MODULE"; then
5 kx # By default we will add the -single_module flag. You can override
5 kx # by either setting the environment variable LT_MULTI_MODULE
5 kx # non-empty at configure time, or by adding -multi_module to the
5 kx # link flags.
5 kx rm -rf libconftest.dylib*
5 kx echo "int foo(void){return 1;}" > conftest.c
5 kx echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5 kx -dynamiclib -Wl,-single_module conftest.c" >&5
5 kx $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5 kx -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5 kx _lt_result=$?
5 kx # If there is a non-empty error log, and "single_module"
5 kx # appears in it, assume the flag caused a linker warning
5 kx if test -s conftest.err && $GREP single_module conftest.err; then
5 kx cat conftest.err >&5
5 kx # Otherwise, if the output was created with a 0 exit code from
5 kx # the compiler, it worked.
5 kx elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
5 kx lt_cv_apple_cc_single_mod=yes
5 kx else
5 kx cat conftest.err >&5
5 kx fi
5 kx rm -rf libconftest.dylib*
5 kx rm -f conftest.*
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5 kx $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5 kx $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5 kx if ${lt_cv_ld_exported_symbols_list+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_ld_exported_symbols_list=no
5 kx save_LDFLAGS=$LDFLAGS
5 kx echo "_main" > conftest.sym
5 kx LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx lt_cv_ld_exported_symbols_list=yes
5 kx else
5 kx lt_cv_ld_exported_symbols_list=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LDFLAGS=$save_LDFLAGS
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5 kx $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
5 kx $as_echo_n "checking for -force_load linker flag... " >&6; }
5 kx if ${lt_cv_ld_force_load+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_ld_force_load=no
5 kx cat > conftest.c << _LT_EOF
5 kx int forced_loaded() { return 2;}
5 kx _LT_EOF
5 kx echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
5 kx $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
5 kx echo "$AR cru libconftest.a conftest.o" >&5
5 kx $AR cru libconftest.a conftest.o 2>&5
5 kx echo "$RANLIB libconftest.a" >&5
5 kx $RANLIB libconftest.a 2>&5
5 kx cat > conftest.c << _LT_EOF
5 kx int main() { return 0;}
5 kx _LT_EOF
5 kx echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
5 kx $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
5 kx _lt_result=$?
5 kx if test -s conftest.err && $GREP force_load conftest.err; then
5 kx cat conftest.err >&5
5 kx elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
5 kx lt_cv_ld_force_load=yes
5 kx else
5 kx cat conftest.err >&5
5 kx fi
5 kx rm -f conftest.err libconftest.a conftest conftest.c
5 kx rm -rf conftest.dSYM
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
5 kx $as_echo "$lt_cv_ld_force_load" >&6; }
5 kx case $host_os in
5 kx rhapsody* | darwin1.[012])
5 kx _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
5 kx darwin1.*)
5 kx _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
5 kx darwin*) # darwin 5.x on
5 kx # if running on 10.5 or later, the deployment target defaults
5 kx # to the OS version, if on x86, and 10.4, the deployment
5 kx # target defaults to 10.4. Don't you love it?
5 kx case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5 kx 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5 kx _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
5 kx 10.[012][,.]*)
5 kx _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
5 kx 10.*)
5 kx _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx if test yes = "$lt_cv_apple_cc_single_mod"; then
5 kx _lt_dar_single_mod='$single_module'
5 kx fi
5 kx if test yes = "$lt_cv_ld_exported_symbols_list"; then
5 kx _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
5 kx else
5 kx _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
5 kx fi
5 kx if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
5 kx _lt_dsymutil='~$DSYMUTIL $lib || :'
5 kx else
5 kx _lt_dsymutil=
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx # func_munge_path_list VARIABLE PATH
5 kx # -----------------------------------
5 kx # VARIABLE is name of variable containing _space_ separated list of
5 kx # directories to be munged by the contents of PATH, which is string
5 kx # having a format:
5 kx # "DIR[:DIR]:"
5 kx # string "DIR[ DIR]" will be prepended to VARIABLE
5 kx # ":DIR[:DIR]"
5 kx # string "DIR[ DIR]" will be appended to VARIABLE
5 kx # "DIRP[:DIRP]::[DIRA:]DIRA"
5 kx # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
5 kx # "DIRA[ DIRA]" will be appended to VARIABLE
5 kx # "DIR[:DIR]"
5 kx # VARIABLE will be replaced by "DIR[ DIR]"
5 kx func_munge_path_list ()
5 kx {
5 kx case x$2 in
5 kx x)
5 kx ;;
5 kx *:)
5 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
5 kx ;;
5 kx x:*)
5 kx eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
5 kx ;;
5 kx *::*)
5 kx eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
5 kx eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
5 kx ;;
5 kx *)
5 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
5 kx ;;
5 kx esac
5 kx }
5 kx
5 kx for ac_header in dlfcn.h
5 kx do :
5 kx ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5 kx "
5 kx if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DLFCN_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Set options
5 kx enable_win32_dll=yes
5 kx
5 kx case $host in
5 kx *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}as; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_AS+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$AS"; then
5 kx ac_cv_prog_AS="$AS" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_AS="${ac_tool_prefix}as"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx AS=$ac_cv_prog_AS
5 kx if test -n "$AS"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5 kx $as_echo "$AS" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_AS"; then
5 kx ac_ct_AS=$AS
5 kx # Extract the first word of "as", so it can be a program name with args.
5 kx set dummy as; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_AS+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_AS"; then
5 kx ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_AS="as"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_AS=$ac_cv_prog_ac_ct_AS
5 kx if test -n "$ac_ct_AS"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5 kx $as_echo "$ac_ct_AS" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_AS" = x; then
5 kx AS="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx AS=$ac_ct_AS
5 kx fi
5 kx else
5 kx AS="$ac_cv_prog_AS"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_DLLTOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$DLLTOOL"; then
5 kx ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx DLLTOOL=$ac_cv_prog_DLLTOOL
5 kx if test -n "$DLLTOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5 kx $as_echo "$DLLTOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_DLLTOOL"; then
5 kx ac_ct_DLLTOOL=$DLLTOOL
5 kx # Extract the first word of "dlltool", so it can be a program name with args.
5 kx set dummy dlltool; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_DLLTOOL"; then
5 kx ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5 kx if test -n "$ac_ct_DLLTOOL"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5 kx $as_echo "$ac_ct_DLLTOOL" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_DLLTOOL" = x; then
5 kx DLLTOOL="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx DLLTOOL=$ac_ct_DLLTOOL
5 kx fi
5 kx else
5 kx DLLTOOL="$ac_cv_prog_DLLTOOL"
5 kx fi
5 kx
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}objdump; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_OBJDUMP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$OBJDUMP"; then
5 kx ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx OBJDUMP=$ac_cv_prog_OBJDUMP
5 kx if test -n "$OBJDUMP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5 kx $as_echo "$OBJDUMP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_prog_OBJDUMP"; then
5 kx ac_ct_OBJDUMP=$OBJDUMP
5 kx # Extract the first word of "objdump", so it can be a program name with args.
5 kx set dummy objdump; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$ac_ct_OBJDUMP"; then
5 kx ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_ac_ct_OBJDUMP="objdump"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5 kx if test -n "$ac_ct_OBJDUMP"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5 kx $as_echo "$ac_ct_OBJDUMP" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_ct_OBJDUMP" = x; then
5 kx OBJDUMP="false"
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx OBJDUMP=$ac_ct_OBJDUMP
5 kx fi
5 kx else
5 kx OBJDUMP="$ac_cv_prog_OBJDUMP"
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx test -z "$AS" && AS=as
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx test -z "$DLLTOOL" && DLLTOOL=dlltool
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx test -z "$OBJDUMP" && OBJDUMP=objdump
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx enable_dlopen=no
5 kx
5 kx
5 kx
5 kx # Check whether --enable-shared was given.
5 kx if test "${enable_shared+set}" = set; then :
5 kx enableval=$enable_shared; p=${PACKAGE-default}
5 kx case $enableval in
5 kx yes) enable_shared=yes ;;
5 kx no) enable_shared=no ;;
5 kx *)
5 kx enable_shared=no
5 kx # Look at the argument we got. We use all the common list separators.
5 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5 kx for pkg in $enableval; do
5 kx IFS=$lt_save_ifs
5 kx if test "X$pkg" = "X$p"; then
5 kx enable_shared=yes
5 kx fi
5 kx done
5 kx IFS=$lt_save_ifs
5 kx ;;
5 kx esac
5 kx else
5 kx enable_shared=yes
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --enable-static was given.
5 kx if test "${enable_static+set}" = set; then :
5 kx enableval=$enable_static; p=${PACKAGE-default}
5 kx case $enableval in
5 kx yes) enable_static=yes ;;
5 kx no) enable_static=no ;;
5 kx *)
5 kx enable_static=no
5 kx # Look at the argument we got. We use all the common list separators.
5 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5 kx for pkg in $enableval; do
5 kx IFS=$lt_save_ifs
5 kx if test "X$pkg" = "X$p"; then
5 kx enable_static=yes
5 kx fi
5 kx done
5 kx IFS=$lt_save_ifs
5 kx ;;
5 kx esac
5 kx else
5 kx enable_static=yes
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-pic was given.
5 kx if test "${with_pic+set}" = set; then :
5 kx withval=$with_pic; lt_p=${PACKAGE-default}
5 kx case $withval in
5 kx yes|no) pic_mode=$withval ;;
5 kx *)
5 kx pic_mode=default
5 kx # Look at the argument we got. We use all the common list separators.
5 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5 kx for lt_pkg in $withval; do
5 kx IFS=$lt_save_ifs
5 kx if test "X$lt_pkg" = "X$lt_p"; then
5 kx pic_mode=yes
5 kx fi
5 kx done
5 kx IFS=$lt_save_ifs
5 kx ;;
5 kx esac
5 kx else
5 kx pic_mode=default
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --enable-fast-install was given.
5 kx if test "${enable_fast_install+set}" = set; then :
5 kx enableval=$enable_fast_install; p=${PACKAGE-default}
5 kx case $enableval in
5 kx yes) enable_fast_install=yes ;;
5 kx no) enable_fast_install=no ;;
5 kx *)
5 kx enable_fast_install=no
5 kx # Look at the argument we got. We use all the common list separators.
5 kx lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5 kx for pkg in $enableval; do
5 kx IFS=$lt_save_ifs
5 kx if test "X$pkg" = "X$p"; then
5 kx enable_fast_install=yes
5 kx fi
5 kx done
5 kx IFS=$lt_save_ifs
5 kx ;;
5 kx esac
5 kx else
5 kx enable_fast_install=yes
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx shared_archive_member_spec=
5 kx case $host,$enable_shared in
5 kx power*-*-aix[5-9]*,yes)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
5 kx $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
5 kx
5 kx # Check whether --with-aix-soname was given.
5 kx if test "${with_aix_soname+set}" = set; then :
5 kx withval=$with_aix_soname; case $withval in
5 kx aix|svr4|both)
5 kx ;;
5 kx *)
5 kx as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
5 kx ;;
5 kx esac
5 kx lt_cv_with_aix_soname=$with_aix_soname
5 kx else
5 kx if ${lt_cv_with_aix_soname+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_with_aix_soname=aix
5 kx fi
5 kx
5 kx with_aix_soname=$lt_cv_with_aix_soname
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
5 kx $as_echo "$with_aix_soname" >&6; }
5 kx if test aix != "$with_aix_soname"; then
5 kx # For the AIX way of multilib, we name the shared archive member
5 kx # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
5 kx # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
5 kx # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
5 kx # the AIX toolchain works better with OBJECT_MODE set (default 32).
5 kx if test 64 = "${OBJECT_MODE-32}"; then
5 kx shared_archive_member_spec=shr_64
5 kx else
5 kx shared_archive_member_spec=shr
5 kx fi
5 kx fi
5 kx ;;
5 kx *)
5 kx with_aix_soname=aix
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # This can be used to rebuild libtool when needed
5 kx LIBTOOL_DEPS=$ltmain
5 kx
5 kx # Always use our own libtool.
5 kx LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx test -z "$LN_S" && LN_S="ln -s"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "${ZSH_VERSION+set}"; then
5 kx setopt NO_GLOB_SUBST
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5 kx $as_echo_n "checking for objdir... " >&6; }
5 kx if ${lt_cv_objdir+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx rm -f .libs 2>/dev/null
5 kx mkdir .libs 2>/dev/null
5 kx if test -d .libs; then
5 kx lt_cv_objdir=.libs
5 kx else
5 kx # MS-DOS does not allow filenames that begin with a dot.
5 kx lt_cv_objdir=_libs
5 kx fi
5 kx rmdir .libs 2>/dev/null
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5 kx $as_echo "$lt_cv_objdir" >&6; }
5 kx objdir=$lt_cv_objdir
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define LT_OBJDIR "$lt_cv_objdir/"
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx # AIX sometimes has problems with the GCC collect2 program. For some
5 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
5 kx # vanish in a puff of smoke.
5 kx if test set != "${COLLECT_NAMES+set}"; then
5 kx COLLECT_NAMES=
5 kx export COLLECT_NAMES
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx # Global variables:
5 kx ofile=libtool
5 kx can_build_shared=yes
5 kx
5 kx # All known linkers require a '.a' archive for static linking (except MSVC,
5 kx # which needs '.lib').
5 kx libext=a
5 kx
5 kx with_gnu_ld=$lt_cv_prog_gnu_ld
5 kx
5 kx old_CC=$CC
5 kx old_CFLAGS=$CFLAGS
5 kx
5 kx # Set sane defaults for various variables
5 kx test -z "$CC" && CC=cc
5 kx test -z "$LTCC" && LTCC=$CC
5 kx test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5 kx test -z "$LD" && LD=ld
5 kx test -z "$ac_objext" && ac_objext=o
5 kx
5 kx func_cc_basename $compiler
5 kx cc_basename=$func_cc_basename_result
5 kx
5 kx
5 kx # Only perform the check for file, if the check method requires it
5 kx test -z "$MAGIC_CMD" && MAGIC_CMD=file
5 kx case $deplibs_check_method in
5 kx file_magic*)
5 kx if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
5 kx $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
5 kx if ${lt_cv_path_MAGIC_CMD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $MAGIC_CMD in
5 kx [\\/*] | ?:[\\/]*)
5 kx lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx lt_save_MAGIC_CMD=$MAGIC_CMD
5 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5 kx for ac_dir in $ac_dummy; do
5 kx IFS=$lt_save_ifs
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f "$ac_dir/${ac_tool_prefix}file"; then
5 kx lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
5 kx if test -n "$file_magic_test_file"; then
5 kx case $deplibs_check_method in
5 kx "file_magic "*)
5 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5 kx $EGREP "$file_magic_regex" > /dev/null; then
5 kx :
5 kx else
5 kx cat <<_LT_EOF 1>&2
5 kx
5 kx *** Warning: the command libtool uses to detect shared libraries,
5 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
5 kx *** The result is that libtool may fail to recognize shared libraries
5 kx *** as such. This will affect the creation of libtool libraries that
5 kx *** depend on shared libraries, but programs linked with such libtool
5 kx *** libraries will work regardless of this problem. Nevertheless, you
5 kx *** may want to report the problem to your system manager and/or to
5 kx *** bug-libtool@gnu.org
5 kx
5 kx _LT_EOF
5 kx fi ;;
5 kx esac
5 kx fi
5 kx break
5 kx fi
5 kx done
5 kx IFS=$lt_save_ifs
5 kx MAGIC_CMD=$lt_save_MAGIC_CMD
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5 kx if test -n "$MAGIC_CMD"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
5 kx $as_echo "$MAGIC_CMD" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -z "$lt_cv_path_MAGIC_CMD"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
5 kx $as_echo_n "checking for file... " >&6; }
5 kx if ${lt_cv_path_MAGIC_CMD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $MAGIC_CMD in
5 kx [\\/*] | ?:[\\/]*)
5 kx lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx lt_save_MAGIC_CMD=$MAGIC_CMD
5 kx lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5 kx ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5 kx for ac_dir in $ac_dummy; do
5 kx IFS=$lt_save_ifs
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f "$ac_dir/file"; then
5 kx lt_cv_path_MAGIC_CMD=$ac_dir/"file"
5 kx if test -n "$file_magic_test_file"; then
5 kx case $deplibs_check_method in
5 kx "file_magic "*)
5 kx file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5 kx if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5 kx $EGREP "$file_magic_regex" > /dev/null; then
5 kx :
5 kx else
5 kx cat <<_LT_EOF 1>&2
5 kx
5 kx *** Warning: the command libtool uses to detect shared libraries,
5 kx *** $file_magic_cmd, produces output that libtool cannot recognize.
5 kx *** The result is that libtool may fail to recognize shared libraries
5 kx *** as such. This will affect the creation of libtool libraries that
5 kx *** depend on shared libraries, but programs linked with such libtool
5 kx *** libraries will work regardless of this problem. Nevertheless, you
5 kx *** may want to report the problem to your system manager and/or to
5 kx *** bug-libtool@gnu.org
5 kx
5 kx _LT_EOF
5 kx fi ;;
5 kx esac
5 kx fi
5 kx break
5 kx fi
5 kx done
5 kx IFS=$lt_save_ifs
5 kx MAGIC_CMD=$lt_save_MAGIC_CMD
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5 kx if test -n "$MAGIC_CMD"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
5 kx $as_echo "$MAGIC_CMD" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx else
5 kx MAGIC_CMD=:
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx # Use C for the default configuration in the libtool script
5 kx
5 kx lt_save_CC=$CC
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx # Source file extension for C test sources.
5 kx ac_ext=c
5 kx
5 kx # Object file extension for compiled C test sources.
5 kx objext=o
5 kx objext=$objext
5 kx
5 kx # Code to be used in simple compile tests
5 kx lt_simple_compile_test_code="int some_variable = 0;"
5 kx
5 kx # Code to be used in simple link tests
5 kx lt_simple_link_test_code='int main(){return(0);}'
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # If no C compiler was specified, use CC.
5 kx LTCC=${LTCC-"$CC"}
5 kx
5 kx # If no C compiler flags were specified, use CFLAGS.
5 kx LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5 kx
5 kx # Allow CC to be a program name with arguments.
5 kx compiler=$CC
5 kx
5 kx # Save the default compiler, since it gets overwritten when the other
5 kx # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5 kx compiler_DEFAULT=$CC
5 kx
5 kx # save warnings/boilerplate of simple test code
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5 kx eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_compiler_boilerplate=`cat conftest.err`
5 kx $RM conftest*
5 kx
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_link_test_code" >conftest.$ac_ext
5 kx eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5 kx _lt_linker_boilerplate=`cat conftest.err`
5 kx $RM -r conftest*
5 kx
5 kx
5 kx ## CAVEAT EMPTOR:
5 kx ## There is no encapsulation within the following macros, do not change
5 kx ## the running order or otherwise move them around unless you know exactly
5 kx ## what you are doing...
5 kx if test -n "$compiler"; then
5 kx
5 kx lt_prog_compiler_no_builtin_flag=
5 kx
5 kx if test yes = "$GCC"; then
5 kx case $cc_basename in
5 kx nvcc*)
5 kx lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
5 kx *)
5 kx lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5 kx $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
5 kx if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_prog_compiler_rtti_exceptions=no
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx # The option is referenced via a variable to avoid confusing sed.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>conftest.err)
5 kx ac_status=$?
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s "$ac_outfile"; then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings other than the usual output.
5 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_rtti_exceptions=yes
5 kx fi
5 kx fi
5 kx $RM conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5 kx $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
5 kx
5 kx if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
5 kx lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5 kx else
5 kx :
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lt_prog_compiler_wl=
5 kx lt_prog_compiler_pic=
5 kx lt_prog_compiler_static=
5 kx
5 kx
5 kx if test yes = "$GCC"; then
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_static='-static'
5 kx
5 kx case $host_os in
5 kx aix*)
5 kx # All AIX code is PIC.
5 kx if test ia64 = "$host_cpu"; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static='-Bstatic'
5 kx fi
5 kx lt_prog_compiler_pic='-fPIC'
5 kx ;;
5 kx
5 kx amigaos*)
5 kx case $host_cpu in
5 kx powerpc)
5 kx # see comment about AmigaOS4 .so support
5 kx lt_prog_compiler_pic='-fPIC'
5 kx ;;
5 kx m68k)
5 kx # FIXME: we need at least 68020 code to build shared libraries, but
5 kx # adding the '-m68020' flag to GCC prevents building anything better,
5 kx # like '-m68040'.
5 kx lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5 kx # PIC is the default for these OSes.
5 kx ;;
5 kx
5 kx mingw* | cygwin* | pw32* | os2* | cegcc*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx # Although the cygwin gcc ignores -fPIC, still need this for old-style
5 kx # (--disable-auto-import) libraries
5 kx lt_prog_compiler_pic='-DDLL_EXPORT'
5 kx case $host_os in
5 kx os2*)
5 kx lt_prog_compiler_static='$wl-static'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx lt_prog_compiler_pic='-fno-common'
5 kx ;;
5 kx
5 kx haiku*)
5 kx # PIC is the default for Haiku.
5 kx # The "-static" flag exists, but is broken.
5 kx lt_prog_compiler_static=
5 kx ;;
5 kx
5 kx hpux*)
5 kx # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5 kx # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
5 kx # sets the default TLS model and affects inlining.
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic='-fPIC'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5 kx # Instead, we relocate shared libraries at runtime.
5 kx ;;
5 kx
5 kx msdosdjgpp*)
5 kx # Just because we use GCC doesn't mean we suddenly get shared libraries
5 kx # on systems that don't support them.
5 kx lt_prog_compiler_can_build_shared=no
5 kx enable_shared=no
5 kx ;;
5 kx
5 kx *nto* | *qnx*)
5 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
5 kx # it will coredump.
5 kx lt_prog_compiler_pic='-fPIC -shared'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx lt_prog_compiler_pic=-Kconform_pic
5 kx fi
5 kx ;;
5 kx
5 kx *)
5 kx lt_prog_compiler_pic='-fPIC'
5 kx ;;
5 kx esac
5 kx
5 kx case $cc_basename in
5 kx nvcc*) # Cuda Compiler Driver 2.2
5 kx lt_prog_compiler_wl='-Xlinker '
5 kx if test -n "$lt_prog_compiler_pic"; then
5 kx lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
5 kx fi
5 kx ;;
5 kx esac
5 kx else
5 kx # PORTME Check for flag to pass linker flags through the system compiler.
5 kx case $host_os in
5 kx aix*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx if test ia64 = "$host_cpu"; then
5 kx # AIX 5 now supports IA64 processor
5 kx lt_prog_compiler_static='-Bstatic'
5 kx else
5 kx lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5 kx fi
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx # PIC is the default on this platform
5 kx # Common symbols not allowed in MH_DYLIB files
5 kx lt_prog_compiler_pic='-fno-common'
5 kx case $cc_basename in
5 kx nagfor*)
5 kx # NAG Fortran compiler
5 kx lt_prog_compiler_wl='-Wl,-Wl,,'
5 kx lt_prog_compiler_pic='-PIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx mingw* | cygwin* | pw32* | os2* | cegcc*)
5 kx # This hack is so that the source file can tell whether it is being
5 kx # built for inclusion in a dll (and should export symbols for example).
5 kx lt_prog_compiler_pic='-DDLL_EXPORT'
5 kx case $host_os in
5 kx os2*)
5 kx lt_prog_compiler_static='$wl-static'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5 kx # not for PA HP-UX.
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx # +Z the default
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic='+Z'
5 kx ;;
5 kx esac
5 kx # Is there a better lt_prog_compiler_static that works with the bundled CC?
5 kx lt_prog_compiler_static='$wl-a ${wl}archive'
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx # PIC (with -KPIC) is the default.
5 kx lt_prog_compiler_static='-non_shared'
5 kx ;;
5 kx
5 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5 kx case $cc_basename in
5 kx # old Intel for x86_64, which still supported -KPIC.
5 kx ecc*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-static'
5 kx ;;
5 kx # icc used to be incompatible with GCC.
5 kx # ICC 10 doesn't accept -KPIC any more.
5 kx icc* | ifort*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-fPIC'
5 kx lt_prog_compiler_static='-static'
5 kx ;;
5 kx # Lahey Fortran 8.1.
5 kx lf95*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='--shared'
5 kx lt_prog_compiler_static='--static'
5 kx ;;
5 kx nagfor*)
5 kx # NAG Fortran compiler
5 kx lt_prog_compiler_wl='-Wl,-Wl,,'
5 kx lt_prog_compiler_pic='-PIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx tcc*)
5 kx # Fabrice Bellard et al's Tiny C Compiler
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-fPIC'
5 kx lt_prog_compiler_static='-static'
5 kx ;;
5 kx pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5 kx # Portland Group compilers (*not* the Pentium gcc compiler,
5 kx # which looks to be a dead project)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-fpic'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx ccc*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx # All Alpha code is PIC.
5 kx lt_prog_compiler_static='-non_shared'
5 kx ;;
5 kx xl* | bgxl* | bgf* | mpixl*)
5 kx # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-qpic'
5 kx lt_prog_compiler_static='-qstaticlink'
5 kx ;;
5 kx *)
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
5 kx # Sun Fortran 8.3 passes all unrecognized flags to the linker
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx lt_prog_compiler_wl=''
5 kx ;;
5 kx *Sun\ F* | *Sun*Fortran*)
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx lt_prog_compiler_wl='-Qoption ld '
5 kx ;;
5 kx *Sun\ C*)
5 kx # Sun C 5.9
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx lt_prog_compiler_wl='-Wl,'
5 kx ;;
5 kx *Intel*\ [CF]*Compiler*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-fPIC'
5 kx lt_prog_compiler_static='-static'
5 kx ;;
5 kx *Portland\ Group*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-fpic'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx newsos6)
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx *nto* | *qnx*)
5 kx # QNX uses GNU C++, but need to define -shared option too, otherwise
5 kx # it will coredump.
5 kx lt_prog_compiler_pic='-fPIC -shared'
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx # All OSF/1 code is PIC.
5 kx lt_prog_compiler_static='-non_shared'
5 kx ;;
5 kx
5 kx rdos*)
5 kx lt_prog_compiler_static='-non_shared'
5 kx ;;
5 kx
5 kx solaris*)
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx case $cc_basename in
5 kx f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5 kx lt_prog_compiler_wl='-Qoption ld ';;
5 kx *)
5 kx lt_prog_compiler_wl='-Wl,';;
5 kx esac
5 kx ;;
5 kx
5 kx sunos4*)
5 kx lt_prog_compiler_wl='-Qoption ld '
5 kx lt_prog_compiler_pic='-PIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx sysv4 | sysv4.2uw2* | sysv4.3*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx lt_prog_compiler_pic='-Kconform_pic'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_pic='-KPIC'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx unicos*)
5 kx lt_prog_compiler_wl='-Wl,'
5 kx lt_prog_compiler_can_build_shared=no
5 kx ;;
5 kx
5 kx uts4*)
5 kx lt_prog_compiler_pic='-pic'
5 kx lt_prog_compiler_static='-Bstatic'
5 kx ;;
5 kx
5 kx *)
5 kx lt_prog_compiler_can_build_shared=no
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx case $host_os in
5 kx # For platforms that do not support PIC, -DPIC is meaningless:
5 kx *djgpp*)
5 kx lt_prog_compiler_pic=
5 kx ;;
5 kx *)
5 kx lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
5 kx $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
5 kx if ${lt_cv_prog_compiler_pic+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
5 kx $as_echo "$lt_cv_prog_compiler_pic" >&6; }
5 kx lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
5 kx
5 kx #
5 kx # Check to make sure the PIC flag actually works.
5 kx #
5 kx if test -n "$lt_prog_compiler_pic"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5 kx $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
5 kx if ${lt_cv_prog_compiler_pic_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_prog_compiler_pic_works=no
5 kx ac_outfile=conftest.$ac_objext
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx # The option is referenced via a variable to avoid confusing sed.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>conftest.err)
5 kx ac_status=$?
5 kx cat conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s "$ac_outfile"; then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings other than the usual output.
5 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_pic_works=yes
5 kx fi
5 kx fi
5 kx $RM conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
5 kx $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
5 kx
5 kx if test yes = "$lt_cv_prog_compiler_pic_works"; then
5 kx case $lt_prog_compiler_pic in
5 kx "" | " "*) ;;
5 kx *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5 kx esac
5 kx else
5 kx lt_prog_compiler_pic=
5 kx lt_prog_compiler_can_build_shared=no
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Check to make sure the static flag actually works.
5 kx #
5 kx wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
5 kx $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
5 kx if ${lt_cv_prog_compiler_static_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_prog_compiler_static_works=no
5 kx save_LDFLAGS=$LDFLAGS
5 kx LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
5 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
5 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5 kx # The linker can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx if test -s conftest.err; then
5 kx # Append any errors to the config.log.
5 kx cat conftest.err 1>&5
5 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_static_works=yes
5 kx fi
5 kx else
5 kx lt_cv_prog_compiler_static_works=yes
5 kx fi
5 kx fi
5 kx $RM -r conftest*
5 kx LDFLAGS=$save_LDFLAGS
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
5 kx $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
5 kx
5 kx if test yes = "$lt_cv_prog_compiler_static_works"; then
5 kx :
5 kx else
5 kx lt_prog_compiler_static=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
5 kx $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5 kx if ${lt_cv_prog_compiler_c_o+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_prog_compiler_c_o=no
5 kx $RM -r conftest 2>/dev/null
5 kx mkdir conftest
5 kx cd conftest
5 kx mkdir out
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>out/conftest.err)
5 kx ac_status=$?
5 kx cat out/conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
5 kx then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
5 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
5 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_c_o=yes
5 kx fi
5 kx fi
5 kx chmod u+w . 2>&5
5 kx $RM conftest*
5 kx # SGI C++ compiler will create directory out/ii_files/ for
5 kx # template instantiation
5 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
5 kx $RM out/* && rmdir out
5 kx cd ..
5 kx $RM -r conftest
5 kx $RM conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
5 kx $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
5 kx $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5 kx if ${lt_cv_prog_compiler_c_o+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_prog_compiler_c_o=no
5 kx $RM -r conftest 2>/dev/null
5 kx mkdir conftest
5 kx cd conftest
5 kx mkdir out
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx lt_compiler_flag="-o out/conftest2.$ac_objext"
5 kx # Insert the option either (1) after the last *FLAGS variable, or
5 kx # (2) before a word containing "conftest.", or (3) at the end.
5 kx # Note that $ac_compile itself does not contain backslashes and begins
5 kx # with a dollar sign (not a hyphen), so the echo should work correctly.
5 kx lt_compile=`echo "$ac_compile" | $SED \
5 kx -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5 kx -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5 kx -e 's:$: $lt_compiler_flag:'`
5 kx (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
5 kx (eval "$lt_compile" 2>out/conftest.err)
5 kx ac_status=$?
5 kx cat out/conftest.err >&5
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx if (exit $ac_status) && test -s out/conftest2.$ac_objext
5 kx then
5 kx # The compiler can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
5 kx $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
5 kx if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler_c_o=yes
5 kx fi
5 kx fi
5 kx chmod u+w . 2>&5
5 kx $RM conftest*
5 kx # SGI C++ compiler will create directory out/ii_files/ for
5 kx # template instantiation
5 kx test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
5 kx $RM out/* && rmdir out
5 kx cd ..
5 kx $RM -r conftest
5 kx $RM conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
5 kx $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx hard_links=nottested
5 kx if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
5 kx # do not overwrite the value of need_locks provided by the user
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
5 kx $as_echo_n "checking if we can lock with hard links... " >&6; }
5 kx hard_links=yes
5 kx $RM conftest*
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx touch conftest.a
5 kx ln conftest.a conftest.b 2>&5 || hard_links=no
5 kx ln conftest.a conftest.b 2>/dev/null && hard_links=no
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
5 kx $as_echo "$hard_links" >&6; }
5 kx if test no = "$hard_links"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
5 kx $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
5 kx need_locks=warn
5 kx fi
5 kx else
5 kx need_locks=no
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5 kx $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
5 kx
5 kx runpath_var=
5 kx allow_undefined_flag=
5 kx always_export_symbols=no
5 kx archive_cmds=
5 kx archive_expsym_cmds=
5 kx compiler_needs_object=no
5 kx enable_shared_with_static_runtimes=no
5 kx export_dynamic_flag_spec=
5 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5 kx hardcode_automatic=no
5 kx hardcode_direct=no
5 kx hardcode_direct_absolute=no
5 kx hardcode_libdir_flag_spec=
5 kx hardcode_libdir_separator=
5 kx hardcode_minus_L=no
5 kx hardcode_shlibpath_var=unsupported
5 kx inherit_rpath=no
5 kx link_all_deplibs=unknown
5 kx module_cmds=
5 kx module_expsym_cmds=
5 kx old_archive_from_new_cmds=
5 kx old_archive_from_expsyms_cmds=
5 kx thread_safe_flag_spec=
5 kx whole_archive_flag_spec=
5 kx # include_expsyms should be a list of space-separated symbols to be *always*
5 kx # included in the symbol list
5 kx include_expsyms=
5 kx # exclude_expsyms can be an extended regexp of symbols to exclude
5 kx # it will be wrapped by ' (' and ')$', so one must not match beginning or
5 kx # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
5 kx # as well as any symbol that contains 'd'.
5 kx exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
5 kx # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5 kx # platforms (ab)use it in PIC code, but their linkers get confused if
5 kx # the symbol is explicitly referenced. Since portable code cannot
5 kx # rely on this symbol name, it's probably fine to never include it in
5 kx # preloaded symbol tables.
5 kx # Exclude shared library initialization/finalization symbols.
5 kx extract_expsyms_cmds=
5 kx
5 kx case $host_os in
5 kx cygwin* | mingw* | pw32* | cegcc*)
5 kx # FIXME: the MSVC++ port hasn't been tested in a loooong time
5 kx # When not using gcc, we currently assume that we are using
5 kx # Microsoft Visual C++.
5 kx if test yes != "$GCC"; then
5 kx with_gnu_ld=no
5 kx fi
5 kx ;;
5 kx interix*)
5 kx # we just hope/assume this is gcc and not c89 (= MSVC++)
5 kx with_gnu_ld=yes
5 kx ;;
5 kx openbsd* | bitrig*)
5 kx with_gnu_ld=no
5 kx ;;
5 kx esac
5 kx
5 kx ld_shlibs=yes
5 kx
5 kx # On some targets, GNU ld is compatible enough with the native linker
5 kx # that we're better off using the native interface for both.
5 kx lt_use_gnu_ld_interface=no
5 kx if test yes = "$with_gnu_ld"; then
5 kx case $host_os in
5 kx aix*)
5 kx # The AIX port of GNU ld has always aspired to compatibility
5 kx # with the native linker. However, as the warning in the GNU ld
5 kx # block says, versions before 2.19.5* couldn't really create working
5 kx # shared libraries, regardless of the interface used.
5 kx case `$LD -v 2>&1` in
5 kx *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5 kx *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
5 kx *\ \(GNU\ Binutils\)\ [3-9]*) ;;
5 kx *)
5 kx lt_use_gnu_ld_interface=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx *)
5 kx lt_use_gnu_ld_interface=yes
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test yes = "$lt_use_gnu_ld_interface"; then
5 kx # If archive_cmds runs LD, not CC, wlarc should be empty
5 kx wlarc='$wl'
5 kx
5 kx # Set some defaults for GNU ld with shared library support. These
5 kx # are reset later if shared libraries are not supported. Putting them
5 kx # here allows them to be overridden if necessary.
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5 kx export_dynamic_flag_spec='$wl--export-dynamic'
5 kx # ancient GNU ld didn't support --whole-archive et. al.
5 kx if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5 kx whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5 kx else
5 kx whole_archive_flag_spec=
5 kx fi
5 kx supports_anon_versioning=no
5 kx case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
5 kx *GNU\ gold*) supports_anon_versioning=yes ;;
5 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5 kx *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5 kx *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5 kx *\ 2.11.*) ;; # other 2.11 versions
5 kx *) supports_anon_versioning=yes ;;
5 kx esac
5 kx
5 kx # See if GNU ld supports shared libraries.
5 kx case $host_os in
5 kx aix[3-9]*)
5 kx # On AIX/PPC, the GNU linker is very broken
5 kx if test ia64 != "$host_cpu"; then
5 kx ld_shlibs=no
5 kx cat <<_LT_EOF 1>&2
5 kx
5 kx *** Warning: the GNU linker, at least up to release 2.19, is reported
5 kx *** to be unable to reliably create shared libraries on AIX.
5 kx *** Therefore, libtool is disabling shared libraries support. If you
5 kx *** really care for shared libraries, you may want to install binutils
5 kx *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5 kx *** You will then need to restart the configuration process.
5 kx
5 kx _LT_EOF
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx case $host_cpu in
5 kx powerpc)
5 kx # see comment about AmigaOS4 .so support
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds=''
5 kx ;;
5 kx m68k)
5 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)'
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_minus_L=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx beos*)
5 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5 kx allow_undefined_flag=unsupported
5 kx # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5 kx # support --undefined. This deserves some investigation. FIXME
5 kx archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32* | cegcc*)
5 kx # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5 kx # as there is no search path for DLLs.
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx export_dynamic_flag_spec='$wl--export-all-symbols'
5 kx allow_undefined_flag=unsupported
5 kx always_export_symbols=no
5 kx enable_shared_with_static_runtimes=yes
5 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'
5 kx exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
5 kx
5 kx if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5 kx # If the export-symbols file already is a .def file, use it as
5 kx # is; otherwise, prepend EXPORTS...
5 kx archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
5 kx cp $export_symbols $output_objdir/$soname.def;
5 kx else
5 kx echo EXPORTS > $output_objdir/$soname.def;
5 kx cat $export_symbols >> $output_objdir/$soname.def;
5 kx fi~
5 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'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx haiku*)
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 kx link_all_deplibs=yes
5 kx ;;
5 kx
5 kx os2*)
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_minus_L=yes
5 kx allow_undefined_flag=unsupported
5 kx shrext_cmds=.dll
5 kx archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
5 kx emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5 kx emximp -o $lib $output_objdir/$libname.def'
5 kx archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
5 kx prefix_cmds="$SED"~
5 kx if test EXPORTS = "`$SED 1q $export_symbols`"; then
5 kx prefix_cmds="$prefix_cmds -e 1d";
5 kx fi~
5 kx prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5 kx cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5 kx emximp -o $lib $output_objdir/$libname.def'
5 kx old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5 kx enable_shared_with_static_runtimes=yes
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx hardcode_direct=no
5 kx hardcode_shlibpath_var=no
5 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
5 kx export_dynamic_flag_spec='$wl-E'
5 kx # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5 kx # Instead, shared libraries are loaded at an image base (0x10000000 by
5 kx # default) and relocated if they conflict, which is a slow very memory
5 kx # consuming and fragmenting process. To avoid this, we pick a random,
5 kx # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5 kx # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5 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'
5 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'
5 kx ;;
5 kx
5 kx gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5 kx tmp_diet=no
5 kx if test linux-dietlibc = "$host_os"; then
5 kx case $cc_basename in
5 kx diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5 kx esac
5 kx fi
5 kx if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5 kx && test no = "$tmp_diet"
5 kx then
5 kx tmp_addflag=' $pic_flag'
5 kx tmp_sharedflag='-shared'
5 kx case $cc_basename,$host_cpu in
5 kx pgcc*) # Portland Group C compiler
5 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'
5 kx tmp_addflag=' $pic_flag'
5 kx ;;
5 kx pgf77* | pgf90* | pgf95* | pgfortran*)
5 kx # Portland Group f77 and f90 compilers
5 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'
5 kx tmp_addflag=' $pic_flag -Mnomain' ;;
5 kx ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5 kx tmp_addflag=' -i_dynamic' ;;
5 kx efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5 kx tmp_addflag=' -i_dynamic -nofor_main' ;;
5 kx ifc* | ifort*) # Intel Fortran compiler
5 kx tmp_addflag=' -nofor_main' ;;
5 kx lf95*) # Lahey Fortran 8.1
5 kx whole_archive_flag_spec=
5 kx tmp_sharedflag='--shared' ;;
5 kx nagfor*) # NAGFOR 5.3
5 kx tmp_sharedflag='-Wl,-shared' ;;
5 kx xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5 kx tmp_sharedflag='-qmkshrobj'
5 kx tmp_addflag= ;;
5 kx nvcc*) # Cuda Compiler Driver 2.2
5 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'
5 kx compiler_needs_object=yes
5 kx ;;
5 kx esac
5 kx case `$CC -V 2>&1 | sed 5q` in
5 kx *Sun\ C*) # Sun C 5.9
5 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'
5 kx compiler_needs_object=yes
5 kx tmp_sharedflag='-G' ;;
5 kx *Sun\ F*) # Sun Fortran 8.3
5 kx tmp_sharedflag='-G' ;;
5 kx esac
5 kx archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 kx
5 kx if test yes = "$supports_anon_versioning"; then
5 kx archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
5 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5 kx echo "local: *; };" >> $output_objdir/$libname.ver~
5 kx $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5 kx fi
5 kx
5 kx case $cc_basename in
5 kx tcc*)
5 kx export_dynamic_flag_spec='-rdynamic'
5 kx ;;
5 kx xlf* | bgf* | bgxlf* | mpixlf*)
5 kx # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5 kx whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
5 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5 kx archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5 kx if test yes = "$supports_anon_versioning"; then
5 kx archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
5 kx cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5 kx echo "local: *; };" >> $output_objdir/$libname.ver~
5 kx $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5 kx fi
5 kx ;;
5 kx esac
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5 kx archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5 kx wlarc=
5 kx else
5 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 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'
5 kx fi
5 kx ;;
5 kx
5 kx solaris*)
5 kx if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5 kx ld_shlibs=no
5 kx cat <<_LT_EOF 1>&2
5 kx
5 kx *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5 kx *** create shared libraries on Solaris systems. Therefore, libtool
5 kx *** is disabling shared libraries support. We urge you to upgrade GNU
5 kx *** binutils to release 2.9.1 or newer. Another option is to modify
5 kx *** your PATH or compiler configuration so that the native linker is
5 kx *** used, and then restart.
5 kx
5 kx _LT_EOF
5 kx elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 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'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5 kx case `$LD -v 2>&1` in
5 kx *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
5 kx ld_shlibs=no
5 kx cat <<_LT_EOF 1>&2
5 kx
5 kx *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5 kx *** reliably create shared libraries on SCO systems. Therefore, libtool
5 kx *** is disabling shared libraries support. We urge you to upgrade GNU
5 kx *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5 kx *** your PATH or compiler configuration so that the native linker is
5 kx *** used, and then restart.
5 kx
5 kx _LT_EOF
5 kx ;;
5 kx *)
5 kx # For security reasons, it is highly recommended that you always
5 kx # use absolute paths for naming shared libraries, and exclude the
5 kx # DT_RUNPATH tag from executables and libraries. But doing so
5 kx # requires that you compile everything twice, which is a pain.
5 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sunos4*)
5 kx archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx wlarc=
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx *)
5 kx if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5 kx archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 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'
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx if test no = "$ld_shlibs"; then
5 kx runpath_var=
5 kx hardcode_libdir_flag_spec=
5 kx export_dynamic_flag_spec=
5 kx whole_archive_flag_spec=
5 kx fi
5 kx else
5 kx # PORTME fill in a description of your system's linker (not GNU ld)
5 kx case $host_os in
5 kx aix3*)
5 kx allow_undefined_flag=unsupported
5 kx always_export_symbols=yes
5 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'
5 kx # Note: this linker hardcodes the directories in LIBPATH if there
5 kx # are no directories specified by -L.
5 kx hardcode_minus_L=yes
5 kx if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5 kx # Neither direct hardcoding nor static linking is supported with a
5 kx # broken collect2.
5 kx hardcode_direct=unsupported
5 kx fi
5 kx ;;
5 kx
5 kx aix[4-9]*)
5 kx if test ia64 = "$host_cpu"; then
5 kx # On IA64, the linker does run time linking by default, so we don't
5 kx # have to do anything special.
5 kx aix_use_runtimelinking=no
5 kx exp_sym_flag='-Bexport'
5 kx no_entry_flag=
5 kx else
5 kx # If we're using GNU nm, then we don't want the "-C" option.
5 kx # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5 kx # Without the "-l" option, or with the "-B" option, AIX nm treats
5 kx # weak defined symbols like other global defined symbols, whereas
5 kx # GNU nm marks them as "W".
5 kx # While the 'weak' keyword is ignored in the Export File, we need
5 kx # it in the Import File for the 'aix-soname' feature, so we have
5 kx # to replace the "-B" option with "-P" for AIX nm.
5 kx if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5 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'
5 kx else
5 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 == "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'
5 kx fi
5 kx aix_use_runtimelinking=no
5 kx
5 kx # Test if we are trying to use run time linking or normal
5 kx # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5 kx # have runtime linking enabled, and use it for executables.
5 kx # For shared libraries, we enable/disable runtime linking
5 kx # depending on the kind of the shared library created -
5 kx # when "with_aix_soname,aix_use_runtimelinking" is:
5 kx # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5 kx # "aix,yes" lib.so shared, rtl:yes, for executables
5 kx # lib.a static archive
5 kx # "both,no" lib.so.V(shr.o) shared, rtl:yes
5 kx # lib.a(lib.so.V) shared, rtl:no, for executables
5 kx # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5 kx # lib.a(lib.so.V) shared, rtl:no
5 kx # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5 kx # lib.a static archive
5 kx case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
5 kx for ld_flag in $LDFLAGS; do
5 kx if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5 kx aix_use_runtimelinking=yes
5 kx break
5 kx fi
5 kx done
5 kx if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5 kx # With aix-soname=svr4, we create the lib.so.V shared archives only,
5 kx # so we don't have lib.a shared libs to link our executables.
5 kx # We have to force runtime linking in this case.
5 kx aix_use_runtimelinking=yes
5 kx LDFLAGS="$LDFLAGS -Wl,-brtl"
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx exp_sym_flag='-bexport'
5 kx no_entry_flag='-bnoentry'
5 kx fi
5 kx
5 kx # When large executables or shared objects are built, AIX ld can
5 kx # have problems creating the table of contents. If linking a library
5 kx # or program results in "error TOC overflow" add -mminimal-toc to
5 kx # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5 kx # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5 kx
5 kx archive_cmds=''
5 kx hardcode_direct=yes
5 kx hardcode_direct_absolute=yes
5 kx hardcode_libdir_separator=':'
5 kx link_all_deplibs=yes
5 kx file_list_spec='$wl-f,'
5 kx case $with_aix_soname,$aix_use_runtimelinking in
5 kx aix,*) ;; # traditional, no import file
5 kx svr4,* | *,yes) # use import file
5 kx # The Import File defines what to hardcode.
5 kx hardcode_direct=no
5 kx hardcode_direct_absolute=no
5 kx ;;
5 kx esac
5 kx
5 kx if test yes = "$GCC"; then
5 kx case $host_os in aix4.[012]|aix4.[012].*)
5 kx # We only want to do this on AIX 4.2 and lower, the check
5 kx # below for broken collect2 doesn't work under 4.3+
5 kx collect2name=`$CC -print-prog-name=collect2`
5 kx if test -f "$collect2name" &&
5 kx strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5 kx then
5 kx # We have reworked collect2
5 kx :
5 kx else
5 kx # We have old collect2
5 kx hardcode_direct=unsupported
5 kx # It fails to find uninstalled libraries when the uninstalled
5 kx # path is not listed in the libpath. Setting hardcode_minus_L
5 kx # to unsupported forces relinking
5 kx hardcode_minus_L=yes
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_libdir_separator=
5 kx fi
5 kx ;;
5 kx esac
5 kx shared_flag='-shared'
5 kx if test yes = "$aix_use_runtimelinking"; then
5 kx shared_flag="$shared_flag "'$wl-G'
5 kx fi
5 kx # Need to ensure runtime linking is disabled for the traditional
5 kx # shared library, or the linker may eventually find shared libraries
5 kx # /with/ Import File - we do not want to mix them.
5 kx shared_flag_aix='-shared'
5 kx shared_flag_svr4='-shared $wl-G'
5 kx else
5 kx # not using gcc
5 kx if test ia64 = "$host_cpu"; then
5 kx # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5 kx # chokes on -Wl,-G. The following line is correct:
5 kx shared_flag='-G'
5 kx else
5 kx if test yes = "$aix_use_runtimelinking"; then
5 kx shared_flag='$wl-G'
5 kx else
5 kx shared_flag='$wl-bM:SRE'
5 kx fi
5 kx shared_flag_aix='$wl-bM:SRE'
5 kx shared_flag_svr4='$wl-G'
5 kx fi
5 kx fi
5 kx
5 kx export_dynamic_flag_spec='$wl-bexpall'
5 kx # It seems that -bexpall does not export symbols beginning with
5 kx # underscore (_), so it is better to generate a list of symbols to export.
5 kx always_export_symbols=yes
5 kx if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5 kx # Warning - without using the other runtime loading flags (-brtl),
5 kx # -berok will link without error, but may produce a broken library.
5 kx allow_undefined_flag='-berok'
5 kx # Determine the default libpath from the value encoded in an
5 kx # empty executable.
5 kx if test set = "${lt_cv_aix_libpath+set}"; then
5 kx aix_libpath=$lt_cv_aix_libpath
5 kx else
5 kx if ${lt_cv_aix_libpath_+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\([^ ]*\) *$/\1/
5 kx p
5 kx }
5 kx }'
5 kx lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$lt_cv_aix_libpath_"; then
5 kx lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$lt_cv_aix_libpath_"; then
5 kx lt_cv_aix_libpath_=/usr/lib:/lib
5 kx fi
5 kx
5 kx fi
5 kx
5 kx aix_libpath=$lt_cv_aix_libpath_
5 kx fi
5 kx
5 kx hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
5 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
5 kx else
5 kx if test ia64 = "$host_cpu"; then
5 kx hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
5 kx allow_undefined_flag="-z nodefs"
5 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"
5 kx else
5 kx # Determine the default libpath from the value encoded in an
5 kx # empty executable.
5 kx if test set = "${lt_cv_aix_libpath+set}"; then
5 kx aix_libpath=$lt_cv_aix_libpath
5 kx else
5 kx if ${lt_cv_aix_libpath_+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx lt_aix_libpath_sed='
5 kx /Import File Strings/,/^$/ {
5 kx /^0/ {
5 kx s/^0 *\([^ ]*\) *$/\1/
5 kx p
5 kx }
5 kx }'
5 kx lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx # Check for a 64-bit object if we didn't find anything.
5 kx if test -z "$lt_cv_aix_libpath_"; then
5 kx lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
5 kx fi
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$lt_cv_aix_libpath_"; then
5 kx lt_cv_aix_libpath_=/usr/lib:/lib
5 kx fi
5 kx
5 kx fi
5 kx
5 kx aix_libpath=$lt_cv_aix_libpath_
5 kx fi
5 kx
5 kx hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
5 kx # Warning - without using the other run time loading flags,
5 kx # -berok will link without error, but may produce a broken library.
5 kx no_undefined_flag=' $wl-bernotok'
5 kx allow_undefined_flag=' $wl-berok'
5 kx if test yes = "$with_gnu_ld"; then
5 kx # We only use this code for GNU lds that support --whole-archive.
5 kx whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
5 kx else
5 kx # Exported symbols can be pulled into shared objects from archives
5 kx whole_archive_flag_spec='$convenience'
5 kx fi
5 kx archive_cmds_need_lc=yes
5 kx archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5 kx # -brtl affects multiple linker settings, -berok does not and is overridden later
5 kx compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
5 kx if test svr4 != "$with_aix_soname"; then
5 kx # This is similar to how AIX traditionally builds its shared libraries.
5 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'
5 kx fi
5 kx if test aix != "$with_aix_soname"; then
5 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'
5 kx else
5 kx # used by -dlpreopen to get the symbols
5 kx archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5 kx fi
5 kx archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
5 kx fi
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx case $host_cpu in
5 kx powerpc)
5 kx # see comment about AmigaOS4 .so support
5 kx archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5 kx archive_expsym_cmds=''
5 kx ;;
5 kx m68k)
5 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)'
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_minus_L=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx export_dynamic_flag_spec=-rdynamic
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32* | cegcc*)
5 kx # When not using gcc, we currently assume that we are using
5 kx # Microsoft Visual C++.
5 kx # hardcode_libdir_flag_spec is actually meaningless, as there is
5 kx # no search path for DLLs.
5 kx case $cc_basename in
5 kx cl*)
5 kx # Native MSVC
5 kx hardcode_libdir_flag_spec=' '
5 kx allow_undefined_flag=unsupported
5 kx always_export_symbols=yes
5 kx file_list_spec='@'
5 kx # Tell ltmain to make .lib files, not .a files.
5 kx libext=lib
5 kx # Tell ltmain to make .dll files, not .so files.
5 kx shrext_cmds=.dll
5 kx # FIXME: Setting linknames here is a bad hack.
5 kx archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5 kx archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
5 kx cp "$export_symbols" "$output_objdir/$soname.def";
5 kx echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5 kx else
5 kx $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5 kx fi~
5 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"~
5 kx linknames='
5 kx # The linker will not automatically build a static lib if we build a DLL.
5 kx # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
5 kx enable_shared_with_static_runtimes=yes
5 kx exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5 kx export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
5 kx # Don't use ranlib
5 kx old_postinstall_cmds='chmod 644 $oldlib'
5 kx postlink_cmds='lt_outputfile="@OUTPUT@"~
5 kx lt_tool_outputfile="@TOOL_OUTPUT@"~
5 kx case $lt_outputfile in
5 kx *.exe|*.EXE) ;;
5 kx *)
5 kx lt_outputfile=$lt_outputfile.exe
5 kx lt_tool_outputfile=$lt_tool_outputfile.exe
5 kx ;;
5 kx esac~
5 kx if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5 kx $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5 kx $RM "$lt_outputfile.manifest";
5 kx fi'
5 kx ;;
5 kx *)
5 kx # Assume MSVC wrapper
5 kx hardcode_libdir_flag_spec=' '
5 kx allow_undefined_flag=unsupported
5 kx # Tell ltmain to make .lib files, not .a files.
5 kx libext=lib
5 kx # Tell ltmain to make .dll files, not .so files.
5 kx shrext_cmds=.dll
5 kx # FIXME: Setting linknames here is a bad hack.
5 kx archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5 kx # The linker will automatically build a .lib file if we build a DLL.
5 kx old_archive_from_new_cmds='true'
5 kx # FIXME: Should let the user specify the lib program.
5 kx old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
5 kx enable_shared_with_static_runtimes=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx
5 kx
5 kx archive_cmds_need_lc=no
5 kx hardcode_direct=no
5 kx hardcode_automatic=yes
5 kx hardcode_shlibpath_var=unsupported
5 kx if test yes = "$lt_cv_ld_force_load"; then
5 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\"`'
5 kx
5 kx else
5 kx whole_archive_flag_spec=''
5 kx fi
5 kx link_all_deplibs=yes
5 kx allow_undefined_flag=$_lt_dar_allow_undefined
5 kx case $cc_basename in
5 kx ifort*|nagfor*) _lt_dar_can_shared=yes ;;
5 kx *) _lt_dar_can_shared=$GCC ;;
5 kx esac
5 kx if test yes = "$_lt_dar_can_shared"; then
5 kx output_verbose_link_cmd=func_echo_all
5 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"
5 kx module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
5 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"
5 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"
5 kx
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx
5 kx ;;
5 kx
5 kx dgux*)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5 kx # support. Future versions do this automatically, but an explicit c++rt0.o
5 kx # does not break anything, and helps significantly (at the cost of a little
5 kx # extra space).
5 kx freebsd2.2*)
5 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5 kx freebsd2.*)
5 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct=yes
5 kx hardcode_minus_L=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5 kx freebsd* | dragonfly*)
5 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx hpux9*)
5 kx if test yes = "$GCC"; then
5 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'
5 kx else
5 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'
5 kx fi
5 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
5 kx hardcode_libdir_separator=:
5 kx hardcode_direct=yes
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L=yes
5 kx export_dynamic_flag_spec='$wl-E'
5 kx ;;
5 kx
5 kx hpux10*)
5 kx if test yes,no = "$GCC,$with_gnu_ld"; then
5 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx if test no = "$with_gnu_ld"; then
5 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
5 kx hardcode_libdir_separator=:
5 kx hardcode_direct=yes
5 kx hardcode_direct_absolute=yes
5 kx export_dynamic_flag_spec='$wl-E'
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L=yes
5 kx fi
5 kx ;;
5 kx
5 kx hpux11*)
5 kx if test yes,no = "$GCC,$with_gnu_ld"; then
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx else
5 kx case $host_cpu in
5 kx hppa*64*)
5 kx archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx ia64*)
5 kx archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx *)
5 kx
5 kx # Older versions of the 11.00 compiler do not understand -b yet
5 kx # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
5 kx $as_echo_n "checking if $CC understands -b... " >&6; }
5 kx if ${lt_cv_prog_compiler__b+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_prog_compiler__b=no
5 kx save_LDFLAGS=$LDFLAGS
5 kx LDFLAGS="$LDFLAGS -b"
5 kx echo "$lt_simple_link_test_code" > conftest.$ac_ext
5 kx if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5 kx # The linker can only warn and ignore the option if not recognized
5 kx # So say no if there are warnings
5 kx if test -s conftest.err; then
5 kx # Append any errors to the config.log.
5 kx cat conftest.err 1>&5
5 kx $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
5 kx $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5 kx if diff conftest.exp conftest.er2 >/dev/null; then
5 kx lt_cv_prog_compiler__b=yes
5 kx fi
5 kx else
5 kx lt_cv_prog_compiler__b=yes
5 kx fi
5 kx fi
5 kx $RM -r conftest*
5 kx LDFLAGS=$save_LDFLAGS
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
5 kx $as_echo "$lt_cv_prog_compiler__b" >&6; }
5 kx
5 kx if test yes = "$lt_cv_prog_compiler__b"; then
5 kx archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx if test no = "$with_gnu_ld"; then
5 kx hardcode_libdir_flag_spec='$wl+b $wl$libdir'
5 kx hardcode_libdir_separator=:
5 kx
5 kx case $host_cpu in
5 kx hppa*64*|ia64*)
5 kx hardcode_direct=no
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx *)
5 kx hardcode_direct=yes
5 kx hardcode_direct_absolute=yes
5 kx export_dynamic_flag_spec='$wl-E'
5 kx
5 kx # hardcode_minus_L: Not really in the search PATH,
5 kx # but as the default location of the library.
5 kx hardcode_minus_L=yes
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx if test yes = "$GCC"; then
5 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'
5 kx # Try to use the -exported_symbol ld option, if it does not
5 kx # work, assume that -exports_file does not work either and
5 kx # implicitly export all symbols.
5 kx # This should be the same for all languages, so no per-tag cache variable.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
5 kx $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
5 kx if ${lt_cv_irix_exported_symbol+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx save_LDFLAGS=$LDFLAGS
5 kx LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx int foo (void) { return 0; }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx lt_cv_irix_exported_symbol=yes
5 kx else
5 kx lt_cv_irix_exported_symbol=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LDFLAGS=$save_LDFLAGS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
5 kx $as_echo "$lt_cv_irix_exported_symbol" >&6; }
5 kx if test yes = "$lt_cv_irix_exported_symbol"; then
5 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'
5 kx fi
5 kx else
5 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'
5 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'
5 kx fi
5 kx archive_cmds_need_lc='no'
5 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5 kx hardcode_libdir_separator=:
5 kx inherit_rpath=yes
5 kx link_all_deplibs=yes
5 kx ;;
5 kx
5 kx linux*)
5 kx case $cc_basename in
5 kx tcc*)
5 kx # Fabrice Bellard et al's Tiny C Compiler
5 kx ld_shlibs=yes
5 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx netbsd*)
5 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5 kx archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5 kx else
5 kx archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5 kx fi
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx newsos6)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct=yes
5 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5 kx hardcode_libdir_separator=:
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx *nto* | *qnx*)
5 kx ;;
5 kx
5 kx openbsd* | bitrig*)
5 kx if test -f /usr/libexec/ld.so; then
5 kx hardcode_direct=yes
5 kx hardcode_shlibpath_var=no
5 kx hardcode_direct_absolute=yes
5 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
5 kx export_dynamic_flag_spec='$wl-E'
5 kx else
5 kx archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5 kx hardcode_libdir_flag_spec='$wl-rpath,$libdir'
5 kx fi
5 kx else
5 kx ld_shlibs=no
5 kx fi
5 kx ;;
5 kx
5 kx os2*)
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_minus_L=yes
5 kx allow_undefined_flag=unsupported
5 kx shrext_cmds=.dll
5 kx archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
5 kx emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5 kx emximp -o $lib $output_objdir/$libname.def'
5 kx archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5 kx $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5 kx $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5 kx $ECHO EXPORTS >> $output_objdir/$libname.def~
5 kx prefix_cmds="$SED"~
5 kx if test EXPORTS = "`$SED 1q $export_symbols`"; then
5 kx prefix_cmds="$prefix_cmds -e 1d";
5 kx fi~
5 kx prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5 kx cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5 kx $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5 kx emximp -o $lib $output_objdir/$libname.def'
5 kx old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5 kx enable_shared_with_static_runtimes=yes
5 kx ;;
5 kx
5 kx osf3*)
5 kx if test yes = "$GCC"; then
5 kx allow_undefined_flag=' $wl-expect_unresolved $wl\*'
5 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'
5 kx else
5 kx allow_undefined_flag=' -expect_unresolved \*'
5 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'
5 kx fi
5 kx archive_cmds_need_lc='no'
5 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5 kx hardcode_libdir_separator=:
5 kx ;;
5 kx
5 kx osf4* | osf5*) # as osf3* with the addition of -msym flag
5 kx if test yes = "$GCC"; then
5 kx allow_undefined_flag=' $wl-expect_unresolved $wl\*'
5 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'
5 kx hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
5 kx else
5 kx allow_undefined_flag=' -expect_unresolved \*'
5 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'
5 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~
5 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'
5 kx
5 kx # Both c and cxx compiler support -rpath directly
5 kx hardcode_libdir_flag_spec='-rpath $libdir'
5 kx fi
5 kx archive_cmds_need_lc='no'
5 kx hardcode_libdir_separator=:
5 kx ;;
5 kx
5 kx solaris*)
5 kx no_undefined_flag=' -z defs'
5 kx if test yes = "$GCC"; then
5 kx wlarc='$wl'
5 kx archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5 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'
5 kx else
5 kx case `$CC -V 2>&1` in
5 kx *"Compilers 5.0"*)
5 kx wlarc=''
5 kx archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5 kx $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5 kx ;;
5 kx *)
5 kx wlarc='$wl'
5 kx archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5 kx $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5 kx ;;
5 kx esac
5 kx fi
5 kx hardcode_libdir_flag_spec='-R$libdir'
5 kx hardcode_shlibpath_var=no
5 kx case $host_os in
5 kx solaris2.[0-5] | solaris2.[0-5].*) ;;
5 kx *)
5 kx # The compiler driver will combine and reorder linker options,
5 kx # but understands '-z linker_flag'. GCC discards it without '$wl',
5 kx # but is careful enough not to reorder.
5 kx # Supported since Solaris 2.6 (maybe 2.5.1?)
5 kx if test yes = "$GCC"; then
5 kx whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
5 kx else
5 kx whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
5 kx fi
5 kx ;;
5 kx esac
5 kx link_all_deplibs=yes
5 kx ;;
5 kx
5 kx sunos4*)
5 kx if test sequent = "$host_vendor"; then
5 kx # Use $CC to link under sequent, because it throws in some extra .o
5 kx # files that make .init and .fini sections work.
5 kx archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5 kx fi
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_direct=yes
5 kx hardcode_minus_L=yes
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx sysv4)
5 kx case $host_vendor in
5 kx sni)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct=yes # is this really true???
5 kx ;;
5 kx siemens)
5 kx ## LD is ld it makes a PLAMLIB
5 kx ## CC just makes a GrossModule.
5 kx archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5 kx reload_cmds='$CC -r -o $output$reload_objs'
5 kx hardcode_direct=no
5 kx ;;
5 kx motorola)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5 kx ;;
5 kx esac
5 kx runpath_var='LD_RUN_PATH'
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx sysv4.3*)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_shlibpath_var=no
5 kx export_dynamic_flag_spec='-Bexport'
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_shlibpath_var=no
5 kx runpath_var=LD_RUN_PATH
5 kx hardcode_runpath_var=yes
5 kx ld_shlibs=yes
5 kx fi
5 kx ;;
5 kx
5 kx sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
5 kx no_undefined_flag='$wl-z,text'
5 kx archive_cmds_need_lc=no
5 kx hardcode_shlibpath_var=no
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx if test yes = "$GCC"; then
5 kx archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6*)
5 kx # Note: We CANNOT use -z defs as we might desire, because we do not
5 kx # link with -lc, and that would cause any symbols used from libc to
5 kx # always be unresolved, which means just about no library would
5 kx # ever link correctly. If we're not using GNU ld we use -z text
5 kx # though, which does catch some bad symbols but isn't as heavy-handed
5 kx # as -z defs.
5 kx no_undefined_flag='$wl-z,text'
5 kx allow_undefined_flag='$wl-z,nodefs'
5 kx archive_cmds_need_lc=no
5 kx hardcode_shlibpath_var=no
5 kx hardcode_libdir_flag_spec='$wl-R,$libdir'
5 kx hardcode_libdir_separator=':'
5 kx link_all_deplibs=yes
5 kx export_dynamic_flag_spec='$wl-Bexport'
5 kx runpath_var='LD_RUN_PATH'
5 kx
5 kx if test yes = "$GCC"; then
5 kx archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx else
5 kx archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5 kx fi
5 kx ;;
5 kx
5 kx uts4*)
5 kx archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx hardcode_shlibpath_var=no
5 kx ;;
5 kx
5 kx *)
5 kx ld_shlibs=no
5 kx ;;
5 kx esac
5 kx
5 kx if test sni = "$host_vendor"; then
5 kx case $host in
5 kx sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5 kx export_dynamic_flag_spec='$wl-Blargedynsym'
5 kx ;;
5 kx esac
5 kx fi
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
5 kx $as_echo "$ld_shlibs" >&6; }
5 kx test no = "$ld_shlibs" && can_build_shared=no
5 kx
5 kx with_gnu_ld=$with_gnu_ld
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx #
5 kx # Do we need to explicitly link libc?
5 kx #
5 kx case "x$archive_cmds_need_lc" in
5 kx x|xyes)
5 kx # Assume -lc should be added
5 kx archive_cmds_need_lc=yes
5 kx
5 kx if test yes,yes = "$GCC,$enable_shared"; then
5 kx case $archive_cmds in
5 kx *'~'*)
5 kx # FIXME: we may have to deal with multi-command sequences.
5 kx ;;
5 kx '$CC '*)
5 kx # Test whether the compiler implicitly links with -lc since on some
5 kx # systems, -lgcc has to come before -lc. If gcc already passes -lc
5 kx # to ld, don't add -lc before -lgcc.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
5 kx $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
5 kx if ${lt_cv_archive_cmds_need_lc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx $RM conftest*
5 kx echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5 kx
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } 2>conftest.err; then
5 kx soname=conftest
5 kx lib=conftest
5 kx libobjs=conftest.$ac_objext
5 kx deplibs=
5 kx wl=$lt_prog_compiler_wl
5 kx pic_flag=$lt_prog_compiler_pic
5 kx compiler_flags=-v
5 kx linker_flags=-v
5 kx verstring=
5 kx output_objdir=.
5 kx libname=conftest
5 kx lt_save_allow_undefined_flag=$allow_undefined_flag
5 kx allow_undefined_flag=
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
5 kx (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx then
5 kx lt_cv_archive_cmds_need_lc=no
5 kx else
5 kx lt_cv_archive_cmds_need_lc=yes
5 kx fi
5 kx allow_undefined_flag=$lt_save_allow_undefined_flag
5 kx else
5 kx cat conftest.err 1>&5
5 kx fi
5 kx $RM conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
5 kx $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
5 kx archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
5 kx ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5 kx $as_echo_n "checking dynamic linker characteristics... " >&6; }
5 kx
5 kx if test yes = "$GCC"; then
5 kx case $host_os in
5 kx darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
5 kx *) lt_awk_arg='/^libraries:/' ;;
5 kx esac
5 kx case $host_os in
5 kx mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
5 kx *) lt_sed_strip_eq='s|=/|/|g' ;;
5 kx esac
5 kx lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
5 kx case $lt_search_path_spec in
5 kx *\;*)
5 kx # if the path contains ";" then we assume it to be the separator
5 kx # otherwise default to the standard path separator (i.e. ":") - it is
5 kx # assumed that no part of a normal pathname contains ";" but that should
5 kx # okay in the real world where ";" in dirpaths is itself problematic.
5 kx lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
5 kx ;;
5 kx *)
5 kx lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
5 kx ;;
5 kx esac
5 kx # Ok, now we have the path, separated by spaces, we can step through it
5 kx # and add multilib dir if necessary...
5 kx lt_tmp_lt_search_path_spec=
5 kx lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
5 kx # ...but if some path component already ends with the multilib dir we assume
5 kx # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
5 kx case "$lt_multi_os_dir; $lt_search_path_spec " in
5 kx "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
5 kx lt_multi_os_dir=
5 kx ;;
5 kx esac
5 kx for lt_sys_path in $lt_search_path_spec; do
5 kx if test -d "$lt_sys_path$lt_multi_os_dir"; then
5 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
5 kx elif test -n "$lt_multi_os_dir"; then
5 kx test -d "$lt_sys_path" && \
5 kx lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
5 kx fi
5 kx done
5 kx lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
5 kx BEGIN {RS = " "; FS = "/|\n";} {
5 kx lt_foo = "";
5 kx lt_count = 0;
5 kx for (lt_i = NF; lt_i > 0; lt_i--) {
5 kx if ($lt_i != "" && $lt_i != ".") {
5 kx if ($lt_i == "..") {
5 kx lt_count++;
5 kx } else {
5 kx if (lt_count == 0) {
5 kx lt_foo = "/" $lt_i lt_foo;
5 kx } else {
5 kx lt_count--;
5 kx }
5 kx }
5 kx }
5 kx }
5 kx if (lt_foo != "") { lt_freq[lt_foo]++; }
5 kx if (lt_freq[lt_foo] == 1) { print lt_foo; }
5 kx }'`
5 kx # AWK program above erroneously prepends '/' to C:/dos/paths
5 kx # for these hosts.
5 kx case $host_os in
5 kx mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
5 kx $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
5 kx esac
5 kx sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
5 kx else
5 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5 kx fi
5 kx library_names_spec=
5 kx libname_spec='lib$name'
5 kx soname_spec=
5 kx shrext_cmds=.so
5 kx postinstall_cmds=
5 kx postuninstall_cmds=
5 kx finish_cmds=
5 kx finish_eval=
5 kx shlibpath_var=
5 kx shlibpath_overrides_runpath=unknown
5 kx version_type=none
5 kx dynamic_linker="$host_os ld.so"
5 kx sys_lib_dlsearch_path_spec="/lib /usr/lib"
5 kx need_lib_prefix=unknown
5 kx hardcode_into_libs=no
5 kx
5 kx # when you set need_version to no, make sure it does not cause -set_version
5 kx # flags to be left without arguments
5 kx need_version=unknown
5 kx
5 kx
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
5 kx shlibpath_var=LIBPATH
5 kx
5 kx # AIX 3 has no versioning support, so we append a major version to the name.
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx ;;
5 kx
5 kx aix[4-9]*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx hardcode_into_libs=yes
5 kx if test ia64 = "$host_cpu"; then
5 kx # AIX 5 supports IA64
5 kx library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx else
5 kx # With GCC up to 2.95.x, collect2 would create an import file
5 kx # for dependence libraries. The import file would start with
5 kx # the line '#! .'. This would cause the generated library to
5 kx # depend on '.', always an invalid library. This was fixed in
5 kx # development snapshots of GCC prior to 3.0.
5 kx case $host_os in
5 kx aix4 | aix4.[01] | aix4.[01].*)
5 kx if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5 kx echo ' yes '
5 kx echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
5 kx :
5 kx else
5 kx can_build_shared=no
5 kx fi
5 kx ;;
5 kx esac
5 kx # Using Import Files as archive members, it is possible to support
5 kx # filename-based versioning of shared library archives on AIX. While
5 kx # this would work for both with and without runtime linking, it will
5 kx # prevent static linking of such archives. So we do filename-based
5 kx # shared library versioning with .so extension only, which is used
5 kx # when both runtime linking and shared linking is enabled.
5 kx # Unfortunately, runtime linking may impact performance, so we do
5 kx # not want this to be the default eventually. Also, we use the
5 kx # versioned .so libs for executables only if there is the -brtl
5 kx # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
5 kx # To allow for filename-based versioning support, we need to create
5 kx # libNAME.so.V as an archive file, containing:
5 kx # *) an Import File, referring to the versioned filename of the
5 kx # archive as well as the shared archive member, telling the
5 kx # bitwidth (32 or 64) of that shared object, and providing the
5 kx # list of exported symbols of that shared object, eventually
5 kx # decorated with the 'weak' keyword
5 kx # *) the shared object with the F_LOADONLY flag set, to really avoid
5 kx # it being seen by the linker.
5 kx # At run time we better use the real file rather than another symlink,
5 kx # but for link time we create the symlink libNAME.so -> libNAME.so.V
5 kx
5 kx case $with_aix_soname,$aix_use_runtimelinking in
5 kx # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
5 kx # soname into executable. Probably we can add versioning support to
5 kx # collect2, so additional links can be useful in future.
5 kx aix,yes) # traditional libtool
5 kx dynamic_linker='AIX unversionable lib.so'
5 kx # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5 kx # instead of lib<name>.a to let people know that these are not
5 kx # typical AIX shared libraries.
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx ;;
5 kx aix,no) # traditional AIX only
5 kx dynamic_linker='AIX lib.a(lib.so.V)'
5 kx # We preserve .a as extension for shared libraries through AIX4.2
5 kx # and later when we are not doing run time linking.
5 kx library_names_spec='$libname$release.a $libname.a'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx ;;
5 kx svr4,*) # full svr4 only
5 kx dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
5 kx library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
5 kx # We do not specify a path in Import Files, so LIBPATH fires.
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx *,yes) # both, prefer svr4
5 kx dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
5 kx library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
5 kx # unpreferred sharedlib libNAME.a needs extra handling
5 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"'
5 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"'
5 kx # We do not specify a path in Import Files, so LIBPATH fires.
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx *,no) # both, prefer aix
5 kx dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
5 kx library_names_spec='$libname$release.a $libname.a'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
5 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)'
5 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"'
5 kx ;;
5 kx esac
5 kx shlibpath_var=LIBPATH
5 kx fi
5 kx ;;
5 kx
5 kx amigaos*)
5 kx case $host_cpu in
5 kx powerpc)
5 kx # Since July 2007 AmigaOS4 officially supports .so libraries.
5 kx # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx ;;
5 kx m68k)
5 kx library_names_spec='$libname.ixlibrary $libname.a'
5 kx # Create ${libname}_ixlibrary.a entries in /sys/libs.
5 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'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx beos*)
5 kx library_names_spec='$libname$shared_ext'
5 kx dynamic_linker="$host_os ld.so"
5 kx shlibpath_var=LIBRARY_PATH
5 kx ;;
5 kx
5 kx bsdi[45]*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5 kx # the default ld.so.conf also contains /usr/contrib/lib and
5 kx # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5 kx # libtool to hard-code these into programs
5 kx ;;
5 kx
5 kx cygwin* | mingw* | pw32* | cegcc*)
5 kx version_type=windows
5 kx shrext_cmds=.dll
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx
5 kx case $GCC,$cc_basename in
5 kx yes,*)
5 kx # gcc
5 kx library_names_spec='$libname.dll.a'
5 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
5 kx postinstall_cmds='base_file=`basename \$file`~
5 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
5 kx dldir=$destdir/`dirname \$dlpath`~
5 kx test -d \$dldir || mkdir -p \$dldir~
5 kx $install_prog $dir/$dlname \$dldir/$dlname~
5 kx chmod a+x \$dldir/$dlname~
5 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
5 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
5 kx fi'
5 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5 kx dlpath=$dir/\$dldll~
5 kx $RM \$dlpath'
5 kx shlibpath_overrides_runpath=yes
5 kx
5 kx case $host_os in
5 kx cygwin*)
5 kx # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5 kx soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
5 kx
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
5 kx ;;
5 kx mingw* | cegcc*)
5 kx # MinGW DLLs use traditional 'lib' prefix
5 kx soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
5 kx ;;
5 kx pw32*)
5 kx # pw32 DLLs use 'pw' prefix rather than 'lib'
5 kx library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
5 kx ;;
5 kx esac
5 kx dynamic_linker='Win32 ld.exe'
5 kx ;;
5 kx
5 kx *,cl*)
5 kx # Native MSVC
5 kx libname_spec='$name'
5 kx soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
5 kx library_names_spec='$libname.dll.lib'
5 kx
5 kx case $build_os in
5 kx mingw*)
5 kx sys_lib_search_path_spec=
5 kx lt_save_ifs=$IFS
5 kx IFS=';'
5 kx for lt_path in $LIB
5 kx do
5 kx IFS=$lt_save_ifs
5 kx # Let DOS variable expansion print the short 8.3 style file name.
5 kx lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
5 kx done
5 kx IFS=$lt_save_ifs
5 kx # Convert to MSYS style.
5 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|^ ||'`
5 kx ;;
5 kx cygwin*)
5 kx # Convert to unix form, then to dos form, then back to unix form
5 kx # but this time dos style (no spaces!) so that the unix form looks
5 kx # like /cygdrive/c/PROGRA~1:/cygdr...
5 kx sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
5 kx sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
5 kx sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5 kx ;;
5 kx *)
5 kx sys_lib_search_path_spec=$LIB
5 kx if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
5 kx # It is most probably a Windows format PATH.
5 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
5 kx else
5 kx sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5 kx fi
5 kx # FIXME: find the short name or the path components, as spaces are
5 kx # common. (e.g. "Program Files" -> "PROGRA~1")
5 kx ;;
5 kx esac
5 kx
5 kx # DLL is installed to $(libdir)/../bin by postinstall_cmds
5 kx postinstall_cmds='base_file=`basename \$file`~
5 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
5 kx dldir=$destdir/`dirname \$dlpath`~
5 kx test -d \$dldir || mkdir -p \$dldir~
5 kx $install_prog $dir/$dlname \$dldir/$dlname'
5 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5 kx dlpath=$dir/\$dldll~
5 kx $RM \$dlpath'
5 kx shlibpath_overrides_runpath=yes
5 kx dynamic_linker='Win32 link.exe'
5 kx ;;
5 kx
5 kx *)
5 kx # Assume MSVC wrapper
5 kx library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
5 kx dynamic_linker='Win32 ld.exe'
5 kx ;;
5 kx esac
5 kx # FIXME: first we should search . and the directory the executable is in
5 kx shlibpath_var=PATH
5 kx ;;
5 kx
5 kx darwin* | rhapsody*)
5 kx dynamic_linker="$host_os dyld"
5 kx version_type=darwin
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
5 kx soname_spec='$libname$release$major$shared_ext'
5 kx shlibpath_overrides_runpath=yes
5 kx shlibpath_var=DYLD_LIBRARY_PATH
5 kx shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
5 kx
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
5 kx ;;
5 kx
5 kx dgux*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx freebsd* | dragonfly*)
5 kx # DragonFly does not have aout. When/if they implement a new
5 kx # versioning mechanism, adjust this.
5 kx if test -x /usr/bin/objformat; then
5 kx objformat=`/usr/bin/objformat`
5 kx else
5 kx case $host_os in
5 kx freebsd[23].*) objformat=aout ;;
5 kx *) objformat=elf ;;
5 kx esac
5 kx fi
5 kx version_type=freebsd-$objformat
5 kx case $version_type in
5 kx freebsd-elf*)
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx ;;
5 kx freebsd-*)
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
5 kx need_version=yes
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_os in
5 kx freebsd2.*)
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx freebsd3.[01]* | freebsdelf3.[01]*)
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
5 kx freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx *) # from 4.6 on, and DragonFly
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx haiku*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx dynamic_linker="$host_os runtime_loader"
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx shlibpath_var=LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx hpux9* | hpux10* | hpux11*)
5 kx # Give a soname corresponding to the major version so that dld.sl refuses to
5 kx # link against other versions.
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx case $host_cpu in
5 kx ia64*)
5 kx shrext_cmds='.so'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.so"
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx if test 32 = "$HPUX_IA64_MODE"; then
5 kx sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec=/usr/lib/hpux32
5 kx else
5 kx sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5 kx sys_lib_dlsearch_path_spec=/usr/lib/hpux64
5 kx fi
5 kx ;;
5 kx hppa*64*)
5 kx shrext_cmds='.sl'
5 kx hardcode_into_libs=yes
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5 kx shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx *)
5 kx shrext_cmds='.sl'
5 kx dynamic_linker="$host_os dld.sl"
5 kx shlibpath_var=SHLIB_PATH
5 kx shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx ;;
5 kx esac
5 kx # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
5 kx postinstall_cmds='chmod 555 $lib'
5 kx # or fails outright, so override atomically:
5 kx install_override_mode=555
5 kx ;;
5 kx
5 kx interix[3-9]*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx irix5* | irix6* | nonstopux*)
5 kx case $host_os in
5 kx nonstopux*) version_type=nonstopux ;;
5 kx *)
5 kx if test yes = "$lt_cv_prog_gnu_ld"; then
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx else
5 kx version_type=irix
5 kx fi ;;
5 kx esac
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
5 kx case $host_os in
5 kx irix5* | nonstopux*)
5 kx libsuff= shlibsuff=
5 kx ;;
5 kx *)
5 kx case $LD in # libtool.m4 will add one of these switches to LD
5 kx *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5 kx libsuff= shlibsuff= libmagic=32-bit;;
5 kx *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5 kx libsuff=32 shlibsuff=N32 libmagic=N32;;
5 kx *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5 kx libsuff=64 shlibsuff=64 libmagic=64-bit;;
5 kx *) libsuff= shlibsuff= libmagic=never-match;;
5 kx esac
5 kx ;;
5 kx esac
5 kx shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
5 kx sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx # No shared lib support for Linux oldld, aout, or coff.
5 kx linux*oldld* | linux*aout* | linux*coff*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx linux*android*)
5 kx version_type=none # Android doesn't support versioned libraries.
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext'
5 kx soname_spec='$libname$release$shared_ext'
5 kx finish_cmds=
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx
5 kx # This implies no fast_install, which is unacceptable.
5 kx # Some rework will be needed to allow for fast_install
5 kx # before this can be enabled.
5 kx hardcode_into_libs=yes
5 kx
5 kx dynamic_linker='Android linker'
5 kx # Don't embed -rpath directories since the linker doesn't support them.
5 kx hardcode_libdir_flag_spec='-L$libdir'
5 kx ;;
5 kx
5 kx # This must be glibc/ELF.
5 kx linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx
5 kx # Some binutils ld are patched to set DT_RUNPATH
5 kx if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx lt_cv_shlibpath_overrides_runpath=no
5 kx save_LDFLAGS=$LDFLAGS
5 kx save_libdir=$libdir
5 kx eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
5 kx LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
5 kx lt_cv_shlibpath_overrides_runpath=yes
5 kx fi
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LDFLAGS=$save_LDFLAGS
5 kx libdir=$save_libdir
5 kx
5 kx fi
5 kx
5 kx shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
5 kx
5 kx # This implies no fast_install, which is unacceptable.
5 kx # Some rework will be needed to allow for fast_install
5 kx # before this can be enabled.
5 kx hardcode_into_libs=yes
5 kx
5 kx # Ideally, we could use ldconfig to report *all* directores which are
5 kx # searched for libraries, however this is still not possible. Aside from not
5 kx # being certain /sbin/ldconfig is available, command
5 kx # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
5 kx # even though it is searched at run-time. Try to do the best guess by
5 kx # appending ld.so.conf contents (and includes) to the search path.
5 kx if test -f /etc/ld.so.conf; then
5 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' ' '`
5 kx sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
5 kx fi
5 kx
5 kx # We used to test for /lib/ld.so.1 and disable shared libraries on
5 kx # powerpc, because MkLinux only supported shared libraries with the
5 kx # GNU dynamic linker. Since this was broken with cross compilers,
5 kx # most powerpc-linux boxes support dynamic linking these days and
5 kx # people can always --disable-shared, the test was removed, and we
5 kx # assume the GNU/Linux dynamic linker is in use.
5 kx dynamic_linker='GNU/Linux ld.so'
5 kx ;;
5 kx
5 kx netbsd*)
5 kx version_type=sunos
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx dynamic_linker='NetBSD (a.out) ld.so'
5 kx else
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx dynamic_linker='NetBSD ld.elf_so'
5 kx fi
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx newsos6)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx *nto* | *qnx*)
5 kx version_type=qnx
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx dynamic_linker='ldqnx.so'
5 kx ;;
5 kx
5 kx openbsd* | bitrig*)
5 kx version_type=sunos
5 kx sys_lib_dlsearch_path_spec=/usr/lib
5 kx need_lib_prefix=no
5 kx if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5 kx need_version=no
5 kx else
5 kx need_version=yes
5 kx fi
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
5 kx finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx ;;
5 kx
5 kx os2*)
5 kx libname_spec='$name'
5 kx version_type=windows
5 kx shrext_cmds=.dll
5 kx need_version=no
5 kx need_lib_prefix=no
5 kx # OS/2 can only load a DLL with a base name of 8 characters or less.
5 kx soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
5 kx v=$($ECHO $release$versuffix | tr -d .-);
5 kx n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
5 kx $ECHO $n$v`$shared_ext'
5 kx library_names_spec='${libname}_dll.$libext'
5 kx dynamic_linker='OS/2 ld.exe'
5 kx shlibpath_var=BEGINLIBPATH
5 kx sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx postinstall_cmds='base_file=`basename \$file`~
5 kx dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
5 kx dldir=$destdir/`dirname \$dlpath`~
5 kx test -d \$dldir || mkdir -p \$dldir~
5 kx $install_prog $dir/$dlname \$dldir/$dlname~
5 kx chmod a+x \$dldir/$dlname~
5 kx if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
5 kx eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
5 kx fi'
5 kx postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
5 kx dlpath=$dir/\$dldll~
5 kx $RM \$dlpath'
5 kx ;;
5 kx
5 kx osf3* | osf4* | osf5*)
5 kx version_type=osf
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5 kx sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5 kx ;;
5 kx
5 kx rdos*)
5 kx dynamic_linker=no
5 kx ;;
5 kx
5 kx solaris*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx # ldd complains unless libraries are executable
5 kx postinstall_cmds='chmod +x $lib'
5 kx ;;
5 kx
5 kx sunos4*)
5 kx version_type=sunos
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
5 kx finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx if test yes = "$with_gnu_ld"; then
5 kx need_lib_prefix=no
5 kx fi
5 kx need_version=yes
5 kx ;;
5 kx
5 kx sysv4 | sysv4.3*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx case $host_vendor in
5 kx sni)
5 kx shlibpath_overrides_runpath=no
5 kx need_lib_prefix=no
5 kx runpath_var=LD_RUN_PATH
5 kx ;;
5 kx siemens)
5 kx need_lib_prefix=no
5 kx ;;
5 kx motorola)
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx shlibpath_overrides_runpath=no
5 kx sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5 kx ;;
5 kx esac
5 kx ;;
5 kx
5 kx sysv4*MP*)
5 kx if test -d /usr/nec; then
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
5 kx soname_spec='$libname$shared_ext.$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx fi
5 kx ;;
5 kx
5 kx sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5 kx version_type=sco
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=yes
5 kx hardcode_into_libs=yes
5 kx if test yes = "$with_gnu_ld"; then
5 kx sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5 kx else
5 kx sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5 kx case $host_os in
5 kx sco3.2v5*)
5 kx sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5 kx ;;
5 kx esac
5 kx fi
5 kx sys_lib_dlsearch_path_spec='/usr/lib'
5 kx ;;
5 kx
5 kx tpf*)
5 kx # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx need_lib_prefix=no
5 kx need_version=no
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx shlibpath_overrides_runpath=no
5 kx hardcode_into_libs=yes
5 kx ;;
5 kx
5 kx uts4*)
5 kx version_type=linux # correct to gnu/linux during the next big refactor
5 kx library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
5 kx soname_spec='$libname$release$shared_ext$major'
5 kx shlibpath_var=LD_LIBRARY_PATH
5 kx ;;
5 kx
5 kx *)
5 kx dynamic_linker=no
5 kx ;;
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
5 kx $as_echo "$dynamic_linker" >&6; }
5 kx test no = "$dynamic_linker" && can_build_shared=no
5 kx
5 kx variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5 kx if test yes = "$GCC"; then
5 kx variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5 kx fi
5 kx
5 kx if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
5 kx sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
5 kx fi
5 kx
5 kx if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
5 kx sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
5 kx fi
5 kx
5 kx # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
5 kx configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
5 kx
5 kx # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
5 kx func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
5 kx
5 kx # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
5 kx configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
5 kx $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
5 kx hardcode_action=
5 kx if test -n "$hardcode_libdir_flag_spec" ||
5 kx test -n "$runpath_var" ||
5 kx test yes = "$hardcode_automatic"; then
5 kx
5 kx # We can hardcode non-existent directories.
5 kx if test no != "$hardcode_direct" &&
5 kx # If the only mechanism to avoid hardcoding is shlibpath_var, we
5 kx # have to relink, otherwise we might link with an installed library
5 kx # when we should be linking with a yet-to-be-installed one
5 kx ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
5 kx test no != "$hardcode_minus_L"; then
5 kx # Linking always hardcodes the temporary library directory.
5 kx hardcode_action=relink
5 kx else
5 kx # We can link without hardcoding, and we can hardcode nonexisting dirs.
5 kx hardcode_action=immediate
5 kx fi
5 kx else
5 kx # We cannot hardcode anything, or else we can only hardcode existing
5 kx # directories.
5 kx hardcode_action=unsupported
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
5 kx $as_echo "$hardcode_action" >&6; }
5 kx
5 kx if test relink = "$hardcode_action" ||
5 kx test yes = "$inherit_rpath"; then
5 kx # Fast installation is not supported
5 kx enable_fast_install=no
5 kx elif test yes = "$shlibpath_overrides_runpath" ||
5 kx test no = "$enable_shared"; then
5 kx # Fast installation is not necessary
5 kx enable_fast_install=needless
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test yes != "$enable_dlopen"; then
5 kx enable_dlopen=unknown
5 kx enable_dlopen_self=unknown
5 kx enable_dlopen_self_static=unknown
5 kx else
5 kx lt_cv_dlopen=no
5 kx lt_cv_dlopen_libs=
5 kx
5 kx case $host_os in
5 kx beos*)
5 kx lt_cv_dlopen=load_add_on
5 kx lt_cv_dlopen_libs=
5 kx lt_cv_dlopen_self=yes
5 kx ;;
5 kx
5 kx mingw* | pw32* | cegcc*)
5 kx lt_cv_dlopen=LoadLibrary
5 kx lt_cv_dlopen_libs=
5 kx ;;
5 kx
5 kx cygwin*)
5 kx lt_cv_dlopen=dlopen
5 kx lt_cv_dlopen_libs=
5 kx ;;
5 kx
5 kx darwin*)
5 kx # if libdl is installed we need to link against it
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5 kx $as_echo_n "checking for dlopen in -ldl... " >&6; }
5 kx if ${ac_cv_lib_dl_dlopen+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ldl $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_dl_dlopen=yes
5 kx else
5 kx ac_cv_lib_dl_dlopen=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5 kx $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5 kx if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
5 kx else
5 kx
5 kx lt_cv_dlopen=dyld
5 kx lt_cv_dlopen_libs=
5 kx lt_cv_dlopen_self=yes
5 kx
5 kx fi
5 kx
5 kx ;;
5 kx
5 kx tpf*)
5 kx # Don't try to run any link tests for TPF. We know it's impossible
5 kx # because TPF is a cross-compiler, and we know how we open DSOs.
5 kx lt_cv_dlopen=dlopen
5 kx lt_cv_dlopen_libs=
5 kx lt_cv_dlopen_self=no
5 kx ;;
5 kx
5 kx *)
5 kx ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
5 kx if test "x$ac_cv_func_shl_load" = xyes; then :
5 kx lt_cv_dlopen=shl_load
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
5 kx $as_echo_n "checking for shl_load in -ldld... " >&6; }
5 kx if ${ac_cv_lib_dld_shl_load+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ldld $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char shl_load ();
5 kx int
5 kx main ()
5 kx {
5 kx return shl_load ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_dld_shl_load=yes
5 kx else
5 kx ac_cv_lib_dld_shl_load=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
5 kx $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
5 kx if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
5 kx lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
5 kx else
5 kx ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5 kx if test "x$ac_cv_func_dlopen" = xyes; then :
5 kx lt_cv_dlopen=dlopen
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5 kx $as_echo_n "checking for dlopen in -ldl... " >&6; }
5 kx if ${ac_cv_lib_dl_dlopen+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ldl $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_dl_dlopen=yes
5 kx else
5 kx ac_cv_lib_dl_dlopen=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5 kx $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5 kx if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
5 kx $as_echo_n "checking for dlopen in -lsvld... " >&6; }
5 kx if ${ac_cv_lib_svld_dlopen+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lsvld $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dlopen ();
5 kx int
5 kx main ()
5 kx {
5 kx return dlopen ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_svld_dlopen=yes
5 kx else
5 kx ac_cv_lib_svld_dlopen=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
5 kx $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
5 kx if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
5 kx lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
5 kx $as_echo_n "checking for dld_link in -ldld... " >&6; }
5 kx if ${ac_cv_lib_dld_dld_link+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-ldld $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char dld_link ();
5 kx int
5 kx main ()
5 kx {
5 kx return dld_link ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_dld_dld_link=yes
5 kx else
5 kx ac_cv_lib_dld_dld_link=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
5 kx $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
5 kx if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
5 kx lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx if test no = "$lt_cv_dlopen"; then
5 kx enable_dlopen=no
5 kx else
5 kx enable_dlopen=yes
5 kx fi
5 kx
5 kx case $lt_cv_dlopen in
5 kx dlopen)
5 kx save_CPPFLAGS=$CPPFLAGS
5 kx test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5 kx
5 kx save_LDFLAGS=$LDFLAGS
5 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5 kx
5 kx save_LIBS=$LIBS
5 kx LIBS="$lt_cv_dlopen_libs $LIBS"
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
5 kx $as_echo_n "checking whether a program can dlopen itself... " >&6; }
5 kx if ${lt_cv_dlopen_self+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test yes = "$cross_compiling"; then :
5 kx lt_cv_dlopen_self=cross
5 kx else
5 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5 kx lt_status=$lt_dlunknown
5 kx cat > conftest.$ac_ext <<_LT_EOF
5 kx #line $LINENO "configure"
5 kx #include "confdefs.h"
5 kx
5 kx #if HAVE_DLFCN_H
5 kx #include <dlfcn.h>
5 kx #endif
5 kx
5 kx #include <stdio.h>
5 kx
5 kx #ifdef RTLD_GLOBAL
5 kx # define LT_DLGLOBAL RTLD_GLOBAL
5 kx #else
5 kx # ifdef DL_GLOBAL
5 kx # define LT_DLGLOBAL DL_GLOBAL
5 kx # else
5 kx # define LT_DLGLOBAL 0
5 kx # endif
5 kx #endif
5 kx
5 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5 kx find out it does not work in some platform. */
5 kx #ifndef LT_DLLAZY_OR_NOW
5 kx # ifdef RTLD_LAZY
5 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
5 kx # else
5 kx # ifdef DL_LAZY
5 kx # define LT_DLLAZY_OR_NOW DL_LAZY
5 kx # else
5 kx # ifdef RTLD_NOW
5 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
5 kx # else
5 kx # ifdef DL_NOW
5 kx # define LT_DLLAZY_OR_NOW DL_NOW
5 kx # else
5 kx # define LT_DLLAZY_OR_NOW 0
5 kx # endif
5 kx # endif
5 kx # endif
5 kx # endif
5 kx #endif
5 kx
5 kx /* When -fvisibility=hidden is used, assume the code has been annotated
5 kx correspondingly for the symbols needed. */
5 kx #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
5 kx int fnord () __attribute__((visibility("default")));
5 kx #endif
5 kx
5 kx int fnord () { return 42; }
5 kx int main ()
5 kx {
5 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5 kx int status = $lt_dlunknown;
5 kx
5 kx if (self)
5 kx {
5 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5 kx else
5 kx {
5 kx if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5 kx else puts (dlerror ());
5 kx }
5 kx /* dlclose (self); */
5 kx }
5 kx else
5 kx puts (dlerror ());
5 kx
5 kx return status;
5 kx }
5 kx _LT_EOF
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
5 kx (./conftest; exit; ) >&5 2>/dev/null
5 kx lt_status=$?
5 kx case x$lt_status in
5 kx x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5 kx x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5 kx x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
5 kx esac
5 kx else :
5 kx # compilation failed
5 kx lt_cv_dlopen_self=no
5 kx fi
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
5 kx $as_echo "$lt_cv_dlopen_self" >&6; }
5 kx
5 kx if test yes = "$lt_cv_dlopen_self"; then
5 kx wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
5 kx $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
5 kx if ${lt_cv_dlopen_self_static+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test yes = "$cross_compiling"; then :
5 kx lt_cv_dlopen_self_static=cross
5 kx else
5 kx lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5 kx lt_status=$lt_dlunknown
5 kx cat > conftest.$ac_ext <<_LT_EOF
5 kx #line $LINENO "configure"
5 kx #include "confdefs.h"
5 kx
5 kx #if HAVE_DLFCN_H
5 kx #include <dlfcn.h>
5 kx #endif
5 kx
5 kx #include <stdio.h>
5 kx
5 kx #ifdef RTLD_GLOBAL
5 kx # define LT_DLGLOBAL RTLD_GLOBAL
5 kx #else
5 kx # ifdef DL_GLOBAL
5 kx # define LT_DLGLOBAL DL_GLOBAL
5 kx # else
5 kx # define LT_DLGLOBAL 0
5 kx # endif
5 kx #endif
5 kx
5 kx /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5 kx find out it does not work in some platform. */
5 kx #ifndef LT_DLLAZY_OR_NOW
5 kx # ifdef RTLD_LAZY
5 kx # define LT_DLLAZY_OR_NOW RTLD_LAZY
5 kx # else
5 kx # ifdef DL_LAZY
5 kx # define LT_DLLAZY_OR_NOW DL_LAZY
5 kx # else
5 kx # ifdef RTLD_NOW
5 kx # define LT_DLLAZY_OR_NOW RTLD_NOW
5 kx # else
5 kx # ifdef DL_NOW
5 kx # define LT_DLLAZY_OR_NOW DL_NOW
5 kx # else
5 kx # define LT_DLLAZY_OR_NOW 0
5 kx # endif
5 kx # endif
5 kx # endif
5 kx # endif
5 kx #endif
5 kx
5 kx /* When -fvisibility=hidden is used, assume the code has been annotated
5 kx correspondingly for the symbols needed. */
5 kx #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
5 kx int fnord () __attribute__((visibility("default")));
5 kx #endif
5 kx
5 kx int fnord () { return 42; }
5 kx int main ()
5 kx {
5 kx void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5 kx int status = $lt_dlunknown;
5 kx
5 kx if (self)
5 kx {
5 kx if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5 kx else
5 kx {
5 kx if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5 kx else puts (dlerror ());
5 kx }
5 kx /* dlclose (self); */
5 kx }
5 kx else
5 kx puts (dlerror ());
5 kx
5 kx return status;
5 kx }
5 kx _LT_EOF
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
5 kx (./conftest; exit; ) >&5 2>/dev/null
5 kx lt_status=$?
5 kx case x$lt_status in
5 kx x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5 kx x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5 kx x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
5 kx esac
5 kx else :
5 kx # compilation failed
5 kx lt_cv_dlopen_self_static=no
5 kx fi
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
5 kx $as_echo "$lt_cv_dlopen_self_static" >&6; }
5 kx fi
5 kx
5 kx CPPFLAGS=$save_CPPFLAGS
5 kx LDFLAGS=$save_LDFLAGS
5 kx LIBS=$save_LIBS
5 kx ;;
5 kx esac
5 kx
5 kx case $lt_cv_dlopen_self in
5 kx yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5 kx *) enable_dlopen_self=unknown ;;
5 kx esac
5 kx
5 kx case $lt_cv_dlopen_self_static in
5 kx yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5 kx *) enable_dlopen_self_static=unknown ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx striplib=
5 kx old_striplib=
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
5 kx $as_echo_n "checking whether stripping libraries is possible... " >&6; }
5 kx if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
5 kx test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5 kx test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx # FIXME - insert some real tests, host_os isn't really good enough
5 kx case $host_os in
5 kx darwin*)
5 kx if test -n "$STRIP"; then
5 kx striplib="$STRIP -x"
5 kx old_striplib="$STRIP -S"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx ;;
5 kx *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Report what library types will actually be built
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
5 kx $as_echo_n "checking if libtool supports shared libraries... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
5 kx $as_echo "$can_build_shared" >&6; }
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5 kx $as_echo_n "checking whether to build shared libraries... " >&6; }
5 kx test no = "$can_build_shared" && enable_shared=no
5 kx
5 kx # On AIX, shared libraries and static libraries use the same namespace, and
5 kx # are all built from PIC.
5 kx case $host_os in
5 kx aix3*)
5 kx test yes = "$enable_shared" && enable_static=no
5 kx if test -n "$RANLIB"; then
5 kx archive_cmds="$archive_cmds~\$RANLIB \$lib"
5 kx postinstall_cmds='$RANLIB $lib'
5 kx fi
5 kx ;;
5 kx
5 kx aix[4-9]*)
5 kx if test ia64 != "$host_cpu"; then
5 kx case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
5 kx yes,aix,yes) ;; # shared object as lib.so file only
5 kx yes,svr4,*) ;; # shared object as lib.so archive member only
5 kx yes,*) enable_static=no ;; # shared object in lib.a archive as well
5 kx esac
5 kx fi
5 kx ;;
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5 kx $as_echo "$enable_shared" >&6; }
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5 kx $as_echo_n "checking whether to build static libraries... " >&6; }
5 kx # Make sure either enable_shared or enable_static is yes.
5 kx test yes = "$enable_shared" || enable_static=yes
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
5 kx $as_echo "$enable_static" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx CC=$lt_save_CC
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_config_commands="$ac_config_commands libtool"
5 kx
5 kx
5 kx
5 kx
5 kx # Only expand once:
5 kx
5 kx
5 kx
5 kx # Checks for programs.
5 kx
5 kx PERL=${PERL-"${am_missing_run}perl"}
5 kx
5 kx
5 kx HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5 kx $as_echo_n "checking whether NLS is requested... " >&6; }
5 kx # Check whether --enable-nls was given.
5 kx if test "${enable_nls+set}" = set; then :
5 kx enableval=$enable_nls; USE_NLS=$enableval
5 kx else
5 kx USE_NLS=yes
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5 kx $as_echo "$USE_NLS" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx GETTEXT_MACRO_VERSION=0.19
5 kx
5 kx
5 kx
5 kx
5 kx # Prepare PATH_SEPARATOR.
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5 kx # contains only /bin. Note that ksh looks also at the FPATH variable,
5 kx # so we have to set that as well for the test.
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx || PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx # Find out how to test for executable files. Don't use a zero-byte file,
5 kx # as systems may use methods other than mode bits to determine executability.
5 kx cat >conf$$.file <<_ASEOF
5 kx #! /bin/sh
5 kx exit 0
5 kx _ASEOF
5 kx chmod +x conf$$.file
5 kx if test -x conf$$.file >/dev/null 2>&1; then
5 kx ac_executable_p="test -x"
5 kx else
5 kx ac_executable_p="test -f"
5 kx fi
5 kx rm -f conf$$.file
5 kx
5 kx # Extract the first word of "msgfmt", so it can be a program name with args.
5 kx set dummy msgfmt; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_MSGFMT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$MSGFMT" in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5 kx echo "$as_me: trying $ac_dir/$ac_word..." >&5
5 kx if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5 kx (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5 kx ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5 kx break 2
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5 kx ;;
5 kx esac
5 kx fi
5 kx MSGFMT="$ac_cv_path_MSGFMT"
5 kx if test "$MSGFMT" != ":"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5 kx $as_echo "$MSGFMT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx # Extract the first word of "gmsgfmt", so it can be a program name with args.
5 kx set dummy gmsgfmt; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_GMSGFMT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $GMSGFMT in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5 kx ;;
5 kx esac
5 kx fi
5 kx GMSGFMT=$ac_cv_path_GMSGFMT
5 kx if test -n "$GMSGFMT"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5 kx $as_echo "$GMSGFMT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx
5 kx case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5 kx '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5 kx *) MSGFMT_015=$MSGFMT ;;
5 kx esac
5 kx
5 kx case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5 kx '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5 kx *) GMSGFMT_015=$GMSGFMT ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx # Prepare PATH_SEPARATOR.
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5 kx # contains only /bin. Note that ksh looks also at the FPATH variable,
5 kx # so we have to set that as well for the test.
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx || PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx # Find out how to test for executable files. Don't use a zero-byte file,
5 kx # as systems may use methods other than mode bits to determine executability.
5 kx cat >conf$$.file <<_ASEOF
5 kx #! /bin/sh
5 kx exit 0
5 kx _ASEOF
5 kx chmod +x conf$$.file
5 kx if test -x conf$$.file >/dev/null 2>&1; then
5 kx ac_executable_p="test -x"
5 kx else
5 kx ac_executable_p="test -f"
5 kx fi
5 kx rm -f conf$$.file
5 kx
5 kx # Extract the first word of "xgettext", so it can be a program name with args.
5 kx set dummy xgettext; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_XGETTEXT+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$XGETTEXT" in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5 kx echo "$as_me: trying $ac_dir/$ac_word..." >&5
5 kx if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5 kx (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5 kx ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5 kx break 2
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5 kx ;;
5 kx esac
5 kx fi
5 kx XGETTEXT="$ac_cv_path_XGETTEXT"
5 kx if test "$XGETTEXT" != ":"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5 kx $as_echo "$XGETTEXT" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx rm -f messages.po
5 kx
5 kx case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5 kx '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5 kx *) XGETTEXT_015=$XGETTEXT ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx # Prepare PATH_SEPARATOR.
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5 kx # contains only /bin. Note that ksh looks also at the FPATH variable,
5 kx # so we have to set that as well for the test.
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx || PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx # Find out how to test for executable files. Don't use a zero-byte file,
5 kx # as systems may use methods other than mode bits to determine executability.
5 kx cat >conf$$.file <<_ASEOF
5 kx #! /bin/sh
5 kx exit 0
5 kx _ASEOF
5 kx chmod +x conf$$.file
5 kx if test -x conf$$.file >/dev/null 2>&1; then
5 kx ac_executable_p="test -x"
5 kx else
5 kx ac_executable_p="test -f"
5 kx fi
5 kx rm -f conf$$.file
5 kx
5 kx # Extract the first word of "msgmerge", so it can be a program name with args.
5 kx set dummy msgmerge; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_MSGMERGE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$MSGMERGE" in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5 kx echo "$as_me: trying $ac_dir/$ac_word..." >&5
5 kx if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5 kx ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5 kx break 2
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx IFS="$ac_save_IFS"
5 kx test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5 kx ;;
5 kx esac
5 kx fi
5 kx MSGMERGE="$ac_cv_path_MSGMERGE"
5 kx if test "$MSGMERGE" != ":"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5 kx $as_echo "$MSGMERGE" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$localedir" || localedir='${datadir}/locale'
5 kx
5 kx
5 kx test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5 kx
5 kx
5 kx ac_config_commands="$ac_config_commands po-directories"
5 kx
5 kx
5 kx
5 kx if test "X$prefix" = "XNONE"; then
5 kx acl_final_prefix="$ac_default_prefix"
5 kx else
5 kx acl_final_prefix="$prefix"
5 kx fi
5 kx if test "X$exec_prefix" = "XNONE"; then
5 kx acl_final_exec_prefix='${prefix}'
5 kx else
5 kx acl_final_exec_prefix="$exec_prefix"
5 kx fi
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx
5 kx
5 kx # Check whether --with-gnu-ld was given.
5 kx if test "${with_gnu_ld+set}" = set; then :
5 kx withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5 kx else
5 kx with_gnu_ld=no
5 kx fi
5 kx
5 kx # Prepare PATH_SEPARATOR.
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5 kx # contains only /bin. Note that ksh looks also at the FPATH variable,
5 kx # so we have to set that as well for the test.
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5 kx || PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx ac_prog=ld
5 kx if test "$GCC" = yes; then
5 kx # Check if gcc -print-prog-name=ld gives a path.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5 kx $as_echo_n "checking for ld used by $CC... " >&6; }
5 kx case $host in
5 kx *-*-mingw*)
5 kx # gcc leaves a trailing carriage return which upsets mingw
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5 kx *)
5 kx ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5 kx esac
5 kx case $ac_prog in
5 kx # Accept absolute paths.
5 kx [\\/]* | ?:[\\/]*)
5 kx re_direlt='/[^/][^/]*/\.\./'
5 kx # Canonicalize the pathname of ld
5 kx ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5 kx while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5 kx ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5 kx done
5 kx test -z "$LD" && LD="$ac_prog"
5 kx ;;
5 kx "")
5 kx # If it fails, then pretend we aren't using GCC.
5 kx ac_prog=ld
5 kx ;;
5 kx *)
5 kx # If it is relative, then search for the first ld in PATH.
5 kx with_gnu_ld=unknown
5 kx ;;
5 kx esac
5 kx elif test "$with_gnu_ld" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5 kx $as_echo_n "checking for GNU ld... " >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5 kx $as_echo_n "checking for non-GNU ld... " >&6; }
5 kx fi
5 kx if ${acl_cv_path_LD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -z "$LD"; then
5 kx acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5 kx for ac_dir in $PATH; do
5 kx IFS="$acl_save_ifs"
5 kx test -z "$ac_dir" && ac_dir=.
5 kx if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5 kx acl_cv_path_LD="$ac_dir/$ac_prog"
5 kx # Check to see if the program is GNU ld. I'd rather use --version,
5 kx # but apparently some variants of GNU ld only accept -v.
5 kx # Break only if it was the GNU/non-GNU ld that we prefer.
5 kx case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx test "$with_gnu_ld" != no && break
5 kx ;;
5 kx *)
5 kx test "$with_gnu_ld" != yes && break
5 kx ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS="$acl_save_ifs"
5 kx else
5 kx acl_cv_path_LD="$LD" # Let the user override the test with a path.
5 kx fi
5 kx fi
5 kx
5 kx LD="$acl_cv_path_LD"
5 kx if test -n "$LD"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5 kx $as_echo "$LD" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5 kx $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5 kx if ${acl_cv_prog_gnu_ld+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # I'd rather use --version here, but apparently some GNU lds only accept -v.
5 kx case `$LD -v 2>&1 </dev/null` in
5 kx *GNU* | *'with BFD'*)
5 kx acl_cv_prog_gnu_ld=yes
5 kx ;;
5 kx *)
5 kx acl_cv_prog_gnu_ld=no
5 kx ;;
5 kx esac
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5 kx $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5 kx with_gnu_ld=$acl_cv_prog_gnu_ld
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5 kx $as_echo_n "checking for shared library run path origin... " >&6; }
5 kx if ${acl_cv_rpath+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5 kx ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5 kx . ./conftest.sh
5 kx rm -f ./conftest.sh
5 kx acl_cv_rpath=done
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5 kx $as_echo "$acl_cv_rpath" >&6; }
5 kx wl="$acl_cv_wl"
5 kx acl_libext="$acl_cv_libext"
5 kx acl_shlibext="$acl_cv_shlibext"
5 kx acl_libname_spec="$acl_cv_libname_spec"
5 kx acl_library_names_spec="$acl_cv_library_names_spec"
5 kx acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5 kx acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5 kx acl_hardcode_direct="$acl_cv_hardcode_direct"
5 kx acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5 kx # Check whether --enable-rpath was given.
5 kx if test "${enable_rpath+set}" = set; then :
5 kx enableval=$enable_rpath; :
5 kx else
5 kx enable_rpath=yes
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx acl_libdirstem=lib
5 kx acl_libdirstem2=
5 kx case "$host_os" in
5 kx solaris*)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5 kx $as_echo_n "checking for 64-bit host... " >&6; }
5 kx if ${gl_cv_solaris_64bit+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef _LP64
5 kx sixtyfour bits
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5 kx gl_cv_solaris_64bit=yes
5 kx else
5 kx gl_cv_solaris_64bit=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5 kx $as_echo "$gl_cv_solaris_64bit" >&6; }
5 kx if test $gl_cv_solaris_64bit = yes; then
5 kx acl_libdirstem=lib/64
5 kx case "$host_cpu" in
5 kx sparc*) acl_libdirstem2=lib/sparcv9 ;;
5 kx i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5 kx esac
5 kx fi
5 kx ;;
5 kx *)
5 kx searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5 kx if test -n "$searchpath"; then
5 kx acl_save_IFS="${IFS= }"; IFS=":"
5 kx for searchdir in $searchpath; do
5 kx if test -d "$searchdir"; then
5 kx case "$searchdir" in
5 kx */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5 kx */../ | */.. )
5 kx # Better ignore directories of this form. They are misleading.
5 kx ;;
5 kx *) searchdir=`cd "$searchdir" && pwd`
5 kx case "$searchdir" in
5 kx */lib64 ) acl_libdirstem=lib64 ;;
5 kx esac ;;
5 kx esac
5 kx fi
5 kx done
5 kx IFS="$acl_save_IFS"
5 kx fi
5 kx ;;
5 kx esac
5 kx test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx use_additional=yes
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx
5 kx # Check whether --with-libiconv-prefix was given.
5 kx if test "${with_libiconv_prefix+set}" = set; then :
5 kx withval=$with_libiconv_prefix;
5 kx if test "X$withval" = "Xno"; then
5 kx use_additional=no
5 kx else
5 kx if test "X$withval" = "X"; then
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx else
5 kx additional_includedir="$withval/include"
5 kx additional_libdir="$withval/$acl_libdirstem"
5 kx if test "$acl_libdirstem2" != "$acl_libdirstem" \
5 kx && ! test -d "$withval/$acl_libdirstem"; then
5 kx additional_libdir="$withval/$acl_libdirstem2"
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx LIBICONV=
5 kx LTLIBICONV=
5 kx INCICONV=
5 kx LIBICONV_PREFIX=
5 kx HAVE_LIBICONV=
5 kx rpathdirs=
5 kx ltrpathdirs=
5 kx names_already_handled=
5 kx names_next_round='iconv '
5 kx while test -n "$names_next_round"; do
5 kx names_this_round="$names_next_round"
5 kx names_next_round=
5 kx for name in $names_this_round; do
5 kx already_handled=
5 kx for n in $names_already_handled; do
5 kx if test "$n" = "$name"; then
5 kx already_handled=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$already_handled"; then
5 kx names_already_handled="$names_already_handled $name"
5 kx uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5 kx eval value=\"\$HAVE_LIB$uppername\"
5 kx if test -n "$value"; then
5 kx if test "$value" = yes; then
5 kx eval value=\"\$LIB$uppername\"
5 kx test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5 kx eval value=\"\$LTLIB$uppername\"
5 kx test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5 kx else
5 kx :
5 kx fi
5 kx else
5 kx found_dir=
5 kx found_la=
5 kx found_so=
5 kx found_a=
5 kx eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5 kx if test -n "$acl_shlibext"; then
5 kx shrext=".$acl_shlibext" # typically: shrext=.so
5 kx else
5 kx shrext=
5 kx fi
5 kx if test $use_additional = yes; then
5 kx dir="$additional_libdir"
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx for x in $LDFLAGS $LTLIBICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx case "$x" in
5 kx -L*)
5 kx dir=`echo "X$x" | sed -e 's/^X-L//'`
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx if test "X$found_dir" != "X"; then
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5 kx if test "X$found_so" != "X"; then
5 kx if test "$enable_rpath" = no \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5 kx else
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $found_dir"
5 kx fi
5 kx if test "$acl_hardcode_direct" = yes; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5 kx else
5 kx if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $found_dir"
5 kx fi
5 kx else
5 kx haveit=
5 kx for x in $LDFLAGS $LIBICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5 kx fi
5 kx if test "$acl_hardcode_minus_L" != no; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5 kx else
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx else
5 kx if test "X$found_a" != "X"; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5 kx else
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5 kx fi
5 kx fi
5 kx additional_includedir=
5 kx case "$found_dir" in
5 kx */$acl_libdirstem | */$acl_libdirstem/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5 kx if test "$name" = 'iconv'; then
5 kx LIBICONV_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx */$acl_libdirstem2 | */$acl_libdirstem2/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5 kx if test "$name" = 'iconv'; then
5 kx LIBICONV_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx esac
5 kx if test "X$additional_includedir" != "X"; then
5 kx if test "X$additional_includedir" != "X/usr/include"; then
5 kx haveit=
5 kx if test "X$additional_includedir" = "X/usr/local/include"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx for x in $CPPFLAGS $INCICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-I$additional_includedir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_includedir"; then
5 kx INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx if test -n "$found_la"; then
5 kx save_libdir="$libdir"
5 kx case "$found_la" in
5 kx */* | *\\*) . "$found_la" ;;
5 kx *) . "./$found_la" ;;
5 kx esac
5 kx libdir="$save_libdir"
5 kx for dep in $dependency_libs; do
5 kx case "$dep" in
5 kx -L*)
5 kx additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5 kx if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5 kx && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5 kx haveit=
5 kx if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5 kx || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx haveit=
5 kx for x in $LDFLAGS $LIBICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx haveit=
5 kx for x in $LDFLAGS $LTLIBICONV; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx -R*)
5 kx dir=`echo "X$dep" | sed -e 's/^X-R//'`
5 kx if test "$enable_rpath" != no; then
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $dir"
5 kx fi
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $dir"
5 kx fi
5 kx fi
5 kx ;;
5 kx -l*)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5 kx ;;
5 kx *.la)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5 kx ;;
5 kx *)
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5 kx ;;
5 kx esac
5 kx done
5 kx fi
5 kx else
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx if test "X$rpathdirs" != "X"; then
5 kx if test -n "$acl_hardcode_libdir_separator"; then
5 kx alldirs=
5 kx for found_dir in $rpathdirs; do
5 kx alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5 kx done
5 kx acl_save_libdir="$libdir"
5 kx libdir="$alldirs"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5 kx else
5 kx for found_dir in $rpathdirs; do
5 kx acl_save_libdir="$libdir"
5 kx libdir="$found_dir"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5 kx done
5 kx fi
5 kx fi
5 kx if test "X$ltrpathdirs" != "X"; then
5 kx for found_dir in $ltrpathdirs; do
5 kx LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5 kx done
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5 kx $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5 kx if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gt_save_LIBS="$LIBS"
5 kx LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <CoreFoundation/CFPreferences.h>
5 kx int
5 kx main ()
5 kx {
5 kx CFPreferencesCopyAppValue(NULL, NULL)
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gt_cv_func_CFPreferencesCopyAppValue=yes
5 kx else
5 kx gt_cv_func_CFPreferencesCopyAppValue=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gt_save_LIBS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5 kx $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5 kx if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5 kx
5 kx $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5 kx $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5 kx if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gt_save_LIBS="$LIBS"
5 kx LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <CoreFoundation/CFLocale.h>
5 kx int
5 kx main ()
5 kx {
5 kx CFLocaleCopyCurrent();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gt_cv_func_CFLocaleCopyCurrent=yes
5 kx else
5 kx gt_cv_func_CFLocaleCopyCurrent=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gt_save_LIBS"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5 kx $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5 kx if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5 kx
5 kx $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5 kx
5 kx fi
5 kx INTL_MACOSX_LIBS=
5 kx if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5 kx INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx LIBINTL=
5 kx LTLIBINTL=
5 kx POSUB=
5 kx
5 kx case " $gt_needs " in
5 kx *" need-formatstring-macros "*) gt_api_version=3 ;;
5 kx *" need-ngettext "*) gt_api_version=2 ;;
5 kx *) gt_api_version=1 ;;
5 kx esac
5 kx gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5 kx gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5 kx
5 kx if test "$USE_NLS" = "yes"; then
5 kx gt_use_preinstalled_gnugettext=no
5 kx
5 kx
5 kx if test $gt_api_version -ge 3; then
5 kx gt_revision_test_code='
5 kx #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5 kx #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5 kx #endif
5 kx typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5 kx '
5 kx else
5 kx gt_revision_test_code=
5 kx fi
5 kx if test $gt_api_version -ge 2; then
5 kx gt_expression_test_code=' + * ngettext ("", "", 0)'
5 kx else
5 kx gt_expression_test_code=
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5 kx $as_echo_n "checking for GNU gettext in libc... " >&6; }
5 kx if eval \${$gt_func_gnugettext_libc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <libintl.h>
5 kx $gt_revision_test_code
5 kx extern int _nl_msg_cat_cntr;
5 kx extern int *_nl_domain_bindings;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx bindtextdomain ("", "");
5 kx return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx eval "$gt_func_gnugettext_libc=yes"
5 kx else
5 kx eval "$gt_func_gnugettext_libc=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx eval ac_res=\$$gt_func_gnugettext_libc
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx am_save_CPPFLAGS="$CPPFLAGS"
5 kx
5 kx for element in $INCICONV; do
5 kx haveit=
5 kx for x in $CPPFLAGS; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X$element"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5 kx fi
5 kx done
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5 kx $as_echo_n "checking for iconv... " >&6; }
5 kx if ${am_cv_func_iconv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx am_cv_func_iconv="no, consider installing GNU libiconv"
5 kx am_cv_lib_iconv=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <iconv.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx iconv_t cd = iconv_open("","");
5 kx iconv(cd,NULL,NULL,NULL,NULL);
5 kx iconv_close(cd);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx am_cv_func_iconv=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test "$am_cv_func_iconv" != yes; then
5 kx am_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBICONV"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <iconv.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx iconv_t cd = iconv_open("","");
5 kx iconv(cd,NULL,NULL,NULL,NULL);
5 kx iconv_close(cd);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx am_cv_lib_iconv=yes
5 kx am_cv_func_iconv=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$am_save_LIBS"
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5 kx $as_echo "$am_cv_func_iconv" >&6; }
5 kx if test "$am_cv_func_iconv" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5 kx $as_echo_n "checking for working iconv... " >&6; }
5 kx if ${am_cv_func_iconv_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx am_save_LIBS="$LIBS"
5 kx if test $am_cv_lib_iconv = yes; then
5 kx LIBS="$LIBS $LIBICONV"
5 kx fi
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5 kx *) am_cv_func_iconv_works="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <iconv.h>
5 kx #include <string.h>
5 kx int main ()
5 kx {
5 kx int result = 0;
5 kx /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5 kx returns. */
5 kx {
5 kx iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5 kx if (cd_utf8_to_88591 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\342\202\254"; /* EURO SIGN */
5 kx char buf[10];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_utf8_to_88591,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res == 0)
5 kx result |= 1;
5 kx iconv_close (cd_utf8_to_88591);
5 kx }
5 kx }
5 kx /* Test against Solaris 10 bug: Failures are not distinguishable from
5 kx successful returns. */
5 kx {
5 kx iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5 kx if (cd_ascii_to_88591 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\263";
5 kx char buf[10];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_ascii_to_88591,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res == 0)
5 kx result |= 2;
5 kx iconv_close (cd_ascii_to_88591);
5 kx }
5 kx }
5 kx /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
5 kx {
5 kx iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5 kx if (cd_88591_to_utf8 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\304";
5 kx static char buf[2] = { (char)0xDE, (char)0xAD };
5 kx const char *inptr = input;
5 kx size_t inbytesleft = 1;
5 kx char *outptr = buf;
5 kx size_t outbytesleft = 1;
5 kx size_t res = iconv (cd_88591_to_utf8,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5 kx result |= 4;
5 kx iconv_close (cd_88591_to_utf8);
5 kx }
5 kx }
5 kx #if 0 /* This bug could be worked around by the caller. */
5 kx /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5 kx {
5 kx iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5 kx if (cd_88591_to_utf8 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5 kx char buf[50];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_88591_to_utf8,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if ((int)res > 0)
5 kx result |= 8;
5 kx iconv_close (cd_88591_to_utf8);
5 kx }
5 kx }
5 kx #endif
5 kx /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5 kx provided. */
5 kx if (/* Try standardized names. */
5 kx iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5 kx /* Try IRIX, OSF/1 names. */
5 kx && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5 kx /* Try AIX names. */
5 kx && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5 kx /* Try HP-UX names. */
5 kx && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5 kx result |= 16;
5 kx return result;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx am_cv_func_iconv_works=yes
5 kx else
5 kx am_cv_func_iconv_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LIBS="$am_save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5 kx $as_echo "$am_cv_func_iconv_works" >&6; }
5 kx case "$am_cv_func_iconv_works" in
5 kx *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5 kx *) am_func_iconv=yes ;;
5 kx esac
5 kx else
5 kx am_func_iconv=no am_cv_lib_iconv=no
5 kx fi
5 kx if test "$am_func_iconv" = yes; then
5 kx
5 kx $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5 kx
5 kx fi
5 kx if test "$am_cv_lib_iconv" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5 kx $as_echo_n "checking how to link with libiconv... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5 kx $as_echo "$LIBICONV" >&6; }
5 kx else
5 kx CPPFLAGS="$am_save_CPPFLAGS"
5 kx LIBICONV=
5 kx LTLIBICONV=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx use_additional=yes
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx
5 kx # Check whether --with-libintl-prefix was given.
5 kx if test "${with_libintl_prefix+set}" = set; then :
5 kx withval=$with_libintl_prefix;
5 kx if test "X$withval" = "Xno"; then
5 kx use_additional=no
5 kx else
5 kx if test "X$withval" = "X"; then
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx else
5 kx additional_includedir="$withval/include"
5 kx additional_libdir="$withval/$acl_libdirstem"
5 kx if test "$acl_libdirstem2" != "$acl_libdirstem" \
5 kx && ! test -d "$withval/$acl_libdirstem"; then
5 kx additional_libdir="$withval/$acl_libdirstem2"
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx LIBINTL=
5 kx LTLIBINTL=
5 kx INCINTL=
5 kx LIBINTL_PREFIX=
5 kx HAVE_LIBINTL=
5 kx rpathdirs=
5 kx ltrpathdirs=
5 kx names_already_handled=
5 kx names_next_round='intl '
5 kx while test -n "$names_next_round"; do
5 kx names_this_round="$names_next_round"
5 kx names_next_round=
5 kx for name in $names_this_round; do
5 kx already_handled=
5 kx for n in $names_already_handled; do
5 kx if test "$n" = "$name"; then
5 kx already_handled=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$already_handled"; then
5 kx names_already_handled="$names_already_handled $name"
5 kx uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5 kx eval value=\"\$HAVE_LIB$uppername\"
5 kx if test -n "$value"; then
5 kx if test "$value" = yes; then
5 kx eval value=\"\$LIB$uppername\"
5 kx test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5 kx eval value=\"\$LTLIB$uppername\"
5 kx test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5 kx else
5 kx :
5 kx fi
5 kx else
5 kx found_dir=
5 kx found_la=
5 kx found_so=
5 kx found_a=
5 kx eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5 kx if test -n "$acl_shlibext"; then
5 kx shrext=".$acl_shlibext" # typically: shrext=.so
5 kx else
5 kx shrext=
5 kx fi
5 kx if test $use_additional = yes; then
5 kx dir="$additional_libdir"
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx for x in $LDFLAGS $LTLIBINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx case "$x" in
5 kx -L*)
5 kx dir=`echo "X$x" | sed -e 's/^X-L//'`
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx if test "X$found_dir" != "X"; then
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5 kx if test "X$found_so" != "X"; then
5 kx if test "$enable_rpath" = no \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5 kx else
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $found_dir"
5 kx fi
5 kx if test "$acl_hardcode_direct" = yes; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5 kx else
5 kx if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $found_dir"
5 kx fi
5 kx else
5 kx haveit=
5 kx for x in $LDFLAGS $LIBINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5 kx fi
5 kx if test "$acl_hardcode_minus_L" != no; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5 kx else
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx else
5 kx if test "X$found_a" != "X"; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5 kx else
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5 kx fi
5 kx fi
5 kx additional_includedir=
5 kx case "$found_dir" in
5 kx */$acl_libdirstem | */$acl_libdirstem/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5 kx if test "$name" = 'intl'; then
5 kx LIBINTL_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx */$acl_libdirstem2 | */$acl_libdirstem2/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5 kx if test "$name" = 'intl'; then
5 kx LIBINTL_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx esac
5 kx if test "X$additional_includedir" != "X"; then
5 kx if test "X$additional_includedir" != "X/usr/include"; then
5 kx haveit=
5 kx if test "X$additional_includedir" = "X/usr/local/include"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx for x in $CPPFLAGS $INCINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-I$additional_includedir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_includedir"; then
5 kx INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx if test -n "$found_la"; then
5 kx save_libdir="$libdir"
5 kx case "$found_la" in
5 kx */* | *\\*) . "$found_la" ;;
5 kx *) . "./$found_la" ;;
5 kx esac
5 kx libdir="$save_libdir"
5 kx for dep in $dependency_libs; do
5 kx case "$dep" in
5 kx -L*)
5 kx additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5 kx if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5 kx && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5 kx haveit=
5 kx if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5 kx || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx haveit=
5 kx for x in $LDFLAGS $LIBINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx haveit=
5 kx for x in $LDFLAGS $LTLIBINTL; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx -R*)
5 kx dir=`echo "X$dep" | sed -e 's/^X-R//'`
5 kx if test "$enable_rpath" != no; then
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $dir"
5 kx fi
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $dir"
5 kx fi
5 kx fi
5 kx ;;
5 kx -l*)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5 kx ;;
5 kx *.la)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5 kx ;;
5 kx *)
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5 kx ;;
5 kx esac
5 kx done
5 kx fi
5 kx else
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx if test "X$rpathdirs" != "X"; then
5 kx if test -n "$acl_hardcode_libdir_separator"; then
5 kx alldirs=
5 kx for found_dir in $rpathdirs; do
5 kx alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5 kx done
5 kx acl_save_libdir="$libdir"
5 kx libdir="$alldirs"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5 kx else
5 kx for found_dir in $rpathdirs; do
5 kx acl_save_libdir="$libdir"
5 kx libdir="$found_dir"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5 kx done
5 kx fi
5 kx fi
5 kx if test "X$ltrpathdirs" != "X"; then
5 kx for found_dir in $ltrpathdirs; do
5 kx LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5 kx done
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5 kx $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5 kx if eval \${$gt_func_gnugettext_libintl+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gt_save_CPPFLAGS="$CPPFLAGS"
5 kx CPPFLAGS="$CPPFLAGS $INCINTL"
5 kx gt_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBINTL"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <libintl.h>
5 kx $gt_revision_test_code
5 kx extern int _nl_msg_cat_cntr;
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx const char *_nl_expand_alias (const char *);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx bindtextdomain ("", "");
5 kx return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx eval "$gt_func_gnugettext_libintl=yes"
5 kx else
5 kx eval "$gt_func_gnugettext_libintl=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
5 kx LIBS="$LIBS $LIBICONV"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <libintl.h>
5 kx $gt_revision_test_code
5 kx extern int _nl_msg_cat_cntr;
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx const char *_nl_expand_alias (const char *);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx bindtextdomain ("", "");
5 kx return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx LIBINTL="$LIBINTL $LIBICONV"
5 kx LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5 kx eval "$gt_func_gnugettext_libintl=yes"
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx CPPFLAGS="$gt_save_CPPFLAGS"
5 kx LIBS="$gt_save_LIBS"
5 kx fi
5 kx eval ac_res=\$$gt_func_gnugettext_libintl
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx fi
5 kx
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
5 kx || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
5 kx && test "$PACKAGE" != gettext-runtime \
5 kx && test "$PACKAGE" != gettext-tools; }; then
5 kx gt_use_preinstalled_gnugettext=yes
5 kx else
5 kx LIBINTL=
5 kx LTLIBINTL=
5 kx INCINTL=
5 kx fi
5 kx
5 kx
5 kx
5 kx if test -n "$INTL_MACOSX_LIBS"; then
5 kx if test "$gt_use_preinstalled_gnugettext" = "yes" \
5 kx || test "$nls_cv_use_gnu_gettext" = "yes"; then
5 kx LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5 kx LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5 kx fi
5 kx fi
5 kx
5 kx if test "$gt_use_preinstalled_gnugettext" = "yes" \
5 kx || test "$nls_cv_use_gnu_gettext" = "yes"; then
5 kx
5 kx $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5 kx
5 kx else
5 kx USE_NLS=no
5 kx fi
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5 kx $as_echo_n "checking whether to use NLS... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5 kx $as_echo "$USE_NLS" >&6; }
5 kx if test "$USE_NLS" = "yes"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5 kx $as_echo_n "checking where the gettext function comes from... " >&6; }
5 kx if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5 kx gt_source="external libintl"
5 kx else
5 kx gt_source="libc"
5 kx fi
5 kx else
5 kx gt_source="included intl directory"
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5 kx $as_echo "$gt_source" >&6; }
5 kx fi
5 kx
5 kx if test "$USE_NLS" = "yes"; then
5 kx
5 kx if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5 kx if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5 kx $as_echo_n "checking how to link with libintl... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5 kx $as_echo "$LIBINTL" >&6; }
5 kx
5 kx for element in $INCINTL; do
5 kx haveit=
5 kx for x in $CPPFLAGS; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X$element"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5 kx fi
5 kx done
5 kx
5 kx fi
5 kx
5 kx
5 kx $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx POSUB=po
5 kx fi
5 kx
5 kx
5 kx
5 kx INTLLIBS="$LIBINTL"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_ICONV=0;
5 kx ICONV_CONST=;
5 kx REPLACE_ICONV=0;
5 kx REPLACE_ICONV_OPEN=0;
5 kx REPLACE_ICONV_UTF=0;
5 kx ICONV_H='';
5 kx if false; then
5 kx ICONV_H='iconv.h'
5 kx fi
5 kx
5 kx if test -n "$ICONV_H"; then
5 kx GL_GENERATE_ICONV_H_TRUE=
5 kx GL_GENERATE_ICONV_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_ICONV_H_TRUE='#'
5 kx GL_GENERATE_ICONV_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx am_save_CPPFLAGS="$CPPFLAGS"
5 kx
5 kx for element in $INCICONV; do
5 kx haveit=
5 kx for x in $CPPFLAGS; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X$element"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5 kx fi
5 kx done
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5 kx $as_echo_n "checking for iconv... " >&6; }
5 kx if ${am_cv_func_iconv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx am_cv_func_iconv="no, consider installing GNU libiconv"
5 kx am_cv_lib_iconv=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <iconv.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx iconv_t cd = iconv_open("","");
5 kx iconv(cd,NULL,NULL,NULL,NULL);
5 kx iconv_close(cd);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx am_cv_func_iconv=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test "$am_cv_func_iconv" != yes; then
5 kx am_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBICONV"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <iconv.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx iconv_t cd = iconv_open("","");
5 kx iconv(cd,NULL,NULL,NULL,NULL);
5 kx iconv_close(cd);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx am_cv_lib_iconv=yes
5 kx am_cv_func_iconv=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$am_save_LIBS"
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5 kx $as_echo "$am_cv_func_iconv" >&6; }
5 kx if test "$am_cv_func_iconv" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5 kx $as_echo_n "checking for working iconv... " >&6; }
5 kx if ${am_cv_func_iconv_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx am_save_LIBS="$LIBS"
5 kx if test $am_cv_lib_iconv = yes; then
5 kx LIBS="$LIBS $LIBICONV"
5 kx fi
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5 kx *) am_cv_func_iconv_works="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <iconv.h>
5 kx #include <string.h>
5 kx int main ()
5 kx {
5 kx int result = 0;
5 kx /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5 kx returns. */
5 kx {
5 kx iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5 kx if (cd_utf8_to_88591 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\342\202\254"; /* EURO SIGN */
5 kx char buf[10];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_utf8_to_88591,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res == 0)
5 kx result |= 1;
5 kx iconv_close (cd_utf8_to_88591);
5 kx }
5 kx }
5 kx /* Test against Solaris 10 bug: Failures are not distinguishable from
5 kx successful returns. */
5 kx {
5 kx iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5 kx if (cd_ascii_to_88591 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\263";
5 kx char buf[10];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_ascii_to_88591,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res == 0)
5 kx result |= 2;
5 kx iconv_close (cd_ascii_to_88591);
5 kx }
5 kx }
5 kx /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
5 kx {
5 kx iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5 kx if (cd_88591_to_utf8 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\304";
5 kx static char buf[2] = { (char)0xDE, (char)0xAD };
5 kx const char *inptr = input;
5 kx size_t inbytesleft = 1;
5 kx char *outptr = buf;
5 kx size_t outbytesleft = 1;
5 kx size_t res = iconv (cd_88591_to_utf8,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5 kx result |= 4;
5 kx iconv_close (cd_88591_to_utf8);
5 kx }
5 kx }
5 kx #if 0 /* This bug could be worked around by the caller. */
5 kx /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5 kx {
5 kx iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5 kx if (cd_88591_to_utf8 != (iconv_t)(-1))
5 kx {
5 kx static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5 kx char buf[50];
5 kx const char *inptr = input;
5 kx size_t inbytesleft = strlen (input);
5 kx char *outptr = buf;
5 kx size_t outbytesleft = sizeof (buf);
5 kx size_t res = iconv (cd_88591_to_utf8,
5 kx (char **) &inptr, &inbytesleft,
5 kx &outptr, &outbytesleft);
5 kx if ((int)res > 0)
5 kx result |= 8;
5 kx iconv_close (cd_88591_to_utf8);
5 kx }
5 kx }
5 kx #endif
5 kx /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5 kx provided. */
5 kx if (/* Try standardized names. */
5 kx iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5 kx /* Try IRIX, OSF/1 names. */
5 kx && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5 kx /* Try AIX names. */
5 kx && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5 kx /* Try HP-UX names. */
5 kx && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5 kx result |= 16;
5 kx return result;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx am_cv_func_iconv_works=yes
5 kx else
5 kx am_cv_func_iconv_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LIBS="$am_save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5 kx $as_echo "$am_cv_func_iconv_works" >&6; }
5 kx case "$am_cv_func_iconv_works" in
5 kx *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5 kx *) am_func_iconv=yes ;;
5 kx esac
5 kx else
5 kx am_func_iconv=no am_cv_lib_iconv=no
5 kx fi
5 kx if test "$am_func_iconv" = yes; then
5 kx
5 kx $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5 kx
5 kx fi
5 kx if test "$am_cv_lib_iconv" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5 kx $as_echo_n "checking how to link with libiconv... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5 kx $as_echo "$LIBICONV" >&6; }
5 kx else
5 kx CPPFLAGS="$am_save_CPPFLAGS"
5 kx LIBICONV=
5 kx LTLIBICONV=
5 kx fi
5 kx
5 kx
5 kx
5 kx if test "$am_cv_func_iconv" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5 kx $as_echo_n "checking for iconv declaration... " >&6; }
5 kx if ${am_cv_proto_iconv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <iconv.h>
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
5 kx size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5 kx #else
5 kx size_t iconv();
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx am_cv_proto_iconv_arg1=""
5 kx else
5 kx am_cv_proto_iconv_arg1="const"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 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);"
5 kx fi
5 kx
5 kx am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result:
5 kx $am_cv_proto_iconv" >&5
5 kx $as_echo "
5 kx $am_cv_proto_iconv" >&6; }
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ICONV_CONST $am_cv_proto_iconv_arg1
5 kx _ACEOF
5 kx
5 kx
5 kx if test -n "$am_cv_proto_iconv_arg1"; then
5 kx ICONV_CONST="const"
5 kx fi
5 kx
5 kx fi
5 kx
5 kx # If set to t, that means we are running in a shell under Emacs.
5 kx # If you have an Emacs named "t", then use the full path.
5 kx test x"$EMACS" = xt && EMACS=
5 kx for ac_prog in emacs xemacs
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_EMACS+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$EMACS"; then
5 kx ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_EMACS="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx EMACS=$ac_cv_prog_EMACS
5 kx if test -n "$EMACS"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
5 kx $as_echo "$EMACS" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$EMACS" && break
5 kx done
5 kx test -n "$EMACS" || EMACS="no"
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-lispdir was given.
5 kx if test "${with_lispdir+set}" = set; then :
5 kx withval=$with_lispdir; lispdir="$withval"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
5 kx $as_echo_n "checking where .elc files should go... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
5 kx $as_echo "$lispdir" >&6; }
5 kx else
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
5 kx $as_echo_n "checking where .elc files should go... " >&6; }
5 kx if ${am_cv_lispdir+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $EMACS != "no"; then
5 kx if test x${lispdir+set} != xset; then
5 kx # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
5 kx # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
5 kx # which is non-obvious for non-emacs users.
5 kx # Redirecting /dev/null should help a bit; pity we can't detect "broken"
5 kx # emacsen earlier and avoid running this altogether.
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
5 kx ($EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }
5 kx am_cv_lispdir=`sed -n \
5 kx -e 's,/$,,' \
5 kx -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
5 kx -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
5 kx conftest.out`
5 kx rm conftest.out
5 kx fi
5 kx fi
5 kx test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
5 kx $as_echo "$am_cv_lispdir" >&6; }
5 kx lispdir="$am_cv_lispdir"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx if test "$am_cv_func_iconv" != "yes"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}:
5 kx ***
5 kx
5 kx Your system does not have iconv(). The iconv() function is not
5 kx strictly required by the source code. However, that may change in
5 kx the future, unless you report that this may be a problem for you.
5 kx
5 kx Please report this to $PACKAGE_BUGREPORT.
5 kx
5 kx ***" >&5
5 kx $as_echo "$as_me:
5 kx ***
5 kx
5 kx Your system does not have iconv(). The iconv() function is not
5 kx strictly required by the source code. However, that may change in
5 kx the future, unless you report that this may be a problem for you.
5 kx
5 kx Please report this to $PACKAGE_BUGREPORT.
5 kx
5 kx ***" >&6;}
5 kx fi
5 kx
5 kx # Checks for header files.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5 kx $as_echo_n "checking for ANSI C header files... " >&6; }
5 kx if ${ac_cv_header_stdc+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <stdarg.h>
5 kx #include <string.h>
5 kx #include <float.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_stdc=yes
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "memchr" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "free" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_header_stdc = yes; then
5 kx # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5 kx if test "$cross_compiling" = yes; then :
5 kx :
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx #include <stdlib.h>
5 kx #if ((' ' & 0x0FF) == 0x020)
5 kx # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5 kx # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5 kx #else
5 kx # define ISLOWER(c) \
5 kx (('a' <= (c) && (c) <= 'i') \
5 kx || ('j' <= (c) && (c) <= 'r') \
5 kx || ('s' <= (c) && (c) <= 'z'))
5 kx # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5 kx #endif
5 kx
5 kx #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5 kx int
5 kx main ()
5 kx {
5 kx int i;
5 kx for (i = 0; i < 256; i++)
5 kx if (XOR (islower (i), ISLOWER (i))
5 kx || toupper (i) != TOUPPER (i))
5 kx return 2;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx
5 kx else
5 kx ac_cv_header_stdc=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5 kx $as_echo "$ac_cv_header_stdc" >&6; }
5 kx if test $ac_cv_header_stdc = yes; then
5 kx
5 kx $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx # For gnulib stuff in gl/.
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --enable-cross-guesses was given.
5 kx if test "${enable_cross_guesses+set}" = set; then :
5 kx enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
5 kx $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
5 kx enableval=conservative
5 kx fi
5 kx gl_cross_guesses="$enableval"
5 kx else
5 kx gl_cross_guesses=conservative
5 kx fi
5 kx
5 kx if test $gl_cross_guesses = risky; then
5 kx gl_cross_guess_normal="guessing yes"
5 kx gl_cross_guess_inverted="guessing no"
5 kx else
5 kx gl_cross_guess_normal="guessing no"
5 kx gl_cross_guess_inverted="guessing yes"
5 kx fi
5 kx LIBC_FATAL_STDERR_=1
5 kx export LIBC_FATAL_STDERR_
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5 kx if test "x$ac_cv_type_size_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define size_t unsigned int
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5 kx # for constant arguments. Useless!
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5 kx $as_echo_n "checking for working alloca.h... " >&6; }
5 kx if ${ac_cv_working_alloca_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <alloca.h>
5 kx int
5 kx main ()
5 kx {
5 kx char *p = (char *) alloca (2 * sizeof (int));
5 kx if (p) return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_working_alloca_h=yes
5 kx else
5 kx ac_cv_working_alloca_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5 kx $as_echo "$ac_cv_working_alloca_h" >&6; }
5 kx if test $ac_cv_working_alloca_h = yes; then
5 kx
5 kx $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5 kx $as_echo_n "checking for alloca... " >&6; }
5 kx if ${ac_cv_func_alloca_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __GNUC__
5 kx # define alloca __builtin_alloca
5 kx #else
5 kx # ifdef _MSC_VER
5 kx # include <malloc.h>
5 kx # define alloca _alloca
5 kx # else
5 kx # ifdef HAVE_ALLOCA_H
5 kx # include <alloca.h>
5 kx # else
5 kx # ifdef _AIX
5 kx #pragma alloca
5 kx # else
5 kx # ifndef alloca /* predefined by HP cc +Olibcalls */
5 kx void *alloca (size_t);
5 kx # endif
5 kx # endif
5 kx # endif
5 kx # endif
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx char *p = (char *) alloca (1);
5 kx if (p) return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_func_alloca_works=yes
5 kx else
5 kx ac_cv_func_alloca_works=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5 kx $as_echo "$ac_cv_func_alloca_works" >&6; }
5 kx
5 kx if test $ac_cv_func_alloca_works = yes; then
5 kx
5 kx $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5 kx
5 kx else
5 kx # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5 kx # that cause trouble. Some versions do not even contain alloca or
5 kx # contain a buggy version. If you still want to use their alloca,
5 kx # use ar to extract alloca.o from them instead of compiling alloca.c.
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5 kx
5 kx $as_echo "#define C_ALLOCA 1" >>confdefs.h
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5 kx $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5 kx if ${ac_cv_os_cray+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #if defined CRAY && ! defined CRAY2
5 kx webecray
5 kx #else
5 kx wenotbecray
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "webecray" >/dev/null 2>&1; then :
5 kx ac_cv_os_cray=yes
5 kx else
5 kx ac_cv_os_cray=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5 kx $as_echo "$ac_cv_os_cray" >&6; }
5 kx if test $ac_cv_os_cray = yes; then
5 kx for ac_func in _getb67 GETB67 getb67; do
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define CRAY_STACKSEG_END $ac_func
5 kx _ACEOF
5 kx
5 kx break
5 kx fi
5 kx
5 kx done
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5 kx $as_echo_n "checking stack direction for C alloca... " >&6; }
5 kx if ${ac_cv_c_stack_direction+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx ac_cv_c_stack_direction=0
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx find_stack_direction (int *addr, int depth)
5 kx {
5 kx int dir, dummy = 0;
5 kx if (! addr)
5 kx addr = &dummy;
5 kx *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5 kx dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5 kx return dir + dummy;
5 kx }
5 kx
5 kx int
5 kx main (int argc, char **argv)
5 kx {
5 kx return find_stack_direction (0, argc + !argv + 20) < 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_c_stack_direction=1
5 kx else
5 kx ac_cv_c_stack_direction=-1
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5 kx $as_echo "$ac_cv_c_stack_direction" >&6; }
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define STACK_DIRECTION $ac_cv_c_stack_direction
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx GNULIB_ACCESS=0;
5 kx GNULIB_CHDIR=0;
5 kx GNULIB_CHOWN=0;
5 kx GNULIB_CLOSE=0;
5 kx GNULIB_COPY_FILE_RANGE=0;
5 kx GNULIB_DUP=0;
5 kx GNULIB_DUP2=0;
5 kx GNULIB_DUP3=0;
5 kx GNULIB_ENVIRON=0;
5 kx GNULIB_EUIDACCESS=0;
5 kx GNULIB_FACCESSAT=0;
5 kx GNULIB_FCHDIR=0;
5 kx GNULIB_FCHOWNAT=0;
5 kx GNULIB_FDATASYNC=0;
5 kx GNULIB_FSYNC=0;
5 kx GNULIB_FTRUNCATE=0;
5 kx GNULIB_GETCWD=0;
5 kx GNULIB_GETDOMAINNAME=0;
5 kx GNULIB_GETDTABLESIZE=0;
5 kx GNULIB_GETENTROPY=0;
5 kx GNULIB_GETGROUPS=0;
5 kx GNULIB_GETHOSTNAME=0;
5 kx GNULIB_GETLOGIN=0;
5 kx GNULIB_GETLOGIN_R=0;
5 kx GNULIB_GETOPT_POSIX=0;
5 kx GNULIB_GETPAGESIZE=0;
5 kx GNULIB_GETPASS=0;
5 kx GNULIB_GETUSERSHELL=0;
5 kx GNULIB_GROUP_MEMBER=0;
5 kx GNULIB_ISATTY=0;
5 kx GNULIB_LCHOWN=0;
5 kx GNULIB_LINK=0;
5 kx GNULIB_LINKAT=0;
5 kx GNULIB_LSEEK=0;
5 kx GNULIB_PIPE=0;
5 kx GNULIB_PIPE2=0;
5 kx GNULIB_PREAD=0;
5 kx GNULIB_PWRITE=0;
5 kx GNULIB_READ=0;
5 kx GNULIB_READLINK=0;
5 kx GNULIB_READLINKAT=0;
5 kx GNULIB_RMDIR=0;
5 kx GNULIB_SETHOSTNAME=0;
5 kx GNULIB_SLEEP=0;
5 kx GNULIB_SYMLINK=0;
5 kx GNULIB_SYMLINKAT=0;
5 kx GNULIB_TRUNCATE=0;
5 kx GNULIB_TTYNAME_R=0;
5 kx GNULIB_UNISTD_H_NONBLOCKING=0;
5 kx GNULIB_UNISTD_H_SIGPIPE=0;
5 kx GNULIB_UNLINK=0;
5 kx GNULIB_UNLINKAT=0;
5 kx GNULIB_USLEEP=0;
5 kx GNULIB_WRITE=0;
5 kx HAVE_CHOWN=1;
5 kx HAVE_COPY_FILE_RANGE=1;
5 kx HAVE_DUP3=1;
5 kx HAVE_EUIDACCESS=1;
5 kx HAVE_FACCESSAT=1;
5 kx HAVE_FCHDIR=1;
5 kx HAVE_FCHOWNAT=1;
5 kx HAVE_FDATASYNC=1;
5 kx HAVE_FSYNC=1;
5 kx HAVE_FTRUNCATE=1;
5 kx HAVE_GETDTABLESIZE=1;
5 kx HAVE_GETENTROPY=1;
5 kx HAVE_GETGROUPS=1;
5 kx HAVE_GETHOSTNAME=1;
5 kx HAVE_GETLOGIN=1;
5 kx HAVE_GETPAGESIZE=1;
5 kx HAVE_GETPASS=1;
5 kx HAVE_GROUP_MEMBER=1;
5 kx HAVE_LCHOWN=1;
5 kx HAVE_LINK=1;
5 kx HAVE_LINKAT=1;
5 kx HAVE_PIPE=1;
5 kx HAVE_PIPE2=1;
5 kx HAVE_PREAD=1;
5 kx HAVE_PWRITE=1;
5 kx HAVE_READLINK=1;
5 kx HAVE_READLINKAT=1;
5 kx HAVE_SETHOSTNAME=1;
5 kx HAVE_SLEEP=1;
5 kx HAVE_SYMLINK=1;
5 kx HAVE_SYMLINKAT=1;
5 kx HAVE_UNLINKAT=1;
5 kx HAVE_USLEEP=1;
5 kx HAVE_DECL_ENVIRON=1;
5 kx HAVE_DECL_FCHDIR=1;
5 kx HAVE_DECL_FDATASYNC=1;
5 kx HAVE_DECL_GETDOMAINNAME=1;
5 kx HAVE_DECL_GETLOGIN=1;
5 kx HAVE_DECL_GETLOGIN_R=1;
5 kx HAVE_DECL_GETPAGESIZE=1;
5 kx HAVE_DECL_GETUSERSHELL=1;
5 kx HAVE_DECL_SETHOSTNAME=1;
5 kx HAVE_DECL_TRUNCATE=1;
5 kx HAVE_DECL_TTYNAME_R=1;
5 kx HAVE_OS_H=0;
5 kx HAVE_SYS_PARAM_H=0;
5 kx REPLACE_ACCESS=0;
5 kx REPLACE_CHOWN=0;
5 kx REPLACE_CLOSE=0;
5 kx REPLACE_DUP=0;
5 kx REPLACE_DUP2=0;
5 kx REPLACE_FACCESSAT=0;
5 kx REPLACE_FCHOWNAT=0;
5 kx REPLACE_FTRUNCATE=0;
5 kx REPLACE_GETCWD=0;
5 kx REPLACE_GETDOMAINNAME=0;
5 kx REPLACE_GETDTABLESIZE=0;
5 kx REPLACE_GETLOGIN_R=0;
5 kx REPLACE_GETGROUPS=0;
5 kx REPLACE_GETPAGESIZE=0;
5 kx REPLACE_GETPASS=0;
5 kx REPLACE_ISATTY=0;
5 kx REPLACE_LCHOWN=0;
5 kx REPLACE_LINK=0;
5 kx REPLACE_LINKAT=0;
5 kx REPLACE_LSEEK=0;
5 kx REPLACE_PREAD=0;
5 kx REPLACE_PWRITE=0;
5 kx REPLACE_READ=0;
5 kx REPLACE_READLINK=0;
5 kx REPLACE_READLINKAT=0;
5 kx REPLACE_RMDIR=0;
5 kx REPLACE_SLEEP=0;
5 kx REPLACE_SYMLINK=0;
5 kx REPLACE_SYMLINKAT=0;
5 kx REPLACE_TRUNCATE=0;
5 kx REPLACE_TTYNAME_R=0;
5 kx REPLACE_UNLINK=0;
5 kx REPLACE_UNLINKAT=0;
5 kx REPLACE_USLEEP=0;
5 kx REPLACE_WRITE=0;
5 kx UNISTD_H_HAVE_SYS_RANDOM_H=0;
5 kx UNISTD_H_HAVE_WINSOCK2_H=0;
5 kx UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_func in $ac_func_list
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func__set_invalid_parameter_handler = yes; then
5 kx HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
5 kx
5 kx $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
5 kx
5 kx else
5 kx HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
5 kx fi
5 kx
5 kx
5 kx
5 kx GNULIB_IOCTL=0;
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=0;
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5 kx
5 kx REPLACE_IOCTL=0;
5 kx
5 kx
5 kx
5 kx
5 kx for ac_header in $ac_header_list
5 kx do :
5 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5 kx "
5 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
5 kx $as_echo_n "checking for preferred C# implementation... " >&6; }
5 kx # Check whether --enable-csharp was given.
5 kx if test "${enable_csharp+set}" = set; then :
5 kx enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
5 kx else
5 kx CSHARP_CHOICE=any
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
5 kx $as_echo "$CSHARP_CHOICE" >&6; }
5 kx case "$CSHARP_CHOICE" in
5 kx mono)
5 kx
5 kx $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
5 kx $as_echo_n "checking for C# compiler... " >&6; }
5 kx HAVE_CSHARPCOMP=1
5 kx # Extract the first word of "mcs", so it can be a program name with args.
5 kx set dummy mcs; ac_word=$2
5 kx :
5 kx if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$HAVE_MCS_IN_PATH"; then
5 kx ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_HAVE_MCS_IN_PATH="yes"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
5 kx if test -n "$HAVE_MCS_IN_PATH"; then
5 kx :
5 kx else
5 kx :
5 kx fi
5 kx
5 kx
5 kx # Extract the first word of "csc", so it can be a program name with args.
5 kx set dummy csc; ac_word=$2
5 kx :
5 kx if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$HAVE_CSC_IN_PATH"; then
5 kx ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_HAVE_CSC_IN_PATH="yes"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
5 kx if test -n "$HAVE_CSC_IN_PATH"; then
5 kx :
5 kx else
5 kx :
5 kx fi
5 kx
5 kx
5 kx for impl in "$CSHARP_CHOICE" mono sscli no; do
5 kx case "$impl" in
5 kx mono)
5 kx if test -n "$HAVE_MCS_IN_PATH" \
5 kx && mcs --version >/dev/null 2>/dev/null \
5 kx && mcs --version 2>/dev/null | grep Mono >/dev/null; then
5 kx HAVE_MCS=1
5 kx ac_result="mcs"
5 kx break
5 kx fi
5 kx ;;
5 kx sscli)
5 kx if test -n "$HAVE_CSC_IN_PATH" \
5 kx && csc -help >/dev/null 2>/dev/null \
5 kx && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
5 kx HAVE_CSC=1
5 kx ac_result="csc"
5 kx break
5 kx fi
5 kx ;;
5 kx no)
5 kx HAVE_CSHARPCOMP=
5 kx ac_result="no"
5 kx break
5 kx ;;
5 kx esac
5 kx done
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
5 kx $as_echo "$ac_result" >&6; }
5 kx
5 kx
5 kx if test -z "${CSHARPCOMPFLAGS+set}"; then
5 kx CSHARPCOMPFLAGS="-O -g"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5 kx $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5 kx if ${gl_cv_have_include_next+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx rm -rf conftestd1a conftestd1b conftestd2
5 kx mkdir conftestd1a conftestd1b conftestd2
5 kx cat <<EOF > conftestd1a/conftest.h
5 kx #define DEFINED_IN_CONFTESTD1
5 kx #include_next <conftest.h>
5 kx #ifdef DEFINED_IN_CONFTESTD2
5 kx int foo;
5 kx #else
5 kx #error "include_next doesn't work"
5 kx #endif
5 kx EOF
5 kx cat <<EOF > conftestd1b/conftest.h
5 kx #define DEFINED_IN_CONFTESTD1
5 kx #include <stdio.h>
5 kx #include_next <conftest.h>
5 kx #ifdef DEFINED_IN_CONFTESTD2
5 kx int foo;
5 kx #else
5 kx #error "include_next doesn't work"
5 kx #endif
5 kx EOF
5 kx cat <<EOF > conftestd2/conftest.h
5 kx #ifndef DEFINED_IN_CONFTESTD1
5 kx #error "include_next test doesn't work"
5 kx #endif
5 kx #define DEFINED_IN_CONFTESTD2
5 kx EOF
5 kx gl_save_CPPFLAGS="$CPPFLAGS"
5 kx CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <conftest.h>
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_have_include_next=yes
5 kx else
5 kx CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <conftest.h>
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_have_include_next=buggy
5 kx else
5 kx gl_cv_have_include_next=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CPPFLAGS="$gl_save_CPPFLAGS"
5 kx rm -rf conftestd1a conftestd1b conftestd2
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5 kx $as_echo "$gl_cv_have_include_next" >&6; }
5 kx PRAGMA_SYSTEM_HEADER=
5 kx if test $gl_cv_have_include_next = yes; then
5 kx INCLUDE_NEXT=include_next
5 kx INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5 kx if test -n "$GCC"; then
5 kx PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5 kx fi
5 kx else
5 kx if test $gl_cv_have_include_next = buggy; then
5 kx INCLUDE_NEXT=include
5 kx INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5 kx else
5 kx INCLUDE_NEXT=include
5 kx INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5 kx $as_echo_n "checking whether system header files limit the line length... " >&6; }
5 kx if ${gl_cv_pragma_columns+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef __TANDEM
5 kx choke me
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "choke me" >/dev/null 2>&1; then :
5 kx gl_cv_pragma_columns=yes
5 kx else
5 kx gl_cv_pragma_columns=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5 kx $as_echo "$gl_cv_pragma_columns" >&6; }
5 kx if test $gl_cv_pragma_columns = yes; then
5 kx PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5 kx else
5 kx PRAGMA_COLUMNS=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5 kx $as_echo_n "checking for complete errno.h... " >&6; }
5 kx if ${gl_cv_header_errno_h_complete+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #if !defined ETXTBSY
5 kx booboo
5 kx #endif
5 kx #if !defined ENOMSG
5 kx booboo
5 kx #endif
5 kx #if !defined EIDRM
5 kx booboo
5 kx #endif
5 kx #if !defined ENOLINK
5 kx booboo
5 kx #endif
5 kx #if !defined EPROTO
5 kx booboo
5 kx #endif
5 kx #if !defined EMULTIHOP
5 kx booboo
5 kx #endif
5 kx #if !defined EBADMSG
5 kx booboo
5 kx #endif
5 kx #if !defined EOVERFLOW
5 kx booboo
5 kx #endif
5 kx #if !defined ENOTSUP
5 kx booboo
5 kx #endif
5 kx #if !defined ENETRESET
5 kx booboo
5 kx #endif
5 kx #if !defined ECONNABORTED
5 kx booboo
5 kx #endif
5 kx #if !defined ESTALE
5 kx booboo
5 kx #endif
5 kx #if !defined EDQUOT
5 kx booboo
5 kx #endif
5 kx #if !defined ECANCELED
5 kx booboo
5 kx #endif
5 kx #if !defined EOWNERDEAD
5 kx booboo
5 kx #endif
5 kx #if !defined ENOTRECOVERABLE
5 kx booboo
5 kx #endif
5 kx #if !defined EILSEQ
5 kx booboo
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "booboo" >/dev/null 2>&1; then :
5 kx gl_cv_header_errno_h_complete=no
5 kx else
5 kx gl_cv_header_errno_h_complete=yes
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5 kx $as_echo "$gl_cv_header_errno_h_complete" >&6; }
5 kx if test $gl_cv_header_errno_h_complete = yes; then
5 kx ERRNO_H=''
5 kx else
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_errno_h='<'errno.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5 kx $as_echo_n "checking absolute name of <errno.h>... " >&6; }
5 kx if ${gl_cv_next_errno_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <errno.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'errno.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_errno_h
5 kx gl_cv_next_errno_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5 kx $as_echo "$gl_cv_next_errno_h" >&6; }
5 kx fi
5 kx NEXT_ERRNO_H=$gl_cv_next_errno_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'errno.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_errno_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx ERRNO_H='errno.h'
5 kx fi
5 kx
5 kx if test -n "$ERRNO_H"; then
5 kx GL_GENERATE_ERRNO_H_TRUE=
5 kx GL_GENERATE_ERRNO_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_ERRNO_H_TRUE='#'
5 kx GL_GENERATE_ERRNO_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test -n "$ERRNO_H"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5 kx $as_echo_n "checking for EMULTIHOP value... " >&6; }
5 kx if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #ifdef EMULTIHOP
5 kx yes
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "yes" >/dev/null 2>&1; then :
5 kx gl_cv_header_errno_h_EMULTIHOP=yes
5 kx else
5 kx gl_cv_header_errno_h_EMULTIHOP=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define _XOPEN_SOURCE_EXTENDED 1
5 kx #include <errno.h>
5 kx #ifdef EMULTIHOP
5 kx yes
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "yes" >/dev/null 2>&1; then :
5 kx gl_cv_header_errno_h_EMULTIHOP=hidden
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5 kx if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
5 kx #define _XOPEN_SOURCE_EXTENDED 1
5 kx #include <errno.h>
5 kx /* The following two lines are a workaround against an autoconf-2.52 bug. */
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx "; then :
5 kx
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5 kx $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5 kx case $gl_cv_header_errno_h_EMULTIHOP in
5 kx yes | no)
5 kx EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
5 kx ;;
5 kx *)
5 kx EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx if test -n "$ERRNO_H"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5 kx $as_echo_n "checking for ENOLINK value... " >&6; }
5 kx if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #ifdef ENOLINK
5 kx yes
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "yes" >/dev/null 2>&1; then :
5 kx gl_cv_header_errno_h_ENOLINK=yes
5 kx else
5 kx gl_cv_header_errno_h_ENOLINK=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx if test $gl_cv_header_errno_h_ENOLINK = no; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define _XOPEN_SOURCE_EXTENDED 1
5 kx #include <errno.h>
5 kx #ifdef ENOLINK
5 kx yes
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "yes" >/dev/null 2>&1; then :
5 kx gl_cv_header_errno_h_ENOLINK=hidden
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5 kx if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
5 kx #define _XOPEN_SOURCE_EXTENDED 1
5 kx #include <errno.h>
5 kx /* The following two lines are a workaround against an autoconf-2.52 bug. */
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx "; then :
5 kx
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5 kx $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5 kx case $gl_cv_header_errno_h_ENOLINK in
5 kx yes | no)
5 kx ENOLINK_HIDDEN=0; ENOLINK_VALUE=
5 kx ;;
5 kx *)
5 kx ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx if test -n "$ERRNO_H"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
5 kx $as_echo_n "checking for EOVERFLOW value... " >&6; }
5 kx if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #ifdef EOVERFLOW
5 kx yes
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "yes" >/dev/null 2>&1; then :
5 kx gl_cv_header_errno_h_EOVERFLOW=yes
5 kx else
5 kx gl_cv_header_errno_h_EOVERFLOW=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx if test $gl_cv_header_errno_h_EOVERFLOW = no; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define _XOPEN_SOURCE_EXTENDED 1
5 kx #include <errno.h>
5 kx #ifdef EOVERFLOW
5 kx yes
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "yes" >/dev/null 2>&1; then :
5 kx gl_cv_header_errno_h_EOVERFLOW=hidden
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
5 kx if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
5 kx #define _XOPEN_SOURCE_EXTENDED 1
5 kx #include <errno.h>
5 kx /* The following two lines are a workaround against an autoconf-2.52 bug. */
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx "; then :
5 kx
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
5 kx $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
5 kx case $gl_cv_header_errno_h_EOVERFLOW in
5 kx yes | no)
5 kx EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
5 kx ;;
5 kx *)
5 kx EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_STRERROR_R $ac_have_decl
5 kx _ACEOF
5 kx
5 kx for ac_func in strerror_r
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5 kx if test "x$ac_cv_func_strerror_r" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRERROR_R 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5 kx $as_echo_n "checking whether strerror_r returns char *... " >&6; }
5 kx if ${ac_cv_func_strerror_r_char_p+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx ac_cv_func_strerror_r_char_p=no
5 kx if test $ac_cv_have_decl_strerror_r = yes; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx char buf[100];
5 kx char x = *strerror_r (0, buf, sizeof buf);
5 kx char *p = strerror_r (0, buf, sizeof buf);
5 kx return !p || x;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_func_strerror_r_char_p=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx # strerror_r is not declared. Choose between
5 kx # systems that have relatively inaccessible declarations for the
5 kx # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5 kx # former has a strerror_r that returns char*, while the latter
5 kx # has a strerror_r that returns `int'.
5 kx # This test should segfault on the DEC system.
5 kx if test "$cross_compiling" = yes; then :
5 kx :
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx extern char *strerror_r ();
5 kx int
5 kx main ()
5 kx {
5 kx char buf[100];
5 kx char x = *strerror_r (0, buf, sizeof buf);
5 kx return ! isalpha (x);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_strerror_r_char_p=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5 kx $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
5 kx if test $ac_cv_func_strerror_r_char_p = yes; then
5 kx
5 kx $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx XGETTEXT_EXTRA_OPTIONS=
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_CREAT=0;
5 kx GNULIB_FCNTL=0;
5 kx GNULIB_NONBLOCKING=0;
5 kx GNULIB_OPEN=0;
5 kx GNULIB_OPENAT=0;
5 kx HAVE_FCNTL=1;
5 kx HAVE_OPENAT=1;
5 kx REPLACE_CREAT=0;
5 kx REPLACE_FCNTL=0;
5 kx REPLACE_OPEN=0;
5 kx REPLACE_OPENAT=0;
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
5 kx $as_echo_n "checking for working fcntl.h... " >&6; }
5 kx if ${gl_cv_header_working_fcntl_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx gl_cv_header_working_fcntl_h=cross-compiling
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx #if HAVE_UNISTD_H
5 kx # include <unistd.h>
5 kx #else /* on Windows with MSVC */
5 kx # include <io.h>
5 kx # include <stdlib.h>
5 kx # defined sleep(n) _sleep ((n) * 1000)
5 kx #endif
5 kx #include <fcntl.h>
5 kx #ifndef O_NOATIME
5 kx #define O_NOATIME 0
5 kx #endif
5 kx #ifndef O_NOFOLLOW
5 kx #define O_NOFOLLOW 0
5 kx #endif
5 kx static int const constants[] =
5 kx {
5 kx O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
5 kx O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
5 kx };
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx int result = !constants;
5 kx #if HAVE_SYMLINK
5 kx {
5 kx static char const sym[] = "conftest.sym";
5 kx if (symlink ("/dev/null", sym) != 0)
5 kx result |= 2;
5 kx else
5 kx {
5 kx int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
5 kx if (fd >= 0)
5 kx {
5 kx close (fd);
5 kx result |= 4;
5 kx }
5 kx }
5 kx if (unlink (sym) != 0 || symlink (".", sym) != 0)
5 kx result |= 2;
5 kx else
5 kx {
5 kx int fd = open (sym, O_RDONLY | O_NOFOLLOW);
5 kx if (fd >= 0)
5 kx {
5 kx close (fd);
5 kx result |= 4;
5 kx }
5 kx }
5 kx unlink (sym);
5 kx }
5 kx #endif
5 kx {
5 kx static char const file[] = "confdefs.h";
5 kx int fd = open (file, O_RDONLY | O_NOATIME);
5 kx if (fd < 0)
5 kx result |= 8;
5 kx else
5 kx {
5 kx struct stat st0;
5 kx if (fstat (fd, &st0) != 0)
5 kx result |= 16;
5 kx else
5 kx {
5 kx char c;
5 kx sleep (1);
5 kx if (read (fd, &c, 1) != 1)
5 kx result |= 24;
5 kx else
5 kx {
5 kx if (close (fd) != 0)
5 kx result |= 32;
5 kx else
5 kx {
5 kx struct stat st1;
5 kx if (stat (file, &st1) != 0)
5 kx result |= 40;
5 kx else
5 kx if (st0.st_atime != st1.st_atime)
5 kx result |= 64;
5 kx }
5 kx }
5 kx }
5 kx }
5 kx }
5 kx return result;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_header_working_fcntl_h=yes
5 kx else
5 kx case $? in #(
5 kx 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
5 kx 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
5 kx 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
5 kx *) gl_cv_header_working_fcntl_h='no';;
5 kx esac
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
5 kx $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
5 kx
5 kx case $gl_cv_header_working_fcntl_h in #(
5 kx *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
5 kx *) ac_val=1;;
5 kx esac
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WORKING_O_NOATIME $ac_val
5 kx _ACEOF
5 kx
5 kx
5 kx case $gl_cv_header_working_fcntl_h in #(
5 kx *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
5 kx *) ac_val=1;;
5 kx esac
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WORKING_O_NOFOLLOW $ac_val
5 kx _ACEOF
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5 kx if test "x$ac_cv_type_pid_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define pid_t int
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5 kx if test "x$ac_cv_type_mode_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define mode_t int
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx
5 kx GNULIB_FCHMODAT=0;
5 kx GNULIB_FSTAT=0;
5 kx GNULIB_FSTATAT=0;
5 kx GNULIB_FUTIMENS=0;
5 kx GNULIB_GETUMASK=0;
5 kx GNULIB_LCHMOD=0;
5 kx GNULIB_LSTAT=0;
5 kx GNULIB_MKDIRAT=0;
5 kx GNULIB_MKFIFO=0;
5 kx GNULIB_MKFIFOAT=0;
5 kx GNULIB_MKNOD=0;
5 kx GNULIB_MKNODAT=0;
5 kx GNULIB_STAT=0;
5 kx GNULIB_UTIMENSAT=0;
5 kx GNULIB_OVERRIDES_STRUCT_STAT=0;
5 kx HAVE_FCHMODAT=1;
5 kx HAVE_FSTATAT=1;
5 kx HAVE_FUTIMENS=1;
5 kx HAVE_GETUMASK=1;
5 kx HAVE_LCHMOD=1;
5 kx HAVE_LSTAT=1;
5 kx HAVE_MKDIRAT=1;
5 kx HAVE_MKFIFO=1;
5 kx HAVE_MKFIFOAT=1;
5 kx HAVE_MKNOD=1;
5 kx HAVE_MKNODAT=1;
5 kx HAVE_UTIMENSAT=1;
5 kx REPLACE_FCHMODAT=0;
5 kx REPLACE_FSTAT=0;
5 kx REPLACE_FSTATAT=0;
5 kx REPLACE_FUTIMENS=0;
5 kx REPLACE_LSTAT=0;
5 kx REPLACE_MKDIR=0;
5 kx REPLACE_MKFIFO=0;
5 kx REPLACE_MKNOD=0;
5 kx REPLACE_STAT=0;
5 kx REPLACE_UTIMENSAT=0;
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5 kx $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5 kx if ${ac_cv_header_stat_broken+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx
5 kx #if defined S_ISBLK && defined S_IFDIR
5 kx extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5 kx #endif
5 kx
5 kx #if defined S_ISBLK && defined S_IFCHR
5 kx extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5 kx #endif
5 kx
5 kx #if defined S_ISLNK && defined S_IFREG
5 kx extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5 kx #endif
5 kx
5 kx #if defined S_ISSOCK && defined S_IFREG
5 kx extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_stat_broken=no
5 kx else
5 kx ac_cv_header_stat_broken=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5 kx $as_echo "$ac_cv_header_stat_broken" >&6; }
5 kx if test $ac_cv_header_stat_broken = yes; then
5 kx
5 kx $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
5 kx $as_echo_n "checking for 64-bit off_t... " >&6; }
5 kx if ${gl_cv_type_off_t_64+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_type_off_t_64=yes
5 kx else
5 kx gl_cv_type_off_t_64=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
5 kx $as_echo "$gl_cv_type_off_t_64" >&6; }
5 kx if test $gl_cv_type_off_t_64 = no; then
5 kx WINDOWS_64_BIT_OFF_T=1
5 kx else
5 kx WINDOWS_64_BIT_OFF_T=0
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
5 kx $as_echo_n "checking for 64-bit st_size... " >&6; }
5 kx if ${gl_cv_member_st_size_64+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx struct stat buf;
5 kx int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_member_st_size_64=yes
5 kx else
5 kx gl_cv_member_st_size_64=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
5 kx $as_echo "$gl_cv_member_st_size_64" >&6; }
5 kx if test $gl_cv_member_st_size_64 = no; then
5 kx WINDOWS_64_BIT_ST_SIZE=1
5 kx else
5 kx WINDOWS_64_BIT_ST_SIZE=0
5 kx fi
5 kx ;;
5 kx *)
5 kx WINDOWS_64_BIT_OFF_T=0
5 kx WINDOWS_64_BIT_ST_SIZE=0
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5 kx $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5 kx if ${ac_cv_c_restrict+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_c_restrict=no
5 kx # The order here caters to the fact that C++ does not require restrict.
5 kx for ac_kw in __restrict __restrict__ _Restrict restrict; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx typedef int *int_ptr;
5 kx int foo (int_ptr $ac_kw ip) { return ip[0]; }
5 kx int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
5 kx int bar (int ip[$ac_kw]) { return ip[0]; }
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int s[1];
5 kx int *$ac_kw t = s;
5 kx t[0] = 0;
5 kx return foo (t) + bar (t);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_restrict=$ac_kw
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test "$ac_cv_c_restrict" != no && break
5 kx done
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5 kx $as_echo "$ac_cv_c_restrict" >&6; }
5 kx
5 kx case $ac_cv_c_restrict in
5 kx restrict) ;;
5 kx no) $as_echo "#define restrict /**/" >>confdefs.h
5 kx ;;
5 kx *) cat >>confdefs.h <<_ACEOF
5 kx #define restrict $ac_cv_c_restrict
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_stat_h='<'sys/stat.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
5 kx if ${gl_cv_next_sys_stat_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_stat_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/stat.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/stat.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_stat_h
5 kx gl_cv_next_sys_stat_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_stat_h='<'sys/stat.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
5 kx $as_echo "$gl_cv_next_sys_stat_h" >&6; }
5 kx fi
5 kx NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/stat.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_stat_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx WINDOWS_STAT_TIMESPEC=0
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_type_nlink_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx $as_echo "#define nlink_t int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_DPRINTF=0;
5 kx GNULIB_FCLOSE=0;
5 kx GNULIB_FDOPEN=0;
5 kx GNULIB_FFLUSH=0;
5 kx GNULIB_FGETC=0;
5 kx GNULIB_FGETS=0;
5 kx GNULIB_FOPEN=0;
5 kx GNULIB_FPRINTF=0;
5 kx GNULIB_FPRINTF_POSIX=0;
5 kx GNULIB_FPURGE=0;
5 kx GNULIB_FPUTC=0;
5 kx GNULIB_FPUTS=0;
5 kx GNULIB_FREAD=0;
5 kx GNULIB_FREOPEN=0;
5 kx GNULIB_FSCANF=0;
5 kx GNULIB_FSEEK=0;
5 kx GNULIB_FSEEKO=0;
5 kx GNULIB_FTELL=0;
5 kx GNULIB_FTELLO=0;
5 kx GNULIB_FWRITE=0;
5 kx GNULIB_GETC=0;
5 kx GNULIB_GETCHAR=0;
5 kx GNULIB_GETDELIM=0;
5 kx GNULIB_GETLINE=0;
5 kx GNULIB_OBSTACK_PRINTF=0;
5 kx GNULIB_OBSTACK_PRINTF_POSIX=0;
5 kx GNULIB_PCLOSE=0;
5 kx GNULIB_PERROR=0;
5 kx GNULIB_POPEN=0;
5 kx GNULIB_PRINTF=0;
5 kx GNULIB_PRINTF_POSIX=0;
5 kx GNULIB_PUTC=0;
5 kx GNULIB_PUTCHAR=0;
5 kx GNULIB_PUTS=0;
5 kx GNULIB_REMOVE=0;
5 kx GNULIB_RENAME=0;
5 kx GNULIB_RENAMEAT=0;
5 kx GNULIB_SCANF=0;
5 kx GNULIB_SNPRINTF=0;
5 kx GNULIB_SPRINTF_POSIX=0;
5 kx GNULIB_STDIO_H_NONBLOCKING=0;
5 kx GNULIB_STDIO_H_SIGPIPE=0;
5 kx GNULIB_TMPFILE=0;
5 kx GNULIB_VASPRINTF=0;
5 kx GNULIB_VFSCANF=0;
5 kx GNULIB_VSCANF=0;
5 kx GNULIB_VDPRINTF=0;
5 kx GNULIB_VFPRINTF=0;
5 kx GNULIB_VFPRINTF_POSIX=0;
5 kx GNULIB_VPRINTF=0;
5 kx GNULIB_VPRINTF_POSIX=0;
5 kx GNULIB_VSNPRINTF=0;
5 kx GNULIB_VSPRINTF_POSIX=0;
5 kx HAVE_DECL_FPURGE=1;
5 kx HAVE_DECL_FSEEKO=1;
5 kx HAVE_DECL_FTELLO=1;
5 kx HAVE_DECL_GETDELIM=1;
5 kx HAVE_DECL_GETLINE=1;
5 kx HAVE_DECL_OBSTACK_PRINTF=1;
5 kx HAVE_DECL_SNPRINTF=1;
5 kx HAVE_DECL_VSNPRINTF=1;
5 kx HAVE_DPRINTF=1;
5 kx HAVE_FSEEKO=1;
5 kx HAVE_FTELLO=1;
5 kx HAVE_PCLOSE=1;
5 kx HAVE_POPEN=1;
5 kx HAVE_RENAMEAT=1;
5 kx HAVE_VASPRINTF=1;
5 kx HAVE_VDPRINTF=1;
5 kx REPLACE_DPRINTF=0;
5 kx REPLACE_FCLOSE=0;
5 kx REPLACE_FDOPEN=0;
5 kx REPLACE_FFLUSH=0;
5 kx REPLACE_FOPEN=0;
5 kx REPLACE_FPRINTF=0;
5 kx REPLACE_FPURGE=0;
5 kx REPLACE_FREOPEN=0;
5 kx REPLACE_FSEEK=0;
5 kx REPLACE_FSEEKO=0;
5 kx REPLACE_FTELL=0;
5 kx REPLACE_FTELLO=0;
5 kx REPLACE_GETDELIM=0;
5 kx REPLACE_GETLINE=0;
5 kx REPLACE_OBSTACK_PRINTF=0;
5 kx REPLACE_PERROR=0;
5 kx REPLACE_POPEN=0;
5 kx REPLACE_PRINTF=0;
5 kx REPLACE_REMOVE=0;
5 kx REPLACE_RENAME=0;
5 kx REPLACE_RENAMEAT=0;
5 kx REPLACE_SNPRINTF=0;
5 kx REPLACE_SPRINTF=0;
5 kx REPLACE_STDIO_READ_FUNCS=0;
5 kx REPLACE_STDIO_WRITE_FUNCS=0;
5 kx REPLACE_TMPFILE=0;
5 kx REPLACE_VASPRINTF=0;
5 kx REPLACE_VDPRINTF=0;
5 kx REPLACE_VFPRINTF=0;
5 kx REPLACE_VPRINTF=0;
5 kx REPLACE_VSNPRINTF=0;
5 kx REPLACE_VSPRINTF=0;
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_getdelim" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_GETDELIM $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
5 kx _ACEOF
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_getline" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_GETLINE $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_getopt_h='<'getopt.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
5 kx $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
5 kx if ${gl_cv_next_getopt_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_getopt_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <getopt.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'getopt.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_getopt_h
5 kx gl_cv_next_getopt_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_getopt_h='<'getopt.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
5 kx $as_echo "$gl_cv_next_getopt_h" >&6; }
5 kx fi
5 kx NEXT_GETOPT_H=$gl_cv_next_getopt_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'getopt.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_getopt_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_getopt_h = yes; then
5 kx HAVE_GETOPT_H=1
5 kx else
5 kx HAVE_GETOPT_H=0
5 kx fi
5 kx
5 kx
5 kx gl_replace_getopt=
5 kx
5 kx if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
5 kx for ac_header in getopt.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_getopt_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_GETOPT_H 1
5 kx _ACEOF
5 kx
5 kx else
5 kx gl_replace_getopt=yes
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
5 kx for ac_func in getopt_long_only
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
5 kx if test "x$ac_cv_func_getopt_long_only" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_GETOPT_LONG_ONLY 1
5 kx _ACEOF
5 kx
5 kx else
5 kx gl_replace_getopt=yes
5 kx fi
5 kx done
5 kx
5 kx fi
5 kx
5 kx if test -z "$gl_replace_getopt"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
5 kx $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
5 kx if ${gl_cv_func_getopt_posix+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $cross_compiling = no; then
5 kx if test "$cross_compiling" = yes; then :
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot run test program while cross compiling
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <unistd.h>
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static char program[] = "program";
5 kx static char a[] = "-a";
5 kx static char foo[] = "foo";
5 kx static char bar[] = "bar";
5 kx char *argv[] = { program, a, foo, bar, NULL };
5 kx int c;
5 kx
5 kx c = getopt (4, argv, "ab");
5 kx if (!(c == 'a'))
5 kx return 1;
5 kx c = getopt (4, argv, "ab");
5 kx if (!(c == -1))
5 kx return 2;
5 kx if (!(optind == 2))
5 kx return 3;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_getopt_posix=maybe
5 kx else
5 kx gl_cv_func_getopt_posix=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx if test $gl_cv_func_getopt_posix = maybe; then
5 kx if test "$cross_compiling" = yes; then :
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot run test program while cross compiling
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <unistd.h>
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static char program[] = "program";
5 kx static char donald[] = "donald";
5 kx static char p[] = "-p";
5 kx static char billy[] = "billy";
5 kx static char duck[] = "duck";
5 kx static char a[] = "-a";
5 kx static char bar[] = "bar";
5 kx char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
5 kx int c;
5 kx
5 kx c = getopt (7, argv, "+abp:q:");
5 kx if (!(c == -1))
5 kx return 4;
5 kx if (!(strcmp (argv[0], "program") == 0))
5 kx return 5;
5 kx if (!(strcmp (argv[1], "donald") == 0))
5 kx return 6;
5 kx if (!(strcmp (argv[2], "-p") == 0))
5 kx return 7;
5 kx if (!(strcmp (argv[3], "billy") == 0))
5 kx return 8;
5 kx if (!(strcmp (argv[4], "duck") == 0))
5 kx return 9;
5 kx if (!(strcmp (argv[5], "-a") == 0))
5 kx return 10;
5 kx if (!(strcmp (argv[6], "bar") == 0))
5 kx return 11;
5 kx if (!(optind == 1))
5 kx return 12;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_getopt_posix=maybe
5 kx else
5 kx gl_cv_func_getopt_posix=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx if test $gl_cv_func_getopt_posix = maybe; then
5 kx if test "$cross_compiling" = yes; then :
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "cannot run test program while cross compiling
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <unistd.h>
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static char program[] = "program";
5 kx static char ab[] = "-ab";
5 kx char *argv[3] = { program, ab, NULL };
5 kx if (getopt (2, argv, "ab:") != 'a')
5 kx return 13;
5 kx if (getopt (2, argv, "ab:") != '?')
5 kx return 14;
5 kx if (optopt != 'b')
5 kx return 15;
5 kx if (optind != 2)
5 kx return 16;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_getopt_posix=yes
5 kx else
5 kx gl_cv_func_getopt_posix=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx else
5 kx case "$host_os" in
5 kx darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
5 kx *) gl_cv_func_getopt_posix="guessing yes";;
5 kx esac
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
5 kx $as_echo "$gl_cv_func_getopt_posix" >&6; }
5 kx case "$gl_cv_func_getopt_posix" in
5 kx *no) gl_replace_getopt=yes ;;
5 kx esac
5 kx fi
5 kx
5 kx if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
5 kx $as_echo_n "checking for working GNU getopt function... " >&6; }
5 kx if ${gl_cv_func_getopt_gnu+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
5 kx # optstring is necessary for programs like m4 that have POSIX-mandated
5 kx # semantics for supporting options interspersed with files.
5 kx # Also, since getopt_long is a GNU extension, we require optind=0.
5 kx # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
5 kx # so take care to revert to the correct (non-)export state.
5 kx gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
5 kx case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
5 kx xx) gl_had_POSIXLY_CORRECT=exported ;;
5 kx x) gl_had_POSIXLY_CORRECT=yes ;;
5 kx *) gl_had_POSIXLY_CORRECT= ;;
5 kx esac
5 kx POSIXLY_CORRECT=1
5 kx export POSIXLY_CORRECT
5 kx if test "$cross_compiling" = yes; then :
5 kx gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <getopt.h>
5 kx #include <stddef.h>
5 kx #include <string.h>
5 kx
5 kx #include <stdlib.h>
5 kx #if defined __MACH__ && defined __APPLE__
5 kx /* Avoid a crash on Mac OS X. */
5 kx #include <mach/mach.h>
5 kx #include <mach/mach_error.h>
5 kx #include <mach/thread_status.h>
5 kx #include <mach/exception.h>
5 kx #include <mach/task.h>
5 kx #include <pthread.h>
5 kx /* The exception port on which our thread listens. */
5 kx static mach_port_t our_exception_port;
5 kx /* The main function of the thread listening for exceptions of type
5 kx EXC_BAD_ACCESS. */
5 kx static void *
5 kx mach_exception_thread (void *arg)
5 kx {
5 kx /* Buffer for a message to be received. */
5 kx struct {
5 kx mach_msg_header_t head;
5 kx mach_msg_body_t msgh_body;
5 kx char data[1024];
5 kx } msg;
5 kx mach_msg_return_t retval;
5 kx /* Wait for a message on the exception port. */
5 kx retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
5 kx our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
5 kx if (retval != MACH_MSG_SUCCESS)
5 kx abort ();
5 kx exit (1);
5 kx }
5 kx static void
5 kx nocrash_init (void)
5 kx {
5 kx mach_port_t self = mach_task_self ();
5 kx /* Allocate a port on which the thread shall listen for exceptions. */
5 kx if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
5 kx == KERN_SUCCESS) {
5 kx /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
5 kx if (mach_port_insert_right (self, our_exception_port, our_exception_port,
5 kx MACH_MSG_TYPE_MAKE_SEND)
5 kx == KERN_SUCCESS) {
5 kx /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
5 kx for us. */
5 kx exception_mask_t mask = EXC_MASK_BAD_ACCESS;
5 kx /* Create the thread listening on the exception port. */
5 kx pthread_attr_t attr;
5 kx pthread_t thread;
5 kx if (pthread_attr_init (&attr) == 0
5 kx && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
5 kx && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
5 kx pthread_attr_destroy (&attr);
5 kx /* Replace the exception port info for these exceptions with our own.
5 kx Note that we replace the exception port for the entire task, not only
5 kx for a particular thread. This has the effect that when our exception
5 kx port gets the message, the thread specific exception port has already
5 kx been asked, and we don't need to bother about it.
5 kx See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
5 kx task_set_exception_ports (self, mask, our_exception_port,
5 kx EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
5 kx }
5 kx }
5 kx }
5 kx }
5 kx #elif defined _WIN32 && ! defined __CYGWIN__
5 kx /* Avoid a crash on native Windows. */
5 kx #define WIN32_LEAN_AND_MEAN
5 kx #include <windows.h>
5 kx #include <winerror.h>
5 kx static LONG WINAPI
5 kx exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
5 kx {
5 kx switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
5 kx {
5 kx case EXCEPTION_ACCESS_VIOLATION:
5 kx case EXCEPTION_IN_PAGE_ERROR:
5 kx case EXCEPTION_STACK_OVERFLOW:
5 kx case EXCEPTION_GUARD_PAGE:
5 kx case EXCEPTION_PRIV_INSTRUCTION:
5 kx case EXCEPTION_ILLEGAL_INSTRUCTION:
5 kx case EXCEPTION_DATATYPE_MISALIGNMENT:
5 kx case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
5 kx case EXCEPTION_NONCONTINUABLE_EXCEPTION:
5 kx exit (1);
5 kx }
5 kx return EXCEPTION_CONTINUE_SEARCH;
5 kx }
5 kx static void
5 kx nocrash_init (void)
5 kx {
5 kx SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
5 kx }
5 kx #else
5 kx /* Avoid a crash on POSIX systems. */
5 kx #include <signal.h>
5 kx #include <unistd.h>
5 kx /* A POSIX signal handler. */
5 kx static void
5 kx exception_handler (int sig)
5 kx {
5 kx _exit (1);
5 kx }
5 kx static void
5 kx nocrash_init (void)
5 kx {
5 kx #ifdef SIGSEGV
5 kx signal (SIGSEGV, exception_handler);
5 kx #endif
5 kx #ifdef SIGBUS
5 kx signal (SIGBUS, exception_handler);
5 kx #endif
5 kx }
5 kx #endif
5 kx
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx int result = 0;
5 kx
5 kx nocrash_init();
5 kx
5 kx /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
5 kx and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
5 kx OSF/1 5.1, Solaris 10. */
5 kx {
5 kx static char conftest[] = "conftest";
5 kx static char plus[] = "-+";
5 kx char *argv[3] = { conftest, plus, NULL };
5 kx opterr = 0;
5 kx if (getopt (2, argv, "+a") != '?')
5 kx result |= 1;
5 kx }
5 kx /* This code succeeds on glibc 2.8, mingw,
5 kx and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
5 kx IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
5 kx {
5 kx static char program[] = "program";
5 kx static char p[] = "-p";
5 kx static char foo[] = "foo";
5 kx static char bar[] = "bar";
5 kx char *argv[] = { program, p, foo, bar, NULL };
5 kx
5 kx optind = 1;
5 kx if (getopt (4, argv, "p::") != 'p')
5 kx result |= 2;
5 kx else if (optarg != NULL)
5 kx result |= 4;
5 kx else if (getopt (4, argv, "p::") != -1)
5 kx result |= 6;
5 kx else if (optind != 2)
5 kx result |= 8;
5 kx }
5 kx /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
5 kx {
5 kx static char program[] = "program";
5 kx static char foo[] = "foo";
5 kx static char p[] = "-p";
5 kx char *argv[] = { program, foo, p, NULL };
5 kx optind = 0;
5 kx if (getopt (3, argv, "-p") != 1)
5 kx result |= 16;
5 kx else if (getopt (3, argv, "-p") != 'p')
5 kx result |= 16;
5 kx }
5 kx /* This code fails on glibc 2.11. */
5 kx {
5 kx static char program[] = "program";
5 kx static char b[] = "-b";
5 kx static char a[] = "-a";
5 kx char *argv[] = { program, b, a, NULL };
5 kx optind = opterr = 0;
5 kx if (getopt (3, argv, "+:a:b") != 'b')
5 kx result |= 32;
5 kx else if (getopt (3, argv, "+:a:b") != ':')
5 kx result |= 32;
5 kx }
5 kx /* This code dumps core on glibc 2.14. */
5 kx {
5 kx static char program[] = "program";
5 kx static char w[] = "-W";
5 kx static char dummy[] = "dummy";
5 kx char *argv[] = { program, w, dummy, NULL };
5 kx optind = opterr = 1;
5 kx if (getopt (3, argv, "W;") != 'W')
5 kx result |= 64;
5 kx }
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_getopt_gnu=yes
5 kx else
5 kx gl_cv_func_getopt_gnu=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx case $gl_had_POSIXLY_CORRECT in
5 kx exported) ;;
5 kx yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
5 kx *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
5 kx $as_echo "$gl_cv_func_getopt_gnu" >&6; }
5 kx if test "$gl_cv_func_getopt_gnu" != yes; then
5 kx gl_replace_getopt=yes
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
5 kx $as_echo_n "checking for working GNU getopt_long function... " >&6; }
5 kx if ${gl_cv_func_getopt_long_gnu+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
5 kx *) gl_cv_func_getopt_long_gnu="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <getopt.h>
5 kx #include <stddef.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static const struct option long_options[] =
5 kx {
5 kx { "xtremely-",no_argument, NULL, 1003 },
5 kx { "xtra", no_argument, NULL, 1001 },
5 kx { "xtreme", no_argument, NULL, 1002 },
5 kx { "xtremely", no_argument, NULL, 1003 },
5 kx { NULL, 0, NULL, 0 }
5 kx };
5 kx /* This code fails on OpenBSD 5.0. */
5 kx {
5 kx static char program[] = "program";
5 kx static char xtremel[] = "--xtremel";
5 kx char *argv[] = { program, xtremel, NULL };
5 kx int option_index;
5 kx optind = 1; opterr = 0;
5 kx if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
5 kx return 1;
5 kx }
5 kx return 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_getopt_long_gnu=yes
5 kx else
5 kx gl_cv_func_getopt_long_gnu=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
5 kx $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
5 kx case "$gl_cv_func_getopt_long_gnu" in
5 kx *yes) ;;
5 kx *) gl_replace_getopt=yes ;;
5 kx esac
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_limits_h='<'limits.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
5 kx $as_echo_n "checking absolute name of <limits.h>... " >&6; }
5 kx if ${gl_cv_next_limits_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_limits_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <limits.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'limits.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_limits_h
5 kx gl_cv_next_limits_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_limits_h='<'limits.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
5 kx $as_echo "$gl_cv_next_limits_h" >&6; }
5 kx fi
5 kx NEXT_LIMITS_H=$gl_cv_next_limits_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'limits.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_limits_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
5 kx $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
5 kx if ${gl_cv_header_limits_width+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
5 kx #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
5 kx #endif
5 kx #include <limits.h>
5 kx long long llm = LLONG_MAX;
5 kx int wb = WORD_BIT;
5 kx int ullw = ULLONG_WIDTH;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_limits_width=yes
5 kx else
5 kx gl_cv_header_limits_width=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
5 kx $as_echo "$gl_cv_header_limits_width" >&6; }
5 kx if test "$gl_cv_header_limits_width" = yes; then
5 kx LIMITS_H=
5 kx else
5 kx LIMITS_H=limits.h
5 kx fi
5 kx
5 kx if test -n "$LIMITS_H"; then
5 kx GL_GENERATE_LIMITS_H_TRUE=
5 kx GL_GENERATE_LIMITS_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_LIMITS_H_TRUE='#'
5 kx GL_GENERATE_LIMITS_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx for ac_header in stdlib.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_stdlib_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STDLIB_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5 kx $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5 kx if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on platforms where we know the result.
5 kx *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
5 kx | hpux* | solaris* | cygwin* | mingw*)
5 kx ac_cv_func_malloc_0_nonnull="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5 kx # include <stdlib.h>
5 kx #else
5 kx char *malloc ();
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx char *p = malloc (0);
5 kx int result = !p;
5 kx free (p);
5 kx return result;
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_func_malloc_0_nonnull=yes
5 kx else
5 kx ac_cv_func_malloc_0_nonnull=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5 kx $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5 kx case "$ac_cv_func_malloc_0_nonnull" in
5 kx *yes)
5 kx gl_cv_func_malloc_0_nonnull=1
5 kx ;;
5 kx *)
5 kx gl_cv_func_malloc_0_nonnull=0
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_cv_c_multiarch=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifndef __APPLE_CC__
5 kx not a universal capable compiler
5 kx #endif
5 kx typedef int dummy;
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx arch=
5 kx prev=
5 kx for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5 kx if test -n "$prev"; then
5 kx case $word in
5 kx i?86 | x86_64 | ppc | ppc64)
5 kx if test -z "$arch" || test "$arch" = "$word"; then
5 kx arch="$word"
5 kx else
5 kx gl_cv_c_multiarch=yes
5 kx fi
5 kx ;;
5 kx esac
5 kx prev=
5 kx else
5 kx if test "x$word" = "x-arch"; then
5 kx prev=arch
5 kx fi
5 kx fi
5 kx done
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx if test $gl_cv_c_multiarch = yes; then
5 kx APPLE_UNIVERSAL_BUILD=1
5 kx else
5 kx APPLE_UNIVERSAL_BUILD=0
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
5 kx $as_echo_n "checking for O_CLOEXEC... " >&6; }
5 kx if ${gl_cv_macro_O_CLOEXEC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <fcntl.h>
5 kx #ifndef O_CLOEXEC
5 kx choke me;
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return O_CLOEXEC;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_macro_O_CLOEXEC=yes
5 kx else
5 kx gl_cv_macro_O_CLOEXEC=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
5 kx $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
5 kx $as_echo_n "checking for promoted mode_t type... " >&6; }
5 kx if ${gl_cv_promoted_mode_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx int
5 kx main ()
5 kx {
5 kx typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_promoted_mode_t='int'
5 kx else
5 kx gl_cv_promoted_mode_t='mode_t'
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
5 kx $as_echo "$gl_cv_promoted_mode_t" >&6; }
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5 kx $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5 kx if ${ac_cv_header_stdbool_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdbool.h>
5 kx
5 kx #ifdef __cplusplus
5 kx typedef bool Bool;
5 kx #else
5 kx typedef _Bool Bool;
5 kx #ifndef bool
5 kx "error: bool is not defined"
5 kx #endif
5 kx #ifndef false
5 kx "error: false is not defined"
5 kx #endif
5 kx #if false
5 kx "error: false is not 0"
5 kx #endif
5 kx #ifndef true
5 kx "error: true is not defined"
5 kx #endif
5 kx #if true != 1
5 kx "error: true is not 1"
5 kx #endif
5 kx #endif
5 kx
5 kx #ifndef __bool_true_false_are_defined
5 kx "error: __bool_true_false_are_defined is not defined"
5 kx #endif
5 kx
5 kx struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
5 kx
5 kx char a[true == 1 ? 1 : -1];
5 kx char b[false == 0 ? 1 : -1];
5 kx char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5 kx char d[(bool) 0.5 == true ? 1 : -1];
5 kx /* See body of main program for 'e'. */
5 kx char f[(Bool) 0.0 == false ? 1 : -1];
5 kx char g[true];
5 kx char h[sizeof (Bool)];
5 kx char i[sizeof s.t];
5 kx enum { j = false, k = true, l = false * true, m = true * 256 };
5 kx /* The following fails for
5 kx HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5 kx Bool n[m];
5 kx char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5 kx char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5 kx /* Catch a bug in an HP-UX C compiler. See
5 kx https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5 kx https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
5 kx */
5 kx Bool q = true;
5 kx Bool *pq = &q;
5 kx bool *qq = &q;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx bool e = &s;
5 kx *pq |= q; *pq |= ! q;
5 kx *qq |= q; *qq |= ! q;
5 kx /* Refer to every declared value, to avoid compiler optimizations. */
5 kx return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5 kx + !m + !n + !o + !p + !q + !pq + !qq);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_header_stdbool_h=yes
5 kx else
5 kx ac_cv_header_stdbool_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5 kx $as_echo "$ac_cv_header_stdbool_h" >&6; }
5 kx ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5 kx if test "x$ac_cv_type__Bool" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE__BOOL 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx REPLACE_NULL=0;
5 kx HAVE_MAX_ALIGN_T=1;
5 kx HAVE_WCHAR_T=1;
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5 kx $as_echo_n "checking for wchar_t... " >&6; }
5 kx if ${gt_cv_c_wchar_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stddef.h>
5 kx wchar_t foo = (wchar_t)'\0';
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_c_wchar_t=yes
5 kx else
5 kx gt_cv_c_wchar_t=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5 kx $as_echo "$gt_cv_c_wchar_t" >&6; }
5 kx if test $gt_cv_c_wchar_t = yes; then
5 kx
5 kx $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5 kx $as_echo_n "checking for wint_t... " >&6; }
5 kx if ${gt_cv_c_wint_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5 kx <wchar.h>.
5 kx BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5 kx before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <stdio.h>
5 kx #include <time.h>
5 kx #include <wchar.h>
5 kx wint_t foo = (wchar_t)'\0';
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_c_wint_t=yes
5 kx else
5 kx gt_cv_c_wint_t=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5 kx $as_echo "$gt_cv_c_wint_t" >&6; }
5 kx if test $gt_cv_c_wint_t = yes; then
5 kx
5 kx $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
5 kx $as_echo_n "checking whether wint_t is too small... " >&6; }
5 kx if ${gl_cv_type_wint_t_too_small+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5 kx <wchar.h>.
5 kx BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #if !(defined __GLIBC__ && !defined __UCLIBC__)
5 kx # include <stddef.h>
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx #endif
5 kx #include <wchar.h>
5 kx int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_type_wint_t_too_small=no
5 kx else
5 kx gl_cv_type_wint_t_too_small=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
5 kx $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
5 kx if test $gl_cv_type_wint_t_too_small = yes; then
5 kx GNULIB_OVERRIDES_WINT_T=1
5 kx else
5 kx GNULIB_OVERRIDES_WINT_T=0
5 kx fi
5 kx else
5 kx GNULIB_OVERRIDES_WINT_T=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_wchar_h = yes; then
5 kx HAVE_WCHAR_H=1
5 kx else
5 kx HAVE_WCHAR_H=0
5 kx fi
5 kx
5 kx
5 kx if test $ac_cv_header_inttypes_h = yes; then
5 kx HAVE_INTTYPES_H=1
5 kx else
5 kx HAVE_INTTYPES_H=0
5 kx fi
5 kx
5 kx
5 kx if test $ac_cv_header_sys_types_h = yes; then
5 kx HAVE_SYS_TYPES_H=1
5 kx else
5 kx HAVE_SYS_TYPES_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_stdint_h='<'stdint.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5 kx $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5 kx if ${gl_cv_next_stdint_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_stdint_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdint.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'stdint.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_stdint_h
5 kx gl_cv_next_stdint_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_stdint_h='<'stdint.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5 kx $as_echo "$gl_cv_next_stdint_h" >&6; }
5 kx fi
5 kx NEXT_STDINT_H=$gl_cv_next_stdint_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'stdint.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_stdint_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_stdint_h = yes; then
5 kx HAVE_STDINT_H=1
5 kx else
5 kx HAVE_STDINT_H=0
5 kx fi
5 kx
5 kx
5 kx if test $ac_cv_header_stdint_h = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5 kx $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5 kx if ${gl_cv_header_working_stdint_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_header_working_stdint_h=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5 kx #define __STDC_CONSTANT_MACROS 1
5 kx #define __STDC_LIMIT_MACROS 1
5 kx #include <stdint.h>
5 kx /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5 kx #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5 kx #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5 kx #endif
5 kx
5 kx
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx
5 kx #ifdef INT8_MAX
5 kx int8_t a1 = INT8_MAX;
5 kx int8_t a1min = INT8_MIN;
5 kx #endif
5 kx #ifdef INT16_MAX
5 kx int16_t a2 = INT16_MAX;
5 kx int16_t a2min = INT16_MIN;
5 kx #endif
5 kx #ifdef INT32_MAX
5 kx int32_t a3 = INT32_MAX;
5 kx int32_t a3min = INT32_MIN;
5 kx #endif
5 kx #ifdef INT64_MAX
5 kx int64_t a4 = INT64_MAX;
5 kx int64_t a4min = INT64_MIN;
5 kx #endif
5 kx #ifdef UINT8_MAX
5 kx uint8_t b1 = UINT8_MAX;
5 kx #else
5 kx typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5 kx #endif
5 kx #ifdef UINT16_MAX
5 kx uint16_t b2 = UINT16_MAX;
5 kx #endif
5 kx #ifdef UINT32_MAX
5 kx uint32_t b3 = UINT32_MAX;
5 kx #endif
5 kx #ifdef UINT64_MAX
5 kx uint64_t b4 = UINT64_MAX;
5 kx #endif
5 kx int_least8_t c1 = INT8_C (0x7f);
5 kx int_least8_t c1max = INT_LEAST8_MAX;
5 kx int_least8_t c1min = INT_LEAST8_MIN;
5 kx int_least16_t c2 = INT16_C (0x7fff);
5 kx int_least16_t c2max = INT_LEAST16_MAX;
5 kx int_least16_t c2min = INT_LEAST16_MIN;
5 kx int_least32_t c3 = INT32_C (0x7fffffff);
5 kx int_least32_t c3max = INT_LEAST32_MAX;
5 kx int_least32_t c3min = INT_LEAST32_MIN;
5 kx int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5 kx int_least64_t c4max = INT_LEAST64_MAX;
5 kx int_least64_t c4min = INT_LEAST64_MIN;
5 kx uint_least8_t d1 = UINT8_C (0xff);
5 kx uint_least8_t d1max = UINT_LEAST8_MAX;
5 kx uint_least16_t d2 = UINT16_C (0xffff);
5 kx uint_least16_t d2max = UINT_LEAST16_MAX;
5 kx uint_least32_t d3 = UINT32_C (0xffffffff);
5 kx uint_least32_t d3max = UINT_LEAST32_MAX;
5 kx uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5 kx uint_least64_t d4max = UINT_LEAST64_MAX;
5 kx int_fast8_t e1 = INT_FAST8_MAX;
5 kx int_fast8_t e1min = INT_FAST8_MIN;
5 kx int_fast16_t e2 = INT_FAST16_MAX;
5 kx int_fast16_t e2min = INT_FAST16_MIN;
5 kx int_fast32_t e3 = INT_FAST32_MAX;
5 kx int_fast32_t e3min = INT_FAST32_MIN;
5 kx int_fast64_t e4 = INT_FAST64_MAX;
5 kx int_fast64_t e4min = INT_FAST64_MIN;
5 kx uint_fast8_t f1 = UINT_FAST8_MAX;
5 kx uint_fast16_t f2 = UINT_FAST16_MAX;
5 kx uint_fast32_t f3 = UINT_FAST32_MAX;
5 kx uint_fast64_t f4 = UINT_FAST64_MAX;
5 kx #ifdef INTPTR_MAX
5 kx intptr_t g = INTPTR_MAX;
5 kx intptr_t gmin = INTPTR_MIN;
5 kx #endif
5 kx #ifdef UINTPTR_MAX
5 kx uintptr_t h = UINTPTR_MAX;
5 kx #endif
5 kx intmax_t i = INTMAX_MAX;
5 kx uintmax_t j = UINTMAX_MAX;
5 kx
5 kx /* Check that SIZE_MAX has the correct type, if possible. */
5 kx #if 201112 <= __STDC_VERSION__
5 kx int k = _Generic (SIZE_MAX, size_t: 0);
5 kx #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
5 kx || (0x5110 <= __SUNPRO_C && !__STDC__))
5 kx extern size_t k;
5 kx extern __typeof__ (SIZE_MAX) k;
5 kx #endif
5 kx
5 kx #include <limits.h> /* for CHAR_BIT */
5 kx #define TYPE_MINIMUM(t) \
5 kx ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5 kx #define TYPE_MAXIMUM(t) \
5 kx ((t) ((t) 0 < (t) -1 \
5 kx ? (t) -1 \
5 kx : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5 kx struct s {
5 kx int check_PTRDIFF:
5 kx PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5 kx && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5 kx ? 1 : -1;
5 kx /* Detect bug in FreeBSD 6.0 / ia64. */
5 kx int check_SIG_ATOMIC:
5 kx SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5 kx && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5 kx ? 1 : -1;
5 kx int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5 kx int check_WCHAR:
5 kx WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5 kx && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5 kx ? 1 : -1;
5 kx /* Detect bug in mingw. */
5 kx int check_WINT:
5 kx WINT_MIN == TYPE_MINIMUM (wint_t)
5 kx && WINT_MAX == TYPE_MAXIMUM (wint_t)
5 kx ? 1 : -1;
5 kx
5 kx /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5 kx int check_UINT8_C:
5 kx (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5 kx int check_UINT16_C:
5 kx (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5 kx
5 kx /* Detect bugs in OpenBSD 3.9 stdint.h. */
5 kx #ifdef UINT8_MAX
5 kx int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5 kx #endif
5 kx #ifdef UINT16_MAX
5 kx int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5 kx #endif
5 kx #ifdef UINT32_MAX
5 kx int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5 kx #endif
5 kx #ifdef UINT64_MAX
5 kx int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5 kx #endif
5 kx int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5 kx int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5 kx int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5 kx int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5 kx int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5 kx int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5 kx int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5 kx int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5 kx int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5 kx int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5 kx int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5 kx };
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on native Windows.
5 kx mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
5 kx # In general, assume it works.
5 kx *) gl_cv_header_working_stdint_h="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5 kx #define __STDC_CONSTANT_MACROS 1
5 kx #define __STDC_LIMIT_MACROS 1
5 kx #include <stdint.h>
5 kx
5 kx
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx
5 kx #include <stdio.h>
5 kx #include <string.h>
5 kx #define MVAL(macro) MVAL1(macro)
5 kx #define MVAL1(expression) #expression
5 kx static const char *macro_values[] =
5 kx {
5 kx #ifdef INT8_MAX
5 kx MVAL (INT8_MAX),
5 kx #endif
5 kx #ifdef INT16_MAX
5 kx MVAL (INT16_MAX),
5 kx #endif
5 kx #ifdef INT32_MAX
5 kx MVAL (INT32_MAX),
5 kx #endif
5 kx #ifdef INT64_MAX
5 kx MVAL (INT64_MAX),
5 kx #endif
5 kx #ifdef UINT8_MAX
5 kx MVAL (UINT8_MAX),
5 kx #endif
5 kx #ifdef UINT16_MAX
5 kx MVAL (UINT16_MAX),
5 kx #endif
5 kx #ifdef UINT32_MAX
5 kx MVAL (UINT32_MAX),
5 kx #endif
5 kx #ifdef UINT64_MAX
5 kx MVAL (UINT64_MAX),
5 kx #endif
5 kx NULL
5 kx };
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx const char **mv;
5 kx for (mv = macro_values; *mv != NULL; mv++)
5 kx {
5 kx const char *value = *mv;
5 kx /* Test whether it looks like a cast expression. */
5 kx if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5 kx || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5 kx || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5 kx || strncmp (value, "((int)"/*)*/, 6) == 0
5 kx || strncmp (value, "((signed short)"/*)*/, 15) == 0
5 kx || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5 kx return mv - macro_values + 1;
5 kx }
5 kx return 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_header_working_stdint_h=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5 kx $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5 kx fi
5 kx
5 kx HAVE_C99_STDINT_H=0
5 kx HAVE_SYS_BITYPES_H=0
5 kx HAVE_SYS_INTTYPES_H=0
5 kx STDINT_H=stdint.h
5 kx case "$gl_cv_header_working_stdint_h" in
5 kx *yes)
5 kx HAVE_C99_STDINT_H=1
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
5 kx $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
5 kx if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_header_stdint_predates_cxx11_h=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5 kx #include <stdint.h>
5 kx
5 kx
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx
5 kx intmax_t im = INTMAX_MAX;
5 kx int32_t i32 = INT32_C (0x7fffffff);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_stdint_predates_cxx11_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
5 kx $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
5 kx
5 kx if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
5 kx
5 kx $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
5 kx $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
5 kx if ${gl_cv_header_stdint_width+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_header_stdint_width=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
5 kx #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
5 kx #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
5 kx #endif
5 kx #include <stdint.h>
5 kx
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx int iw = UINTMAX_WIDTH;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_stdint_width=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
5 kx $as_echo "$gl_cv_header_stdint_width" >&6; }
5 kx if test "$gl_cv_header_stdint_width" = yes; then
5 kx STDINT_H=
5 kx fi
5 kx ;;
5 kx *)
5 kx for ac_header in sys/inttypes.h sys/bitypes.h
5 kx do :
5 kx as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5 kx ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5 kx if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx if test $ac_cv_header_sys_inttypes_h = yes; then
5 kx HAVE_SYS_INTTYPES_H=1
5 kx fi
5 kx if test $ac_cv_header_sys_bitypes_h = yes; then
5 kx HAVE_SYS_BITYPES_H=1
5 kx fi
5 kx
5 kx
5 kx if test $APPLE_UNIVERSAL_BUILD = 0; then
5 kx
5 kx
5 kx for gltype in ptrdiff_t size_t ; do
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5 kx $as_echo_n "checking for bit size of $gltype... " >&6; }
5 kx if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx #include <limits.h>"; then :
5 kx
5 kx else
5 kx result=unknown
5 kx fi
5 kx
5 kx eval gl_cv_bitsizeof_${gltype}=\$result
5 kx
5 kx fi
5 kx eval ac_res=\$gl_cv_bitsizeof_${gltype}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval result=\$gl_cv_bitsizeof_${gltype}
5 kx if test $result = unknown; then
5 kx result=0
5 kx fi
5 kx GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define BITSIZEOF_${GLTYPE} $result
5 kx _ACEOF
5 kx
5 kx eval BITSIZEOF_${GLTYPE}=\$result
5 kx done
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx for gltype in sig_atomic_t wchar_t wint_t ; do
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5 kx $as_echo_n "checking for bit size of $gltype... " >&6; }
5 kx if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx #include <limits.h>"; then :
5 kx
5 kx else
5 kx result=unknown
5 kx fi
5 kx
5 kx eval gl_cv_bitsizeof_${gltype}=\$result
5 kx
5 kx fi
5 kx eval ac_res=\$gl_cv_bitsizeof_${gltype}
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval result=\$gl_cv_bitsizeof_${gltype}
5 kx if test $result = unknown; then
5 kx result=0
5 kx fi
5 kx GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define BITSIZEOF_${GLTYPE} $result
5 kx _ACEOF
5 kx
5 kx eval BITSIZEOF_${GLTYPE}=\$result
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx for gltype in sig_atomic_t wchar_t wint_t ; do
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5 kx $as_echo_n "checking whether $gltype is signed... " >&6; }
5 kx if eval \${gl_cv_type_${gltype}_signed+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx result=yes
5 kx else
5 kx result=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx eval gl_cv_type_${gltype}_signed=\$result
5 kx
5 kx fi
5 kx eval ac_res=\$gl_cv_type_${gltype}_signed
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx eval result=\$gl_cv_type_${gltype}_signed
5 kx GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5 kx if test "$result" = yes; then
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SIGNED_${GLTYPE} 1
5 kx _ACEOF
5 kx
5 kx eval HAVE_SIGNED_${GLTYPE}=1
5 kx else
5 kx eval HAVE_SIGNED_${GLTYPE}=0
5 kx fi
5 kx done
5 kx
5 kx
5 kx gl_cv_type_ptrdiff_t_signed=yes
5 kx gl_cv_type_size_t_signed=no
5 kx if test $APPLE_UNIVERSAL_BUILD = 0; then
5 kx
5 kx
5 kx for gltype in ptrdiff_t size_t ; do
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5 kx $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5 kx if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx eval gl_cv_type_${gltype}_suffix=no
5 kx eval result=\$gl_cv_type_${gltype}_signed
5 kx if test "$result" = yes; then
5 kx glsufu=
5 kx else
5 kx glsufu=u
5 kx fi
5 kx for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5 kx case $glsuf in
5 kx '') gltype1='int';;
5 kx l) gltype1='long int';;
5 kx ll) gltype1='long long int';;
5 kx i64) gltype1='__int64';;
5 kx u) gltype1='unsigned int';;
5 kx ul) gltype1='unsigned long int';;
5 kx ull) gltype1='unsigned long long int';;
5 kx ui64)gltype1='unsigned __int64';;
5 kx esac
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx extern $gltype foo;
5 kx extern $gltype1 foo;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval gl_cv_type_${gltype}_suffix=\$glsuf
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx eval result=\$gl_cv_type_${gltype}_suffix
5 kx test "$result" != no && break
5 kx done
5 kx fi
5 kx eval ac_res=\$gl_cv_type_${gltype}_suffix
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5 kx eval result=\$gl_cv_type_${gltype}_suffix
5 kx test "$result" = no && result=
5 kx eval ${GLTYPE}_SUFFIX=\$result
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ${GLTYPE}_SUFFIX $result
5 kx _ACEOF
5 kx
5 kx done
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx for gltype in sig_atomic_t wchar_t wint_t ; do
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5 kx $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5 kx if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx eval gl_cv_type_${gltype}_suffix=no
5 kx eval result=\$gl_cv_type_${gltype}_signed
5 kx if test "$result" = yes; then
5 kx glsufu=
5 kx else
5 kx glsufu=u
5 kx fi
5 kx for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5 kx case $glsuf in
5 kx '') gltype1='int';;
5 kx l) gltype1='long int';;
5 kx ll) gltype1='long long int';;
5 kx i64) gltype1='__int64';;
5 kx u) gltype1='unsigned int';;
5 kx ul) gltype1='unsigned long int';;
5 kx ull) gltype1='unsigned long long int';;
5 kx ui64)gltype1='unsigned __int64';;
5 kx esac
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <signal.h>
5 kx #if HAVE_WCHAR_H
5 kx # include <stdio.h>
5 kx # include <time.h>
5 kx # include <wchar.h>
5 kx #endif
5 kx
5 kx extern $gltype foo;
5 kx extern $gltype1 foo;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx eval gl_cv_type_${gltype}_suffix=\$glsuf
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx eval result=\$gl_cv_type_${gltype}_suffix
5 kx test "$result" != no && break
5 kx done
5 kx fi
5 kx eval ac_res=\$gl_cv_type_${gltype}_suffix
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5 kx eval result=\$gl_cv_type_${gltype}_suffix
5 kx test "$result" = no && result=
5 kx eval ${GLTYPE}_SUFFIX=\$result
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ${GLTYPE}_SUFFIX $result
5 kx _ACEOF
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx if test $GNULIB_OVERRIDES_WINT_T = 1; then
5 kx BITSIZEOF_WINT_T=32
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx LIMITS_H='limits.h'
5 kx if test -n "$LIMITS_H"; then
5 kx GL_GENERATE_LIMITS_H_TRUE=
5 kx GL_GENERATE_LIMITS_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_LIMITS_H_TRUE='#'
5 kx GL_GENERATE_LIMITS_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$STDINT_H"; then
5 kx GL_GENERATE_STDINT_H_TRUE=
5 kx GL_GENERATE_STDINT_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_STDINT_H_TRUE='#'
5 kx GL_GENERATE_STDINT_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx GNULIB_EXPLICIT_BZERO=0;
5 kx GNULIB_FFSL=0;
5 kx GNULIB_FFSLL=0;
5 kx GNULIB_MEMCHR=0;
5 kx GNULIB_MEMMEM=0;
5 kx GNULIB_MEMPCPY=0;
5 kx GNULIB_MEMRCHR=0;
5 kx GNULIB_RAWMEMCHR=0;
5 kx GNULIB_STPCPY=0;
5 kx GNULIB_STPNCPY=0;
5 kx GNULIB_STRCHRNUL=0;
5 kx GNULIB_STRDUP=0;
5 kx GNULIB_STRNCAT=0;
5 kx GNULIB_STRNDUP=0;
5 kx GNULIB_STRNLEN=0;
5 kx GNULIB_STRPBRK=0;
5 kx GNULIB_STRSEP=0;
5 kx GNULIB_STRSTR=0;
5 kx GNULIB_STRCASESTR=0;
5 kx GNULIB_STRTOK_R=0;
5 kx GNULIB_MBSLEN=0;
5 kx GNULIB_MBSNLEN=0;
5 kx GNULIB_MBSCHR=0;
5 kx GNULIB_MBSRCHR=0;
5 kx GNULIB_MBSSTR=0;
5 kx GNULIB_MBSCASECMP=0;
5 kx GNULIB_MBSNCASECMP=0;
5 kx GNULIB_MBSPCASECMP=0;
5 kx GNULIB_MBSCASESTR=0;
5 kx GNULIB_MBSCSPN=0;
5 kx GNULIB_MBSPBRK=0;
5 kx GNULIB_MBSSPN=0;
5 kx GNULIB_MBSSEP=0;
5 kx GNULIB_MBSTOK_R=0;
5 kx GNULIB_STRERROR=0;
5 kx GNULIB_STRERROR_R=0;
5 kx GNULIB_STRSIGNAL=0;
5 kx GNULIB_STRVERSCMP=0;
5 kx HAVE_MBSLEN=0;
5 kx HAVE_EXPLICIT_BZERO=1;
5 kx HAVE_FFSL=1;
5 kx HAVE_FFSLL=1;
5 kx HAVE_DECL_MEMMEM=1;
5 kx HAVE_MEMPCPY=1;
5 kx HAVE_DECL_MEMRCHR=1;
5 kx HAVE_RAWMEMCHR=1;
5 kx HAVE_STPCPY=1;
5 kx HAVE_STPNCPY=1;
5 kx HAVE_STRCHRNUL=1;
5 kx HAVE_DECL_STRDUP=1;
5 kx HAVE_DECL_STRNDUP=1;
5 kx HAVE_DECL_STRNLEN=1;
5 kx HAVE_STRPBRK=1;
5 kx HAVE_STRSEP=1;
5 kx HAVE_STRCASESTR=1;
5 kx HAVE_DECL_STRTOK_R=1;
5 kx HAVE_DECL_STRERROR_R=1;
5 kx HAVE_DECL_STRSIGNAL=1;
5 kx HAVE_STRVERSCMP=1;
5 kx REPLACE_MEMCHR=0;
5 kx REPLACE_MEMMEM=0;
5 kx REPLACE_STPNCPY=0;
5 kx REPLACE_STRCHRNUL=0;
5 kx REPLACE_STRDUP=0;
5 kx REPLACE_STRNCAT=0;
5 kx REPLACE_STRNDUP=0;
5 kx REPLACE_STRNLEN=0;
5 kx REPLACE_STRSTR=0;
5 kx REPLACE_STRCASESTR=0;
5 kx REPLACE_STRTOK_R=0;
5 kx REPLACE_STRERROR=0;
5 kx REPLACE_STRERROR_R=0;
5 kx REPLACE_STRSIGNAL=0;
5 kx UNDEFINE_STRTOK_R=0;
5 kx
5 kx
5 kx REPLACE_STRERROR_0=0
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
5 kx $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
5 kx if ${gl_cv_func_strerror_0_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
5 kx # Guess yes on native Windows.
5 kx mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx #include <errno.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx char *str;
5 kx errno = 0;
5 kx str = strerror (0);
5 kx if (!*str) result |= 1;
5 kx if (errno) result |= 2;
5 kx if (strstr (str, "nknown") || strstr (str, "ndefined"))
5 kx result |= 4;
5 kx return result;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_strerror_0_works=yes
5 kx else
5 kx gl_cv_func_strerror_0_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
5 kx $as_echo "$gl_cv_func_strerror_0_works" >&6; }
5 kx case "$gl_cv_func_strerror_0_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_STRERROR_0=1
5 kx
5 kx $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_strerror_r = yes; then
5 kx if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
5 kx $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
5 kx if ${gl_cv_func_strerror_r_posix_signature+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx int strerror_r (int, char *, size_t);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_strerror_r_posix_signature=yes
5 kx else
5 kx gl_cv_func_strerror_r_posix_signature=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
5 kx $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
5 kx if test $gl_cv_func_strerror_r_posix_signature = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
5 kx $as_echo_n "checking whether strerror_r works... " >&6; }
5 kx if ${gl_cv_func_strerror_r_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx # Guess no on AIX.
5 kx aix*) gl_cv_func_strerror_r_works="guessing no";;
5 kx # Guess no on HP-UX.
5 kx hpux*) gl_cv_func_strerror_r_works="guessing no";;
5 kx # Guess no on BSD variants.
5 kx *bsd*) gl_cv_func_strerror_r_works="guessing no";;
5 kx # Guess yes otherwise.
5 kx *) gl_cv_func_strerror_r_works="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <errno.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx char buf[79];
5 kx if (strerror_r (EACCES, buf, 0) < 0)
5 kx result |= 1;
5 kx errno = 0;
5 kx if (strerror_r (EACCES, buf, sizeof buf) != 0)
5 kx result |= 2;
5 kx strcpy (buf, "Unknown");
5 kx if (strerror_r (0, buf, sizeof buf) != 0)
5 kx result |= 4;
5 kx if (errno)
5 kx result |= 8;
5 kx if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
5 kx result |= 0x10;
5 kx errno = 0;
5 kx *buf = 0;
5 kx if (strerror_r (-3, buf, sizeof buf) < 0)
5 kx result |= 0x20;
5 kx if (errno)
5 kx result |= 0x40;
5 kx if (!*buf)
5 kx result |= 0x80;
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_strerror_r_works=yes
5 kx else
5 kx gl_cv_func_strerror_r_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
5 kx $as_echo "$gl_cv_func_strerror_r_works" >&6; }
5 kx else
5 kx
5 kx if test $ac_cv_func___xpg_strerror_r = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
5 kx $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
5 kx if ${gl_cv_func_strerror_r_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx gl_cv_func_strerror_r_works="$gl_cross_guess_normal"
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <errno.h>
5 kx #include <string.h>
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx int __xpg_strerror_r(int, char *, size_t);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx char buf[256] = "^";
5 kx char copy[256];
5 kx char *str = strerror (-1);
5 kx strcpy (copy, str);
5 kx if (__xpg_strerror_r (-2, buf, 1) == 0)
5 kx result |= 1;
5 kx if (*buf)
5 kx result |= 2;
5 kx __xpg_strerror_r (-2, buf, 256);
5 kx if (strcmp (str, copy))
5 kx result |= 4;
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_strerror_r_works=yes
5 kx else
5 kx gl_cv_func_strerror_r_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
5 kx $as_echo "$gl_cv_func_strerror_r_works" >&6; }
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_string_h='<'string.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5 kx $as_echo_n "checking absolute name of <string.h>... " >&6; }
5 kx if ${gl_cv_next_string_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'string.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_string_h
5 kx gl_cv_next_string_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5 kx $as_echo "$gl_cv_next_string_h" >&6; }
5 kx fi
5 kx NEXT_STRING_H=$gl_cv_next_string_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'string.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_string_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_types_h='<'sys/types.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
5 kx if ${gl_cv_next_sys_types_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/types.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_types_h
5 kx gl_cv_next_sys_types_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
5 kx $as_echo "$gl_cv_next_sys_types_h" >&6; }
5 kx fi
5 kx NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/types.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_types_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx WINDOWS_STAT_INODES=0
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_CTIME=0;
5 kx GNULIB_MKTIME=0;
5 kx GNULIB_LOCALTIME=0;
5 kx GNULIB_NANOSLEEP=0;
5 kx GNULIB_STRFTIME=0;
5 kx GNULIB_STRPTIME=0;
5 kx GNULIB_TIMEGM=0;
5 kx GNULIB_TIME_R=0;
5 kx GNULIB_TIME_RZ=0;
5 kx GNULIB_TZSET=0;
5 kx HAVE_DECL_LOCALTIME_R=1;
5 kx HAVE_NANOSLEEP=1;
5 kx HAVE_STRPTIME=1;
5 kx HAVE_TIMEGM=1;
5 kx HAVE_TZSET=1;
5 kx HAVE_TIMEZONE_T=0;
5 kx REPLACE_CTIME=GNULIB_PORTCHECK;
5 kx REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
5 kx REPLACE_MKTIME=GNULIB_PORTCHECK;
5 kx REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
5 kx REPLACE_STRFTIME=GNULIB_PORTCHECK;
5 kx REPLACE_TIMEGM=GNULIB_PORTCHECK;
5 kx REPLACE_TZSET=GNULIB_PORTCHECK;
5 kx
5 kx : ${GNULIB_GETTIMEOFDAY=0};
5 kx REPLACE_GMTIME=0;
5 kx REPLACE_LOCALTIME=0;
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
5 kx $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
5 kx if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <time.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static struct timespec x; x.tv_sec = x.tv_nsec;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_sys_struct_timespec_in_time_h=yes
5 kx else
5 kx gl_cv_sys_struct_timespec_in_time_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
5 kx $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
5 kx
5 kx TIME_H_DEFINES_STRUCT_TIMESPEC=0
5 kx SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
5 kx PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
5 kx UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
5 kx if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
5 kx TIME_H_DEFINES_STRUCT_TIMESPEC=1
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
5 kx $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
5 kx if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/time.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static struct timespec x; x.tv_sec = x.tv_nsec;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_sys_struct_timespec_in_sys_time_h=yes
5 kx else
5 kx gl_cv_sys_struct_timespec_in_sys_time_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
5 kx $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
5 kx if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
5 kx SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
5 kx $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
5 kx if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static struct timespec x; x.tv_sec = x.tv_nsec;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_sys_struct_timespec_in_pthread_h=yes
5 kx else
5 kx gl_cv_sys_struct_timespec_in_pthread_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
5 kx $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
5 kx if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
5 kx PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
5 kx $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
5 kx if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <unistd.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static struct timespec x; x.tv_sec = x.tv_nsec;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_sys_struct_timespec_in_unistd_h=yes
5 kx else
5 kx gl_cv_sys_struct_timespec_in_unistd_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
5 kx $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
5 kx if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
5 kx UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_time_h='<'time.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
5 kx $as_echo_n "checking absolute name of <time.h>... " >&6; }
5 kx if ${gl_cv_next_time_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <time.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'time.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_time_h
5 kx gl_cv_next_time_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
5 kx $as_echo "$gl_cv_next_time_h" >&6; }
5 kx fi
5 kx NEXT_TIME_H=$gl_cv_next_time_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'time.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_time_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_SOCKET=0;
5 kx GNULIB_CONNECT=0;
5 kx GNULIB_ACCEPT=0;
5 kx GNULIB_BIND=0;
5 kx GNULIB_GETPEERNAME=0;
5 kx GNULIB_GETSOCKNAME=0;
5 kx GNULIB_GETSOCKOPT=0;
5 kx GNULIB_LISTEN=0;
5 kx GNULIB_RECV=0;
5 kx GNULIB_SEND=0;
5 kx GNULIB_RECVFROM=0;
5 kx GNULIB_SENDTO=0;
5 kx GNULIB_SETSOCKOPT=0;
5 kx GNULIB_SHUTDOWN=0;
5 kx GNULIB_ACCEPT4=0;
5 kx HAVE_STRUCT_SOCKADDR_STORAGE=1;
5 kx HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
5 kx
5 kx HAVE_SA_FAMILY_T=1;
5 kx HAVE_ACCEPT4=1;
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h = no; then
5 kx for ac_header in ws2tcpip.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WS2TCPIP_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx osf*)
5 kx
5 kx $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
5 kx $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
5 kx if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/socket.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_sys_socket_h_selfcontained=yes
5 kx else
5 kx gl_cv_header_sys_socket_h_selfcontained=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
5 kx $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
5 kx if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
5 kx for ac_func in shutdown
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
5 kx if test "x$ac_cv_func_shutdown" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SHUTDOWN 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test $ac_cv_func_shutdown = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
5 kx $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
5 kx if ${gl_cv_header_sys_socket_h_shut+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/socket.h>
5 kx int
5 kx main ()
5 kx {
5 kx int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_sys_socket_h_shut=yes
5 kx else
5 kx gl_cv_header_sys_socket_h_shut=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
5 kx $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
5 kx if test $gl_cv_header_sys_socket_h_shut = no; then
5 kx SYS_SOCKET_H='sys/socket.h'
5 kx fi
5 kx fi
5 kx fi
5 kx # We need to check for ws2tcpip.h now.
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_socket_h='<'sys/socket.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
5 kx if ${gl_cv_next_sys_socket_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_socket_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/socket.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/socket.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_socket_h
5 kx gl_cv_next_sys_socket_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_socket_h='<'sys/socket.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
5 kx $as_echo "$gl_cv_next_sys_socket_h" >&6; }
5 kx fi
5 kx NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/socket.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_socket_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h = yes; then
5 kx HAVE_SYS_SOCKET_H=1
5 kx else
5 kx HAVE_SYS_SOCKET_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h = yes; then
5 kx HAVE_WS2TCPIP_H=0
5 kx else
5 kx if test $ac_cv_header_ws2tcpip_h = yes; then
5 kx HAVE_WS2TCPIP_H=1
5 kx else
5 kx HAVE_WS2TCPIP_H=0
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
5 kx /* sys/types.h is not needed according to POSIX, but the
5 kx sys/socket.h in i386-unknown-freebsd4.10 and
5 kx powerpc-apple-darwin5.5 required it. */
5 kx #include <sys/types.h>
5 kx #ifdef HAVE_SYS_SOCKET_H
5 kx #include <sys/socket.h>
5 kx #endif
5 kx #ifdef HAVE_WS2TCPIP_H
5 kx #include <ws2tcpip.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_STORAGE 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
5 kx /* sys/types.h is not needed according to POSIX, but the
5 kx sys/socket.h in i386-unknown-freebsd4.10 and
5 kx powerpc-apple-darwin5.5 required it. */
5 kx #include <sys/types.h>
5 kx #ifdef HAVE_SYS_SOCKET_H
5 kx #include <sys/socket.h>
5 kx #endif
5 kx #ifdef HAVE_WS2TCPIP_H
5 kx #include <ws2tcpip.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_type_sa_family_t" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SA_FAMILY_T 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_type_struct_sockaddr_storage = no; then
5 kx HAVE_STRUCT_SOCKADDR_STORAGE=0
5 kx fi
5 kx if test $ac_cv_type_sa_family_t = no; then
5 kx HAVE_SA_FAMILY_T=0
5 kx fi
5 kx if test $ac_cv_type_struct_sockaddr_storage != no; then
5 kx ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
5 kx #ifdef HAVE_SYS_SOCKET_H
5 kx #include <sys/socket.h>
5 kx #endif
5 kx #ifdef HAVE_WS2TCPIP_H
5 kx #include <ws2tcpip.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
5 kx fi
5 kx
5 kx fi
5 kx if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
5 kx || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
5 kx SYS_SOCKET_H='sys/socket.h'
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_INET_NTOP=0;
5 kx GNULIB_INET_PTON=0;
5 kx HAVE_DECL_INET_NTOP=1;
5 kx HAVE_DECL_INET_PTON=1;
5 kx REPLACE_INET_NTOP=0;
5 kx REPLACE_INET_PTON=0;
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_features_h = yes; then
5 kx HAVE_FEATURES_H=1
5 kx else
5 kx HAVE_FEATURES_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx GNULIB_ISBLANK=0;
5 kx HAVE_ISBLANK=1;
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
5 kx $as_echo_n "checking if environ is properly declared... " >&6; }
5 kx if ${gt_cv_var_environ_declaration+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #if HAVE_UNISTD_H
5 kx #include <unistd.h>
5 kx #endif
5 kx /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
5 kx #include <stdlib.h>
5 kx
5 kx extern struct { int foo; } environ;
5 kx int
5 kx main ()
5 kx {
5 kx environ.foo = 1;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_var_environ_declaration=no
5 kx else
5 kx gt_cv_var_environ_declaration=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
5 kx $as_echo "$gt_cv_var_environ_declaration" >&6; }
5 kx if test $gt_cv_var_environ_declaration = yes; then
5 kx
5 kx $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx if test $gt_cv_var_environ_declaration != yes; then
5 kx HAVE_DECL_ENVIRON=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
5 kx $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
5 kx if ${gl_cv_func_getcwd_null+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_getcwd_null="guessing yes";;
5 kx # Guess yes on Cygwin.
5 kx cygwin*) gl_cv_func_getcwd_null="guessing yes";;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_getcwd_null="$gl_cross_guess_normal";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx # include <stdlib.h>
5 kx # if HAVE_UNISTD_H
5 kx # include <unistd.h>
5 kx # else /* on Windows with MSVC */
5 kx # include <direct.h>
5 kx # endif
5 kx # ifndef getcwd
5 kx char *getcwd ();
5 kx # endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #if defined _WIN32 && ! defined __CYGWIN__
5 kx /* mingw cwd does not start with '/', but getcwd does allocate.
5 kx However, mingw fails to honor non-zero size. */
5 kx #else
5 kx if (chdir ("/") != 0)
5 kx return 1;
5 kx else
5 kx {
5 kx char *f = getcwd (NULL, 0);
5 kx if (! f)
5 kx return 2;
5 kx if (f[0] != '/')
5 kx { free (f); return 3; }
5 kx if (f[1] != '\0')
5 kx { free (f); return 4; }
5 kx free (f);
5 kx return 0;
5 kx }
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_getcwd_null=yes
5 kx else
5 kx gl_cv_func_getcwd_null=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
5 kx $as_echo "$gl_cv_func_getcwd_null" >&6; }
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
5 kx $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
5 kx if ${gl_cv_func_getcwd_posix_signature+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <unistd.h>
5 kx int
5 kx main ()
5 kx {
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx char *getcwd (char *, size_t);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_getcwd_posix_signature=yes
5 kx else
5 kx gl_cv_func_getcwd_posix_signature=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
5 kx $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
5 kx
5 kx
5 kx GNULIB_GETTIMEOFDAY=0;
5 kx HAVE_GETTIMEOFDAY=1;
5 kx HAVE_STRUCT_TIMEVAL=1;
5 kx HAVE_SYS_TIME_H=1;
5 kx REPLACE_GETTIMEOFDAY=0;
5 kx REPLACE_STRUCT_TIMEVAL=0;
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_time_h='<'sys/time.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
5 kx if ${gl_cv_next_sys_time_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_time_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/time.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/time.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_time_h
5 kx gl_cv_next_sys_time_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_time_h='<'sys/time.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
5 kx $as_echo "$gl_cv_next_sys_time_h" >&6; }
5 kx fi
5 kx NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/time.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_time_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_time_h != yes; then
5 kx HAVE_SYS_TIME_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
5 kx $as_echo_n "checking for struct timeval... " >&6; }
5 kx if ${gl_cv_sys_struct_timeval+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #if HAVE_SYS_TIME_H
5 kx #include <sys/time.h>
5 kx #endif
5 kx #include <time.h>
5 kx #if HAVE_WINSOCK2_H
5 kx # include <winsock2.h>
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static struct timeval x; x.tv_sec = x.tv_usec;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_sys_struct_timeval=yes
5 kx else
5 kx gl_cv_sys_struct_timeval=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
5 kx $as_echo "$gl_cv_sys_struct_timeval" >&6; }
5 kx if test $gl_cv_sys_struct_timeval != yes; then
5 kx HAVE_STRUCT_TIMEVAL=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
5 kx $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
5 kx if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #if HAVE_SYS_TIME_H
5 kx #include <sys/time.h>
5 kx #endif
5 kx #include <time.h>
5 kx #if HAVE_WINSOCK2_H
5 kx # include <winsock2.h>
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static struct timeval x;
5 kx typedef int verify_tv_sec_type[
5 kx sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
5 kx ];
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_sys_struct_timeval_tv_sec=yes
5 kx else
5 kx gl_cv_sys_struct_timeval_tv_sec=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
5 kx $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
5 kx if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
5 kx REPLACE_STRUCT_TIMEVAL=1
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx NEED_LOCALTIME_BUFFER=0
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
5 kx $as_echo_n "checking for IPv4 sockets... " >&6; }
5 kx if ${gl_cv_socket_ipv4+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #ifdef HAVE_SYS_SOCKET_H
5 kx #include <sys/socket.h>
5 kx #endif
5 kx #ifdef HAVE_NETINET_IN_H
5 kx #include <netinet/in.h>
5 kx #endif
5 kx #ifdef HAVE_WINSOCK2_H
5 kx #include <winsock2.h>
5 kx #endif
5 kx int
5 kx main ()
5 kx {
5 kx int x = AF_INET; struct in_addr y; struct sockaddr_in z;
5 kx if (&x && &y && &z) return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_socket_ipv4=yes
5 kx else
5 kx gl_cv_socket_ipv4=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
5 kx $as_echo "$gl_cv_socket_ipv4" >&6; }
5 kx if test $gl_cv_socket_ipv4 = yes; then
5 kx
5 kx $as_echo "#define HAVE_IPV4 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
5 kx $as_echo_n "checking for IPv6 sockets... " >&6; }
5 kx if ${gl_cv_socket_ipv6+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #ifdef HAVE_SYS_SOCKET_H
5 kx #include <sys/socket.h>
5 kx #endif
5 kx #ifdef HAVE_NETINET_IN_H
5 kx #include <netinet/in.h>
5 kx #endif
5 kx #ifdef HAVE_WINSOCK2_H
5 kx #include <winsock2.h>
5 kx #endif
5 kx #ifdef HAVE_WS2TCPIP_H
5 kx #include <ws2tcpip.h>
5 kx #endif
5 kx int
5 kx main ()
5 kx {
5 kx int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
5 kx if (&x && &y && &z) return 0;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_socket_ipv6=yes
5 kx else
5 kx gl_cv_socket_ipv6=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
5 kx $as_echo "$gl_cv_socket_ipv6" >&6; }
5 kx if test $gl_cv_socket_ipv6 = yes; then
5 kx
5 kx $as_echo "#define HAVE_IPV6 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_IMAXABS=0;
5 kx GNULIB_IMAXDIV=0;
5 kx GNULIB_STRTOIMAX=0;
5 kx GNULIB_STRTOUMAX=0;
5 kx HAVE_DECL_IMAXABS=1;
5 kx HAVE_DECL_IMAXDIV=1;
5 kx HAVE_DECL_STRTOIMAX=1;
5 kx HAVE_DECL_STRTOUMAX=1;
5 kx HAVE_IMAXDIV_T=1;
5 kx REPLACE_STRTOIMAX=0;
5 kx REPLACE_STRTOUMAX=0;
5 kx INT32_MAX_LT_INTMAX_MAX=1;
5 kx INT64_MAX_EQ_LONG_MAX='defined _LP64';
5 kx PRI_MACROS_BROKEN=0;
5 kx PRIPTR_PREFIX=__PRIPTR_PREFIX;
5 kx UINT32_MAX_LT_UINTMAX_MAX=1;
5 kx UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_inttypes_h='<'inttypes.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
5 kx $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
5 kx if ${gl_cv_next_inttypes_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_inttypes_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <inttypes.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'inttypes.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_inttypes_h
5 kx gl_cv_next_inttypes_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_inttypes_h='<'inttypes.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
5 kx $as_echo "$gl_cv_next_inttypes_h" >&6; }
5 kx fi
5 kx NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'inttypes.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_inttypes_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_header in inttypes.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_inttypes_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_INTTYPES_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx if test $ac_cv_header_inttypes_h = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5 kx $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5 kx if ${gt_cv_inttypes_pri_broken+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <inttypes.h>
5 kx #ifdef PRId32
5 kx char *p = PRId32;
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_inttypes_pri_broken=no
5 kx else
5 kx gt_cv_inttypes_pri_broken=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5 kx $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5 kx fi
5 kx if test "$gt_cv_inttypes_pri_broken" = yes; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PRI_MACROS_BROKEN 1
5 kx _ACEOF
5 kx
5 kx PRI_MACROS_BROKEN=1
5 kx else
5 kx PRI_MACROS_BROKEN=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_threads_api=none
5 kx LIBTHREAD=
5 kx LTLIBTHREAD=
5 kx LIBMULTITHREAD=
5 kx LTLIBMULTITHREAD=
5 kx if test "$gl_use_threads" != no; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
5 kx $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
5 kx if ${gl_cv_have_weak+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_have_weak=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern void xyzzy ();
5 kx #pragma weak xyzzy
5 kx int
5 kx main ()
5 kx {
5 kx xyzzy();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_have_weak=maybe
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test $gl_cv_have_weak = maybe; then
5 kx if test "$cross_compiling" = yes; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __ELF__
5 kx Extensible Linking Format
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
5 kx gl_cv_have_weak="guessing yes"
5 kx else
5 kx gl_cv_have_weak="guessing no"
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdio.h>
5 kx #pragma weak fputs
5 kx int main ()
5 kx {
5 kx return (fputs == NULL);
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_have_weak=yes
5 kx else
5 kx gl_cv_have_weak=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
5 kx $as_echo "$gl_cv_have_weak" >&6; }
5 kx if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5 kx # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
5 kx # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
5 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
5 kx gl_have_pthread_h=yes
5 kx else
5 kx gl_have_pthread_h=no
5 kx fi
5 kx
5 kx
5 kx if test "$gl_have_pthread_h" = yes; then
5 kx # Other possible tests:
5 kx # -lpthreads (FSU threads, PCthreads)
5 kx # -lgthreads
5 kx gl_have_pthread=
5 kx # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
5 kx # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
5 kx # the second one only in libpthread, and lock.c needs it.
5 kx #
5 kx # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
5 kx # needs -pthread for some reason. See:
5 kx # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
5 kx save_LIBS=$LIBS
5 kx for gl_pthread in '' '-pthread'; do
5 kx LIBS="$LIBS $gl_pthread"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx pthread_mutex_t m;
5 kx pthread_mutexattr_t ma;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx pthread_mutex_lock (&m);
5 kx pthread_mutexattr_init (&ma);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_have_pthread=yes
5 kx LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
5 kx LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$save_LIBS
5 kx test -n "$gl_have_pthread" && break
5 kx done
5 kx
5 kx # Test for libpthread by looking for pthread_kill. (Not pthread_self,
5 kx # since it is defined as a macro on OSF/1.)
5 kx if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
5 kx # The program links fine without libpthread. But it may actually
5 kx # need to link with libpthread in order to create multiple threads.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
5 kx $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
5 kx if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lpthread $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_kill ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_kill ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_pthread_pthread_kill=yes
5 kx else
5 kx ac_cv_lib_pthread_pthread_kill=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
5 kx $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
5 kx if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
5 kx LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
5 kx # On Solaris and HP-UX, most pthread functions exist also in libc.
5 kx # Therefore pthread_in_use() needs to actually try to create a
5 kx # thread: pthread_create from libc will fail, whereas
5 kx # pthread_create will actually create a thread.
5 kx case "$host_os" in
5 kx solaris* | hpux*)
5 kx
5 kx $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
5 kx
5 kx esac
5 kx
5 kx fi
5 kx
5 kx elif test -z "$gl_have_pthread"; then
5 kx # Some library is needed. Try libpthread and libc_r.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
5 kx $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
5 kx if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lpthread $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_kill ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_kill ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_pthread_pthread_kill=yes
5 kx else
5 kx ac_cv_lib_pthread_pthread_kill=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
5 kx $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
5 kx if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
5 kx gl_have_pthread=yes
5 kx LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
5 kx LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
5 kx fi
5 kx
5 kx if test -z "$gl_have_pthread"; then
5 kx # For FreeBSD 4.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
5 kx $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
5 kx if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lc_r $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_kill ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_kill ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_c_r_pthread_kill=yes
5 kx else
5 kx ac_cv_lib_c_r_pthread_kill=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
5 kx $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
5 kx if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
5 kx gl_have_pthread=yes
5 kx LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
5 kx LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx if test -n "$gl_have_pthread"; then
5 kx gl_threads_api=posix
5 kx
5 kx $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
5 kx
5 kx if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
5 kx if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
5 kx
5 kx $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
5 kx
5 kx LIBTHREAD=
5 kx LTLIBTHREAD=
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx if test -z "$gl_have_pthread"; then
5 kx if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
5 kx gl_have_solaristhread=
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS -lthread"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <thread.h>
5 kx #include <synch.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx thr_self();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_have_solaristhread=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gl_save_LIBS"
5 kx if test -n "$gl_have_solaristhread"; then
5 kx gl_threads_api=solaris
5 kx LIBTHREAD=-lthread
5 kx LTLIBTHREAD=-lthread
5 kx LIBMULTITHREAD="$LIBTHREAD"
5 kx LTLIBMULTITHREAD="$LTLIBTHREAD"
5 kx
5 kx $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
5 kx
5 kx if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
5 kx
5 kx $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
5 kx
5 kx LIBTHREAD=
5 kx LTLIBTHREAD=
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx if test "$gl_use_threads" = pth; then
5 kx gl_save_CPPFLAGS="$CPPFLAGS"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
5 kx $as_echo_n "checking how to link with libpth... " >&6; }
5 kx if ${ac_cv_libpth_libs+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx use_additional=yes
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx
5 kx # Check whether --with-libpth-prefix was given.
5 kx if test "${with_libpth_prefix+set}" = set; then :
5 kx withval=$with_libpth_prefix;
5 kx if test "X$withval" = "Xno"; then
5 kx use_additional=no
5 kx else
5 kx if test "X$withval" = "X"; then
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx
5 kx eval additional_includedir=\"$includedir\"
5 kx eval additional_libdir=\"$libdir\"
5 kx
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx else
5 kx additional_includedir="$withval/include"
5 kx additional_libdir="$withval/$acl_libdirstem"
5 kx if test "$acl_libdirstem2" != "$acl_libdirstem" \
5 kx && ! test -d "$withval/$acl_libdirstem"; then
5 kx additional_libdir="$withval/$acl_libdirstem2"
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx LIBPTH=
5 kx LTLIBPTH=
5 kx INCPTH=
5 kx LIBPTH_PREFIX=
5 kx HAVE_LIBPTH=
5 kx rpathdirs=
5 kx ltrpathdirs=
5 kx names_already_handled=
5 kx names_next_round='pth '
5 kx while test -n "$names_next_round"; do
5 kx names_this_round="$names_next_round"
5 kx names_next_round=
5 kx for name in $names_this_round; do
5 kx already_handled=
5 kx for n in $names_already_handled; do
5 kx if test "$n" = "$name"; then
5 kx already_handled=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$already_handled"; then
5 kx names_already_handled="$names_already_handled $name"
5 kx uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5 kx eval value=\"\$HAVE_LIB$uppername\"
5 kx if test -n "$value"; then
5 kx if test "$value" = yes; then
5 kx eval value=\"\$LIB$uppername\"
5 kx test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
5 kx eval value=\"\$LTLIB$uppername\"
5 kx test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
5 kx else
5 kx :
5 kx fi
5 kx else
5 kx found_dir=
5 kx found_la=
5 kx found_so=
5 kx found_a=
5 kx eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5 kx if test -n "$acl_shlibext"; then
5 kx shrext=".$acl_shlibext" # typically: shrext=.so
5 kx else
5 kx shrext=
5 kx fi
5 kx if test $use_additional = yes; then
5 kx dir="$additional_libdir"
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx for x in $LDFLAGS $LTLIBPTH; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx case "$x" in
5 kx -L*)
5 kx dir=`echo "X$x" | sed -e 's/^X-L//'`
5 kx if test -n "$acl_shlibext"; then
5 kx if test -f "$dir/$libname$shrext"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext"
5 kx else
5 kx if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5 kx ver=`(cd "$dir" && \
5 kx for f in "$libname$shrext".*; do echo "$f"; done \
5 kx | sed -e "s,^$libname$shrext\\\\.,," \
5 kx | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5 kx | sed 1q ) 2>/dev/null`
5 kx if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$libname$shrext.$ver"
5 kx fi
5 kx else
5 kx eval library_names=\"$acl_library_names_spec\"
5 kx for f in $library_names; do
5 kx if test -f "$dir/$f"; then
5 kx found_dir="$dir"
5 kx found_so="$dir/$f"
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx fi
5 kx fi
5 kx if test "X$found_dir" = "X"; then
5 kx if test -f "$dir/$libname.$acl_libext"; then
5 kx found_dir="$dir"
5 kx found_a="$dir/$libname.$acl_libext"
5 kx fi
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx if test -f "$dir/$libname.la"; then
5 kx found_la="$dir/$libname.la"
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx if test "X$found_dir" != "X"; then
5 kx break
5 kx fi
5 kx done
5 kx fi
5 kx if test "X$found_dir" != "X"; then
5 kx LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
5 kx if test "X$found_so" != "X"; then
5 kx if test "$enable_rpath" = no \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5 kx || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
5 kx else
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $found_dir"
5 kx fi
5 kx if test "$acl_hardcode_direct" = yes; then
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
5 kx else
5 kx if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $found_dir"
5 kx fi
5 kx else
5 kx haveit=
5 kx for x in $LDFLAGS $LIBPTH; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$found_dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
5 kx fi
5 kx if test "$acl_hardcode_minus_L" != no; then
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
5 kx else
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx else
5 kx if test "X$found_a" != "X"; then
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
5 kx else
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
5 kx fi
5 kx fi
5 kx additional_includedir=
5 kx case "$found_dir" in
5 kx */$acl_libdirstem | */$acl_libdirstem/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5 kx if test "$name" = 'pth'; then
5 kx LIBPTH_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx */$acl_libdirstem2 | */$acl_libdirstem2/)
5 kx basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5 kx if test "$name" = 'pth'; then
5 kx LIBPTH_PREFIX="$basedir"
5 kx fi
5 kx additional_includedir="$basedir/include"
5 kx ;;
5 kx esac
5 kx if test "X$additional_includedir" != "X"; then
5 kx if test "X$additional_includedir" != "X/usr/include"; then
5 kx haveit=
5 kx if test "X$additional_includedir" = "X/usr/local/include"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx for x in $CPPFLAGS $INCPTH; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-I$additional_includedir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_includedir"; then
5 kx INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx if test -n "$found_la"; then
5 kx save_libdir="$libdir"
5 kx case "$found_la" in
5 kx */* | *\\*) . "$found_la" ;;
5 kx *) . "./$found_la" ;;
5 kx esac
5 kx libdir="$save_libdir"
5 kx for dep in $dependency_libs; do
5 kx case "$dep" in
5 kx -L*)
5 kx additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5 kx if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5 kx && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5 kx haveit=
5 kx if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5 kx || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5 kx if test -n "$GCC"; then
5 kx case $host_os in
5 kx linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5 kx esac
5 kx fi
5 kx fi
5 kx if test -z "$haveit"; then
5 kx haveit=
5 kx for x in $LDFLAGS $LIBPTH; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx haveit=
5 kx for x in $LDFLAGS $LTLIBPTH; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X-L$additional_libdir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx if test -d "$additional_libdir"; then
5 kx LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx -R*)
5 kx dir=`echo "X$dep" | sed -e 's/^X-R//'`
5 kx if test "$enable_rpath" != no; then
5 kx haveit=
5 kx for x in $rpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx rpathdirs="$rpathdirs $dir"
5 kx fi
5 kx haveit=
5 kx for x in $ltrpathdirs; do
5 kx if test "X$x" = "X$dir"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx ltrpathdirs="$ltrpathdirs $dir"
5 kx fi
5 kx fi
5 kx ;;
5 kx -l*)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5 kx ;;
5 kx *.la)
5 kx names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5 kx ;;
5 kx *)
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
5 kx LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
5 kx ;;
5 kx esac
5 kx done
5 kx fi
5 kx else
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
5 kx LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
5 kx fi
5 kx fi
5 kx fi
5 kx done
5 kx done
5 kx if test "X$rpathdirs" != "X"; then
5 kx if test -n "$acl_hardcode_libdir_separator"; then
5 kx alldirs=
5 kx for found_dir in $rpathdirs; do
5 kx alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5 kx done
5 kx acl_save_libdir="$libdir"
5 kx libdir="$alldirs"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
5 kx else
5 kx for found_dir in $rpathdirs; do
5 kx acl_save_libdir="$libdir"
5 kx libdir="$found_dir"
5 kx eval flag=\"$acl_hardcode_libdir_flag_spec\"
5 kx libdir="$acl_save_libdir"
5 kx LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
5 kx done
5 kx fi
5 kx fi
5 kx if test "X$ltrpathdirs" != "X"; then
5 kx for found_dir in $ltrpathdirs; do
5 kx LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
5 kx done
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_cv_libpth_libs="$LIBPTH"
5 kx ac_cv_libpth_ltlibs="$LTLIBPTH"
5 kx ac_cv_libpth_cppflags="$INCPTH"
5 kx ac_cv_libpth_prefix="$LIBPTH_PREFIX"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
5 kx $as_echo "$ac_cv_libpth_libs" >&6; }
5 kx LIBPTH="$ac_cv_libpth_libs"
5 kx LTLIBPTH="$ac_cv_libpth_ltlibs"
5 kx INCPTH="$ac_cv_libpth_cppflags"
5 kx LIBPTH_PREFIX="$ac_cv_libpth_prefix"
5 kx
5 kx for element in $INCPTH; do
5 kx haveit=
5 kx for x in $CPPFLAGS; do
5 kx
5 kx acl_save_prefix="$prefix"
5 kx prefix="$acl_final_prefix"
5 kx acl_save_exec_prefix="$exec_prefix"
5 kx exec_prefix="$acl_final_exec_prefix"
5 kx eval x=\"$x\"
5 kx exec_prefix="$acl_save_exec_prefix"
5 kx prefix="$acl_save_prefix"
5 kx
5 kx if test "X$x" = "X$element"; then
5 kx haveit=yes
5 kx break
5 kx fi
5 kx done
5 kx if test -z "$haveit"; then
5 kx CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5 kx fi
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx HAVE_LIBPTH=yes
5 kx
5 kx
5 kx
5 kx gl_have_pth=
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBPTH"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pth.h>
5 kx int
5 kx main ()
5 kx {
5 kx pth_self();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_have_pth=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gl_save_LIBS"
5 kx if test -n "$gl_have_pth"; then
5 kx gl_threads_api=pth
5 kx LIBTHREAD="$LIBPTH"
5 kx LTLIBTHREAD="$LTLIBPTH"
5 kx LIBMULTITHREAD="$LIBTHREAD"
5 kx LTLIBMULTITHREAD="$LTLIBTHREAD"
5 kx
5 kx $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
5 kx
5 kx if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
5 kx if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
5 kx
5 kx $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
5 kx
5 kx LIBTHREAD=
5 kx LTLIBTHREAD=
5 kx fi
5 kx fi
5 kx else
5 kx CPPFLAGS="$gl_save_CPPFLAGS"
5 kx fi
5 kx fi
5 kx if test -z "$gl_have_pthread"; then
5 kx case "$gl_use_threads" in
5 kx yes | windows | win32) # The 'win32' is for backward compatibility.
5 kx if { case "$host_os" in
5 kx mingw*) true;;
5 kx *) false;;
5 kx esac
5 kx }; then
5 kx gl_threads_api=windows
5 kx
5 kx $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
5 kx
5 kx fi
5 kx ;;
5 kx esac
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
5 kx $as_echo_n "checking for multithread API to use... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
5 kx $as_echo "$gl_threads_api" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_alarm" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_ALARM $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library needed for semaphore functions" >&5
5 kx $as_echo_n "checking for library needed for semaphore functions... " >&6; }
5 kx if ${gl_cv_semaphore_lib+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBMULTITHREAD"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <semaphore.h>
5 kx int
5 kx main ()
5 kx {
5 kx sem_post ((sem_t *)0);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_semaphore_lib=none
5 kx else
5 kx LIBS="$LIBS -lrt"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <semaphore.h>
5 kx int
5 kx main ()
5 kx {
5 kx sem_post ((sem_t *)0);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_semaphore_lib='-lrt'
5 kx else
5 kx gl_cv_semaphore_lib=none
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_semaphore_lib" >&5
5 kx $as_echo "$gl_cv_semaphore_lib" >&6; }
5 kx if test "x$gl_cv_semaphore_lib" = xnone; then
5 kx LIB_SEMAPHORE=
5 kx else
5 kx LIB_SEMAPHORE="$gl_cv_semaphore_lib"
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5 kx $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5 kx if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx rm -f conftest.sym conftest.file
5 kx echo >conftest.file
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx linux-* | linux)
5 kx # Guess yes on Linux systems.
5 kx gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
5 kx *-gnu* | gnu*)
5 kx # Guess yes on glibc systems.
5 kx gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
5 kx mingw*)
5 kx # Guess no on native Windows.
5 kx gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
5 kx *)
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx struct stat sbuf;
5 kx if (symlink ("conftest.file", "conftest.sym") != 0)
5 kx return 1;
5 kx /* Linux will dereference the symlink and fail, as required by
5 kx POSIX. That is better in the sense that it means we will not
5 kx have to compile and use the lstat wrapper. */
5 kx return lstat ("conftest.sym/", &sbuf) == 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_lstat_dereferences_slashed_symlink=yes
5 kx else
5 kx gl_cv_func_lstat_dereferences_slashed_symlink=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f conftest.sym conftest.file
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
5 kx $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5 kx case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
5 kx *yes)
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5 kx _ACEOF
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx GNULIB__EXIT=0;
5 kx GNULIB_ATOLL=0;
5 kx GNULIB_CALLOC_POSIX=0;
5 kx GNULIB_CANONICALIZE_FILE_NAME=0;
5 kx GNULIB_GETLOADAVG=0;
5 kx GNULIB_GETSUBOPT=0;
5 kx GNULIB_GRANTPT=0;
5 kx GNULIB_MALLOC_POSIX=0;
5 kx GNULIB_MBTOWC=0;
5 kx GNULIB_MKDTEMP=0;
5 kx GNULIB_MKOSTEMP=0;
5 kx GNULIB_MKOSTEMPS=0;
5 kx GNULIB_MKSTEMP=0;
5 kx GNULIB_MKSTEMPS=0;
5 kx GNULIB_POSIX_OPENPT=0;
5 kx GNULIB_PTSNAME=0;
5 kx GNULIB_PTSNAME_R=0;
5 kx GNULIB_PUTENV=0;
5 kx GNULIB_QSORT_R=0;
5 kx GNULIB_RANDOM=0;
5 kx GNULIB_RANDOM_R=0;
5 kx GNULIB_REALLOCARRAY=0;
5 kx GNULIB_REALLOC_POSIX=0;
5 kx GNULIB_REALPATH=0;
5 kx GNULIB_RPMATCH=0;
5 kx GNULIB_SECURE_GETENV=0;
5 kx GNULIB_SETENV=0;
5 kx GNULIB_STRTOD=0;
5 kx GNULIB_STRTOLD=0;
5 kx GNULIB_STRTOLL=0;
5 kx GNULIB_STRTOULL=0;
5 kx GNULIB_SYSTEM_POSIX=0;
5 kx GNULIB_UNLOCKPT=0;
5 kx GNULIB_UNSETENV=0;
5 kx GNULIB_WCTOMB=0;
5 kx HAVE__EXIT=1;
5 kx HAVE_ATOLL=1;
5 kx HAVE_CANONICALIZE_FILE_NAME=1;
5 kx HAVE_DECL_GETLOADAVG=1;
5 kx HAVE_GETSUBOPT=1;
5 kx HAVE_GRANTPT=1;
5 kx HAVE_INITSTATE=1;
5 kx HAVE_DECL_INITSTATE=1;
5 kx HAVE_MBTOWC=1;
5 kx HAVE_MKDTEMP=1;
5 kx HAVE_MKOSTEMP=1;
5 kx HAVE_MKOSTEMPS=1;
5 kx HAVE_MKSTEMP=1;
5 kx HAVE_MKSTEMPS=1;
5 kx HAVE_POSIX_OPENPT=1;
5 kx HAVE_PTSNAME=1;
5 kx HAVE_PTSNAME_R=1;
5 kx HAVE_QSORT_R=1;
5 kx HAVE_RANDOM=1;
5 kx HAVE_RANDOM_H=1;
5 kx HAVE_RANDOM_R=1;
5 kx HAVE_REALLOCARRAY=1;
5 kx HAVE_REALPATH=1;
5 kx HAVE_RPMATCH=1;
5 kx HAVE_SECURE_GETENV=1;
5 kx HAVE_SETENV=1;
5 kx HAVE_DECL_SETENV=1;
5 kx HAVE_SETSTATE=1;
5 kx HAVE_DECL_SETSTATE=1;
5 kx HAVE_STRTOD=1;
5 kx HAVE_STRTOLD=1;
5 kx HAVE_STRTOLL=1;
5 kx HAVE_STRTOULL=1;
5 kx HAVE_STRUCT_RANDOM_DATA=1;
5 kx HAVE_SYS_LOADAVG_H=0;
5 kx HAVE_UNLOCKPT=1;
5 kx HAVE_DECL_UNSETENV=1;
5 kx REPLACE_CALLOC=0;
5 kx REPLACE_CANONICALIZE_FILE_NAME=0;
5 kx REPLACE_INITSTATE=0;
5 kx REPLACE_MALLOC=0;
5 kx REPLACE_MBTOWC=0;
5 kx REPLACE_MKSTEMP=0;
5 kx REPLACE_PTSNAME=0;
5 kx REPLACE_PTSNAME_R=0;
5 kx REPLACE_PUTENV=0;
5 kx REPLACE_QSORT_R=0;
5 kx REPLACE_RANDOM=0;
5 kx REPLACE_RANDOM_R=0;
5 kx REPLACE_REALLOC=0;
5 kx REPLACE_REALPATH=0;
5 kx REPLACE_SETENV=0;
5 kx REPLACE_SETSTATE=0;
5 kx REPLACE_STRTOD=0;
5 kx REPLACE_STRTOLD=0;
5 kx REPLACE_UNSETENV=0;
5 kx REPLACE_WCTOMB=0;
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
5 kx $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
5 kx if ${gl_cv_func_malloc_posix+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if defined _WIN32 && ! defined __CYGWIN__
5 kx choke me
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_malloc_posix=yes
5 kx else
5 kx gl_cv_func_malloc_posix=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
5 kx $as_echo "$gl_cv_func_malloc_posix" >&6; }
5 kx
5 kx
5 kx GNULIB_PSELECT=0;
5 kx GNULIB_SELECT=0;
5 kx HAVE_PSELECT=1;
5 kx REPLACE_PSELECT=0;
5 kx REPLACE_SELECT=0;
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
5 kx $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
5 kx if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/select.h>
5 kx int
5 kx main ()
5 kx {
5 kx struct timeval b;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_sys_select_h_selfcontained=yes
5 kx else
5 kx gl_cv_header_sys_select_h_selfcontained=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx if test $gl_cv_header_sys_select_h_selfcontained = yes; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/select.h>
5 kx int
5 kx main ()
5 kx {
5 kx int memset; int bzero;
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/select.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #undef memset
5 kx #define memset nonexistent_memset
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx void *memset (void *, int, unsigned long);
5 kx #undef bzero
5 kx #define bzero nonexistent_bzero
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx void bzero (void *, unsigned long);
5 kx fd_set fds;
5 kx FD_ZERO (&fds);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx else
5 kx gl_cv_header_sys_select_h_selfcontained=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
5 kx $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_select_h='<'sys/select.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
5 kx if ${gl_cv_next_sys_select_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_select_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/select.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/select.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_select_h
5 kx gl_cv_next_sys_select_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_select_h='<'sys/select.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
5 kx $as_echo "$gl_cv_next_sys_select_h" >&6; }
5 kx fi
5 kx NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/select.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_select_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_select_h = yes; then
5 kx HAVE_SYS_SELECT_H=1
5 kx else
5 kx HAVE_SYS_SELECT_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5 kx $as_echo_n "checking for inline... " >&6; }
5 kx if ${ac_cv_c_inline+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_c_inline=no
5 kx for ac_kw in inline __inline__ __inline; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifndef __cplusplus
5 kx typedef int foo_t;
5 kx static $ac_kw foo_t static_foo () {return 0; }
5 kx $ac_kw foo_t foo () {return 0; }
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_inline=$ac_kw
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test "$ac_cv_c_inline" != no && break
5 kx done
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5 kx $as_echo "$ac_cv_c_inline" >&6; }
5 kx
5 kx case $ac_cv_c_inline in
5 kx inline | yes) ;;
5 kx *)
5 kx case $ac_cv_c_inline in
5 kx no) ac_val=;;
5 kx *) ac_val=$ac_cv_c_inline;;
5 kx esac
5 kx cat >>confdefs.h <<_ACEOF
5 kx #ifndef __cplusplus
5 kx #define inline $ac_val
5 kx #endif
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx LIBSOCKET=
5 kx if test $HAVE_WINSOCK2_H = 1; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
5 kx $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
5 kx if ${gl_cv_func_wsastartup+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS -lws2_32"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef HAVE_WINSOCK2_H
5 kx # include <winsock2.h>
5 kx #endif
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx WORD wVersionRequested = MAKEWORD(1, 1);
5 kx WSADATA wsaData;
5 kx int err = WSAStartup(wVersionRequested, &wsaData);
5 kx WSACleanup ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_func_wsastartup=yes
5 kx else
5 kx gl_cv_func_wsastartup=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gl_save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
5 kx $as_echo "$gl_cv_func_wsastartup" >&6; }
5 kx if test "$gl_cv_func_wsastartup" = "yes"; then
5 kx
5 kx $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
5 kx
5 kx LIBSOCKET='-lws2_32'
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
5 kx $as_echo_n "checking for library containing setsockopt... " >&6; }
5 kx if ${gl_cv_lib_socket+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_cv_lib_socket=
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx char setsockopt();
5 kx int
5 kx main ()
5 kx {
5 kx setsockopt();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx else
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$gl_save_LIBS -lsocket"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx char setsockopt();
5 kx int
5 kx main ()
5 kx {
5 kx setsockopt();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_lib_socket="-lsocket"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$gl_cv_lib_socket"; then
5 kx LIBS="$gl_save_LIBS -lnetwork"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx char setsockopt();
5 kx int
5 kx main ()
5 kx {
5 kx setsockopt();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_lib_socket="-lnetwork"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$gl_cv_lib_socket"; then
5 kx LIBS="$gl_save_LIBS -lnet"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx char setsockopt();
5 kx int
5 kx main ()
5 kx {
5 kx setsockopt();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_lib_socket="-lnet"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx fi
5 kx LIBS="$gl_save_LIBS"
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test -z "$gl_cv_lib_socket"; then
5 kx gl_cv_lib_socket="none needed"
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
5 kx $as_echo "$gl_cv_lib_socket" >&6; }
5 kx if test "$gl_cv_lib_socket" != "none needed"; then
5 kx LIBSOCKET="$gl_cv_lib_socket"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx :
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx REPLACE_SELECT=1
5 kx else
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
5 kx $as_echo_n "checking whether select supports a 0 argument... " >&6; }
5 kx if ${gl_cv_func_select_supports0+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx # Guess no on Interix.
5 kx interix*) gl_cv_func_select_supports0="guessing no";;
5 kx # Guess yes otherwise.
5 kx *) gl_cv_func_select_supports0="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/time.h>
5 kx #if HAVE_SYS_SELECT_H
5 kx #include <sys/select.h>
5 kx #endif
5 kx int main ()
5 kx {
5 kx struct timeval timeout;
5 kx timeout.tv_sec = 0;
5 kx timeout.tv_usec = 5;
5 kx return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_select_supports0=yes
5 kx else
5 kx gl_cv_func_select_supports0=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
5 kx $as_echo "$gl_cv_func_select_supports0" >&6; }
5 kx case "$gl_cv_func_select_supports0" in
5 kx *yes) ;;
5 kx *) REPLACE_SELECT=1 ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
5 kx $as_echo_n "checking whether select detects invalid fds... " >&6; }
5 kx if ${gl_cv_func_select_detects_ebadf+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx # Guess yes on Linux systems.
5 kx linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/time.h>
5 kx #if HAVE_SYS_SELECT_H
5 kx # include <sys/select.h>
5 kx #endif
5 kx #include <unistd.h>
5 kx #include <errno.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx fd_set set;
5 kx dup2(0, 16);
5 kx FD_ZERO(&set);
5 kx FD_SET(16, &set);
5 kx close(16);
5 kx struct timeval timeout;
5 kx timeout.tv_sec = 0;
5 kx timeout.tv_usec = 5;
5 kx return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_select_detects_ebadf=yes
5 kx else
5 kx gl_cv_func_select_detects_ebadf=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
5 kx $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
5 kx case $gl_cv_func_select_detects_ebadf in
5 kx *yes) ;;
5 kx *) REPLACE_SELECT=1 ;;
5 kx esac
5 kx fi
5 kx
5 kx LIB_SELECT="$LIBSOCKET"
5 kx if test $REPLACE_SELECT = 1; then
5 kx case "$host_os" in
5 kx mingw*)
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define WIN32_LEAN_AND_MEAN
5 kx #include <windows.h>
5 kx int
5 kx main ()
5 kx {
5 kx MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx else
5 kx LIB_SELECT="$LIB_SELECT -luser32"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_STRERROR_R $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_have_decl_strerror_r = no; then
5 kx HAVE_DECL_STRERROR_R=0
5 kx fi
5 kx
5 kx if test $ac_cv_func_strerror_r = yes; then
5 kx if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
5 kx if test $gl_cv_func_strerror_r_posix_signature = yes; then
5 kx case "$gl_cv_func_strerror_r_works" in
5 kx *no) REPLACE_STRERROR_R=1 ;;
5 kx esac
5 kx else
5 kx REPLACE_STRERROR_R=1
5 kx fi
5 kx else
5 kx REPLACE_STRERROR_R=1
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_PTHREAD_THREAD=0;
5 kx GNULIB_PTHREAD_ONCE=0;
5 kx GNULIB_PTHREAD_MUTEX=0;
5 kx GNULIB_PTHREAD_RWLOCK=0;
5 kx GNULIB_PTHREAD_COND=0;
5 kx GNULIB_PTHREAD_TSS=0;
5 kx GNULIB_PTHREAD_SPIN=0;
5 kx GNULIB_PTHREAD_MUTEX_TIMEDLOCK=0;
5 kx HAVE_PTHREAD_T=1;
5 kx HAVE_PTHREAD_SPINLOCK_T=1;
5 kx HAVE_PTHREAD_CREATE_DETACHED=1;
5 kx HAVE_PTHREAD_MUTEX_RECURSIVE=1;
5 kx HAVE_PTHREAD_MUTEX_ROBUST=1;
5 kx HAVE_PTHREAD_PROCESS_SHARED=1;
5 kx HAVE_PTHREAD_CREATE=1;
5 kx HAVE_PTHREAD_ATTR_INIT=1;
5 kx HAVE_PTHREAD_ATTR_GETDETACHSTATE=1;
5 kx HAVE_PTHREAD_ATTR_SETDETACHSTATE=1;
5 kx HAVE_PTHREAD_ATTR_DESTROY=1;
5 kx HAVE_PTHREAD_SELF=1;
5 kx HAVE_PTHREAD_EQUAL=1;
5 kx HAVE_PTHREAD_DETACH=1;
5 kx HAVE_PTHREAD_JOIN=1;
5 kx HAVE_PTHREAD_EXIT=1;
5 kx HAVE_PTHREAD_ONCE=1;
5 kx HAVE_PTHREAD_MUTEX_INIT=1;
5 kx HAVE_PTHREAD_MUTEXATTR_INIT=1;
5 kx HAVE_PTHREAD_MUTEXATTR_GETTYPE=1;
5 kx HAVE_PTHREAD_MUTEXATTR_SETTYPE=1;
5 kx HAVE_PTHREAD_MUTEXATTR_GETROBUST=1;
5 kx HAVE_PTHREAD_MUTEXATTR_SETROBUST=1;
5 kx HAVE_PTHREAD_MUTEXATTR_DESTROY=1;
5 kx HAVE_PTHREAD_MUTEX_LOCK=1;
5 kx HAVE_PTHREAD_MUTEX_TRYLOCK=1;
5 kx HAVE_PTHREAD_MUTEX_TIMEDLOCK=1;
5 kx HAVE_PTHREAD_MUTEX_UNLOCK=1;
5 kx HAVE_PTHREAD_MUTEX_DESTROY=1;
5 kx HAVE_PTHREAD_RWLOCK_INIT=1;
5 kx HAVE_PTHREAD_RWLOCKATTR_INIT=1;
5 kx HAVE_PTHREAD_RWLOCKATTR_DESTROY=1;
5 kx HAVE_PTHREAD_RWLOCK_RDLOCK=1;
5 kx HAVE_PTHREAD_RWLOCK_WRLOCK=1;
5 kx HAVE_PTHREAD_RWLOCK_TRYRDLOCK=1;
5 kx HAVE_PTHREAD_RWLOCK_TRYWRLOCK=1;
5 kx HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK=1;
5 kx HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK=1;
5 kx HAVE_PTHREAD_RWLOCK_UNLOCK=1;
5 kx HAVE_PTHREAD_RWLOCK_DESTROY=1;
5 kx HAVE_PTHREAD_COND_INIT=1;
5 kx HAVE_PTHREAD_CONDATTR_INIT=1;
5 kx HAVE_PTHREAD_CONDATTR_DESTROY=1;
5 kx HAVE_PTHREAD_COND_WAIT=1;
5 kx HAVE_PTHREAD_COND_TIMEDWAIT=1;
5 kx HAVE_PTHREAD_COND_SIGNAL=1;
5 kx HAVE_PTHREAD_COND_BROADCAST=1;
5 kx HAVE_PTHREAD_COND_DESTROY=1;
5 kx HAVE_PTHREAD_KEY_CREATE=1;
5 kx HAVE_PTHREAD_SETSPECIFIC=1;
5 kx HAVE_PTHREAD_GETSPECIFIC=1;
5 kx HAVE_PTHREAD_KEY_DELETE=1;
5 kx HAVE_PTHREAD_SPIN_INIT=1;
5 kx HAVE_PTHREAD_SPIN_LOCK=1;
5 kx HAVE_PTHREAD_SPIN_TRYLOCK=1;
5 kx HAVE_PTHREAD_SPIN_UNLOCK=1;
5 kx HAVE_PTHREAD_SPIN_DESTROY=1;
5 kx REPLACE_PTHREAD_CREATE=0;
5 kx REPLACE_PTHREAD_ATTR_INIT=0;
5 kx REPLACE_PTHREAD_ATTR_GETDETACHSTATE=0;
5 kx REPLACE_PTHREAD_ATTR_SETDETACHSTATE=0;
5 kx REPLACE_PTHREAD_ATTR_DESTROY=0;
5 kx REPLACE_PTHREAD_SELF=0;
5 kx REPLACE_PTHREAD_EQUAL=0;
5 kx REPLACE_PTHREAD_DETACH=0;
5 kx REPLACE_PTHREAD_JOIN=0;
5 kx REPLACE_PTHREAD_EXIT=0;
5 kx REPLACE_PTHREAD_ONCE=0;
5 kx REPLACE_PTHREAD_MUTEX_INIT=0;
5 kx REPLACE_PTHREAD_MUTEXATTR_INIT=0;
5 kx REPLACE_PTHREAD_MUTEXATTR_GETTYPE=0;
5 kx REPLACE_PTHREAD_MUTEXATTR_SETTYPE=0;
5 kx REPLACE_PTHREAD_MUTEXATTR_GETROBUST=0;
5 kx REPLACE_PTHREAD_MUTEXATTR_SETROBUST=0;
5 kx REPLACE_PTHREAD_MUTEXATTR_DESTROY=0;
5 kx REPLACE_PTHREAD_MUTEX_LOCK=0;
5 kx REPLACE_PTHREAD_MUTEX_TRYLOCK=0;
5 kx REPLACE_PTHREAD_MUTEX_TIMEDLOCK=0;
5 kx REPLACE_PTHREAD_MUTEX_UNLOCK=0;
5 kx REPLACE_PTHREAD_MUTEX_DESTROY=0;
5 kx REPLACE_PTHREAD_RWLOCK_INIT=0;
5 kx REPLACE_PTHREAD_RWLOCKATTR_INIT=0;
5 kx REPLACE_PTHREAD_RWLOCKATTR_DESTROY=0;
5 kx REPLACE_PTHREAD_RWLOCK_RDLOCK=0;
5 kx REPLACE_PTHREAD_RWLOCK_WRLOCK=0;
5 kx REPLACE_PTHREAD_RWLOCK_TRYRDLOCK=0;
5 kx REPLACE_PTHREAD_RWLOCK_TRYWRLOCK=0;
5 kx REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK=0;
5 kx REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK=0;
5 kx REPLACE_PTHREAD_RWLOCK_UNLOCK=0;
5 kx REPLACE_PTHREAD_RWLOCK_DESTROY=0;
5 kx REPLACE_PTHREAD_COND_INIT=0;
5 kx REPLACE_PTHREAD_CONDATTR_INIT=0;
5 kx REPLACE_PTHREAD_CONDATTR_DESTROY=0;
5 kx REPLACE_PTHREAD_COND_WAIT=0;
5 kx REPLACE_PTHREAD_COND_TIMEDWAIT=0;
5 kx REPLACE_PTHREAD_COND_SIGNAL=0;
5 kx REPLACE_PTHREAD_COND_BROADCAST=0;
5 kx REPLACE_PTHREAD_COND_DESTROY=0;
5 kx REPLACE_PTHREAD_KEY_CREATE=0;
5 kx REPLACE_PTHREAD_SETSPECIFIC=0;
5 kx REPLACE_PTHREAD_GETSPECIFIC=0;
5 kx REPLACE_PTHREAD_KEY_DELETE=0;
5 kx REPLACE_PTHREAD_SPIN_INIT=0;
5 kx REPLACE_PTHREAD_SPIN_LOCK=0;
5 kx REPLACE_PTHREAD_SPIN_TRYLOCK=0;
5 kx REPLACE_PTHREAD_SPIN_UNLOCK=0;
5 kx REPLACE_PTHREAD_SPIN_DESTROY=0;
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -z "$gl_pthreadlib_body_done"; then
5 kx gl_pthread_api=no
5 kx LIBPTHREAD=
5 kx LIBPMULTITHREAD=
5 kx # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
5 kx # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
5 kx ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_pthread_h" = xyes; then :
5 kx gl_have_pthread_h=yes
5 kx else
5 kx gl_have_pthread_h=no
5 kx fi
5 kx
5 kx
5 kx if test "$gl_have_pthread_h" = yes; then
5 kx # Other possible tests:
5 kx # -lpthreads (FSU threads, PCthreads)
5 kx # -lgthreads
5 kx # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
5 kx # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
5 kx # the second one only in libpthread, and lock.c needs it.
5 kx #
5 kx # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
5 kx # needs -pthread for some reason. See:
5 kx # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
5 kx save_LIBS=$LIBS
5 kx for gl_pthread in '' '-pthread'; do
5 kx LIBS="$LIBS $gl_pthread"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx pthread_mutex_t m;
5 kx pthread_mutexattr_t ma;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx pthread_mutex_lock (&m);
5 kx pthread_mutexattr_init (&ma);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_pthread_api=yes
5 kx LIBPTHREAD=$gl_pthread
5 kx LIBPMULTITHREAD=$gl_pthread
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$save_LIBS
5 kx test $gl_pthread_api = yes && break
5 kx done
5 kx
5 kx # Test for libpthread by looking for pthread_kill. (Not pthread_self,
5 kx # since it is defined as a macro on OSF/1.)
5 kx if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
5 kx # The program links fine without libpthread. But it may actually
5 kx # need to link with libpthread in order to create multiple threads.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
5 kx $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
5 kx if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lpthread $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_kill ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_kill ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_pthread_pthread_kill=yes
5 kx else
5 kx ac_cv_lib_pthread_pthread_kill=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
5 kx $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
5 kx if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
5 kx LIBPMULTITHREAD=-lpthread
5 kx # On Solaris and HP-UX, most pthread functions exist also in libc.
5 kx # Therefore pthread_in_use() needs to actually try to create a
5 kx # thread: pthread_create from libc will fail, whereas
5 kx # pthread_create will actually create a thread.
5 kx # On Solaris 10 or newer, this test is no longer needed, because
5 kx # libc contains the fully functional pthread functions.
5 kx case "$host_os" in
5 kx solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
5 kx
5 kx $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
5 kx
5 kx esac
5 kx
5 kx fi
5 kx
5 kx elif test $gl_pthread_api != yes; then
5 kx # Some library is needed. Try libpthread and libc_r.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
5 kx $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
5 kx if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lpthread $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_kill ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_kill ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_pthread_pthread_kill=yes
5 kx else
5 kx ac_cv_lib_pthread_pthread_kill=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
5 kx $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
5 kx if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
5 kx gl_pthread_api=yes
5 kx LIBPTHREAD=-lpthread
5 kx LIBPMULTITHREAD=-lpthread
5 kx fi
5 kx
5 kx if test $gl_pthread_api != yes; then
5 kx # For FreeBSD 4.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
5 kx $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
5 kx if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lc_r $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char pthread_kill ();
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_kill ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_c_r_pthread_kill=yes
5 kx else
5 kx ac_cv_lib_c_r_pthread_kill=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
5 kx $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
5 kx if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
5 kx gl_pthread_api=yes
5 kx LIBPTHREAD=-lc_r
5 kx LIBPMULTITHREAD=-lc_r
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
5 kx $as_echo_n "checking whether POSIX threads API is available... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
5 kx $as_echo "$gl_pthread_api" >&6; }
5 kx
5 kx
5 kx if test $gl_pthread_api = yes; then
5 kx
5 kx $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sched.h>
5 kx int
5 kx main ()
5 kx {
5 kx sched_yield ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx LIB_SCHED_YIELD=
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
5 kx $as_echo_n "checking for sched_yield in -lrt... " >&6; }
5 kx if ${ac_cv_lib_rt_sched_yield+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lrt $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char sched_yield ();
5 kx int
5 kx main ()
5 kx {
5 kx return sched_yield ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_rt_sched_yield=yes
5 kx else
5 kx ac_cv_lib_rt_sched_yield=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
5 kx $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
5 kx if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
5 kx LIB_SCHED_YIELD=-lrt
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
5 kx $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
5 kx if ${ac_cv_lib_posix4_sched_yield+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_check_lib_save_LIBS=$LIBS
5 kx LIBS="-lposix4 $LIBS"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char sched_yield ();
5 kx int
5 kx main ()
5 kx {
5 kx return sched_yield ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_posix4_sched_yield=yes
5 kx else
5 kx ac_cv_lib_posix4_sched_yield=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS=$ac_check_lib_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
5 kx $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
5 kx if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
5 kx LIB_SCHED_YIELD=-lposix4
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx
5 kx gl_pthreadlib_body_done=done
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_PTHREAD_SIGMASK=0;
5 kx GNULIB_RAISE=0;
5 kx GNULIB_SIGNAL_H_SIGPIPE=0;
5 kx GNULIB_SIGPROCMASK=0;
5 kx GNULIB_SIGACTION=0;
5 kx HAVE_POSIX_SIGNALBLOCKING=1;
5 kx HAVE_PTHREAD_SIGMASK=1;
5 kx HAVE_RAISE=1;
5 kx HAVE_SIGSET_T=1;
5 kx HAVE_SIGINFO_T=1;
5 kx HAVE_SIGACTION=1;
5 kx HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
5 kx
5 kx HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
5 kx
5 kx HAVE_SIGHANDLER_T=1;
5 kx REPLACE_PTHREAD_SIGMASK=0;
5 kx REPLACE_RAISE=0;
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
5 kx #include <signal.h>
5 kx /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
5 kx #include <sys/types.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_sigset_t" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SIGSET_T 1
5 kx _ACEOF
5 kx
5 kx gl_cv_type_sigset_t=yes
5 kx else
5 kx gl_cv_type_sigset_t=no
5 kx fi
5 kx
5 kx if test $gl_cv_type_sigset_t != yes; then
5 kx HAVE_SIGSET_T=0
5 kx fi
5 kx
5 kx
5 kx GNULIB_SCHED_YIELD=0;
5 kx HAVE_SCHED_YIELD=1;
5 kx REPLACE_SCHED_YIELD=0;
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_setenv" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_SETENV $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_have_decl_setenv = no; then
5 kx HAVE_DECL_SETENV=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_header in search.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_search_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SEARCH_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx for ac_func in tsearch
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
5 kx if test "x$ac_cv_func_tsearch" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_TSEARCH 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5 kx $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5 kx if ${ac_cv_type_uid_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "uid_t" >/dev/null 2>&1; then :
5 kx ac_cv_type_uid_t=yes
5 kx else
5 kx ac_cv_type_uid_t=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5 kx $as_echo "$ac_cv_type_uid_t" >&6; }
5 kx if test $ac_cv_type_uid_t = no; then
5 kx
5 kx $as_echo "#define uid_t int" >>confdefs.h
5 kx
5 kx
5 kx $as_echo "#define gid_t int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_UNSETENV $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_BTOWC=0;
5 kx GNULIB_WCTOB=0;
5 kx GNULIB_MBSINIT=0;
5 kx GNULIB_MBRTOWC=0;
5 kx GNULIB_MBRLEN=0;
5 kx GNULIB_MBSRTOWCS=0;
5 kx GNULIB_MBSNRTOWCS=0;
5 kx GNULIB_WCRTOMB=0;
5 kx GNULIB_WCSRTOMBS=0;
5 kx GNULIB_WCSNRTOMBS=0;
5 kx GNULIB_WCWIDTH=0;
5 kx GNULIB_WMEMCHR=0;
5 kx GNULIB_WMEMCMP=0;
5 kx GNULIB_WMEMCPY=0;
5 kx GNULIB_WMEMMOVE=0;
5 kx GNULIB_WMEMPCPY=0;
5 kx GNULIB_WMEMSET=0;
5 kx GNULIB_WCSLEN=0;
5 kx GNULIB_WCSNLEN=0;
5 kx GNULIB_WCSCPY=0;
5 kx GNULIB_WCPCPY=0;
5 kx GNULIB_WCSNCPY=0;
5 kx GNULIB_WCPNCPY=0;
5 kx GNULIB_WCSCAT=0;
5 kx GNULIB_WCSNCAT=0;
5 kx GNULIB_WCSCMP=0;
5 kx GNULIB_WCSNCMP=0;
5 kx GNULIB_WCSCASECMP=0;
5 kx GNULIB_WCSNCASECMP=0;
5 kx GNULIB_WCSCOLL=0;
5 kx GNULIB_WCSXFRM=0;
5 kx GNULIB_WCSDUP=0;
5 kx GNULIB_WCSCHR=0;
5 kx GNULIB_WCSRCHR=0;
5 kx GNULIB_WCSCSPN=0;
5 kx GNULIB_WCSSPN=0;
5 kx GNULIB_WCSPBRK=0;
5 kx GNULIB_WCSSTR=0;
5 kx GNULIB_WCSTOK=0;
5 kx GNULIB_WCSWIDTH=0;
5 kx GNULIB_WCSFTIME=0;
5 kx HAVE_BTOWC=1;
5 kx HAVE_MBSINIT=1;
5 kx HAVE_MBRTOWC=1;
5 kx HAVE_MBRLEN=1;
5 kx HAVE_MBSRTOWCS=1;
5 kx HAVE_MBSNRTOWCS=1;
5 kx HAVE_WCRTOMB=1;
5 kx HAVE_WCSRTOMBS=1;
5 kx HAVE_WCSNRTOMBS=1;
5 kx HAVE_WMEMCHR=1;
5 kx HAVE_WMEMCMP=1;
5 kx HAVE_WMEMCPY=1;
5 kx HAVE_WMEMMOVE=1;
5 kx HAVE_WMEMPCPY=1;
5 kx HAVE_WMEMSET=1;
5 kx HAVE_WCSLEN=1;
5 kx HAVE_WCSNLEN=1;
5 kx HAVE_WCSCPY=1;
5 kx HAVE_WCPCPY=1;
5 kx HAVE_WCSNCPY=1;
5 kx HAVE_WCPNCPY=1;
5 kx HAVE_WCSCAT=1;
5 kx HAVE_WCSNCAT=1;
5 kx HAVE_WCSCMP=1;
5 kx HAVE_WCSNCMP=1;
5 kx HAVE_WCSCASECMP=1;
5 kx HAVE_WCSNCASECMP=1;
5 kx HAVE_WCSCOLL=1;
5 kx HAVE_WCSXFRM=1;
5 kx HAVE_WCSDUP=1;
5 kx HAVE_WCSCHR=1;
5 kx HAVE_WCSRCHR=1;
5 kx HAVE_WCSCSPN=1;
5 kx HAVE_WCSSPN=1;
5 kx HAVE_WCSPBRK=1;
5 kx HAVE_WCSSTR=1;
5 kx HAVE_WCSTOK=1;
5 kx HAVE_WCSWIDTH=1;
5 kx HAVE_WCSFTIME=1;
5 kx HAVE_DECL_WCTOB=1;
5 kx HAVE_DECL_WCWIDTH=1;
5 kx REPLACE_MBSTATE_T=0;
5 kx REPLACE_BTOWC=0;
5 kx REPLACE_WCTOB=0;
5 kx REPLACE_MBSINIT=0;
5 kx REPLACE_MBRTOWC=0;
5 kx REPLACE_MBRLEN=0;
5 kx REPLACE_MBSRTOWCS=0;
5 kx REPLACE_MBSNRTOWCS=0;
5 kx REPLACE_WCRTOMB=0;
5 kx REPLACE_WCSRTOMBS=0;
5 kx REPLACE_WCSNRTOMBS=0;
5 kx REPLACE_WCWIDTH=0;
5 kx REPLACE_WCSWIDTH=0;
5 kx REPLACE_WCSFTIME=0;
5 kx REPLACE_WCSTOK=0;
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5 kx $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5 kx if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_header_wchar_h_correct_inline=yes
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define wcstod renamed_wcstod
5 kx /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5 kx <wchar.h>.
5 kx BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <stdio.h>
5 kx #include <time.h>
5 kx #include <wchar.h>
5 kx extern int zero (void);
5 kx int main () { return zero(); }
5 kx
5 kx _ACEOF
5 kx save_ac_compile="$ac_compile"
5 kx ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
5 kx if echo '#include "conftest.c"' >conftest1.c &&
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define wcstod renamed_wcstod
5 kx /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5 kx <wchar.h>.
5 kx BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5 kx included before <wchar.h>. */
5 kx #include <stddef.h>
5 kx #include <stdio.h>
5 kx #include <time.h>
5 kx #include <wchar.h>
5 kx int zero (void) { return 0; }
5 kx
5 kx _ACEOF
5 kx ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
5 kx if echo '#include "conftest.c"' >conftest2.c &&
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5 kx (eval $ac_compile) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5 kx :
5 kx else
5 kx gl_cv_header_wchar_h_correct_inline=no
5 kx fi
5 kx fi
5 kx fi
5 kx ac_compile="$save_ac_compile"
5 kx rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5 kx $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5 kx if test $gl_cv_header_wchar_h_correct_inline = no; then
5 kx as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5 kx This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5 kx C99 mode. You have four options:
5 kx - Add the flag -fgnu89-inline to CC and reconfigure, or
5 kx - Fix your include files, using parts of
5 kx <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5 kx - Use a gcc version older than 4.3, or
5 kx - Don't use the flags -std=c99 or -std=gnu99.
5 kx Configuration aborted." "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_crtdefs_h = yes; then
5 kx HAVE_CRTDEFS_H=1
5 kx else
5 kx HAVE_CRTDEFS_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_threads_api = posix; then
5 kx YIELD_LIB="$LIB_SCHED_YIELD"
5 kx else
5 kx YIELD_LIB=
5 kx fi
5 kx
5 kx
5 kx
5 kx if true; then
5 kx GL_COND_LIBTOOL_TRUE=
5 kx GL_COND_LIBTOOL_FALSE='#'
5 kx else
5 kx GL_COND_LIBTOOL_TRUE='#'
5 kx GL_COND_LIBTOOL_FALSE=
5 kx fi
5 kx
5 kx gl_cond_libtool=true
5 kx gl_m4_base='gl/m4'
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_source_base='gl'
5 kx
5 kx
5 kx if test $ac_cv_func_alloca_works = no; then
5 kx :
5 kx fi
5 kx
5 kx # Define an additional variable used in the Makefile substitution.
5 kx if test $ac_cv_working_alloca_h = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
5 kx $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
5 kx if ${gl_cv_rpl_alloca+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #if defined __GNUC__ || defined _AIX || defined _MSC_VER
5 kx Need own alloca
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Need own alloca" >/dev/null 2>&1; then :
5 kx gl_cv_rpl_alloca=yes
5 kx else
5 kx gl_cv_rpl_alloca=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
5 kx $as_echo "$gl_cv_rpl_alloca" >&6; }
5 kx if test $gl_cv_rpl_alloca = yes; then
5 kx
5 kx $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5 kx
5 kx ALLOCA_H=alloca.h
5 kx else
5 kx ALLOCA_H=
5 kx fi
5 kx else
5 kx ALLOCA_H=alloca.h
5 kx fi
5 kx
5 kx if test -n "$ALLOCA_H"; then
5 kx GL_GENERATE_ALLOCA_H_TRUE=
5 kx GL_GENERATE_ALLOCA_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_ALLOCA_H_TRUE='#'
5 kx GL_GENERATE_ALLOCA_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test $ac_cv_working_alloca_h = yes; then
5 kx HAVE_ALLOCA_H=1
5 kx else
5 kx HAVE_ALLOCA_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx REPLACE_CLOSE=1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
5 kx REPLACE_CLOSE=1
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $REPLACE_CLOSE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_CLOSE=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx ac_config_files="$ac_config_files csharpcomp.sh:build-aux/csharpcomp.sh.in"
5 kx
5 kx # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments.
5 kx ac_config_files="$ac_config_files csharpexec.sh:build-aux/csharpexec.sh.in"
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
5 kx $as_echo_n "checking whether // is distinct from /... " >&6; }
5 kx if ${gl_cv_double_slash_root+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test x"$cross_compiling" = xyes ; then
5 kx # When cross-compiling, there is no way to tell whether // is special
5 kx # short of a list of hosts. However, the only known hosts to date
5 kx # that have a distinct // are Apollo DomainOS (too old to port to),
5 kx # Cygwin, and z/OS. If anyone knows of another system for which // has
5 kx # special semantics and is distinct from /, please report it to
5 kx # <bug-gnulib@gnu.org>.
5 kx case $host in
5 kx *-cygwin | i370-ibm-openedition)
5 kx gl_cv_double_slash_root=yes ;;
5 kx *)
5 kx # Be optimistic and assume that / and // are the same when we
5 kx # don't know.
5 kx gl_cv_double_slash_root='unknown, assuming no' ;;
5 kx esac
5 kx else
5 kx set x `ls -di / // 2>/dev/null`
5 kx if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
5 kx gl_cv_double_slash_root=no
5 kx else
5 kx gl_cv_double_slash_root=yes
5 kx fi
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
5 kx $as_echo "$gl_cv_double_slash_root" >&6; }
5 kx if test "$gl_cv_double_slash_root" = yes; then
5 kx
5 kx $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
5 kx $as_echo_n "checking whether dup2 works... " >&6; }
5 kx if ${gl_cv_func_dup2_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx mingw*) # on this platform, dup2 always returns 0 for success
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx aix* | freebsd*)
5 kx # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
5 kx # not EBADF.
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx *-android*) # implemented using dup3(), which fails if oldfd == newfd
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx *) gl_cv_func_dup2_works="guessing yes" ;;
5 kx esac
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #include <fcntl.h>
5 kx #include <limits.h>
5 kx #include <sys/resource.h>
5 kx #include <unistd.h>
5 kx #ifndef RLIM_SAVED_CUR
5 kx # define RLIM_SAVED_CUR RLIM_INFINITY
5 kx #endif
5 kx #ifndef RLIM_SAVED_MAX
5 kx # define RLIM_SAVED_MAX RLIM_INFINITY
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx int bad_fd = INT_MAX;
5 kx struct rlimit rlim;
5 kx if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
5 kx && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
5 kx && rlim.rlim_cur != RLIM_INFINITY
5 kx && rlim.rlim_cur != RLIM_SAVED_MAX
5 kx && rlim.rlim_cur != RLIM_SAVED_CUR)
5 kx bad_fd = rlim.rlim_cur;
5 kx #ifdef FD_CLOEXEC
5 kx if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
5 kx result |= 1;
5 kx #endif
5 kx if (dup2 (1, 1) != 1)
5 kx result |= 2;
5 kx #ifdef FD_CLOEXEC
5 kx if (fcntl (1, F_GETFD) != FD_CLOEXEC)
5 kx result |= 4;
5 kx #endif
5 kx close (0);
5 kx if (dup2 (0, 0) != -1)
5 kx result |= 8;
5 kx /* Many gnulib modules require POSIX conformance of EBADF. */
5 kx if (dup2 (2, bad_fd) == -1 && errno != EBADF)
5 kx result |= 16;
5 kx /* Flush out some cygwin core dumps. */
5 kx if (dup2 (2, -1) != -1 || errno != EBADF)
5 kx result |= 32;
5 kx dup2 (2, 255);
5 kx dup2 (2, 256);
5 kx /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
5 kx {
5 kx int fd = open (".", O_RDONLY);
5 kx if (fd == -1)
5 kx result |= 64;
5 kx else if (dup2 (fd, fd + 1) == -1)
5 kx result |= 128;
5 kx close (fd);
5 kx }
5 kx return result;
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_dup2_works=yes
5 kx else
5 kx gl_cv_func_dup2_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
5 kx $as_echo "$gl_cv_func_dup2_works" >&6; }
5 kx case "$gl_cv_func_dup2_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_DUP2=1
5 kx for ac_func in setdtablesize
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
5 kx if test "x$ac_cv_func_setdtablesize" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SETDTABLESIZE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx if test $REPLACE_DUP2 = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_DUP2=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
5 kx $as_echo_n "checking for error_at_line... " >&6; }
5 kx if ${ac_cv_lib_error_at_line+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <error.h>
5 kx int
5 kx main ()
5 kx {
5 kx error_at_line (0, 0, "", 0, "an error occurred");
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_lib_error_at_line=yes
5 kx else
5 kx ac_cv_lib_error_at_line=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
5 kx $as_echo "$ac_cv_lib_error_at_line" >&6; }
5 kx
5 kx if test $ac_cv_lib_error_at_line = no; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
5 kx
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
5 kx
5 kx
5 kx
5 kx XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_fcntl = no; then
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_fcntl = no; then
5 kx HAVE_FCNTL=0
5 kx else
5 kx REPLACE_FCNTL=1
5 kx fi
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
5 kx $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
5 kx if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case $host_os in
5 kx aix* | cygwin* | haiku*)
5 kx gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
5 kx *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
5 kx esac
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <errno.h>
5 kx #include <fcntl.h>
5 kx #include <limits.h>
5 kx #include <sys/resource.h>
5 kx #include <unistd.h>
5 kx #ifndef RLIM_SAVED_CUR
5 kx # define RLIM_SAVED_CUR RLIM_INFINITY
5 kx #endif
5 kx #ifndef RLIM_SAVED_MAX
5 kx # define RLIM_SAVED_MAX RLIM_INFINITY
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx int bad_fd = INT_MAX;
5 kx struct rlimit rlim;
5 kx if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
5 kx && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
5 kx && rlim.rlim_cur != RLIM_INFINITY
5 kx && rlim.rlim_cur != RLIM_SAVED_MAX
5 kx && rlim.rlim_cur != RLIM_SAVED_CUR)
5 kx bad_fd = rlim.rlim_cur;
5 kx if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
5 kx if (errno != EINVAL) result |= 2;
5 kx if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
5 kx if (errno != EINVAL) result |= 8;
5 kx /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
5 kx {
5 kx int fd;
5 kx fd = open (".", O_RDONLY);
5 kx if (fd == -1)
5 kx result |= 16;
5 kx else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
5 kx result |= 32;
5 kx
5 kx close (fd);
5 kx }
5 kx return result;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_fcntl_f_dupfd_works=yes
5 kx else
5 kx gl_cv_func_fcntl_f_dupfd_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
5 kx $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
5 kx case $gl_cv_func_fcntl_f_dupfd_works in
5 kx *yes) ;;
5 kx *)
5 kx
5 kx
5 kx if test $ac_cv_func_fcntl = no; then
5 kx HAVE_FCNTL=0
5 kx else
5 kx REPLACE_FCNTL=1
5 kx fi
5 kx
5 kx
5 kx $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
5 kx $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
5 kx if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <fcntl.h>
5 kx #ifndef F_DUPFD_CLOEXEC
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef __linux__
5 kx /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
5 kx it to support the semantics on older kernels that failed with EINVAL. */
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_fcntl_f_dupfd_cloexec=yes
5 kx else
5 kx gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx gl_cv_func_fcntl_f_dupfd_cloexec=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
5 kx $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
5 kx if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_fcntl = no; then
5 kx HAVE_FCNTL=0
5 kx else
5 kx REPLACE_FCNTL=1
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx
5 kx
5 kx if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_FCNTL=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_fcntl_h='<'fcntl.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
5 kx $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
5 kx if ${gl_cv_next_fcntl_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <fcntl.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'fcntl.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_fcntl_h
5 kx gl_cv_next_fcntl_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
5 kx $as_echo "$gl_cv_next_fcntl_h" >&6; }
5 kx fi
5 kx NEXT_FCNTL_H=$gl_cv_next_fcntl_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'fcntl.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_fcntl_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw* | solaris*)
5 kx REPLACE_FSTAT=1
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx if test $REPLACE_FSTAT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_FSTAT=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_getdelim = yes; then
5 kx HAVE_GETDELIM=1
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
5 kx $as_echo_n "checking for working getdelim function... " >&6; }
5 kx if ${gl_cv_func_working_getdelim+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
5 kx if test "$cross_compiling" = yes; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <features.h>
5 kx #ifdef __GNU_LIBRARY__
5 kx #if (__GLIBC__ >= 2) && !defined __UCLIBC__
5 kx Lucky GNU user
5 kx #endif
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5 kx gl_cv_func_working_getdelim="guessing yes"
5 kx else
5 kx case "$host_os" in
5 kx *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
5 kx *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx # include <stdio.h>
5 kx # include <stdlib.h>
5 kx # include <string.h>
5 kx int main ()
5 kx {
5 kx FILE *in = fopen ("./conftest.data", "r");
5 kx if (!in)
5 kx return 1;
5 kx {
5 kx /* Test result for a NULL buffer and a zero size.
5 kx Based on a test program from Karl Heuer. */
5 kx char *line = NULL;
5 kx size_t siz = 0;
5 kx int len = getdelim (&line, &siz, '\n', in);
5 kx if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
5 kx { free (line); fclose (in); return 2; }
5 kx free (line);
5 kx }
5 kx {
5 kx /* Test result for a NULL buffer and a non-zero size.
5 kx This crashes on FreeBSD 8.0. */
5 kx char *line = NULL;
5 kx size_t siz = (size_t)(~0) / 4;
5 kx if (getdelim (&line, &siz, '\n', in) == -1)
5 kx { fclose (in); return 3; }
5 kx free (line);
5 kx }
5 kx fclose (in);
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_working_getdelim=yes
5 kx else
5 kx gl_cv_func_working_getdelim=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
5 kx $as_echo "$gl_cv_func_working_getdelim" >&6; }
5 kx case "$gl_cv_func_working_getdelim" in
5 kx *yes) ;;
5 kx *) REPLACE_GETDELIM=1 ;;
5 kx esac
5 kx else
5 kx HAVE_GETDELIM=0
5 kx fi
5 kx
5 kx if test $ac_cv_have_decl_getdelim = no; then
5 kx HAVE_DECL_GETDELIM=0
5 kx fi
5 kx
5 kx if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
5 kx
5 kx
5 kx for ac_func in flockfile funlockfile
5 kx do :
5 kx as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5 kx ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5 kx if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_GETDELIM=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_getdtablesize = yes &&
5 kx test $ac_cv_have_decl_getdtablesize = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
5 kx $as_echo_n "checking whether getdtablesize works... " >&6; }
5 kx if ${gl_cv_func_getdtablesize_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$host_os" in
5 kx vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
5 kx *)
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
5 kx gl_cv_func_getdtablesize_works="guessing no" ;;
5 kx *) gl_cv_func_getdtablesize_works="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <unistd.h>
5 kx int
5 kx main ()
5 kx {
5 kx int size = getdtablesize();
5 kx if (dup2 (0, getdtablesize()) != -1)
5 kx return 1;
5 kx if (size != getdtablesize())
5 kx return 2;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_getdtablesize_works=yes
5 kx else
5 kx gl_cv_func_getdtablesize_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
5 kx $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
5 kx case "$gl_cv_func_getdtablesize_works" in
5 kx *yes | "no (limitation)") ;;
5 kx *) REPLACE_GETDTABLESIZE=1 ;;
5 kx esac
5 kx else
5 kx HAVE_GETDTABLESIZE=0
5 kx fi
5 kx
5 kx if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_GETDTABLESIZE=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_getline_needs_run_time_check=no
5 kx ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
5 kx if test "x$ac_cv_func_getline" = xyes; then :
5 kx gl_getline_needs_run_time_check=yes
5 kx else
5 kx am_cv_func_working_getline=no
5 kx fi
5 kx
5 kx if test $gl_getline_needs_run_time_check = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
5 kx $as_echo_n "checking for working getline function... " >&6; }
5 kx if ${am_cv_func_working_getline+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
5 kx if test "$cross_compiling" = yes; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <features.h>
5 kx #ifdef __GNU_LIBRARY__
5 kx #if (__GLIBC__ >= 2) && !defined __UCLIBC__
5 kx Lucky GNU user
5 kx #endif
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5 kx am_cv_func_working_getline="guessing yes"
5 kx else
5 kx case "$host_os" in
5 kx *-musl*) am_cv_func_working_getline="guessing yes" ;;
5 kx *) am_cv_func_working_getline="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx # include <stdio.h>
5 kx # include <stdlib.h>
5 kx # include <string.h>
5 kx int main ()
5 kx {
5 kx FILE *in = fopen ("./conftest.data", "r");
5 kx if (!in)
5 kx return 1;
5 kx {
5 kx /* Test result for a NULL buffer and a zero size.
5 kx Based on a test program from Karl Heuer. */
5 kx char *line = NULL;
5 kx size_t siz = 0;
5 kx int len = getline (&line, &siz, in);
5 kx if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
5 kx { free (line); fclose (in); return 2; }
5 kx free (line);
5 kx }
5 kx {
5 kx /* Test result for a NULL buffer and a non-zero size.
5 kx This crashes on FreeBSD 8.0. */
5 kx char *line = NULL;
5 kx size_t siz = (size_t)(~0) / 4;
5 kx if (getline (&line, &siz, in) == -1)
5 kx { fclose (in); return 3; }
5 kx free (line);
5 kx }
5 kx fclose (in);
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx am_cv_func_working_getline=yes
5 kx else
5 kx am_cv_func_working_getline=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
5 kx $as_echo "$am_cv_func_working_getline" >&6; }
5 kx fi
5 kx
5 kx if test $ac_cv_have_decl_getline = no; then
5 kx HAVE_DECL_GETLINE=0
5 kx fi
5 kx
5 kx case "$am_cv_func_working_getline" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_GETLINE=1
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_GETLINE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_GETLINE=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx REPLACE_GETOPT=0
5 kx if test -n "$gl_replace_getopt"; then
5 kx REPLACE_GETOPT=1
5 kx fi
5 kx
5 kx if test $REPLACE_GETOPT = 1; then
5 kx
5 kx
5 kx if test $ac_cv_header_sys_cdefs_h = yes; then
5 kx HAVE_SYS_CDEFS_H=1
5 kx else
5 kx HAVE_SYS_CDEFS_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
5 kx
5 kx GETOPT_H=getopt.h
5 kx GETOPT_CDEFS_H=getopt-cdefs.h
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx if test $REPLACE_GETOPT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
5 kx
5 kx GNULIB_GL_UNISTD_H_GETOPT=1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_GETOPT_POSIX=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_found=0
5 kx ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
5 kx _ACEOF
5 kx if test $ac_have_decl = 1; then :
5 kx ac_found=1
5 kx fi
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
5 kx _ACEOF
5 kx if test $ac_have_decl = 1; then :
5 kx ac_found=1
5 kx fi
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
5 kx "
5 kx if test "x$ac_cv_have_decl___argv" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL___ARGV $ac_have_decl
5 kx _ACEOF
5 kx if test $ac_have_decl = 1; then :
5 kx ac_found=1
5 kx fi
5 kx
5 kx
5 kx # Incur the cost of this test only if none of the above worked.
5 kx if test $ac_found = 0; then
5 kx # On OpenBSD 5.1, using the global __progname variable appears to be
5 kx # the only way to implement getprogname.
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
5 kx $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
5 kx if ${gl_cv_var___progname+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_cv_var___progname=
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern char *__progname;
5 kx int
5 kx main ()
5 kx {
5 kx return *__progname;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_var___progname=yes
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
5 kx $as_echo "$gl_cv_var___progname" >&6; }
5 kx if test "$gl_cv_var___progname" = yes; then
5 kx
5 kx $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
5 kx
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx # Autoconf 2.61a.99 and earlier don't support linking a file only
5 kx # in VPATH builds. But since GNUmakefile is for maintainer use
5 kx # only, it does not matter if we skip the link with older autoconf.
5 kx # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
5 kx # builds, so use a shell variable to bypass this.
5 kx GNUmakefile=GNUmakefile
5 kx ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_MSVC_NOTHROW 1
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw* | pw*)
5 kx REPLACE_OPEN=1
5 kx ;;
5 kx *)
5 kx
5 kx if test "$gl_cv_macro_O_CLOEXEC" != yes; then
5 kx REPLACE_OPEN=1
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
5 kx $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
5 kx if ${gl_cv_func_open_slash+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Assume that if we have lstat, we can also check symlinks.
5 kx if test $ac_cv_func_lstat = yes; then
5 kx touch conftest.tmp
5 kx ln -s conftest.tmp conftest.lnk
5 kx fi
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
5 kx gl_cv_func_open_slash="guessing no" ;;
5 kx *)
5 kx gl_cv_func_open_slash="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <fcntl.h>
5 kx #if HAVE_UNISTD_H
5 kx # include <unistd.h>
5 kx #endif
5 kx int main ()
5 kx {
5 kx int result = 0;
5 kx #if HAVE_LSTAT
5 kx if (open ("conftest.lnk/", O_RDONLY) != -1)
5 kx result |= 1;
5 kx #endif
5 kx if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
5 kx result |= 2;
5 kx return result;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_open_slash=yes
5 kx else
5 kx gl_cv_func_open_slash=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f conftest.sl conftest.tmp conftest.lnk
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
5 kx $as_echo "$gl_cv_func_open_slash" >&6; }
5 kx case "$gl_cv_func_open_slash" in
5 kx *no)
5 kx
5 kx $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$gl_cv_func_open_slash" in
5 kx *no)
5 kx REPLACE_OPEN=1
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx if test $REPLACE_OPEN = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
5 kx
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_OPEN=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Extract the first word of "pmccabe", so it can be a program name with args.
5 kx set dummy pmccabe; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_PMCCABE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $PMCCABE in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
5 kx ;;
5 kx esac
5 kx fi
5 kx PMCCABE=$ac_cv_path_PMCCABE
5 kx if test -n "$PMCCABE"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
5 kx $as_echo "$PMCCABE" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
5 kx _ACEOF
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
5 kx $as_echo_n "checking for ssize_t... " >&6; }
5 kx if ${gt_cv_ssize_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx int
5 kx main ()
5 kx {
5 kx int x = sizeof (ssize_t *) + sizeof (ssize_t);
5 kx return !x;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_ssize_t=yes
5 kx else
5 kx gt_cv_ssize_t=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
5 kx $as_echo "$gt_cv_ssize_t" >&6; }
5 kx if test $gt_cv_ssize_t = no; then
5 kx
5 kx $as_echo "#define ssize_t int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx REPLACE_STAT=1
5 kx ;;
5 kx *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
5 kx $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
5 kx if ${gl_cv_func_stat_file_slash+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx touch conftest.tmp
5 kx # Assume that if we have lstat, we can also check symlinks.
5 kx if test $ac_cv_func_lstat = yes; then
5 kx ln -s conftest.tmp conftest.lnk
5 kx fi
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on Linux systems.
5 kx linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/stat.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx struct stat st;
5 kx if (!stat ("conftest.tmp/", &st))
5 kx result |= 1;
5 kx #if HAVE_LSTAT
5 kx if (!stat ("conftest.lnk/", &st))
5 kx result |= 2;
5 kx #endif
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_stat_file_slash=yes
5 kx else
5 kx gl_cv_func_stat_file_slash=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f conftest.tmp conftest.lnk
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
5 kx $as_echo "$gl_cv_func_stat_file_slash" >&6; }
5 kx case $gl_cv_func_stat_file_slash in
5 kx *no)
5 kx REPLACE_STAT=1
5 kx
5 kx $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
5 kx ;;
5 kx esac
5 kx case $host_os in
5 kx solaris*)
5 kx REPLACE_FSTAT=1 ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_STAT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_STAT=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
5 kx $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
5 kx if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx #if HAVE_SYS_TIME_H
5 kx # include <sys/time.h>
5 kx #endif
5 kx #include <time.h>
5 kx struct timespec ts;
5 kx struct stat st;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx st.st_atim = ts;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
5 kx else
5 kx ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
5 kx $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
5 kx if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
5 kx
5 kx $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
5 kx
5 kx fi
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx STDARG_H=''
5 kx NEXT_STDARG_H='<stdarg.h>'
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
5 kx $as_echo_n "checking for va_copy... " >&6; }
5 kx if ${gl_cv_func_va_copy+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #ifndef va_copy
5 kx void (*func) (va_list, va_list) = va_copy;
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_va_copy=yes
5 kx else
5 kx gl_cv_func_va_copy=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
5 kx $as_echo "$gl_cv_func_va_copy" >&6; }
5 kx if test $gl_cv_func_va_copy = no; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #if defined _AIX && !defined __GNUC__
5 kx AIX vaccine
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "vaccine" >/dev/null 2>&1; then :
5 kx gl_aixcc=yes
5 kx else
5 kx gl_aixcc=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx if test $gl_aixcc = yes; then
5 kx STDARG_H=stdarg.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_stdarg_h='<'stdarg.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
5 kx $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
5 kx if ${gl_cv_next_stdarg_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'stdarg.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_stdarg_h
5 kx gl_cv_next_stdarg_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
5 kx $as_echo "$gl_cv_next_stdarg_h" >&6; }
5 kx fi
5 kx NEXT_STDARG_H=$gl_cv_next_stdarg_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'stdarg.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_stdarg_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test "$gl_cv_next_stdarg_h" = '""'; then
5 kx gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
5 kx NEXT_STDARG_H="$gl_cv_next_stdarg_h"
5 kx fi
5 kx else
5 kx
5 kx saved_as_echo_n="$as_echo_n"
5 kx as_echo_n=':'
5 kx if ${gl_cv_func___va_copy+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdarg.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #ifndef __va_copy
5 kx error, bail out
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func___va_copy=yes
5 kx else
5 kx gl_cv_func___va_copy=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx as_echo_n="$saved_as_echo_n"
5 kx
5 kx if test $gl_cv_func___va_copy = yes; then
5 kx
5 kx $as_echo "#define va_copy __va_copy" >>confdefs.h
5 kx
5 kx else
5 kx
5 kx
5 kx $as_echo "#define va_copy gl_va_copy" >>confdefs.h
5 kx
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx if test -n "$STDARG_H"; then
5 kx GL_GENERATE_STDARG_H_TRUE=
5 kx GL_GENERATE_STDARG_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_STDARG_H_TRUE='#'
5 kx GL_GENERATE_STDARG_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_stdbool_h" = yes; then
5 kx case "$host_os" in
5 kx solaris*)
5 kx if test -z "$GCC"; then
5 kx STDBOOL_H='stdbool.h'
5 kx else
5 kx STDBOOL_H=''
5 kx fi
5 kx ;;
5 kx *)
5 kx STDBOOL_H=''
5 kx ;;
5 kx esac
5 kx else
5 kx STDBOOL_H='stdbool.h'
5 kx fi
5 kx
5 kx if test -n "$STDBOOL_H"; then
5 kx GL_GENERATE_STDBOOL_H_TRUE=
5 kx GL_GENERATE_STDBOOL_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_STDBOOL_H_TRUE='#'
5 kx GL_GENERATE_STDBOOL_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test "$ac_cv_type__Bool" = yes; then
5 kx HAVE__BOOL=1
5 kx else
5 kx HAVE__BOOL=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx STDDEF_H=
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
5 kx $as_echo_n "checking for good max_align_t... " >&6; }
5 kx if ${gl_cv_type_max_align_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stddef.h>
5 kx unsigned int s = sizeof (max_align_t);
5 kx #if defined __GNUC__ || defined __IBM__ALIGNOF__
5 kx int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
5 kx int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_type_max_align_t=yes
5 kx else
5 kx gl_cv_type_max_align_t=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
5 kx $as_echo "$gl_cv_type_max_align_t" >&6; }
5 kx if test $gl_cv_type_max_align_t = no; then
5 kx HAVE_MAX_ALIGN_T=0
5 kx STDDEF_H=stddef.h
5 kx fi
5 kx
5 kx if test $gt_cv_c_wchar_t = no; then
5 kx HAVE_WCHAR_T=0
5 kx STDDEF_H=stddef.h
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
5 kx $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
5 kx if ${gl_cv_decl_null_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stddef.h>
5 kx int test[2 * (sizeof NULL == sizeof (void *)) -1];
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_decl_null_works=yes
5 kx else
5 kx gl_cv_decl_null_works=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
5 kx $as_echo "$gl_cv_decl_null_works" >&6; }
5 kx if test $gl_cv_decl_null_works = no; then
5 kx REPLACE_NULL=1
5 kx STDDEF_H=stddef.h
5 kx fi
5 kx
5 kx
5 kx if test -n "$STDDEF_H"; then
5 kx GL_GENERATE_STDDEF_H_TRUE=
5 kx GL_GENERATE_STDDEF_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_STDDEF_H_TRUE='#'
5 kx GL_GENERATE_STDDEF_H_FALSE=
5 kx fi
5 kx
5 kx if test -n "$STDDEF_H"; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_stddef_h='<'stddef.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
5 kx $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
5 kx if ${gl_cv_next_stddef_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stddef.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'stddef.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_stddef_h
5 kx gl_cv_next_stddef_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
5 kx $as_echo "$gl_cv_next_stddef_h" >&6; }
5 kx fi
5 kx NEXT_STDDEF_H=$gl_cv_next_stddef_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'stddef.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_stddef_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_stdio_h='<'stdio.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
5 kx $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
5 kx if ${gl_cv_next_stdio_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'stdio.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_stdio_h
5 kx gl_cv_next_stdio_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
5 kx $as_echo "$gl_cv_next_stdio_h" >&6; }
5 kx fi
5 kx NEXT_STDIO_H=$gl_cv_next_stdio_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'stdio.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_stdio_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
5 kx $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
5 kx if ${gl_cv_func_printf_attribute_flavor+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define __STDC_FORMAT_MACROS 1
5 kx #include <stdio.h>
5 kx #include <inttypes.h>
5 kx /* For non-mingw systems, compilation will trivially succeed.
5 kx For mingw, compilation will succeed for older mingw (system
5 kx printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
5 kx #if (defined _WIN32 && ! defined __CYGWIN__) && \
5 kx (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
5 kx extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_printf_attribute_flavor=system
5 kx else
5 kx gl_cv_func_printf_attribute_flavor=gnu
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
5 kx $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
5 kx if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
5 kx
5 kx $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx GNULIB_FSCANF=1
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_FSCANF 1
5 kx _ACEOF
5 kx
5 kx
5 kx GNULIB_SCANF=1
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_SCANF 1
5 kx _ACEOF
5 kx
5 kx
5 kx GNULIB_FGETC=1
5 kx GNULIB_GETC=1
5 kx GNULIB_GETCHAR=1
5 kx GNULIB_FGETS=1
5 kx GNULIB_FREAD=1
5 kx
5 kx
5 kx GNULIB_FPRINTF=1
5 kx GNULIB_PRINTF=1
5 kx GNULIB_VFPRINTF=1
5 kx GNULIB_VPRINTF=1
5 kx GNULIB_FPUTC=1
5 kx GNULIB_PUTC=1
5 kx GNULIB_PUTCHAR=1
5 kx GNULIB_FPUTS=1
5 kx GNULIB_PUTS=1
5 kx GNULIB_FWRITE=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
5 kx $as_echo_n "checking for working strerror function... " >&6; }
5 kx if ${gl_cv_func_working_strerror+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx if (!*strerror (-2)) return 1;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_working_strerror=yes
5 kx else
5 kx gl_cv_func_working_strerror=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
5 kx $as_echo "$gl_cv_func_working_strerror" >&6; }
5 kx case "$gl_cv_func_working_strerror" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_STRERROR=1
5 kx ;;
5 kx esac
5 kx
5 kx case "$gl_cv_func_strerror_r_works" in
5 kx *no) REPLACE_STRERROR=1 ;;
5 kx esac
5 kx
5 kx else
5 kx REPLACE_STRERROR=1
5 kx fi
5 kx
5 kx if test $REPLACE_STRERROR = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_STRERROR 1
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_STRERROR=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_stat_h='<'sys/stat.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
5 kx if ${gl_cv_next_sys_stat_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_stat_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/stat.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/stat.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_stat_h
5 kx gl_cv_next_sys_stat_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_stat_h='<'sys/stat.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
5 kx $as_echo "$gl_cv_next_sys_stat_h" >&6; }
5 kx fi
5 kx NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/stat.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_stat_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx WINDOWS_STAT_TIMESPEC=0
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_type_nlink_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx $as_echo "#define nlink_t int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_unistd_h='<'unistd.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
5 kx $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
5 kx if ${gl_cv_next_unistd_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_unistd_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <unistd.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'unistd.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_unistd_h
5 kx gl_cv_next_unistd_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_unistd_h='<'unistd.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
5 kx $as_echo "$gl_cv_next_unistd_h" >&6; }
5 kx fi
5 kx NEXT_UNISTD_H=$gl_cv_next_unistd_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'unistd.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_unistd_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_unistd_h = yes; then
5 kx HAVE_UNISTD_H=1
5 kx else
5 kx HAVE_UNISTD_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --enable-valgrind-tests was given.
5 kx if test "${enable_valgrind_tests+set}" = set; then :
5 kx enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
5 kx else
5 kx opt_valgrind_tests=yes
5 kx fi
5 kx
5 kx
5 kx # Run self-tests under valgrind?
5 kx if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
5 kx for ac_prog in valgrind
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_VALGRIND+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$VALGRIND"; then
5 kx ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_VALGRIND="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx VALGRIND=$ac_cv_prog_VALGRIND
5 kx if test -n "$VALGRIND"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
5 kx $as_echo "$VALGRIND" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$VALGRIND" && break
5 kx done
5 kx
5 kx
5 kx if test "$VALGRIND"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5
5 kx $as_echo_n "checking for valgrind options for tests... " >&6; }
5 kx if ${gl_cv_opt_valgrind_tests+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full"
5 kx $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 ||
5 kx gl_cv_opt_valgrind_tests=no
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5
5 kx $as_echo "$gl_cv_opt_valgrind_tests" >&6; }
5 kx
5 kx if test "$gl_cv_opt_valgrind_tests" != no; then
5 kx VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests"
5 kx else
5 kx VALGRIND=
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx
5 kx # Check whether --with-packager was given.
5 kx if test "${with_packager+set}" = set; then :
5 kx withval=$with_packager; case $withval in
5 kx yes|no) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_PACKAGER "$withval"
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --with-packager-version was given.
5 kx if test "${with_packager_version+set}" = set; then :
5 kx withval=$with_packager_version; case $withval in
5 kx yes|no) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_PACKAGER_VERSION "$withval"
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --with-packager-bug-reports was given.
5 kx if test "${with_packager_bug_reports+set}" = set; then :
5 kx withval=$with_packager_bug_reports; case $withval in
5 kx yes|no) ;;
5 kx *)
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
5 kx _ACEOF
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx
5 kx
5 kx if test "X$with_packager" = "X" && \
5 kx test "X$with_packager_version$with_packager_bug_reports" != "X"
5 kx then
5 kx as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
5 kx fi
5 kx
5 kx # End of code from modules
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_libdeps=
5 kx gltests_ltlibdeps=
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_source_base='gltests'
5 kx gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
5 kx
5 kx gl_module_indicator_condition=$gltests_WITNESS
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS accept.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_ACCEPT" != 1; then
5 kx if test "$GNULIB_ACCEPT" = 0; then
5 kx GNULIB_ACCEPT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_ACCEPT="($GNULIB_ACCEPT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_arpa_inet_h = yes; then
5 kx HAVE_ARPA_INET_H=1
5 kx else
5 kx HAVE_ARPA_INET_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
5 kx $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
5 kx if ${gl_cv_next_arpa_inet_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_arpa_inet_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <arpa/inet.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'arpa/inet.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_arpa_inet_h
5 kx gl_cv_next_arpa_inet_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
5 kx $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
5 kx fi
5 kx NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'arpa/inet.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h = yes; then
5 kx HAVE_WS2TCPIP_H=0
5 kx else
5 kx if test $ac_cv_header_ws2tcpip_h = yes; then
5 kx HAVE_WS2TCPIP_H=1
5 kx else
5 kx HAVE_WS2TCPIP_H=0
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS bind.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_BIND" != 1; then
5 kx if test "$GNULIB_BIND" = 0; then
5 kx GNULIB_BIND=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_BIND="($GNULIB_BIND || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS connect.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_CONNECT" != 1; then
5 kx if test "$GNULIB_CONNECT" = 0; then
5 kx GNULIB_CONNECT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_CONNECT="($GNULIB_CONNECT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_ctype_h='<'ctype.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
5 kx $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
5 kx if ${gl_cv_next_ctype_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'ctype.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_ctype_h
5 kx gl_cv_next_ctype_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
5 kx $as_echo "$gl_cv_next_ctype_h" >&6; }
5 kx fi
5 kx NEXT_CTYPE_H=$gl_cv_next_ctype_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'ctype.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_ctype_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_ENVIRON" != 1; then
5 kx if test "$GNULIB_ENVIRON" = 0; then
5 kx GNULIB_ENVIRON=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_ENVIRON="($GNULIB_ENVIRON || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx REPLACE_FDOPEN=1
5 kx fi
5 kx
5 kx if test $REPLACE_FDOPEN = 0; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
5 kx $as_echo_n "checking whether fdopen sets errno... " >&6; }
5 kx if ${gl_cv_func_fdopen_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx mingw*) gl_cv_func_fdopen_works="guessing no" ;;
5 kx *) gl_cv_func_fdopen_works="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdio.h>
5 kx #include <errno.h>
5 kx int
5 kx main (void)
5 kx {
5 kx FILE *fp;
5 kx errno = 0;
5 kx fp = fdopen (-1, "r");
5 kx if (fp == NULL && errno == 0)
5 kx return 1;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_fdopen_works=yes
5 kx else
5 kx gl_cv_func_fdopen_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
5 kx $as_echo "$gl_cv_func_fdopen_works" >&6; }
5 kx case "$gl_cv_func_fdopen_works" in
5 kx *no) REPLACE_FDOPEN=1 ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $REPLACE_FDOPEN = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_FDOPEN" != 1; then
5 kx if test "$GNULIB_FDOPEN" = 0; then
5 kx GNULIB_FDOPEN=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_ftruncate = yes; then
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx REPLACE_FTRUNCATE=1
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx HAVE_FTRUNCATE=0
5 kx fi
5 kx
5 kx if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS ftruncate.$ac_objext"
5 kx
5 kx
5 kx for ac_func in chsize
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
5 kx if test "x$ac_cv_func_chsize" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_CHSIZE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_FTRUNCATE" != 1; then
5 kx if test "$GNULIB_FTRUNCATE" = 0; then
5 kx GNULIB_FTRUNCATE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_FTRUNCATE="($GNULIB_FTRUNCATE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
5 kx *yes,yes) ;;
5 kx *)
5 kx REPLACE_GETCWD=1
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_GETCWD = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_GETCWD" != 1; then
5 kx if test "$GNULIB_GETCWD" = 0; then
5 kx GNULIB_GETCWD=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_gettimeofday_timezone=void
5 kx if test $ac_cv_func_gettimeofday != yes; then
5 kx HAVE_GETTIMEOFDAY=0
5 kx else
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
5 kx $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
5 kx if ${gl_cv_func_gettimeofday_clobber+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx # When cross-compiling:
5 kx case "$host_os" in
5 kx # Guess all is fine on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
5 kx # Guess all is fine on musl systems.
5 kx *-musl*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
5 kx # Guess no on native Windows.
5 kx mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_gettimeofday_clobber="$gl_cross_guess_inverted" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx #include <sys/time.h>
5 kx #include <time.h>
5 kx #include <stdlib.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx time_t t = 0;
5 kx struct tm *lt;
5 kx struct tm saved_lt;
5 kx struct timeval tv;
5 kx lt = localtime (&t);
5 kx saved_lt = *lt;
5 kx gettimeofday (&tv, NULL);
5 kx return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_gettimeofday_clobber=no
5 kx else
5 kx gl_cv_func_gettimeofday_clobber=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
5 kx $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
5 kx
5 kx case "$gl_cv_func_gettimeofday_clobber" in
5 kx *yes)
5 kx REPLACE_GETTIMEOFDAY=1
5 kx
5 kx $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx NEED_LOCALTIME_BUFFER=1
5 kx REPLACE_GMTIME=1
5 kx REPLACE_LOCALTIME=1
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
5 kx $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
5 kx if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/time.h>
5 kx struct timeval c;
5 kx int gettimeofday (struct timeval *restrict, void *restrict);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx /* glibc uses struct timezone * rather than the POSIX void *
5 kx if _GNU_SOURCE is defined. However, since the only portable
5 kx use of gettimeofday uses NULL as the second parameter, and
5 kx since the glibc definition is actually more typesafe, it is
5 kx not worth wrapping this to get a compliant signature. */
5 kx int (*f) (struct timeval *restrict, void *restrict)
5 kx = gettimeofday;
5 kx int x = f (&c, 0);
5 kx return !(x | c.tv_sec | c.tv_usec);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_gettimeofday_posix_signature=yes
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/time.h>
5 kx int gettimeofday (struct timeval *restrict, struct timezone *restrict);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_gettimeofday_posix_signature=almost
5 kx else
5 kx gl_cv_func_gettimeofday_posix_signature=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
5 kx $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
5 kx if test $gl_cv_func_gettimeofday_posix_signature = almost; then
5 kx gl_gettimeofday_timezone='struct timezone'
5 kx elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
5 kx REPLACE_GETTIMEOFDAY=1
5 kx fi
5 kx if test $REPLACE_STRUCT_TIMEVAL = 1; then
5 kx REPLACE_GETTIMEOFDAY=1
5 kx fi
5 kx case "$host_os" in
5 kx mingw*) REPLACE_GETTIMEOFDAY=1 ;;
5 kx esac
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
5 kx _ACEOF
5 kx
5 kx
5 kx if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS gettimeofday.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_GETTIMEOFDAY" != 1; then
5 kx if test "$GNULIB_GETTIMEOFDAY" = 0; then
5 kx GNULIB_GETTIMEOFDAY=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_GETTIMEOFDAY="($GNULIB_GETTIMEOFDAY || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx HAVE_INET_PTON=1
5 kx INET_PTON_LIB=
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx if test $HAVE_WINSOCK2_H = 1; then
5 kx REPLACE_INET_PTON=1
5 kx ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_INET_PTON $ac_have_decl
5 kx _ACEOF
5 kx
5 kx if test $ac_cv_have_decl_inet_pton = yes; then
5 kx INET_PTON_LIB="-lws2_32"
5 kx else
5 kx HAVE_DECL_INET_PTON=0
5 kx fi
5 kx else
5 kx gl_save_LIBS=$LIBS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
5 kx $as_echo_n "checking for library containing inet_pton... " >&6; }
5 kx if ${ac_cv_search_inet_pton+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char inet_pton ();
5 kx int
5 kx main ()
5 kx {
5 kx return inet_pton ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' nsl resolv network; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_inet_pton=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_inet_pton+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_inet_pton+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_inet_pton=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
5 kx $as_echo "$ac_cv_search_inet_pton" >&6; }
5 kx ac_res=$ac_cv_search_inet_pton
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx else
5 kx for ac_func in inet_pton
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
5 kx if test "x$ac_cv_func_inet_pton" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_INET_PTON 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test $ac_cv_func_inet_pton = no; then
5 kx HAVE_INET_PTON=0
5 kx fi
5 kx
5 kx fi
5 kx
5 kx LIBS=$gl_save_LIBS
5 kx
5 kx if test "$ac_cv_search_inet_pton" != "no" \
5 kx && test "$ac_cv_search_inet_pton" != "none required"; then
5 kx INET_PTON_LIB="$ac_cv_search_inet_pton"
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
5 kx #if HAVE_NETDB_H
5 kx # include <netdb.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_INET_PTON $ac_have_decl
5 kx _ACEOF
5 kx
5 kx if test $ac_cv_have_decl_inet_pton = no; then
5 kx HAVE_DECL_INET_PTON=0
5 kx fi
5 kx fi
5 kx
5 kx
5 kx if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS inet_pton.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_INET_PTON" != 1; then
5 kx if test "$GNULIB_INET_PTON" = 0; then
5 kx GNULIB_INET_PTON=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_INET_PTON="($GNULIB_INET_PTON || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5 kx $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5 kx if ${ac_cv_c_bigendian+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_c_bigendian=unknown
5 kx # See if we're dealing with a universal compiler.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifndef __APPLE_CC__
5 kx not a universal capable compiler
5 kx #endif
5 kx typedef int dummy;
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx # Check for potential -arch flags. It is not universal unless
5 kx # there are at least two -arch flags with different values.
5 kx ac_arch=
5 kx ac_prev=
5 kx for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5 kx if test -n "$ac_prev"; then
5 kx case $ac_word in
5 kx i?86 | x86_64 | ppc | ppc64)
5 kx if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5 kx ac_arch=$ac_word
5 kx else
5 kx ac_cv_c_bigendian=universal
5 kx break
5 kx fi
5 kx ;;
5 kx esac
5 kx ac_prev=
5 kx elif test "x$ac_word" = "x-arch"; then
5 kx ac_prev=arch
5 kx fi
5 kx done
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # See if sys/param.h defines the BYTE_ORDER macro.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/param.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5 kx && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5 kx && LITTLE_ENDIAN)
5 kx bogus endian macros
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx # It does; now see whether it defined to BIG_ENDIAN or not.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/param.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if BYTE_ORDER != BIG_ENDIAN
5 kx not big endian
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_bigendian=yes
5 kx else
5 kx ac_cv_c_bigendian=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <limits.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5 kx bogus endian macros
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx # It does; now see whether it defined to _BIG_ENDIAN or not.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <limits.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef _BIG_ENDIAN
5 kx not big endian
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_bigendian=yes
5 kx else
5 kx ac_cv_c_bigendian=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # Compile a test program.
5 kx if test "$cross_compiling" = yes; then :
5 kx # Try to guess by grepping values from an object file.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx short int ascii_mm[] =
5 kx { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5 kx short int ascii_ii[] =
5 kx { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5 kx int use_ascii (int i) {
5 kx return ascii_mm[i] + ascii_ii[i];
5 kx }
5 kx short int ebcdic_ii[] =
5 kx { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5 kx short int ebcdic_mm[] =
5 kx { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5 kx int use_ebcdic (int i) {
5 kx return ebcdic_mm[i] + ebcdic_ii[i];
5 kx }
5 kx extern int foo;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return use_ascii (foo) == use_ebcdic (foo);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5 kx ac_cv_c_bigendian=yes
5 kx fi
5 kx if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5 kx if test "$ac_cv_c_bigendian" = unknown; then
5 kx ac_cv_c_bigendian=no
5 kx else
5 kx # finding both strings is unlikely to happen, but who knows?
5 kx ac_cv_c_bigendian=unknown
5 kx fi
5 kx fi
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx /* Are we little or big endian? From Harbison&Steele. */
5 kx union
5 kx {
5 kx long int l;
5 kx char c[sizeof (long int)];
5 kx } u;
5 kx u.l = 1;
5 kx return u.c[sizeof (long int) - 1] == 1;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_c_bigendian=no
5 kx else
5 kx ac_cv_c_bigendian=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5 kx $as_echo "$ac_cv_c_bigendian" >&6; }
5 kx case $ac_cv_c_bigendian in #(
5 kx yes)
5 kx $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5 kx ;; #(
5 kx no)
5 kx ;; #(
5 kx universal)
5 kx
5 kx $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5 kx
5 kx ;; #(
5 kx *)
5 kx as_fn_error $? "unknown endianness
5 kx presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx PRIPTR_PREFIX=
5 kx if test -n "$STDINT_H"; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef _WIN64
5 kx LLP64
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx },
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx PRIPTR_PREFIX='"l"'
5 kx else
5 kx PRIPTR_PREFIX='"ll"'
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx for glpfx in '' l ll I64; do
5 kx case $glpfx in
5 kx '') gltype1='int';;
5 kx l) gltype1='long int';;
5 kx ll) gltype1='long long int';;
5 kx I64) gltype1='__int64';;
5 kx esac
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdint.h>
5 kx extern intptr_t foo;
5 kx extern $gltype1 foo;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx PRIPTR_PREFIX='"'$glpfx'"'
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test -n "$PRIPTR_PREFIX" && break
5 kx done
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
5 kx $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
5 kx if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Work also in C++ mode. */
5 kx #define __STDC_LIMIT_MACROS 1
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
5 kx
5 kx #include <limits.h>
5 kx #if HAVE_STDINT_H
5 kx #include <stdint.h>
5 kx #endif
5 kx
5 kx #if defined INT32_MAX && defined INTMAX_MAX
5 kx #define CONDITION (INT32_MAX < INTMAX_MAX)
5 kx #else
5 kx #define CONDITION (sizeof (int) < sizeof (long long int))
5 kx #endif
5 kx int test[CONDITION ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
5 kx else
5 kx gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
5 kx $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
5 kx if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
5 kx INT32_MAX_LT_INTMAX_MAX=1;
5 kx else
5 kx INT32_MAX_LT_INTMAX_MAX=0;
5 kx fi
5 kx
5 kx
5 kx if test $APPLE_UNIVERSAL_BUILD = 0; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
5 kx $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
5 kx if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Work also in C++ mode. */
5 kx #define __STDC_LIMIT_MACROS 1
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
5 kx
5 kx #include <limits.h>
5 kx #if HAVE_STDINT_H
5 kx #include <stdint.h>
5 kx #endif
5 kx
5 kx #if defined INT64_MAX
5 kx #define CONDITION (INT64_MAX == LONG_MAX)
5 kx #else
5 kx #define CONDITION (sizeof (long long int) == sizeof (long int))
5 kx #endif
5 kx int test[CONDITION ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
5 kx else
5 kx gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
5 kx $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
5 kx if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
5 kx INT64_MAX_EQ_LONG_MAX=1;
5 kx else
5 kx INT64_MAX_EQ_LONG_MAX=0;
5 kx fi
5 kx
5 kx
5 kx else
5 kx INT64_MAX_EQ_LONG_MAX=-1
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
5 kx $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
5 kx if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Work also in C++ mode. */
5 kx #define __STDC_LIMIT_MACROS 1
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
5 kx
5 kx #include <limits.h>
5 kx #if HAVE_STDINT_H
5 kx #include <stdint.h>
5 kx #endif
5 kx
5 kx #if defined UINT32_MAX && defined UINTMAX_MAX
5 kx #define CONDITION (UINT32_MAX < UINTMAX_MAX)
5 kx #else
5 kx #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
5 kx #endif
5 kx int test[CONDITION ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
5 kx else
5 kx gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
5 kx $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
5 kx if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
5 kx UINT32_MAX_LT_UINTMAX_MAX=1;
5 kx else
5 kx UINT32_MAX_LT_UINTMAX_MAX=0;
5 kx fi
5 kx
5 kx
5 kx if test $APPLE_UNIVERSAL_BUILD = 0; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
5 kx $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
5 kx if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Work also in C++ mode. */
5 kx #define __STDC_LIMIT_MACROS 1
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
5 kx
5 kx #include <limits.h>
5 kx #if HAVE_STDINT_H
5 kx #include <stdint.h>
5 kx #endif
5 kx
5 kx #if defined UINT64_MAX
5 kx #define CONDITION (UINT64_MAX == ULONG_MAX)
5 kx #else
5 kx #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
5 kx #endif
5 kx int test[CONDITION ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
5 kx else
5 kx gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
5 kx $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
5 kx if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
5 kx UINT64_MAX_EQ_ULONG_MAX=1;
5 kx else
5 kx UINT64_MAX_EQ_ULONG_MAX=0;
5 kx fi
5 kx
5 kx
5 kx else
5 kx UINT64_MAX_EQ_ULONG_MAX=-1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx HAVE_IOCTL=1
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_IOCTL=0
5 kx else
5 kx for ac_func in ioctl
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
5 kx if test "x$ac_cv_func_ioctl" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_IOCTL 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
5 kx $as_echo_n "checking for ioctl with POSIX signature... " >&6; }
5 kx if ${gl_cv_func_ioctl_posix_signature+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/ioctl.h>
5 kx /* On some platforms, ioctl() is declared in <unistd.h>. */
5 kx #include <unistd.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx int ioctl (int, int, ...);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_ioctl_posix_signature=yes
5 kx else
5 kx gl_cv_func_ioctl_posix_signature=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
5 kx $as_echo "$gl_cv_func_ioctl_posix_signature" >&6; }
5 kx if test $gl_cv_func_ioctl_posix_signature != yes; then
5 kx REPLACE_IOCTL=1
5 kx fi
5 kx fi
5 kx
5 kx if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS ioctl.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_IOCTL" != 1; then
5 kx if test "$GNULIB_IOCTL" = 0; then
5 kx GNULIB_IOCTL=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_IOCTL="($GNULIB_IOCTL || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_isblank = no; then
5 kx HAVE_ISBLANK=0
5 kx fi
5 kx
5 kx if test $HAVE_ISBLANK = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS isblank.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_ISBLANK $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_ISBLANK" != 1; then
5 kx if test "$GNULIB_ISBLANK" = 0; then
5 kx GNULIB_ISBLANK=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_ISBLANK="($GNULIB_ISBLANK || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS listen.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_LISTEN" != 1; then
5 kx if test "$GNULIB_LISTEN" = 0; then
5 kx GNULIB_LISTEN=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_LISTEN="($GNULIB_LISTEN || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS localtime-buffer.$ac_objext"
5 kx
5 kx
5 kx
5 kx if test "$gl_threads_api" = posix; then
5 kx # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
5 kx # pthread_rwlock_* functions.
5 kx ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
5 kx "
5 kx if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
5 kx
5 kx $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #if __FreeBSD__ == 4
5 kx error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
5 kx #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
5 kx && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
5 kx error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
5 kx #else
5 kx int x = (int)PTHREAD_MUTEX_RECURSIVE;
5 kx return !x;
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx :
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_LOCK $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_lstat = yes; then
5 kx
5 kx case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
5 kx solaris* | *no)
5 kx REPLACE_LSTAT=1
5 kx ;;
5 kx esac
5 kx else
5 kx HAVE_LSTAT=0
5 kx fi
5 kx
5 kx if test $REPLACE_LSTAT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS lstat.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_LSTAT" != 1; then
5 kx if test "$GNULIB_LSTAT" = 0; then
5 kx GNULIB_LSTAT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_LSTAT="($GNULIB_LSTAT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_func_malloc_posix = yes; then
5 kx
5 kx $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
5 kx
5 kx else
5 kx REPLACE_MALLOC=1
5 kx fi
5 kx
5 kx if test $REPLACE_MALLOC = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS malloc.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_MALLOC_POSIX" != 1; then
5 kx if test "$GNULIB_MALLOC_POSIX" = 0; then
5 kx GNULIB_MALLOC_POSIX=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_MALLOC_POSIX="($GNULIB_MALLOC_POSIX || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx nanosleep_save_libs=$LIBS
5 kx
5 kx # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
5 kx # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
5 kx LIB_NANOSLEEP=
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
5 kx $as_echo_n "checking for library containing nanosleep... " >&6; }
5 kx if ${ac_cv_search_nanosleep+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char nanosleep ();
5 kx int
5 kx main ()
5 kx {
5 kx return nanosleep ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' rt posix4; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_nanosleep=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_nanosleep+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_nanosleep+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_nanosleep=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
5 kx $as_echo "$ac_cv_search_nanosleep" >&6; }
5 kx ac_res=$ac_cv_search_nanosleep
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx test "$ac_cv_search_nanosleep" = "none required" ||
5 kx LIB_NANOSLEEP=$ac_cv_search_nanosleep
5 kx fi
5 kx
5 kx if test "x$ac_cv_search_nanosleep" != xno; then
5 kx
5 kx
5 kx if test $APPLE_UNIVERSAL_BUILD = 1; then
5 kx # A universal build on Apple Mac OS X platforms.
5 kx # The test result would be 'no (mishandles large arguments)' in 64-bit
5 kx # mode but 'yes' in 32-bit mode. But we need a configuration result that
5 kx # is valid in both modes.
5 kx gl_cv_func_nanosleep='no (mishandles large arguments)'
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5
5 kx $as_echo_n "checking for working nanosleep... " >&6; }
5 kx if ${gl_cv_func_nanosleep+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in linux*) # Guess it halfway works when the kernel is Linux.
5 kx gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
5 kx mingw*) # Guess no on native Windows.
5 kx gl_cv_func_nanosleep='guessing no' ;;
5 kx *) # If we don't know, obey --enable-cross-guesses.
5 kx gl_cv_func_nanosleep="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #include <limits.h>
5 kx #include <signal.h>
5 kx #if HAVE_SYS_TIME_H
5 kx #include <sys/time.h>
5 kx #endif
5 kx #include <time.h>
5 kx #include <unistd.h>
5 kx #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
5 kx #define TYPE_MAXIMUM(t) \
5 kx ((t) (! TYPE_SIGNED (t) \
5 kx ? (t) -1 \
5 kx : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5 kx
5 kx #if HAVE_DECL_ALARM
5 kx static void
5 kx check_for_SIGALRM (int sig)
5 kx {
5 kx if (sig != SIGALRM)
5 kx _exit (1);
5 kx }
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static struct timespec ts_sleep;
5 kx static struct timespec ts_remaining;
5 kx /* Test for major problems first. */
5 kx if (! nanosleep)
5 kx return 2;
5 kx ts_sleep.tv_sec = 0;
5 kx ts_sleep.tv_nsec = 1;
5 kx #if HAVE_DECL_ALARM
5 kx {
5 kx static struct sigaction act;
5 kx act.sa_handler = check_for_SIGALRM;
5 kx sigemptyset (&act.sa_mask);
5 kx sigaction (SIGALRM, &act, NULL);
5 kx alarm (1);
5 kx if (nanosleep (&ts_sleep, NULL) != 0)
5 kx return 3;
5 kx /* Test for a minor problem: the handling of large arguments. */
5 kx ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
5 kx ts_sleep.tv_nsec = 999999999;
5 kx alarm (1);
5 kx if (nanosleep (&ts_sleep, &ts_remaining) != -1)
5 kx return 4;
5 kx if (errno != EINTR)
5 kx return 5;
5 kx if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
5 kx return 6;
5 kx }
5 kx #else /* A simpler test for native Windows. */
5 kx if (nanosleep (&ts_sleep, &ts_remaining) < 0)
5 kx return 3;
5 kx #endif
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_nanosleep=yes
5 kx else
5 kx case $? in 4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)';; *) gl_cv_func_nanosleep=no;;
5 kx esac
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5
5 kx $as_echo "$gl_cv_func_nanosleep" >&6; }
5 kx case "$gl_cv_func_nanosleep" in
5 kx *yes)
5 kx REPLACE_NANOSLEEP=0
5 kx ;;
5 kx *)
5 kx REPLACE_NANOSLEEP=1
5 kx case "$gl_cv_func_nanosleep" in
5 kx *"mishandles large arguments"*)
5 kx
5 kx $as_echo "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h
5 kx
5 kx ;;
5 kx *)
5 kx # The replacement uses select(). Add $LIBSOCKET to $LIB_NANOSLEEP.
5 kx for ac_lib in $LIBSOCKET; do
5 kx case " $LIB_NANOSLEEP " in
5 kx *" $ac_lib "*) ;;
5 kx *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
5 kx esac
5 kx done
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx else
5 kx HAVE_NANOSLEEP=0
5 kx fi
5 kx LIBS=$nanosleep_save_libs
5 kx
5 kx if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS nanosleep.$ac_objext"
5 kx
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_NANOSLEEP" != 1; then
5 kx if test "$GNULIB_NANOSLEEP" = 0; then
5 kx GNULIB_NANOSLEEP=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_NANOSLEEP="($GNULIB_NANOSLEEP || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
5 kx $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
5 kx if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <netinet/in.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_netinet_in_h_selfcontained=yes
5 kx else
5 kx gl_cv_header_netinet_in_h_selfcontained=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
5 kx $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
5 kx if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
5 kx NETINET_IN_H=''
5 kx else
5 kx NETINET_IN_H='netinet/in.h'
5 kx for ac_header in netinet/in.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_netinet_in_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_NETINET_IN_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_netinet_in_h='<'netinet/in.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
5 kx $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
5 kx if ${gl_cv_next_netinet_in_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_netinet_in_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <netinet/in.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'netinet/in.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_netinet_in_h
5 kx gl_cv_next_netinet_in_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_netinet_in_h='<'netinet/in.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
5 kx $as_echo "$gl_cv_next_netinet_in_h" >&6; }
5 kx fi
5 kx NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'netinet/in.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_netinet_in_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_netinet_in_h = yes; then
5 kx HAVE_NETINET_IN_H=1
5 kx else
5 kx HAVE_NETINET_IN_H=0
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test -n "$NETINET_IN_H"; then
5 kx GL_GENERATE_NETINET_IN_H_TRUE=
5 kx GL_GENERATE_NETINET_IN_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_NETINET_IN_H_TRUE='#'
5 kx GL_GENERATE_NETINET_IN_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ERRNO_H:$REPLACE_STRERROR_0" != :0; then
5 kx REPLACE_PERROR=1
5 kx fi
5 kx case ${gl_cv_func_strerror_r_works-unset} in
5 kx unset|*yes)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
5 kx $as_echo_n "checking whether perror matches strerror... " >&6; }
5 kx if ${gl_cv_func_perror_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_perror_works="guessing yes" ;;
5 kx # Guess yes on native Windows.
5 kx mingw*) gl_cv_func_perror_works="guessing yes" ;;
5 kx # Otherwise obey --enable-cross-guesses.
5 kx *) gl_cv_func_perror_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <errno.h>
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx char *str = strerror (-1);
5 kx if (!getenv("CONFTEST_OUTPUT")) return 0;
5 kx if (!str) str = "";
5 kx puts (str);
5 kx errno = -1;
5 kx perror ("");
5 kx return 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
5 kx && cmp conftest.txt1 conftest.txt2 >/dev/null; then
5 kx gl_cv_func_perror_works=yes
5 kx else
5 kx gl_cv_func_perror_works=no
5 kx fi
5 kx rm -rf conftest.txt1 conftest.txt2
5 kx else
5 kx gl_cv_func_perror_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
5 kx $as_echo "$gl_cv_func_perror_works" >&6; }
5 kx case "$gl_cv_func_perror_works" in
5 kx *yes) ;;
5 kx *) REPLACE_PERROR=1 ;;
5 kx esac
5 kx ;;
5 kx *)
5 kx REPLACE_PERROR=1
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_PERROR = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS perror.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PERROR" != 1; then
5 kx if test "$GNULIB_PERROR" = 0; then
5 kx GNULIB_PERROR=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PERROR="($GNULIB_PERROR || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PERROR 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_pipe != yes; then
5 kx HAVE_PIPE=0
5 kx fi
5 kx
5 kx if test $HAVE_PIPE = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS pipe.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PIPE" != 1; then
5 kx if test "$GNULIB_PIPE" = 0; then
5 kx GNULIB_PIPE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PIPE="($GNULIB_PIPE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_pthread_h='<'pthread.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5
5 kx $as_echo_n "checking absolute name of <pthread.h>... " >&6; }
5 kx if ${gl_cv_next_pthread_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_pthread_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'pthread.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_pthread_h
5 kx gl_cv_next_pthread_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_pthread_h='<'pthread.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5
5 kx $as_echo "$gl_cv_next_pthread_h" >&6; }
5 kx fi
5 kx NEXT_PTHREAD_H=$gl_cv_next_pthread_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'pthread.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_pthread_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_pthread_h = yes; then
5 kx HAVE_PTHREAD_H=1
5 kx
5 kx
5 kx if { case "$host_os" in mingw*) true;; *) false;; esac; } \
5 kx && test $gl_threads_api = windows; then
5 kx HAVE_PTHREAD_H=0
5 kx fi
5 kx
5 kx else
5 kx HAVE_PTHREAD_H=0
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default
5 kx #if HAVE_PTHREAD_H
5 kx #include <pthread.h>
5 kx #endif
5 kx "
5 kx if test "x$ac_cv_type_pthread_t" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_PTHREAD_T 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default
5 kx #if HAVE_PTHREAD_H
5 kx #include <pthread.h>
5 kx #endif
5 kx "
5 kx if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_PTHREAD_SPINLOCK_T 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_type_pthread_t != yes; then
5 kx HAVE_PTHREAD_T=0
5 kx fi
5 kx if test $ac_cv_type_pthread_spinlock_t != yes; then
5 kx HAVE_PTHREAD_SPINLOCK_T=0
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_CREATE_DETACHED" >&5
5 kx $as_echo_n "checking for PTHREAD_CREATE_DETACHED... " >&6; }
5 kx if ${gl_cv_const_PTHREAD_CREATE_DETACHED+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int x = PTHREAD_CREATE_DETACHED;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_const_PTHREAD_CREATE_DETACHED=yes
5 kx else
5 kx gl_cv_const_PTHREAD_CREATE_DETACHED=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_CREATE_DETACHED" >&5
5 kx $as_echo "$gl_cv_const_PTHREAD_CREATE_DETACHED" >&6; }
5 kx if test $gl_cv_const_PTHREAD_CREATE_DETACHED != yes; then
5 kx HAVE_PTHREAD_CREATE_DETACHED=0
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE" >&5
5 kx $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE... " >&6; }
5 kx if ${gl_cv_const_PTHREAD_MUTEX_RECURSIVE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int x = PTHREAD_MUTEX_RECURSIVE;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_const_PTHREAD_MUTEX_RECURSIVE=yes
5 kx else
5 kx gl_cv_const_PTHREAD_MUTEX_RECURSIVE=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&5
5 kx $as_echo "$gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&6; }
5 kx if test $gl_cv_const_PTHREAD_MUTEX_RECURSIVE != yes; then
5 kx HAVE_PTHREAD_MUTEX_RECURSIVE=0
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ROBUST" >&5
5 kx $as_echo_n "checking for PTHREAD_MUTEX_ROBUST... " >&6; }
5 kx if ${gl_cv_const_PTHREAD_MUTEX_ROBUST+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int x = PTHREAD_MUTEX_ROBUST;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_const_PTHREAD_MUTEX_ROBUST=yes
5 kx else
5 kx gl_cv_const_PTHREAD_MUTEX_ROBUST=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_ROBUST" >&5
5 kx $as_echo "$gl_cv_const_PTHREAD_MUTEX_ROBUST" >&6; }
5 kx if test $gl_cv_const_PTHREAD_MUTEX_ROBUST != yes; then
5 kx HAVE_PTHREAD_MUTEX_ROBUST=0
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED" >&5
5 kx $as_echo_n "checking for PTHREAD_PROCESS_SHARED... " >&6; }
5 kx if ${gl_cv_const_PTHREAD_PROCESS_SHARED+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int x = PTHREAD_PROCESS_SHARED;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_const_PTHREAD_PROCESS_SHARED=yes
5 kx else
5 kx gl_cv_const_PTHREAD_PROCESS_SHARED=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_PROCESS_SHARED" >&5
5 kx $as_echo "$gl_cv_const_PTHREAD_PROCESS_SHARED" >&6; }
5 kx if test $gl_cv_const_PTHREAD_PROCESS_SHARED != yes; then
5 kx HAVE_PTHREAD_PROCESS_SHARED=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx LIB_PTHREAD="$LIBPMULTITHREAD"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if { case "$host_os" in mingw*) true;; *) false;; esac; } \
5 kx && test $gl_threads_api = windows; then
5 kx REPLACE_PTHREAD_CREATE=1
5 kx REPLACE_PTHREAD_ATTR_INIT=1
5 kx REPLACE_PTHREAD_ATTR_GETDETACHSTATE=1
5 kx REPLACE_PTHREAD_ATTR_SETDETACHSTATE=1
5 kx REPLACE_PTHREAD_ATTR_DESTROY=1
5 kx REPLACE_PTHREAD_SELF=1
5 kx REPLACE_PTHREAD_EQUAL=1
5 kx REPLACE_PTHREAD_DETACH=1
5 kx REPLACE_PTHREAD_JOIN=1
5 kx REPLACE_PTHREAD_EXIT=1
5 kx else
5 kx if test $HAVE_PTHREAD_H = 0; then
5 kx HAVE_PTHREAD_CREATE=0
5 kx HAVE_PTHREAD_ATTR_INIT=0
5 kx HAVE_PTHREAD_ATTR_GETDETACHSTATE=0
5 kx HAVE_PTHREAD_ATTR_SETDETACHSTATE=0
5 kx HAVE_PTHREAD_ATTR_DESTROY=0
5 kx HAVE_PTHREAD_SELF=0
5 kx HAVE_PTHREAD_EQUAL=0
5 kx HAVE_PTHREAD_DETACH=0
5 kx HAVE_PTHREAD_JOIN=0
5 kx HAVE_PTHREAD_EXIT=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create exists as a global function" >&5
5 kx $as_echo_n "checking whether pthread_create exists as a global function... " >&6; }
5 kx if ${gl_cv_func_pthread_create+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx saved_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBPMULTITHREAD"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx int pthread_create (void);
5 kx int main ()
5 kx {
5 kx return pthread_create ();
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_func_pthread_create=yes
5 kx else
5 kx gl_cv_func_pthread_create=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$saved_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_create" >&5
5 kx $as_echo "$gl_cv_func_pthread_create" >&6; }
5 kx if test $gl_cv_func_pthread_create = no; then
5 kx REPLACE_PTHREAD_CREATE=1
5 kx REPLACE_PTHREAD_ATTR_INIT=1
5 kx
5 kx $as_echo "#define PTHREAD_CREATE_IS_INLINE 1" >>confdefs.h
5 kx
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS pthread-thread.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PTHREAD_THREAD" != 1; then
5 kx if test "$GNULIB_PTHREAD_THREAD" = 0; then
5 kx GNULIB_PTHREAD_THREAD=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PTHREAD_THREAD="($GNULIB_PTHREAD_THREAD || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PTHREAD_THREAD 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is a macro" >&5
5 kx $as_echo_n "checking whether pthread_sigmask is a macro... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_macro+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx #ifdef pthread_sigmask
5 kx headers_define_pthread_sigmask
5 kx #endif
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "headers_define_pthread_sigmask" >/dev/null 2>&1; then :
5 kx gl_cv_func_pthread_sigmask_macro=yes
5 kx else
5 kx gl_cv_func_pthread_sigmask_macro=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_macro" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_macro" >&6; }
5 kx
5 kx LIB_PTHREAD_SIGMASK=
5 kx
5 kx if test $gl_cv_func_pthread_sigmask_macro = yes; then
5 kx HAVE_PTHREAD_SIGMASK=0
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx else
5 kx
5 kx
5 kx
5 kx if test "$gl_threads_api" = posix; then
5 kx if test $ac_cv_func_pthread_sigmask = yes; then
5 kx :
5 kx else
5 kx if test -n "$LIBMULTITHREAD"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
5 kx $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBMULTITHREAD"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
5 kx else
5 kx gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gl_save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
5 kx if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
5 kx LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
5 kx else
5 kx HAVE_PTHREAD_SIGMASK=0
5 kx fi
5 kx else
5 kx HAVE_PTHREAD_SIGMASK=0
5 kx fi
5 kx fi
5 kx else
5 kx if test $ac_cv_func_pthread_sigmask = yes; then
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx else
5 kx HAVE_PTHREAD_SIGMASK=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $HAVE_PTHREAD_SIGMASK = 1; then
5 kx
5 kx
5 kx if test -z "$LIB_PTHREAD_SIGMASK"; then
5 kx case " $LIBS " in
5 kx *' -pthread '*) ;;
5 kx *' -lpthread '*) ;;
5 kx *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
5 kx $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_in_libc_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx freebsd* | hpux* | solaris | solaris2.[2-9]*)
5 kx gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
5 kx *)
5 kx gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx #include <stddef.h>
5 kx int main ()
5 kx {
5 kx sigset_t set;
5 kx sigemptyset (&set);
5 kx return pthread_sigmask (1729, &set, NULL) != 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_pthread_sigmask_in_libc_works=no
5 kx else
5 kx gl_cv_func_pthread_sigmask_in_libc_works=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
5 kx case "$gl_cv_func_pthread_sigmask_in_libc_works" in
5 kx *no)
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx
5 kx $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac;;
5 kx esac
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
5 kx $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_return_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx cygwin*)
5 kx gl_cv_func_pthread_sigmask_return_works="guessing no";;
5 kx *)
5 kx gl_cv_func_pthread_sigmask_return_works="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx #include <stddef.h>
5 kx int main ()
5 kx {
5 kx sigset_t set;
5 kx sigemptyset (&set);
5 kx if (pthread_sigmask (1729, &set, NULL) == -1)
5 kx return 1;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_pthread_sigmask_return_works=yes
5 kx else
5 kx gl_cv_func_pthread_sigmask_return_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LIBS="$gl_save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
5 kx case "$gl_cv_func_pthread_sigmask_return_works" in
5 kx *no)
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx
5 kx $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
5 kx $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_unblock_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx case "$host_os" in
5 kx irix*)
5 kx gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
5 kx *)
5 kx gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
5 kx esac
5 kx gl_save_LIBS=$LIBS
5 kx LIBS="$LIBS $LIBMULTITHREAD"
5 kx if test "$cross_compiling" = yes; then :
5 kx :
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx #include <unistd.h>
5 kx static volatile int sigint_occurred;
5 kx static void
5 kx sigint_handler (int sig)
5 kx {
5 kx sigint_occurred++;
5 kx }
5 kx int main ()
5 kx {
5 kx sigset_t set;
5 kx int pid = getpid ();
5 kx char command[80];
5 kx signal (SIGINT, sigint_handler);
5 kx sigemptyset (&set);
5 kx sigaddset (&set, SIGINT);
5 kx if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
5 kx return 1;
5 kx sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
5 kx if (!(system (command) == 0))
5 kx return 2;
5 kx sleep (2);
5 kx if (!(sigint_occurred == 0))
5 kx return 3;
5 kx if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
5 kx return 4;
5 kx if (!(sigint_occurred == 1)) /* This fails on IRIX. */
5 kx return 5;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx :
5 kx else
5 kx gl_cv_func_pthread_sigmask_unblock_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LIBS=$gl_save_LIBS
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
5 kx case "$gl_cv_func_pthread_sigmask_unblock_works" in
5 kx *no)
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx
5 kx $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS pthread_sigmask.$ac_objext"
5 kx
5 kx
5 kx if test $HAVE_PTHREAD_SIGMASK = 1; then
5 kx
5 kx $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PTHREAD_SIGMASK" != 1; then
5 kx if test "$GNULIB_PTHREAD_SIGMASK" = 0; then
5 kx GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PTHREAD_SIGMASK="($GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
5 kx $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
5 kx if ${gl_cv_func_svid_putenv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_svid_putenv="guessing yes" ;;
5 kx # Guess no on native Windows.
5 kx mingw*) gl_cv_func_svid_putenv="guessing no" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_svid_putenv="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx /* Put it in env. */
5 kx if (putenv ("CONFTEST_putenv=val"))
5 kx return 1;
5 kx
5 kx /* Try to remove it. */
5 kx if (putenv ("CONFTEST_putenv"))
5 kx return 2;
5 kx
5 kx /* Make sure it was deleted. */
5 kx if (getenv ("CONFTEST_putenv") != 0)
5 kx return 3;
5 kx
5 kx return 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_svid_putenv=yes
5 kx else
5 kx gl_cv_func_svid_putenv=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
5 kx $as_echo "$gl_cv_func_svid_putenv" >&6; }
5 kx case "$gl_cv_func_svid_putenv" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_PUTENV=1
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_PUTENV = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl__putenv" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL__PUTENV $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PUTENV" != 1; then
5 kx if test "$GNULIB_PUTENV" = 0; then
5 kx GNULIB_PUTENV=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_func in raise
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
5 kx if test "x$ac_cv_func_raise" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_RAISE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test $ac_cv_func_raise = no; then
5 kx HAVE_RAISE=0
5 kx else
5 kx
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx REPLACE_RAISE=1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_type_sigset_t = yes; then
5 kx ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
5 kx if test "x$ac_cv_func_sigprocmask" = xyes; then :
5 kx gl_cv_func_sigprocmask=1
5 kx fi
5 kx
5 kx fi
5 kx if test -z "$gl_cv_func_sigprocmask"; then
5 kx HAVE_POSIX_SIGNALBLOCKING=0
5 kx fi
5 kx
5 kx if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
5 kx :
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS raise.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_RAISE" != 1; then
5 kx if test "$GNULIB_RAISE" = 0; then
5 kx GNULIB_RAISE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_RAISE="($GNULIB_RAISE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_header in sched.h
5 kx do :
5 kx ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if HAVE_SYS_CDEFS_H
5 kx #include <sys/cdefs.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_header_sched_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SCHED_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sched_h='<'sched.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
5 kx $as_echo_n "checking absolute name of <sched.h>... " >&6; }
5 kx if ${gl_cv_next_sched_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sched.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sched.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sched_h
5 kx gl_cv_next_sched_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
5 kx $as_echo "$gl_cv_next_sched_h" >&6; }
5 kx fi
5 kx NEXT_SCHED_H=$gl_cv_next_sched_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sched.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sched_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_sched_h" = yes; then
5 kx HAVE_SCHED_H=1
5 kx else
5 kx HAVE_SCHED_H=0
5 kx fi
5 kx
5 kx
5 kx if test "$HAVE_SCHED_H" = 1; then
5 kx ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#if HAVE_SYS_CDEFS_H
5 kx #include <sys/cdefs.h>
5 kx #endif
5 kx #include <sched.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_struct_sched_param" = xyes; then :
5 kx HAVE_STRUCT_SCHED_PARAM=1
5 kx else
5 kx HAVE_STRUCT_SCHED_PARAM=0
5 kx fi
5 kx
5 kx else
5 kx HAVE_STRUCT_SCHED_PARAM=0
5 kx case "$host_os" in
5 kx os2*)
5 kx ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h>
5 kx "
5 kx if test "x$ac_cv_type_struct_sched_param" = xyes; then :
5 kx HAVE_STRUCT_SCHED_PARAM=1
5 kx fi
5 kx
5 kx ;;
5 kx vms)
5 kx ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <pthread.h>
5 kx "
5 kx if test "x$ac_cv_type_struct_sched_param" = xyes; then :
5 kx HAVE_STRUCT_SCHED_PARAM=1
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx if test "$ac_cv_header_sys_cdefs_h" = yes; then
5 kx HAVE_SYS_CDEFS_H=1
5 kx else
5 kx HAVE_SYS_CDEFS_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx REPLACE_SELECT=1
5 kx else
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
5 kx $as_echo_n "checking whether select supports a 0 argument... " >&6; }
5 kx if ${gl_cv_func_select_supports0+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx # Guess no on Interix.
5 kx interix*) gl_cv_func_select_supports0="guessing no";;
5 kx # Guess yes otherwise.
5 kx *) gl_cv_func_select_supports0="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/time.h>
5 kx #if HAVE_SYS_SELECT_H
5 kx #include <sys/select.h>
5 kx #endif
5 kx int main ()
5 kx {
5 kx struct timeval timeout;
5 kx timeout.tv_sec = 0;
5 kx timeout.tv_usec = 5;
5 kx return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_select_supports0=yes
5 kx else
5 kx gl_cv_func_select_supports0=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
5 kx $as_echo "$gl_cv_func_select_supports0" >&6; }
5 kx case "$gl_cv_func_select_supports0" in
5 kx *yes) ;;
5 kx *) REPLACE_SELECT=1 ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
5 kx $as_echo_n "checking whether select detects invalid fds... " >&6; }
5 kx if ${gl_cv_func_select_detects_ebadf+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx # Guess yes on Linux systems.
5 kx linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/time.h>
5 kx #if HAVE_SYS_SELECT_H
5 kx # include <sys/select.h>
5 kx #endif
5 kx #include <unistd.h>
5 kx #include <errno.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx fd_set set;
5 kx dup2(0, 16);
5 kx FD_ZERO(&set);
5 kx FD_SET(16, &set);
5 kx close(16);
5 kx struct timeval timeout;
5 kx timeout.tv_sec = 0;
5 kx timeout.tv_usec = 5;
5 kx return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_select_detects_ebadf=yes
5 kx else
5 kx gl_cv_func_select_detects_ebadf=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
5 kx $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
5 kx case $gl_cv_func_select_detects_ebadf in
5 kx *yes) ;;
5 kx *) REPLACE_SELECT=1 ;;
5 kx esac
5 kx fi
5 kx
5 kx LIB_SELECT="$LIBSOCKET"
5 kx if test $REPLACE_SELECT = 1; then
5 kx case "$host_os" in
5 kx mingw*)
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define WIN32_LEAN_AND_MEAN
5 kx #include <windows.h>
5 kx int
5 kx main ()
5 kx {
5 kx MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx else
5 kx LIB_SELECT="$LIB_SELECT -luser32"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx if test $REPLACE_SELECT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS select.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SELECT" != 1; then
5 kx if test "$GNULIB_SELECT" = 0; then
5 kx GNULIB_SELECT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SELECT="($GNULIB_SELECT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_setenv = no; then
5 kx HAVE_SETENV=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
5 kx $as_echo_n "checking whether setenv validates arguments... " >&6; }
5 kx if ${gl_cv_func_setenv_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_setenv_works="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <errno.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx int result = 0;
5 kx {
5 kx if (setenv ("", "", 0) != -1)
5 kx result |= 1;
5 kx else if (errno != EINVAL)
5 kx result |= 2;
5 kx }
5 kx {
5 kx if (setenv ("a", "=", 1) != 0)
5 kx result |= 4;
5 kx else if (strcmp (getenv ("a"), "=") != 0)
5 kx result |= 8;
5 kx }
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_setenv_works=yes
5 kx else
5 kx gl_cv_func_setenv_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
5 kx $as_echo "$gl_cv_func_setenv_works" >&6; }
5 kx case "$gl_cv_func_setenv_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_SETENV=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS setenv.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SETENV" != 1; then
5 kx if test "$GNULIB_SETENV" = 0; then
5 kx GNULIB_SETENV=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SETENV="($GNULIB_SETENV || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS setsockopt.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SETSOCKOPT" != 1; then
5 kx if test "$GNULIB_SETSOCKOPT" = 0; then
5 kx GNULIB_SETSOCKOPT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SETSOCKOPT="($GNULIB_SETSOCKOPT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_sigaction = yes; then
5 kx ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
5 kx HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
5 kx fi
5 kx else
5 kx HAVE_SIGACTION=0
5 kx fi
5 kx
5 kx if test $HAVE_SIGACTION = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS sigaction.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
5 kx #include <signal.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_siginfo_t" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SIGINFO_T 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_type_siginfo_t = no; then
5 kx HAVE_SIGINFO_T=0
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SIGACTION" != 1; then
5 kx if test "$GNULIB_SIGACTION" = 0; then
5 kx GNULIB_SIGACTION=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SIGACTION="($GNULIB_SIGACTION || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_signal_h='<'signal.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
5 kx $as_echo_n "checking absolute name of <signal.h>... " >&6; }
5 kx if ${gl_cv_next_signal_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <signal.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'signal.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_signal_h
5 kx gl_cv_next_signal_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
5 kx $as_echo "$gl_cv_next_signal_h" >&6; }
5 kx fi
5 kx NEXT_SIGNAL_H=$gl_cv_next_signal_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'signal.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_signal_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # AIX declares sig_atomic_t to already include volatile, and C89 compilers
5 kx # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
5 kx ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
5 kx #include <signal.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
5 kx
5 kx else
5 kx HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
5 kx #include <signal.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_sighandler_t" = xyes; then :
5 kx
5 kx else
5 kx HAVE_SIGHANDLER_T=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_type_sigset_t = yes; then
5 kx ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
5 kx if test "x$ac_cv_func_sigprocmask" = xyes; then :
5 kx gl_cv_func_sigprocmask=1
5 kx fi
5 kx
5 kx fi
5 kx if test -z "$gl_cv_func_sigprocmask"; then
5 kx HAVE_POSIX_SIGNALBLOCKING=0
5 kx fi
5 kx
5 kx if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS sigprocmask.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SIGPROCMASK" != 1; then
5 kx if test "$GNULIB_SIGPROCMASK" = 0; then
5 kx GNULIB_SIGPROCMASK=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SIGPROCMASK="($GNULIB_SIGPROCMASK || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_sleep" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_SLEEP $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx if test $ac_cv_have_decl_sleep != yes; then
5 kx HAVE_SLEEP=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
5 kx $as_echo_n "checking for working sleep... " >&6; }
5 kx if ${gl_cv_func_sleep_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_sleep_works="guessing yes" ;;
5 kx # Guess no on native Windows.
5 kx mingw*) gl_cv_func_sleep_works="guessing no" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_sleep_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #include <unistd.h>
5 kx #include <signal.h>
5 kx static void
5 kx handle_alarm (int sig)
5 kx {
5 kx if (sig != SIGALRM)
5 kx _exit (2);
5 kx }
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx /* Failure to compile this test due to missing alarm is okay,
5 kx since all such platforms (mingw) also lack sleep. */
5 kx unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
5 kx unsigned int remaining;
5 kx signal (SIGALRM, handle_alarm);
5 kx alarm (1);
5 kx remaining = sleep (pentecost);
5 kx if (remaining > pentecost)
5 kx return 3;
5 kx if (remaining <= pentecost - 10)
5 kx return 4;
5 kx return 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_sleep_works=yes
5 kx else
5 kx gl_cv_func_sleep_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
5 kx $as_echo "$gl_cv_func_sleep_works" >&6; }
5 kx case "$gl_cv_func_sleep_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_SLEEP=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS sleep.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SLEEP" != 1; then
5 kx if test "$GNULIB_SLEEP" = 0; then
5 kx GNULIB_SLEEP=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS socket.$ac_objext"
5 kx
5 kx fi
5 kx # When this module is used, sockets may actually occur as file descriptors,
5 kx # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SOCKET" != 1; then
5 kx if test "$GNULIB_SOCKET" = 0; then
5 kx GNULIB_SOCKET=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SOCKET="($GNULIB_SOCKET || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
5 kx /* <sys/types.h> is not needed according to POSIX, but the
5 kx <sys/socket.h> in i386-unknown-freebsd4.10 and
5 kx powerpc-apple-darwin5.5 required it. */
5 kx #include <sys/types.h>
5 kx #if HAVE_SYS_SOCKET_H
5 kx # include <sys/socket.h>
5 kx #elif HAVE_WS2TCPIP_H
5 kx # include <ws2tcpip.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_type_socklen_t" = xyes; then :
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5 kx $as_echo_n "checking for socklen_t equivalent... " >&6; }
5 kx if ${gl_cv_socklen_t_equiv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Systems have either "struct sockaddr *" or
5 kx # "void *" as the second argument to getpeername
5 kx gl_cv_socklen_t_equiv=
5 kx for arg2 in "struct sockaddr" void; do
5 kx for t in int size_t "unsigned int" "long int" "unsigned long int"; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx int getpeername (int, $arg2 *, $t *);
5 kx int
5 kx main ()
5 kx {
5 kx $t len;
5 kx getpeername (0, 0, &len);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_socklen_t_equiv="$t"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test "$gl_cv_socklen_t_equiv" != "" && break
5 kx done
5 kx test "$gl_cv_socklen_t_equiv" != "" && break
5 kx done
5 kx if test "$gl_cv_socklen_t_equiv" = ""; then
5 kx as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
5 kx $as_echo "$gl_cv_socklen_t_equiv" >&6; }
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define socklen_t $gl_cv_socklen_t_equiv
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
5 kx $as_echo_n "checking for working stdalign.h... " >&6; }
5 kx if ${gl_cv_header_working_stdalign_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdalign.h>
5 kx #include <stddef.h>
5 kx
5 kx /* Test that alignof yields a result consistent with offsetof.
5 kx This catches GCC bug 52023
5 kx <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
5 kx #ifdef __cplusplus
5 kx template <class t> struct alignof_helper { char a; t b; };
5 kx # define ao(type) offsetof (alignof_helper<type>, b)
5 kx #else
5 kx # define ao(type) offsetof (struct { char a; type b; }, b)
5 kx #endif
5 kx char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
5 kx char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
5 kx char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
5 kx
5 kx /* Test _Alignas only on platforms where gnulib can help. */
5 kx #if \
5 kx ((defined __cplusplus && 201103 <= __cplusplus) \
5 kx || (defined __APPLE__ && defined __MACH__ \
5 kx ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
5 kx : __GNUC__) \
5 kx || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
5 kx || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
5 kx || 1300 <= _MSC_VER)
5 kx struct alignas_test { char c; char alignas (8) alignas_8; };
5 kx char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
5 kx ? 1 : -1];
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_working_stdalign_h=yes
5 kx else
5 kx gl_cv_header_working_stdalign_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
5 kx $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
5 kx
5 kx if test $gl_cv_header_working_stdalign_h = yes; then
5 kx STDALIGN_H=''
5 kx else
5 kx STDALIGN_H='stdalign.h'
5 kx fi
5 kx
5 kx
5 kx if test -n "$STDALIGN_H"; then
5 kx GL_GENERATE_STDALIGN_H_TRUE=
5 kx GL_GENERATE_STDALIGN_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_STDALIGN_H_TRUE='#'
5 kx GL_GENERATE_STDALIGN_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_stdlib_h='<'stdlib.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
5 kx $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
5 kx if ${gl_cv_next_stdlib_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'stdlib.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_stdlib_h
5 kx gl_cv_next_stdlib_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
5 kx $as_echo "$gl_cv_next_stdlib_h" >&6; }
5 kx fi
5 kx NEXT_STDLIB_H=$gl_cv_next_stdlib_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'stdlib.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_stdlib_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_have_decl_strerror_r = no; then
5 kx HAVE_DECL_STRERROR_R=0
5 kx fi
5 kx
5 kx if test $ac_cv_func_strerror_r = yes; then
5 kx if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
5 kx if test $gl_cv_func_strerror_r_posix_signature = yes; then
5 kx case "$gl_cv_func_strerror_r_works" in
5 kx *no) REPLACE_STRERROR_R=1 ;;
5 kx esac
5 kx else
5 kx REPLACE_STRERROR_R=1
5 kx fi
5 kx else
5 kx REPLACE_STRERROR_R=1
5 kx fi
5 kx fi
5 kx
5 kx if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS strerror_r.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_STRERROR_R" != 1; then
5 kx if test "$GNULIB_STRERROR_R" = 0; then
5 kx GNULIB_STRERROR_R=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_STRERROR_R="($GNULIB_STRERROR_R || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_STRERROR_R_POSIX $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_symlink = no; then
5 kx HAVE_SYMLINK=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
5 kx $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
5 kx if ${gl_cv_func_symlink_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on Linux systems.
5 kx linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;;
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_symlink_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <unistd.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx if (!symlink ("a", "conftest.link/"))
5 kx result |= 1;
5 kx if (symlink ("conftest.f", "conftest.lnk2"))
5 kx result |= 2;
5 kx else if (!symlink ("a", "conftest.lnk2/"))
5 kx result |= 4;
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_symlink_works=yes
5 kx else
5 kx gl_cv_func_symlink_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f conftest.f conftest.link conftest.lnk2
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
5 kx $as_echo "$gl_cv_func_symlink_works" >&6; }
5 kx case "$gl_cv_func_symlink_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_SYMLINK=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SYMLINK" != 1; then
5 kx if test "$GNULIB_SYMLINK" = 0; then
5 kx GNULIB_SYMLINK=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_ioctl_h = yes; then
5 kx HAVE_SYS_IOCTL_H=1
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
5 kx $as_echo_n "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
5 kx if ${gl_cv_decl_ioctl_in_sys_ioctl_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/ioctl.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx (void) ioctl;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_decl_ioctl_in_sys_ioctl_h=yes
5 kx else
5 kx gl_cv_decl_ioctl_in_sys_ioctl_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
5 kx $as_echo "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
5 kx else
5 kx HAVE_SYS_IOCTL_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/ioctl.h>... " >&6; }
5 kx if ${gl_cv_next_sys_ioctl_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_ioctl_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/ioctl.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/ioctl.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_ioctl_h
5 kx gl_cv_next_sys_ioctl_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
5 kx $as_echo "$gl_cv_next_sys_ioctl_h" >&6; }
5 kx fi
5 kx NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/ioctl.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_uio_h='<'sys/uio.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
5 kx if ${gl_cv_next_sys_uio_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_uio_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/uio.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/uio.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_uio_h
5 kx gl_cv_next_sys_uio_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_uio_h='<'sys/uio.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
5 kx $as_echo "$gl_cv_next_sys_uio_h" >&6; }
5 kx fi
5 kx NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/uio.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_uio_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_uio_h = yes; then
5 kx HAVE_SYS_UIO_H=1
5 kx else
5 kx HAVE_SYS_UIO_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_threads_api = posix; then
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBMULTITHREAD"
5 kx for ac_func in pthread_atfork
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
5 kx if test "x$ac_cv_func_pthread_atfork" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_PTHREAD_ATFORK 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx LIBS="$gl_save_LIBS"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_have_decl_unsetenv = no; then
5 kx HAVE_DECL_UNSETENV=0
5 kx fi
5 kx for ac_func in unsetenv
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
5 kx if test "x$ac_cv_func_unsetenv" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UNSETENV 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test $ac_cv_func_unsetenv = no; then
5 kx HAVE_UNSETENV=0
5 kx else
5 kx HAVE_UNSETENV=1
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
5 kx $as_echo_n "checking for unsetenv() return type... " >&6; }
5 kx if ${gt_cv_func_unsetenv_ret+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #undef _BSD
5 kx #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
5 kx #include <stdlib.h>
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx int unsetenv (const char *name);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_func_unsetenv_ret='int'
5 kx else
5 kx gt_cv_func_unsetenv_ret='void'
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
5 kx $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
5 kx if test $gt_cv_func_unsetenv_ret = 'void'; then
5 kx
5 kx $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
5 kx
5 kx REPLACE_UNSETENV=1
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
5 kx $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
5 kx if ${gl_cv_func_unsetenv_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <errno.h>
5 kx extern char **environ;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx char entry1[] = "a=1";
5 kx char entry2[] = "b=2";
5 kx char *env[] = { entry1, entry2, NULL };
5 kx if (putenv ((char *) "a=1")) return 1;
5 kx if (putenv (entry2)) return 2;
5 kx entry2[0] = 'a';
5 kx unsetenv ("a");
5 kx if (getenv ("a")) return 3;
5 kx if (!unsetenv ("") || errno != EINVAL) return 4;
5 kx entry2[0] = 'b';
5 kx environ = env;
5 kx if (!getenv ("a")) return 5;
5 kx entry2[0] = 'a';
5 kx unsetenv ("a");
5 kx if (getenv ("a")) return 6;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_unsetenv_works=yes
5 kx else
5 kx gl_cv_func_unsetenv_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
5 kx $as_echo "$gl_cv_func_unsetenv_works" >&6; }
5 kx case "$gl_cv_func_unsetenv_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_UNSETENV=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_UNSETENV" != 1; then
5 kx if test "$GNULIB_UNSETENV" = 0; then
5 kx GNULIB_UNSETENV=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_UNSETENV="($GNULIB_UNSETENV || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "useconds_t" "ac_cv_type_useconds_t" "$ac_includes_default"
5 kx if test "x$ac_cv_type_useconds_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx $as_echo "#define useconds_t unsigned int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_func_usleep = no; then
5 kx HAVE_USLEEP=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep allows large arguments" >&5
5 kx $as_echo_n "checking whether usleep allows large arguments... " >&6; }
5 kx if ${gl_cv_func_usleep_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_usleep_works="guessing yes" ;;
5 kx # Guess no on native Windows.
5 kx mingw*) gl_cv_func_usleep_works="guessing no" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_usleep_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <unistd.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return !!usleep (1000000);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_usleep_works=yes
5 kx else
5 kx gl_cv_func_usleep_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_usleep_works" >&5
5 kx $as_echo "$gl_cv_func_usleep_works" >&6; }
5 kx case "$gl_cv_func_usleep_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_USLEEP=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS usleep.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_USLEEP" != 1; then
5 kx if test "$GNULIB_USLEEP" = 0; then
5 kx GNULIB_USLEEP=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_USLEEP="($GNULIB_USLEEP || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_USLEEP 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --enable-valgrind-tests was given.
5 kx if test "${enable_valgrind_tests+set}" = set; then :
5 kx enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
5 kx else
5 kx opt_valgrind_tests=yes
5 kx fi
5 kx
5 kx
5 kx # Run self-tests under valgrind?
5 kx if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
5 kx for ac_prog in valgrind
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_VALGRIND+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$VALGRIND"; then
5 kx ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_VALGRIND="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx VALGRIND=$ac_cv_prog_VALGRIND
5 kx if test -n "$VALGRIND"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
5 kx $as_echo "$VALGRIND" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$VALGRIND" && break
5 kx done
5 kx
5 kx
5 kx if test "$VALGRIND"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5
5 kx $as_echo_n "checking for valgrind options for tests... " >&6; }
5 kx if ${gl_cv_opt_valgrind_tests+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full"
5 kx $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 ||
5 kx gl_cv_opt_valgrind_tests=no
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5
5 kx $as_echo "$gl_cv_opt_valgrind_tests" >&6; }
5 kx
5 kx if test "$gl_cv_opt_valgrind_tests" != no; then
5 kx VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests"
5 kx else
5 kx VALGRIND=
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx abs_aux_dir=`cd "$ac_aux_dir"; pwd`
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_wchar_h='<'wchar.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
5 kx $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
5 kx if ${gl_cv_next_wchar_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_wchar_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <wchar.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'wchar.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_wchar_h
5 kx gl_cv_next_wchar_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_wchar_h='<'wchar.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
5 kx $as_echo "$gl_cv_next_wchar_h" >&6; }
5 kx fi
5 kx NEXT_WCHAR_H=$gl_cv_next_wchar_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'wchar.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_wchar_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_wchar_h = yes; then
5 kx HAVE_WCHAR_H=1
5 kx else
5 kx HAVE_WCHAR_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gt_cv_c_wint_t = yes; then
5 kx HAVE_WINT_T=1
5 kx else
5 kx HAVE_WINT_T=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS windows-mutex.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS windows-once.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS windows-recmutex.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS windows-rwlock.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS windows-thread.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_LIBOBJS="$gltests_LIBOBJS windows-tls.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx LIBTESTS_LIBDEPS="$gltests_libdeps"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
5 kx i\
5 kx 0
5 kx q
5 kx '
5 kx gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
5 kx i\
5 kx 0
5 kx q
5 kx '
5 kx gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
5 kx i\
5 kx 0
5 kx q
5 kx '
5 kx
5 kx
5 kx if test "$HAVE_LIBUNISTRING" = yes; then
5 kx LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
5 kx LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
5 kx LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5 kx $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5 kx if ${am_cv_langinfo_codeset+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <langinfo.h>
5 kx int
5 kx main ()
5 kx {
5 kx char* cs = nl_langinfo(CODESET); return !cs;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx am_cv_langinfo_codeset=yes
5 kx else
5 kx am_cv_langinfo_codeset=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5 kx $as_echo "$am_cv_langinfo_codeset" >&6; }
5 kx if test $am_cv_langinfo_codeset = yes; then
5 kx
5 kx $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx GNULIB_NL_LANGINFO=0;
5 kx HAVE_NL_LANGINFO=1;
5 kx REPLACE_NL_LANGINFO=0;
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_LOCALECONV=0;
5 kx GNULIB_SETLOCALE=0;
5 kx GNULIB_SETLOCALE_NULL=0;
5 kx GNULIB_DUPLOCALE=0;
5 kx GNULIB_LOCALENAME=0;
5 kx HAVE_NEWLOCALE=1;
5 kx HAVE_DUPLOCALE=1;
5 kx HAVE_FREELOCALE=1;
5 kx REPLACE_LOCALECONV=0;
5 kx REPLACE_SETLOCALE=0;
5 kx REPLACE_NEWLOCALE=0;
5 kx REPLACE_DUPLOCALE=0;
5 kx REPLACE_FREELOCALE=0;
5 kx REPLACE_STRUCT_LCONV=0;
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
5 kx $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
5 kx if ${gl_cv_header_locale_has_locale_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <locale.h>
5 kx locale_t x;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_locale_has_locale_t=yes
5 kx else
5 kx gl_cv_header_locale_has_locale_t=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
5 kx $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
5 kx
5 kx
5 kx if test $ac_cv_header_xlocale_h = yes; then
5 kx HAVE_XLOCALE_H=1
5 kx if test $gl_cv_header_locale_has_locale_t = yes; then
5 kx gl_cv_header_locale_h_needs_xlocale_h=no
5 kx else
5 kx gl_cv_header_locale_h_needs_xlocale_h=yes
5 kx fi
5 kx HAVE_LOCALE_T=1
5 kx else
5 kx HAVE_XLOCALE_H=0
5 kx gl_cv_header_locale_h_needs_xlocale_h=no
5 kx if test $gl_cv_header_locale_has_locale_t = yes; then
5 kx HAVE_LOCALE_T=1
5 kx else
5 kx HAVE_LOCALE_T=0
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5 kx $as_echo_n "checking for LC_MESSAGES... " >&6; }
5 kx if ${gt_cv_val_LC_MESSAGES+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <locale.h>
5 kx int
5 kx main ()
5 kx {
5 kx return LC_MESSAGES
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gt_cv_val_LC_MESSAGES=yes
5 kx else
5 kx gt_cv_val_LC_MESSAGES=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
5 kx $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
5 kx if test $gt_cv_val_LC_MESSAGES = yes; then
5 kx
5 kx $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_uselocale = yes; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
5 kx $as_echo_n "checking whether uselocale works... " >&6; }
5 kx if ${gt_cv_func_uselocale_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx # Guess no on AIX and z/OS, yes otherwise.
5 kx case "$host_os" in
5 kx aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;;
5 kx *) gt_cv_func_uselocale_works="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx #if HAVE_XLOCALE_H
5 kx # include <xlocale.h>
5 kx #endif
5 kx locale_t loc1;
5 kx int main ()
5 kx {
5 kx uselocale (NULL);
5 kx setlocale (LC_ALL, "en_US.UTF-8");
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gt_cv_func_uselocale_works=yes
5 kx else
5 kx gt_cv_func_uselocale_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
5 kx $as_echo "$gt_cv_func_uselocale_works" >&6; }
5 kx else
5 kx gt_cv_func_uselocale_works=no
5 kx fi
5 kx case "$gt_cv_func_uselocale_works" in
5 kx *yes)
5 kx
5 kx $as_echo "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx case "$gt_cv_func_uselocale_works" in
5 kx *yes)
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
5 kx $as_echo_n "checking for fake locale system (OpenBSD)... " >&6; }
5 kx if ${gt_cv_locale_fake+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx openbsd*) gt_cv_locale_fake="guessing yes" ;;
5 kx *) gt_cv_locale_fake="guessing no" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx #if HAVE_XLOCALE_H
5 kx # include <xlocale.h>
5 kx #endif
5 kx int main ()
5 kx {
5 kx locale_t loc1, loc2;
5 kx if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
5 kx if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
5 kx loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
5 kx loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
5 kx return !(loc1 == loc2);
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gt_cv_locale_fake=yes
5 kx else
5 kx gt_cv_locale_fake=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
5 kx $as_echo "$gt_cv_locale_fake" >&6; }
5 kx ;;
5 kx *) gt_cv_locale_fake=no ;;
5 kx esac
5 kx case "$gt_cv_locale_fake" in
5 kx *yes)
5 kx
5 kx $as_echo "#define HAVE_FAKE_LOCALES 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$gt_cv_func_uselocale_works" in
5 kx *yes)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
5 kx $as_echo_n "checking for Solaris 11.4 locale system... " >&6; }
5 kx if ${gt_cv_locale_solaris114+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$host_os" in
5 kx solaris*)
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx struct _LC_locale_t *x;
5 kx locale_t y;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx *y = x;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_locale_solaris114=yes
5 kx else
5 kx gt_cv_locale_solaris114=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx ;;
5 kx *) gt_cv_locale_solaris114=no ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
5 kx $as_echo "$gt_cv_locale_solaris114" >&6; }
5 kx ;;
5 kx *) gt_cv_locale_solaris114=no ;;
5 kx esac
5 kx if test $gt_cv_locale_solaris114 = yes; then
5 kx
5 kx $as_echo "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx case "$gt_cv_func_uselocale_works" in
5 kx *yes)
5 kx for ac_func in getlocalename_l
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
5 kx if test "x$ac_cv_func_getlocalename_l" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_GETLOCALENAME_L 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx gt_nameless_locales=no
5 kx case "$host_os" in
5 kx aix*)
5 kx gt_nameless_locales=yes
5 kx
5 kx $as_echo "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
5 kx $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
5 kx if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$host_os" in
5 kx # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
5 kx *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
5 kx gl_cv_func_setlocale_null_all_mtsafe=no ;;
5 kx # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
5 kx *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
5 kx gl_cv_func_setlocale_null_all_mtsafe=yes ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *)
5 kx gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
5 kx $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
5 kx case "$host_os" in
5 kx mingw*) ;;
5 kx *)
5 kx if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
5 kx gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
5 kx fi
5 kx ;;
5 kx esac
5 kx case "$gl_cv_func_setlocale_null_all_mtsafe" in
5 kx *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
5 kx *) SETLOCALE_NULL_ALL_MTSAFE=0 ;;
5 kx esac
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
5 kx _ACEOF
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
5 kx $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
5 kx if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$host_os" in
5 kx # Guess no on OpenBSD, AIX.
5 kx openbsd* | aix*)
5 kx gl_cv_func_setlocale_null_one_mtsafe=no ;;
5 kx # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
5 kx *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
5 kx gl_cv_func_setlocale_null_one_mtsafe=yes ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *)
5 kx gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
5 kx $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
5 kx case "$host_os" in
5 kx mingw*) ;;
5 kx *)
5 kx if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
5 kx gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
5 kx fi
5 kx ;;
5 kx esac
5 kx case "$gl_cv_func_setlocale_null_one_mtsafe" in
5 kx *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
5 kx *) SETLOCALE_NULL_ONE_MTSAFE=0 ;;
5 kx esac
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
5 kx _ACEOF
5 kx
5 kx
5 kx if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
5 kx case "$host_os" in
5 kx mingw*) LIB_SETLOCALE_NULL= ;;
5 kx *)
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
5 kx $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
5 kx if ${gl_cv_have_weak+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_have_weak=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern void xyzzy ();
5 kx #pragma weak xyzzy
5 kx int
5 kx main ()
5 kx {
5 kx xyzzy();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_have_weak=maybe
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test $gl_cv_have_weak = maybe; then
5 kx if test "$cross_compiling" = yes; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __ELF__
5 kx Extensible Linking Format
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
5 kx gl_cv_have_weak="guessing yes"
5 kx else
5 kx gl_cv_have_weak="guessing no"
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdio.h>
5 kx #pragma weak fputs
5 kx int main ()
5 kx {
5 kx return (fputs == NULL);
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_have_weak=yes
5 kx else
5 kx gl_cv_have_weak=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx case " $LDFLAGS " in
5 kx *" -static "*) gl_cv_have_weak=no ;;
5 kx esac
5 kx case "$gl_cv_have_weak" in
5 kx *yes)
5 kx case "$host_os" in
5 kx freebsd* | dragonfly*)
5 kx : > conftest1.c
5 kx $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
5 kx cat <<EOF > conftest2.c
5 kx #include <pthread.h>
5 kx #pragma weak pthread_mutexattr_gettype
5 kx int main ()
5 kx {
5 kx return (pthread_mutexattr_gettype != NULL);
5 kx }
5 kx EOF
5 kx $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
5 kx || gl_cv_have_weak=no
5 kx rm -f conftest1.c libempty.so conftest2.c conftest
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
5 kx $as_echo "$gl_cv_have_weak" >&6; }
5 kx case "$gl_cv_have_weak" in
5 kx *yes)
5 kx
5 kx $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$gl_cv_have_weak" in
5 kx *yes) LIB_SETLOCALE_NULL= ;;
5 kx *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx else
5 kx LIB_SETLOCALE_NULL=
5 kx fi
5 kx
5 kx
5 kx
5 kx if true; then
5 kx GL_COND_LIBTOOL_TRUE=
5 kx GL_COND_LIBTOOL_FALSE='#'
5 kx else
5 kx GL_COND_LIBTOOL_TRUE='#'
5 kx GL_COND_LIBTOOL_FALSE=
5 kx fi
5 kx
5 kx gl_cond_libtool=true
5 kx gl_m4_base='lib/gl/m4'
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_source_base='lib/gl'
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_ICONV=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_iconv_h='<'iconv.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
5 kx $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
5 kx if ${gl_cv_next_iconv_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_iconv_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <iconv.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'iconv.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_iconv_h
5 kx gl_cv_next_iconv_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_iconv_h='<'iconv.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
5 kx $as_echo "$gl_cv_next_iconv_h" >&6; }
5 kx fi
5 kx NEXT_ICONV_H=$gl_cv_next_iconv_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'iconv.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_iconv_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$am_cv_func_iconv" = yes; then
5 kx
5 kx
5 kx ICONV_H='iconv.h'
5 kx if test -n "$ICONV_H"; then
5 kx GL_GENERATE_ICONV_H_TRUE=
5 kx GL_GENERATE_ICONV_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_ICONV_H_TRUE='#'
5 kx GL_GENERATE_ICONV_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <iconv.h>
5 kx #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
5 kx gnu_iconv
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "gnu_iconv" >/dev/null 2>&1; then :
5 kx gl_func_iconv_gnu=yes
5 kx else
5 kx gl_func_iconv_gnu=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx if test $gl_func_iconv_gnu = no; then
5 kx iconv_flavor=
5 kx case "$host_os" in
5 kx aix*) iconv_flavor=ICONV_FLAVOR_AIX ;;
5 kx irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
5 kx hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
5 kx osf*) iconv_flavor=ICONV_FLAVOR_OSF ;;
5 kx solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
5 kx openedition*) iconv_flavor=ICONV_FLAVOR_ZOS ;;
5 kx esac
5 kx if test -n "$iconv_flavor"; then
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define ICONV_FLAVOR $iconv_flavor
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx ICONV_H='iconv.h'
5 kx if test -n "$ICONV_H"; then
5 kx GL_GENERATE_ICONV_H_TRUE=
5 kx GL_GENERATE_ICONV_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_ICONV_H_TRUE='#'
5 kx GL_GENERATE_ICONV_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx REPLACE_ICONV_OPEN=1
5 kx
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test $REPLACE_ICONV_OPEN = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgl_LIBOBJS="$lgl_LIBOBJS iconv_open.$ac_objext"
5 kx
5 kx fi
5 kx if test $REPLACE_ICONV = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgl_LIBOBJS="$lgl_LIBOBJS iconv.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgl_LIBOBJS="$lgl_LIBOBJS iconv_close.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
5 kx $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
5 kx if ${gl_cv_c_inline_effective+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test $ac_cv_c_inline = no; then
5 kx gl_cv_c_inline_effective=no
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifdef __NO_INLINE__
5 kx #error "inline is not effective"
5 kx #endif
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_c_inline_effective=yes
5 kx else
5 kx gl_cv_c_inline_effective=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
5 kx $as_echo "$gl_cv_c_inline_effective" >&6; }
5 kx if test $gl_cv_c_inline_effective = yes; then
5 kx
5 kx $as_echo "#define HAVE_INLINE 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
5 kx $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
5 kx if ${gl_cv_ld_output_def+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$enable_shared" = no; then
5 kx gl_cv_ld_output_def="not needed, shared libraries are disabled"
5 kx else
5 kx gl_ldflags_save=$LDFLAGS
5 kx LDFLAGS="-Wl,--output-def,conftest.def"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_ld_output_def=yes
5 kx else
5 kx gl_cv_ld_output_def=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx rm -f conftest.def
5 kx LDFLAGS="$gl_ldflags_save"
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
5 kx $as_echo "$gl_cv_ld_output_def" >&6; }
5 kx if test "x$gl_cv_ld_output_def" = "xyes"; then
5 kx HAVE_LD_OUTPUT_DEF_TRUE=
5 kx HAVE_LD_OUTPUT_DEF_FALSE='#'
5 kx else
5 kx HAVE_LD_OUTPUT_DEF_TRUE='#'
5 kx HAVE_LD_OUTPUT_DEF_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx # Check whether --enable-ld-version-script was given.
5 kx if test "${enable_ld_version_script+set}" = set; then :
5 kx enableval=$enable_ld_version_script; have_ld_version_script=$enableval
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
5 kx $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
5 kx if ${gl_cv_sys_ld_version_script+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_sys_ld_version_script=no
5 kx save_LDFLAGS=$LDFLAGS
5 kx LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5 kx echo foo >conftest.map
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx else
5 kx cat > conftest.map <<EOF
5 kx VERS_1 {
5 kx global: sym;
5 kx };
5 kx
5 kx VERS_2 {
5 kx global: sym;
5 kx } VERS_1;
5 kx EOF
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_sys_ld_version_script=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx rm -f conftest.map
5 kx LDFLAGS=$save_LDFLAGS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
5 kx $as_echo "$gl_cv_sys_ld_version_script" >&6; }
5 kx have_ld_version_script=$gl_cv_sys_ld_version_script
5 kx fi
5 kx
5 kx if test "$have_ld_version_script" = yes; then
5 kx HAVE_LD_VERSION_SCRIPT_TRUE=
5 kx HAVE_LD_VERSION_SCRIPT_FALSE='#'
5 kx else
5 kx HAVE_LD_VERSION_SCRIPT_TRUE='#'
5 kx HAVE_LD_VERSION_SCRIPT_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx CFLAG_VISIBILITY=
5 kx HAVE_VISIBILITY=0
5 kx if test -n "$GCC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
5 kx $as_echo_n "checking whether the -Werror option is usable... " >&6; }
5 kx if ${gl_cv_cc_vis_werror+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_CFLAGS="$CFLAGS"
5 kx CFLAGS="$CFLAGS -Werror"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_cc_vis_werror=yes
5 kx else
5 kx gl_cv_cc_vis_werror=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CFLAGS="$gl_save_CFLAGS"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
5 kx $as_echo "$gl_cv_cc_vis_werror" >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
5 kx $as_echo_n "checking for simple visibility declarations... " >&6; }
5 kx if ${gl_cv_cc_visibility+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_CFLAGS="$CFLAGS"
5 kx CFLAGS="$CFLAGS -fvisibility=hidden"
5 kx if test $gl_cv_cc_vis_werror = yes; then
5 kx CFLAGS="$CFLAGS -Werror"
5 kx fi
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern __attribute__((__visibility__("hidden"))) int hiddenvar;
5 kx extern __attribute__((__visibility__("default"))) int exportedvar;
5 kx extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
5 kx extern __attribute__((__visibility__("default"))) int exportedfunc (void);
5 kx void dummyfunc (void) {}
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_cc_visibility=yes
5 kx else
5 kx gl_cv_cc_visibility=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CFLAGS="$gl_save_CFLAGS"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5 kx $as_echo "$gl_cv_cc_visibility" >&6; }
5 kx if test $gl_cv_cc_visibility = yes; then
5 kx CFLAG_VISIBILITY="-fvisibility=hidden"
5 kx HAVE_VISIBILITY=1
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_VISIBILITY $HAVE_VISIBILITY
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
5 kx $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
5 kx if ${gl_cv_c___inline+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx typedef int foo_t;
5 kx static __inline foo_t foo (void) { return 0; }
5 kx int
5 kx main ()
5 kx {
5 kx return foo ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_c___inline=yes
5 kx else
5 kx gl_cv_c___inline=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
5 kx $as_echo "$gl_cv_c___inline" >&6; }
5 kx if test $gl_cv_c___inline = yes; then
5 kx
5 kx $as_echo "#define HAVE___INLINE 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
5 kx $as_echo_n "checking for ssize_t... " >&6; }
5 kx if ${gt_cv_ssize_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx int
5 kx main ()
5 kx {
5 kx int x = sizeof (ssize_t *) + sizeof (ssize_t);
5 kx return !x;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_ssize_t=yes
5 kx else
5 kx gt_cv_ssize_t=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
5 kx $as_echo "$gt_cv_ssize_t" >&6; }
5 kx if test $gt_cv_ssize_t = no; then
5 kx
5 kx $as_echo "#define ssize_t int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_stdbool_h" = yes; then
5 kx case "$host_os" in
5 kx solaris*)
5 kx if test -z "$GCC"; then
5 kx STDBOOL_H='stdbool.h'
5 kx else
5 kx STDBOOL_H=''
5 kx fi
5 kx ;;
5 kx *)
5 kx STDBOOL_H=''
5 kx ;;
5 kx esac
5 kx else
5 kx STDBOOL_H='stdbool.h'
5 kx fi
5 kx
5 kx if test -n "$STDBOOL_H"; then
5 kx GL_GENERATE_STDBOOL_H_TRUE=
5 kx GL_GENERATE_STDBOOL_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_STDBOOL_H_TRUE='#'
5 kx GL_GENERATE_STDBOOL_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test "$ac_cv_type__Bool" = yes; then
5 kx HAVE__BOOL=1
5 kx else
5 kx HAVE__BOOL=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx STDDEF_H=
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
5 kx $as_echo_n "checking for good max_align_t... " >&6; }
5 kx if ${gl_cv_type_max_align_t+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stddef.h>
5 kx unsigned int s = sizeof (max_align_t);
5 kx #if defined __GNUC__ || defined __IBM__ALIGNOF__
5 kx int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
5 kx int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_type_max_align_t=yes
5 kx else
5 kx gl_cv_type_max_align_t=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
5 kx $as_echo "$gl_cv_type_max_align_t" >&6; }
5 kx if test $gl_cv_type_max_align_t = no; then
5 kx HAVE_MAX_ALIGN_T=0
5 kx STDDEF_H=stddef.h
5 kx fi
5 kx
5 kx if test $gt_cv_c_wchar_t = no; then
5 kx HAVE_WCHAR_T=0
5 kx STDDEF_H=stddef.h
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
5 kx $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
5 kx if ${gl_cv_decl_null_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stddef.h>
5 kx int test[2 * (sizeof NULL == sizeof (void *)) -1];
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_decl_null_works=yes
5 kx else
5 kx gl_cv_decl_null_works=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
5 kx $as_echo "$gl_cv_decl_null_works" >&6; }
5 kx if test $gl_cv_decl_null_works = no; then
5 kx REPLACE_NULL=1
5 kx STDDEF_H=stddef.h
5 kx fi
5 kx
5 kx
5 kx if test -n "$STDDEF_H"; then
5 kx GL_GENERATE_STDDEF_H_TRUE=
5 kx GL_GENERATE_STDDEF_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_STDDEF_H_TRUE='#'
5 kx GL_GENERATE_STDDEF_H_FALSE=
5 kx fi
5 kx
5 kx if test -n "$STDDEF_H"; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_stddef_h='<'stddef.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
5 kx $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
5 kx if ${gl_cv_next_stddef_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stddef.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'stddef.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_stddef_h
5 kx gl_cv_next_stddef_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
5 kx $as_echo "$gl_cv_next_stddef_h" >&6; }
5 kx fi
5 kx NEXT_STDDEF_H=$gl_cv_next_stddef_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'stddef.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_stddef_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx if test $gl_cond_libtool = false; then
5 kx gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
5 kx gl_libdeps="$gl_libdeps $LIBICONV"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_func in strverscmp
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
5 kx if test "x$ac_cv_func_strverscmp" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRVERSCMP 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test $ac_cv_func_strverscmp = no; then
5 kx HAVE_STRVERSCMP=0
5 kx fi
5 kx
5 kx if test $HAVE_STRVERSCMP = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgl_LIBOBJS="$lgl_LIBOBJS strverscmp.$ac_objext"
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx GNULIB_STRVERSCMP=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if { test "$HAVE_LIBUNISTRING" != yes \
5 kx || {
5 kx
5 kx
5 kx
5 kx test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
5 kx || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
5 kx && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
5 kx || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
5 kx && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
5 kx }
5 kx }
5 kx }
5 kx
5 kx
5 kx
5 kx
5 kx }
5 kx }; then
5 kx LIBUNISTRING_UNISTR_H='unistr.h'
5 kx else
5 kx LIBUNISTRING_UNISTR_H=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx if { test "$HAVE_LIBUNISTRING" != yes \
5 kx || {
5 kx
5 kx
5 kx
5 kx test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
5 kx || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
5 kx && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
5 kx || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
5 kx && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
5 kx }
5 kx }
5 kx }
5 kx
5 kx
5 kx
5 kx
5 kx }
5 kx }; then
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
5 kx else
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_UNISTR_U8_MBTOUCR 1
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx if { test "$HAVE_LIBUNISTRING" != yes \
5 kx || {
5 kx
5 kx
5 kx
5 kx test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
5 kx || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
5 kx && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
5 kx || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
5 kx && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
5 kx }
5 kx }
5 kx }
5 kx
5 kx
5 kx
5 kx
5 kx }
5 kx }; then
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
5 kx else
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_UNISTR_U8_UCTOMB 1
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx if { test "$HAVE_LIBUNISTRING" != yes \
5 kx || {
5 kx
5 kx
5 kx
5 kx test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
5 kx || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
5 kx && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
5 kx || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
5 kx && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
5 kx }
5 kx }
5 kx }
5 kx
5 kx
5 kx
5 kx
5 kx }
5 kx }; then
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
5 kx else
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
5 kx LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx if { test "$HAVE_LIBUNISTRING" != yes \
5 kx || {
5 kx
5 kx
5 kx
5 kx test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
5 kx || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
5 kx && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
5 kx || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
5 kx && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
5 kx }
5 kx }
5 kx }
5 kx
5 kx
5 kx
5 kx
5 kx }
5 kx }; then
5 kx LIBUNISTRING_UNITYPES_H='unitypes.h'
5 kx else
5 kx LIBUNISTRING_UNITYPES_H=
5 kx fi
5 kx
5 kx
5 kx # End of code from modules
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gltests_libdeps=
5 kx gltests_ltlibdeps=
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_source_base='lib/gltests'
5 kx lgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
5 kx
5 kx gl_module_indicator_condition=$lgltests_WITNESS
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS accept.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_ACCEPT" != 1; then
5 kx if test "$GNULIB_ACCEPT" = 0; then
5 kx GNULIB_ACCEPT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_ACCEPT="($GNULIB_ACCEPT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_alloca_works = no; then
5 kx :
5 kx fi
5 kx
5 kx # Define an additional variable used in the Makefile substitution.
5 kx if test $ac_cv_working_alloca_h = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
5 kx $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
5 kx if ${gl_cv_rpl_alloca+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #if defined __GNUC__ || defined _AIX || defined _MSC_VER
5 kx Need own alloca
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Need own alloca" >/dev/null 2>&1; then :
5 kx gl_cv_rpl_alloca=yes
5 kx else
5 kx gl_cv_rpl_alloca=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
5 kx $as_echo "$gl_cv_rpl_alloca" >&6; }
5 kx if test $gl_cv_rpl_alloca = yes; then
5 kx
5 kx $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5 kx
5 kx ALLOCA_H=alloca.h
5 kx else
5 kx ALLOCA_H=
5 kx fi
5 kx else
5 kx ALLOCA_H=alloca.h
5 kx fi
5 kx
5 kx if test -n "$ALLOCA_H"; then
5 kx GL_GENERATE_ALLOCA_H_TRUE=
5 kx GL_GENERATE_ALLOCA_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_ALLOCA_H_TRUE='#'
5 kx GL_GENERATE_ALLOCA_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx if test $ac_cv_working_alloca_h = yes; then
5 kx HAVE_ALLOCA_H=1
5 kx else
5 kx HAVE_ALLOCA_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_arpa_inet_h = yes; then
5 kx HAVE_ARPA_INET_H=1
5 kx else
5 kx HAVE_ARPA_INET_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
5 kx $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
5 kx if ${gl_cv_next_arpa_inet_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_arpa_inet_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <arpa/inet.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'arpa/inet.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_arpa_inet_h
5 kx gl_cv_next_arpa_inet_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
5 kx $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
5 kx fi
5 kx NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'arpa/inet.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h = yes; then
5 kx HAVE_WS2TCPIP_H=0
5 kx else
5 kx if test $ac_cv_header_ws2tcpip_h = yes; then
5 kx HAVE_WS2TCPIP_H=1
5 kx else
5 kx HAVE_WS2TCPIP_H=0
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS bind.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_BIND" != 1; then
5 kx if test "$GNULIB_BIND" = 0; then
5 kx GNULIB_BIND=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_BIND="($GNULIB_BIND || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
5 kx $as_echo_n "checking for a traditional french locale... " >&6; }
5 kx if ${gt_cv_locale_fr+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx #include <time.h>
5 kx #if HAVE_LANGINFO_CODESET
5 kx # include <langinfo.h>
5 kx #endif
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx struct tm t;
5 kx char buf[16];
5 kx int main () {
5 kx /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
5 kx imitates locale dependent behaviour by looking at the environment
5 kx variables, and all locales use the UTF-8 encoding. */
5 kx #if defined __BEOS__ || defined __HAIKU__
5 kx return 1;
5 kx #else
5 kx /* Check whether the given locale name is recognized by the system. */
5 kx # if defined _WIN32 && !defined __CYGWIN__
5 kx /* On native Windows, setlocale(category, "") looks at the system settings,
5 kx not at the environment variables. Also, when an encoding suffix such
5 kx as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
5 kx category of the locale to "C". */
5 kx if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
5 kx || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
5 kx return 1;
5 kx # else
5 kx if (setlocale (LC_ALL, "") == NULL) return 1;
5 kx # endif
5 kx /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
5 kx On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
5 kx is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
5 kx On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "646". In this situation,
5 kx some unit tests fail.
5 kx On MirBSD 10, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "UTF-8". */
5 kx # if HAVE_LANGINFO_CODESET
5 kx {
5 kx const char *cs = nl_langinfo (CODESET);
5 kx if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
5 kx || strcmp (cs, "UTF-8") == 0)
5 kx return 1;
5 kx }
5 kx # endif
5 kx # ifdef __CYGWIN__
5 kx /* On Cygwin, avoid locale names without encoding suffix, because the
5 kx locale_charset() function relies on the encoding suffix. Note that
5 kx LC_ALL is set on the command line. */
5 kx if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
5 kx # endif
5 kx /* Check whether in the abbreviation of the second month, the second
5 kx character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
5 kx one byte long. This excludes the UTF-8 encoding. */
5 kx t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
5 kx if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
5 kx # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
5 kx /* Check whether the decimal separator is a comma.
5 kx On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
5 kx are nl_langinfo(RADIXCHAR) are both ".". */
5 kx if (localeconv () ->decimal_point[0] != ',') return 1;
5 kx # endif
5 kx return 0;
5 kx #endif
5 kx }
5 kx
5 kx _ACEOF
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
5 kx case "$host_os" in
5 kx # Handle native Windows specially, because there setlocale() interprets
5 kx # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
5 kx # "fr" or "fra" as "French" or "French_France.1252",
5 kx # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
5 kx # "ja" as "Japanese" or "Japanese_Japan.932",
5 kx # and similar.
5 kx mingw*)
5 kx # Test for the native Windows locale name.
5 kx if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=French_France.1252
5 kx else
5 kx # None found.
5 kx gt_cv_locale_fr=none
5 kx fi
5 kx ;;
5 kx *)
5 kx # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
5 kx # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
5 kx # configure script would override the LC_ALL setting. Likewise for
5 kx # LC_CTYPE, which is also set at the beginning of the configure script.
5 kx # Test for the usual locale name.
5 kx if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr_FR
5 kx else
5 kx # Test for the locale name with explicit encoding suffix.
5 kx if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr_FR.ISO-8859-1
5 kx else
5 kx # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
5 kx if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr_FR.ISO8859-1
5 kx else
5 kx # Test for the HP-UX locale name.
5 kx if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr_FR.iso88591
5 kx else
5 kx # Test for the Solaris 7 locale name.
5 kx if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr
5 kx else
5 kx # None found.
5 kx gt_cv_locale_fr=none
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
5 kx $as_echo "$gt_cv_locale_fr" >&6; }
5 kx LOCALE_FR=$gt_cv_locale_fr
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
5 kx $as_echo_n "checking for a turkish Unicode locale... " >&6; }
5 kx if ${gt_cv_locale_tr_utf8+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx #include <time.h>
5 kx #if HAVE_LANGINFO_CODESET
5 kx # include <langinfo.h>
5 kx #endif
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx #include <wctype.h>
5 kx struct tm t;
5 kx char buf[16];
5 kx int main () {
5 kx /* On BeOS, locales are not implemented in libc. Rather, libintl
5 kx imitates locale dependent behaviour by looking at the environment
5 kx variables, and all locales use the UTF-8 encoding. But BeOS does not
5 kx implement the Turkish upper-/lowercase mappings. Therefore, let this
5 kx program return 1 on BeOS. */
5 kx /* Check whether the given locale name is recognized by the system. */
5 kx #if defined _WIN32 && !defined __CYGWIN__
5 kx /* On native Windows, setlocale(category, "") looks at the system settings,
5 kx not at the environment variables. Also, when an encoding suffix such
5 kx as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
5 kx category of the locale to "C". */
5 kx if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
5 kx || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
5 kx return 1;
5 kx #else
5 kx if (setlocale (LC_ALL, "") == NULL) return 1;
5 kx #endif
5 kx /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
5 kx On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
5 kx is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
5 kx On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "646". In this situation,
5 kx some unit tests fail. */
5 kx #if HAVE_LANGINFO_CODESET
5 kx {
5 kx const char *cs = nl_langinfo (CODESET);
5 kx if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
5 kx return 1;
5 kx }
5 kx #endif
5 kx #ifdef __CYGWIN__
5 kx /* On Cygwin, avoid locale names without encoding suffix, because the
5 kx locale_charset() function relies on the encoding suffix. Note that
5 kx LC_ALL is set on the command line. */
5 kx if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
5 kx #endif
5 kx /* Check whether in the abbreviation of the eighth month, the second
5 kx character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
5 kx two bytes long, with UTF-8 encoding. */
5 kx t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
5 kx if (strftime (buf, sizeof (buf), "%b", &t) < 4
5 kx || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
5 kx return 1;
5 kx /* Check whether the upper-/lowercase mappings are as expected for
5 kx Turkish. */
5 kx if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
5 kx || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
5 kx return 1;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
5 kx case "$host_os" in
5 kx # Handle native Windows specially, because there setlocale() interprets
5 kx # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
5 kx # "fr" or "fra" as "French" or "French_France.1252",
5 kx # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
5 kx # "ja" as "Japanese" or "Japanese_Japan.932",
5 kx # and similar.
5 kx mingw*)
5 kx # Test for the hypothetical native Windows locale name.
5 kx if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_tr_utf8=Turkish_Turkey.65001
5 kx else
5 kx # None found.
5 kx gt_cv_locale_tr_utf8=none
5 kx fi
5 kx ;;
5 kx *)
5 kx # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
5 kx # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
5 kx # configure script would override the LC_ALL setting. Likewise for
5 kx # LC_CTYPE, which is also set at the beginning of the configure script.
5 kx # Test for the usual locale name.
5 kx if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_tr_utf8=tr_TR
5 kx else
5 kx # Test for the locale name with explicit encoding suffix.
5 kx if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_tr_utf8=tr_TR.UTF-8
5 kx else
5 kx # Test for the Solaris 7 locale name.
5 kx if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_tr_utf8=tr.UTF-8
5 kx else
5 kx # None found.
5 kx gt_cv_locale_tr_utf8=none
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx else
5 kx gt_cv_locale_tr_utf8=none
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
5 kx $as_echo "$gt_cv_locale_tr_utf8" >&6; }
5 kx LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx REPLACE_CLOSE=1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
5 kx REPLACE_CLOSE=1
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $REPLACE_CLOSE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS close.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_CLOSE" != 1; then
5 kx if test "$GNULIB_CLOSE" = 0; then
5 kx GNULIB_CLOSE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_CLOSE="($GNULIB_CLOSE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS connect.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_CONNECT" != 1; then
5 kx if test "$GNULIB_CONNECT" = 0; then
5 kx GNULIB_CONNECT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_CONNECT="($GNULIB_CONNECT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_ctype_h='<'ctype.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
5 kx $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
5 kx if ${gl_cv_next_ctype_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <ctype.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'ctype.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_ctype_h
5 kx gl_cv_next_ctype_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
5 kx $as_echo "$gl_cv_next_ctype_h" >&6; }
5 kx fi
5 kx NEXT_CTYPE_H=$gl_cv_next_ctype_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'ctype.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_ctype_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
5 kx $as_echo_n "checking whether dup2 works... " >&6; }
5 kx if ${gl_cv_func_dup2_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx mingw*) # on this platform, dup2 always returns 0 for success
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx aix* | freebsd*)
5 kx # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
5 kx # not EBADF.
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx *-android*) # implemented using dup3(), which fails if oldfd == newfd
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
5 kx gl_cv_func_dup2_works="guessing no" ;;
5 kx *) gl_cv_func_dup2_works="guessing yes" ;;
5 kx esac
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #include <fcntl.h>
5 kx #include <limits.h>
5 kx #include <sys/resource.h>
5 kx #include <unistd.h>
5 kx #ifndef RLIM_SAVED_CUR
5 kx # define RLIM_SAVED_CUR RLIM_INFINITY
5 kx #endif
5 kx #ifndef RLIM_SAVED_MAX
5 kx # define RLIM_SAVED_MAX RLIM_INFINITY
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx int bad_fd = INT_MAX;
5 kx struct rlimit rlim;
5 kx if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
5 kx && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
5 kx && rlim.rlim_cur != RLIM_INFINITY
5 kx && rlim.rlim_cur != RLIM_SAVED_MAX
5 kx && rlim.rlim_cur != RLIM_SAVED_CUR)
5 kx bad_fd = rlim.rlim_cur;
5 kx #ifdef FD_CLOEXEC
5 kx if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
5 kx result |= 1;
5 kx #endif
5 kx if (dup2 (1, 1) != 1)
5 kx result |= 2;
5 kx #ifdef FD_CLOEXEC
5 kx if (fcntl (1, F_GETFD) != FD_CLOEXEC)
5 kx result |= 4;
5 kx #endif
5 kx close (0);
5 kx if (dup2 (0, 0) != -1)
5 kx result |= 8;
5 kx /* Many gnulib modules require POSIX conformance of EBADF. */
5 kx if (dup2 (2, bad_fd) == -1 && errno != EBADF)
5 kx result |= 16;
5 kx /* Flush out some cygwin core dumps. */
5 kx if (dup2 (2, -1) != -1 || errno != EBADF)
5 kx result |= 32;
5 kx dup2 (2, 255);
5 kx dup2 (2, 256);
5 kx /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
5 kx {
5 kx int fd = open (".", O_RDONLY);
5 kx if (fd == -1)
5 kx result |= 64;
5 kx else if (dup2 (fd, fd + 1) == -1)
5 kx result |= 128;
5 kx close (fd);
5 kx }
5 kx return result;
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_dup2_works=yes
5 kx else
5 kx gl_cv_func_dup2_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
5 kx $as_echo "$gl_cv_func_dup2_works" >&6; }
5 kx case "$gl_cv_func_dup2_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_DUP2=1
5 kx for ac_func in setdtablesize
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
5 kx if test "x$ac_cv_func_setdtablesize" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SETDTABLESIZE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx if test $REPLACE_DUP2 = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS dup2.$ac_objext"
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_DUP2" != 1; then
5 kx if test "$GNULIB_DUP2" = 0; then
5 kx GNULIB_DUP2=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_DUP2="($GNULIB_DUP2 || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_ENVIRON" != 1; then
5 kx if test "$GNULIB_ENVIRON" = 0; then
5 kx GNULIB_ENVIRON=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_ENVIRON="($GNULIB_ENVIRON || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_fcntl = no; then
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_fcntl = no; then
5 kx HAVE_FCNTL=0
5 kx else
5 kx REPLACE_FCNTL=1
5 kx fi
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
5 kx $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
5 kx if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case $host_os in
5 kx aix* | cygwin* | haiku*)
5 kx gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
5 kx *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
5 kx esac
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <errno.h>
5 kx #include <fcntl.h>
5 kx #include <limits.h>
5 kx #include <sys/resource.h>
5 kx #include <unistd.h>
5 kx #ifndef RLIM_SAVED_CUR
5 kx # define RLIM_SAVED_CUR RLIM_INFINITY
5 kx #endif
5 kx #ifndef RLIM_SAVED_MAX
5 kx # define RLIM_SAVED_MAX RLIM_INFINITY
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx int bad_fd = INT_MAX;
5 kx struct rlimit rlim;
5 kx if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
5 kx && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
5 kx && rlim.rlim_cur != RLIM_INFINITY
5 kx && rlim.rlim_cur != RLIM_SAVED_MAX
5 kx && rlim.rlim_cur != RLIM_SAVED_CUR)
5 kx bad_fd = rlim.rlim_cur;
5 kx if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
5 kx if (errno != EINVAL) result |= 2;
5 kx if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
5 kx if (errno != EINVAL) result |= 8;
5 kx /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
5 kx {
5 kx int fd;
5 kx fd = open (".", O_RDONLY);
5 kx if (fd == -1)
5 kx result |= 16;
5 kx else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
5 kx result |= 32;
5 kx
5 kx close (fd);
5 kx }
5 kx return result;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_fcntl_f_dupfd_works=yes
5 kx else
5 kx gl_cv_func_fcntl_f_dupfd_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
5 kx $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
5 kx case $gl_cv_func_fcntl_f_dupfd_works in
5 kx *yes) ;;
5 kx *)
5 kx
5 kx
5 kx if test $ac_cv_func_fcntl = no; then
5 kx HAVE_FCNTL=0
5 kx else
5 kx REPLACE_FCNTL=1
5 kx fi
5 kx
5 kx
5 kx $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
5 kx $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
5 kx if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <fcntl.h>
5 kx #ifndef F_DUPFD_CLOEXEC
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef __linux__
5 kx /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
5 kx it to support the semantics on older kernels that failed with EINVAL. */
5 kx choke me
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_fcntl_f_dupfd_cloexec=yes
5 kx else
5 kx gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx gl_cv_func_fcntl_f_dupfd_cloexec=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
5 kx $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
5 kx if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_fcntl = no; then
5 kx HAVE_FCNTL=0
5 kx else
5 kx REPLACE_FCNTL=1
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx
5 kx
5 kx if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS fcntl.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_FCNTL" != 1; then
5 kx if test "$GNULIB_FCNTL" = 0; then
5 kx GNULIB_FCNTL=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_FCNTL="($GNULIB_FCNTL || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_fcntl_h='<'fcntl.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
5 kx $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
5 kx if ${gl_cv_next_fcntl_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <fcntl.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'fcntl.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_fcntl_h
5 kx gl_cv_next_fcntl_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
5 kx $as_echo "$gl_cv_next_fcntl_h" >&6; }
5 kx fi
5 kx NEXT_FCNTL_H=$gl_cv_next_fcntl_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'fcntl.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_fcntl_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx REPLACE_FDOPEN=1
5 kx fi
5 kx
5 kx if test $REPLACE_FDOPEN = 0; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
5 kx $as_echo_n "checking whether fdopen sets errno... " >&6; }
5 kx if ${gl_cv_func_fdopen_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx mingw*) gl_cv_func_fdopen_works="guessing no" ;;
5 kx *) gl_cv_func_fdopen_works="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdio.h>
5 kx #include <errno.h>
5 kx int
5 kx main (void)
5 kx {
5 kx FILE *fp;
5 kx errno = 0;
5 kx fp = fdopen (-1, "r");
5 kx if (fp == NULL && errno == 0)
5 kx return 1;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_fdopen_works=yes
5 kx else
5 kx gl_cv_func_fdopen_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
5 kx $as_echo "$gl_cv_func_fdopen_works" >&6; }
5 kx case "$gl_cv_func_fdopen_works" in
5 kx *no) REPLACE_FDOPEN=1 ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $REPLACE_FDOPEN = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS fdopen.$ac_objext"
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_FDOPEN" != 1; then
5 kx if test "$GNULIB_FDOPEN" = 0; then
5 kx GNULIB_FDOPEN=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
5 kx $as_echo_n "checking for flexible array member... " >&6; }
5 kx if ${ac_cv_c_flexmember+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx #include <stdio.h>
5 kx #include <stddef.h>
5 kx struct m { struct m *next, **list; char name[]; };
5 kx struct s { struct s *p; struct m *m; int n; double d[]; };
5 kx int
5 kx main ()
5 kx {
5 kx int m = getchar ();
5 kx size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
5 kx nbytes += sizeof (struct s) - 1;
5 kx nbytes -= nbytes % sizeof (struct s);
5 kx struct s *p = malloc (nbytes);
5 kx p->p = p;
5 kx p->m = NULL;
5 kx p->d[0] = 0.0;
5 kx return p->d != (double *) NULL;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_flexmember=yes
5 kx else
5 kx ac_cv_c_flexmember=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
5 kx $as_echo "$ac_cv_c_flexmember" >&6; }
5 kx if test $ac_cv_c_flexmember = yes; then
5 kx
5 kx $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
5 kx
5 kx else
5 kx $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw* | solaris*)
5 kx REPLACE_FSTAT=1
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx if test $REPLACE_FSTAT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS fstat.$ac_objext"
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS stat-w32.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_FSTAT" != 1; then
5 kx if test "$GNULIB_FSTAT" = 0; then
5 kx GNULIB_FSTAT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_FSTAT="($GNULIB_FSTAT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_ftruncate = yes; then
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx REPLACE_FTRUNCATE=1
5 kx ;;
5 kx esac
5 kx
5 kx else
5 kx HAVE_FTRUNCATE=0
5 kx fi
5 kx
5 kx if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS ftruncate.$ac_objext"
5 kx
5 kx
5 kx for ac_func in chsize
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
5 kx if test "x$ac_cv_func_chsize" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_CHSIZE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_FTRUNCATE" != 1; then
5 kx if test "$GNULIB_FTRUNCATE" = 0; then
5 kx GNULIB_FTRUNCATE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_FTRUNCATE="($GNULIB_FTRUNCATE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
5 kx *yes,yes) ;;
5 kx *)
5 kx REPLACE_GETCWD=1
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_GETCWD = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS getcwd-lgpl.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_GETCWD" != 1; then
5 kx if test "$GNULIB_GETCWD" = 0; then
5 kx GNULIB_GETCWD=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_getdtablesize = yes &&
5 kx test $ac_cv_have_decl_getdtablesize = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
5 kx $as_echo_n "checking whether getdtablesize works... " >&6; }
5 kx if ${gl_cv_func_getdtablesize_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$host_os" in
5 kx vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
5 kx *)
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
5 kx gl_cv_func_getdtablesize_works="guessing no" ;;
5 kx *) gl_cv_func_getdtablesize_works="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <unistd.h>
5 kx int
5 kx main ()
5 kx {
5 kx int size = getdtablesize();
5 kx if (dup2 (0, getdtablesize()) != -1)
5 kx return 1;
5 kx if (size != getdtablesize())
5 kx return 2;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_getdtablesize_works=yes
5 kx else
5 kx gl_cv_func_getdtablesize_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
5 kx $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
5 kx case "$gl_cv_func_getdtablesize_works" in
5 kx *yes | "no (limitation)") ;;
5 kx *) REPLACE_GETDTABLESIZE=1 ;;
5 kx esac
5 kx else
5 kx HAVE_GETDTABLESIZE=0
5 kx fi
5 kx
5 kx if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS getdtablesize.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_GETDTABLESIZE" != 1; then
5 kx if test "$GNULIB_GETDTABLESIZE" = 0; then
5 kx GNULIB_GETDTABLESIZE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_GETDTABLESIZE="($GNULIB_GETDTABLESIZE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx gl_gettimeofday_timezone=void
5 kx if test $ac_cv_func_gettimeofday != yes; then
5 kx HAVE_GETTIMEOFDAY=0
5 kx else
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
5 kx $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
5 kx if ${gl_cv_func_gettimeofday_clobber+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx # When cross-compiling:
5 kx case "$host_os" in
5 kx # Guess all is fine on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
5 kx # Guess all is fine on musl systems.
5 kx *-musl*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
5 kx # Guess no on native Windows.
5 kx mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_gettimeofday_clobber="$gl_cross_guess_inverted" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx #include <sys/time.h>
5 kx #include <time.h>
5 kx #include <stdlib.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx time_t t = 0;
5 kx struct tm *lt;
5 kx struct tm saved_lt;
5 kx struct timeval tv;
5 kx lt = localtime (&t);
5 kx saved_lt = *lt;
5 kx gettimeofday (&tv, NULL);
5 kx return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_gettimeofday_clobber=no
5 kx else
5 kx gl_cv_func_gettimeofday_clobber=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
5 kx $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
5 kx
5 kx case "$gl_cv_func_gettimeofday_clobber" in
5 kx *yes)
5 kx REPLACE_GETTIMEOFDAY=1
5 kx
5 kx $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx NEED_LOCALTIME_BUFFER=1
5 kx REPLACE_GMTIME=1
5 kx REPLACE_LOCALTIME=1
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
5 kx $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
5 kx if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/time.h>
5 kx struct timeval c;
5 kx int gettimeofday (struct timeval *restrict, void *restrict);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx /* glibc uses struct timezone * rather than the POSIX void *
5 kx if _GNU_SOURCE is defined. However, since the only portable
5 kx use of gettimeofday uses NULL as the second parameter, and
5 kx since the glibc definition is actually more typesafe, it is
5 kx not worth wrapping this to get a compliant signature. */
5 kx int (*f) (struct timeval *restrict, void *restrict)
5 kx = gettimeofday;
5 kx int x = f (&c, 0);
5 kx return !(x | c.tv_sec | c.tv_usec);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_gettimeofday_posix_signature=yes
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/time.h>
5 kx int gettimeofday (struct timeval *restrict, struct timezone *restrict);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_gettimeofday_posix_signature=almost
5 kx else
5 kx gl_cv_func_gettimeofday_posix_signature=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
5 kx $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
5 kx if test $gl_cv_func_gettimeofday_posix_signature = almost; then
5 kx gl_gettimeofday_timezone='struct timezone'
5 kx elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
5 kx REPLACE_GETTIMEOFDAY=1
5 kx fi
5 kx if test $REPLACE_STRUCT_TIMEVAL = 1; then
5 kx REPLACE_GETTIMEOFDAY=1
5 kx fi
5 kx case "$host_os" in
5 kx mingw*) REPLACE_GETTIMEOFDAY=1 ;;
5 kx esac
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
5 kx _ACEOF
5 kx
5 kx
5 kx if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS gettimeofday.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_GETTIMEOFDAY" != 1; then
5 kx if test "$GNULIB_GETTIMEOFDAY" = 0; then
5 kx GNULIB_GETTIMEOFDAY=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_GETTIMEOFDAY="($GNULIB_GETTIMEOFDAY || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx HAVE_INET_PTON=1
5 kx INET_PTON_LIB=
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx if test $HAVE_WINSOCK2_H = 1; then
5 kx REPLACE_INET_PTON=1
5 kx ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_INET_PTON $ac_have_decl
5 kx _ACEOF
5 kx
5 kx if test $ac_cv_have_decl_inet_pton = yes; then
5 kx INET_PTON_LIB="-lws2_32"
5 kx else
5 kx HAVE_DECL_INET_PTON=0
5 kx fi
5 kx else
5 kx gl_save_LIBS=$LIBS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
5 kx $as_echo_n "checking for library containing inet_pton... " >&6; }
5 kx if ${ac_cv_search_inet_pton+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char inet_pton ();
5 kx int
5 kx main ()
5 kx {
5 kx return inet_pton ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' nsl resolv network; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_inet_pton=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_inet_pton+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_inet_pton+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_inet_pton=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
5 kx $as_echo "$ac_cv_search_inet_pton" >&6; }
5 kx ac_res=$ac_cv_search_inet_pton
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx
5 kx else
5 kx for ac_func in inet_pton
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
5 kx if test "x$ac_cv_func_inet_pton" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_INET_PTON 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test $ac_cv_func_inet_pton = no; then
5 kx HAVE_INET_PTON=0
5 kx fi
5 kx
5 kx fi
5 kx
5 kx LIBS=$gl_save_LIBS
5 kx
5 kx if test "$ac_cv_search_inet_pton" != "no" \
5 kx && test "$ac_cv_search_inet_pton" != "none required"; then
5 kx INET_PTON_LIB="$ac_cv_search_inet_pton"
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
5 kx #if HAVE_NETDB_H
5 kx # include <netdb.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_INET_PTON $ac_have_decl
5 kx _ACEOF
5 kx
5 kx if test $ac_cv_have_decl_inet_pton = no; then
5 kx HAVE_DECL_INET_PTON=0
5 kx fi
5 kx fi
5 kx
5 kx
5 kx if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS inet_pton.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_INET_PTON" != 1; then
5 kx if test "$GNULIB_INET_PTON" = 0; then
5 kx GNULIB_INET_PTON=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_INET_PTON="($GNULIB_INET_PTON || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5 kx $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5 kx if ${ac_cv_c_bigendian+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_cv_c_bigendian=unknown
5 kx # See if we're dealing with a universal compiler.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifndef __APPLE_CC__
5 kx not a universal capable compiler
5 kx #endif
5 kx typedef int dummy;
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx # Check for potential -arch flags. It is not universal unless
5 kx # there are at least two -arch flags with different values.
5 kx ac_arch=
5 kx ac_prev=
5 kx for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5 kx if test -n "$ac_prev"; then
5 kx case $ac_word in
5 kx i?86 | x86_64 | ppc | ppc64)
5 kx if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5 kx ac_arch=$ac_word
5 kx else
5 kx ac_cv_c_bigendian=universal
5 kx break
5 kx fi
5 kx ;;
5 kx esac
5 kx ac_prev=
5 kx elif test "x$ac_word" = "x-arch"; then
5 kx ac_prev=arch
5 kx fi
5 kx done
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # See if sys/param.h defines the BYTE_ORDER macro.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/param.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5 kx && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5 kx && LITTLE_ENDIAN)
5 kx bogus endian macros
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx # It does; now see whether it defined to BIG_ENDIAN or not.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/param.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if BYTE_ORDER != BIG_ENDIAN
5 kx not big endian
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_bigendian=yes
5 kx else
5 kx ac_cv_c_bigendian=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <limits.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5 kx bogus endian macros
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx # It does; now see whether it defined to _BIG_ENDIAN or not.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <limits.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx #ifndef _BIG_ENDIAN
5 kx not big endian
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_c_bigendian=yes
5 kx else
5 kx ac_cv_c_bigendian=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx if test $ac_cv_c_bigendian = unknown; then
5 kx # Compile a test program.
5 kx if test "$cross_compiling" = yes; then :
5 kx # Try to guess by grepping values from an object file.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx short int ascii_mm[] =
5 kx { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5 kx short int ascii_ii[] =
5 kx { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5 kx int use_ascii (int i) {
5 kx return ascii_mm[i] + ascii_ii[i];
5 kx }
5 kx short int ebcdic_ii[] =
5 kx { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5 kx short int ebcdic_mm[] =
5 kx { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5 kx int use_ebcdic (int i) {
5 kx return ebcdic_mm[i] + ebcdic_ii[i];
5 kx }
5 kx extern int foo;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return use_ascii (foo) == use_ebcdic (foo);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5 kx ac_cv_c_bigendian=yes
5 kx fi
5 kx if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5 kx if test "$ac_cv_c_bigendian" = unknown; then
5 kx ac_cv_c_bigendian=no
5 kx else
5 kx # finding both strings is unlikely to happen, but who knows?
5 kx ac_cv_c_bigendian=unknown
5 kx fi
5 kx fi
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx /* Are we little or big endian? From Harbison&Steele. */
5 kx union
5 kx {
5 kx long int l;
5 kx char c[sizeof (long int)];
5 kx } u;
5 kx u.l = 1;
5 kx return u.c[sizeof (long int) - 1] == 1;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx ac_cv_c_bigendian=no
5 kx else
5 kx ac_cv_c_bigendian=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5 kx $as_echo "$ac_cv_c_bigendian" >&6; }
5 kx case $ac_cv_c_bigendian in #(
5 kx yes)
5 kx $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5 kx ;; #(
5 kx no)
5 kx ;; #(
5 kx universal)
5 kx
5 kx $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5 kx
5 kx ;; #(
5 kx *)
5 kx as_fn_error $? "unknown endianness
5 kx presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx PRIPTR_PREFIX=
5 kx if test -n "$STDINT_H"; then
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef _WIN64
5 kx LLP64
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx },
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx PRIPTR_PREFIX='"l"'
5 kx else
5 kx PRIPTR_PREFIX='"ll"'
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx else
5 kx for glpfx in '' l ll I64; do
5 kx case $glpfx in
5 kx '') gltype1='int';;
5 kx l) gltype1='long int';;
5 kx ll) gltype1='long long int';;
5 kx I64) gltype1='__int64';;
5 kx esac
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdint.h>
5 kx extern intptr_t foo;
5 kx extern $gltype1 foo;
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx PRIPTR_PREFIX='"'$glpfx'"'
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test -n "$PRIPTR_PREFIX" && break
5 kx done
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
5 kx $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
5 kx if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Work also in C++ mode. */
5 kx #define __STDC_LIMIT_MACROS 1
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
5 kx
5 kx #include <limits.h>
5 kx #if HAVE_STDINT_H
5 kx #include <stdint.h>
5 kx #endif
5 kx
5 kx #if defined INT32_MAX && defined INTMAX_MAX
5 kx #define CONDITION (INT32_MAX < INTMAX_MAX)
5 kx #else
5 kx #define CONDITION (sizeof (int) < sizeof (long long int))
5 kx #endif
5 kx int test[CONDITION ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
5 kx else
5 kx gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
5 kx $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
5 kx if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
5 kx INT32_MAX_LT_INTMAX_MAX=1;
5 kx else
5 kx INT32_MAX_LT_INTMAX_MAX=0;
5 kx fi
5 kx
5 kx
5 kx if test $APPLE_UNIVERSAL_BUILD = 0; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
5 kx $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
5 kx if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Work also in C++ mode. */
5 kx #define __STDC_LIMIT_MACROS 1
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
5 kx
5 kx #include <limits.h>
5 kx #if HAVE_STDINT_H
5 kx #include <stdint.h>
5 kx #endif
5 kx
5 kx #if defined INT64_MAX
5 kx #define CONDITION (INT64_MAX == LONG_MAX)
5 kx #else
5 kx #define CONDITION (sizeof (long long int) == sizeof (long int))
5 kx #endif
5 kx int test[CONDITION ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
5 kx else
5 kx gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
5 kx $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
5 kx if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
5 kx INT64_MAX_EQ_LONG_MAX=1;
5 kx else
5 kx INT64_MAX_EQ_LONG_MAX=0;
5 kx fi
5 kx
5 kx
5 kx else
5 kx INT64_MAX_EQ_LONG_MAX=-1
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
5 kx $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
5 kx if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Work also in C++ mode. */
5 kx #define __STDC_LIMIT_MACROS 1
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
5 kx
5 kx #include <limits.h>
5 kx #if HAVE_STDINT_H
5 kx #include <stdint.h>
5 kx #endif
5 kx
5 kx #if defined UINT32_MAX && defined UINTMAX_MAX
5 kx #define CONDITION (UINT32_MAX < UINTMAX_MAX)
5 kx #else
5 kx #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
5 kx #endif
5 kx int test[CONDITION ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
5 kx else
5 kx gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
5 kx $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
5 kx if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
5 kx UINT32_MAX_LT_UINTMAX_MAX=1;
5 kx else
5 kx UINT32_MAX_LT_UINTMAX_MAX=0;
5 kx fi
5 kx
5 kx
5 kx if test $APPLE_UNIVERSAL_BUILD = 0; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
5 kx $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
5 kx if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx /* Work also in C++ mode. */
5 kx #define __STDC_LIMIT_MACROS 1
5 kx
5 kx /* Work if build is not clean. */
5 kx #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
5 kx
5 kx #include <limits.h>
5 kx #if HAVE_STDINT_H
5 kx #include <stdint.h>
5 kx #endif
5 kx
5 kx #if defined UINT64_MAX
5 kx #define CONDITION (UINT64_MAX == ULONG_MAX)
5 kx #else
5 kx #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
5 kx #endif
5 kx int test[CONDITION ? 1 : -1];
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
5 kx else
5 kx gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
5 kx $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
5 kx if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
5 kx UINT64_MAX_EQ_ULONG_MAX=1;
5 kx else
5 kx UINT64_MAX_EQ_ULONG_MAX=0;
5 kx fi
5 kx
5 kx
5 kx else
5 kx UINT64_MAX_EQ_ULONG_MAX=-1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx HAVE_IOCTL=1
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_IOCTL=0
5 kx else
5 kx for ac_func in ioctl
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
5 kx if test "x$ac_cv_func_ioctl" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_IOCTL 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
5 kx $as_echo_n "checking for ioctl with POSIX signature... " >&6; }
5 kx if ${gl_cv_func_ioctl_posix_signature+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/ioctl.h>
5 kx /* On some platforms, ioctl() is declared in <unistd.h>. */
5 kx #include <unistd.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx int ioctl (int, int, ...);
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_ioctl_posix_signature=yes
5 kx else
5 kx gl_cv_func_ioctl_posix_signature=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
5 kx $as_echo "$gl_cv_func_ioctl_posix_signature" >&6; }
5 kx if test $gl_cv_func_ioctl_posix_signature != yes; then
5 kx REPLACE_IOCTL=1
5 kx fi
5 kx fi
5 kx
5 kx if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS ioctl.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_IOCTL" != 1; then
5 kx if test "$GNULIB_IOCTL" = 0; then
5 kx GNULIB_IOCTL=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_IOCTL="($GNULIB_IOCTL || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_isblank = no; then
5 kx HAVE_ISBLANK=0
5 kx fi
5 kx
5 kx if test $HAVE_ISBLANK = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS isblank.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_ISBLANK $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_ISBLANK" != 1; then
5 kx if test "$GNULIB_ISBLANK" = 0; then
5 kx GNULIB_ISBLANK=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_ISBLANK="($GNULIB_ISBLANK || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_langinfo_h='<'langinfo.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
5 kx $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
5 kx if ${gl_cv_next_langinfo_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_langinfo_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <langinfo.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'langinfo.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_langinfo_h
5 kx gl_cv_next_langinfo_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_langinfo_h='<'langinfo.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
5 kx $as_echo "$gl_cv_next_langinfo_h" >&6; }
5 kx fi
5 kx NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'langinfo.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_langinfo_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx HAVE_LANGINFO_CODESET=0
5 kx HAVE_LANGINFO_T_FMT_AMPM=0
5 kx HAVE_LANGINFO_ALTMON=0
5 kx HAVE_LANGINFO_ERA=0
5 kx HAVE_LANGINFO_YESEXPR=0
5 kx
5 kx if test $ac_cv_header_langinfo_h = yes; then
5 kx HAVE_LANGINFO_H=1
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
5 kx $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
5 kx if ${gl_cv_header_langinfo_codeset+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <langinfo.h>
5 kx int a = CODESET;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_langinfo_codeset=yes
5 kx else
5 kx gl_cv_header_langinfo_codeset=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
5 kx $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
5 kx if test $gl_cv_header_langinfo_codeset = yes; then
5 kx HAVE_LANGINFO_CODESET=1
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
5 kx $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
5 kx if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <langinfo.h>
5 kx int a = T_FMT_AMPM;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_langinfo_t_fmt_ampm=yes
5 kx else
5 kx gl_cv_header_langinfo_t_fmt_ampm=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
5 kx $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
5 kx if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
5 kx HAVE_LANGINFO_T_FMT_AMPM=1
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5
5 kx $as_echo_n "checking whether langinfo.h defines ALTMON_1... " >&6; }
5 kx if ${gl_cv_header_langinfo_altmon+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <langinfo.h>
5 kx int a = ALTMON_1;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_langinfo_altmon=yes
5 kx else
5 kx gl_cv_header_langinfo_altmon=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5
5 kx $as_echo "$gl_cv_header_langinfo_altmon" >&6; }
5 kx if test $gl_cv_header_langinfo_altmon = yes; then
5 kx HAVE_LANGINFO_ALTMON=1
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
5 kx $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
5 kx if ${gl_cv_header_langinfo_era+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <langinfo.h>
5 kx int a = ERA;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_langinfo_era=yes
5 kx else
5 kx gl_cv_header_langinfo_era=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
5 kx $as_echo "$gl_cv_header_langinfo_era" >&6; }
5 kx if test $gl_cv_header_langinfo_era = yes; then
5 kx HAVE_LANGINFO_ERA=1
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
5 kx $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
5 kx if ${gl_cv_header_langinfo_yesexpr+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <langinfo.h>
5 kx int a = YESEXPR;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_langinfo_yesexpr=yes
5 kx else
5 kx gl_cv_header_langinfo_yesexpr=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
5 kx $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
5 kx if test $gl_cv_header_langinfo_yesexpr = yes; then
5 kx HAVE_LANGINFO_YESEXPR=1
5 kx fi
5 kx else
5 kx HAVE_LANGINFO_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS listen.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_LISTEN" != 1; then
5 kx if test "$GNULIB_LISTEN" = 0; then
5 kx GNULIB_LISTEN=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_LISTEN="($GNULIB_LISTEN || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx solaris*)
5 kx
5 kx $as_echo "#define _LCONV_C99 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
5 kx $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
5 kx if ${gl_cv_header_locale_h_posix2001+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <locale.h>
5 kx int x = LC_MESSAGES;
5 kx int y = sizeof (((struct lconv *) 0)->decimal_point);
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_locale_h_posix2001=yes
5 kx else
5 kx gl_cv_header_locale_h_posix2001=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
5 kx $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
5 kx $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
5 kx if ${gl_cv_sys_struct_lconv_ok+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <locale.h>
5 kx struct lconv l;
5 kx int x = sizeof (l.decimal_point);
5 kx int y = sizeof (l.int_p_cs_precedes);
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_sys_struct_lconv_ok=yes
5 kx else
5 kx gl_cv_sys_struct_lconv_ok=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
5 kx $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
5 kx if test $gl_cv_sys_struct_lconv_ok = no; then
5 kx case "$host_os" in
5 kx mingw*)
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #ifdef _MSC_VER
5 kx Special
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Special" >/dev/null 2>&1; then :
5 kx
5 kx else
5 kx REPLACE_STRUCT_LCONV=1
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx ;;
5 kx *) REPLACE_STRUCT_LCONV=1 ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_locale_h='<'locale.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
5 kx $as_echo_n "checking absolute name of <locale.h>... " >&6; }
5 kx if ${gl_cv_next_locale_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <locale.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'locale.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_locale_h
5 kx gl_cv_next_locale_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
5 kx $as_echo "$gl_cv_next_locale_h" >&6; }
5 kx fi
5 kx NEXT_LOCALE_H=$gl_cv_next_locale_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'locale.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_locale_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $HAVE_LOCALE_T = 1; then
5 kx
5 kx gl_func_newlocale="$ac_cv_func_newlocale"
5 kx gl_func_duplocale="$ac_cv_func_duplocale"
5 kx gl_func_freelocale="$ac_cv_func_freelocale"
5 kx else
5 kx gl_func_newlocale=no
5 kx gl_func_duplocale=no
5 kx gl_func_freelocale=no
5 kx fi
5 kx if test $gl_func_newlocale != yes; then
5 kx HAVE_NEWLOCALE=0
5 kx fi
5 kx if test $gl_func_duplocale != yes; then
5 kx HAVE_DUPLOCALE=0
5 kx fi
5 kx if test $gl_func_freelocale != yes; then
5 kx HAVE_FREELOCALE=0
5 kx fi
5 kx if test $gt_nameless_locales = yes; then
5 kx REPLACE_NEWLOCALE=1
5 kx REPLACE_DUPLOCALE=1
5 kx REPLACE_FREELOCALE=1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_LOCALENAME" != 1; then
5 kx if test "$GNULIB_LOCALENAME" = 0; then
5 kx GNULIB_LOCALENAME=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_LOCALENAME="($GNULIB_LOCALENAME || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_LOCALENAME 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS localtime-buffer.$ac_objext"
5 kx
5 kx
5 kx
5 kx if test "$gl_threads_api" = posix; then
5 kx # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
5 kx # pthread_rwlock_* functions.
5 kx ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
5 kx "
5 kx if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
5 kx
5 kx $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx #if __FreeBSD__ == 4
5 kx error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
5 kx #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
5 kx && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
5 kx error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
5 kx #else
5 kx int x = (int)PTHREAD_MUTEX_RECURSIVE;
5 kx return !x;
5 kx #endif
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx
5 kx $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
5 kx
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx :
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_LOCK $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_lstat = yes; then
5 kx
5 kx case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
5 kx solaris* | *no)
5 kx REPLACE_LSTAT=1
5 kx ;;
5 kx esac
5 kx else
5 kx HAVE_LSTAT=0
5 kx fi
5 kx
5 kx if test $REPLACE_LSTAT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS lstat.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_LSTAT" != 1; then
5 kx if test "$GNULIB_LSTAT" = 0; then
5 kx GNULIB_LSTAT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_LSTAT="($GNULIB_LSTAT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_func_malloc_posix = yes; then
5 kx
5 kx $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
5 kx
5 kx else
5 kx REPLACE_MALLOC=1
5 kx fi
5 kx
5 kx if test $REPLACE_MALLOC = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS malloc.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_MALLOC_POSIX" != 1; then
5 kx if test "$GNULIB_MALLOC_POSIX" = 0; then
5 kx GNULIB_MALLOC_POSIX=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_MALLOC_POSIX="($GNULIB_MALLOC_POSIX || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS msvc-inval.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS msvc-nothrow.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_MSVC_NOTHROW $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx nanosleep_save_libs=$LIBS
5 kx
5 kx # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
5 kx # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
5 kx LIB_NANOSLEEP=
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
5 kx $as_echo_n "checking for library containing nanosleep... " >&6; }
5 kx if ${ac_cv_search_nanosleep+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx ac_func_search_save_LIBS=$LIBS
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx /* Override any GCC internal prototype to avoid an error.
5 kx Use char because int might match the return type of a GCC
5 kx builtin and then its argument prototype would still apply. */
5 kx #ifdef __cplusplus
5 kx extern "C"
5 kx #endif
5 kx char nanosleep ();
5 kx int
5 kx main ()
5 kx {
5 kx return nanosleep ();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx for ac_lib in '' rt posix4; do
5 kx if test -z "$ac_lib"; then
5 kx ac_res="none required"
5 kx else
5 kx ac_res=-l$ac_lib
5 kx LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5 kx fi
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx ac_cv_search_nanosleep=$ac_res
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext
5 kx if ${ac_cv_search_nanosleep+:} false; then :
5 kx break
5 kx fi
5 kx done
5 kx if ${ac_cv_search_nanosleep+:} false; then :
5 kx
5 kx else
5 kx ac_cv_search_nanosleep=no
5 kx fi
5 kx rm conftest.$ac_ext
5 kx LIBS=$ac_func_search_save_LIBS
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
5 kx $as_echo "$ac_cv_search_nanosleep" >&6; }
5 kx ac_res=$ac_cv_search_nanosleep
5 kx if test "$ac_res" != no; then :
5 kx test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5 kx test "$ac_cv_search_nanosleep" = "none required" ||
5 kx LIB_NANOSLEEP=$ac_cv_search_nanosleep
5 kx fi
5 kx
5 kx if test "x$ac_cv_search_nanosleep" != xno; then
5 kx
5 kx
5 kx if test $APPLE_UNIVERSAL_BUILD = 1; then
5 kx # A universal build on Apple Mac OS X platforms.
5 kx # The test result would be 'no (mishandles large arguments)' in 64-bit
5 kx # mode but 'yes' in 32-bit mode. But we need a configuration result that
5 kx # is valid in both modes.
5 kx gl_cv_func_nanosleep='no (mishandles large arguments)'
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5
5 kx $as_echo_n "checking for working nanosleep... " >&6; }
5 kx if ${gl_cv_func_nanosleep+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in linux*) # Guess it halfway works when the kernel is Linux.
5 kx gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
5 kx mingw*) # Guess no on native Windows.
5 kx gl_cv_func_nanosleep='guessing no' ;;
5 kx *) # If we don't know, obey --enable-cross-guesses.
5 kx gl_cv_func_nanosleep="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #include <limits.h>
5 kx #include <signal.h>
5 kx #if HAVE_SYS_TIME_H
5 kx #include <sys/time.h>
5 kx #endif
5 kx #include <time.h>
5 kx #include <unistd.h>
5 kx #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
5 kx #define TYPE_MAXIMUM(t) \
5 kx ((t) (! TYPE_SIGNED (t) \
5 kx ? (t) -1 \
5 kx : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5 kx
5 kx #if HAVE_DECL_ALARM
5 kx static void
5 kx check_for_SIGALRM (int sig)
5 kx {
5 kx if (sig != SIGALRM)
5 kx _exit (1);
5 kx }
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx static struct timespec ts_sleep;
5 kx static struct timespec ts_remaining;
5 kx /* Test for major problems first. */
5 kx if (! nanosleep)
5 kx return 2;
5 kx ts_sleep.tv_sec = 0;
5 kx ts_sleep.tv_nsec = 1;
5 kx #if HAVE_DECL_ALARM
5 kx {
5 kx static struct sigaction act;
5 kx act.sa_handler = check_for_SIGALRM;
5 kx sigemptyset (&act.sa_mask);
5 kx sigaction (SIGALRM, &act, NULL);
5 kx alarm (1);
5 kx if (nanosleep (&ts_sleep, NULL) != 0)
5 kx return 3;
5 kx /* Test for a minor problem: the handling of large arguments. */
5 kx ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
5 kx ts_sleep.tv_nsec = 999999999;
5 kx alarm (1);
5 kx if (nanosleep (&ts_sleep, &ts_remaining) != -1)
5 kx return 4;
5 kx if (errno != EINTR)
5 kx return 5;
5 kx if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
5 kx return 6;
5 kx }
5 kx #else /* A simpler test for native Windows. */
5 kx if (nanosleep (&ts_sleep, &ts_remaining) < 0)
5 kx return 3;
5 kx #endif
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_nanosleep=yes
5 kx else
5 kx case $? in 4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)';; *) gl_cv_func_nanosleep=no;;
5 kx esac
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5
5 kx $as_echo "$gl_cv_func_nanosleep" >&6; }
5 kx case "$gl_cv_func_nanosleep" in
5 kx *yes)
5 kx REPLACE_NANOSLEEP=0
5 kx ;;
5 kx *)
5 kx REPLACE_NANOSLEEP=1
5 kx case "$gl_cv_func_nanosleep" in
5 kx *"mishandles large arguments"*)
5 kx
5 kx $as_echo "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h
5 kx
5 kx ;;
5 kx *)
5 kx # The replacement uses select(). Add $LIBSOCKET to $LIB_NANOSLEEP.
5 kx for ac_lib in $LIBSOCKET; do
5 kx case " $LIB_NANOSLEEP " in
5 kx *" $ac_lib "*) ;;
5 kx *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
5 kx esac
5 kx done
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx else
5 kx HAVE_NANOSLEEP=0
5 kx fi
5 kx LIBS=$nanosleep_save_libs
5 kx
5 kx if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS nanosleep.$ac_objext"
5 kx
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_NANOSLEEP" != 1; then
5 kx if test "$GNULIB_NANOSLEEP" = 0; then
5 kx GNULIB_NANOSLEEP=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_NANOSLEEP="($GNULIB_NANOSLEEP || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
5 kx $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
5 kx if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <netinet/in.h>
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_netinet_in_h_selfcontained=yes
5 kx else
5 kx gl_cv_header_netinet_in_h_selfcontained=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
5 kx $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
5 kx if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
5 kx NETINET_IN_H=''
5 kx else
5 kx NETINET_IN_H='netinet/in.h'
5 kx for ac_header in netinet/in.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_netinet_in_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_NETINET_IN_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_netinet_in_h='<'netinet/in.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
5 kx $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
5 kx if ${gl_cv_next_netinet_in_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_netinet_in_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <netinet/in.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'netinet/in.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_netinet_in_h
5 kx gl_cv_next_netinet_in_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_netinet_in_h='<'netinet/in.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
5 kx $as_echo "$gl_cv_next_netinet_in_h" >&6; }
5 kx fi
5 kx NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'netinet/in.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_netinet_in_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_netinet_in_h = yes; then
5 kx HAVE_NETINET_IN_H=1
5 kx else
5 kx HAVE_NETINET_IN_H=0
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test -n "$NETINET_IN_H"; then
5 kx GL_GENERATE_NETINET_IN_H_TRUE=
5 kx GL_GENERATE_NETINET_IN_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_NETINET_IN_H_TRUE='#'
5 kx GL_GENERATE_NETINET_IN_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw* | pw*)
5 kx REPLACE_OPEN=1
5 kx ;;
5 kx *)
5 kx
5 kx if test "$gl_cv_macro_O_CLOEXEC" != yes; then
5 kx REPLACE_OPEN=1
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
5 kx $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
5 kx if ${gl_cv_func_open_slash+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Assume that if we have lstat, we can also check symlinks.
5 kx if test $ac_cv_func_lstat = yes; then
5 kx touch conftest.tmp
5 kx ln -s conftest.tmp conftest.lnk
5 kx fi
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
5 kx gl_cv_func_open_slash="guessing no" ;;
5 kx *)
5 kx gl_cv_func_open_slash="guessing yes" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <fcntl.h>
5 kx #if HAVE_UNISTD_H
5 kx # include <unistd.h>
5 kx #endif
5 kx int main ()
5 kx {
5 kx int result = 0;
5 kx #if HAVE_LSTAT
5 kx if (open ("conftest.lnk/", O_RDONLY) != -1)
5 kx result |= 1;
5 kx #endif
5 kx if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
5 kx result |= 2;
5 kx return result;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_open_slash=yes
5 kx else
5 kx gl_cv_func_open_slash=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f conftest.sl conftest.tmp conftest.lnk
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
5 kx $as_echo "$gl_cv_func_open_slash" >&6; }
5 kx case "$gl_cv_func_open_slash" in
5 kx *no)
5 kx
5 kx $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$gl_cv_func_open_slash" in
5 kx *no)
5 kx REPLACE_OPEN=1
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx if test $REPLACE_OPEN = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS open.$ac_objext"
5 kx
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_OPEN" != 1; then
5 kx if test "$GNULIB_OPEN" = 0; then
5 kx GNULIB_OPEN=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_OPEN="($GNULIB_OPEN || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ERRNO_H:$REPLACE_STRERROR_0" != :0; then
5 kx REPLACE_PERROR=1
5 kx fi
5 kx case ${gl_cv_func_strerror_r_works-unset} in
5 kx unset|*yes)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
5 kx $as_echo_n "checking whether perror matches strerror... " >&6; }
5 kx if ${gl_cv_func_perror_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_perror_works="guessing yes" ;;
5 kx # Guess yes on native Windows.
5 kx mingw*) gl_cv_func_perror_works="guessing yes" ;;
5 kx # Otherwise obey --enable-cross-guesses.
5 kx *) gl_cv_func_perror_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <errno.h>
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx char *str = strerror (-1);
5 kx if (!getenv("CONFTEST_OUTPUT")) return 0;
5 kx if (!str) str = "";
5 kx puts (str);
5 kx errno = -1;
5 kx perror ("");
5 kx return 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
5 kx && cmp conftest.txt1 conftest.txt2 >/dev/null; then
5 kx gl_cv_func_perror_works=yes
5 kx else
5 kx gl_cv_func_perror_works=no
5 kx fi
5 kx rm -rf conftest.txt1 conftest.txt2
5 kx else
5 kx gl_cv_func_perror_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
5 kx $as_echo "$gl_cv_func_perror_works" >&6; }
5 kx case "$gl_cv_func_perror_works" in
5 kx *yes) ;;
5 kx *) REPLACE_PERROR=1 ;;
5 kx esac
5 kx ;;
5 kx *)
5 kx REPLACE_PERROR=1
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_PERROR = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS perror.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PERROR" != 1; then
5 kx if test "$GNULIB_PERROR" = 0; then
5 kx GNULIB_PERROR=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PERROR="($GNULIB_PERROR || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PERROR 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_pipe != yes; then
5 kx HAVE_PIPE=0
5 kx fi
5 kx
5 kx if test $HAVE_PIPE = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS pipe.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PIPE" != 1; then
5 kx if test "$GNULIB_PIPE" = 0; then
5 kx GNULIB_PIPE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PIPE="($GNULIB_PIPE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_pthread_h='<'pthread.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5
5 kx $as_echo_n "checking absolute name of <pthread.h>... " >&6; }
5 kx if ${gl_cv_next_pthread_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_pthread_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'pthread.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_pthread_h
5 kx gl_cv_next_pthread_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_pthread_h='<'pthread.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5
5 kx $as_echo "$gl_cv_next_pthread_h" >&6; }
5 kx fi
5 kx NEXT_PTHREAD_H=$gl_cv_next_pthread_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'pthread.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_pthread_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_pthread_h = yes; then
5 kx HAVE_PTHREAD_H=1
5 kx
5 kx
5 kx if { case "$host_os" in mingw*) true;; *) false;; esac; } \
5 kx && test $gl_threads_api = windows; then
5 kx HAVE_PTHREAD_H=0
5 kx fi
5 kx
5 kx else
5 kx HAVE_PTHREAD_H=0
5 kx fi
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default
5 kx #if HAVE_PTHREAD_H
5 kx #include <pthread.h>
5 kx #endif
5 kx "
5 kx if test "x$ac_cv_type_pthread_t" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_PTHREAD_T 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default
5 kx #if HAVE_PTHREAD_H
5 kx #include <pthread.h>
5 kx #endif
5 kx "
5 kx if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_PTHREAD_SPINLOCK_T 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_type_pthread_t != yes; then
5 kx HAVE_PTHREAD_T=0
5 kx fi
5 kx if test $ac_cv_type_pthread_spinlock_t != yes; then
5 kx HAVE_PTHREAD_SPINLOCK_T=0
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_CREATE_DETACHED" >&5
5 kx $as_echo_n "checking for PTHREAD_CREATE_DETACHED... " >&6; }
5 kx if ${gl_cv_const_PTHREAD_CREATE_DETACHED+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int x = PTHREAD_CREATE_DETACHED;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_const_PTHREAD_CREATE_DETACHED=yes
5 kx else
5 kx gl_cv_const_PTHREAD_CREATE_DETACHED=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_CREATE_DETACHED" >&5
5 kx $as_echo "$gl_cv_const_PTHREAD_CREATE_DETACHED" >&6; }
5 kx if test $gl_cv_const_PTHREAD_CREATE_DETACHED != yes; then
5 kx HAVE_PTHREAD_CREATE_DETACHED=0
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE" >&5
5 kx $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE... " >&6; }
5 kx if ${gl_cv_const_PTHREAD_MUTEX_RECURSIVE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int x = PTHREAD_MUTEX_RECURSIVE;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_const_PTHREAD_MUTEX_RECURSIVE=yes
5 kx else
5 kx gl_cv_const_PTHREAD_MUTEX_RECURSIVE=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&5
5 kx $as_echo "$gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&6; }
5 kx if test $gl_cv_const_PTHREAD_MUTEX_RECURSIVE != yes; then
5 kx HAVE_PTHREAD_MUTEX_RECURSIVE=0
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ROBUST" >&5
5 kx $as_echo_n "checking for PTHREAD_MUTEX_ROBUST... " >&6; }
5 kx if ${gl_cv_const_PTHREAD_MUTEX_ROBUST+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int x = PTHREAD_MUTEX_ROBUST;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_const_PTHREAD_MUTEX_ROBUST=yes
5 kx else
5 kx gl_cv_const_PTHREAD_MUTEX_ROBUST=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_ROBUST" >&5
5 kx $as_echo "$gl_cv_const_PTHREAD_MUTEX_ROBUST" >&6; }
5 kx if test $gl_cv_const_PTHREAD_MUTEX_ROBUST != yes; then
5 kx HAVE_PTHREAD_MUTEX_ROBUST=0
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED" >&5
5 kx $as_echo_n "checking for PTHREAD_PROCESS_SHARED... " >&6; }
5 kx if ${gl_cv_const_PTHREAD_PROCESS_SHARED+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx int x = PTHREAD_PROCESS_SHARED;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_const_PTHREAD_PROCESS_SHARED=yes
5 kx else
5 kx gl_cv_const_PTHREAD_PROCESS_SHARED=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_PROCESS_SHARED" >&5
5 kx $as_echo "$gl_cv_const_PTHREAD_PROCESS_SHARED" >&6; }
5 kx if test $gl_cv_const_PTHREAD_PROCESS_SHARED != yes; then
5 kx HAVE_PTHREAD_PROCESS_SHARED=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx LIB_PTHREAD="$LIBPMULTITHREAD"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if { case "$host_os" in mingw*) true;; *) false;; esac; } \
5 kx && test $gl_threads_api = windows; then
5 kx REPLACE_PTHREAD_CREATE=1
5 kx REPLACE_PTHREAD_ATTR_INIT=1
5 kx REPLACE_PTHREAD_ATTR_GETDETACHSTATE=1
5 kx REPLACE_PTHREAD_ATTR_SETDETACHSTATE=1
5 kx REPLACE_PTHREAD_ATTR_DESTROY=1
5 kx REPLACE_PTHREAD_SELF=1
5 kx REPLACE_PTHREAD_EQUAL=1
5 kx REPLACE_PTHREAD_DETACH=1
5 kx REPLACE_PTHREAD_JOIN=1
5 kx REPLACE_PTHREAD_EXIT=1
5 kx else
5 kx if test $HAVE_PTHREAD_H = 0; then
5 kx HAVE_PTHREAD_CREATE=0
5 kx HAVE_PTHREAD_ATTR_INIT=0
5 kx HAVE_PTHREAD_ATTR_GETDETACHSTATE=0
5 kx HAVE_PTHREAD_ATTR_SETDETACHSTATE=0
5 kx HAVE_PTHREAD_ATTR_DESTROY=0
5 kx HAVE_PTHREAD_SELF=0
5 kx HAVE_PTHREAD_EQUAL=0
5 kx HAVE_PTHREAD_DETACH=0
5 kx HAVE_PTHREAD_JOIN=0
5 kx HAVE_PTHREAD_EXIT=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create exists as a global function" >&5
5 kx $as_echo_n "checking whether pthread_create exists as a global function... " >&6; }
5 kx if ${gl_cv_func_pthread_create+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx saved_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBPMULTITHREAD"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx int pthread_create (void);
5 kx int main ()
5 kx {
5 kx return pthread_create ();
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_func_pthread_create=yes
5 kx else
5 kx gl_cv_func_pthread_create=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$saved_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_create" >&5
5 kx $as_echo "$gl_cv_func_pthread_create" >&6; }
5 kx if test $gl_cv_func_pthread_create = no; then
5 kx REPLACE_PTHREAD_CREATE=1
5 kx REPLACE_PTHREAD_ATTR_INIT=1
5 kx
5 kx $as_echo "#define PTHREAD_CREATE_IS_INLINE 1" >>confdefs.h
5 kx
5 kx fi
5 kx fi
5 kx fi
5 kx
5 kx if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS pthread-thread.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PTHREAD_THREAD" != 1; then
5 kx if test "$GNULIB_PTHREAD_THREAD" = 0; then
5 kx GNULIB_PTHREAD_THREAD=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PTHREAD_THREAD="($GNULIB_PTHREAD_THREAD || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PTHREAD_THREAD 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is a macro" >&5
5 kx $as_echo_n "checking whether pthread_sigmask is a macro... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_macro+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx #ifdef pthread_sigmask
5 kx headers_define_pthread_sigmask
5 kx #endif
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "headers_define_pthread_sigmask" >/dev/null 2>&1; then :
5 kx gl_cv_func_pthread_sigmask_macro=yes
5 kx else
5 kx gl_cv_func_pthread_sigmask_macro=no
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_macro" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_macro" >&6; }
5 kx
5 kx LIB_PTHREAD_SIGMASK=
5 kx
5 kx if test $gl_cv_func_pthread_sigmask_macro = yes; then
5 kx HAVE_PTHREAD_SIGMASK=0
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx else
5 kx
5 kx
5 kx
5 kx if test "$gl_threads_api" = posix; then
5 kx if test $ac_cv_func_pthread_sigmask = yes; then
5 kx :
5 kx else
5 kx if test -n "$LIBMULTITHREAD"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
5 kx $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBMULTITHREAD"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
5 kx ;
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
5 kx else
5 kx gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx LIBS="$gl_save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
5 kx if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
5 kx LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
5 kx else
5 kx HAVE_PTHREAD_SIGMASK=0
5 kx fi
5 kx else
5 kx HAVE_PTHREAD_SIGMASK=0
5 kx fi
5 kx fi
5 kx else
5 kx if test $ac_cv_func_pthread_sigmask = yes; then
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx else
5 kx HAVE_PTHREAD_SIGMASK=0
5 kx fi
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $HAVE_PTHREAD_SIGMASK = 1; then
5 kx
5 kx
5 kx if test -z "$LIB_PTHREAD_SIGMASK"; then
5 kx case " $LIBS " in
5 kx *' -pthread '*) ;;
5 kx *' -lpthread '*) ;;
5 kx *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
5 kx $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_in_libc_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx freebsd* | hpux* | solaris | solaris2.[2-9]*)
5 kx gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
5 kx *)
5 kx gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx #include <stddef.h>
5 kx int main ()
5 kx {
5 kx sigset_t set;
5 kx sigemptyset (&set);
5 kx return pthread_sigmask (1729, &set, NULL) != 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_pthread_sigmask_in_libc_works=no
5 kx else
5 kx gl_cv_func_pthread_sigmask_in_libc_works=yes
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
5 kx case "$gl_cv_func_pthread_sigmask_in_libc_works" in
5 kx *no)
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx
5 kx $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac;;
5 kx esac
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
5 kx $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_return_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx cygwin*)
5 kx gl_cv_func_pthread_sigmask_return_works="guessing no";;
5 kx *)
5 kx gl_cv_func_pthread_sigmask_return_works="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx #include <stddef.h>
5 kx int main ()
5 kx {
5 kx sigset_t set;
5 kx sigemptyset (&set);
5 kx if (pthread_sigmask (1729, &set, NULL) == -1)
5 kx return 1;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_pthread_sigmask_return_works=yes
5 kx else
5 kx gl_cv_func_pthread_sigmask_return_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LIBS="$gl_save_LIBS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
5 kx case "$gl_cv_func_pthread_sigmask_return_works" in
5 kx *no)
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx
5 kx $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
5 kx $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
5 kx if ${gl_cv_func_pthread_sigmask_unblock_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx case "$host_os" in
5 kx irix*)
5 kx gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
5 kx *)
5 kx gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
5 kx esac
5 kx gl_save_LIBS=$LIBS
5 kx LIBS="$LIBS $LIBMULTITHREAD"
5 kx if test "$cross_compiling" = yes; then :
5 kx :
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <pthread.h>
5 kx #include <signal.h>
5 kx #include <stdio.h>
5 kx #include <stdlib.h>
5 kx #include <unistd.h>
5 kx static volatile int sigint_occurred;
5 kx static void
5 kx sigint_handler (int sig)
5 kx {
5 kx sigint_occurred++;
5 kx }
5 kx int main ()
5 kx {
5 kx sigset_t set;
5 kx int pid = getpid ();
5 kx char command[80];
5 kx signal (SIGINT, sigint_handler);
5 kx sigemptyset (&set);
5 kx sigaddset (&set, SIGINT);
5 kx if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
5 kx return 1;
5 kx sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
5 kx if (!(system (command) == 0))
5 kx return 2;
5 kx sleep (2);
5 kx if (!(sigint_occurred == 0))
5 kx return 3;
5 kx if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
5 kx return 4;
5 kx if (!(sigint_occurred == 1)) /* This fails on IRIX. */
5 kx return 5;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx :
5 kx else
5 kx gl_cv_func_pthread_sigmask_unblock_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx LIBS=$gl_save_LIBS
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
5 kx $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
5 kx case "$gl_cv_func_pthread_sigmask_unblock_works" in
5 kx *no)
5 kx REPLACE_PTHREAD_SIGMASK=1
5 kx
5 kx $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS pthread_sigmask.$ac_objext"
5 kx
5 kx
5 kx if test $HAVE_PTHREAD_SIGMASK = 1; then
5 kx
5 kx $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PTHREAD_SIGMASK" != 1; then
5 kx if test "$GNULIB_PTHREAD_SIGMASK" = 0; then
5 kx GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PTHREAD_SIGMASK="($GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
5 kx $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
5 kx if ${gl_cv_func_svid_putenv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_svid_putenv="guessing yes" ;;
5 kx # Guess no on native Windows.
5 kx mingw*) gl_cv_func_svid_putenv="guessing no" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_svid_putenv="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx $ac_includes_default
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx /* Put it in env. */
5 kx if (putenv ("CONFTEST_putenv=val"))
5 kx return 1;
5 kx
5 kx /* Try to remove it. */
5 kx if (putenv ("CONFTEST_putenv"))
5 kx return 2;
5 kx
5 kx /* Make sure it was deleted. */
5 kx if (getenv ("CONFTEST_putenv") != 0)
5 kx return 3;
5 kx
5 kx return 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_svid_putenv=yes
5 kx else
5 kx gl_cv_func_svid_putenv=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
5 kx $as_echo "$gl_cv_func_svid_putenv" >&6; }
5 kx case "$gl_cv_func_svid_putenv" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_PUTENV=1
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_PUTENV = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS putenv.$ac_objext"
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
5 kx if test "x$ac_cv_have_decl__putenv" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL__PUTENV $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_PUTENV" != 1; then
5 kx if test "$GNULIB_PUTENV" = 0; then
5 kx GNULIB_PUTENV=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_func in raise
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
5 kx if test "x$ac_cv_func_raise" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_RAISE 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test $ac_cv_func_raise = no; then
5 kx HAVE_RAISE=0
5 kx else
5 kx
5 kx
5 kx if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
5 kx REPLACE_RAISE=1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_type_sigset_t = yes; then
5 kx ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
5 kx if test "x$ac_cv_func_sigprocmask" = xyes; then :
5 kx gl_cv_func_sigprocmask=1
5 kx fi
5 kx
5 kx fi
5 kx if test -z "$gl_cv_func_sigprocmask"; then
5 kx HAVE_POSIX_SIGNALBLOCKING=0
5 kx fi
5 kx
5 kx if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
5 kx :
5 kx fi
5 kx
5 kx fi
5 kx
5 kx if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS raise.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_RAISE" != 1; then
5 kx if test "$GNULIB_RAISE" = 0; then
5 kx GNULIB_RAISE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_RAISE="($GNULIB_RAISE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx for ac_header in sched.h
5 kx do :
5 kx ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if HAVE_SYS_CDEFS_H
5 kx #include <sys/cdefs.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_header_sched_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SCHED_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sched_h='<'sched.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
5 kx $as_echo_n "checking absolute name of <sched.h>... " >&6; }
5 kx if ${gl_cv_next_sched_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sched.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sched.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sched_h
5 kx gl_cv_next_sched_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
5 kx $as_echo "$gl_cv_next_sched_h" >&6; }
5 kx fi
5 kx NEXT_SCHED_H=$gl_cv_next_sched_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sched.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sched_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_sched_h" = yes; then
5 kx HAVE_SCHED_H=1
5 kx else
5 kx HAVE_SCHED_H=0
5 kx fi
5 kx
5 kx
5 kx if test "$HAVE_SCHED_H" = 1; then
5 kx ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#if HAVE_SYS_CDEFS_H
5 kx #include <sys/cdefs.h>
5 kx #endif
5 kx #include <sched.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_struct_sched_param" = xyes; then :
5 kx HAVE_STRUCT_SCHED_PARAM=1
5 kx else
5 kx HAVE_STRUCT_SCHED_PARAM=0
5 kx fi
5 kx
5 kx else
5 kx HAVE_STRUCT_SCHED_PARAM=0
5 kx case "$host_os" in
5 kx os2*)
5 kx ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h>
5 kx "
5 kx if test "x$ac_cv_type_struct_sched_param" = xyes; then :
5 kx HAVE_STRUCT_SCHED_PARAM=1
5 kx fi
5 kx
5 kx ;;
5 kx vms)
5 kx ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <pthread.h>
5 kx "
5 kx if test "x$ac_cv_type_struct_sched_param" = xyes; then :
5 kx HAVE_STRUCT_SCHED_PARAM=1
5 kx fi
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx if test "$ac_cv_header_sys_cdefs_h" = yes; then
5 kx HAVE_SYS_CDEFS_H=1
5 kx else
5 kx HAVE_SYS_CDEFS_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx REPLACE_SELECT=1
5 kx else
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
5 kx $as_echo_n "checking whether select supports a 0 argument... " >&6; }
5 kx if ${gl_cv_func_select_supports0+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx # Guess no on Interix.
5 kx interix*) gl_cv_func_select_supports0="guessing no";;
5 kx # Guess yes otherwise.
5 kx *) gl_cv_func_select_supports0="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/time.h>
5 kx #if HAVE_SYS_SELECT_H
5 kx #include <sys/select.h>
5 kx #endif
5 kx int main ()
5 kx {
5 kx struct timeval timeout;
5 kx timeout.tv_sec = 0;
5 kx timeout.tv_usec = 5;
5 kx return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_select_supports0=yes
5 kx else
5 kx gl_cv_func_select_supports0=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
5 kx $as_echo "$gl_cv_func_select_supports0" >&6; }
5 kx case "$gl_cv_func_select_supports0" in
5 kx *yes) ;;
5 kx *) REPLACE_SELECT=1 ;;
5 kx esac
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
5 kx $as_echo_n "checking whether select detects invalid fds... " >&6; }
5 kx if ${gl_cv_func_select_detects_ebadf+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test "$cross_compiling" = yes; then :
5 kx
5 kx case "$host_os" in
5 kx # Guess yes on Linux systems.
5 kx linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/time.h>
5 kx #if HAVE_SYS_SELECT_H
5 kx # include <sys/select.h>
5 kx #endif
5 kx #include <unistd.h>
5 kx #include <errno.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx fd_set set;
5 kx dup2(0, 16);
5 kx FD_ZERO(&set);
5 kx FD_SET(16, &set);
5 kx close(16);
5 kx struct timeval timeout;
5 kx timeout.tv_sec = 0;
5 kx timeout.tv_usec = 5;
5 kx return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_select_detects_ebadf=yes
5 kx else
5 kx gl_cv_func_select_detects_ebadf=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
5 kx $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
5 kx case $gl_cv_func_select_detects_ebadf in
5 kx *yes) ;;
5 kx *) REPLACE_SELECT=1 ;;
5 kx esac
5 kx fi
5 kx
5 kx LIB_SELECT="$LIBSOCKET"
5 kx if test $REPLACE_SELECT = 1; then
5 kx case "$host_os" in
5 kx mingw*)
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define WIN32_LEAN_AND_MEAN
5 kx #include <windows.h>
5 kx int
5 kx main ()
5 kx {
5 kx MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx
5 kx else
5 kx LIB_SELECT="$LIB_SELECT -luser32"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx if test $REPLACE_SELECT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS select.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SELECT" != 1; then
5 kx if test "$GNULIB_SELECT" = 0; then
5 kx GNULIB_SELECT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SELECT="($GNULIB_SELECT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_setenv = no; then
5 kx HAVE_SETENV=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
5 kx $as_echo_n "checking whether setenv validates arguments... " >&6; }
5 kx if ${gl_cv_func_setenv_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_setenv_works="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <errno.h>
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx int result = 0;
5 kx {
5 kx if (setenv ("", "", 0) != -1)
5 kx result |= 1;
5 kx else if (errno != EINVAL)
5 kx result |= 2;
5 kx }
5 kx {
5 kx if (setenv ("a", "=", 1) != 0)
5 kx result |= 4;
5 kx else if (strcmp (getenv ("a"), "=") != 0)
5 kx result |= 8;
5 kx }
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_setenv_works=yes
5 kx else
5 kx gl_cv_func_setenv_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
5 kx $as_echo "$gl_cv_func_setenv_works" >&6; }
5 kx case "$gl_cv_func_setenv_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_SETENV=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS setenv.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SETENV" != 1; then
5 kx if test "$GNULIB_SETENV" = 0; then
5 kx GNULIB_SETENV=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SETENV="($GNULIB_SETENV || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx NEED_SETLOCALE_IMPROVED=0
5 kx case "$host_os" in
5 kx mingw*) NEED_SETLOCALE_IMPROVED=1 ;;
5 kx cygwin*)
5 kx case `uname -r` in
5 kx 1.5.*) NEED_SETLOCALE_IMPROVED=1 ;;
5 kx esac
5 kx ;;
5 kx *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale supports the C locale" >&5
5 kx $as_echo_n "checking whether setlocale supports the C locale... " >&6; }
5 kx if ${gl_cv_func_setlocale_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess no on Android.
5 kx linux*-android*) gl_cv_func_setlocale_works="guessing no";;
5 kx # Guess yes otherwise.
5 kx *) gl_cv_func_setlocale_works="guessing yes";;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx int main ()
5 kx {
5 kx return setlocale (LC_ALL, "C") == NULL;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_setlocale_works=yes
5 kx else
5 kx gl_cv_func_setlocale_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_works" >&5
5 kx $as_echo "$gl_cv_func_setlocale_works" >&6; }
5 kx case "$gl_cv_func_setlocale_works" in
5 kx *yes) ;;
5 kx *) NEED_SETLOCALE_IMPROVED=1 ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define NEED_SETLOCALE_IMPROVED $NEED_SETLOCALE_IMPROVED
5 kx _ACEOF
5 kx
5 kx
5 kx NEED_SETLOCALE_MTSAFE=0
5 kx if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
5 kx NEED_SETLOCALE_MTSAFE=1
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define NEED_SETLOCALE_MTSAFE $NEED_SETLOCALE_MTSAFE
5 kx _ACEOF
5 kx
5 kx
5 kx if test $NEED_SETLOCALE_IMPROVED = 1 || test $NEED_SETLOCALE_MTSAFE = 1; then
5 kx REPLACE_SETLOCALE=1
5 kx fi
5 kx
5 kx if test $NEED_SETLOCALE_MTSAFE = 1; then
5 kx LIB_SETLOCALE="$LIB_SETLOCALE_NULL"
5 kx else
5 kx LIB_SETLOCALE=
5 kx fi
5 kx
5 kx
5 kx if test $REPLACE_SETLOCALE = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS setlocale.$ac_objext"
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SETLOCALE" != 1; then
5 kx if test "$GNULIB_SETLOCALE" = 0; then
5 kx GNULIB_SETLOCALE=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SETLOCALE="($GNULIB_SETLOCALE || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
5 kx $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
5 kx if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$host_os" in
5 kx # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
5 kx *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
5 kx gl_cv_func_setlocale_null_all_mtsafe=no ;;
5 kx # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
5 kx *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
5 kx gl_cv_func_setlocale_null_all_mtsafe=yes ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *)
5 kx gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
5 kx $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
5 kx case "$host_os" in
5 kx mingw*) ;;
5 kx *)
5 kx if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
5 kx gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
5 kx fi
5 kx ;;
5 kx esac
5 kx case "$gl_cv_func_setlocale_null_all_mtsafe" in
5 kx *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
5 kx *) SETLOCALE_NULL_ALL_MTSAFE=0 ;;
5 kx esac
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
5 kx _ACEOF
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
5 kx $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
5 kx if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case "$host_os" in
5 kx # Guess no on OpenBSD, AIX.
5 kx openbsd* | aix*)
5 kx gl_cv_func_setlocale_null_one_mtsafe=no ;;
5 kx # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
5 kx *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
5 kx gl_cv_func_setlocale_null_one_mtsafe=yes ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *)
5 kx gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
5 kx $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
5 kx case "$host_os" in
5 kx mingw*) ;;
5 kx *)
5 kx if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
5 kx gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
5 kx fi
5 kx ;;
5 kx esac
5 kx case "$gl_cv_func_setlocale_null_one_mtsafe" in
5 kx *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
5 kx *) SETLOCALE_NULL_ONE_MTSAFE=0 ;;
5 kx esac
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
5 kx _ACEOF
5 kx
5 kx
5 kx if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
5 kx case "$host_os" in
5 kx mingw*) LIB_SETLOCALE_NULL= ;;
5 kx *)
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
5 kx $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
5 kx if ${gl_cv_have_weak+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_cv_have_weak=no
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern void xyzzy ();
5 kx #pragma weak xyzzy
5 kx int
5 kx main ()
5 kx {
5 kx xyzzy();
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_have_weak=maybe
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx if test $gl_cv_have_weak = maybe; then
5 kx if test "$cross_compiling" = yes; then :
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #ifdef __ELF__
5 kx Extensible Linking Format
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
5 kx gl_cv_have_weak="guessing yes"
5 kx else
5 kx gl_cv_have_weak="guessing no"
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdio.h>
5 kx #pragma weak fputs
5 kx int main ()
5 kx {
5 kx return (fputs == NULL);
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_have_weak=yes
5 kx else
5 kx gl_cv_have_weak=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx case " $LDFLAGS " in
5 kx *" -static "*) gl_cv_have_weak=no ;;
5 kx esac
5 kx case "$gl_cv_have_weak" in
5 kx *yes)
5 kx case "$host_os" in
5 kx freebsd* | dragonfly*)
5 kx : > conftest1.c
5 kx $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
5 kx cat <<EOF > conftest2.c
5 kx #include <pthread.h>
5 kx #pragma weak pthread_mutexattr_gettype
5 kx int main ()
5 kx {
5 kx return (pthread_mutexattr_gettype != NULL);
5 kx }
5 kx EOF
5 kx $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
5 kx || gl_cv_have_weak=no
5 kx rm -f conftest1.c libempty.so conftest2.c conftest
5 kx ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
5 kx $as_echo "$gl_cv_have_weak" >&6; }
5 kx case "$gl_cv_have_weak" in
5 kx *yes)
5 kx
5 kx $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$gl_cv_have_weak" in
5 kx *yes) LIB_SETLOCALE_NULL= ;;
5 kx *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx else
5 kx LIB_SETLOCALE_NULL=
5 kx fi
5 kx
5 kx
5 kx if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS setlocale-lock.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx CFLAG_VISIBILITY=
5 kx HAVE_VISIBILITY=0
5 kx if test -n "$GCC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
5 kx $as_echo_n "checking whether the -Werror option is usable... " >&6; }
5 kx if ${gl_cv_cc_vis_werror+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_CFLAGS="$CFLAGS"
5 kx CFLAGS="$CFLAGS -Werror"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_cc_vis_werror=yes
5 kx else
5 kx gl_cv_cc_vis_werror=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CFLAGS="$gl_save_CFLAGS"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
5 kx $as_echo "$gl_cv_cc_vis_werror" >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
5 kx $as_echo_n "checking for simple visibility declarations... " >&6; }
5 kx if ${gl_cv_cc_visibility+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_CFLAGS="$CFLAGS"
5 kx CFLAGS="$CFLAGS -fvisibility=hidden"
5 kx if test $gl_cv_cc_vis_werror = yes; then
5 kx CFLAGS="$CFLAGS -Werror"
5 kx fi
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx extern __attribute__((__visibility__("hidden"))) int hiddenvar;
5 kx extern __attribute__((__visibility__("default"))) int exportedvar;
5 kx extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
5 kx extern __attribute__((__visibility__("default"))) int exportedfunc (void);
5 kx void dummyfunc (void) {}
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_cc_visibility=yes
5 kx else
5 kx gl_cv_cc_visibility=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CFLAGS="$gl_save_CFLAGS"
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5 kx $as_echo "$gl_cv_cc_visibility" >&6; }
5 kx if test $gl_cv_cc_visibility = yes; then
5 kx CFLAG_VISIBILITY="-fvisibility=hidden"
5 kx HAVE_VISIBILITY=1
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_VISIBILITY $HAVE_VISIBILITY
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SETLOCALE_NULL" != 1; then
5 kx if test "$GNULIB_SETLOCALE_NULL" = 0; then
5 kx GNULIB_SETLOCALE_NULL=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SETLOCALE_NULL="($GNULIB_SETLOCALE_NULL || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
5 kx $as_echo_n "checking for a traditional french locale... " >&6; }
5 kx if ${gt_cv_locale_fr+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx #include <time.h>
5 kx #if HAVE_LANGINFO_CODESET
5 kx # include <langinfo.h>
5 kx #endif
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx struct tm t;
5 kx char buf[16];
5 kx int main () {
5 kx /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
5 kx imitates locale dependent behaviour by looking at the environment
5 kx variables, and all locales use the UTF-8 encoding. */
5 kx #if defined __BEOS__ || defined __HAIKU__
5 kx return 1;
5 kx #else
5 kx /* Check whether the given locale name is recognized by the system. */
5 kx # if defined _WIN32 && !defined __CYGWIN__
5 kx /* On native Windows, setlocale(category, "") looks at the system settings,
5 kx not at the environment variables. Also, when an encoding suffix such
5 kx as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
5 kx category of the locale to "C". */
5 kx if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
5 kx || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
5 kx return 1;
5 kx # else
5 kx if (setlocale (LC_ALL, "") == NULL) return 1;
5 kx # endif
5 kx /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
5 kx On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
5 kx is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
5 kx On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "646". In this situation,
5 kx some unit tests fail.
5 kx On MirBSD 10, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "UTF-8". */
5 kx # if HAVE_LANGINFO_CODESET
5 kx {
5 kx const char *cs = nl_langinfo (CODESET);
5 kx if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
5 kx || strcmp (cs, "UTF-8") == 0)
5 kx return 1;
5 kx }
5 kx # endif
5 kx # ifdef __CYGWIN__
5 kx /* On Cygwin, avoid locale names without encoding suffix, because the
5 kx locale_charset() function relies on the encoding suffix. Note that
5 kx LC_ALL is set on the command line. */
5 kx if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
5 kx # endif
5 kx /* Check whether in the abbreviation of the second month, the second
5 kx character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
5 kx one byte long. This excludes the UTF-8 encoding. */
5 kx t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
5 kx if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
5 kx # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
5 kx /* Check whether the decimal separator is a comma.
5 kx On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
5 kx are nl_langinfo(RADIXCHAR) are both ".". */
5 kx if (localeconv () ->decimal_point[0] != ',') return 1;
5 kx # endif
5 kx return 0;
5 kx #endif
5 kx }
5 kx
5 kx _ACEOF
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
5 kx case "$host_os" in
5 kx # Handle native Windows specially, because there setlocale() interprets
5 kx # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
5 kx # "fr" or "fra" as "French" or "French_France.1252",
5 kx # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
5 kx # "ja" as "Japanese" or "Japanese_Japan.932",
5 kx # and similar.
5 kx mingw*)
5 kx # Test for the native Windows locale name.
5 kx if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=French_France.1252
5 kx else
5 kx # None found.
5 kx gt_cv_locale_fr=none
5 kx fi
5 kx ;;
5 kx *)
5 kx # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
5 kx # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
5 kx # configure script would override the LC_ALL setting. Likewise for
5 kx # LC_CTYPE, which is also set at the beginning of the configure script.
5 kx # Test for the usual locale name.
5 kx if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr_FR
5 kx else
5 kx # Test for the locale name with explicit encoding suffix.
5 kx if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr_FR.ISO-8859-1
5 kx else
5 kx # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
5 kx if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr_FR.ISO8859-1
5 kx else
5 kx # Test for the HP-UX locale name.
5 kx if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr_FR.iso88591
5 kx else
5 kx # Test for the Solaris 7 locale name.
5 kx if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr=fr
5 kx else
5 kx # None found.
5 kx gt_cv_locale_fr=none
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
5 kx $as_echo "$gt_cv_locale_fr" >&6; }
5 kx LOCALE_FR=$gt_cv_locale_fr
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
5 kx $as_echo_n "checking for a french Unicode locale... " >&6; }
5 kx if ${gt_cv_locale_fr_utf8+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx #include <time.h>
5 kx #if HAVE_LANGINFO_CODESET
5 kx # include <langinfo.h>
5 kx #endif
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx struct tm t;
5 kx char buf[16];
5 kx int main () {
5 kx /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
5 kx imitates locale dependent behaviour by looking at the environment
5 kx variables, and all locales use the UTF-8 encoding. */
5 kx #if !(defined __BEOS__ || defined __HAIKU__)
5 kx /* Check whether the given locale name is recognized by the system. */
5 kx # if defined _WIN32 && !defined __CYGWIN__
5 kx /* On native Windows, setlocale(category, "") looks at the system settings,
5 kx not at the environment variables. Also, when an encoding suffix such
5 kx as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
5 kx category of the locale to "C". */
5 kx if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
5 kx || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
5 kx return 1;
5 kx # else
5 kx if (setlocale (LC_ALL, "") == NULL) return 1;
5 kx # endif
5 kx /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
5 kx On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
5 kx is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
5 kx On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "646". In this situation,
5 kx some unit tests fail. */
5 kx # if HAVE_LANGINFO_CODESET
5 kx {
5 kx const char *cs = nl_langinfo (CODESET);
5 kx if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
5 kx return 1;
5 kx }
5 kx # endif
5 kx # ifdef __CYGWIN__
5 kx /* On Cygwin, avoid locale names without encoding suffix, because the
5 kx locale_charset() function relies on the encoding suffix. Note that
5 kx LC_ALL is set on the command line. */
5 kx if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
5 kx # endif
5 kx /* Check whether in the abbreviation of the second month, the second
5 kx character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
5 kx two bytes long, with UTF-8 encoding. */
5 kx t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
5 kx if (strftime (buf, sizeof (buf), "%b", &t) < 4
5 kx || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
5 kx return 1;
5 kx #endif
5 kx #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
5 kx /* Check whether the decimal separator is a comma.
5 kx On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
5 kx are nl_langinfo(RADIXCHAR) are both ".". */
5 kx if (localeconv () ->decimal_point[0] != ',') return 1;
5 kx #endif
5 kx return 0;
5 kx }
5 kx
5 kx _ACEOF
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
5 kx case "$host_os" in
5 kx # Handle native Windows specially, because there setlocale() interprets
5 kx # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
5 kx # "fr" or "fra" as "French" or "French_France.1252",
5 kx # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
5 kx # "ja" as "Japanese" or "Japanese_Japan.932",
5 kx # and similar.
5 kx mingw*)
5 kx # Test for the hypothetical native Windows locale name.
5 kx if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr_utf8=French_France.65001
5 kx else
5 kx # None found.
5 kx gt_cv_locale_fr_utf8=none
5 kx fi
5 kx ;;
5 kx *)
5 kx # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
5 kx # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
5 kx # configure script would override the LC_ALL setting. Likewise for
5 kx # LC_CTYPE, which is also set at the beginning of the configure script.
5 kx # Test for the usual locale name.
5 kx if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr_utf8=fr_FR
5 kx else
5 kx # Test for the locale name with explicit encoding suffix.
5 kx if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr_utf8=fr_FR.UTF-8
5 kx else
5 kx # Test for the Solaris 7 locale name.
5 kx if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_fr_utf8=fr.UTF-8
5 kx else
5 kx # None found.
5 kx gt_cv_locale_fr_utf8=none
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
5 kx $as_echo "$gt_cv_locale_fr_utf8" >&6; }
5 kx LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
5 kx $as_echo_n "checking for a traditional japanese locale... " >&6; }
5 kx if ${gt_cv_locale_ja+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx #include <time.h>
5 kx #if HAVE_LANGINFO_CODESET
5 kx # include <langinfo.h>
5 kx #endif
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx struct tm t;
5 kx char buf[16];
5 kx int main ()
5 kx {
5 kx /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
5 kx imitates locale dependent behaviour by looking at the environment
5 kx variables, and all locales use the UTF-8 encoding. */
5 kx #if defined __BEOS__ || defined __HAIKU__
5 kx return 1;
5 kx #else
5 kx /* Check whether the given locale name is recognized by the system. */
5 kx # if defined _WIN32 && !defined __CYGWIN__
5 kx /* On native Windows, setlocale(category, "") looks at the system settings,
5 kx not at the environment variables. Also, when an encoding suffix such
5 kx as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
5 kx category of the locale to "C". */
5 kx if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
5 kx || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
5 kx return 1;
5 kx # else
5 kx if (setlocale (LC_ALL, "") == NULL) return 1;
5 kx # endif
5 kx /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
5 kx On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
5 kx is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
5 kx On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "646". In this situation,
5 kx some unit tests fail.
5 kx On MirBSD 10, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "UTF-8". */
5 kx # if HAVE_LANGINFO_CODESET
5 kx {
5 kx const char *cs = nl_langinfo (CODESET);
5 kx if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
5 kx || strcmp (cs, "UTF-8") == 0)
5 kx return 1;
5 kx }
5 kx # endif
5 kx # ifdef __CYGWIN__
5 kx /* On Cygwin, avoid locale names without encoding suffix, because the
5 kx locale_charset() function relies on the encoding suffix. Note that
5 kx LC_ALL is set on the command line. */
5 kx if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
5 kx # endif
5 kx /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
5 kx on Cygwin 1.5.x. */
5 kx if (MB_CUR_MAX == 1)
5 kx return 1;
5 kx /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
5 kx This excludes the UTF-8 encoding (except on MirBSD). */
5 kx {
5 kx const char *p;
5 kx t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
5 kx if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
5 kx for (p = buf; *p != '\0'; p++)
5 kx if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
5 kx return 1;
5 kx }
5 kx return 0;
5 kx #endif
5 kx }
5 kx
5 kx _ACEOF
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
5 kx case "$host_os" in
5 kx # Handle native Windows specially, because there setlocale() interprets
5 kx # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
5 kx # "fr" or "fra" as "French" or "French_France.1252",
5 kx # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
5 kx # "ja" as "Japanese" or "Japanese_Japan.932",
5 kx # and similar.
5 kx mingw*)
5 kx # Note that on native Windows, the Japanese locale is
5 kx # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
5 kx # cannot use it here.
5 kx gt_cv_locale_ja=none
5 kx ;;
5 kx *)
5 kx # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
5 kx # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
5 kx # configure script would override the LC_ALL setting. Likewise for
5 kx # LC_CTYPE, which is also set at the beginning of the configure script.
5 kx # Test for the AIX locale name.
5 kx if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_ja=ja_JP
5 kx else
5 kx # Test for the locale name with explicit encoding suffix.
5 kx if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_ja=ja_JP.EUC-JP
5 kx else
5 kx # Test for the HP-UX, OSF/1, NetBSD locale name.
5 kx if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_ja=ja_JP.eucJP
5 kx else
5 kx # Test for the IRIX, FreeBSD locale name.
5 kx if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_ja=ja_JP.EUC
5 kx else
5 kx # Test for the Solaris 7 locale name.
5 kx if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_ja=ja
5 kx else
5 kx # Special test for NetBSD 1.6.
5 kx if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
5 kx gt_cv_locale_ja=ja_JP.eucJP
5 kx else
5 kx # None found.
5 kx gt_cv_locale_ja=none
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
5 kx $as_echo "$gt_cv_locale_ja" >&6; }
5 kx LOCALE_JA=$gt_cv_locale_ja
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
5 kx $as_echo_n "checking for a transitional chinese locale... " >&6; }
5 kx if ${gt_cv_locale_zh_CN+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <locale.h>
5 kx #include <stdlib.h>
5 kx #include <time.h>
5 kx #if HAVE_LANGINFO_CODESET
5 kx # include <langinfo.h>
5 kx #endif
5 kx #include <stdlib.h>
5 kx #include <string.h>
5 kx struct tm t;
5 kx char buf[16];
5 kx int main ()
5 kx {
5 kx /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
5 kx imitates locale dependent behaviour by looking at the environment
5 kx variables, and all locales use the UTF-8 encoding. */
5 kx #if defined __BEOS__ || defined __HAIKU__
5 kx return 1;
5 kx #else
5 kx /* Check whether the given locale name is recognized by the system. */
5 kx # if defined _WIN32 && !defined __CYGWIN__
5 kx /* On native Windows, setlocale(category, "") looks at the system settings,
5 kx not at the environment variables. Also, when an encoding suffix such
5 kx as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
5 kx category of the locale to "C". */
5 kx if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
5 kx || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
5 kx return 1;
5 kx # else
5 kx if (setlocale (LC_ALL, "") == NULL) return 1;
5 kx # endif
5 kx /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
5 kx On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
5 kx is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
5 kx On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "646". In this situation,
5 kx some unit tests fail.
5 kx On MirBSD 10, when an unsupported locale is specified, setlocale()
5 kx succeeds but then nl_langinfo(CODESET) is "UTF-8". */
5 kx # if HAVE_LANGINFO_CODESET
5 kx {
5 kx const char *cs = nl_langinfo (CODESET);
5 kx if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
5 kx || strcmp (cs, "UTF-8") == 0)
5 kx return 1;
5 kx }
5 kx # endif
5 kx # ifdef __CYGWIN__
5 kx /* On Cygwin, avoid locale names without encoding suffix, because the
5 kx locale_charset() function relies on the encoding suffix. Note that
5 kx LC_ALL is set on the command line. */
5 kx if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
5 kx # endif
5 kx /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
5 kx This excludes the UTF-8 encoding (except on MirBSD). */
5 kx {
5 kx const char *p;
5 kx t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
5 kx if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
5 kx for (p = buf; *p != '\0'; p++)
5 kx if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
5 kx return 1;
5 kx }
5 kx /* Check whether a typical GB18030 multibyte sequence is recognized as a
5 kx single wide character. This excludes the GB2312 and GBK encodings. */
5 kx if (mblen ("\203\062\332\066", 5) != 4)
5 kx return 1;
5 kx return 0;
5 kx #endif
5 kx }
5 kx
5 kx _ACEOF
5 kx if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5 kx (eval $ac_link) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; } && test -s conftest$ac_exeext; then
5 kx case "$host_os" in
5 kx # Handle native Windows specially, because there setlocale() interprets
5 kx # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
5 kx # "fr" or "fra" as "French" or "French_France.1252",
5 kx # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
5 kx # "ja" as "Japanese" or "Japanese_Japan.932",
5 kx # and similar.
5 kx mingw*)
5 kx # Test for the hypothetical native Windows locale name.
5 kx if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_zh_CN=Chinese_China.54936
5 kx else
5 kx # None found.
5 kx gt_cv_locale_zh_CN=none
5 kx fi
5 kx ;;
5 kx solaris2.8)
5 kx # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
5 kx # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
5 kx # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
5 kx gt_cv_locale_zh_CN=none
5 kx ;;
5 kx *)
5 kx # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
5 kx # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
5 kx # configure script would override the LC_ALL setting. Likewise for
5 kx # LC_CTYPE, which is also set at the beginning of the configure script.
5 kx # Test for the locale name without encoding suffix.
5 kx if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_zh_CN=zh_CN
5 kx else
5 kx # Test for the locale name with explicit encoding suffix.
5 kx if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
5 kx gt_cv_locale_zh_CN=zh_CN.GB18030
5 kx else
5 kx # None found.
5 kx gt_cv_locale_zh_CN=none
5 kx fi
5 kx fi
5 kx ;;
5 kx esac
5 kx else
5 kx # If there was a link error, due to mblen(), the system is so old that
5 kx # it certainly doesn't have a chinese locale.
5 kx gt_cv_locale_zh_CN=none
5 kx fi
5 kx rm -fr conftest*
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
5 kx $as_echo "$gt_cv_locale_zh_CN" >&6; }
5 kx LOCALE_ZH_CN=$gt_cv_locale_zh_CN
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS setsockopt.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SETSOCKOPT" != 1; then
5 kx if test "$GNULIB_SETSOCKOPT" = 0; then
5 kx GNULIB_SETSOCKOPT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SETSOCKOPT="($GNULIB_SETSOCKOPT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_sigaction = yes; then
5 kx ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
5 kx HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
5 kx fi
5 kx else
5 kx HAVE_SIGACTION=0
5 kx fi
5 kx
5 kx if test $HAVE_SIGACTION = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS sigaction.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
5 kx #include <signal.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_siginfo_t" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_SIGINFO_T 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_type_siginfo_t = no; then
5 kx HAVE_SIGINFO_T=0
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SIGACTION" != 1; then
5 kx if test "$GNULIB_SIGACTION" = 0; then
5 kx GNULIB_SIGACTION=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SIGACTION="($GNULIB_SIGACTION || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_signal_h='<'signal.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
5 kx $as_echo_n "checking absolute name of <signal.h>... " >&6; }
5 kx if ${gl_cv_next_signal_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <signal.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'signal.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_signal_h
5 kx gl_cv_next_signal_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
5 kx $as_echo "$gl_cv_next_signal_h" >&6; }
5 kx fi
5 kx NEXT_SIGNAL_H=$gl_cv_next_signal_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'signal.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_signal_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # AIX declares sig_atomic_t to already include volatile, and C89 compilers
5 kx # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
5 kx ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
5 kx #include <signal.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
5 kx
5 kx else
5 kx HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
5 kx #include <signal.h>
5 kx
5 kx "
5 kx if test "x$ac_cv_type_sighandler_t" = xyes; then :
5 kx
5 kx else
5 kx HAVE_SIGHANDLER_T=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_type_sigset_t = yes; then
5 kx ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
5 kx if test "x$ac_cv_func_sigprocmask" = xyes; then :
5 kx gl_cv_func_sigprocmask=1
5 kx fi
5 kx
5 kx fi
5 kx if test -z "$gl_cv_func_sigprocmask"; then
5 kx HAVE_POSIX_SIGNALBLOCKING=0
5 kx fi
5 kx
5 kx if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS sigprocmask.$ac_objext"
5 kx
5 kx :
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SIGPROCMASK" != 1; then
5 kx if test "$GNULIB_SIGPROCMASK" = 0; then
5 kx GNULIB_SIGPROCMASK=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SIGPROCMASK="($GNULIB_SIGPROCMASK || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
5 kx "
5 kx if test "x$ac_cv_have_decl_sleep" = xyes; then :
5 kx ac_have_decl=1
5 kx else
5 kx ac_have_decl=0
5 kx fi
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_DECL_SLEEP $ac_have_decl
5 kx _ACEOF
5 kx
5 kx
5 kx if test $ac_cv_have_decl_sleep != yes; then
5 kx HAVE_SLEEP=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
5 kx $as_echo_n "checking for working sleep... " >&6; }
5 kx if ${gl_cv_func_sleep_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_sleep_works="guessing yes" ;;
5 kx # Guess no on native Windows.
5 kx mingw*) gl_cv_func_sleep_works="guessing no" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_sleep_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <errno.h>
5 kx #include <unistd.h>
5 kx #include <signal.h>
5 kx static void
5 kx handle_alarm (int sig)
5 kx {
5 kx if (sig != SIGALRM)
5 kx _exit (2);
5 kx }
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx /* Failure to compile this test due to missing alarm is okay,
5 kx since all such platforms (mingw) also lack sleep. */
5 kx unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
5 kx unsigned int remaining;
5 kx signal (SIGALRM, handle_alarm);
5 kx alarm (1);
5 kx remaining = sleep (pentecost);
5 kx if (remaining > pentecost)
5 kx return 3;
5 kx if (remaining <= pentecost - 10)
5 kx return 4;
5 kx return 0;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_sleep_works=yes
5 kx else
5 kx gl_cv_func_sleep_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
5 kx $as_echo "$gl_cv_func_sleep_works" >&6; }
5 kx case "$gl_cv_func_sleep_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_SLEEP=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS sleep.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SLEEP" != 1; then
5 kx if test "$GNULIB_SLEEP" = 0; then
5 kx GNULIB_SLEEP=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS socket.$ac_objext"
5 kx
5 kx fi
5 kx # When this module is used, sockets may actually occur as file descriptors,
5 kx # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
5 kx
5 kx
5 kx
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SOCKET" != 1; then
5 kx if test "$GNULIB_SOCKET" = 0; then
5 kx GNULIB_SOCKET=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SOCKET="($GNULIB_SOCKET || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
5 kx /* <sys/types.h> is not needed according to POSIX, but the
5 kx <sys/socket.h> in i386-unknown-freebsd4.10 and
5 kx powerpc-apple-darwin5.5 required it. */
5 kx #include <sys/types.h>
5 kx #if HAVE_SYS_SOCKET_H
5 kx # include <sys/socket.h>
5 kx #elif HAVE_WS2TCPIP_H
5 kx # include <ws2tcpip.h>
5 kx #endif
5 kx
5 kx "
5 kx if test "x$ac_cv_type_socklen_t" = xyes; then :
5 kx
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5 kx $as_echo_n "checking for socklen_t equivalent... " >&6; }
5 kx if ${gl_cv_socklen_t_equiv+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx # Systems have either "struct sockaddr *" or
5 kx # "void *" as the second argument to getpeername
5 kx gl_cv_socklen_t_equiv=
5 kx for arg2 in "struct sockaddr" void; do
5 kx for t in int size_t "unsigned int" "long int" "unsigned long int"; do
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/types.h>
5 kx #include <sys/socket.h>
5 kx
5 kx int getpeername (int, $arg2 *, $t *);
5 kx int
5 kx main ()
5 kx {
5 kx $t len;
5 kx getpeername (0, 0, &len);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_socklen_t_equiv="$t"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx test "$gl_cv_socklen_t_equiv" != "" && break
5 kx done
5 kx test "$gl_cv_socklen_t_equiv" != "" && break
5 kx done
5 kx if test "$gl_cv_socklen_t_equiv" = ""; then
5 kx as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
5 kx $as_echo "$gl_cv_socklen_t_equiv" >&6; }
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define socklen_t $gl_cv_socklen_t_equiv
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx REPLACE_STAT=1
5 kx ;;
5 kx *)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
5 kx $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
5 kx if ${gl_cv_func_stat_file_slash+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx touch conftest.tmp
5 kx # Assume that if we have lstat, we can also check symlinks.
5 kx if test $ac_cv_func_lstat = yes; then
5 kx ln -s conftest.tmp conftest.lnk
5 kx fi
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on Linux systems.
5 kx linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/stat.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx struct stat st;
5 kx if (!stat ("conftest.tmp/", &st))
5 kx result |= 1;
5 kx #if HAVE_LSTAT
5 kx if (!stat ("conftest.lnk/", &st))
5 kx result |= 2;
5 kx #endif
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_stat_file_slash=yes
5 kx else
5 kx gl_cv_func_stat_file_slash=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f conftest.tmp conftest.lnk
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
5 kx $as_echo "$gl_cv_func_stat_file_slash" >&6; }
5 kx case $gl_cv_func_stat_file_slash in
5 kx *no)
5 kx REPLACE_STAT=1
5 kx
5 kx $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
5 kx ;;
5 kx esac
5 kx case $host_os in
5 kx solaris*)
5 kx REPLACE_FSTAT=1 ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx if test $REPLACE_STAT = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS stat.$ac_objext"
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS stat-w32.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx :
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_STAT" != 1; then
5 kx if test "$GNULIB_STAT" = 0; then
5 kx GNULIB_STAT=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_STAT="($GNULIB_STAT || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
5 kx $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
5 kx if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx #if HAVE_SYS_TIME_H
5 kx # include <sys/time.h>
5 kx #endif
5 kx #include <time.h>
5 kx struct timespec ts;
5 kx struct stat st;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx st.st_atim = ts;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
5 kx else
5 kx ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
5 kx $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
5 kx if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
5 kx
5 kx $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
5 kx
5 kx fi
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx else
5 kx ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
5 kx _ACEOF
5 kx
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
5 kx $as_echo_n "checking for working stdalign.h... " >&6; }
5 kx if ${gl_cv_header_working_stdalign_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdalign.h>
5 kx #include <stddef.h>
5 kx
5 kx /* Test that alignof yields a result consistent with offsetof.
5 kx This catches GCC bug 52023
5 kx <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
5 kx #ifdef __cplusplus
5 kx template <class t> struct alignof_helper { char a; t b; };
5 kx # define ao(type) offsetof (alignof_helper<type>, b)
5 kx #else
5 kx # define ao(type) offsetof (struct { char a; type b; }, b)
5 kx #endif
5 kx char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
5 kx char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
5 kx char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
5 kx
5 kx /* Test _Alignas only on platforms where gnulib can help. */
5 kx #if \
5 kx ((defined __cplusplus && 201103 <= __cplusplus) \
5 kx || (defined __APPLE__ && defined __MACH__ \
5 kx ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
5 kx : __GNUC__) \
5 kx || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
5 kx || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
5 kx || 1300 <= _MSC_VER)
5 kx struct alignas_test { char c; char alignas (8) alignas_8; };
5 kx char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
5 kx ? 1 : -1];
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_header_working_stdalign_h=yes
5 kx else
5 kx gl_cv_header_working_stdalign_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
5 kx $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
5 kx
5 kx if test $gl_cv_header_working_stdalign_h = yes; then
5 kx STDALIGN_H=''
5 kx else
5 kx STDALIGN_H='stdalign.h'
5 kx fi
5 kx
5 kx
5 kx if test -n "$STDALIGN_H"; then
5 kx GL_GENERATE_STDALIGN_H_TRUE=
5 kx GL_GENERATE_STDALIGN_H_FALSE='#'
5 kx else
5 kx GL_GENERATE_STDALIGN_H_TRUE='#'
5 kx GL_GENERATE_STDALIGN_H_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_stdio_h='<'stdio.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
5 kx $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
5 kx if ${gl_cv_next_stdio_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdio.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'stdio.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_stdio_h
5 kx gl_cv_next_stdio_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
5 kx $as_echo "$gl_cv_next_stdio_h" >&6; }
5 kx fi
5 kx NEXT_STDIO_H=$gl_cv_next_stdio_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'stdio.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_stdio_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
5 kx $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
5 kx if ${gl_cv_func_printf_attribute_flavor+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #define __STDC_FORMAT_MACROS 1
5 kx #include <stdio.h>
5 kx #include <inttypes.h>
5 kx /* For non-mingw systems, compilation will trivially succeed.
5 kx For mingw, compilation will succeed for older mingw (system
5 kx printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
5 kx #if (defined _WIN32 && ! defined __CYGWIN__) && \
5 kx (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
5 kx extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
5 kx #endif
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_func_printf_attribute_flavor=system
5 kx else
5 kx gl_cv_func_printf_attribute_flavor=gnu
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
5 kx $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
5 kx if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
5 kx
5 kx $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx GNULIB_FSCANF=1
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_FSCANF $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx GNULIB_SCANF=1
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_SCANF $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx GNULIB_FGETC=1
5 kx GNULIB_GETC=1
5 kx GNULIB_GETCHAR=1
5 kx GNULIB_FGETS=1
5 kx GNULIB_FREAD=1
5 kx
5 kx
5 kx GNULIB_FPRINTF=1
5 kx GNULIB_PRINTF=1
5 kx GNULIB_VFPRINTF=1
5 kx GNULIB_VPRINTF=1
5 kx GNULIB_FPUTC=1
5 kx GNULIB_PUTC=1
5 kx GNULIB_PUTCHAR=1
5 kx GNULIB_FPUTS=1
5 kx GNULIB_PUTS=1
5 kx GNULIB_FWRITE=1
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_stdlib_h='<'stdlib.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
5 kx $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
5 kx if ${gl_cv_next_stdlib_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <stdlib.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'stdlib.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_stdlib_h
5 kx gl_cv_next_stdlib_h='"'$gl_header'"'
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
5 kx $as_echo "$gl_cv_next_stdlib_h" >&6; }
5 kx fi
5 kx NEXT_STDLIB_H=$gl_cv_next_stdlib_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'stdlib.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_stdlib_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
5 kx $as_echo_n "checking for working strerror function... " >&6; }
5 kx if ${gl_cv_func_working_strerror+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <string.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx if (!*strerror (-2)) return 1;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_working_strerror=yes
5 kx else
5 kx gl_cv_func_working_strerror=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
5 kx $as_echo "$gl_cv_func_working_strerror" >&6; }
5 kx case "$gl_cv_func_working_strerror" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_STRERROR=1
5 kx ;;
5 kx esac
5 kx
5 kx case "$gl_cv_func_strerror_r_works" in
5 kx *no) REPLACE_STRERROR=1 ;;
5 kx esac
5 kx
5 kx else
5 kx REPLACE_STRERROR=1
5 kx fi
5 kx
5 kx if test $REPLACE_STRERROR = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS strerror.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_STRERROR $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_STRERROR" != 1; then
5 kx if test "$GNULIB_STRERROR" = 0; then
5 kx GNULIB_STRERROR=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_STRERROR="($GNULIB_STRERROR || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS strerror-override.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_socket_h != yes; then
5 kx for ac_header in winsock2.h
5 kx do :
5 kx ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5 kx if test "x$ac_cv_header_winsock2_h" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_WINSOCK2_H 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx
5 kx done
5 kx
5 kx fi
5 kx if test "$ac_cv_header_winsock2_h" = yes; then
5 kx HAVE_WINSOCK2_H=1
5 kx UNISTD_H_HAVE_WINSOCK2_H=1
5 kx SYS_IOCTL_H_HAVE_WINSOCK2_H=1
5 kx else
5 kx HAVE_WINSOCK2_H=0
5 kx fi
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_have_decl_strerror_r = no; then
5 kx HAVE_DECL_STRERROR_R=0
5 kx fi
5 kx
5 kx if test $ac_cv_func_strerror_r = yes; then
5 kx if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
5 kx if test $gl_cv_func_strerror_r_posix_signature = yes; then
5 kx case "$gl_cv_func_strerror_r_works" in
5 kx *no) REPLACE_STRERROR_R=1 ;;
5 kx esac
5 kx else
5 kx REPLACE_STRERROR_R=1
5 kx fi
5 kx else
5 kx REPLACE_STRERROR_R=1
5 kx fi
5 kx fi
5 kx
5 kx if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS strerror_r.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_STRERROR_R" != 1; then
5 kx if test "$GNULIB_STRERROR_R" = 0; then
5 kx GNULIB_STRERROR_R=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_STRERROR_R="($GNULIB_STRERROR_R || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define GNULIB_STRERROR_R_POSIX $gl_module_indicator_condition
5 kx _ACEOF
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_func_symlink = no; then
5 kx HAVE_SYMLINK=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
5 kx $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
5 kx if ${gl_cv_func_symlink_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on Linux systems.
5 kx linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;;
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_symlink_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <unistd.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx int result = 0;
5 kx if (!symlink ("a", "conftest.link/"))
5 kx result |= 1;
5 kx if (symlink ("conftest.f", "conftest.lnk2"))
5 kx result |= 2;
5 kx else if (!symlink ("a", "conftest.lnk2/"))
5 kx result |= 4;
5 kx return result;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_symlink_works=yes
5 kx else
5 kx gl_cv_func_symlink_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx rm -f conftest.f conftest.link conftest.lnk2
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
5 kx $as_echo "$gl_cv_func_symlink_works" >&6; }
5 kx case "$gl_cv_func_symlink_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_SYMLINK=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS symlink.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_SYMLINK" != 1; then
5 kx if test "$GNULIB_SYMLINK" = 0; then
5 kx GNULIB_SYMLINK=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_ioctl_h = yes; then
5 kx HAVE_SYS_IOCTL_H=1
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
5 kx $as_echo_n "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
5 kx if ${gl_cv_decl_ioctl_in_sys_ioctl_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/ioctl.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx (void) ioctl;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_decl_ioctl_in_sys_ioctl_h=yes
5 kx else
5 kx gl_cv_decl_ioctl_in_sys_ioctl_h=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
5 kx $as_echo "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
5 kx else
5 kx HAVE_SYS_IOCTL_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/ioctl.h>... " >&6; }
5 kx if ${gl_cv_next_sys_ioctl_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_ioctl_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/ioctl.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/ioctl.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_ioctl_h
5 kx gl_cv_next_sys_ioctl_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
5 kx $as_echo "$gl_cv_next_sys_ioctl_h" >&6; }
5 kx fi
5 kx NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/ioctl.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_stat_h='<'sys/stat.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
5 kx if ${gl_cv_next_sys_stat_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_stat_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/stat.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/stat.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_stat_h
5 kx gl_cv_next_sys_stat_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_stat_h='<'sys/stat.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
5 kx $as_echo "$gl_cv_next_sys_stat_h" >&6; }
5 kx fi
5 kx NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/stat.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_stat_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx WINDOWS_STAT_TIMESPEC=0
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
5 kx #include <sys/stat.h>
5 kx "
5 kx if test "x$ac_cv_type_nlink_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx $as_echo "#define nlink_t int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_sys_uio_h='<'sys/uio.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
5 kx $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
5 kx if ${gl_cv_next_sys_uio_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_sys_uio_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <sys/uio.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'sys/uio.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_sys_uio_h
5 kx gl_cv_next_sys_uio_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_sys_uio_h='<'sys/uio.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
5 kx $as_echo "$gl_cv_next_sys_uio_h" >&6; }
5 kx fi
5 kx NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'sys/uio.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_sys_uio_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_sys_uio_h = yes; then
5 kx HAVE_SYS_UIO_H=1
5 kx else
5 kx HAVE_SYS_UIO_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_threads_api = posix; then
5 kx gl_save_LIBS="$LIBS"
5 kx LIBS="$LIBS $LIBMULTITHREAD"
5 kx for ac_func in pthread_atfork
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
5 kx if test "x$ac_cv_func_pthread_atfork" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_PTHREAD_ATFORK 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx LIBS="$gl_save_LIBS"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_unistd_h='<'unistd.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
5 kx $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
5 kx if ${gl_cv_next_unistd_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_unistd_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <unistd.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'unistd.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_unistd_h
5 kx gl_cv_next_unistd_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_unistd_h='<'unistd.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
5 kx $as_echo "$gl_cv_next_unistd_h" >&6; }
5 kx fi
5 kx NEXT_UNISTD_H=$gl_cv_next_unistd_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'unistd.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_unistd_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_unistd_h = yes; then
5 kx HAVE_UNISTD_H=1
5 kx else
5 kx HAVE_UNISTD_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_have_decl_unsetenv = no; then
5 kx HAVE_DECL_UNSETENV=0
5 kx fi
5 kx for ac_func in unsetenv
5 kx do :
5 kx ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
5 kx if test "x$ac_cv_func_unsetenv" = xyes; then :
5 kx cat >>confdefs.h <<_ACEOF
5 kx #define HAVE_UNSETENV 1
5 kx _ACEOF
5 kx
5 kx fi
5 kx done
5 kx
5 kx if test $ac_cv_func_unsetenv = no; then
5 kx HAVE_UNSETENV=0
5 kx else
5 kx HAVE_UNSETENV=1
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
5 kx $as_echo_n "checking for unsetenv() return type... " >&6; }
5 kx if ${gt_cv_func_unsetenv_ret+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #undef _BSD
5 kx #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
5 kx #include <stdlib.h>
5 kx extern
5 kx #ifdef __cplusplus
5 kx "C"
5 kx #endif
5 kx int unsetenv (const char *name);
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gt_cv_func_unsetenv_ret='int'
5 kx else
5 kx gt_cv_func_unsetenv_ret='void'
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
5 kx $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
5 kx if test $gt_cv_func_unsetenv_ret = 'void'; then
5 kx
5 kx $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
5 kx
5 kx REPLACE_UNSETENV=1
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
5 kx $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
5 kx if ${gl_cv_func_unsetenv_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <stdlib.h>
5 kx #include <errno.h>
5 kx extern char **environ;
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx char entry1[] = "a=1";
5 kx char entry2[] = "b=2";
5 kx char *env[] = { entry1, entry2, NULL };
5 kx if (putenv ((char *) "a=1")) return 1;
5 kx if (putenv (entry2)) return 2;
5 kx entry2[0] = 'a';
5 kx unsetenv ("a");
5 kx if (getenv ("a")) return 3;
5 kx if (!unsetenv ("") || errno != EINVAL) return 4;
5 kx entry2[0] = 'b';
5 kx environ = env;
5 kx if (!getenv ("a")) return 5;
5 kx entry2[0] = 'a';
5 kx unsetenv ("a");
5 kx if (getenv ("a")) return 6;
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_unsetenv_works=yes
5 kx else
5 kx gl_cv_func_unsetenv_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
5 kx $as_echo "$gl_cv_func_unsetenv_works" >&6; }
5 kx case "$gl_cv_func_unsetenv_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_UNSETENV=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS unsetenv.$ac_objext"
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_UNSETENV" != 1; then
5 kx if test "$GNULIB_UNSETENV" = 0; then
5 kx GNULIB_UNSETENV=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_UNSETENV="($GNULIB_UNSETENV || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx ac_fn_c_check_type "$LINENO" "useconds_t" "ac_cv_type_useconds_t" "$ac_includes_default"
5 kx if test "x$ac_cv_type_useconds_t" = xyes; then :
5 kx
5 kx else
5 kx
5 kx $as_echo "#define useconds_t unsigned int" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx if test $ac_cv_func_usleep = no; then
5 kx HAVE_USLEEP=0
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep allows large arguments" >&5
5 kx $as_echo_n "checking whether usleep allows large arguments... " >&6; }
5 kx if ${gl_cv_func_usleep_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test "$cross_compiling" = yes; then :
5 kx case "$host_os" in
5 kx # Guess yes on glibc systems.
5 kx *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;;
5 kx # Guess yes on musl systems.
5 kx *-musl*) gl_cv_func_usleep_works="guessing yes" ;;
5 kx # Guess no on native Windows.
5 kx mingw*) gl_cv_func_usleep_works="guessing no" ;;
5 kx # If we don't know, obey --enable-cross-guesses.
5 kx *) gl_cv_func_usleep_works="$gl_cross_guess_normal" ;;
5 kx esac
5 kx
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #include <unistd.h>
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx return !!usleep (1000000);
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_run "$LINENO"; then :
5 kx gl_cv_func_usleep_works=yes
5 kx else
5 kx gl_cv_func_usleep_works=no
5 kx fi
5 kx rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5 kx conftest.$ac_objext conftest.beam conftest.$ac_ext
5 kx fi
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_usleep_works" >&5
5 kx $as_echo "$gl_cv_func_usleep_works" >&6; }
5 kx case "$gl_cv_func_usleep_works" in
5 kx *yes) ;;
5 kx *)
5 kx REPLACE_USLEEP=1
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS usleep.$ac_objext"
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test "$GNULIB_USLEEP" != 1; then
5 kx if test "$GNULIB_USLEEP" = 0; then
5 kx GNULIB_USLEEP=$gl_module_indicator_condition
5 kx else
5 kx GNULIB_USLEEP="($GNULIB_USLEEP || $gl_module_indicator_condition)"
5 kx fi
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx $as_echo "#define GNULIB_TEST_USLEEP 1" >>confdefs.h
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gl_cv_have_include_next = yes; then
5 kx gl_cv_next_wchar_h='<'wchar.h'>'
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
5 kx $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
5 kx if ${gl_cv_next_wchar_h+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx if test $ac_cv_header_wchar_h = yes; then
5 kx
5 kx
5 kx
5 kx
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <wchar.h>
5 kx _ACEOF
5 kx case "$host_os" in
5 kx aix*) gl_absname_cpp="$ac_cpp -C" ;;
5 kx *) gl_absname_cpp="$ac_cpp" ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx gl_dirsep_regex='[/\\]'
5 kx ;;
5 kx *)
5 kx gl_dirsep_regex='\/'
5 kx ;;
5 kx esac
5 kx gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5 kx gl_header_literal_regex=`echo 'wchar.h' \
5 kx | sed -e "$gl_make_literal_regex_sed"`
5 kx gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5 kx s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5 kx s|^/[^/]|//&|
5 kx p
5 kx q
5 kx }'
5 kx
5 kx gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5 kx sed -n "$gl_absolute_header_sed"`
5 kx
5 kx gl_header=$gl_cv_absolute_wchar_h
5 kx gl_cv_next_wchar_h='"'$gl_header'"'
5 kx else
5 kx gl_cv_next_wchar_h='<'wchar.h'>'
5 kx fi
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
5 kx $as_echo "$gl_cv_next_wchar_h" >&6; }
5 kx fi
5 kx NEXT_WCHAR_H=$gl_cv_next_wchar_h
5 kx
5 kx if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5 kx gl_next_as_first_directive='<'wchar.h'>'
5 kx else
5 kx # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5 kx gl_next_as_first_directive=$gl_cv_next_wchar_h
5 kx fi
5 kx NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
5 kx
5 kx
5 kx
5 kx
5 kx if test $ac_cv_header_wchar_h = yes; then
5 kx HAVE_WCHAR_H=1
5 kx else
5 kx HAVE_WCHAR_H=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx if test $gt_cv_c_wint_t = yes; then
5 kx HAVE_WINT_T=1
5 kx else
5 kx HAVE_WINT_T=0
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS windows-mutex.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS windows-once.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS windows-recmutex.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS windows-rwlock.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS windows-thread.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx case "$host_os" in
5 kx mingw*)
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx lgltests_LIBOBJS="$lgltests_LIBOBJS windows-tls.$ac_objext"
5 kx
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx LIBTESTS_LIBDEPS="$gltests_libdeps"
5 kx
5 kx
5 kx
5 kx # Check if locale stuff works
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5 kx $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5 kx if ${am_cv_langinfo_codeset+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx #include <langinfo.h>
5 kx int
5 kx main ()
5 kx {
5 kx char* cs = nl_langinfo(CODESET); return !cs;
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx am_cv_langinfo_codeset=yes
5 kx else
5 kx am_cv_langinfo_codeset=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5 kx $as_echo "$am_cv_langinfo_codeset" >&6; }
5 kx if test $am_cv_langinfo_codeset = yes; then
5 kx
5 kx $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5 kx
5 kx fi
5 kx
5 kx
5 kx # Make it possible to disable TLD code.
5 kx # Check whether --enable-tld was given.
5 kx if test "${enable_tld+set}" = set; then :
5 kx enableval=$enable_tld; enable_tld=$enableval
5 kx else
5 kx enable_tld=yes
5 kx fi
5 kx
5 kx if test "$enable_tld" != "no"; then
5 kx TLD_TRUE=
5 kx TLD_FALSE='#'
5 kx else
5 kx TLD_TRUE='#'
5 kx TLD_FALSE=
5 kx fi
5 kx
5 kx if test "$enable_tld" != "no"; then
5 kx
5 kx $as_echo "#define WITH_TLD 1" >>confdefs.h
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TLD API for specific TLD rules should be built" >&5
5 kx $as_echo_n "checking if TLD API for specific TLD rules should be built... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tld" >&5
5 kx $as_echo "$enable_tld" >&6; }
5 kx
5 kx # Check for gtk-doc.
5 kx #
5 kx
5 kx
5 kx
5 kx if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5 kx if test -n "$ac_tool_prefix"; then
5 kx # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5 kx set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_PKG_CONFIG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $PKG_CONFIG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5 kx if test -n "$PKG_CONFIG"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5 kx $as_echo "$PKG_CONFIG" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx fi
5 kx if test -z "$ac_cv_path_PKG_CONFIG"; then
5 kx ac_pt_PKG_CONFIG=$PKG_CONFIG
5 kx # Extract the first word of "pkg-config", so it can be a program name with args.
5 kx set dummy pkg-config; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $ac_pt_PKG_CONFIG in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5 kx if test -n "$ac_pt_PKG_CONFIG"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5 kx $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx if test "x$ac_pt_PKG_CONFIG" = x; then
5 kx PKG_CONFIG=""
5 kx else
5 kx case $cross_compiling:$ac_tool_warned in
5 kx yes:)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5 kx $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5 kx ac_tool_warned=yes ;;
5 kx esac
5 kx PKG_CONFIG=$ac_pt_PKG_CONFIG
5 kx fi
5 kx else
5 kx PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5 kx fi
5 kx
5 kx fi
5 kx if test -n "$PKG_CONFIG"; then
5 kx _pkg_min_version=0.9.0
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5 kx $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5 kx if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx PKG_CONFIG=""
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx
5 kx gtk_doc_requires="gtk-doc >= 1.1"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
5 kx $as_echo_n "checking for gtk-doc... " >&6; }
5 kx have_gtk_doc=yes
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
5 kx $as_echo "$have_gtk_doc" >&6; }
5 kx
5 kx if test "$have_gtk_doc" = "no"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5 kx You will not be able to create source packages with 'make dist'
5 kx because $gtk_doc_requires is not found." >&5
5 kx $as_echo "$as_me: WARNING:
5 kx You will not be able to create source packages with 'make dist'
5 kx because $gtk_doc_requires is not found." >&2;}
5 kx fi
5 kx
5 kx # Extract the first word of "gtkdoc-check", so it can be a program name with args.
5 kx set dummy gtkdoc-check; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$GTKDOC_CHECK"; then
5 kx ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
5 kx if test -n "$GTKDOC_CHECK"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
5 kx $as_echo "$GTKDOC_CHECK" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx # Extract the first word of "gtkdoc-check", so it can be a program name with args.
5 kx set dummy gtkdoc-check; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $GTKDOC_CHECK_PATH in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
5 kx if test -n "$GTKDOC_CHECK_PATH"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
5 kx $as_echo "$GTKDOC_CHECK_PATH" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx for ac_prog in gtkdoc-rebase
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $GTKDOC_REBASE in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
5 kx if test -n "$GTKDOC_REBASE"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
5 kx $as_echo "$GTKDOC_REBASE" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$GTKDOC_REBASE" && break
5 kx done
5 kx test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
5 kx
5 kx # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
5 kx set dummy gtkdoc-mkpdf; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx case $GTKDOC_MKPDF in
5 kx [\\/]* | ?:[\\/]*)
5 kx ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
5 kx ;;
5 kx *)
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx fi
5 kx GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
5 kx if test -n "$GTKDOC_MKPDF"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
5 kx $as_echo "$GTKDOC_MKPDF" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx # Check whether --with-html-dir was given.
5 kx if test "${with_html_dir+set}" = set; then :
5 kx withval=$with_html_dir;
5 kx else
5 kx with_html_dir='${datadir}/gtk-doc/html'
5 kx fi
5 kx
5 kx HTML_DIR="$with_html_dir"
5 kx
5 kx
5 kx # Check whether --enable-gtk-doc was given.
5 kx if test "${enable_gtk_doc+set}" = set; then :
5 kx enableval=$enable_gtk_doc;
5 kx else
5 kx enable_gtk_doc=no
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
5 kx $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
5 kx $as_echo "$enable_gtk_doc" >&6; }
5 kx
5 kx if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
5 kx as_fn_error $? "
5 kx You must have $gtk_doc_requires installed to build documentation for
5 kx $PACKAGE_NAME. Please install gtk-doc or disable building the
5 kx documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
5 kx fi
5 kx
5 kx if test "x$PACKAGE_NAME" != "xglib"; then
5 kx
5 kx pkg_failed=no
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
5 kx $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
5 kx
5 kx if test -n "$PKG_CONFIG"; then
5 kx if test -n "$GTKDOC_DEPS_CFLAGS"; then
5 kx pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
5 kx else
5 kx if test -n "$PKG_CONFIG" && \
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
5 kx ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx if test -n "$PKG_CONFIG"; then
5 kx if test -n "$GTKDOC_DEPS_LIBS"; then
5 kx pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
5 kx else
5 kx if test -n "$PKG_CONFIG" && \
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
5 kx ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; then
5 kx pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
5 kx else
5 kx pkg_failed=yes
5 kx fi
5 kx fi
5 kx else
5 kx pkg_failed=untried
5 kx fi
5 kx
5 kx
5 kx
5 kx if test $pkg_failed = yes; then
5 kx
5 kx if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5 kx _pkg_short_errors_supported=yes
5 kx else
5 kx _pkg_short_errors_supported=no
5 kx fi
5 kx if test $_pkg_short_errors_supported = yes; then
5 kx GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
5 kx else
5 kx GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
5 kx fi
5 kx # Put the nasty error message in config.log where it belongs
5 kx echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx :
5 kx elif test $pkg_failed = untried; then
5 kx :
5 kx else
5 kx GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
5 kx GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5 kx $as_echo "yes" >&6; }
5 kx :
5 kx fi
5 kx fi
5 kx
5 kx # Check whether --enable-gtk-doc-html was given.
5 kx if test "${enable_gtk_doc_html+set}" = set; then :
5 kx enableval=$enable_gtk_doc_html;
5 kx else
5 kx enable_gtk_doc_html=yes
5 kx fi
5 kx
5 kx # Check whether --enable-gtk-doc-pdf was given.
5 kx if test "${enable_gtk_doc_pdf+set}" = set; then :
5 kx enableval=$enable_gtk_doc_pdf;
5 kx else
5 kx enable_gtk_doc_pdf=no
5 kx fi
5 kx
5 kx
5 kx if test -z "$GTKDOC_MKPDF"; then
5 kx enable_gtk_doc_pdf=no
5 kx fi
5 kx
5 kx if test -z "$AM_DEFAULT_VERBOSITY"; then
5 kx AM_DEFAULT_VERBOSITY=1
5 kx fi
5 kx
5 kx
5 kx if test x$have_gtk_doc = xyes; then
5 kx HAVE_GTK_DOC_TRUE=
5 kx HAVE_GTK_DOC_FALSE='#'
5 kx else
5 kx HAVE_GTK_DOC_TRUE='#'
5 kx HAVE_GTK_DOC_FALSE=
5 kx fi
5 kx
5 kx if test x$enable_gtk_doc = xyes; then
5 kx ENABLE_GTK_DOC_TRUE=
5 kx ENABLE_GTK_DOC_FALSE='#'
5 kx else
5 kx ENABLE_GTK_DOC_TRUE='#'
5 kx ENABLE_GTK_DOC_FALSE=
5 kx fi
5 kx
5 kx if test x$enable_gtk_doc_html = xyes; then
5 kx GTK_DOC_BUILD_HTML_TRUE=
5 kx GTK_DOC_BUILD_HTML_FALSE='#'
5 kx else
5 kx GTK_DOC_BUILD_HTML_TRUE='#'
5 kx GTK_DOC_BUILD_HTML_FALSE=
5 kx fi
5 kx
5 kx if test x$enable_gtk_doc_pdf = xyes; then
5 kx GTK_DOC_BUILD_PDF_TRUE=
5 kx GTK_DOC_BUILD_PDF_FALSE='#'
5 kx else
5 kx GTK_DOC_BUILD_PDF_TRUE='#'
5 kx GTK_DOC_BUILD_PDF_FALSE=
5 kx fi
5 kx
5 kx if test -n "$LIBTOOL"; then
5 kx GTK_DOC_USE_LIBTOOL_TRUE=
5 kx GTK_DOC_USE_LIBTOOL_FALSE='#'
5 kx else
5 kx GTK_DOC_USE_LIBTOOL_TRUE='#'
5 kx GTK_DOC_USE_LIBTOOL_FALSE=
5 kx fi
5 kx
5 kx if test -n "$GTKDOC_REBASE"; then
5 kx GTK_DOC_USE_REBASE_TRUE=
5 kx GTK_DOC_USE_REBASE_FALSE='#'
5 kx else
5 kx GTK_DOC_USE_REBASE_TRUE='#'
5 kx GTK_DOC_USE_REBASE_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx # Check for java
5 kx # Check whether --enable-java was given.
5 kx if test "${enable_java+set}" = set; then :
5 kx enableval=$enable_java;
5 kx else
5 kx enable_java=no
5 kx fi
5 kx
5 kx if test "$enable_java" != "no"; then
5 kx
5 kx
5 kx # Check whether --with-java-prefix was given.
5 kx if test "${with_java_prefix+set}" = set; then :
5 kx withval=$with_java_prefix;
5 kx fi
5 kx
5 kx
5 kx # Check whether --with-javac-flags was given.
5 kx if test "${with_javac_flags+set}" = set; then :
5 kx withval=$with_javac_flags;
5 kx fi
5 kx
5 kx
5 kx # Check whether --with-java-flags was given.
5 kx if test "${with_java_flags+set}" = set; then :
5 kx withval=$with_java_flags;
5 kx fi
5 kx
5 kx JAVAPREFIX=$with_java_prefix
5 kx JAVACFLAGS=$with_javac_flags
5 kx JAVAFLAGS=$with_java_flags
5 kx
5 kx
5 kx if test "x$JAVAPREFIX" = x; then :
5 kx test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_JAVAC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$JAVAC"; then
5 kx ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_JAVAC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx JAVAC=$ac_cv_prog_JAVAC
5 kx if test -n "$JAVAC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
5 kx $as_echo "$JAVAC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$JAVAC" && break
5 kx done
5 kx
5 kx else
5 kx test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_JAVAC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$JAVAC"; then
5 kx ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $JAVAPREFIX/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_JAVAC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx JAVAC=$ac_cv_prog_JAVAC
5 kx if test -n "$JAVAC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
5 kx $as_echo "$JAVAC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$JAVAC" && break
5 kx done
5 kx
5 kx fi
5 kx test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
5 kx $as_echo_n "checking if $JAVAC works... " >&6; }
5 kx if ${ac_cv_prog_javac_works+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx JAVA_TEST=Test.java
5 kx CLASS_TEST=Test.class
5 kx cat << \EOF > $JAVA_TEST
5 kx /* #line 45652 "configure" */
5 kx public class Test {
5 kx }
5 kx EOF
5 kx if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
5 kx { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5 kx (eval $ac_try) 2>&5
5 kx ac_status=$?
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5 kx test $ac_status = 0; }; } >/dev/null 2>&1; then
5 kx ac_cv_prog_javac_works=yes
5 kx else
5 kx as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
5 kx echo "configure: failed program was:" >&5
5 kx cat $JAVA_TEST >&5
5 kx fi
5 kx rm -f $JAVA_TEST $CLASS_TEST
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
5 kx $as_echo "$ac_cv_prog_javac_works" >&6; }
5 kx
5 kx
5 kx
5 kx if test "x$JAVAPREFIX" = x; then :
5 kx test "x$JAVADOC" = x && for ac_prog in javadoc
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_JAVADOC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$JAVADOC"; then
5 kx ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_JAVADOC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx JAVADOC=$ac_cv_prog_JAVADOC
5 kx if test -n "$JAVADOC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
5 kx $as_echo "$JAVADOC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$JAVADOC" && break
5 kx done
5 kx
5 kx else
5 kx test "x$JAVADOC" = x && for ac_prog in javadoc
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_JAVADOC+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$JAVADOC"; then
5 kx ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $JAVAPREFIX/bin
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_JAVADOC="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx JAVADOC=$ac_cv_prog_JAVADOC
5 kx if test -n "$JAVADOC"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
5 kx $as_echo "$JAVADOC" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$JAVADOC" && break
5 kx done
5 kx
5 kx fi
5 kx test "x$JAVADOC" = x && as_fn_error $? "no acceptable javadoc generator found in \$PATH" "$LINENO" 5
5 kx
5 kx
5 kx
5 kx if test "x$JAVAPREFIX" = x; then
5 kx test "x$JAR" = x && for ac_prog in jar$EXEEXT
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_JAR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$JAR"; then
5 kx ac_cv_prog_JAR="$JAR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_JAR="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx JAR=$ac_cv_prog_JAR
5 kx if test -n "$JAR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5 kx $as_echo "$JAR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$JAR" && break
5 kx done
5 kx
5 kx else
5 kx test "x$JAR" = x && for ac_prog in jar
5 kx do
5 kx # Extract the first word of "$ac_prog", so it can be a program name with args.
5 kx set dummy $ac_prog; ac_word=$2
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5 kx $as_echo_n "checking for $ac_word... " >&6; }
5 kx if ${ac_cv_prog_JAR+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$JAR"; then
5 kx ac_cv_prog_JAR="$JAR" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_JAR="$ac_prog"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx JAR=$ac_cv_prog_JAR
5 kx if test -n "$JAR"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5 kx $as_echo "$JAR" >&6; }
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5 kx $as_echo "no" >&6; }
5 kx fi
5 kx
5 kx
5 kx test -n "$JAR" && break
5 kx done
5 kx test -n "$JAR" || JAR="$JAVAPREFIX"
5 kx
5 kx fi
5 kx test "x$JAR" = x && as_fn_error $? "no acceptable jar program found in \$PATH" "$LINENO" 5
5 kx
5 kx
5 kx JAVADOC=${JAVADOC-"${am_missing_run}javadoc"}
5 kx
5 kx fi
5 kx if test "$enable_java" != "no"; then
5 kx JAVA_TRUE=
5 kx JAVA_FALSE='#'
5 kx else
5 kx JAVA_TRUE='#'
5 kx JAVA_FALSE=
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if implementation in Java should be built" >&5
5 kx $as_echo_n "checking if implementation in Java should be built... " >&6; }
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_java" >&5
5 kx $as_echo "$enable_java" >&6; }
5 kx
5 kx # Check for C#
5 kx if test -n "$HAVE_CSHARPCOMP"; then
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# program execution engine" >&5
5 kx $as_echo_n "checking for C# program execution engine... " >&6; }
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx #if defined _WIN32 || defined __EMX__ || defined __DJGPP__
5 kx yes
5 kx #endif
5 kx
5 kx _ACEOF
5 kx if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5 kx $EGREP "yes" >/dev/null 2>&1; then :
5 kx MONO_PATH_SEPARATOR=';'
5 kx else
5 kx MONO_PATH_SEPARATOR=':'
5 kx fi
5 kx rm -f conftest*
5 kx
5 kx HAVE_CSHARPEXEC=1
5 kx # Extract the first word of "mono", so it can be a program name with args.
5 kx set dummy mono; ac_word=$2
5 kx :
5 kx if ${ac_cv_prog_HAVE_MONO_IN_PATH+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$HAVE_MONO_IN_PATH"; then
5 kx ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_HAVE_MONO_IN_PATH="yes"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
5 kx if test -n "$HAVE_MONO_IN_PATH"; then
5 kx :
5 kx else
5 kx :
5 kx fi
5 kx
5 kx
5 kx # Extract the first word of "clix", so it can be a program name with args.
5 kx set dummy clix; ac_word=$2
5 kx :
5 kx if ${ac_cv_prog_HAVE_CLIX_IN_PATH+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx if test -n "$HAVE_CLIX_IN_PATH"; then
5 kx ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test.
5 kx else
5 kx as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx for ac_exec_ext in '' $ac_executable_extensions; do
5 kx if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5 kx ac_cv_prog_HAVE_CLIX_IN_PATH="yes"
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5 kx break 2
5 kx fi
5 kx done
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx fi
5 kx fi
5 kx HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH
5 kx if test -n "$HAVE_CLIX_IN_PATH"; then
5 kx :
5 kx else
5 kx :
5 kx fi
5 kx
5 kx
5 kx for impl in "$CSHARP_CHOICE" mono no; do
5 kx case "$impl" in
5 kx mono)
5 kx if test -n "$HAVE_MONO_IN_PATH" \
5 kx && mono --version >/dev/null 2>/dev/null \
5 kx ; then
5 kx HAVE_MONO=1
5 kx ac_result="mono"
5 kx break
5 kx fi
5 kx ;;
5 kx sscli)
5 kx if test -n "$HAVE_CLIX_IN_PATH" \
5 kx ; then
5 kx HAVE_CLIX=1
5 kx case $host_os in
5 kx cygwin* | mingw* | pw32*)
5 kx CLIX_PATH_VAR=PATH
5 kx ;;
5 kx darwin* | rhapsody*)
5 kx CLIX_PATH_VAR=DYLD_LIBRARY_PATH
5 kx ;;
5 kx *)
5 kx CLIX_PATH_VAR=LD_LIBRARY_PATH
5 kx ;;
5 kx esac
5 kx eval CLIX_PATH=\"\$CLIX_PATH_VAR\"
5 kx ac_result="clix"
5 kx break
5 kx fi
5 kx ;;
5 kx no)
5 kx HAVE_CSHARPEXEC=
5 kx ac_result="no"
5 kx break
5 kx ;;
5 kx esac
5 kx done
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
5 kx $as_echo "$ac_result" >&6; }
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking if implementation in C# should be built" >&5
5 kx $as_echo_n "checking if implementation in C# should be built... " >&6; }
5 kx if test -n "$HAVE_CSHARPCOMP" && test -n "$HAVE_CSHARPEXEC"; then
5 kx enable_csharp=yes
5 kx else
5 kx enable_csharp=no
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_csharp" >&5
5 kx $as_echo "$enable_csharp" >&6; }
5 kx if test "$enable_csharp" = yes; then
5 kx CSHARP_TRUE=
5 kx CSHARP_FALSE='#'
5 kx else
5 kx CSHARP_TRUE='#'
5 kx CSHARP_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx # Update version number in lib/libtasn1.h.
5 kx if ! sed 's/_VERSION ".*"/_VERSION "'$PACKAGE_VERSION'"/' $srcdir/lib/stringprep.h > fixhdr.tmp; then
5 kx as_fn_error $? "*** Failed to update version number in $srcdir/lib/stringprep.h..." "$LINENO" 5
5 kx fi
5 kx if cmp -s $srcdir/lib/stringprep.h fixhdr.tmp 2>/dev/null; then
5 kx rm -f fixhdr.tmp
5 kx elif ! mv fixhdr.tmp $srcdir/lib/stringprep.h; then
5 kx as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/lib/stringprep.h..." "$LINENO" 5
5 kx fi
5 kx
5 kx
5 kx ubsan=no
5 kx # Check whether --enable-ubsan was given.
5 kx if test "${enable_ubsan+set}" = set; then :
5 kx enableval=$enable_ubsan;
5 kx if test "$enableval" = yes; then
5 kx ubsan=yes
5 kx CFLAGS=$CFLAGS" -fsanitize=undefined -fno-sanitize-recover=undefined"
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx asan=no
5 kx # Check whether --enable-asan was given.
5 kx if test "${enable_asan+set}" = set; then :
5 kx enableval=$enable_asan;
5 kx if test "$enableval" = yes; then
5 kx asan=yes
5 kx CFLAGS=$CFLAGS" -fsanitize=address -fno-omit-frame-pointer"
5 kx fi
5 kx
5 kx fi
5 kx
5 kx
5 kx # Check whether --enable-gcc-warnings was given.
5 kx if test "${enable_gcc_warnings+set}" = set; then :
5 kx enableval=$enable_gcc_warnings; case $enableval in
5 kx yes|no) ;;
5 kx *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
5 kx esac
5 kx gl_gcc_warnings=$enableval
5 kx else
5 kx gl_gcc_warnings=no
5 kx
5 kx fi
5 kx
5 kx
5 kx if test "$gl_gcc_warnings" = yes; then
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
5 kx $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
5 kx if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_compiler_FLAGS="$CFLAGS"
5 kx as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_warn_c__Werror__Wunknown_warning_option=yes
5 kx else
5 kx gl_cv_warn_c__Werror__Wunknown_warning_option=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$gl_save_compiler_FLAGS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
5 kx $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
5 kx if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
5 kx gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
5 kx else
5 kx gl_unknown_warnings_are_errors=
5 kx fi
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wframe-larger-than=160" >&5
5 kx $as_echo_n "checking whether C compiler handles -Wframe-larger-than=160... " >&6; }
5 kx if ${gl_cv_warn_c__Wframe_larger_than_160+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_compiler_FLAGS="$CFLAGS"
5 kx as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wframe-larger-than=160"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_warn_c__Wframe_larger_than_160=yes
5 kx else
5 kx gl_cv_warn_c__Wframe_larger_than_160=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$gl_save_compiler_FLAGS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wframe_larger_than_160" >&5
5 kx $as_echo "$gl_cv_warn_c__Wframe_larger_than_160" >&6; }
5 kx if test "x$gl_cv_warn_c__Wframe_larger_than_160" = xyes; then :
5 kx as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=160"
5 kx fi
5 kx
5 kx
5 kx
5 kx nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
5 kx nw="$nw -Wpadded" # Struct in src/idn_cmd.h is not padded
5 kx nw="$nw -Wformat" # Self tests and examples print size_t as %d
5 kx nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers
5 kx nw="$nw -Woverlength-strings" # Some of our strings are too large
5 kx nw="$nw -Wsign-conversion" # Too many warnings for now
5 kx nw="$nw -Wconversion" # Too many warnings for now
5 kx nw="$nw -Wtraditional" # Warns on #elif which we use often
5 kx nw="$nw -Wtraditional-conversion" # Too many warnings for now
5 kx nw="$nw -Wmissing-noreturn" # Too many warnings for now
5 kx nw="$nw -Wunreachable-code" # Too many false positives
5 kx nw="$nw -Wlogical-op" # Too many false positives
5 kx nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
5 kx nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
5 kx
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx
5 kx if test -n "$GCC"; then
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
5 kx $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
5 kx if ${gl_cv_cc_nomfi_supported+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_save_CFLAGS="$CFLAGS"
5 kx CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_cc_nomfi_supported=yes
5 kx else
5 kx gl_cv_cc_nomfi_supported=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CFLAGS="$gl_save_CFLAGS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
5 kx $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
5 kx
5 kx if test "$gl_cv_cc_nomfi_supported" = yes; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
5 kx $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
5 kx if ${gl_cv_cc_nomfi_needed+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_save_CFLAGS="$CFLAGS"
5 kx CFLAGS="$CFLAGS -Wextra -Werror"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx int f (void)
5 kx {
5 kx typedef struct { int a; int b; } s_t;
5 kx s_t s1 = { 0, };
5 kx return s1.b;
5 kx }
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_cc_nomfi_needed=no
5 kx else
5 kx gl_cv_cc_nomfi_needed=yes
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CFLAGS="$gl_save_CFLAGS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
5 kx $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
5 kx $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
5 kx if ${gl_cv_cc_uninitialized_supported+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx gl_save_CFLAGS="$CFLAGS"
5 kx CFLAGS="$CFLAGS -Werror -Wuninitialized"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_compile "$LINENO"; then :
5 kx gl_cv_cc_uninitialized_supported=yes
5 kx else
5 kx gl_cv_cc_uninitialized_supported=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5 kx CFLAGS="$gl_save_CFLAGS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
5 kx $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
5 kx
5 kx fi
5 kx
5 kx # List all gcc warning categories.
5 kx # To compare this list to your installed GCC's, run this Bash command:
5 kx #
5 kx # comm -3 \
5 kx # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
5 kx # awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec) | sort) \
5 kx # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort)
5 kx
5 kx ws=
5 kx for gl_manywarn_item in -fanalyzer -fno-common \
5 kx -Wall \
5 kx -Warith-conversion \
5 kx -Wbad-function-cast \
5 kx -Wcast-align=strict \
5 kx -Wdate-time \
5 kx -Wdisabled-optimization \
5 kx -Wdouble-promotion \
5 kx -Wduplicated-branches \
5 kx -Wduplicated-cond \
5 kx -Wextra \
5 kx -Wformat-signedness \
5 kx -Winit-self \
5 kx -Winline \
5 kx -Winvalid-pch \
5 kx -Wlogical-op \
5 kx -Wmissing-declarations \
5 kx -Wmissing-include-dirs \
5 kx -Wmissing-prototypes \
5 kx -Wnested-externs \
5 kx -Wnull-dereference \
5 kx -Wold-style-definition \
5 kx -Wopenmp-simd \
5 kx -Woverlength-strings \
5 kx -Wpacked \
5 kx -Wpointer-arith \
5 kx -Wshadow \
5 kx -Wstack-protector \
5 kx -Wstrict-overflow \
5 kx -Wstrict-prototypes \
5 kx -Wsuggest-attribute=cold \
5 kx -Wsuggest-attribute=const \
5 kx -Wsuggest-attribute=format \
5 kx -Wsuggest-attribute=malloc \
5 kx -Wsuggest-attribute=noreturn \
5 kx -Wsuggest-attribute=pure \
5 kx -Wsuggest-final-methods \
5 kx -Wsuggest-final-types \
5 kx -Wsync-nand \
5 kx -Wsystem-headers \
5 kx -Wtrampolines \
5 kx -Wuninitialized \
5 kx -Wunknown-pragmas \
5 kx -Wunsafe-loop-optimizations \
5 kx -Wunused-macros \
5 kx -Wvariadic-macros \
5 kx -Wvector-operation-performance \
5 kx -Wvla \
5 kx -Wwrite-strings \
5 kx \
5 kx ; do
5 kx as_fn_append ws " $gl_manywarn_item"
5 kx done
5 kx
5 kx # gcc --help=warnings outputs an unusual form for these options; list
5 kx # them here so that the above 'comm' command doesn't report a false match.
5 kx as_fn_append ws ' -Warray-bounds=2'
5 kx as_fn_append ws ' -Wattribute-alias=2'
5 kx as_fn_append ws ' -Wformat-overflow=2'
5 kx as_fn_append ws ' -Wformat=2'
5 kx as_fn_append ws ' -Wformat-truncation=2'
5 kx as_fn_append ws ' -Wimplicit-fallthrough=5'
5 kx as_fn_append ws ' -Wshift-overflow=2'
5 kx as_fn_append ws ' -Wunused-const-variable=2'
5 kx as_fn_append ws ' -Wvla-larger-than=4031'
5 kx
5 kx # These are needed for older GCC versions.
5 kx if test -n "$GCC"; then
5 kx case `($CC --version) 2>/dev/null` in
5 kx 'gcc (GCC) '[0-3].* | \
5 kx 'gcc (GCC) '4.[0-7].*)
5 kx as_fn_append ws ' -fdiagnostics-show-option'
5 kx as_fn_append ws ' -funit-at-a-time'
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx # Disable specific options as needed.
5 kx if test "$gl_cv_cc_nomfi_needed" = yes; then
5 kx as_fn_append ws ' -Wno-missing-field-initializers'
5 kx fi
5 kx
5 kx if test "$gl_cv_cc_uninitialized_supported" = no; then
5 kx as_fn_append ws ' -Wno-uninitialized'
5 kx fi
5 kx
5 kx # Some warnings have too many false alarms in GCC 10.1.
5 kx # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93695
5 kx as_fn_append ws ' -Wno-analyzer-double-free'
5 kx # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94458
5 kx as_fn_append ws ' -Wno-analyzer-malloc-leak'
5 kx # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94851
5 kx as_fn_append ws ' -Wno-analyzer-null-dereference'
5 kx # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95758
5 kx as_fn_append ws ' -Wno-analyzer-use-after-free'
5 kx
5 kx ac_ext=c
5 kx ac_cpp='$CPP $CPPFLAGS'
5 kx ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5 kx ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5 kx ac_compiler_gnu=$ac_cv_c_compiler_gnu
5 kx
5 kx
5 kx
5 kx gl_warn_set=
5 kx set x $ws; shift
5 kx for gl_warn_item
5 kx do
5 kx case " $nw " in
5 kx *" $gl_warn_item "*)
5 kx ;;
5 kx *)
5 kx as_fn_append gl_warn_set " $gl_warn_item"
5 kx ;;
5 kx esac
5 kx done
5 kx ws=$gl_warn_set
5 kx
5 kx for w in $ws; do
5 kx
5 kx
5 kx as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
5 kx gl_positive="$w"
5 kx case $gl_positive in
5 kx -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
5 kx esac
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
5 kx $as_echo_n "checking whether C compiler handles $w... " >&6; }
5 kx if eval \${$as_gl_Warn+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_compiler_FLAGS="$CFLAGS"
5 kx as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx eval "$as_gl_Warn=yes"
5 kx else
5 kx eval "$as_gl_Warn=no"
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$gl_save_compiler_FLAGS"
5 kx
5 kx fi
5 kx eval ac_res=\$$as_gl_Warn
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5 kx $as_echo "$ac_res" >&6; }
5 kx if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
5 kx as_fn_append WARN_CFLAGS " $w"
5 kx fi
5 kx
5 kx
5 kx done
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
5 kx $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
5 kx if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_compiler_FLAGS="$CFLAGS"
5 kx as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_warn_c__fdiagnostics_show_option=yes
5 kx else
5 kx gl_cv_warn_c__fdiagnostics_show_option=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$gl_save_compiler_FLAGS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
5 kx $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
5 kx if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
5 kx as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
5 kx fi
5 kx
5 kx
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
5 kx $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
5 kx if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
5 kx $as_echo_n "(cached) " >&6
5 kx else
5 kx
5 kx gl_save_compiler_FLAGS="$CFLAGS"
5 kx as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
5 kx cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 kx /* end confdefs.h. */
5 kx
5 kx int
5 kx main ()
5 kx {
5 kx
5 kx ;
5 kx return 0;
5 kx }
5 kx _ACEOF
5 kx if ac_fn_c_try_link "$LINENO"; then :
5 kx gl_cv_warn_c__Wno_missing_field_initializers=yes
5 kx else
5 kx gl_cv_warn_c__Wno_missing_field_initializers=no
5 kx fi
5 kx rm -f core conftest.err conftest.$ac_objext \
5 kx conftest$ac_exeext conftest.$ac_ext
5 kx CFLAGS="$gl_save_compiler_FLAGS"
5 kx
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
5 kx $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
5 kx if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
5 kx as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
5 kx fi
5 kx
5 kx # Rely on missing field = 0.
5 kx fi
5 kx
5 kx # Check whether --enable-doc was given.
5 kx if test "${enable_doc+set}" = set; then :
5 kx enableval=$enable_doc; enable_doc=$enableval
5 kx else
5 kx enable_doc=yes
5 kx fi
5 kx
5 kx if test "$enable_doc" != "no"; then
5 kx ENABLE_DOC_TRUE=
5 kx ENABLE_DOC_FALSE='#'
5 kx else
5 kx ENABLE_DOC_TRUE='#'
5 kx ENABLE_DOC_FALSE=
5 kx fi
5 kx
5 kx
5 kx
5 kx ac_config_files="$ac_config_files Makefile contrib/doxygen/Doxyfile csharp/Makefile doc/Makefile doc/cyclo/Makefile doc/java/Makefile doc/reference/Makefile doc/reference/version.xml doc/specifications/Makefile doc/tld/Makefile examples/Makefile gl/Makefile gltests/Makefile java/Makefile java/pom.xml java/src/Makefile java/src/main/Makefile java/src/main/java/Makefile java/src/main/java/gnu/Makefile java/src/main/java/gnu/inet/Makefile java/src/main/java/gnu/inet/encoding/Makefile java/src/util/Makefile java/src/util/java/Makefile java/src/test/Makefile java/src/test/java/Makefile lib/Makefile lib/gl/Makefile lib/gltests/Makefile libidn.pc po/Makefile.in src/Makefile fuzz/Makefile tests/Makefile"
5 kx
5 kx cat >confcache <<\_ACEOF
5 kx # This file is a shell script that caches the results of configure
5 kx # tests run on this system so they can be shared between configure
5 kx # scripts and configure runs, see configure's option --config-cache.
5 kx # It is not useful on other systems. If it contains results you don't
5 kx # want to keep, you may remove or edit it.
5 kx #
5 kx # config.status only pays attention to the cache file if you give it
5 kx # the --recheck option to rerun configure.
5 kx #
5 kx # `ac_cv_env_foo' variables (set or unset) will be overridden when
5 kx # loading this file, other *unset* `ac_cv_foo' will be assigned the
5 kx # following values.
5 kx
5 kx _ACEOF
5 kx
5 kx # The following way of writing the cache mishandles newlines in values,
5 kx # but we know of no workaround that is simple, portable, and efficient.
5 kx # So, we kill variables containing newlines.
5 kx # Ultrix sh set writes to stderr and can't be redirected directly,
5 kx # and sets the high bit in the cache file unless we assign to the vars.
5 kx (
5 kx for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5 kx eval ac_val=\$$ac_var
5 kx case $ac_val in #(
5 kx *${as_nl}*)
5 kx case $ac_var in #(
5 kx *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5 kx $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5 kx esac
5 kx case $ac_var in #(
5 kx _ | IFS | as_nl) ;; #(
5 kx BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5 kx *) { eval $ac_var=; unset $ac_var;} ;;
5 kx esac ;;
5 kx esac
5 kx done
5 kx
5 kx (set) 2>&1 |
5 kx case $as_nl`(ac_space=' '; set) 2>&1` in #(
5 kx *${as_nl}ac_space=\ *)
5 kx # `set' does not quote correctly, so add quotes: double-quote
5 kx # substitution turns \\\\ into \\, and sed turns \\ into \.
5 kx sed -n \
5 kx "s/'/'\\\\''/g;
5 kx s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5 kx ;; #(
5 kx *)
5 kx # `set' quotes correctly as required by POSIX, so do not add quotes.
5 kx sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5 kx ;;
5 kx esac |
5 kx sort
5 kx ) |
5 kx sed '
5 kx /^ac_cv_env_/b end
5 kx t clear
5 kx :clear
5 kx s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5 kx t end
5 kx s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5 kx :end' >>confcache
5 kx if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5 kx if test -w "$cache_file"; then
5 kx if test "x$cache_file" != "x/dev/null"; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5 kx $as_echo "$as_me: updating cache $cache_file" >&6;}
5 kx if test ! -f "$cache_file" || test -h "$cache_file"; then
5 kx cat confcache >"$cache_file"
5 kx else
5 kx case $cache_file in #(
5 kx */* | ?:*)
5 kx mv -f confcache "$cache_file"$$ &&
5 kx mv -f "$cache_file"$$ "$cache_file" ;; #(
5 kx *)
5 kx mv -f confcache "$cache_file" ;;
5 kx esac
5 kx fi
5 kx fi
5 kx else
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5 kx $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5 kx fi
5 kx fi
5 kx rm -f confcache
5 kx
5 kx test "x$prefix" = xNONE && prefix=$ac_default_prefix
5 kx # Let make expand exec_prefix.
5 kx test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5 kx
5 kx DEFS=-DHAVE_CONFIG_H
5 kx
5 kx ac_libobjs=
5 kx ac_ltlibobjs=
5 kx U=
5 kx for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5 kx # 1. Remove the extension, and $U if already installed.
5 kx ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5 kx ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5 kx # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5 kx # will be set to the directory where LIBOBJS objects are built.
5 kx as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5 kx as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5 kx done
5 kx LIBOBJS=$ac_libobjs
5 kx
5 kx LTLIBOBJS=$ac_ltlibobjs
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5 kx $as_echo_n "checking that generated files are newer than configure... " >&6; }
5 kx if test -n "$am_sleep_pid"; then
5 kx # Hide warnings about reused PIDs.
5 kx wait $am_sleep_pid 2>/dev/null
5 kx fi
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5 kx $as_echo "done" >&6; }
5 kx if test -n "$EXEEXT"; then
5 kx am__EXEEXT_TRUE=
5 kx am__EXEEXT_FALSE='#'
5 kx else
5 kx am__EXEEXT_TRUE='#'
5 kx am__EXEEXT_FALSE=
5 kx fi
5 kx
5 kx if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5 kx as_fn_error $? "conditional \"AMDEP\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5 kx as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx CONFIG_INCLUDE=config.h
5 kx
5 kx if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx
5 kx gl_libobjs=
5 kx gl_ltlibobjs=
5 kx if test -n "$gl_LIBOBJS"; then
5 kx # Remove the extension.
5 kx sed_drop_objext='s/\.o$//;s/\.obj$//'
5 kx for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
5 kx gl_libobjs="$gl_libobjs $i.$ac_objext"
5 kx gl_ltlibobjs="$gl_ltlibobjs $i.lo"
5 kx done
5 kx fi
5 kx gl_LIBOBJS=$gl_libobjs
5 kx
5 kx gl_LTLIBOBJS=$gl_ltlibobjs
5 kx
5 kx
5 kx
5 kx if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx
5 kx gltests_libobjs=
5 kx gltests_ltlibobjs=
5 kx if test -n "$gltests_LIBOBJS"; then
5 kx # Remove the extension.
5 kx sed_drop_objext='s/\.o$//;s/\.obj$//'
5 kx for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
5 kx gltests_libobjs="$gltests_libobjs $i.$ac_objext"
5 kx gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
5 kx done
5 kx fi
5 kx gltests_LIBOBJS=$gltests_libobjs
5 kx
5 kx gltests_LTLIBOBJS=$gltests_ltlibobjs
5 kx
5 kx
5 kx if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
5 kx as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
5 kx as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
5 kx as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
5 kx as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
5 kx as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx
5 kx lgl_libobjs=
5 kx lgl_ltlibobjs=
5 kx if test -n "$lgl_LIBOBJS"; then
5 kx # Remove the extension.
5 kx sed_drop_objext='s/\.o$//;s/\.obj$//'
5 kx for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
5 kx lgl_libobjs="$lgl_libobjs $i.$ac_objext"
5 kx lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
5 kx done
5 kx fi
5 kx lgl_LIBOBJS=$lgl_libobjs
5 kx
5 kx lgl_LTLIBOBJS=$lgl_ltlibobjs
5 kx
5 kx
5 kx if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx
5 kx if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
5 kx as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx
5 kx lgltests_libobjs=
5 kx lgltests_ltlibobjs=
5 kx if test -n "$lgltests_LIBOBJS"; then
5 kx # Remove the extension.
5 kx sed_drop_objext='s/\.o$//;s/\.obj$//'
5 kx for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
5 kx lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
5 kx lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
5 kx done
5 kx fi
5 kx lgltests_LIBOBJS=$lgltests_libobjs
5 kx
5 kx lgltests_LTLIBOBJS=$lgltests_ltlibobjs
5 kx
5 kx
5 kx if test -z "${TLD_TRUE}" && test -z "${TLD_FALSE}"; then
5 kx as_fn_error $? "conditional \"TLD\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
5 kx as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
5 kx as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
5 kx as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
5 kx as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
5 kx as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
5 kx as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
5 kx as_fn_error $? "conditional \"JAVA\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${CSHARP_TRUE}" && test -z "${CSHARP_FALSE}"; then
5 kx as_fn_error $? "conditional \"CSHARP\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
5 kx as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
5 kx Usually this means the macro was only invoked conditionally." "$LINENO" 5
5 kx fi
5 kx
5 kx : "${CONFIG_STATUS=./config.status}"
5 kx ac_write_fail=0
5 kx ac_clean_files_save=$ac_clean_files
5 kx ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5 kx $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5 kx as_write_fail=0
5 kx cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5 kx #! $SHELL
5 kx # Generated by $as_me.
5 kx # Run this file to recreate the current configuration.
5 kx # Compiler output produced by configure, useful for debugging
5 kx # configure, is in config.log if it exists.
5 kx
5 kx debug=false
5 kx ac_cs_recheck=false
5 kx ac_cs_silent=false
5 kx
5 kx SHELL=\${CONFIG_SHELL-$SHELL}
5 kx export SHELL
5 kx _ASEOF
5 kx cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5 kx ## -------------------- ##
5 kx ## M4sh Initialization. ##
5 kx ## -------------------- ##
5 kx
5 kx # Be more Bourne compatible
5 kx DUALCASE=1; export DUALCASE # for MKS sh
5 kx if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5 kx emulate sh
5 kx NULLCMD=:
5 kx # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5 kx # is contrary to our usage. Disable this feature.
5 kx alias -g '${1+"$@"}'='"$@"'
5 kx setopt NO_GLOB_SUBST
5 kx else
5 kx case `(set -o) 2>/dev/null` in #(
5 kx *posix*) :
5 kx set -o posix ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx fi
5 kx
5 kx
5 kx as_nl='
5 kx '
5 kx export as_nl
5 kx # Printing a long string crashes Solaris 7 /usr/bin/printf.
5 kx as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5 kx # Prefer a ksh shell builtin over an external printf program on Solaris,
5 kx # but without wasting forks for bash or zsh.
5 kx if test -z "$BASH_VERSION$ZSH_VERSION" \
5 kx && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='print -r --'
5 kx as_echo_n='print -rn --'
5 kx elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5 kx as_echo='printf %s\n'
5 kx as_echo_n='printf %s'
5 kx else
5 kx if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5 kx as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5 kx as_echo_n='/usr/ucb/echo -n'
5 kx else
5 kx as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5 kx as_echo_n_body='eval
5 kx arg=$1;
5 kx case $arg in #(
5 kx *"$as_nl"*)
5 kx expr "X$arg" : "X\\(.*\\)$as_nl";
5 kx arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5 kx esac;
5 kx expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5 kx '
5 kx export as_echo_n_body
5 kx as_echo_n='sh -c $as_echo_n_body as_echo'
5 kx fi
5 kx export as_echo_body
5 kx as_echo='sh -c $as_echo_body as_echo'
5 kx fi
5 kx
5 kx # The user is always right.
5 kx if test "${PATH_SEPARATOR+set}" != set; then
5 kx PATH_SEPARATOR=:
5 kx (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5 kx (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5 kx PATH_SEPARATOR=';'
5 kx }
5 kx fi
5 kx
5 kx
5 kx # IFS
5 kx # We need space, tab and new line, in precisely that order. Quoting is
5 kx # there to prevent editors from complaining about space-tab.
5 kx # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5 kx # splitting by setting IFS to empty value.)
5 kx IFS=" "" $as_nl"
5 kx
5 kx # Find who we are. Look in the path if we contain no directory separator.
5 kx as_myself=
5 kx case $0 in #((
5 kx *[\\/]* ) as_myself=$0 ;;
5 kx *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5 kx for as_dir in $PATH
5 kx do
5 kx IFS=$as_save_IFS
5 kx test -z "$as_dir" && as_dir=.
5 kx test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5 kx done
5 kx IFS=$as_save_IFS
5 kx
5 kx ;;
5 kx esac
5 kx # We did not find ourselves, most probably we were run as `sh COMMAND'
5 kx # in which case we are not to be found in the path.
5 kx if test "x$as_myself" = x; then
5 kx as_myself=$0
5 kx fi
5 kx if test ! -f "$as_myself"; then
5 kx $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5 kx exit 1
5 kx fi
5 kx
5 kx # Unset variables that we do not need and which cause bugs (e.g. in
5 kx # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5 kx # suppresses any "Segmentation fault" message there. '((' could
5 kx # trigger a bug in pdksh 5.2.14.
5 kx for as_var in BASH_ENV ENV MAIL MAILPATH
5 kx do eval test x\${$as_var+set} = xset \
5 kx && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5 kx done
5 kx PS1='$ '
5 kx PS2='> '
5 kx PS4='+ '
5 kx
5 kx # NLS nuisances.
5 kx LC_ALL=C
5 kx export LC_ALL
5 kx LANGUAGE=C
5 kx export LANGUAGE
5 kx
5 kx # CDPATH.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx
5 kx # as_fn_error STATUS ERROR [LINENO LOG_FD]
5 kx # ----------------------------------------
5 kx # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5 kx # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5 kx # script with STATUS, using 1 if that was 0.
5 kx as_fn_error ()
5 kx {
5 kx as_status=$1; test $as_status -eq 0 && as_status=1
5 kx if test "$4"; then
5 kx as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5 kx $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5 kx fi
5 kx $as_echo "$as_me: error: $2" >&2
5 kx as_fn_exit $as_status
5 kx } # as_fn_error
5 kx
5 kx
5 kx # as_fn_set_status STATUS
5 kx # -----------------------
5 kx # Set $? to STATUS, without forking.
5 kx as_fn_set_status ()
5 kx {
5 kx return $1
5 kx } # as_fn_set_status
5 kx
5 kx # as_fn_exit STATUS
5 kx # -----------------
5 kx # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5 kx as_fn_exit ()
5 kx {
5 kx set +e
5 kx as_fn_set_status $1
5 kx exit $1
5 kx } # as_fn_exit
5 kx
5 kx # as_fn_unset VAR
5 kx # ---------------
5 kx # Portably unset VAR.
5 kx as_fn_unset ()
5 kx {
5 kx { eval $1=; unset $1;}
5 kx }
5 kx as_unset=as_fn_unset
5 kx # as_fn_append VAR VALUE
5 kx # ----------------------
5 kx # Append the text in VALUE to the end of the definition contained in VAR. Take
5 kx # advantage of any shell optimizations that allow amortized linear growth over
5 kx # repeated appends, instead of the typical quadratic growth present in naive
5 kx # implementations.
5 kx if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5 kx eval 'as_fn_append ()
5 kx {
5 kx eval $1+=\$2
5 kx }'
5 kx else
5 kx as_fn_append ()
5 kx {
5 kx eval $1=\$$1\$2
5 kx }
5 kx fi # as_fn_append
5 kx
5 kx # as_fn_arith ARG...
5 kx # ------------------
5 kx # Perform arithmetic evaluation on the ARGs, and store the result in the
5 kx # global $as_val. Take advantage of shells that can avoid forks. The arguments
5 kx # must be portable across $(()) and expr.
5 kx if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5 kx eval 'as_fn_arith ()
5 kx {
5 kx as_val=$(( $* ))
5 kx }'
5 kx else
5 kx as_fn_arith ()
5 kx {
5 kx as_val=`expr "$@" || test $? -eq 1`
5 kx }
5 kx fi # as_fn_arith
5 kx
5 kx
5 kx if expr a : '\(a\)' >/dev/null 2>&1 &&
5 kx test "X`expr 00001 : '.*\(...\)'`" = X001; then
5 kx as_expr=expr
5 kx else
5 kx as_expr=false
5 kx fi
5 kx
5 kx if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5 kx as_basename=basename
5 kx else
5 kx as_basename=false
5 kx fi
5 kx
5 kx if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5 kx as_dirname=dirname
5 kx else
5 kx as_dirname=false
5 kx fi
5 kx
5 kx as_me=`$as_basename -- "$0" ||
5 kx $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$0" : 'X\(//\)$' \| \
5 kx X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X/"$0" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx
5 kx # Avoid depending upon Character Ranges.
5 kx as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5 kx as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5 kx as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5 kx as_cr_digits='0123456789'
5 kx as_cr_alnum=$as_cr_Letters$as_cr_digits
5 kx
5 kx ECHO_C= ECHO_N= ECHO_T=
5 kx case `echo -n x` in #(((((
5 kx -n*)
5 kx case `echo 'xy\c'` in
5 kx *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5 kx xy) ECHO_C='\c';;
5 kx *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5 kx ECHO_T=' ';;
5 kx esac;;
5 kx *)
5 kx ECHO_N='-n';;
5 kx esac
5 kx
5 kx rm -f conf$$ conf$$.exe conf$$.file
5 kx if test -d conf$$.dir; then
5 kx rm -f conf$$.dir/conf$$.file
5 kx else
5 kx rm -f conf$$.dir
5 kx mkdir conf$$.dir 2>/dev/null
5 kx fi
5 kx if (echo >conf$$.file) 2>/dev/null; then
5 kx if ln -s conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s='ln -s'
5 kx # ... but there are two gotchas:
5 kx # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5 kx # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5 kx # In both cases, we have to default to `cp -pR'.
5 kx ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5 kx as_ln_s='cp -pR'
5 kx elif ln conf$$.file conf$$ 2>/dev/null; then
5 kx as_ln_s=ln
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx else
5 kx as_ln_s='cp -pR'
5 kx fi
5 kx rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5 kx rmdir conf$$.dir 2>/dev/null
5 kx
5 kx
5 kx # as_fn_mkdir_p
5 kx # -------------
5 kx # Create "$as_dir" as a directory, including parents if necessary.
5 kx as_fn_mkdir_p ()
5 kx {
5 kx
5 kx case $as_dir in #(
5 kx -*) as_dir=./$as_dir;;
5 kx esac
5 kx test -d "$as_dir" || eval $as_mkdir_p || {
5 kx as_dirs=
5 kx while :; do
5 kx case $as_dir in #(
5 kx *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5 kx *) as_qdir=$as_dir;;
5 kx esac
5 kx as_dirs="'$as_qdir' $as_dirs"
5 kx as_dir=`$as_dirname -- "$as_dir" ||
5 kx $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$as_dir" : 'X\(//\)[^/]' \| \
5 kx X"$as_dir" : 'X\(//\)$' \| \
5 kx X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$as_dir" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx test -d "$as_dir" && break
5 kx done
5 kx test -z "$as_dirs" || eval "mkdir $as_dirs"
5 kx } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5 kx
5 kx
5 kx } # as_fn_mkdir_p
5 kx if mkdir -p . 2>/dev/null; then
5 kx as_mkdir_p='mkdir -p "$as_dir"'
5 kx else
5 kx test -d ./-p && rmdir ./-p
5 kx as_mkdir_p=false
5 kx fi
5 kx
5 kx
5 kx # as_fn_executable_p FILE
5 kx # -----------------------
5 kx # Test if FILE is an executable regular file.
5 kx as_fn_executable_p ()
5 kx {
5 kx test -f "$1" && test -x "$1"
5 kx } # as_fn_executable_p
5 kx as_test_x='test -x'
5 kx as_executable_p=as_fn_executable_p
5 kx
5 kx # Sed expression to map a string onto a valid CPP name.
5 kx as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx # Sed expression to map a string onto a valid variable name.
5 kx as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5 kx
5 kx
5 kx exec 6>&1
5 kx ## ----------------------------------- ##
5 kx ## Main body of $CONFIG_STATUS script. ##
5 kx ## ----------------------------------- ##
5 kx _ASEOF
5 kx test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # Save the log message, to keep $0 and so on meaningful, and to
5 kx # report actual input values of CONFIG_FILES etc. instead of their
5 kx # values after options handling.
5 kx ac_log="
5 kx This file was extended by GNU Libidn $as_me 1.36, which was
5 kx generated by GNU Autoconf 2.69. Invocation command line was
5 kx
5 kx CONFIG_FILES = $CONFIG_FILES
5 kx CONFIG_HEADERS = $CONFIG_HEADERS
5 kx CONFIG_LINKS = $CONFIG_LINKS
5 kx CONFIG_COMMANDS = $CONFIG_COMMANDS
5 kx $ $0 $@
5 kx
5 kx on `(hostname || uname -n) 2>/dev/null | sed 1q`
5 kx "
5 kx
5 kx _ACEOF
5 kx
5 kx case $ac_config_files in *"
5 kx "*) set x $ac_config_files; shift; ac_config_files=$*;;
5 kx esac
5 kx
5 kx case $ac_config_headers in *"
5 kx "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5 kx esac
5 kx
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx # Files that config.status was made for.
5 kx config_files="$ac_config_files"
5 kx config_headers="$ac_config_headers"
5 kx config_links="$ac_config_links"
5 kx config_commands="$ac_config_commands"
5 kx
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx ac_cs_usage="\
5 kx \`$as_me' instantiates files and other configuration actions
5 kx from templates according to the current configuration. Unless the files
5 kx and actions are specified as TAGs, all are instantiated by default.
5 kx
5 kx Usage: $0 [OPTION]... [TAG]...
5 kx
5 kx -h, --help print this help, then exit
5 kx -V, --version print version number and configuration settings, then exit
5 kx --config print configuration, then exit
5 kx -q, --quiet, --silent
5 kx do not print progress messages
5 kx -d, --debug don't remove temporary files
5 kx --recheck update $as_me by reconfiguring in the same conditions
5 kx --file=FILE[:TEMPLATE]
5 kx instantiate the configuration file FILE
5 kx --header=FILE[:TEMPLATE]
5 kx instantiate the configuration header FILE
5 kx
5 kx Configuration files:
5 kx $config_files
5 kx
5 kx Configuration headers:
5 kx $config_headers
5 kx
5 kx Configuration links:
5 kx $config_links
5 kx
5 kx Configuration commands:
5 kx $config_commands
5 kx
5 kx Report bugs to <bug-libidn@gnu.org>.
5 kx GNU Libidn home page: <http://www.gnu.org/software/libidn/>.
5 kx General help using GNU software: <http://www.gnu.org/gethelp/>."
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5 kx ac_cs_version="\\
5 kx GNU Libidn config.status 1.36
5 kx configured by $0, generated by GNU Autoconf 2.69,
5 kx with options \\"\$ac_cs_config\\"
5 kx
5 kx Copyright (C) 2012 Free Software Foundation, Inc.
5 kx This config.status script is free software; the Free Software Foundation
5 kx gives unlimited permission to copy, distribute and modify it."
5 kx
5 kx ac_pwd='$ac_pwd'
5 kx srcdir='$srcdir'
5 kx INSTALL='$INSTALL'
5 kx MKDIR_P='$MKDIR_P'
5 kx AWK='$AWK'
5 kx test -n "\$AWK" || AWK=awk
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # The default lists apply if the user does not specify any file.
5 kx ac_need_defaults=:
5 kx while test $# != 0
5 kx do
5 kx case $1 in
5 kx --*=?*)
5 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
5 kx ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5 kx ac_shift=:
5 kx ;;
5 kx --*=)
5 kx ac_option=`expr "X$1" : 'X\([^=]*\)='`
5 kx ac_optarg=
5 kx ac_shift=:
5 kx ;;
5 kx *)
5 kx ac_option=$1
5 kx ac_optarg=$2
5 kx ac_shift=shift
5 kx ;;
5 kx esac
5 kx
5 kx case $ac_option in
5 kx # Handling of the options.
5 kx -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5 kx ac_cs_recheck=: ;;
5 kx --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5 kx $as_echo "$ac_cs_version"; exit ;;
5 kx --config | --confi | --conf | --con | --co | --c )
5 kx $as_echo "$ac_cs_config"; exit ;;
5 kx --debug | --debu | --deb | --de | --d | -d )
5 kx debug=: ;;
5 kx --file | --fil | --fi | --f )
5 kx $ac_shift
5 kx case $ac_optarg in
5 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx '') as_fn_error $? "missing file argument" ;;
5 kx esac
5 kx as_fn_append CONFIG_FILES " '$ac_optarg'"
5 kx ac_need_defaults=false;;
5 kx --header | --heade | --head | --hea )
5 kx $ac_shift
5 kx case $ac_optarg in
5 kx *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5 kx esac
5 kx as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5 kx ac_need_defaults=false;;
5 kx --he | --h)
5 kx # Conflict between --help and --header
5 kx as_fn_error $? "ambiguous option: \`$1'
5 kx Try \`$0 --help' for more information.";;
5 kx --help | --hel | -h )
5 kx $as_echo "$ac_cs_usage"; exit ;;
5 kx -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5 kx | -silent | --silent | --silen | --sile | --sil | --si | --s)
5 kx ac_cs_silent=: ;;
5 kx
5 kx # This is an error.
5 kx -*) as_fn_error $? "unrecognized option: \`$1'
5 kx Try \`$0 --help' for more information." ;;
5 kx
5 kx *) as_fn_append ac_config_targets " $1"
5 kx ac_need_defaults=false ;;
5 kx
5 kx esac
5 kx shift
5 kx done
5 kx
5 kx ac_configure_extra_args=
5 kx
5 kx if $ac_cs_silent; then
5 kx exec 6>/dev/null
5 kx ac_configure_extra_args="$ac_configure_extra_args --silent"
5 kx fi
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx if \$ac_cs_recheck; then
5 kx set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5 kx shift
5 kx \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5 kx CONFIG_SHELL='$SHELL'
5 kx export CONFIG_SHELL
5 kx exec "\$@"
5 kx fi
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx exec 5>>config.log
5 kx {
5 kx echo
5 kx sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5 kx ## Running $as_me. ##
5 kx _ASBOX
5 kx $as_echo "$ac_log"
5 kx } >&5
5 kx
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx #
5 kx # INIT-COMMANDS
5 kx #
5 kx AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5 kx
5 kx
5 kx # The HP-UX ksh and POSIX shell print the target directory to stdout
5 kx # if CDPATH is set.
5 kx (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5 kx
5 kx sed_quote_subst='$sed_quote_subst'
5 kx double_quote_subst='$double_quote_subst'
5 kx delay_variable_subst='$delay_variable_subst'
5 kx macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
5 kx macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
5 kx AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
5 kx DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
5 kx OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
5 kx enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
5 kx enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
5 kx pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
5 kx enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
5 kx shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
5 kx SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
5 kx ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
5 kx PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
5 kx host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
5 kx host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
5 kx host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
5 kx build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
5 kx build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
5 kx build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
5 kx SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
5 kx Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
5 kx GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
5 kx EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
5 kx FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
5 kx LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
5 kx NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
5 kx LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
5 kx max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
5 kx ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
5 kx exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
5 kx lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
5 kx lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
5 kx lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
5 kx lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
5 kx lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
5 kx reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
5 kx reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
5 kx deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
5 kx file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
5 kx file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
5 kx want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
5 kx sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
5 kx AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
5 kx AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
5 kx archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
5 kx STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
5 kx RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
5 kx old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
5 kx old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
5 kx old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
5 kx lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
5 kx CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
5 kx CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
5 kx compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
5 kx GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
5 kx lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
5 kx lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
5 kx lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
5 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"`'
5 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"`'
5 kx lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
5 kx nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
5 kx lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
5 kx lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
5 kx objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
5 kx MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
5 kx lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
5 kx lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
5 kx lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
5 kx lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
5 kx lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
5 kx need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
5 kx MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
5 kx DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
5 kx NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
5 kx LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
5 kx OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
5 kx OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
5 kx libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
5 kx shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
5 kx extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
5 kx archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
5 kx enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
5 kx export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
5 kx whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
5 kx compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
5 kx old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
5 kx old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
5 kx archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
5 kx archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
5 kx module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
5 kx module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
5 kx with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
5 kx allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
5 kx no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
5 kx inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
5 kx link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
5 kx always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
5 kx export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
5 kx exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
5 kx include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
5 kx prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
5 kx postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
5 kx file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
5 kx variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
5 kx need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
5 kx need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
5 kx version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
5 kx runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
5 kx shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
5 kx shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
5 kx libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
5 kx library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
5 kx soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
5 kx install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
5 kx postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
5 kx postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
5 kx finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
5 kx finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
5 kx sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
5 kx configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
5 kx configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
5 kx hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
5 kx enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
5 kx enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
5 kx enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
5 kx old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
5 kx striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
5 kx
5 kx LTCC='$LTCC'
5 kx LTCFLAGS='$LTCFLAGS'
5 kx compiler='$compiler_DEFAULT'
5 kx
5 kx # A function that is used when there is no print builtin or printf.
5 kx func_fallback_echo ()
5 kx {
5 kx eval 'cat <<_LTECHO_EOF
5 kx \$1
5 kx _LTECHO_EOF'
5 kx }
5 kx
5 kx # Quote evaled strings.
5 kx for var in AS \
5 kx DLLTOOL \
5 kx OBJDUMP \
5 kx SHELL \
5 kx ECHO \
5 kx PATH_SEPARATOR \
5 kx SED \
5 kx GREP \
5 kx EGREP \
5 kx FGREP \
5 kx LD \
5 kx NM \
5 kx LN_S \
5 kx lt_SP2NL \
5 kx lt_NL2SP \
5 kx reload_flag \
5 kx deplibs_check_method \
5 kx file_magic_cmd \
5 kx file_magic_glob \
5 kx want_nocaseglob \
5 kx sharedlib_from_linklib_cmd \
5 kx AR \
5 kx AR_FLAGS \
5 kx archiver_list_spec \
5 kx STRIP \
5 kx RANLIB \
5 kx CC \
5 kx CFLAGS \
5 kx compiler \
5 kx lt_cv_sys_global_symbol_pipe \
5 kx lt_cv_sys_global_symbol_to_cdecl \
5 kx lt_cv_sys_global_symbol_to_import \
5 kx lt_cv_sys_global_symbol_to_c_name_address \
5 kx lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
5 kx lt_cv_nm_interface \
5 kx nm_file_list_spec \
5 kx lt_cv_truncate_bin \
5 kx lt_prog_compiler_no_builtin_flag \
5 kx lt_prog_compiler_pic \
5 kx lt_prog_compiler_wl \
5 kx lt_prog_compiler_static \
5 kx lt_cv_prog_compiler_c_o \
5 kx need_locks \
5 kx MANIFEST_TOOL \
5 kx DSYMUTIL \
5 kx NMEDIT \
5 kx LIPO \
5 kx OTOOL \
5 kx OTOOL64 \
5 kx shrext_cmds \
5 kx export_dynamic_flag_spec \
5 kx whole_archive_flag_spec \
5 kx compiler_needs_object \
5 kx with_gnu_ld \
5 kx allow_undefined_flag \
5 kx no_undefined_flag \
5 kx hardcode_libdir_flag_spec \
5 kx hardcode_libdir_separator \
5 kx exclude_expsyms \
5 kx include_expsyms \
5 kx file_list_spec \
5 kx variables_saved_for_relink \
5 kx libname_spec \
5 kx library_names_spec \
5 kx soname_spec \
5 kx install_override_mode \
5 kx finish_eval \
5 kx old_striplib \
5 kx striplib; do
5 kx case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5 kx *[\\\\\\\`\\"\\\$]*)
5 kx eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
5 kx ;;
5 kx *)
5 kx eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
5 kx ;;
5 kx esac
5 kx done
5 kx
5 kx # Double-quote double-evaled strings.
5 kx for var in reload_cmds \
5 kx old_postinstall_cmds \
5 kx old_postuninstall_cmds \
5 kx old_archive_cmds \
5 kx extract_expsyms_cmds \
5 kx old_archive_from_new_cmds \
5 kx old_archive_from_expsyms_cmds \
5 kx archive_cmds \
5 kx archive_expsym_cmds \
5 kx module_cmds \
5 kx module_expsym_cmds \
5 kx export_symbols_cmds \
5 kx prelink_cmds \
5 kx postlink_cmds \
5 kx postinstall_cmds \
5 kx postuninstall_cmds \
5 kx finish_cmds \
5 kx sys_lib_search_path_spec \
5 kx configure_time_dlsearch_path \
5 kx configure_time_lt_sys_library_path; do
5 kx case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5 kx *[\\\\\\\`\\"\\\$]*)
5 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
5 kx ;;
5 kx *)
5 kx eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
5 kx ;;
5 kx esac
5 kx done
5 kx
5 kx ac_aux_dir='$ac_aux_dir'
5 kx
5 kx # See if we are running on zsh, and set the options that allow our
5 kx # commands through without removal of \ escapes INIT.
5 kx if test -n "\${ZSH_VERSION+set}"; then
5 kx setopt NO_GLOB_SUBST
5 kx fi
5 kx
5 kx
5 kx PACKAGE='$PACKAGE'
5 kx VERSION='$VERSION'
5 kx RM='$RM'
5 kx ofile='$ofile'
5 kx
5 kx
5 kx
5 kx # Capture the value of obsolete ALL_LINGUAS because we need it to compute
5 kx # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
5 kx # from automake < 1.5.
5 kx eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
5 kx # Capture the value of LINGUAS because we need it to compute CATALOGS.
5 kx LINGUAS="${LINGUAS-%UNSET%}"
5 kx
5 kx GNUmakefile=$GNUmakefile
5 kx
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx
5 kx # Handling of arguments.
5 kx for ac_config_target in $ac_config_targets
5 kx do
5 kx case $ac_config_target in
5 kx "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5 kx "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5 kx "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
5 kx "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
5 kx "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:build-aux/csharpcomp.sh.in" ;;
5 kx "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:build-aux/csharpexec.sh.in" ;;
5 kx "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
5 kx "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5 kx "contrib/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES contrib/doxygen/Doxyfile" ;;
5 kx "csharp/Makefile") CONFIG_FILES="$CONFIG_FILES csharp/Makefile" ;;
5 kx "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5 kx "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
5 kx "doc/java/Makefile") CONFIG_FILES="$CONFIG_FILES doc/java/Makefile" ;;
5 kx "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
5 kx "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
5 kx "doc/specifications/Makefile") CONFIG_FILES="$CONFIG_FILES doc/specifications/Makefile" ;;
5 kx "doc/tld/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tld/Makefile" ;;
5 kx "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
5 kx "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
5 kx "gltests/Makefile") CONFIG_FILES="$CONFIG_FILES gltests/Makefile" ;;
5 kx "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
5 kx "java/pom.xml") CONFIG_FILES="$CONFIG_FILES java/pom.xml" ;;
5 kx "java/src/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/Makefile" ;;
5 kx "java/src/main/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/Makefile" ;;
5 kx "java/src/main/java/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/java/Makefile" ;;
5 kx "java/src/main/java/gnu/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/java/gnu/Makefile" ;;
5 kx "java/src/main/java/gnu/inet/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/java/gnu/inet/Makefile" ;;
5 kx "java/src/main/java/gnu/inet/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/java/gnu/inet/encoding/Makefile" ;;
5 kx "java/src/util/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/util/Makefile" ;;
5 kx "java/src/util/java/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/util/java/Makefile" ;;
5 kx "java/src/test/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/test/Makefile" ;;
5 kx "java/src/test/java/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/test/java/Makefile" ;;
5 kx "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5 kx "lib/gl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gl/Makefile" ;;
5 kx "lib/gltests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gltests/Makefile" ;;
5 kx "libidn.pc") CONFIG_FILES="$CONFIG_FILES libidn.pc" ;;
5 kx "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
5 kx "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5 kx "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
5 kx "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5 kx
5 kx *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5 kx esac
5 kx done
5 kx
5 kx
5 kx # If the user did not use the arguments to specify the items to instantiate,
5 kx # then the envvar interface is used. Set only those that are not.
5 kx # We use the long form for the default assignment because of an extremely
5 kx # bizarre bug on SunOS 4.1.3.
5 kx if $ac_need_defaults; then
5 kx test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5 kx test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5 kx test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5 kx test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5 kx fi
5 kx
5 kx # Have a temporary directory for convenience. Make it in the build tree
5 kx # simply because there is no reason against having it here, and in addition,
5 kx # creating and moving files from /tmp can sometimes cause problems.
5 kx # Hook for its removal unless debugging.
5 kx # Note that there is a small window in which the directory will not be cleaned:
5 kx # after its creation but before its name has been assigned to `$tmp'.
5 kx $debug ||
5 kx {
5 kx tmp= ac_tmp=
5 kx trap 'exit_status=$?
5 kx : "${ac_tmp:=$tmp}"
5 kx { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5 kx ' 0
5 kx trap 'as_fn_exit 1' 1 2 13 15
5 kx }
5 kx # Create a (secure) tmp directory for tmp files.
5 kx
5 kx {
5 kx tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5 kx test -d "$tmp"
5 kx } ||
5 kx {
5 kx tmp=./conf$$-$RANDOM
5 kx (umask 077 && mkdir "$tmp")
5 kx } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5 kx ac_tmp=$tmp
5 kx
5 kx # Set up the scripts for CONFIG_FILES section.
5 kx # No need to generate them if there are no CONFIG_FILES.
5 kx # This happens for instance with `./config.status config.h'.
5 kx if test -n "$CONFIG_FILES"; then
5 kx
5 kx
5 kx ac_cr=`echo X | tr X '\015'`
5 kx # On cygwin, bash can eat \r inside `` if the user requested igncr.
5 kx # But we know of no other shell where ac_cr would be empty at this
5 kx # point, so we can use a bashism as a fallback.
5 kx if test "x$ac_cr" = x; then
5 kx eval ac_cr=\$\'\\r\'
5 kx fi
5 kx ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5 kx if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5 kx ac_cs_awk_cr='\\r'
5 kx else
5 kx ac_cs_awk_cr=$ac_cr
5 kx fi
5 kx
5 kx echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5 kx _ACEOF
5 kx
5 kx
5 kx {
5 kx echo "cat >conf$$subs.awk <<_ACEOF" &&
5 kx echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5 kx echo "_ACEOF"
5 kx } >conf$$subs.sh ||
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5 kx ac_delim='%!_!# '
5 kx for ac_last_try in false false false false false :; do
5 kx . ./conf$$subs.sh ||
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx
5 kx ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5 kx if test $ac_delim_n = $ac_delim_num; then
5 kx break
5 kx elif $ac_last_try; then
5 kx as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5 kx else
5 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5 kx fi
5 kx done
5 kx rm -f conf$$subs.sh
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5 kx _ACEOF
5 kx sed -n '
5 kx h
5 kx s/^/S["/; s/!.*/"]=/
5 kx p
5 kx g
5 kx s/^[^!]*!//
5 kx :repl
5 kx t repl
5 kx s/'"$ac_delim"'$//
5 kx t delim
5 kx :nl
5 kx h
5 kx s/\(.\{148\}\)..*/\1/
5 kx t more1
5 kx s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5 kx p
5 kx n
5 kx b repl
5 kx :more1
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5 kx p
5 kx g
5 kx s/.\{148\}//
5 kx t nl
5 kx :delim
5 kx h
5 kx s/\(.\{148\}\)..*/\1/
5 kx t more2
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"/
5 kx p
5 kx b
5 kx :more2
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5 kx p
5 kx g
5 kx s/.\{148\}//
5 kx t delim
5 kx ' <conf$$subs.awk | sed '
5 kx /^[^""]/{
5 kx N
5 kx s/\n//
5 kx }
5 kx ' >>$CONFIG_STATUS || ac_write_fail=1
5 kx rm -f conf$$subs.awk
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx _ACAWK
5 kx cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5 kx for (key in S) S_is_set[key] = 1
5 kx FS = ""
5 kx
5 kx }
5 kx {
5 kx line = $ 0
5 kx nfields = split(line, field, "@")
5 kx substed = 0
5 kx len = length(field[1])
5 kx for (i = 2; i < nfields; i++) {
5 kx key = field[i]
5 kx keylen = length(key)
5 kx if (S_is_set[key]) {
5 kx value = S[key]
5 kx line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5 kx len += length(value) + length(field[++i])
5 kx substed = 1
5 kx } else
5 kx len += 1 + keylen
5 kx }
5 kx
5 kx print line
5 kx }
5 kx
5 kx _ACAWK
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5 kx sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5 kx else
5 kx cat
5 kx fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5 kx || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5 kx _ACEOF
5 kx
5 kx # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5 kx # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5 kx # trailing colons and then remove the whole line if VPATH becomes empty
5 kx # (actually we leave an empty line to preserve line numbers).
5 kx if test "x$srcdir" = x.; then
5 kx ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5 kx h
5 kx s///
5 kx s/^/:/
5 kx s/[ ]*$/:/
5 kx s/:\$(srcdir):/:/g
5 kx s/:\${srcdir}:/:/g
5 kx s/:@srcdir@:/:/g
5 kx s/^:*//
5 kx s/:*$//
5 kx x
5 kx s/\(=[ ]*\).*/\1/
5 kx G
5 kx s/\n//
5 kx s/^[^=]*=[ ]*$//
5 kx }'
5 kx fi
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx fi # test -n "$CONFIG_FILES"
5 kx
5 kx # Set up the scripts for CONFIG_HEADERS section.
5 kx # No need to generate them if there are no CONFIG_HEADERS.
5 kx # This happens for instance with `./config.status Makefile'.
5 kx if test -n "$CONFIG_HEADERS"; then
5 kx cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5 kx BEGIN {
5 kx _ACEOF
5 kx
5 kx # Transform confdefs.h into an awk script `defines.awk', embedded as
5 kx # here-document in config.status, that substitutes the proper values into
5 kx # config.h.in to produce config.h.
5 kx
5 kx # Create a delimiter string that does not exist in confdefs.h, to ease
5 kx # handling of long lines.
5 kx ac_delim='%!_!# '
5 kx for ac_last_try in false false :; do
5 kx ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5 kx if test -z "$ac_tt"; then
5 kx break
5 kx elif $ac_last_try; then
5 kx as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5 kx else
5 kx ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5 kx fi
5 kx done
5 kx
5 kx # For the awk script, D is an array of macro values keyed by name,
5 kx # likewise P contains macro parameters if any. Preserve backslash
5 kx # newline sequences.
5 kx
5 kx ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5 kx sed -n '
5 kx s/.\{148\}/&'"$ac_delim"'/g
5 kx t rset
5 kx :rset
5 kx s/^[ ]*#[ ]*define[ ][ ]*/ /
5 kx t def
5 kx d
5 kx :def
5 kx s/\\$//
5 kx t bsnl
5 kx s/["\\]/\\&/g
5 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5 kx D["\1"]=" \3"/p
5 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5 kx d
5 kx :bsnl
5 kx s/["\\]/\\&/g
5 kx s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5 kx D["\1"]=" \3\\\\\\n"\\/p
5 kx t cont
5 kx s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5 kx t cont
5 kx d
5 kx :cont
5 kx n
5 kx s/.\{148\}/&'"$ac_delim"'/g
5 kx t clear
5 kx :clear
5 kx s/\\$//
5 kx t bsnlc
5 kx s/["\\]/\\&/g; s/^/"/; s/$/"/p
5 kx d
5 kx :bsnlc
5 kx s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5 kx b cont
5 kx ' <confdefs.h | sed '
5 kx s/'"$ac_delim"'/"\\\
5 kx "/g' >>$CONFIG_STATUS || ac_write_fail=1
5 kx
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx for (key in D) D_is_set[key] = 1
5 kx FS = ""
5 kx }
5 kx /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5 kx line = \$ 0
5 kx split(line, arg, " ")
5 kx if (arg[1] == "#") {
5 kx defundef = arg[2]
5 kx mac1 = arg[3]
5 kx } else {
5 kx defundef = substr(arg[1], 2)
5 kx mac1 = arg[2]
5 kx }
5 kx split(mac1, mac2, "(") #)
5 kx macro = mac2[1]
5 kx prefix = substr(line, 1, index(line, defundef) - 1)
5 kx if (D_is_set[macro]) {
5 kx # Preserve the white space surrounding the "#".
5 kx print prefix "define", macro P[macro] D[macro]
5 kx next
5 kx } else {
5 kx # Replace #undef with comments. This is necessary, for example,
5 kx # in the case of _POSIX_SOURCE, which is predefined and required
5 kx # on some systems where configure will not decide to define it.
5 kx if (defundef == "undef") {
5 kx print "/*", prefix defundef, macro, "*/"
5 kx next
5 kx }
5 kx }
5 kx }
5 kx { print }
5 kx _ACAWK
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5 kx fi # test -n "$CONFIG_HEADERS"
5 kx
5 kx
5 kx eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
5 kx shift
5 kx for ac_tag
5 kx do
5 kx case $ac_tag in
5 kx :[FHLC]) ac_mode=$ac_tag; continue;;
5 kx esac
5 kx case $ac_mode$ac_tag in
5 kx :[FHL]*:*);;
5 kx :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5 kx :[FH]-) ac_tag=-:-;;
5 kx :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5 kx esac
5 kx ac_save_IFS=$IFS
5 kx IFS=:
5 kx set x $ac_tag
5 kx IFS=$ac_save_IFS
5 kx shift
5 kx ac_file=$1
5 kx shift
5 kx
5 kx case $ac_mode in
5 kx :L) ac_source=$1;;
5 kx :[FH])
5 kx ac_file_inputs=
5 kx for ac_f
5 kx do
5 kx case $ac_f in
5 kx -) ac_f="$ac_tmp/stdin";;
5 kx *) # Look for the file first in the build tree, then in the source tree
5 kx # (if the path is not absolute). The absolute path cannot be DOS-style,
5 kx # because $ac_f cannot contain `:'.
5 kx test -f "$ac_f" ||
5 kx case $ac_f in
5 kx [\\/$]*) false;;
5 kx *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5 kx esac ||
5 kx as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5 kx esac
5 kx case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5 kx as_fn_append ac_file_inputs " '$ac_f'"
5 kx done
5 kx
5 kx # Let's still pretend it is `configure' which instantiates (i.e., don't
5 kx # use $as_me), people would be surprised to read:
5 kx # /* config.h. Generated by config.status. */
5 kx configure_input='Generated from '`
5 kx $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5 kx `' by configure.'
5 kx if test x"$ac_file" != x-; then
5 kx configure_input="$ac_file. $configure_input"
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5 kx $as_echo "$as_me: creating $ac_file" >&6;}
5 kx fi
5 kx # Neutralize special characters interpreted by sed in replacement strings.
5 kx case $configure_input in #(
5 kx *\&* | *\|* | *\\* )
5 kx ac_sed_conf_input=`$as_echo "$configure_input" |
5 kx sed 's/[\\\\&|]/\\\\&/g'`;; #(
5 kx *) ac_sed_conf_input=$configure_input;;
5 kx esac
5 kx
5 kx case $ac_tag in
5 kx *:-:* | *:-) cat >"$ac_tmp/stdin" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5 kx esac
5 kx ;;
5 kx esac
5 kx
5 kx ac_dir=`$as_dirname -- "$ac_file" ||
5 kx $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$ac_file" : 'X\(//\)[^/]' \| \
5 kx X"$ac_file" : 'X\(//\)$' \| \
5 kx X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$ac_file" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx as_dir="$ac_dir"; as_fn_mkdir_p
5 kx ac_builddir=.
5 kx
5 kx case "$ac_dir" in
5 kx .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *)
5 kx ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5 kx # A ".." for each directory in $ac_dir_suffix.
5 kx ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5 kx case $ac_top_builddir_sub in
5 kx "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5 kx *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5 kx esac ;;
5 kx esac
5 kx ac_abs_top_builddir=$ac_pwd
5 kx ac_abs_builddir=$ac_pwd$ac_dir_suffix
5 kx # for backward compatibility:
5 kx ac_top_builddir=$ac_top_build_prefix
5 kx
5 kx case $srcdir in
5 kx .) # We are building in place.
5 kx ac_srcdir=.
5 kx ac_top_srcdir=$ac_top_builddir_sub
5 kx ac_abs_top_srcdir=$ac_pwd ;;
5 kx [\\/]* | ?:[\\/]* ) # Absolute name.
5 kx ac_srcdir=$srcdir$ac_dir_suffix;
5 kx ac_top_srcdir=$srcdir
5 kx ac_abs_top_srcdir=$srcdir ;;
5 kx *) # Relative name.
5 kx ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5 kx ac_top_srcdir=$ac_top_build_prefix$srcdir
5 kx ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5 kx esac
5 kx ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5 kx
5 kx
5 kx case $ac_mode in
5 kx :F)
5 kx #
5 kx # CONFIG_FILE
5 kx #
5 kx
5 kx case $INSTALL in
5 kx [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5 kx *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5 kx esac
5 kx ac_MKDIR_P=$MKDIR_P
5 kx case $MKDIR_P in
5 kx [\\/$]* | ?:[\\/]* ) ;;
5 kx */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5 kx esac
5 kx _ACEOF
5 kx
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx # If the template does not know about datarootdir, expand it.
5 kx # FIXME: This hack should be removed a few years after 2.60.
5 kx ac_datarootdir_hack=; ac_datarootdir_seen=
5 kx ac_sed_dataroot='
5 kx /datarootdir/ {
5 kx p
5 kx q
5 kx }
5 kx /@datadir@/p
5 kx /@docdir@/p
5 kx /@infodir@/p
5 kx /@localedir@/p
5 kx /@mandir@/p'
5 kx case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5 kx *datarootdir*) ac_datarootdir_seen=yes;;
5 kx *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5 kx $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_datarootdir_hack='
5 kx s&@datadir@&$datadir&g
5 kx s&@docdir@&$docdir&g
5 kx s&@infodir@&$infodir&g
5 kx s&@localedir@&$localedir&g
5 kx s&@mandir@&$mandir&g
5 kx s&\\\${datarootdir}&$datarootdir&g' ;;
5 kx esac
5 kx _ACEOF
5 kx
5 kx # Neutralize VPATH when `$srcdir' = `.'.
5 kx # Shell code in configure.ac might set extrasub.
5 kx # FIXME: do we really want to maintain this feature?
5 kx cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5 kx ac_sed_extra="$ac_vpsub
5 kx $extrasub
5 kx _ACEOF
5 kx cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5 kx :t
5 kx /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5 kx s|@configure_input@|$ac_sed_conf_input|;t t
5 kx s&@top_builddir@&$ac_top_builddir_sub&;t t
5 kx s&@top_build_prefix@&$ac_top_build_prefix&;t t
5 kx s&@srcdir@&$ac_srcdir&;t t
5 kx s&@abs_srcdir@&$ac_abs_srcdir&;t t
5 kx s&@top_srcdir@&$ac_top_srcdir&;t t
5 kx s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5 kx s&@builddir@&$ac_builddir&;t t
5 kx s&@abs_builddir@&$ac_abs_builddir&;t t
5 kx s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5 kx s&@INSTALL@&$ac_INSTALL&;t t
5 kx s&@MKDIR_P@&$ac_MKDIR_P&;t t
5 kx $ac_datarootdir_hack
5 kx "
5 kx eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5 kx >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx
5 kx test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5 kx { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5 kx { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5 kx "$ac_tmp/out"`; test -z "$ac_out"; } &&
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5 kx which seems to be undefined. Please make sure it is defined" >&5
5 kx $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5 kx which seems to be undefined. Please make sure it is defined" >&2;}
5 kx
5 kx rm -f "$ac_tmp/stdin"
5 kx case $ac_file in
5 kx -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5 kx *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5 kx esac \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx ;;
5 kx :H)
5 kx #
5 kx # CONFIG_HEADER
5 kx #
5 kx if test x"$ac_file" != x-; then
5 kx {
5 kx $as_echo "/* $configure_input */" \
5 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5 kx } >"$ac_tmp/config.h" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5 kx $as_echo "$as_me: $ac_file is unchanged" >&6;}
5 kx else
5 kx rm -f "$ac_file"
5 kx mv "$ac_tmp/config.h" "$ac_file" \
5 kx || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5 kx fi
5 kx else
5 kx $as_echo "/* $configure_input */" \
5 kx && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5 kx || as_fn_error $? "could not create -" "$LINENO" 5
5 kx fi
5 kx # Compute "$ac_file"'s index in $config_headers.
5 kx _am_arg="$ac_file"
5 kx _am_stamp_count=1
5 kx for _am_header in $config_headers :; do
5 kx case $_am_header in
5 kx $_am_arg | $_am_arg:* )
5 kx break ;;
5 kx * )
5 kx _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5 kx esac
5 kx done
5 kx echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5 kx $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$_am_arg" : 'X\(//\)[^/]' \| \
5 kx X"$_am_arg" : 'X\(//\)$' \| \
5 kx X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$_am_arg" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`/stamp-h$_am_stamp_count
5 kx ;;
5 kx :L)
5 kx #
5 kx # CONFIG_LINK
5 kx #
5 kx
5 kx if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
5 kx :
5 kx else
5 kx # Prefer the file from the source tree if names are identical.
5 kx if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
5 kx ac_source=$srcdir/$ac_source
5 kx fi
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
5 kx $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
5 kx
5 kx if test ! -r "$ac_source"; then
5 kx as_fn_error $? "$ac_source: file not found" "$LINENO" 5
5 kx fi
5 kx rm -f "$ac_file"
5 kx
5 kx # Try a relative symlink, then a hard link, then a copy.
5 kx case $ac_source in
5 kx [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
5 kx *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
5 kx esac
5 kx ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
5 kx ln "$ac_source" "$ac_file" 2>/dev/null ||
5 kx cp -p "$ac_source" "$ac_file" ||
5 kx as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
5 kx fi
5 kx ;;
5 kx :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5 kx $as_echo "$as_me: executing $ac_file commands" >&6;}
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx case $ac_file$ac_mode in
5 kx "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5 kx # Older Autoconf quotes --file arguments for eval, but not when files
5 kx # are listed without --file. Let's play safe and only enable the eval
5 kx # if we detect the quoting.
5 kx # TODO: see whether this extra hack can be removed once we start
5 kx # requiring Autoconf 2.70 or later.
5 kx case $CONFIG_FILES in #(
5 kx *\'*) :
5 kx eval set x "$CONFIG_FILES" ;; #(
5 kx *) :
5 kx set x $CONFIG_FILES ;; #(
5 kx *) :
5 kx ;;
5 kx esac
5 kx shift
5 kx # Used to flag and report bootstrapping failures.
5 kx am_rc=0
5 kx for am_mf
5 kx do
5 kx # Strip MF so we end up with the name of the file.
5 kx am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
5 kx # Check whether this is an Automake generated Makefile which includes
5 kx # dependency-tracking related rules and includes.
5 kx # Grep'ing the whole file directly is not great: AIX grep has a line
5 kx # limit of 2048, but all sed's we know have understand at least 4000.
5 kx sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
5 kx || continue
5 kx am_dirpart=`$as_dirname -- "$am_mf" ||
5 kx $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5 kx X"$am_mf" : 'X\(//\)[^/]' \| \
5 kx X"$am_mf" : 'X\(//\)$' \| \
5 kx X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X"$am_mf" |
5 kx sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)[^/].*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx am_filepart=`$as_basename -- "$am_mf" ||
5 kx $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
5 kx X"$am_mf" : 'X\(//\)$' \| \
5 kx X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5 kx $as_echo X/"$am_mf" |
5 kx sed '/^.*\/\([^/][^/]*\)\/*$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\/\)$/{
5 kx s//\1/
5 kx q
5 kx }
5 kx /^X\/\(\/\).*/{
5 kx s//\1/
5 kx q
5 kx }
5 kx s/.*/./; q'`
5 kx { echo "$as_me:$LINENO: cd "$am_dirpart" \
5 kx && sed -e '/# am--include-marker/d' "$am_filepart" \
5 kx | $MAKE -f - am--depfiles" >&5
5 kx (cd "$am_dirpart" \
5 kx && sed -e '/# am--include-marker/d' "$am_filepart" \
5 kx | $MAKE -f - am--depfiles) >&5 2>&5
5 kx ac_status=$?
5 kx echo "$as_me:$LINENO: \$? = $ac_status" >&5
5 kx (exit $ac_status); } || am_rc=$?
5 kx done
5 kx if test $am_rc -ne 0; then
5 kx { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5 kx $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5 kx as_fn_error $? "Something went wrong bootstrapping makefile fragments
5 kx for automatic dependency tracking. Try re-running configure with the
5 kx '--disable-dependency-tracking' option to at least be able to build
5 kx the package (albeit without support for automatic dependency tracking).
5 kx See \`config.log' for more details" "$LINENO" 5; }
5 kx fi
5 kx { am_dirpart=; unset am_dirpart;}
5 kx { am_filepart=; unset am_filepart;}
5 kx { am_mf=; unset am_mf;}
5 kx { am_rc=; unset am_rc;}
5 kx rm -f conftest-deps.mk
5 kx }
5 kx ;;
5 kx "libtool":C)
5 kx
5 kx # See if we are running on zsh, and set the options that allow our
5 kx # commands through without removal of \ escapes.
5 kx if test -n "${ZSH_VERSION+set}"; then
5 kx setopt NO_GLOB_SUBST
5 kx fi
5 kx
5 kx cfgfile=${ofile}T
5 kx trap "$RM \"$cfgfile\"; exit 1" 1 2 15
5 kx $RM "$cfgfile"
5 kx
5 kx cat <<_LT_EOF >> "$cfgfile"
5 kx #! $SHELL
5 kx # Generated automatically by $as_me ($PACKAGE) $VERSION
5 kx # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5 kx # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5 kx
5 kx # Provide generalized library-building support services.
5 kx # Written by Gordon Matzigkeit, 1996
5 kx
5 kx # Copyright (C) 2014 Free Software Foundation, Inc.
5 kx # This is free software; see the source for copying conditions. There is NO
5 kx # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 kx
5 kx # GNU Libtool is free software; you can redistribute it and/or modify
5 kx # it under the terms of the GNU General Public License as published by
5 kx # the Free Software Foundation; either version 2 of of the License, or
5 kx # (at your option) any later version.
5 kx #
5 kx # As a special exception to the GNU General Public License, if you
5 kx # distribute this file as part of a program or library that is built
5 kx # using GNU Libtool, you may include this file under the same
5 kx # distribution terms that you use for the rest of that program.
5 kx #
5 kx # GNU Libtool is distributed in the hope that it will be useful, but
5 kx # WITHOUT ANY WARRANTY; without even the implied warranty of
5 kx # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5 kx # GNU General Public License for more details.
5 kx #
5 kx # You should have received a copy of the GNU General Public License
5 kx # along with this program. If not, see <http://www.gnu.org/licenses/>.
5 kx
5 kx
5 kx # The names of the tagged configurations supported by this script.
5 kx available_tags=''
5 kx
5 kx # Configured defaults for sys_lib_dlsearch_path munging.
5 kx : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
5 kx
5 kx # ### BEGIN LIBTOOL CONFIG
5 kx
5 kx # Which release of libtool.m4 was used?
5 kx macro_version=$macro_version
5 kx macro_revision=$macro_revision
5 kx
5 kx # Assembler program.
5 kx AS=$lt_AS
5 kx
5 kx # DLL creation program.
5 kx DLLTOOL=$lt_DLLTOOL
5 kx
5 kx # Object dumper program.
5 kx OBJDUMP=$lt_OBJDUMP
5 kx
5 kx # Whether or not to build shared libraries.
5 kx build_libtool_libs=$enable_shared
5 kx
5 kx # Whether or not to build static libraries.
5 kx build_old_libs=$enable_static
5 kx
5 kx # What type of objects to build.
5 kx pic_mode=$pic_mode
5 kx
5 kx # Whether or not to optimize for fast installation.
5 kx fast_install=$enable_fast_install
5 kx
5 kx # Shared archive member basename,for filename based shared library versioning on AIX.
5 kx shared_archive_member_spec=$shared_archive_member_spec
5 kx
5 kx # Shell to use when invoking shell scripts.
5 kx SHELL=$lt_SHELL
5 kx
5 kx # An echo program that protects backslashes.
5 kx ECHO=$lt_ECHO
5 kx
5 kx # The PATH separator for the build system.
5 kx PATH_SEPARATOR=$lt_PATH_SEPARATOR
5 kx
5 kx # The host system.
5 kx host_alias=$host_alias
5 kx host=$host
5 kx host_os=$host_os
5 kx
5 kx # The build system.
5 kx build_alias=$build_alias
5 kx build=$build
5 kx build_os=$build_os
5 kx
5 kx # A sed program that does not truncate output.
5 kx SED=$lt_SED
5 kx
5 kx # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5 kx Xsed="\$SED -e 1s/^X//"
5 kx
5 kx # A grep program that handles long lines.
5 kx GREP=$lt_GREP
5 kx
5 kx # An ERE matcher.
5 kx EGREP=$lt_EGREP
5 kx
5 kx # A literal string matcher.
5 kx FGREP=$lt_FGREP
5 kx
5 kx # A BSD- or MS-compatible name lister.
5 kx NM=$lt_NM
5 kx
5 kx # Whether we need soft or hard links.
5 kx LN_S=$lt_LN_S
5 kx
5 kx # What is the maximum length of a command?
5 kx max_cmd_len=$max_cmd_len
5 kx
5 kx # Object file suffix (normally "o").
5 kx objext=$ac_objext
5 kx
5 kx # Executable file suffix (normally "").
5 kx exeext=$exeext
5 kx
5 kx # whether the shell understands "unset".
5 kx lt_unset=$lt_unset
5 kx
5 kx # turn spaces into newlines.
5 kx SP2NL=$lt_lt_SP2NL
5 kx
5 kx # turn newlines into spaces.
5 kx NL2SP=$lt_lt_NL2SP
5 kx
5 kx # convert \$build file names to \$host format.
5 kx to_host_file_cmd=$lt_cv_to_host_file_cmd
5 kx
5 kx # convert \$build files to toolchain format.
5 kx to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5 kx
5 kx # Method to check whether dependent libraries are shared objects.
5 kx deplibs_check_method=$lt_deplibs_check_method
5 kx
5 kx # Command to use when deplibs_check_method = "file_magic".
5 kx file_magic_cmd=$lt_file_magic_cmd
5 kx
5 kx # How to find potential files when deplibs_check_method = "file_magic".
5 kx file_magic_glob=$lt_file_magic_glob
5 kx
5 kx # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
5 kx want_nocaseglob=$lt_want_nocaseglob
5 kx
5 kx # Command to associate shared and link libraries.
5 kx sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
5 kx
5 kx # The archiver.
5 kx AR=$lt_AR
5 kx
5 kx # Flags to create an archive.
5 kx AR_FLAGS=$lt_AR_FLAGS
5 kx
5 kx # How to feed a file listing to the archiver.
5 kx archiver_list_spec=$lt_archiver_list_spec
5 kx
5 kx # A symbol stripping program.
5 kx STRIP=$lt_STRIP
5 kx
5 kx # Commands used to install an old-style archive.
5 kx RANLIB=$lt_RANLIB
5 kx old_postinstall_cmds=$lt_old_postinstall_cmds
5 kx old_postuninstall_cmds=$lt_old_postuninstall_cmds
5 kx
5 kx # Whether to use a lock for old archive extraction.
5 kx lock_old_archive_extraction=$lock_old_archive_extraction
5 kx
5 kx # A C compiler.
5 kx LTCC=$lt_CC
5 kx
5 kx # LTCC compiler flags.
5 kx LTCFLAGS=$lt_CFLAGS
5 kx
5 kx # Take the output of nm and produce a listing of raw symbols and C names.
5 kx global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5 kx
5 kx # Transform the output of nm in a proper C declaration.
5 kx global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5 kx
5 kx # Transform the output of nm into a list of symbols to manually relocate.
5 kx global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
5 kx
5 kx # Transform the output of nm in a C name address pair.
5 kx global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5 kx
5 kx # Transform the output of nm in a C name address pair when lib prefix is needed.
5 kx global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
5 kx
5 kx # The name lister interface.
5 kx nm_interface=$lt_lt_cv_nm_interface
5 kx
5 kx # Specify filename containing input files for \$NM.
5 kx nm_file_list_spec=$lt_nm_file_list_spec
5 kx
5 kx # The root where to search for dependent libraries,and where our libraries should be installed.
5 kx lt_sysroot=$lt_sysroot
5 kx
5 kx # Command to truncate a binary pipe.
5 kx lt_truncate_bin=$lt_lt_cv_truncate_bin
5 kx
5 kx # The name of the directory that contains temporary libtool files.
5 kx objdir=$objdir
5 kx
5 kx # Used to examine libraries when file_magic_cmd begins with "file".
5 kx MAGIC_CMD=$MAGIC_CMD
5 kx
5 kx # Must we lock files when doing compilation?
5 kx need_locks=$lt_need_locks
5 kx
5 kx # Manifest tool.
5 kx MANIFEST_TOOL=$lt_MANIFEST_TOOL
5 kx
5 kx # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
5 kx DSYMUTIL=$lt_DSYMUTIL
5 kx
5 kx # Tool to change global to local symbols on Mac OS X.
5 kx NMEDIT=$lt_NMEDIT
5 kx
5 kx # Tool to manipulate fat objects and archives on Mac OS X.
5 kx LIPO=$lt_LIPO
5 kx
5 kx # ldd/readelf like tool for Mach-O binaries on Mac OS X.
5 kx OTOOL=$lt_OTOOL
5 kx
5 kx # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
5 kx OTOOL64=$lt_OTOOL64
5 kx
5 kx # Old archive suffix (normally "a").
5 kx libext=$libext
5 kx
5 kx # Shared library suffix (normally ".so").
5 kx shrext_cmds=$lt_shrext_cmds
5 kx
5 kx # The commands to extract the exported symbol list from a shared archive.
5 kx extract_expsyms_cmds=$lt_extract_expsyms_cmds
5 kx
5 kx # Variables whose values should be saved in libtool wrapper scripts and
5 kx # restored at link time.
5 kx variables_saved_for_relink=$lt_variables_saved_for_relink
5 kx
5 kx # Do we need the "lib" prefix for modules?
5 kx need_lib_prefix=$need_lib_prefix
5 kx
5 kx # Do we need a version for libraries?
5 kx need_version=$need_version
5 kx
5 kx # Library versioning type.
5 kx version_type=$version_type
5 kx
5 kx # Shared library runtime path variable.
5 kx runpath_var=$runpath_var
5 kx
5 kx # Shared library path variable.
5 kx shlibpath_var=$shlibpath_var
5 kx
5 kx # Is shlibpath searched before the hard-coded library search path?
5 kx shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5 kx
5 kx # Format of library name prefix.
5 kx libname_spec=$lt_libname_spec
5 kx
5 kx # List of archive names. First name is the real one, the rest are links.
5 kx # The last name is the one that the linker finds with -lNAME
5 kx library_names_spec=$lt_library_names_spec
5 kx
5 kx # The coded name of the library, if different from the real name.
5 kx soname_spec=$lt_soname_spec
5 kx
5 kx # Permission mode override for installation of shared libraries.
5 kx install_override_mode=$lt_install_override_mode
5 kx
5 kx # Command to use after installation of a shared archive.
5 kx postinstall_cmds=$lt_postinstall_cmds
5 kx
5 kx # Command to use after uninstallation of a shared archive.
5 kx postuninstall_cmds=$lt_postuninstall_cmds
5 kx
5 kx # Commands used to finish a libtool library installation in a directory.
5 kx finish_cmds=$lt_finish_cmds
5 kx
5 kx # As "finish_cmds", except a single script fragment to be evaled but
5 kx # not shown.
5 kx finish_eval=$lt_finish_eval
5 kx
5 kx # Whether we should hardcode library paths into libraries.
5 kx hardcode_into_libs=$hardcode_into_libs
5 kx
5 kx # Compile-time system search path for libraries.
5 kx sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5 kx
5 kx # Detected run-time system search path for libraries.
5 kx sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
5 kx
5 kx # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
5 kx configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
5 kx
5 kx # Whether dlopen is supported.
5 kx dlopen_support=$enable_dlopen
5 kx
5 kx # Whether dlopen of programs is supported.
5 kx dlopen_self=$enable_dlopen_self
5 kx
5 kx # Whether dlopen of statically linked programs is supported.
5 kx dlopen_self_static=$enable_dlopen_self_static
5 kx
5 kx # Commands to strip libraries.
5 kx old_striplib=$lt_old_striplib
5 kx striplib=$lt_striplib
5 kx
5 kx
5 kx # The linker used to build libraries.
5 kx LD=$lt_LD
5 kx
5 kx # How to create reloadable object files.
5 kx reload_flag=$lt_reload_flag
5 kx reload_cmds=$lt_reload_cmds
5 kx
5 kx # Commands used to build an old-style archive.
5 kx old_archive_cmds=$lt_old_archive_cmds
5 kx
5 kx # A language specific compiler.
5 kx CC=$lt_compiler
5 kx
5 kx # Is the compiler the GNU compiler?
5 kx with_gcc=$GCC
5 kx
5 kx # Compiler flag to turn off builtin functions.
5 kx no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
5 kx
5 kx # Additional compiler flags for building library objects.
5 kx pic_flag=$lt_lt_prog_compiler_pic
5 kx
5 kx # How to pass a linker flag through the compiler.
5 kx wl=$lt_lt_prog_compiler_wl
5 kx
5 kx # Compiler flag to prevent dynamic linking.
5 kx link_static_flag=$lt_lt_prog_compiler_static
5 kx
5 kx # Does compiler simultaneously support -c and -o options?
5 kx compiler_c_o=$lt_lt_cv_prog_compiler_c_o
5 kx
5 kx # Whether or not to add -lc for building shared libraries.
5 kx build_libtool_need_lc=$archive_cmds_need_lc
5 kx
5 kx # Whether or not to disallow shared libs when runtime libs are static.
5 kx allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
5 kx
5 kx # Compiler flag to allow reflexive dlopens.
5 kx export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5 kx
5 kx # Compiler flag to generate shared objects directly from archives.
5 kx whole_archive_flag_spec=$lt_whole_archive_flag_spec
5 kx
5 kx # Whether the compiler copes with passing no objects directly.
5 kx compiler_needs_object=$lt_compiler_needs_object
5 kx
5 kx # Create an old-style archive from a shared archive.
5 kx old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5 kx
5 kx # Create a temporary old-style archive to link instead of a shared archive.
5 kx old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5 kx
5 kx # Commands used to build a shared archive.
5 kx archive_cmds=$lt_archive_cmds
5 kx archive_expsym_cmds=$lt_archive_expsym_cmds
5 kx
5 kx # Commands used to build a loadable module if different from building
5 kx # a shared archive.
5 kx module_cmds=$lt_module_cmds
5 kx module_expsym_cmds=$lt_module_expsym_cmds
5 kx
5 kx # Whether we are building with GNU ld or not.
5 kx with_gnu_ld=$lt_with_gnu_ld
5 kx
5 kx # Flag that allows shared libraries with undefined symbols to be built.
5 kx allow_undefined_flag=$lt_allow_undefined_flag
5 kx
5 kx # Flag that enforces no undefined symbols.
5 kx no_undefined_flag=$lt_no_undefined_flag
5 kx
5 kx # Flag to hardcode \$libdir into a binary during linking.
5 kx # This must work even if \$libdir does not exist
5 kx hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5 kx
5 kx # Whether we need a single "-rpath" flag with a separated argument.
5 kx hardcode_libdir_separator=$lt_hardcode_libdir_separator
5 kx
5 kx # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
5 kx # DIR into the resulting binary.
5 kx hardcode_direct=$hardcode_direct
5 kx
5 kx # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
5 kx # DIR into the resulting binary and the resulting library dependency is
5 kx # "absolute",i.e impossible to change by setting \$shlibpath_var if the
5 kx # library is relocated.
5 kx hardcode_direct_absolute=$hardcode_direct_absolute
5 kx
5 kx # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5 kx # into the resulting binary.
5 kx hardcode_minus_L=$hardcode_minus_L
5 kx
5 kx # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5 kx # into the resulting binary.
5 kx hardcode_shlibpath_var=$hardcode_shlibpath_var
5 kx
5 kx # Set to "yes" if building a shared library automatically hardcodes DIR
5 kx # into the library and all subsequent libraries and executables linked
5 kx # against it.
5 kx hardcode_automatic=$hardcode_automatic
5 kx
5 kx # Set to yes if linker adds runtime paths of dependent libraries
5 kx # to runtime path list.
5 kx inherit_rpath=$inherit_rpath
5 kx
5 kx # Whether libtool must link a program against all its dependency libraries.
5 kx link_all_deplibs=$link_all_deplibs
5 kx
5 kx # Set to "yes" if exported symbols are required.
5 kx always_export_symbols=$always_export_symbols
5 kx
5 kx # The commands to list exported symbols.
5 kx export_symbols_cmds=$lt_export_symbols_cmds
5 kx
5 kx # Symbols that should not be listed in the preloaded symbols.
5 kx exclude_expsyms=$lt_exclude_expsyms
5 kx
5 kx # Symbols that must always be exported.
5 kx include_expsyms=$lt_include_expsyms
5 kx
5 kx # Commands necessary for linking programs (against libraries) with templates.
5 kx prelink_cmds=$lt_prelink_cmds
5 kx
5 kx # Commands necessary for finishing linking programs.
5 kx postlink_cmds=$lt_postlink_cmds
5 kx
5 kx # Specify filename containing input files.
5 kx file_list_spec=$lt_file_list_spec
5 kx
5 kx # How to hardcode a shared library path into an executable.
5 kx hardcode_action=$hardcode_action
5 kx
5 kx # ### END LIBTOOL CONFIG
5 kx
5 kx _LT_EOF
5 kx
5 kx cat <<'_LT_EOF' >> "$cfgfile"
5 kx
5 kx # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
5 kx
5 kx # func_munge_path_list VARIABLE PATH
5 kx # -----------------------------------
5 kx # VARIABLE is name of variable containing _space_ separated list of
5 kx # directories to be munged by the contents of PATH, which is string
5 kx # having a format:
5 kx # "DIR[:DIR]:"
5 kx # string "DIR[ DIR]" will be prepended to VARIABLE
5 kx # ":DIR[:DIR]"
5 kx # string "DIR[ DIR]" will be appended to VARIABLE
5 kx # "DIRP[:DIRP]::[DIRA:]DIRA"
5 kx # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
5 kx # "DIRA[ DIRA]" will be appended to VARIABLE
5 kx # "DIR[:DIR]"
5 kx # VARIABLE will be replaced by "DIR[ DIR]"
5 kx func_munge_path_list ()
5 kx {
5 kx case x$2 in
5 kx x)
5 kx ;;
5 kx *:)
5 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
5 kx ;;
5 kx x:*)
5 kx eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
5 kx ;;
5 kx *::*)
5 kx eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
5 kx eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
5 kx ;;
5 kx *)
5 kx eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
5 kx ;;
5 kx esac
5 kx }
5 kx
5 kx
5 kx # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5 kx func_cc_basename ()
5 kx {
5 kx for cc_temp in $*""; do
5 kx case $cc_temp in
5 kx compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5 kx distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5 kx \-*) ;;
5 kx *) break;;
5 kx esac
5 kx done
5 kx func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5 kx }
5 kx
5 kx
5 kx # ### END FUNCTIONS SHARED WITH CONFIGURE
5 kx
5 kx _LT_EOF
5 kx
5 kx case $host_os in
5 kx aix3*)
5 kx cat <<\_LT_EOF >> "$cfgfile"
5 kx # AIX sometimes has problems with the GCC collect2 program. For some
5 kx # reason, if we set the COLLECT_NAMES environment variable, the problems
5 kx # vanish in a puff of smoke.
5 kx if test set != "${COLLECT_NAMES+set}"; then
5 kx COLLECT_NAMES=
5 kx export COLLECT_NAMES
5 kx fi
5 kx _LT_EOF
5 kx ;;
5 kx esac
5 kx
5 kx
5 kx ltmain=$ac_aux_dir/ltmain.sh
5 kx
5 kx
5 kx # We use sed instead of cat because bash on DJGPP gets confused if
5 kx # if finds mixed CR/LF and LF-only lines. Since sed operates in
5 kx # text mode, it properly converts lines to CR/LF. This bash problem
5 kx # is reportedly fixed, but why not run on old versions too?
5 kx sed '$q' "$ltmain" >> "$cfgfile" \
5 kx || (rm -f "$cfgfile"; exit 1)
5 kx
5 kx mv -f "$cfgfile" "$ofile" ||
5 kx (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5 kx chmod +x "$ofile"
5 kx
5 kx ;;
5 kx "po-directories":C)
5 kx for ac_file in $CONFIG_FILES; do
5 kx # Support "outfile[:infile[:infile...]]"
5 kx case "$ac_file" in
5 kx *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5 kx esac
5 kx # PO directories have a Makefile.in generated from Makefile.in.in.
5 kx case "$ac_file" in */Makefile.in)
5 kx # Adjust a relative srcdir.
5 kx ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
5 kx ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
5 kx ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
5 kx # In autoconf-2.13 it is called $ac_given_srcdir.
5 kx # In autoconf-2.50 it is called $srcdir.
5 kx test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
5 kx case "$ac_given_srcdir" in
5 kx .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
5 kx /*) top_srcdir="$ac_given_srcdir" ;;
5 kx *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
5 kx esac
5 kx # Treat a directory as a PO directory if and only if it has a
5 kx # POTFILES.in file. This allows packages to have multiple PO
5 kx # directories under different names or in different locations.
5 kx if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
5 kx rm -f "$ac_dir/POTFILES"
5 kx test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
5 kx gt_tab=`printf '\t'`
5 kx cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
5 kx POMAKEFILEDEPS="POTFILES.in"
5 kx # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
5 kx # on $ac_dir but don't depend on user-specified configuration
5 kx # parameters.
5 kx if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
5 kx # The LINGUAS file contains the set of available languages.
5 kx if test -n "$OBSOLETE_ALL_LINGUAS"; then
5 kx test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
5 kx fi
5 kx ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
5 kx # Hide the ALL_LINGUAS assignment from automake < 1.5.
5 kx eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
5 kx POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
5 kx else
5 kx # The set of available languages was given in configure.in.
5 kx # Hide the ALL_LINGUAS assignment from automake < 1.5.
5 kx eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
5 kx fi
5 kx # Compute POFILES
5 kx # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
5 kx # Compute UPDATEPOFILES
5 kx # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
5 kx # Compute DUMMYPOFILES
5 kx # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
5 kx # Compute GMOFILES
5 kx # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
5 kx case "$ac_given_srcdir" in
5 kx .) srcdirpre= ;;
5 kx *) srcdirpre='$(srcdir)/' ;;
5 kx esac
5 kx POFILES=
5 kx UPDATEPOFILES=
5 kx DUMMYPOFILES=
5 kx GMOFILES=
5 kx for lang in $ALL_LINGUAS; do
5 kx POFILES="$POFILES $srcdirpre$lang.po"
5 kx UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
5 kx DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
5 kx GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
5 kx done
5 kx # CATALOGS depends on both $ac_dir and the user's LINGUAS
5 kx # environment variable.
5 kx INST_LINGUAS=
5 kx if test -n "$ALL_LINGUAS"; then
5 kx for presentlang in $ALL_LINGUAS; do
5 kx useit=no
5 kx if test "%UNSET%" != "$LINGUAS"; then
5 kx desiredlanguages="$LINGUAS"
5 kx else
5 kx desiredlanguages="$ALL_LINGUAS"
5 kx fi
5 kx for desiredlang in $desiredlanguages; do
5 kx # Use the presentlang catalog if desiredlang is
5 kx # a. equal to presentlang, or
5 kx # b. a variant of presentlang (because in this case,
5 kx # presentlang can be used as a fallback for messages
5 kx # which are not translated in the desiredlang catalog).
5 kx case "$desiredlang" in
5 kx "$presentlang"*) useit=yes;;
5 kx esac
5 kx done
5 kx if test $useit = yes; then
5 kx INST_LINGUAS="$INST_LINGUAS $presentlang"
5 kx fi
5 kx done
5 kx fi
5 kx CATALOGS=
5 kx if test -n "$INST_LINGUAS"; then
5 kx for lang in $INST_LINGUAS; do
5 kx CATALOGS="$CATALOGS $lang.gmo"
5 kx done
5 kx fi
5 kx test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
5 kx sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
5 kx for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
5 kx if test -f "$f"; then
5 kx case "$f" in
5 kx *.orig | *.bak | *~) ;;
5 kx *) cat "$f" >> "$ac_dir/Makefile" ;;
5 kx esac
5 kx fi
5 kx done
5 kx fi
5 kx ;;
5 kx esac
5 kx done ;;
5 kx
5 kx esac
5 kx done # for ac_tag
5 kx
5 kx
5 kx as_fn_exit 0
5 kx _ACEOF
5 kx ac_clean_files=$ac_clean_files_save
5 kx
5 kx test $ac_write_fail = 0 ||
5 kx as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5 kx
5 kx
5 kx # configure is writing to config.log, and then calls config.status.
5 kx # config.status does its own redirection, appending to config.log.
5 kx # Unfortunately, on DOS this fails, as config.log is still kept open
5 kx # by configure, so config.status won't be able to write to it; its
5 kx # output is simply discarded. So we exec the FD to /dev/null,
5 kx # effectively closing config.log, so it can be properly (re)opened and
5 kx # appended to by config.status. When coming back to configure, we
5 kx # need to make the FD available again.
5 kx if test "$no_create" != yes; then
5 kx ac_cs_success=:
5 kx ac_config_status_args=
5 kx test "$silent" = yes &&
5 kx ac_config_status_args="$ac_config_status_args --quiet"
5 kx exec 5>/dev/null
5 kx $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5 kx exec 5>>config.log
5 kx # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5 kx # would make configure fail if this is the last instruction.
5 kx $ac_cs_success || as_fn_exit 1
5 kx fi
5 kx if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5 kx $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5 kx fi
5 kx
5 kx
5 kx { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
5 kx
5 kx version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
5 kx Host type: ${host}
5 kx Install prefix: ${prefix}
5 kx Compiler: ${CC}
5 kx Compiler flags: ${CFLAGS}
5 kx Warning flags: ${WARN_CFLAGS}
5 kx Library types: Shared=${enable_shared}, Static=${enable_static}
5 kx Libiconv: $am_cv_func_iconv
5 kx Valgrind: ${VALGRIND}
5 kx Version script: $have_ld_version_script
5 kx Documentation: $enable_doc
5 kx TLD code: $enable_tld
5 kx Build Java port: $enable_java
5 kx Build C# port: $enable_csharp
5 kx Address Sanitizer: $asan
5 kx UB Sanitizer: $ubsan
5 kx " >&5
5 kx $as_echo "$as_me: summary of build options:
5 kx
5 kx version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
5 kx Host type: ${host}
5 kx Install prefix: ${prefix}
5 kx Compiler: ${CC}
5 kx Compiler flags: ${CFLAGS}
5 kx Warning flags: ${WARN_CFLAGS}
5 kx Library types: Shared=${enable_shared}, Static=${enable_static}
5 kx Libiconv: $am_cv_func_iconv
5 kx Valgrind: ${VALGRIND}
5 kx Version script: $have_ld_version_script
5 kx Documentation: $enable_doc
5 kx TLD code: $enable_tld
5 kx Build Java port: $enable_java
5 kx Build C# port: $enable_csharp
5 kx Address Sanitizer: $asan
5 kx UB Sanitizer: $ubsan
5 kx " >&6;}