cpython/configure

28443 lines
724 KiB
Plaintext
Raw Normal View History

1995-06-14 20:10:28 -03:00
#! /bin/sh
2009-07-17 04:46:46 -03:00
# From configure.in Revision: 74044 .
# Guess values for system-dependent variables and create Makefiles.
2009-07-17 04:46:46 -03:00
# Generated by GNU Autoconf 2.63 for python 2.7.
#
2009-05-20 15:24:08 -03:00
# Report bugs to <http://bugs.python.org/>.
2005-03-14 17:23:33 -04:00
#
2007-08-30 17:10:57 -03:00
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2009-07-17 04:46:46 -03:00
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
2002-04-12 06:54:03 -03:00
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
2007-08-30 17:10:57 -03:00
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
2002-04-12 06:54:03 -03:00
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2009-07-17 04:46:46 -03:00
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2003-09-25 11:50:04 -03:00
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2007-08-30 17:10:57 -03:00
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
fi
# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
2009-07-17 04:46:46 -03:00
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='printf %s\n'
as_echo_n='printf %s'
else
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
as_echo_n='/usr/ucb/echo -n'
else
2009-07-17 04:46:46 -03:00
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
as_echo_n_body='eval
arg=$1;
case $arg in
*"$as_nl"*)
expr "X$arg" : "X\\(.*\\)$as_nl";
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
esac;
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
'
export as_echo_n_body
as_echo_n='sh -c $as_echo_n_body as_echo'
fi
2009-07-17 04:46:46 -03:00
export as_echo_body
as_echo='sh -c $as_echo_body as_echo'
fi
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=:
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
PATH_SEPARATOR=';'
}
2002-04-12 06:54:03 -03:00
fi
# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2002-04-12 06:54:03 -03:00
as_unset=unset
else
as_unset=false
fi
2003-09-25 11:50:04 -03:00
2007-08-30 17:10:57 -03:00
# IFS
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory separator.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
2009-07-17 04:46:46 -03:00
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }
fi
2003-09-25 11:50:04 -03:00
# Work around bugs in pre-3.0 UWIN ksh.
2007-08-30 17:10:57 -03:00
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
2003-09-25 11:50:04 -03:00
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
2009-07-17 04:46:46 -03:00
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
2003-09-25 11:50:04 -03:00
# Required to use basename.
2007-08-30 17:10:57 -03:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2003-09-25 11:50:04 -03:00
as_expr=expr
else
as_expr=false
fi
2007-08-30 17:10:57 -03:00
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2003-09-25 11:50:04 -03:00
as_basename=basename
else
as_basename=false
fi
2002-04-12 06:54:03 -03:00
# Name of the executable.
2007-08-30 17:10:57 -03:00
as_me=`$as_basename -- "$0" ||
2002-04-12 06:54:03 -03:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
2007-08-30 17:10:57 -03:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2009-07-17 04:46:46 -03:00
$as_echo X/"$0" |
2007-08-30 17:10:57 -03:00
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2003-09-25 11:50:04 -03:00
2007-08-30 17:10:57 -03:00
# CDPATH.
$as_unset CDPATH
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
if test "x$CONFIG_SHELL" = x; then
if (eval ":") 2>/dev/null; then
as_have_required=yes
else
as_have_required=no
fi
2009-07-17 04:46:46 -03:00
if test $as_have_required = yes && (eval ":
2007-08-30 17:10:57 -03:00
(as_func_return () {
(exit \$1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
2007-08-30 17:10:57 -03:00
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
2007-08-30 17:10:57 -03:00
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test \$exitcode = 0) || { (exit 1); exit 1; }
(
as_lineno_1=\$LINENO
as_lineno_2=\$LINENO
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
:
else
as_candidate_shells=
2002-04-12 06:54:03 -03:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
2007-08-30 17:10:57 -03:00
case $as_dir in
2002-04-12 06:54:03 -03:00
/*)
2007-08-30 17:10:57 -03:00
for as_base in sh bash ksh sh5; do
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
done;;
esac
done
IFS=$as_save_IFS
for as_shell in $as_candidate_shells $SHELL; do
# Try only shells that exist, to save several forks.
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
{ ("$as_shell") 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2009-07-17 04:46:46 -03:00
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2007-08-30 17:10:57 -03:00
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
fi
:
_ASEOF
}; then
CONFIG_SHELL=$as_shell
as_have_required=yes
if { "$as_shell" 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2009-07-17 04:46:46 -03:00
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2007-08-30 17:10:57 -03:00
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
fi
:
(as_func_return () {
(exit $1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = "$1" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test $exitcode = 0) || { (exit 1); exit 1; }
(
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
2007-08-30 17:10:57 -03:00
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
_ASEOF
}; then
break
fi
fi
done
if test "x$CONFIG_SHELL" != x; then
for as_var in BASH_ENV ENV
2009-07-17 04:46:46 -03:00
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
2007-08-30 17:10:57 -03:00
fi
if test $as_have_required = no; then
echo This script requires a shell more modern than all the
echo shells that I found on your system. Please install a
echo modern shell, or manually run the script under such a
echo shell if you do have one.
{ (exit 1); exit 1; }
fi
fi
fi
(eval "as_func_return () {
(exit \$1)
}
as_func_success () {
as_func_return 0
}
as_func_failure () {
as_func_return 1
}
as_func_ret_success () {
return 0
}
as_func_ret_failure () {
return 1
}
exitcode=0
if as_func_success; then
:
else
exitcode=1
echo as_func_success failed.
fi
if as_func_failure; then
exitcode=1
echo as_func_failure succeeded.
fi
if as_func_ret_success; then
:
else
exitcode=1
echo as_func_ret_success failed.
fi
if as_func_ret_failure; then
exitcode=1
echo as_func_ret_failure succeeded.
fi
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
:
else
exitcode=1
echo positional parameters were not saved.
fi
test \$exitcode = 0") || {
echo No shell found that supports shell functions.
2009-07-17 04:46:46 -03:00
echo Please tell bug-autoconf@gnu.org about your system,
echo including any error possibly output before this message.
echo This can help us improve future autoconf versions.
echo Configuration will now proceed without shell functions.
2007-08-30 17:10:57 -03:00
}
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2002-04-12 06:54:03 -03:00
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
2007-08-30 17:10:57 -03:00
# line-number line after each line using $LINENO; the second 'sed'
# does the real work. The second script uses 'N' to pair each
# line-number line with the line containing $LINENO, and appends
# trailing '-' during substitution so that $LINENO is not a special
# case at line end.
2002-04-12 06:54:03 -03:00
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2007-08-30 17:10:57 -03:00
# scripts with optimization help from Paolo Bonzini. Blame Lee
# E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
2002-04-12 06:54:03 -03:00
sed '
2007-08-30 17:10:57 -03:00
s/[$]LINENO.*/&-/
t lineno
b
:lineno
2002-04-12 06:54:03 -03:00
N
2007-08-30 17:10:57 -03:00
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2002-04-12 06:54:03 -03:00
t loop
2007-08-30 17:10:57 -03:00
s/-\n.*//
2002-04-12 06:54:03 -03:00
' >$as_me.lineno &&
2007-08-30 17:10:57 -03:00
chmod +x "$as_me.lineno" ||
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
2007-08-30 17:10:57 -03:00
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
2002-04-12 06:54:03 -03:00
# Exit status is that of the last command.
exit
}
2007-08-30 17:10:57 -03:00
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
case `echo 'x\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
*) ECHO_C='\c';;
esac;;
*)
ECHO_N='-n';;
2002-04-12 06:54:03 -03:00
esac
2007-08-30 17:10:57 -03:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2002-04-12 06:54:03 -03:00
as_expr=expr
else
as_expr=false
fi
rm -f conf$$ conf$$.exe conf$$.file
2007-08-30 17:10:57 -03:00
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
2009-07-17 04:46:46 -03:00
mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
if ln -s conf$$.file conf$$ 2>/dev/null; then
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
2002-04-12 06:54:03 -03:00
as_ln_s='cp -p'
2009-07-17 04:46:46 -03:00
fi
2002-04-12 06:54:03 -03:00
else
as_ln_s='cp -p'
fi
2007-08-30 17:10:57 -03:00
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
2002-04-12 06:54:03 -03:00
2003-09-25 11:50:04 -03:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
test -d ./-p && rmdir ./-p
2003-09-25 11:50:04 -03:00
as_mkdir_p=false
fi
2007-08-30 17:10:57 -03:00
if test -x / >/dev/null 2>&1; then
as_test_x='test -x'
else
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
fi
as_test_x='
eval sh -c '\''
if test -d "$1"; then
2009-07-17 04:46:46 -03:00
test -d "$1/.";
2007-08-30 17:10:57 -03:00
else
case $1 in
2009-07-17 04:46:46 -03:00
-*)set "./$1";;
2007-08-30 17:10:57 -03:00
esac;
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
???[sx]*):;;*)false;;esac;fi
'\'' sh
'
fi
as_executable_p=$as_test_x
2002-04-12 06:54:03 -03:00
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2002-04-12 06:54:03 -03:00
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
exec 7<&0 </dev/null 6>&1
2002-04-12 06:54:03 -03:00
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
#
# Initializations.
#
ac_default_prefix=/usr/local
2007-08-30 17:10:57 -03:00
ac_clean_files=
2003-09-25 11:50:04 -03:00
ac_config_libobj_dir=.
2007-08-30 17:10:57 -03:00
LIBOBJS=
2002-04-12 06:54:03 -03:00
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='python'
PACKAGE_TARNAME='python'
2008-10-03 05:59:41 -03:00
PACKAGE_VERSION='2.7'
PACKAGE_STRING='python 2.7'
2009-05-20 15:24:08 -03:00
PACKAGE_BUGREPORT='http://bugs.python.org/'
2002-04-12 06:54:03 -03:00
ac_unique_file="Include/object.h"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
2007-08-30 17:10:57 -03:00
#ifdef HAVE_SYS_TYPES_H
2002-04-12 06:54:03 -03:00
# include <sys/types.h>
#endif
2007-08-30 17:10:57 -03:00
#ifdef HAVE_SYS_STAT_H
2002-04-12 06:54:03 -03:00
# include <sys/stat.h>
#endif
2007-08-30 17:10:57 -03:00
#ifdef STDC_HEADERS
2002-04-12 06:54:03 -03:00
# include <stdlib.h>
# include <stddef.h>
#else
2007-08-30 17:10:57 -03:00
# ifdef HAVE_STDLIB_H
2002-04-12 06:54:03 -03:00
# include <stdlib.h>
# endif
#endif
2007-08-30 17:10:57 -03:00
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2002-04-12 06:54:03 -03:00
# include <memory.h>
# endif
# include <string.h>
#endif
2007-08-30 17:10:57 -03:00
#ifdef HAVE_STRINGS_H
2002-04-12 06:54:03 -03:00
# include <strings.h>
#endif
2007-08-30 17:10:57 -03:00
#ifdef HAVE_INTTYPES_H
2002-04-12 06:54:03 -03:00
# include <inttypes.h>
#endif
2007-08-30 17:10:57 -03:00
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
2002-04-12 06:54:03 -03:00
# include <unistd.h>
#endif"
2009-07-17 04:46:46 -03:00
ac_subst_vars='LTLIBOBJS
SRCDIRS
2009-07-17 04:46:46 -03:00
THREADHEADERS
UNICODE_OBJS
LIBC
LIBM
HAVE_GETHOSTBYNAME
HAVE_GETHOSTBYNAME_R
HAVE_GETHOSTBYNAME_R_3_ARG
HAVE_GETHOSTBYNAME_R_5_ARG
HAVE_GETHOSTBYNAME_R_6_ARG
LIBOBJS
TRUE
MACHDEP_OBJS
DYNLOADFILE
DLINCLDIR
THREADOBJ
LDLAST
USE_THREAD_MODULE
SIGNAL_OBJS
USE_SIGNAL_MODULE
SHLIBS
CFLAGSFORSHARED
LINKFORSHARED
CCSHARED
BLDSHARED
LDSHARED
SO
LIBTOOL_CRUFT
OTHER_LIBTOOL_OPT
UNIVERSAL_ARCH_FLAGS
BASECFLAGS
OPT
LN
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
SVNVERSION
ARFLAGS
AR
RANLIB
GNULD
LINKCC
RUNSHARED
INSTSONAME
LDLIBRARYDIR
BLDLIBRARY
DLLLIBRARY
LDLIBRARY
LIBRARY
BUILDEXEEXT
EGREP
GREP
CPP
MAINCC
CXX
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
EXPORT_MACOSX_DEPLOYMENT_TARGET
CONFIGURE_MACOSX_DEPLOYMENT_TARGET
EXTRAMACHDEPPATH
EXTRAPLATDIR
SGI_ABI
MACHDEP
FRAMEWORKUNIXTOOLSPREFIX
FRAMEWORKALTINSTALLLAST
FRAMEWORKALTINSTALLFIRST
FRAMEWORKINSTALLLAST
FRAMEWORKINSTALLFIRST
PYTHONFRAMEWORKINSTALLDIR
PYTHONFRAMEWORKPREFIX
PYTHONFRAMEWORKDIR
PYTHONFRAMEWORKIDENTIFIER
PYTHONFRAMEWORK
ARCH_RUN_32BIT
UNIVERSALSDK
CONFIG_ARGS
SOVERSION
VERSION
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
2003-09-25 11:50:04 -03:00
ac_subst_files=''
2009-07-17 04:46:46 -03:00
ac_user_opts='
enable_option_checking
enable_universalsdk
with_universal_archs
with_framework_name
enable_framework
with_gcc
with_cxx_main
with_suffix
enable_shared
enable_profiling
with_pydebug
enable_toolbox_glue
with_libs
with_system_ffi
with_dbmliborder
with_signal_module
with_dec_threads
with_threads
with_thread
with_pth
enable_ipv6
with_doc_strings
with_tsc
with_pymalloc
with_wctype_functions
with_fpectl
with_libm
with_libc
enable_big_digits
enable_unicode
'
2007-08-30 17:10:57 -03:00
ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP'
1994-08-01 09:15:30 -03:00
# Initialize some variables set by options.
2002-04-12 06:54:03 -03:00
ac_init_help=
ac_init_version=false
2009-07-17 04:46:46 -03:00
ac_unrecognized_opts=
ac_unrecognized_sep=
1994-08-01 09:15:30 -03:00
# The variables have the same names as the options, with
# dashes changed to underlines.
2002-04-12 06:54:03 -03:00
cache_file=/dev/null
exec_prefix=NONE
1994-08-01 09:15:30 -03:00
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
1994-08-01 09:15:30 -03:00
silent=
site=
1994-08-01 09:15:30 -03:00
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
2002-04-12 06:54:03 -03:00
# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
2007-08-30 17:10:57 -03:00
# (The list follows the same order as the GNU Coding Standards.)
1996-05-28 19:53:48 -03:00
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
2007-08-30 17:10:57 -03:00
datarootdir='${prefix}/share'
datadir='${datarootdir}'
1996-05-28 19:53:48 -03:00
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
2007-08-30 17:10:57 -03:00
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
1994-08-01 09:15:30 -03:00
ac_prev=
2007-08-30 17:10:57 -03:00
ac_dashdash=
1994-08-01 09:15:30 -03:00
for ac_option
1993-12-24 06:39:16 -04:00
do
1994-08-01 09:15:30 -03:00
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
2007-08-30 17:10:57 -03:00
eval $ac_prev=\$ac_option
1994-08-01 09:15:30 -03:00
ac_prev=
continue
1993-12-24 06:39:16 -04:00
fi
1994-08-01 09:15:30 -03:00
2007-08-30 17:10:57 -03:00
case $ac_option in
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
*) ac_optarg=yes ;;
esac
1994-08-01 09:15:30 -03:00
# Accept the important Cygnus configure options, so we can diagnose typos.
2007-08-30 17:10:57 -03:00
case $ac_dashdash$ac_option in
--)
ac_dashdash=yes ;;
1994-08-01 09:15:30 -03:00
1996-05-28 19:53:48 -03:00
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2002-04-12 06:54:03 -03:00
bindir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-build | --build | --buil | --bui | --bu)
2002-04-12 06:54:03 -03:00
ac_prev=build_alias ;;
1996-05-28 19:53:48 -03:00
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
2002-04-12 06:54:03 -03:00
build_alias=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2002-04-12 06:54:03 -03:00
cache_file=$ac_optarg ;;
--config-cache | -C)
cache_file=config.cache ;;
2007-08-30 17:10:57 -03:00
-datadir | --datadir | --datadi | --datad)
1996-05-28 19:53:48 -03:00
ac_prev=datadir ;;
2007-08-30 17:10:57 -03:00
-datadir=* | --datadir=* | --datadi=* | --datad=*)
2002-04-12 06:54:03 -03:00
datadir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
2007-08-30 17:10:57 -03:00
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
| --dataroo | --dataro | --datar)
ac_prev=datarootdir ;;
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
datarootdir=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-disable-* | --disable-*)
2009-07-17 04:46:46 -03:00
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
# Reject names that are not valid shell variable names.
2009-07-17 04:46:46 -03:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
2009-07-17 04:46:46 -03:00
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"enable_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval enable_$ac_useropt=no ;;
2007-08-30 17:10:57 -03:00
-docdir | --docdir | --docdi | --doc | --do)
ac_prev=docdir ;;
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
docdir=$ac_optarg ;;
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
ac_prev=dvidir ;;
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
dvidir=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-enable-* | --enable-*)
2009-07-17 04:46:46 -03:00
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
# Reject names that are not valid shell variable names.
2009-07-17 04:46:46 -03:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
2009-07-17 04:46:46 -03:00
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"enable_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval enable_$ac_useropt=\$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
2002-04-12 06:54:03 -03:00
exec_prefix=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
1994-08-01 09:15:30 -03:00
2002-04-12 06:54:03 -03:00
-help | --help | --hel | --he | -h)
ac_init_help=long ;;
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
ac_init_help=recursive ;;
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
ac_init_help=short ;;
1994-08-01 09:15:30 -03:00
-host | --host | --hos | --ho)
2002-04-12 06:54:03 -03:00
ac_prev=host_alias ;;
1994-08-01 09:15:30 -03:00
-host=* | --host=* | --hos=* | --ho=*)
2002-04-12 06:54:03 -03:00
host_alias=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
2007-08-30 17:10:57 -03:00
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
ac_prev=htmldir ;;
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
| --ht=*)
htmldir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
2002-04-12 06:54:03 -03:00
includedir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2002-04-12 06:54:03 -03:00
infodir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
2002-04-12 06:54:03 -03:00
libdir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
2002-04-12 06:54:03 -03:00
libexecdir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
2007-08-30 17:10:57 -03:00
-localedir | --localedir | --localedi | --localed | --locale)
ac_prev=localedir ;;
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
localedir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-localstatedir | --localstatedir | --localstatedi | --localstated \
2007-08-30 17:10:57 -03:00
| --localstate | --localstat | --localsta | --localst | --locals)
1996-05-28 19:53:48 -03:00
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2007-08-30 17:10:57 -03:00
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2002-04-12 06:54:03 -03:00
localstatedir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2002-04-12 06:54:03 -03:00
mandir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
1994-08-01 09:15:30 -03:00
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
1994-08-01 09:15:30 -03:00
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
2002-04-12 06:54:03 -03:00
| --no-cr | --no-c | -n)
1994-08-01 09:15:30 -03:00
no_create=yes ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
1994-08-01 09:15:30 -03:00
1996-05-28 19:53:48 -03:00
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2002-04-12 06:54:03 -03:00
oldincludedir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
1994-08-01 09:15:30 -03:00
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2002-04-12 06:54:03 -03:00
prefix=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2002-04-12 06:54:03 -03:00
program_prefix=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2002-04-12 06:54:03 -03:00
program_suffix=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
2002-04-12 06:54:03 -03:00
program_transform_name=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
2007-08-30 17:10:57 -03:00
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
ac_prev=pdfdir ;;
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
pdfdir=$ac_optarg ;;
-psdir | --psdir | --psdi | --psd | --ps)
ac_prev=psdir ;;
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
psdir=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
1996-05-28 19:53:48 -03:00
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
2002-04-12 06:54:03 -03:00
sbindir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
2002-04-12 06:54:03 -03:00
sharedstatedir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
2002-04-12 06:54:03 -03:00
site=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2002-04-12 06:54:03 -03:00
srcdir=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
1996-05-28 19:53:48 -03:00
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2002-04-12 06:54:03 -03:00
sysconfdir=$ac_optarg ;;
1996-05-28 19:53:48 -03:00
1994-08-01 09:15:30 -03:00
-target | --target | --targe | --targ | --tar | --ta | --t)
2002-04-12 06:54:03 -03:00
ac_prev=target_alias ;;
1994-08-01 09:15:30 -03:00
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2002-04-12 06:54:03 -03:00
target_alias=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
2002-04-12 06:54:03 -03:00
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
1994-08-01 09:15:30 -03:00
-with-* | --with-*)
2009-07-17 04:46:46 -03:00
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names.
2009-07-17 04:46:46 -03:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
2009-07-17 04:46:46 -03:00
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"with_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval with_$ac_useropt=\$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-without-* | --without-*)
2009-07-17 04:46:46 -03:00
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
# Reject names that are not valid shell variable names.
2009-07-17 04:46:46 -03:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
2009-07-17 04:46:46 -03:00
ac_useropt_orig=$ac_useropt
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
case $ac_user_opts in
*"
"with_$ac_useropt"
"*) ;;
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
ac_unrecognized_sep=', ';;
esac
eval with_$ac_useropt=no ;;
1994-08-01 09:15:30 -03:00
--x)
# Obsolete; use --with-x.
with_x=yes ;;
1994-08-01 09:15:30 -03:00
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2002-04-12 06:54:03 -03:00
x_includes=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2002-04-12 06:54:03 -03:00
x_libraries=$ac_optarg ;;
1994-08-01 09:15:30 -03:00
2009-07-17 04:46:46 -03:00
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2002-04-12 06:54:03 -03:00
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
1994-08-01 09:15:30 -03:00
;;
2002-04-12 06:54:03 -03:00
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
2007-08-30 17:10:57 -03:00
eval $ac_envvar=\$ac_optarg
2002-04-12 06:54:03 -03:00
export $ac_envvar ;;
1996-05-28 19:53:48 -03:00
*)
2002-04-12 06:54:03 -03:00
# FIXME: should be removed in autoconf 3.0.
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2002-04-12 06:54:03 -03:00
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2002-04-12 06:54:03 -03:00
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1994-08-01 09:15:30 -03:00
;;
esac
1993-12-24 06:39:16 -04:00
done
1994-08-01 09:15:30 -03:00
if test -n "$ac_prev"; then
2002-04-12 06:54:03 -03:00
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
fi
2009-07-17 04:46:46 -03:00
if test -n "$ac_unrecognized_opts"; then
case $enable_option_checking in
no) ;;
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
{ (exit 1); exit 1; }; } ;;
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
esac
fi
# Check all directory arguments for consistency.
2007-08-30 17:10:57 -03:00
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir
2002-04-12 06:54:03 -03:00
do
2007-08-30 17:10:57 -03:00
eval ac_val=\$$ac_var
2009-07-17 04:46:46 -03:00
# Remove trailing slashes.
case $ac_val in
*/ )
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
eval $ac_var=\$ac_val;;
esac
# Be sure to have absolute directory names.
2002-04-12 06:54:03 -03:00
case $ac_val in
2007-08-30 17:10:57 -03:00
[\\/$]* | ?:[\\/]* ) continue;;
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1994-08-01 09:15:30 -03:00
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }; }
1994-08-01 09:15:30 -03:00
done
1993-12-24 06:39:16 -04:00
2002-04-12 06:54:03 -03:00
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias
# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2002-04-12 06:54:03 -03:00
If a cross compiler is detected then cross compile mode will be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
fi
1993-12-24 06:39:16 -04:00
2002-04-12 06:54:03 -03:00
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
test "$silent" = yes && exec 6>/dev/null
1993-12-24 06:39:16 -04:00
2007-08-30 17:10:57 -03:00
ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }; }
1993-12-24 06:39:16 -04:00
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
1994-08-01 09:15:30 -03:00
ac_srcdir_defaulted=yes
2007-08-30 17:10:57 -03:00
# Try the directory containing this script, then the parent directory.
2009-07-17 04:46:46 -03:00
ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_myself" : 'X\(//\)[^/]' \| \
X"$as_myself" : 'X\(//\)$' \| \
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
2007-08-30 17:10:57 -03:00
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
1994-08-01 09:15:30 -03:00
srcdir=$ac_confdir
2007-08-30 17:10:57 -03:00
if test ! -r "$srcdir/$ac_unique_file"; then
1993-12-24 06:39:16 -04:00
srcdir=..
fi
else
ac_srcdir_defaulted=no
1993-12-24 06:39:16 -04:00
fi
2007-08-30 17:10:57 -03:00
if test ! -r "$srcdir/$ac_unique_file"; then
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
fi
2007-08-30 17:10:57 -03:00
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
2009-07-17 04:46:46 -03:00
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2003-09-25 11:50:04 -03:00
{ (exit 1); exit 1; }; }
2007-08-30 17:10:57 -03:00
pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
eval ac_env_${ac_var}_set=\${${ac_var}+set}
eval ac_env_${ac_var}_value=\$${ac_var}
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
eval ac_cv_env_${ac_var}_value=\$${ac_var}
done
2002-04-12 06:54:03 -03:00
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
2008-10-03 05:59:41 -03:00
\`configure' configures python 2.7 to adapt to many kinds of systems.
2002-04-12 06:54:03 -03:00
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
2009-07-17 04:46:46 -03:00
[$ac_default_prefix]
2002-04-12 06:54:03 -03:00
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2009-07-17 04:46:46 -03:00
[PREFIX]
2002-04-12 06:54:03 -03:00
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
2009-07-17 04:46:46 -03:00
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/python]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
2002-04-12 06:54:03 -03:00
_ACEOF
cat <<\_ACEOF
_ACEOF
fi
if test -n "$ac_init_help"; then
case $ac_init_help in
2008-10-03 05:59:41 -03:00
short | recursive ) echo "Configuration of python 2.7:";;
esac
2002-04-12 06:54:03 -03:00
cat <<\_ACEOF
Optional Features:
2009-07-17 04:46:46 -03:00
--disable-option-checking ignore unrecognized --enable/--with options
2002-04-12 06:54:03 -03:00
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-universalsdk[=SDKDIR]
2008-02-02 22:07:55 -04:00
Build against Mac OS X 10.4u SDK (ppc/i386)
--enable-framework[=INSTALLDIR]
Build (MacOSX|Darwin) framework
--enable-shared disable/enable building shared python library
--enable-profiling enable C-level code profiling
--enable-toolbox-glue disable/enable MacOSX glue code for extensions
--enable-ipv6 Enable ipv6 (with ipv4) support
--disable-ipv6 Disable ipv6 support
--enable-big-digits[=BITS]
use big digits for Python longs [BITS=30]
--enable-unicode[=ucs[24]]
Enable Unicode strings (default is yes)
2002-04-12 06:54:03 -03:00
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-universal-archs=ARCH
select architectures for universal build ("32-bit",
"64-bit" or "all")
--with-framework-name=FRAMEWORK
specify an alternate name of the framework built
with --enable-framework
--without-gcc never use gcc
--with-cxx-main=<compiler>
compile main() and link python executable with C++
compiler
--with-suffix=.exe set executable suffix
--with-pydebug build with Py_DEBUG defined
--with-libs='lib1 ...' link against additional libs
2006-04-11 08:12:43 -03:00
--with-system-ffi build _ctypes module using an installed ffi library
2009-04-29 17:36:25 -03:00
--with-dbmliborder=db1:db2:...
order to check db backends for dbm. Valid value is a
colon separated string with the backend names
`ndbm', `gdbm' and `bdb'.
--with-signal-module disable/enable signal module
--with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
--with(out)-threads[=DIRECTORY]
disable/enable thread support
--with(out)-thread[=DIRECTORY]
deprecated; use --with(out)-threads
--with-pth use GNU pth threading libraries
--with(out)-doc-strings disable/enable documentation strings
--with(out)-tsc enable/disable timestamp counter profile
--with(out)-pymalloc disable/enable specialized mallocs
--with-wctype-functions use wctype.h functions
--with-fpectl enable SIGFPE catching
--with-libm=STRING math library
--with-libc=STRING C library
2002-04-12 06:54:03 -03:00
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
2007-08-30 17:10:57 -03:00
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
2002-04-12 06:54:03 -03:00
CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
2009-05-20 15:24:08 -03:00
Report bugs to <http://bugs.python.org/>.
2002-04-12 06:54:03 -03:00
_ACEOF
2007-08-30 17:10:57 -03:00
ac_status=$?
2002-04-12 06:54:03 -03:00
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2009-07-17 04:46:46 -03:00
test -d "$ac_dir" ||
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
continue
2002-04-12 06:54:03 -03:00
ac_builddir=.
2007-08-30 17:10:57 -03:00
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
2009-07-17 04:46:46 -03:00
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2007-08-30 17:10:57 -03:00
# A ".." for each directory in $ac_dir_suffix.
2009-07-17 04:46:46 -03:00
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2007-08-30 17:10:57 -03:00
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
2002-04-12 06:54:03 -03:00
case $srcdir in
2007-08-30 17:10:57 -03:00
.) # We are building in place.
2002-04-12 06:54:03 -03:00
ac_srcdir=.
2007-08-30 17:10:57 -03:00
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
2002-04-12 06:54:03 -03:00
ac_srcdir=$srcdir$ac_dir_suffix;
2007-08-30 17:10:57 -03:00
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
2007-08-30 17:10:57 -03:00
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cd "$ac_dir" || { ac_status=$?; continue; }
# Check for guested configure.
if test -f "$ac_srcdir/configure.gnu"; then
echo &&
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
elif test -f "$ac_srcdir/configure"; then
echo &&
$SHELL "$ac_srcdir/configure" --help=recursive
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2007-08-30 17:10:57 -03:00
fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; }
2002-04-12 06:54:03 -03:00
done
fi
2007-08-30 17:10:57 -03:00
test -n "$ac_init_help" && exit $ac_status
2002-04-12 06:54:03 -03:00
if $ac_init_version; then
cat <<\_ACEOF
2008-10-03 05:59:41 -03:00
python configure 2.7
2009-07-17 04:46:46 -03:00
generated by GNU Autoconf 2.63
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2009-07-17 04:46:46 -03:00
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2002-04-12 06:54:03 -03:00
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
2007-08-30 17:10:57 -03:00
exit
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
cat >config.log <<_ACEOF
2002-04-12 06:54:03 -03:00
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
2008-10-03 05:59:41 -03:00
It was created by python $as_me 2.7, which was
2009-07-17 04:46:46 -03:00
generated by GNU Autoconf 2.63. Invocation command line was
2002-04-12 06:54:03 -03:00
$ $0 $@
_ACEOF
2007-08-30 17:10:57 -03:00
exec 5>>config.log
2002-04-12 06:54:03 -03:00
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2007-08-30 17:10:57 -03:00
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002-04-12 06:54:03 -03:00
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
_ASUNAME
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
2009-07-17 04:46:46 -03:00
$as_echo "PATH: $as_dir"
2002-04-12 06:54:03 -03:00
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
} >&5
cat >&5 <<_ACEOF
## ----------- ##
## Core tests. ##
## ----------- ##
_ACEOF
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
2003-09-25 11:50:04 -03:00
# Strip out --silent because we don't want to record it for future runs.
2002-04-12 06:54:03 -03:00
# Also quote any args containing shell meta-characters.
2003-09-25 11:50:04 -03:00
# Make two passes to allow for proper duplicate-argument suppression.
2002-04-12 06:54:03 -03:00
ac_configure_args=
2003-09-25 11:50:04 -03:00
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
2002-04-12 06:54:03 -03:00
do
2003-09-25 11:50:04 -03:00
for ac_arg
do
case $ac_arg in
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
continue ;;
2007-08-30 17:10:57 -03:00
*\'*)
2009-07-17 04:46:46 -03:00
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2003-09-25 11:50:04 -03:00
esac
case $ac_pass in
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2)
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
2003-09-25 11:50:04 -03:00
else
case $ac_arg in
*=* | --config-cache | -C | -disable-* | --disable-* \
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
| -with-* | --with-* | -without-* | --without-* | --x)
case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
;;
-* ) ac_must_keep_next=true ;;
esac
2003-09-25 11:50:04 -03:00
fi
2007-08-30 17:10:57 -03:00
ac_configure_args="$ac_configure_args '$ac_arg'"
2003-09-25 11:50:04 -03:00
;;
esac
done
2002-04-12 06:54:03 -03:00
done
2003-09-25 11:50:04 -03:00
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2002-04-12 06:54:03 -03:00
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
2007-08-30 17:10:57 -03:00
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002-04-12 06:54:03 -03:00
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
{
echo
2003-09-25 11:50:04 -03:00
2002-04-12 06:54:03 -03:00
cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
echo
# The following way of writing the cache mishandles newlines in values,
2007-08-30 17:10:57 -03:00
(
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
2009-07-17 04:46:46 -03:00
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007-08-30 17:10:57 -03:00
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
2009-07-17 04:46:46 -03:00
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007-08-30 17:10:57 -03:00
*) $as_unset $ac_var ;;
esac ;;
esac
done
2002-04-12 06:54:03 -03:00
(set) 2>&1 |
2007-08-30 17:10:57 -03:00
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
2002-04-12 06:54:03 -03:00
sed -n \
2007-08-30 17:10:57 -03:00
"s/'\''/'\''\\\\'\'''\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
;; #(
2002-04-12 06:54:03 -03:00
*)
2007-08-30 17:10:57 -03:00
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002-04-12 06:54:03 -03:00
;;
2007-08-30 17:10:57 -03:00
esac |
sort
)
2002-04-12 06:54:03 -03:00
echo
2003-09-25 11:50:04 -03:00
cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
echo
for ac_var in $ac_subst_vars
do
2007-08-30 17:10:57 -03:00
eval ac_val=\$$ac_var
case $ac_val in
2009-07-17 04:46:46 -03:00
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007-08-30 17:10:57 -03:00
esac
2009-07-17 04:46:46 -03:00
$as_echo "$ac_var='\''$ac_val'\''"
2003-09-25 11:50:04 -03:00
done | sort
echo
if test -n "$ac_subst_files"; then
cat <<\_ASBOX
2007-08-30 17:10:57 -03:00
## ------------------- ##
## File substitutions. ##
## ------------------- ##
2003-09-25 11:50:04 -03:00
_ASBOX
echo
for ac_var in $ac_subst_files
do
2007-08-30 17:10:57 -03:00
eval ac_val=\$$ac_var
case $ac_val in
2009-07-17 04:46:46 -03:00
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007-08-30 17:10:57 -03:00
esac
2009-07-17 04:46:46 -03:00
$as_echo "$ac_var='\''$ac_val'\''"
2003-09-25 11:50:04 -03:00
done | sort
echo
fi
2002-04-12 06:54:03 -03:00
if test -s confdefs.h; then
cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
echo
2007-08-30 17:10:57 -03:00
cat confdefs.h
2002-04-12 06:54:03 -03:00
echo
fi
test "$ac_signal" != 0 &&
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: caught signal $ac_signal"
$as_echo "$as_me: exit $exit_status"
2002-04-12 06:54:03 -03:00
} >&5
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* &&
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2002-04-12 06:54:03 -03:00
exit $exit_status
2007-08-30 17:10:57 -03:00
' 0
2002-04-12 06:54:03 -03:00
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2007-08-30 17:10:57 -03:00
rm -f -r conftest* confdefs.h
2002-04-12 06:54:03 -03:00
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
# Let the site file select an alternate cache file if it wants to.
2009-07-17 04:46:46 -03:00
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
2007-08-30 17:10:57 -03:00
if test -n "$CONFIG_SITE"; then
2009-07-17 04:46:46 -03:00
ac_site_file1=$CONFIG_SITE
2007-08-30 17:10:57 -03:00
elif test "x$prefix" != xNONE; then
2009-07-17 04:46:46 -03:00
ac_site_file1=$prefix/share/config.site
ac_site_file2=$prefix/etc/config.site
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_site_file1=$ac_default_prefix/share/config.site
ac_site_file2=$ac_default_prefix/etc/config.site
1993-12-24 06:39:16 -04:00
fi
2009-07-17 04:46:46 -03:00
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2007-08-30 17:10:57 -03:00
do
2009-07-17 04:46:46 -03:00
test "x$ac_site_file" = xNONE && continue
if test -r "$ac_site_file"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002-04-12 06:54:03 -03:00
sed 's/^/| /' "$ac_site_file" >&5
. "$ac_site_file"
fi
done
if test -r "$cache_file"; then
2002-04-12 06:54:03 -03:00
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
2002-04-12 06:54:03 -03:00
case $cache_file in
2007-08-30 17:10:57 -03:00
[\\/]* | ?:[\\/]* ) . "$cache_file";;
*) . "./$cache_file";;
2002-04-12 06:54:03 -03:00
esac
fi
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
2002-04-12 06:54:03 -03:00
>$cache_file
fi
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
2007-08-30 17:10:57 -03:00
for ac_var in $ac_precious_vars; do
2002-04-12 06:54:03 -03:00
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
2007-08-30 17:10:57 -03:00
eval ac_old_val=\$ac_cv_env_${ac_var}_value
eval ac_new_val=\$ac_env_${ac_var}_value
2002-04-12 06:54:03 -03:00
case $ac_old_set,$ac_new_set in
set,)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002-04-12 06:54:03 -03:00
ac_cache_corrupted=: ;;
,set)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002-04-12 06:54:03 -03:00
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
2009-07-17 04:46:46 -03:00
# differences in whitespace do not lead to failure.
ac_old_val_w=`echo x $ac_old_val`
ac_new_val_w=`echo x $ac_new_val`
if test "$ac_old_val_w" != "$ac_new_val_w"; then
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac_cache_corrupted=:
else
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
eval $ac_var=\$ac_old_val
fi
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2002-04-12 06:54:03 -03:00
fi;;
esac
# Pass precious variables to config.status.
if test "$ac_new_set" = set; then
case $ac_new_val in
2009-07-17 04:46:46 -03:00
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2002-04-12 06:54:03 -03:00
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
esac
fi
done
if $ac_cache_corrupted; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
fi
2002-04-12 06:54:03 -03:00
2002-04-12 06:54:03 -03:00
1993-12-24 06:39:16 -04:00
2007-08-30 17:10:57 -03:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002-04-12 06:54:03 -03:00
2003-09-25 11:50:04 -03:00
2007-08-30 17:10:57 -03:00
ac_config_headers="$ac_config_headers pyconfig.h"
2002-04-12 06:54:03 -03:00
if test "$prefix" != "/"; then
prefix=`echo "$prefix" | sed -e 's/\/$//g'`
fi
2002-04-12 06:54:03 -03:00
1997-07-19 16:36:02 -03:00
# We don't use PACKAGE_ variables, and they cause conflicts
# with other autoconf-based packages that include Python.h
grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
rm confdefs.h
mv confdefs.h.new confdefs.h
2008-10-03 05:59:41 -03:00
VERSION=2.7
1997-07-19 16:36:02 -03:00
SOVERSION=1.0
# The later defininition of _XOPEN_SOURCE disables certain features
# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
# them.
cat >>confdefs.h <<\_ACEOF
#define _NETBSD_SOURCE 1
_ACEOF
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
# them.
cat >>confdefs.h <<\_ACEOF
#define __BSD_VISIBLE 1
_ACEOF
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
cat >>confdefs.h <<\_ACEOF
#define _BSD_TYPES 1
_ACEOF
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
# them.
cat >>confdefs.h <<\_ACEOF
#define _DARWIN_C_SOURCE 1
_ACEOF
define_xopen_source=yes
# Arguments passed to configure.
CONFIG_ARGS="$ac_configure_args"
2007-08-30 17:10:57 -03:00
# Check whether --enable-universalsdk was given.
if test "${enable_universalsdk+set}" = set; then
2007-08-30 17:10:57 -03:00
enableval=$enable_universalsdk;
case $enableval in
yes)
enableval=/Developer/SDKs/MacOSX10.4u.sdk
;;
esac
case $enableval in
no)
UNIVERSALSDK=
enable_universalsdk=
;;
*)
UNIVERSALSDK=$enableval
;;
esac
else
UNIVERSALSDK=
enable_universalsdk=
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
2008-07-16 17:17:04 -03:00
ARCH_RUN_32BIT=
UNIVERSAL_ARCHS="32-bit"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
$as_echo_n "checking for --with-universal-archs... " >&6; }
# Check whether --with-universal-archs was given.
if test "${with_universal_archs+set}" = set; then
withval=$with_universal_archs;
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $withval" >&5
$as_echo "$withval" >&6; }
UNIVERSAL_ARCHS="$withval"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: 32-bit" >&5
$as_echo "32-bit" >&6; }
fi
# Check whether --with-framework-name was given.
if test "${with_framework_name+set}" = set; then
withval=$with_framework_name;
PYTHONFRAMEWORK=${withval}
PYTHONFRAMEWORKDIR=${withval}.framework
PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
else
PYTHONFRAMEWORK=Python
PYTHONFRAMEWORKDIR=Python.framework
PYTHONFRAMEWORKIDENTIFIER=org.python.python
fi
2007-08-30 17:10:57 -03:00
# Check whether --enable-framework was given.
if test "${enable_framework+set}" = set; then
enableval=$enable_framework;
2001-08-14 22:27:14 -03:00
case $enableval in
2002-04-12 06:54:03 -03:00
yes)
2001-08-14 22:27:14 -03:00
enableval=/Library/Frameworks
esac
case $enableval in
no)
PYTHONFRAMEWORK=
PYTHONFRAMEWORKDIR=no-framework
PYTHONFRAMEWORKPREFIX=
PYTHONFRAMEWORKINSTALLDIR=
FRAMEWORKINSTALLFIRST=
FRAMEWORKINSTALLLAST=
FRAMEWORKALTINSTALLFIRST=
FRAMEWORKALTINSTALLLAST=
if test "x${prefix}" = "xNONE"; then
FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
else
FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
fi
enable_framework=
2001-08-14 22:27:14 -03:00
;;
*)
PYTHONFRAMEWORKPREFIX=$enableval
PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
if test "$UNIVERSAL_ARCHS" = "all"
then
FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
else
FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
fi
if test "x${prefix}" = "xNONE" ; then
FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
else
FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
fi
prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
# Add files for Mac specific code to the list of output
# files:
2007-08-30 17:10:57 -03:00
ac_config_files="$ac_config_files Mac/Makefile"
2007-08-30 17:10:57 -03:00
ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2007-08-30 17:10:57 -03:00
ac_config_files="$ac_config_files Mac/IDLE/Makefile"
ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2001-08-14 22:27:14 -03:00
esac
2002-04-12 06:54:03 -03:00
1996-09-10 15:20:48 -03:00
else
2002-04-12 06:54:03 -03:00
2001-08-14 22:27:14 -03:00
PYTHONFRAMEWORK=
PYTHONFRAMEWORKDIR=no-framework
2001-08-14 22:27:14 -03:00
PYTHONFRAMEWORKPREFIX=
PYTHONFRAMEWORKINSTALLDIR=
FRAMEWORKINSTALLFIRST=
FRAMEWORKINSTALLLAST=
FRAMEWORKALTINSTALLFIRST=
FRAMEWORKALTINSTALLLAST=
if test "x${prefix}" = "xNONE" ; then
FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
else
FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
fi
2001-08-14 22:27:14 -03:00
enable_framework=
if test "$UNIVERSAL_ARCHS" = "all"
then
FRAMEWORKINSTALLLAST=update4wayuniversal
FRAMEWORKALTINSTALLLAST=update4wayuniversal
fi
2007-08-30 17:10:57 -03:00
fi
2001-08-14 22:27:14 -03:00
##AC_ARG_WITH(dyld,
## AC_HELP_STRING(--with-dyld,
## Use (OpenStep|Rhapsody) dynamic linker))
2001-08-14 22:27:14 -03:00
##
1996-07-30 15:09:35 -03:00
# Set name for machine-dependent library files
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking MACHDEP" >&5
$as_echo_n "checking MACHDEP... " >&6; }
1996-07-30 15:09:35 -03:00
if test -z "$MACHDEP"
then
1996-09-10 15:20:48 -03:00
ac_sys_system=`uname -s`
if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
-o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1996-09-10 15:20:48 -03:00
ac_sys_release=`uname -v`
1996-07-30 15:09:35 -03:00
else
1996-09-10 15:20:48 -03:00
ac_sys_release=`uname -r`
1996-07-30 15:09:35 -03:00
fi
1996-09-10 15:20:48 -03:00
ac_md_system=`echo $ac_sys_system |
tr -d '/ ' | tr '[A-Z]' '[a-z]'`
ac_md_release=`echo $ac_sys_release |
tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
MACHDEP="$ac_md_system$ac_md_release"
1996-09-10 15:20:48 -03:00
1997-04-29 18:49:50 -03:00
case $MACHDEP in
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
2002-06-11 03:22:31 -03:00
atheos*) MACHDEP="atheos";;
irix646) MACHDEP="irix6";;
'') MACHDEP="unknown";;
1996-07-30 15:09:35 -03:00
esac
fi
# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
# disable features if it is defined, without any means to access these
# features as extensions. For these systems, we skip the definition of
# _XOPEN_SOURCE. Before adding a system to the list to gain access to
# some feature, make sure there is no alternative way to access this
# feature. Also, when using wildcards, make sure you have verified the
# need for not defining _XOPEN_SOURCE on all systems matching the
# wildcard, and that the wildcard does not include future systems
# (which may remove their limitations).
case $ac_sys_system/$ac_sys_release in
# On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
# even though select is a POSIX function. Reported by J. Ribbens.
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2008-09-07 02:15:58 -03:00
OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
define_xopen_source=no
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
# also defined. This can be overridden by defining _BSD_SOURCE
# As this has a different meaning on Linux, only define it on OpenBSD
cat >>confdefs.h <<\_ACEOF
#define _BSD_SOURCE 1
_ACEOF
;;
# Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
# _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
# Marc Recht
2008-11-16 13:54:55 -04:00
NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
define_xopen_source=no;;
# On Solaris 2.6, sys/wait.h is inconsistent in the usage
# of union __?sigval. Reported by Stuart Bishop.
SunOS/5.6)
define_xopen_source=no;;
# On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
# but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
# Reconfirmed for 7.1.4 by Martin v. Loewis.
OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
define_xopen_source=no;;
# On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
# but used in struct sockaddr.sa_family. Reported by Tim Rice.
SCO_SV/3.2)
define_xopen_source=no;;
# On FreeBSD 4, the math functions C89 does not cover are never defined
# with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
FreeBSD/4.*)
define_xopen_source=no;;
# On MacOS X 10.2, a bug in ncurses.h means that it craps out if
# _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
# identifies itself as Darwin/7.*
# On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
# disables platform specific features beyond repair.
# On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
# has no effect, don't bother defining them
Darwin/[6789].*)
define_xopen_source=no;;
# On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
# used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
# or has another value. By not (re)defining it, the defaults come in place.
AIX/4)
define_xopen_source=no;;
AIX/5)
if test `uname -r` -eq 1; then
define_xopen_source=no
fi
;;
2008-05-23 12:06:50 -03:00
# On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
# defining NI_NUMERICHOST.
QNX/6.3.2)
define_xopen_source=no
;;
esac
if test $define_xopen_source = yes
then
# On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
# defined precisely as g++ defines it
# Furthermore, on Solaris 10, XPG6 requires the use of a C99
# compiler
case $ac_sys_system/$ac_sys_release in
SunOS/5.8|SunOS/5.9|SunOS/5.10)
cat >>confdefs.h <<\_ACEOF
#define _XOPEN_SOURCE 500
_ACEOF
;;
*)
cat >>confdefs.h <<\_ACEOF
#define _XOPEN_SOURCE 600
_ACEOF
;;
esac
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
# definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
# several APIs are not declared. Since this is also needed in some
# cases for HP-UX, we define it globally.
# except for Solaris 10, where it must not be defined,
# as it implies XPG4.2
case $ac_sys_system/$ac_sys_release in
SunOS/5.10)
;;
*)
cat >>confdefs.h <<\_ACEOF
#define _XOPEN_SOURCE_EXTENDED 1
_ACEOF
;;
esac
cat >>confdefs.h <<\_ACEOF
#define _POSIX_C_SOURCE 200112L
_ACEOF
fi
#
# SGI compilers allow the specification of the both the ABI and the
# ISA on the command line. Depending on the values of these switches,
# different and often incompatable code will be generated.
#
# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
# thus supply support for various ABI/ISA combinations. The MACHDEP
# variable is also adjusted.
#
if test ! -z "$SGI_ABI"
then
CC="cc $SGI_ABI"
LDFLAGS="$SGI_ABI $LDFLAGS"
MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $MACHDEP" >&5
$as_echo "$MACHDEP" >&6; }
1996-07-30 15:09:35 -03:00
# And add extra plat-mac for darwin
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
$as_echo_n "checking EXTRAPLATDIR... " >&6; }
if test -z "$EXTRAPLATDIR"
then
case $MACHDEP in
darwin)
EXTRAPLATDIR="\$(PLATMACDIRS)"
EXTRAMACHDEPPATH="\$(PLATMACPATH)"
;;
*)
EXTRAPLATDIR=""
EXTRAMACHDEPPATH=""
;;
esac
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
$as_echo "$EXTRAPLATDIR" >&6; }
# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
# it may influence the way we can build extensions, so distutils
# needs to check it
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
$as_echo_n "checking machine type as reported by uname -m... " >&6; }
ac_sys_machine=`uname -m`
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
$as_echo "$ac_sys_machine" >&6; }
1993-12-24 06:39:16 -04:00
# checks for alternative programs
# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
# for debug/optimization stuff. BASECFLAGS is for flags that are required
# just to get things to compile and link. Users are free to override OPT
# when running configure or make. The build should not break if they do.
# BASECFLAGS should generally not be messed with, however.
# XXX shouldn't some/most/all of this code be merged with the stuff later
# on that fiddles with OPT and BASECFLAGS?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --without-gcc" >&5
$as_echo_n "checking for --without-gcc... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-gcc was given.
1996-05-28 19:53:48 -03:00
if test "${with_gcc+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_gcc;
1994-08-01 09:15:30 -03:00
case $withval in
no) CC=${CC:-cc}
1995-01-25 20:46:29 -04:00
without_gcc=yes;;
yes) CC=gcc
without_gcc=no;;
*) CC=$withval
without_gcc=$withval;;
1994-08-01 09:15:30 -03:00
esac
1995-01-25 20:46:29 -04:00
else
2002-04-12 06:54:03 -03:00
1996-07-30 15:09:35 -03:00
case $ac_sys_system in
2001-02-15 23:37:54 -04:00
AIX*) CC=cc_r
without_gcc=;;
BeOS*)
case $BE_HOST_CPU in
ppc)
CC=mwcc
without_gcc=yes
BASECFLAGS="$BASECFLAGS -export pragma"
OPT="$OPT -O"
LDFLAGS="$LDFLAGS -nodup"
;;
x86)
CC=gcc
without_gcc=no
OPT="$OPT -O"
;;
*)
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
$as_echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
;;
esac
2001-02-15 23:37:54 -04:00
AR="\$(srcdir)/Modules/ar_beos"
RANLIB=:
;;
Monterey*)
RANLIB=:
without_gcc=;;
*) without_gcc=no;;
1995-09-13 15:59:59 -03:00
esac
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $without_gcc" >&5
$as_echo "$without_gcc" >&6; }
1995-03-09 10:10:13 -04:00
# If the user switches compilers, we can't believe the cache
if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
then
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2002-04-12 06:54:03 -03:00
(it is also a good idea to do 'make clean' before compiling)" >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cached CC is different -- throw away $cache_file
2002-04-12 06:54:03 -03:00
(it is also a good idea to do 'make clean' before compiling)" >&2;}
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_CC+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1995-03-09 10:10:13 -04:00
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
fi
if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
ac_cv_prog_ac_ct_CC="gcc"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2007-08-30 17:10:57 -03:00
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
2002-04-12 06:54:03 -03:00
else
CC="$ac_cv_prog_CC"
fi
if test -z "$CC"; then
2007-08-30 17:10:57 -03:00
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2002-04-12 06:54:03 -03:00
set dummy ${ac_tool_prefix}cc; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_CC+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2002-04-12 06:54:03 -03:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
ac_cv_prog_CC="${ac_tool_prefix}cc"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
fi
fi
2002-04-12 06:54:03 -03:00
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
fi
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_CC+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
1996-05-28 19:53:48 -03:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
ac_prog_rejected=no
2002-04-12 06:54:03 -03:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
1996-05-28 19:53:48 -03:00
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
2002-04-12 06:54:03 -03:00
if test $# != 0; then
1996-05-28 19:53:48 -03:00
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
2003-09-25 11:50:04 -03:00
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1996-05-28 19:53:48 -03:00
fi
fi
fi
fi
2002-04-12 06:54:03 -03:00
CC=$ac_cv_prog_CC
1996-05-28 19:53:48 -03:00
if test -n "$CC"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
1996-05-28 19:53:48 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1996-05-28 19:53:48 -03:00
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
2007-08-30 17:10:57 -03:00
for ac_prog in cl.exe
2002-04-12 06:54:03 -03:00
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_CC+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
1999-01-08 17:08:33 -04:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2002-04-12 06:54:03 -03:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
fi
fi
2002-04-12 06:54:03 -03:00
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1996-05-28 19:53:48 -03:00
fi
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
test -n "$CC" && break
done
fi
if test -z "$CC"; then
ac_ct_CC=$CC
2007-08-30 17:10:57 -03:00
for ac_prog in cl.exe
2002-04-12 06:54:03 -03:00
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
ac_cv_prog_ac_ct_CC="$ac_prog"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
2002-04-12 06:54:03 -03:00
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
test -n "$ac_ct_CC" && break
done
2007-08-30 17:10:57 -03:00
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2007-08-30 17:10:57 -03:00
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
2002-04-12 06:54:03 -03:00
fi
fi
2009-07-17 04:46:46 -03:00
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 1); exit 1; }; }; }
1999-01-08 17:08:33 -04:00
2002-04-12 06:54:03 -03:00
# Provide some information about the compiler.
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
2007-08-30 17:10:57 -03:00
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compiler --version >&5") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }
2007-08-30 17:10:57 -03:00
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compiler -v >&5") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }
2007-08-30 17:10:57 -03:00
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compiler -V >&5") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-01-08 17:08:33 -04:00
2002-04-12 06:54:03 -03:00
int
main ()
{
;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
2009-07-17 04:46:46 -03:00
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2002-04-12 06:54:03 -03:00
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2007-08-30 17:10:57 -03:00
ac_rmfiles=
for ac_file in $ac_files
do
case $ac_file in
2009-07-17 04:46:46 -03:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2007-08-30 17:10:57 -03:00
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
esac
done
rm -f $ac_rmfiles
if { (ac_try="$ac_link_default"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link_default") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; then
2007-08-30 17:10:57 -03:00
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile. We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
2003-09-25 11:50:04 -03:00
do
test -f "$ac_file" || continue
2002-04-12 06:54:03 -03:00
case $ac_file in
2009-07-17 04:46:46 -03:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
;;
2003-09-25 11:50:04 -03:00
[ab].out )
# We found the default executable, but exeext='' is most
# certainly right.
break;;
2003-09-25 11:50:04 -03:00
*.* )
2007-08-30 17:10:57 -03:00
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
then :; else
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
fi
# We set ac_cv_exeext here because the later test for it is not
# safe: cross compilers may not add the suffix if given an `-o'
# argument, so we may need to know it at that point already.
# Even if this section looks crufty: it has the advantage of
# actually working.
break;;
2003-09-25 11:50:04 -03:00
* )
break;;
2002-04-12 06:54:03 -03:00
esac
done
2007-08-30 17:10:57 -03:00
test "$ac_cv_exeext" = no && ac_cv_exeext=
2002-04-12 06:54:03 -03:00
else
2007-08-30 17:10:57 -03:00
ac_file=''
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
2007-08-30 17:10:57 -03:00
if test -z "$ac_file"; then
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: C compiler cannot create executables
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2002-04-12 06:54:03 -03:00
fi
ac_exeext=$ac_cv_exeext
2007-08-30 17:10:57 -03:00
# Check that the compiler produces executables we can run. If not, either
2002-04-12 06:54:03 -03:00
# the compiler is broken, or we cross compile.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
2002-04-12 06:54:03 -03:00
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
if { ac_try='./$ac_file'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
cross_compiling=no
else
2002-04-12 06:54:03 -03:00
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2003-09-25 11:50:04 -03:00
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot run C compiled programs.
2003-09-25 11:50:04 -03:00
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 1); exit 1; }; }; }
2002-04-12 06:54:03 -03:00
fi
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2002-04-12 06:54:03 -03:00
ac_clean_files=$ac_clean_files_save
2007-08-30 17:10:57 -03:00
# Check that the compiler produces executables we can run. If not, either
2002-04-12 06:54:03 -03:00
# the compiler is broken, or we cross compile.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; then
# If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
2003-09-25 11:50:04 -03:00
for ac_file in conftest.exe conftest conftest.*; do
test -f "$ac_file" || continue
2002-04-12 06:54:03 -03:00
case $ac_file in
2009-07-17 04:46:46 -03:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2002-04-12 06:54:03 -03:00
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
break;;
2002-04-12 06:54:03 -03:00
* ) break;;
esac
done
else
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 1); exit 1; }; }; }
fi
2002-04-12 06:54:03 -03:00
rm -f conftest$ac_cv_exeext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }
2002-04-12 06:54:03 -03:00
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_objext+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; then
2007-08-30 17:10:57 -03:00
for ac_file in conftest.o conftest.obj conftest.*; do
test -f "$ac_file" || continue;
2002-04-12 06:54:03 -03:00
case $ac_file in
2009-07-17 04:46:46 -03:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2002-04-12 06:54:03 -03:00
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;;
esac
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 1); exit 1; }; }; }
fi
2002-04-12 06:54:03 -03:00
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
2002-04-12 06:54:03 -03:00
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
int
main ()
{
#ifndef __GNUC__
choke me
#endif
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_compiler_gnu=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_compiler_gnu=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
GCC=yes
else
GCC=
fi
2002-04-12 06:54:03 -03:00
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_cc_g+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
2007-08-30 17:10:57 -03:00
ac_save_c_werror_flag=$ac_c_werror_flag
ac_c_werror_flag=yes
ac_cv_prog_cc_g=no
CFLAGS="-g"
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-01-08 17:08:33 -04:00
2002-04-12 06:54:03 -03:00
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_prog_cc_g=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2007-08-30 17:10:57 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
CFLAGS=""
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
2007-08-30 17:10:57 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2007-08-30 17:10:57 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
ac_c_werror_flag=$ac_save_c_werror_flag
CFLAGS="-g"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2007-08-30 17:10:57 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_prog_cc_g=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993-12-24 06:39:16 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_c_werror_flag=$ac_save_c_werror_flag
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
1999-01-08 17:08:33 -04:00
if test "$ac_test_CFLAGS" = set; then
2002-04-12 06:54:03 -03:00
CFLAGS=$ac_save_CFLAGS
1999-01-08 17:08:33 -04:00
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
1999-01-08 17:08:33 -04:00
CFLAGS="-g"
fi
else
1999-01-08 17:08:33 -04:00
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2007-08-30 17:10:57 -03:00
if test "${ac_cv_prog_cc_c89+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2003-09-25 11:50:04 -03:00
else
2007-08-30 17:10:57 -03:00
ac_cv_prog_cc_c89=no
2003-09-25 11:50:04 -03:00
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
{
return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
}
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
function prototypes and stuff, but not '\xHH' hex character constants.
These don't provoke an error unfortunately, instead are silently treated
2007-08-30 17:10:57 -03:00
as 'x'. The following induces an error, until -std is added to get
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
array size at least. It's necessary to write '\x00'==0 to get something
2007-08-30 17:10:57 -03:00
that's true only with -std. */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2007-08-30 17:10:57 -03:00
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
inside strings and character constants. */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2003-09-25 11:50:04 -03:00
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
;
return 0;
}
_ACEOF
2007-08-30 17:10:57 -03:00
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2003-09-25 11:50:04 -03:00
do
CC="$ac_save_CC $ac_arg"
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2003-09-25 11:50:04 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_prog_cc_c89=$ac_arg
2003-09-25 11:50:04 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
2003-09-25 11:50:04 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext
test "x$ac_cv_prog_cc_c89" != "xno" && break
2003-09-25 11:50:04 -03:00
done
2007-08-30 17:10:57 -03:00
rm -f conftest.$ac_ext
2003-09-25 11:50:04 -03:00
CC=$ac_save_CC
fi
2007-08-30 17:10:57 -03:00
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
x)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
2007-08-30 17:10:57 -03:00
xno)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
2003-09-25 11:50:04 -03:00
*)
2007-08-30 17:10:57 -03:00
CC="$CC $ac_cv_prog_cc_c89"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2003-09-25 11:50:04 -03:00
esac
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
2007-08-30 17:10:57 -03:00
# Check whether --with-cxx_main was given.
if test "${with_cxx_main+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_cxx_main;
case $withval in
no) with_cxx_main=no
MAINCC='$(CC)';;
yes) with_cxx_main=yes
MAINCC='$(CXX)';;
*) with_cxx_main=yes
MAINCC=$withval
if test -z "$CXX"
then
CXX=$withval
fi;;
esac
else
with_cxx_main=no
MAINCC='$(CC)'
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5
$as_echo "$with_cxx_main" >&6; }
preset_cxx="$CXX"
if test -z "$CXX"
then
case "$CC" in
gcc) # Extract the first word of "g++", so it can be a program name with args.
set dummy g++; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CXX+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
case $CXX in
[\\/]* | ?:[\\/]*)
ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in notfound
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
;;
esac
fi
CXX=$ac_cv_path_CXX
if test -n "$CXX"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
;;
cc) # Extract the first word of "c++", so it can be a program name with args.
set dummy c++; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CXX+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
case $CXX in
[\\/]* | ?:[\\/]*)
ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in notfound
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
;;
esac
fi
CXX=$ac_cv_path_CXX
if test -n "$CXX"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
;;
esac
if test "$CXX" = "notfound"
then
CXX=""
fi
fi
if test -z "$CXX"
then
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test -n "$CXX"; then
ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CXX="$ac_prog"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
test -n "$CXX" && break
done
test -n "$CXX" || CXX="notfound"
if test "$CXX" = "notfound"
then
CXX=""
fi
fi
if test "$preset_cxx" != "$CXX"
then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING:
By default, distutils will build C++ extension modules with \"$CXX\".
If this is not intended, then set CXX on the configure command line.
" >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: WARNING:
By default, distutils will build C++ extension modules with \"$CXX\".
If this is not intended, then set CXX on the configure command line.
" >&2;}
fi
# checks for UNIX variants that set C preprocessor variables
2002-04-12 06:54:03 -03:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_CPP+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
# Double quotes because CPP needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
do
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
2003-09-25 11:50:04 -03:00
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
2002-04-12 06:54:03 -03:00
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
2002-04-12 06:54:03 -03:00
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-12 06:54:03 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
:
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
# Broken: fails on valid input.
continue
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
rm -f conftest.err conftest.$ac_ext
2007-08-30 17:10:57 -03:00
# OK, works on sane cases. Now check whether nonexistent headers
2002-04-12 06:54:03 -03:00
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <ac_nonexistent.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-12 06:54:03 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-04-12 06:54:03 -03:00
# Broken: success on invalid input.
continue
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
# Passes both tests.
ac_preproc_ok=:
break
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
break
fi
done
ac_cv_prog_CPP=$CPP
fi
CPP=$ac_cv_prog_CPP
else
ac_cv_prog_CPP=$CPP
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
$as_echo "$CPP" >&6; }
2002-04-12 06:54:03 -03:00
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
2003-09-25 11:50:04 -03:00
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
2002-04-12 06:54:03 -03:00
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
2002-04-12 06:54:03 -03:00
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-12 06:54:03 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
:
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
# Broken: fails on valid input.
continue
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
rm -f conftest.err conftest.$ac_ext
2007-08-30 17:10:57 -03:00
# OK, works on sane cases. Now check whether nonexistent headers
2002-04-12 06:54:03 -03:00
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <ac_nonexistent.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-12 06:54:03 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-04-12 06:54:03 -03:00
# Broken: success on invalid input.
continue
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
# Passes both tests.
ac_preproc_ok=:
break
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
:
else
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 1); exit 1; }; }; }
fi
2002-04-12 06:54:03 -03:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
if test -z "$GREP"; then
2007-08-30 17:10:57 -03:00
ac_path_GREP_found=false
2009-07-17 04:46:46 -03:00
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007-08-30 17:10:57 -03:00
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in grep ggrep; do
2009-07-17 04:46:46 -03:00
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
2007-08-30 17:10:57 -03:00
# Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
ac_count=0
2009-07-17 04:46:46 -03:00
$as_echo_n 0123456789 >"conftest.in"
2007-08-30 17:10:57 -03:00
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
2009-07-17 04:46:46 -03:00
$as_echo 'GREP' >> "conftest.nl"
2007-08-30 17:10:57 -03:00
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
if test $ac_count -gt ${ac_path_GREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_GREP="$ac_path_GREP"
ac_path_GREP_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
2009-07-17 04:46:46 -03:00
$ac_path_GREP_found && break 3
done
2007-08-30 17:10:57 -03:00
done
done
IFS=$as_save_IFS
2009-07-17 04:46:46 -03:00
if test -z "$ac_cv_path_GREP"; then
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }; }
2009-07-17 04:46:46 -03:00
fi
2007-08-30 17:10:57 -03:00
else
ac_cv_path_GREP=$GREP
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
2007-08-30 17:10:57 -03:00
GREP="$ac_cv_path_GREP"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
2007-08-30 17:10:57 -03:00
if test "${ac_cv_path_EGREP+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2007-08-30 17:10:57 -03:00
else
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
then ac_cv_path_EGREP="$GREP -E"
else
2009-07-17 04:46:46 -03:00
if test -z "$EGREP"; then
2007-08-30 17:10:57 -03:00
ac_path_EGREP_found=false
2009-07-17 04:46:46 -03:00
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007-08-30 17:10:57 -03:00
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in egrep; do
2009-07-17 04:46:46 -03:00
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
2007-08-30 17:10:57 -03:00
# Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
ac_count=0
2009-07-17 04:46:46 -03:00
$as_echo_n 0123456789 >"conftest.in"
2007-08-30 17:10:57 -03:00
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
2009-07-17 04:46:46 -03:00
$as_echo 'EGREP' >> "conftest.nl"
2007-08-30 17:10:57 -03:00
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
# Best one so far, save it but keep looking for a better one
ac_cv_path_EGREP="$ac_path_EGREP"
ac_path_EGREP_max=$ac_count
2003-09-25 11:50:04 -03:00
fi
2007-08-30 17:10:57 -03:00
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
done
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac
2009-07-17 04:46:46 -03:00
$ac_path_EGREP_found && break 3
done
2007-08-30 17:10:57 -03:00
done
done
IFS=$as_save_IFS
2009-07-17 04:46:46 -03:00
if test -z "$ac_cv_path_EGREP"; then
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
{ (exit 1); exit 1; }; }
2009-07-17 04:46:46 -03:00
fi
else
ac_cv_path_EGREP=$EGREP
fi
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
EGREP="$ac_cv_path_EGREP"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
2009-07-17 04:46:46 -03:00
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_header_stdc=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <string.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2009-07-17 04:46:46 -03:00
$EGREP "memchr" >/dev/null 2>&1; then
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
2009-07-17 04:46:46 -03:00
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
2009-07-17 04:46:46 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "free" >/dev/null 2>&1; then
:
else
2009-07-17 04:46:46 -03:00
ac_cv_header_stdc=no
fi
rm -f conftest*
2009-07-17 04:46:46 -03:00
fi
2009-07-17 04:46:46 -03:00
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
2009-07-17 04:46:46 -03:00
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
return 2;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2003-09-25 11:50:04 -03:00
2009-07-17 04:46:46 -03:00
( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2003-09-25 11:50:04 -03:00
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
inttypes.h stdint.h unistd.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
eval "$as_ac_Header=yes"
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
if test "${ac_cv_header_minix_config_h+set}" = set; then
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
$as_echo_n "checking for minix/config.h... " >&6; }
if test "${ac_cv_header_minix_config_h+set}" = set; then
$as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
$as_echo "$ac_cv_header_minix_config_h" >&6; }
else
# Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
$as_echo_n "checking minix/config.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <minix/config.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
# Is the header present?
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
$as_echo_n "checking minix/config.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <minix/config.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
ac_header_preproc=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
_ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;;
esac
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
$as_echo_n "checking for minix/config.h... " >&6; }
if test "${ac_cv_header_minix_config_h+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_header_minix_config_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
$as_echo "$ac_cv_header_minix_config_h" >&6; }
fi
if test "x$ac_cv_header_minix_config_h" = x""yes; then
MINIX=yes
else
MINIX=
fi
if test "$MINIX" = yes; then
cat >>confdefs.h <<\_ACEOF
#define _POSIX_SOURCE 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _POSIX_1_SOURCE 2
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _MINIX 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
# define __EXTENSIONS__ 1
$ac_includes_default
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_safe_to_define___extensions__=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
test $ac_cv_safe_to_define___extensions__ = yes &&
cat >>confdefs.h <<\_ACEOF
#define __EXTENSIONS__ 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _ALL_SOURCE 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _POSIX_PTHREAD_SEMANTICS 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _TANDEM_SOURCE 1
_ACEOF
# Check for unsupported systems
case $ac_sys_system/$ac_sys_release in
atheos*|Linux*/1*)
echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
echo See README for details.
exit 1;;
esac
{ $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5
$as_echo_n "checking for --with-suffix... " >&6; }
# Check whether --with-suffix was given.
if test "${with_suffix+set}" = set; then
withval=$with_suffix;
case $withval in
no) EXEEXT=;;
yes) EXEEXT=.exe;;
*) EXEEXT=$withval;;
esac
fi
{ $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5
$as_echo "$EXEEXT" >&6; }
# Test whether we're running on a non-case-sensitive system, in which
# case we give a warning if no ext is given
{ $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
$as_echo_n "checking for case-insensitive build directory... " >&6; }
if test ! -d CaseSensitiveTestDir; then
mkdir CaseSensitiveTestDir
fi
if test -d casesensitivetestdir
then
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
BUILDEXEEXT=.exe
else
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
BUILDEXEEXT=$EXEEXT
fi
rmdir CaseSensitiveTestDir
case $MACHDEP in
bsdos*)
case $CC in
gcc) CC="$CC -D_HAVE_BSDI";;
esac;;
esac
case $ac_sys_system in
hp*|HP*)
case $CC in
cc|*/cc) CC="$CC -Ae";;
esac;;
Monterey*)
case $CC in
cc) CC="$CC -Wl,-Bexport";;
esac;;
SunOS*)
# Some functions have a prototype only with that define, e.g. confstr
cat >>confdefs.h <<\_ACEOF
#define __EXTENSIONS__ 1
_ACEOF
;;
esac
{ $as_echo "$as_me:$LINENO: checking LIBRARY" >&5
$as_echo_n "checking LIBRARY... " >&6; }
if test -z "$LIBRARY"
then
LIBRARY='libpython$(VERSION).a'
fi
{ $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5
$as_echo "$LIBRARY" >&6; }
2002-04-12 06:54:03 -03:00
# LDLIBRARY is the name of the library to link against (as opposed to the
# name of the library into which to insert object files). BLDLIBRARY is also
# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
# is blank as the main program is not linked directly against LDLIBRARY.
# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
# systems without shared libraries, LDLIBRARY is the same as LIBRARY
# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
# DLLLIBRARY is the shared (i.e., DLL) library.
#
# RUNSHARED is used to run shared python without installed libraries
#
# INSTSONAME is the name of the shared library that will be use to install
# on the system - some systems like version suffix, others don't
2002-04-12 06:54:03 -03:00
LDLIBRARY="$LIBRARY"
BLDLIBRARY='$(LDLIBRARY)'
INSTSONAME='$(LDLIBRARY)'
DLLLIBRARY=''
LDLIBRARYDIR=''
RUNSHARED=''
1997-08-14 16:45:07 -03:00
# LINKCC is the command that links the python executable -- default is $(CC).
# If CXX is set, and if it is needed to link a main function that was
# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
# python might then depend on the C++ runtime
2002-04-12 06:54:03 -03:00
# This is altered for AIX in order to build the export list before
# linking.
1997-08-14 16:45:07 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking LINKCC" >&5
$as_echo_n "checking LINKCC... " >&6; }
1997-08-14 16:45:07 -03:00
if test -z "$LINKCC"
then
LINKCC='$(PURIFY) $(MAINCC)'
1997-08-14 16:45:07 -03:00
case $ac_sys_system in
AIX*)
exp_extra="\"\""
if test $ac_sys_release -ge 5 -o \
$ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
exp_extra="."
fi
LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
Monterey64*)
LINKCC="$LINKCC -L/usr/lib/ia64l64";;
2008-05-23 12:06:50 -03:00
QNX*)
# qcc must be used because the other compilers do not
# support -N.
LINKCC=qcc;;
1997-08-14 16:45:07 -03:00
esac
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $LINKCC" >&5
$as_echo "$LINKCC" >&6; }
1997-08-14 16:45:07 -03:00
# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
# make sure we default having it set to "no": this is used by
# distutils.unixccompiler to know if it should add --enable-new-dtags
# to linker command lines, and failing to detect GNU ld simply results
# in the same bahaviour as before.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
ac_prog=ld
if test "$GCC" = yes; then
ac_prog=`$CC -print-prog-name=ld`
fi
case `"$ac_prog" -V 2>&1 < /dev/null` in
*GNU*)
GNULD=yes;;
*)
GNULD=no;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $GNULD" >&5
$as_echo "$GNULD" >&6; }
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5
$as_echo_n "checking for --enable-shared... " >&6; }
2007-08-30 17:10:57 -03:00
# Check whether --enable-shared was given.
if test "${enable_shared+set}" = set; then
2007-08-30 17:10:57 -03:00
enableval=$enable_shared;
fi
if test -z "$enable_shared"
2002-04-12 06:54:03 -03:00
then
case $ac_sys_system in
2002-06-11 03:22:31 -03:00
CYGWIN* | atheos*)
enable_shared="yes";;
*)
enable_shared="no";;
esac
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5
$as_echo_n "checking for --enable-profiling... " >&6; }
2007-08-30 17:10:57 -03:00
# Check whether --enable-profiling was given.
if test "${enable_profiling+set}" = set; then
2007-08-30 17:10:57 -03:00
enableval=$enable_profiling; ac_save_cc="$CC"
CC="$CC -pg"
if test "$cross_compiling" = yes; then
ac_enable_profiling="no"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_enable_profiling="yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_enable_profiling="no"
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
CC="$ac_save_cc"
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
$as_echo "$ac_enable_profiling" >&6; }
case "$ac_enable_profiling" in
"yes")
BASECFLAGS="-pg $BASECFLAGS"
LDFLAGS="-pg $LDFLAGS"
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5
$as_echo_n "checking LDLIBRARY... " >&6; }
2001-08-14 22:27:14 -03:00
# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
# library that we build, but we do not want to link against it (we
# will find it with a -framework option). For this reason there is an
# extra variable BLDLIBRARY against which Python and the extension
# modules are linked, BLDLIBRARY. This is normally the same as
# LDLIBRARY, but empty for MacOSX framework builds.
2001-08-14 22:27:14 -03:00
if test "$enable_framework"
then
LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
2001-08-14 22:27:14 -03:00
BLDLIBRARY=''
else
BLDLIBRARY='$(LDLIBRARY)'
2002-04-12 06:54:03 -03:00
fi
2001-08-14 22:27:14 -03:00
# Other platforms follow
if test $enable_shared = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define Py_ENABLE_SHARED 1
_ACEOF
case $ac_sys_system in
BeOS*)
LDLIBRARY='libpython$(VERSION).so'
;;
CYGWIN*)
LDLIBRARY='libpython$(VERSION).dll.a'
DLLLIBRARY='libpython$(VERSION).dll'
;;
SunOS*)
LDLIBRARY='libpython$(VERSION).so'
BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
LDLIBRARY='libpython$(VERSION).so'
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
case $ac_sys_system in
FreeBSD*)
SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
;;
esac
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
hp*|HP*)
case `uname -m` in
ia64)
LDLIBRARY='libpython$(VERSION).so'
;;
*)
LDLIBRARY='libpython$(VERSION).sl'
;;
esac
BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
;;
OSF*)
LDLIBRARY='libpython$(VERSION).so'
BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
;;
2002-06-11 03:22:31 -03:00
atheos*)
LDLIBRARY='libpython$(VERSION).so'
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
;;
Darwin*)
LDLIBRARY='libpython$(VERSION).dylib'
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
;;
esac
else # shared is disabled
case $ac_sys_system in
CYGWIN*)
BLDLIBRARY='$(LIBRARY)'
LDLIBRARY='libpython$(VERSION).dll.a'
;;
esac
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
$as_echo "$LDLIBRARY" >&6; }
2002-04-12 06:54:03 -03:00
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_RANLIB+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
2002-04-12 06:54:03 -03:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
fi
fi
2002-04-12 06:54:03 -03:00
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
fi
if test -z "$ac_cv_prog_RANLIB"; then
ac_ct_RANLIB=$RANLIB
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test -n "$ac_ct_RANLIB"; then
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
2002-04-12 06:54:03 -03:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
ac_cv_prog_ac_ct_RANLIB="ranlib"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
if test "x$ac_ct_RANLIB" = x; then
RANLIB=":"
else
case $cross_compiling:$ac_tool_warned in
yes:)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2007-08-30 17:10:57 -03:00
ac_tool_warned=yes ;;
esac
RANLIB=$ac_ct_RANLIB
fi
2002-04-12 06:54:03 -03:00
else
RANLIB="$ac_cv_prog_RANLIB"
1993-12-24 06:39:16 -04:00
fi
1994-08-01 09:15:30 -03:00
for ac_prog in ar aal
do
2002-04-12 06:54:03 -03:00
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_prog_AR+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test -n "$AR"; then
ac_cv_prog_AR="$AR" # Let the user override the test.
else
2002-04-12 06:54:03 -03:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002-04-12 06:54:03 -03:00
ac_cv_prog_AR="$ac_prog"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002-04-12 06:54:03 -03:00
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
fi
fi
2002-04-12 06:54:03 -03:00
AR=$ac_cv_prog_AR
if test -n "$AR"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
$as_echo "$AR" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
1994-08-01 09:15:30 -03:00
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
test -n "$AR" && break
1994-08-01 09:15:30 -03:00
done
test -n "$AR" || AR="ar"
# tweak ARFLAGS only if the user didn't set it on the command line
if test -z "$ARFLAGS"
then
ARFLAGS="rc"
fi
# Extract the first word of "svnversion", so it can be a program name with args.
set dummy svnversion; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_SVNVERSION+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test -n "$SVNVERSION"; then
ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_SVNVERSION="found"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
fi
fi
SVNVERSION=$ac_cv_prog_SVNVERSION
if test -n "$SVNVERSION"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5
$as_echo "$SVNVERSION" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
if test $SVNVERSION = found
then
SVNVERSION="svnversion \$(srcdir)"
else
SVNVERSION="echo Unversioned directory"
fi
case $MACHDEP in
bsdos*|hp*|HP*)
# install -d does not work on BSDI or HP-UX
if test -z "$INSTALL"
then
INSTALL="${srcdir}/install-sh -c"
fi
esac
2001-01-24 13:25:28 -04:00
ac_aux_dir=
2007-08-30 17:10:57 -03:00
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
2001-01-24 13:25:28 -04:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
2007-08-30 17:10:57 -03:00
elif test -f "$ac_dir/install.sh"; then
2001-01-24 13:25:28 -04:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
2007-08-30 17:10:57 -03:00
elif test -f "$ac_dir/shtool"; then
2002-04-12 06:54:03 -03:00
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
2001-01-24 13:25:28 -04:00
fi
done
if test -z "$ac_aux_dir"; then
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
2001-01-24 13:25:28 -04:00
fi
2007-08-30 17:10:57 -03:00
# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2001-01-24 13:25:28 -04:00
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
2002-04-12 06:54:03 -03:00
# AmigaOS /C/install, which installs bootblocks on floppy discs
2001-01-24 13:25:28 -04:00
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
2001-01-24 13:25:28 -04:00
# ./install, which can be erroneously created by make from ./install.sh.
2009-07-17 04:46:46 -03:00
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2001-01-24 13:25:28 -04:00
if test -z "$INSTALL"; then
2002-04-12 06:54:03 -03:00
if test "${ac_cv_path_install+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
# Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
./ | .// | /cC/* | \
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002-04-12 06:54:03 -03:00
/usr/ucb/* ) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
# Don't use installbsd from OSF since it installs stuff as root
# by default.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
if test $ac_prog = install &&
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
:
elif test $ac_prog = install &&
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# program-specific install script used by HP pwplus--don't use.
:
else
2009-07-17 04:46:46 -03:00
rm -rf conftest.one conftest.two conftest.dir
echo one > conftest.one
echo two > conftest.two
mkdir conftest.dir
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
test -s conftest.one && test -s conftest.two &&
test -s conftest.dir/conftest.one &&
test -s conftest.dir/conftest.two
then
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
break 3
fi
fi
fi
2001-01-24 13:25:28 -04:00
done
2002-04-12 06:54:03 -03:00
done
;;
esac
2009-07-17 04:46:46 -03:00
2002-04-12 06:54:03 -03:00
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.one conftest.two conftest.dir
2001-01-24 13:25:28 -04:00
fi
if test "${ac_cv_path_install+set}" = set; then
2002-04-12 06:54:03 -03:00
INSTALL=$ac_cv_path_install
2001-01-24 13:25:28 -04:00
else
2007-08-30 17:10:57 -03:00
# As a last resort, use the slow shell script. Don't cache a
# value for INSTALL within a source directory, because that will
2001-01-24 13:25:28 -04:00
# break other packages using the cache if that directory is
2007-08-30 17:10:57 -03:00
# removed, or if the value is a relative name.
2002-04-12 06:54:03 -03:00
INSTALL=$ac_install_sh
2001-01-24 13:25:28 -04:00
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }
1994-08-01 09:15:30 -03:00
2001-01-24 13:25:28 -04:00
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1995-01-25 20:46:29 -04:00
2002-04-12 06:54:03 -03:00
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2001-01-24 13:25:28 -04:00
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1995-01-25 20:46:29 -04:00
# Not every filesystem supports hard links
if test -z "$LN" ; then
case $ac_sys_system in
BeOS*) LN="ln -s";;
CYGWIN*) LN="ln -s";;
2002-06-11 03:22:31 -03:00
atheos*) LN="ln -s";;
*) LN=ln;;
esac
fi
2001-07-11 03:27:56 -03:00
# Check for --with-pydebug
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5
$as_echo_n "checking for --with-pydebug... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-pydebug was given.
2001-07-11 03:27:56 -03:00
if test "${with_pydebug+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_pydebug;
2001-07-11 03:27:56 -03:00
if test "$withval" != no
2002-04-12 06:54:03 -03:00
then
cat >>confdefs.h <<\_ACEOF
2001-07-11 03:27:56 -03:00
#define Py_DEBUG 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; };
Py_DEBUG='true'
2009-07-17 04:46:46 -03:00
else { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }; Py_DEBUG='false'
2001-07-11 03:27:56 -03:00
fi
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2007-08-30 17:10:57 -03:00
fi
2001-07-11 03:27:56 -03:00
# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
# merged with this chunk of code?
2001-01-24 13:25:28 -04:00
# Optimizer/debugger flags
# ------------------------
# (The following bit of code is complicated enough - please keep things
# indented properly. Just pretend you're editing Python code. ;-)
# There are two parallel sets of case statements below, one that checks to
# see if OPT was set and one that does BASECFLAGS setting based upon
# compiler and platform. BASECFLAGS tweaks need to be made even if the
# user set OPT.
# tweak OPT based on compiler and platform, only if the user didn't set
# it on the command line
1996-07-30 15:09:35 -03:00
1994-08-19 12:34:50 -03:00
if test -z "$OPT"
1996-07-30 15:09:35 -03:00
then
case $GCC in
yes)
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
2007-12-13 17:20:29 -04:00
# For gcc 4.x we need to use -fwrapv so lets check if its supported
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
WRAP="-fwrapv"
fi
case $ac_cv_prog_cc_g in
yes)
2001-07-11 03:27:56 -03:00
if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for
# debug builds.
OPT="-g -Wall $STRICT_PROTO"
2001-07-11 03:27:56 -03:00
else
2007-12-13 17:20:29 -04:00
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
fi
;;
*)
OPT="-O3 -Wall $STRICT_PROTO"
;;
2001-07-11 03:27:56 -03:00
esac
case $ac_sys_system in
SCO_SV*) OPT="$OPT -m486 -DSCO5"
;;
esac
2001-07-11 03:27:56 -03:00
;;
*)
OPT="-O"
;;
esac
# The current (beta) Monterey compiler dies with optimizations
# XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
case $ac_sys_system in
Monterey*)
OPT=""
;;
esac
1994-08-19 12:34:50 -03:00
fi
2009-07-17 04:46:46 -03:00
# The -arch flags for universal builds on OSX
UNIVERSAL_ARCH_FLAGS=
# tweak BASECFLAGS based on compiler and platform
case $GCC in
yes)
# Python violates C99 rules, by casting between incompatible
# pointer types. GCC may generate bad code as a result of that,
# so use -fno-strict-aliasing if supported.
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
ac_save_cc="$CC"
CC="$CC -fno-strict-aliasing"
if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_no_strict_aliasing_ok=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_no_strict_aliasing_ok=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_no_strict_aliasing_ok=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
CC="$ac_save_cc"
{ $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
if test $ac_cv_no_strict_aliasing_ok = yes
then
BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
fi
# if using gcc on alpha, use -mieee to get (near) full IEEE 754
# support. Without this, treatment of subnormals doesn't follow
# the standard.
case $ac_sys_machine in
alpha*)
BASECFLAGS="$BASECFLAGS -mieee"
;;
esac
case $ac_sys_system in
SCO_SV*)
BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
;;
# is there any other compiler on Darwin besides gcc?
Darwin*)
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
# used to be here, but non-Apple gcc doesn't accept them.
if test "${enable_universalsdk}"; then
UNIVERSAL_ARCH_FLAGS=""
if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
ARCH_RUN_32BIT=""
elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
elif test "$UNIVERSAL_ARCHS" = "all" ; then
UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
ARCH_RUN_32BIT="arch -i386 -ppc"
else
{ { $as_echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
$as_echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
{ (exit 1); exit 1; }; }
fi
BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
fi
fi
# Calculate the right deployment target for this build.
#
cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
if test ${cur_target} '>' 10.2; then
cur_target=10.3
fi
if test "${UNIVERSAL_ARCHS}" = "all"; then
# Ensure that the default platform for a 4-way
# universal build is OSX 10.5, that's the first
# OS release where 4-way builds make sense.
cur_target='10.5'
fi
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
# Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
# environment with a value that is the same as what we'll use
# in the Makefile to ensure that we'll get the same compiler
# environment during configure and build time.
MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
export MACOSX_DEPLOYMENT_TARGET
EXPORT_MACOSX_DEPLOYMENT_TARGET=''
;;
OSF*)
BASECFLAGS="$BASECFLAGS -mieee"
;;
esac
;;
*)
case $ac_sys_system in
OpenUNIX*|UnixWare*)
BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
;;
OSF*)
BASECFLAGS="$BASECFLAGS -ieee -std"
;;
SCO_SV*)
BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
;;
esac
;;
esac
if test "$Py_DEBUG" = 'true'; then
:
else
OPT="-DNDEBUG $OPT"
fi
if test "$ac_arch_flags"
then
BASECFLAGS="$BASECFLAGS $ac_arch_flags"
fi
# disable check for icc since it seems to pass, but generates a warning
if test "$CC" = icc
then
ac_cv_opt_olimit_ok=no
fi
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
if test "${ac_cv_opt_olimit_ok+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_save_cc="$CC"
CC="$CC -OPT:Olimit=0"
if test "$cross_compiling" = yes; then
ac_cv_opt_olimit_ok=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_opt_olimit_ok=yes
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_opt_olimit_ok=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
CC="$ac_save_cc"
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
$as_echo "$ac_cv_opt_olimit_ok" >&6; }
if test $ac_cv_opt_olimit_ok = yes; then
case $ac_sys_system in
# XXX is this branch needed? On MacOSX 10.2.2 the result of the
# olimit_ok test is "no". Is it "yes" in some other Darwin-esque
# environment?
Darwin*)
;;
*)
BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
;;
esac
else
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
if test "${ac_cv_olimit_ok+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_save_cc="$CC"
CC="$CC -Olimit 1500"
if test "$cross_compiling" = yes; then
ac_cv_olimit_ok=no
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int main() { return 0; }
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2003-09-25 11:50:04 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003-09-25 11:50:04 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_olimit_ok=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_olimit_ok=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
CC="$ac_save_cc"
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
$as_echo "$ac_cv_olimit_ok" >&6; }
if test $ac_cv_olimit_ok = yes; then
BASECFLAGS="$BASECFLAGS -Olimit 1500"
fi
fi
2009-07-17 04:46:46 -03:00
# Check whether GCC supports PyArg_ParseTuple format
if test "$GCC" = "yes"
then
{ $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2008-07-17 12:59:24 -03:00
2009-07-17 04:46:46 -03:00
void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
2008-07-17 12:59:24 -03:00
2009-07-17 04:46:46 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2009-07-17 04:46:46 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS=$save_CFLAGS
fi
2008-07-17 12:59:24 -03:00
2009-07-17 04:46:46 -03:00
# On some compilers, pthreads are available without further options
# (e.g. MacOS X). On some of these systems, the compiler will not
# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
# So we have to see first whether pthreads are available without
# options before we can check whether -Kpthread improves anything.
{ $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
$as_echo_n "checking whether pthreads are available without options... " >&6; }
if test "${ac_cv_pthread_is_default+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_pthread_is_default=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2008-07-17 12:59:24 -03:00
2009-07-17 04:46:46 -03:00
#include <pthread.h>
2009-07-17 04:46:46 -03:00
void* routine(void* p){return NULL;}
2009-07-17 04:46:46 -03:00
int main(){
pthread_t p;
if(pthread_create(&p,NULL,routine,NULL)!=0)
return 1;
(void)pthread_detach(p);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_pthread_is_default=yes
ac_cv_kthread=no
ac_cv_pthread=no
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_pthread_is_default=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
$as_echo "$ac_cv_pthread_is_default" >&6; }
if test $ac_cv_pthread_is_default = yes
then
ac_cv_kpthread=no
else
# -Kpthread, if available, provides the right #defines
# and linker options to make pthread_create available
# Some compilers won't report that they do not support -Kpthread,
# so we need to run a program to see whether it really made the
# function available.
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
if test "${ac_cv_kpthread+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_save_cc="$CC"
CC="$CC -Kpthread"
if test "$cross_compiling" = yes; then
ac_cv_kpthread=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <pthread.h>
void* routine(void* p){return NULL;}
int main(){
pthread_t p;
if(pthread_create(&p,NULL,routine,NULL)!=0)
return 1;
(void)pthread_detach(p);
return 0;
}
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_kpthread=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_kpthread=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
CC="$ac_save_cc"
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
$as_echo "$ac_cv_kpthread" >&6; }
fi
2009-07-17 04:46:46 -03:00
if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
then
# -Kthread, if available, provides the right #defines
# and linker options to make pthread_create available
# Some compilers won't report that they do not support -Kthread,
# so we need to run a program to see whether it really made the
# function available.
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
if test "${ac_cv_kthread+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_save_cc="$CC"
2009-07-17 04:46:46 -03:00
CC="$CC -Kthread"
if test "$cross_compiling" = yes; then
2009-07-17 04:46:46 -03:00
ac_cv_kthread=no
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <pthread.h>
void* routine(void* p){return NULL;}
int main(){
pthread_t p;
if(pthread_create(&p,NULL,routine,NULL)!=0)
return 1;
(void)pthread_detach(p);
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_kthread=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_kthread=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
CC="$ac_save_cc"
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
$as_echo "$ac_cv_kthread" >&6; }
fi
if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
then
# -pthread, if available, provides the right #defines
# and linker options to make pthread_create available
# Some compilers won't report that they do not support -pthread,
# so we need to run a program to see whether it really made the
# function available.
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
if test "${ac_cv_thread+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_save_cc="$CC"
2009-07-17 04:46:46 -03:00
CC="$CC -pthread"
if test "$cross_compiling" = yes; then
ac_cv_pthread=no
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <pthread.h>
void* routine(void* p){return NULL;}
int main(){
pthread_t p;
if(pthread_create(&p,NULL,routine,NULL)!=0)
return 1;
(void)pthread_detach(p);
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_pthread=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_pthread=no
1994-08-01 09:15:30 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
CC="$ac_save_cc"
1993-12-24 06:39:16 -04:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
$as_echo "$ac_cv_pthread" >&6; }
1993-12-24 06:39:16 -04:00
fi
2009-07-17 04:46:46 -03:00
# If we have set a CC compiler flag for thread support then
# check if it works for CXX, too.
ac_cv_cxx_thread=no
if test ! -z "$CXX"
then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
ac_save_cxx="$CXX"
if test "$ac_cv_kpthread" = "yes"
then
CXX="$CXX -Kpthread"
ac_cv_cxx_thread=yes
elif test "$ac_cv_kthread" = "yes"
then
CXX="$CXX -Kthread"
ac_cv_cxx_thread=yes
elif test "$ac_cv_pthread" = "yes"
then
CXX="$CXX -pthread"
ac_cv_cxx_thread=yes
fi
if test $ac_cv_cxx_thread = yes
then
echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
$CXX -c conftest.$ac_ext 2>&5
if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
&& test -s conftest$ac_exeext && ./conftest$ac_exeext
then
ac_cv_cxx_thread=yes
else
ac_cv_cxx_thread=no
fi
rm -fr conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
$as_echo "$ac_cv_cxx_thread" >&6; }
fi
CXX="$ac_save_cxx"
# checks for header files
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_cv_header_stdc=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_header_stdc=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <string.h>
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "memchr" >/dev/null 2>&1; then
:
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_header_stdc=no
1993-12-24 06:39:16 -04:00
fi
2009-07-17 04:46:46 -03:00
rm -f conftest*
1993-12-24 06:39:16 -04:00
fi
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "free" >/dev/null 2>&1; then
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
return 2;
2002-04-12 06:54:03 -03:00
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
:
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_header_stdc=no
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
2002-04-12 06:54:03 -03:00
1993-12-24 06:39:16 -04:00
fi
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
fcntl.h grp.h \
ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
shadow.h signal.h stdint.h stropts.h termios.h thread.h \
unistd.h utime.h \
sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
sys/lock.h sys/mkdev.h sys/modem.h \
sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
sys/termio.h sys/time.h \
sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
bluetooth/bluetooth.h linux/tipc.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
2009-07-17 04:46:46 -03:00
# Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
$ac_includes_default
#include <$ac_header>
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_header_compiler=no
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2009-07-17 04:46:46 -03:00
# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <$ac_header>
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
ac_header_preproc=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
_ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;;
2007-08-30 17:10:57 -03:00
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
eval "$as_ac_Header=\$ac_header_preproc"
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
done
2009-07-17 04:46:46 -03:00
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <sys/types.h>
#include <$ac_hdr>
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
if ((DIR *) 0)
return 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
eval "$as_ac_Header=yes"
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
eval "$as_ac_Header=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF
2009-07-17 04:46:46 -03:00
ac_header_dirent=$ac_hdr; break
fi
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
{ $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if test "${ac_cv_search_opendir+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
for ac_lib in '' dir; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_search_opendir=$ac_res
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext
if test "${ac_cv_search_opendir+set}" = set; then
break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then
:
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_search_opendir=no
fi
2009-07-17 04:46:46 -03:00
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
else
{ $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
$as_echo_n "checking for library containing opendir... " >&6; }
if test "${ac_cv_search_opendir+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char opendir ();
int
main ()
{
return opendir ();
;
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
for ac_lib in '' x; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_search_opendir=$ac_res
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext
if test "${ac_cv_search_opendir+set}" = set; then
break
fi
done
if test "${ac_cv_search_opendir+set}" = set; then
:
else
2009-07-17 04:46:46 -03:00
ac_cv_search_opendir=no
fi
2009-07-17 04:46:46 -03:00
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
$as_echo "$ac_cv_search_opendir" >&6; }
ac_res=$ac_cv_search_opendir
if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1993-12-24 06:39:16 -04:00
fi
2009-07-17 04:46:46 -03:00
fi
{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
2009-07-17 04:46:46 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
int
main ()
{
2009-07-17 04:46:46 -03:00
return makedev(0, 0);
;
2007-08-30 17:10:57 -03:00
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
2009-07-17 04:46:46 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_header_sys_types_h_makedev=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_header_sys_types_h_makedev=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
2009-07-17 04:46:46 -03:00
if test $ac_cv_header_sys_types_h_makedev = no; then
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
$as_echo_n "checking for sys/mkdev.h... " >&6; }
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
$as_echo_n "(cached) " >&6
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
else
2009-07-17 04:46:46 -03:00
# Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
$as_echo_n "checking sys/mkdev.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2009-07-17 04:46:46 -03:00
#include <sys/mkdev.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_header_compiler=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
# Is the header present?
{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
$as_echo_n "checking sys/mkdev.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/mkdev.h>
_ACEOF
2009-07-17 04:46:46 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
ac_header_preproc=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_header_preproc=no
fi
2009-07-17 04:46:46 -03:00
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2009-07-17 04:46:46 -03:00
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
( cat <<\_ASBOX
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
_ASBOX
) | sed "s/^/$as_me: WARNING: /" >&2
;;
esac
{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
$as_echo_n "checking for sys/mkdev.h... " >&6; }
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_header_sys_mkdev_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
2009-07-17 04:46:46 -03:00
fi
if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<\_ACEOF
#define MAJOR_IN_MKDEV 1
_ACEOF
2009-07-17 04:46:46 -03:00
fi
2008-05-23 12:06:50 -03:00
2009-07-17 04:46:46 -03:00
if test $ac_cv_header_sys_mkdev_h = no; then
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
$as_echo_n "checking for sys/sysmacros.h... " >&6; }
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
$as_echo_n "(cached) " >&6
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
else
# Is the header compilable?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2009-07-17 04:46:46 -03:00
#include <sys/sysmacros.h>
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_header_compiler=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_header_compiler=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
# Is the header present?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <sys/sysmacros.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
ac_header_preproc=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
2007-08-30 17:10:57 -03:00
rm -f conftest.err conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-25 11:50:04 -03:00
;;
no:yes:* )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
2007-08-30 17:10:57 -03:00
( cat <<\_ASBOX
2009-05-20 15:24:08 -03:00
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
2003-09-25 11:50:04 -03:00
_ASBOX
2007-08-30 17:10:57 -03:00
) | sed "s/^/$as_me: WARNING: /" >&2
2003-09-25 11:50:04 -03:00
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
$as_echo_n "checking for sys/sysmacros.h... " >&6; }
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_header_sys_sysmacros_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
fi
if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define MAJOR_IN_SYSMACROS 1
_ACEOF
fi
fi
fi
# On Solaris, term.h requires curses.h
for ac_header in term.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
eval "$as_ac_Header=yes"
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
2009-07-17 04:46:46 -03:00
# On Linux, netlink.h requires asm/types.h
2009-07-17 04:46:46 -03:00
for ac_header in linux/netlink.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
#ifdef HAVE_ASM_TYPES_H
#include <asm/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include <$ac_header>
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
eval "$as_ac_Header=yes"
1993-12-24 06:39:16 -04:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
eval "$as_ac_Header=no"
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
1993-12-24 06:39:16 -04:00
fi
1995-01-25 20:46:29 -04:00
done
2009-07-17 04:46:46 -03:00
# checks for typedefs
was_it_defined=no
{ $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
$as_echo_n "checking for clock_t in time.h... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <time.h>
2009-07-17 04:46:46 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "clock_t" >/dev/null 2>&1; then
was_it_defined=yes
else
cat >>confdefs.h <<\_ACEOF
#define clock_t long
_ACEOF
fi
rm -f conftest*
{ $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
$as_echo "$was_it_defined" >&6; }
# Check whether using makedev requires defining _OSF_SOURCE
{ $as_echo "$as_me:$LINENO: checking for makedev" >&5
$as_echo_n "checking for makedev... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
int
main ()
{
2009-07-17 04:46:46 -03:00
makedev(0, 0)
;
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_has_makedev=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_has_makedev=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2009-07-17 04:46:46 -03:00
conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_has_makedev" = "no"; then
# we didn't link, try if _OSF_SOURCE will allow us to link
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#define _OSF_SOURCE 1
#include <sys/types.h>
int
main ()
{
2009-07-17 04:46:46 -03:00
makedev(0, 0)
;
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_has_makedev=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_has_makedev=no
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2009-07-17 04:46:46 -03:00
conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_has_makedev" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define _OSF_SOURCE 1
_ACEOF
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
$as_echo "$ac_cv_has_makedev" >&6; }
if test "$ac_cv_has_makedev" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MAKEDEV 1
_ACEOF
1993-12-24 06:39:16 -04:00
fi
2009-07-17 04:46:46 -03:00
# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
# defined, but the compiler does not support pragma redefine_extname,
# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
# structures (such as rlimit64) without declaring them. As a
# work-around, disable LFS on such configurations
use_lfs=yes
{ $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
$as_echo_n "checking Solaris LFS bug... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#define _LARGEFILE_SOURCE 1
#define _FILE_OFFSET_BITS 64
#include <sys/resource.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
struct rlimit foo;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest.$ac_objext; then
sol_lfs_bug=no
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
sol_lfs_bug=yes
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
$as_echo "$sol_lfs_bug" >&6; }
if test "$sol_lfs_bug" = "yes"; then
use_lfs=no
fi
1993-12-24 06:39:16 -04:00
2009-07-17 04:46:46 -03:00
if test "$use_lfs" = "yes"; then
# Two defines needed to enable largefile support on various platforms
# These may affect some typedefs
cat >>confdefs.h <<\_ACEOF
#define _LARGEFILE_SOURCE 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define _FILE_OFFSET_BITS 64
_ACEOF
fi
2009-07-17 04:46:46 -03:00
# Add some code to confdefs.h so that the test for off_t works on SCO
cat >> confdefs.h <<\EOF
#if defined(SCO_DS)
#undef _OFF_T
#endif
EOF
# Type availability checks
{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
$as_echo_n "checking for mode_t... " >&6; }
if test "${ac_cv_type_mode_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
ac_cv_type_mode_t=no
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
int
main ()
{
if (sizeof (mode_t))
return 0;
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
$ac_includes_default
int
main ()
{
if (sizeof ((mode_t)))
return 0;
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
2007-08-30 17:10:57 -03:00
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest.$ac_objext; then
:
1993-12-24 06:39:16 -04:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_type_mode_t=yes
1993-12-24 06:39:16 -04:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
1996-05-28 19:53:48 -03:00
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
$as_echo "$ac_cv_type_mode_t" >&6; }
if test "x$ac_cv_type_mode_t" = x""yes; then
:
else
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<_ACEOF
#define mode_t int
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
$as_echo_n "checking for off_t... " >&6; }
if test "${ac_cv_type_off_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
ac_cv_type_off_t=no
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
int
main ()
{
if (sizeof (off_t))
return 0;
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
$ac_includes_default
int
main ()
{
if (sizeof ((off_t)))
return 0;
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
2007-08-30 17:10:57 -03:00
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest.$ac_objext; then
:
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_type_off_t=yes
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993-12-24 06:39:16 -04:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
$as_echo "$ac_cv_type_off_t" >&6; }
if test "x$ac_cv_type_off_t" = x""yes; then
:
else
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<_ACEOF
#define off_t long int
_ACEOF
2009-07-17 04:46:46 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
$as_echo_n "checking for pid_t... " >&6; }
if test "${ac_cv_type_pid_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
ac_cv_type_pid_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if (sizeof (pid_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
$ac_includes_default
int
main ()
{
if (sizeof ((pid_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
:
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_type_pid_t=yes
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
$as_echo "$ac_cv_type_pid_t" >&6; }
if test "x$ac_cv_type_pid_t" = x""yes; then
:
else
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF
2009-07-17 04:46:46 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
$as_echo_n "checking return type of signal handlers... " >&6; }
if test "${ac_cv_type_signal+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <sys/types.h>
#include <signal.h>
2009-07-17 04:46:46 -03:00
int
main ()
{
return *(signal (0, 0)) (0) == 1;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_cv_type_signal=int
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_type_signal=void
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
$as_echo "$ac_cv_type_signal" >&6; }
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
$as_echo_n "checking for size_t... " >&6; }
if test "${ac_cv_type_size_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_size_t=no
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
$ac_includes_default
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
if (sizeof (size_t))
return 0;
;
2002-04-12 06:54:03 -03:00
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
if (sizeof ((size_t)))
return 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest.$ac_objext; then
:
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_cv_type_size_t=yes
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
$as_echo "$ac_cv_type_size_t" >&6; }
if test "x$ac_cv_type_size_t" = x""yes; then
:
else
cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
if test "${ac_cv_type_uid_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "uid_t" >/dev/null 2>&1; then
ac_cv_type_uid_t=yes
else
ac_cv_type_uid_t=no
fi
rm -f conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define uid_t int
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define gid_t int
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
$as_echo_n "checking for uint32_t... " >&6; }
if test "${ac_cv_c_uint32_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_c_uint32_t=no
for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
$ac_includes_default
2002-04-12 06:54:03 -03:00
int
main ()
1996-12-06 17:19:16 -04:00
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
1996-12-06 17:19:16 -04:00
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
case $ac_type in
uint32_t) ac_cv_c_uint32_t=yes ;;
*) ac_cv_c_uint32_t=$ac_type ;;
esac
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
test "$ac_cv_c_uint32_t" != no && break
done
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
$as_echo "$ac_cv_c_uint32_t" >&6; }
case $ac_cv_c_uint32_t in #(
no|yes) ;; #(
*)
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define _UINT32_T 1
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<_ACEOF
#define uint32_t $ac_cv_c_uint32_t
_ACEOF
2009-07-17 04:46:46 -03:00
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
$as_echo_n "checking for uint64_t... " >&6; }
if test "${ac_cv_c_uint64_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
ac_cv_c_uint64_t=no
for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
case $ac_type in
uint64_t) ac_cv_c_uint64_t=yes ;;
*) ac_cv_c_uint64_t=$ac_type ;;
esac
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
test "$ac_cv_c_uint64_t" != no && break
done
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
$as_echo "$ac_cv_c_uint64_t" >&6; }
case $ac_cv_c_uint64_t in #(
no|yes) ;; #(
*)
cat >>confdefs.h <<\_ACEOF
#define _UINT64_T 1
_ACEOF
2003-09-25 11:50:04 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define uint64_t $ac_cv_c_uint64_t
_ACEOF
2009-07-17 04:46:46 -03:00
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
$as_echo_n "checking for int32_t... " >&6; }
if test "${ac_cv_c_int32_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
ac_cv_c_int32_t=no
for ac_type in 'int32_t' 'int' 'long int' \
'long long int' 'short int' 'signed char'; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
< ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
case $ac_type in
int32_t) ac_cv_c_int32_t=yes ;;
*) ac_cv_c_int32_t=$ac_type ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
test "$ac_cv_c_int32_t" != no && break
done
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
$as_echo "$ac_cv_c_int32_t" >&6; }
case $ac_cv_c_int32_t in #(
no|yes) ;; #(
*)
2003-09-25 11:50:04 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define int32_t $ac_cv_c_int32_t
_ACEOF
2009-07-17 04:46:46 -03:00
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
$as_echo_n "checking for int64_t... " >&6; }
if test "${ac_cv_c_int64_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
ac_cv_c_int64_t=no
for ac_type in 'int64_t' 'int' 'long int' \
'long long int' 'short int' 'signed char'; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
$ac_includes_default
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
< ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
:
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
case $ac_type in
int64_t) ac_cv_c_int64_t=yes ;;
*) ac_cv_c_int64_t=$ac_type ;;
esac
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
test "$ac_cv_c_int64_t" != no && break
done
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
$as_echo "$ac_cv_c_int64_t" >&6; }
case $ac_cv_c_int64_t in #(
no|yes) ;; #(
*)
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<_ACEOF
#define int64_t $ac_cv_c_int64_t
_ACEOF
2009-07-17 04:46:46 -03:00
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
$as_echo_n "checking for ssize_t... " >&6; }
if test "${ac_cv_type_ssize_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
ac_cv_type_ssize_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
if (sizeof (ssize_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
if (sizeof ((ssize_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ssize_t=yes
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
$as_echo "$ac_cv_type_ssize_t" >&6; }
if test "x$ac_cv_type_ssize_t" = x""yes; then
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define HAVE_SSIZE_T 1
_ACEOF
2009-07-17 04:46:46 -03:00
fi
2009-07-17 04:46:46 -03:00
# Sizes of various common basic types
# ANSI C requires sizeof(char) == 1, so no need to check it
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if test "${ac_cv_sizeof_int+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2006-02-15 13:27:45 -04:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
2009-07-17 04:46:46 -03:00
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
2006-02-15 13:27:45 -04:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2006-02-15 13:27:45 -04:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
done
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
'') if test "$ac_cv_type_int" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (int)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_int=0
fi ;;
esac
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (int)); }
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
return 1;
if (((long int) (sizeof (int))) < 0)
{
long int i = longval ();
if (i != ((long int) (sizeof (int))))
return 1;
fprintf (f, "%ld", i);
}
else
{
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (int))))
return 1;
fprintf (f, "%lu", i);
}
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_int=`cat conftest.val`
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
( exit $ac_status )
if test "$ac_cv_type_int" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (int)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_int=0
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if test "${ac_cv_sizeof_long+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
1996-12-06 17:19:16 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_long=$ac_lo;;
'') if test "$ac_cv_type_long" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (long)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (long)); }
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
2002-04-12 06:54:03 -03:00
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
2002-04-12 06:54:03 -03:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (long))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (long))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (long))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long=`cat conftest.val`
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_long" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (long)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long=0
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
$as_echo_n "checking size of void *... " >&6; }
if test "${ac_cv_sizeof_void_p+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_void_p=$ac_lo;;
'') if test "$ac_cv_type_void_p" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (void *)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_void_p=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (void *)); }
static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
2002-04-12 06:54:03 -03:00
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (void *))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (void *))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (void *))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_void_p=`cat conftest.val`
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_void_p" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (void *)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_void_p=0
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
$as_echo "$ac_cv_sizeof_void_p" >&6; }
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if test "${ac_cv_sizeof_short+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_short=$ac_lo;;
'') if test "$ac_cv_type_short" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (short)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_short=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (short)); }
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
2002-04-12 06:54:03 -03:00
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (short))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (short))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (short))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_short=`cat conftest.val`
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
( exit $ac_status )
if test "$ac_cv_type_short" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (short)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_short=0
fi
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of float" >&5
$as_echo_n "checking size of float... " >&6; }
if test "${ac_cv_sizeof_float+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_float=$ac_lo;;
'') if test "$ac_cv_type_float" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (float)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_float=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (float)); }
static unsigned long int ulongval () { return (long int) (sizeof (float)); }
2002-04-12 06:54:03 -03:00
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (float))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (float))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (float))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_float=`cat conftest.val`
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_float" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (float)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_float=0
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
$as_echo "$ac_cv_sizeof_float" >&6; }
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_FLOAT $ac_cv_sizeof_float
_ACEOF
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of double" >&5
$as_echo_n "checking size of double... " >&6; }
if test "${ac_cv_sizeof_double+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
1996-12-06 17:19:16 -04:00
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
1998-10-02 11:42:15 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_double=$ac_lo;;
'') if test "$ac_cv_type_double" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (double)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_double=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (double)); }
static unsigned long int ulongval () { return (long int) (sizeof (double)); }
#include <stdio.h>
2002-04-12 06:54:03 -03:00
#include <stdlib.h>
int
main ()
{
2002-04-12 06:54:03 -03:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (double))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (double))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (double))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_double=`cat conftest.val`
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_double" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (double)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_double=0
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
$as_echo "$ac_cv_sizeof_double" >&6; }
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
_ACEOF
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5
$as_echo_n "checking size of fpos_t... " >&6; }
if test "${ac_cv_sizeof_fpos_t+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
2002-04-12 06:54:03 -03:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_fpos_t=$ac_lo;;
'') if test "$ac_cv_type_fpos_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (fpos_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_fpos_t=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (fpos_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); }
#include <stdio.h>
2002-04-12 06:54:03 -03:00
#include <stdlib.h>
int
main ()
{
2002-04-12 06:54:03 -03:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (fpos_t))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (fpos_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (fpos_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_fpos_t=`cat conftest.val`
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_fpos_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (fpos_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_fpos_t=0
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
_ACEOF
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
$as_echo_n "checking size of size_t... " >&6; }
if test "${ac_cv_sizeof_size_t+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
2002-04-12 06:54:03 -03:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_size_t=$ac_lo;;
'') if test "$ac_cv_type_size_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (size_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_size_t=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (size_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
#include <stdio.h>
2002-04-12 06:54:03 -03:00
#include <stdlib.h>
int
main ()
{
2002-04-12 06:54:03 -03:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (size_t))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (size_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (size_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2009-07-17 04:46:46 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_size_t=`cat conftest.val`
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
( exit $ac_status )
if test "$ac_cv_type_size_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_size_t=0
fi
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
$as_echo "$ac_cv_sizeof_size_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
$as_echo_n "checking size of pid_t... " >&6; }
if test "${ac_cv_sizeof_pid_t+set}" = set; then
$as_echo_n "(cached) " >&6
2006-02-15 13:27:45 -04:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)];
2006-02-15 13:27:45 -04:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2006-02-15 13:27:45 -04:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-02-15 13:27:45 -04:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
2006-02-15 13:27:45 -04:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2006-02-15 13:27:45 -04:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-02-15 13:27:45 -04:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2006-02-15 13:27:45 -04:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2006-02-15 13:27:45 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-02-15 13:27:45 -04:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2006-02-15 13:27:45 -04:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2006-02-15 13:27:45 -04:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)];
2006-02-15 13:27:45 -04:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2006-02-15 13:27:45 -04:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-02-15 13:27:45 -04:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)];
2006-02-15 13:27:45 -04:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2006-02-15 13:27:45 -04:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-02-15 13:27:45 -04:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2006-02-15 13:27:45 -04:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2006-02-15 13:27:45 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-02-15 13:27:45 -04:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2006-02-15 13:27:45 -04:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
2006-02-15 13:27:45 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-02-15 13:27:45 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-02-15 13:27:45 -04:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
2006-02-15 13:27:45 -04:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2006-02-15 13:27:45 -04:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2006-02-15 13:27:45 -04:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2006-02-15 13:27:45 -04:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2006-02-15 13:27:45 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006-02-15 13:27:45 -04:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_pid_t=$ac_lo;;
'') if test "$ac_cv_type_pid_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
2006-02-15 13:27:45 -04:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (pid_t)
2006-02-15 13:27:45 -04:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_pid_t=0
2007-08-30 17:10:57 -03:00
fi ;;
2006-02-15 13:27:45 -04:00
esac
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (pid_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); }
2006-02-15 13:27:45 -04:00
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (pid_t))) < 0)
2006-02-15 13:27:45 -04:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (pid_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2006-02-15 13:27:45 -04:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (pid_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2006-02-15 13:27:45 -04:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2006-02-15 13:27:45 -04:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2006-02-15 13:27:45 -04:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-02-15 13:27:45 -04:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2006-02-15 13:27:45 -04:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-02-15 13:27:45 -04:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_pid_t=`cat conftest.val`
2006-02-15 13:27:45 -04:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2006-02-15 13:27:45 -04:00
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_pid_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
2006-02-15 13:27:45 -04:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (pid_t)
2006-02-15 13:27:45 -04:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_pid_t=0
2007-08-30 17:10:57 -03:00
fi
2006-02-15 13:27:45 -04:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2006-02-15 13:27:45 -04:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
$as_echo "$ac_cv_sizeof_pid_t" >&6; }
2007-08-30 17:10:57 -03:00
2006-02-15 13:27:45 -04:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
2006-02-15 13:27:45 -04:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for long long support" >&5
$as_echo_n "checking for long long support... " >&6; }
have_long_long=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
long long x; x = (long long)0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF
have_long_long=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $have_long_long" >&5
$as_echo "$have_long_long" >&6; }
if test "$have_long_long" = yes ; then
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if test "${ac_cv_sizeof_long_long+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_long_long=$ac_lo;;
'') if test "$ac_cv_type_long_long" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long_long=0
fi ;;
esac
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (long long)); }
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (long long))) < 0)
{
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (long long))))
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
}
else
{
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (long long))))
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long_long=`cat conftest.val`
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_long_long" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long_long=0
fi
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF
2009-07-17 04:46:46 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for long double support" >&5
$as_echo_n "checking for long double support... " >&6; }
have_long_double=no
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
long double x; x = (long double)0.;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define HAVE_LONG_DOUBLE 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
have_long_double=yes
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $have_long_double" >&5
$as_echo "$have_long_double" >&6; }
if test "$have_long_double" = yes ; then
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of long double" >&5
$as_echo_n "checking size of long double... " >&6; }
if test "${ac_cv_sizeof_long_double+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_long_double=$ac_lo;;
'') if test "$ac_cv_type_long_double" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (long double)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long_double=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (long double)); }
static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
#include <stdio.h>
2002-04-12 06:54:03 -03:00
#include <stdlib.h>
int
main ()
{
2002-04-12 06:54:03 -03:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (long double))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (long double))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (long double))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long_double=`cat conftest.val`
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_long_double" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (long double)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_long_double=0
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
$as_echo "$ac_cv_sizeof_long_double" >&6; }
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for _Bool support" >&5
$as_echo_n "checking for _Bool support... " >&6; }
have_c99_bool=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
2009-07-17 04:46:46 -03:00
_Bool x; x = (_Bool)0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define HAVE_C99_BOOL 1
_ACEOF
2009-07-17 04:46:46 -03:00
have_c99_bool=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5
$as_echo "$have_c99_bool" >&6; }
if test "$have_c99_bool" = yes ; then
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of _Bool" >&5
$as_echo_n "checking size of _Bool... " >&6; }
if test "${ac_cv_sizeof__Bool+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof__Bool=$ac_lo;;
'') if test "$ac_cv_type__Bool" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (_Bool)
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof__Bool=0
fi ;;
esac
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (_Bool)); }
static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (_Bool))) < 0)
{
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (_Bool))))
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
}
else
{
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (_Bool))))
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof__Bool=`cat conftest.val`
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type__Bool" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (_Bool)
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof__Bool=0
fi
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
$as_echo "$ac_cv_sizeof__Bool" >&6; }
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF__BOOL $ac_cv_sizeof__Bool
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
$as_echo_n "checking for uintptr_t... " >&6; }
if test "${ac_cv_type_uintptr_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_type_uintptr_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
int
main ()
{
2009-07-17 04:46:46 -03:00
if (sizeof (uintptr_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
2009-07-17 04:46:46 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
int
main ()
{
2009-07-17 04:46:46 -03:00
if (sizeof ((uintptr_t)))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_uintptr_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
$as_echo "$ac_cv_type_uintptr_t" >&6; }
if test "x$ac_cv_type_uintptr_t" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5
$as_echo_n "checking size of uintptr_t... " >&6; }
if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
'') if test "$ac_cv_type_uintptr_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_uintptr_t=0
2007-08-30 17:10:57 -03:00
fi ;;
esac
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (uintptr_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (uintptr_t))) < 0)
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (uintptr_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (uintptr_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_uintptr_t=`cat conftest.val`
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_uintptr_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_uintptr_t=0
2007-08-30 17:10:57 -03:00
fi
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
2007-08-30 17:10:57 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
_ACEOF
fi
2009-07-17 04:46:46 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
$as_echo_n "checking size of off_t... " >&6; }
if test "${ac_cv_sizeof_off_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
2009-07-17 04:46:46 -03:00
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid; break
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
test_array [0] = 0
;
return 0;
2009-07-17 04:46:46 -03:00
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_lo=$ac_mid; break
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_off_t=$ac_lo;;
'') if test "$ac_cv_type_off_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (off_t)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_off_t=0
fi ;;
esac
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
static long int longval () { return (long int) (sizeof (off_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
#include <stdio.h>
#include <stdlib.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
return 1;
if (((long int) (sizeof (off_t))) < 0)
{
long int i = longval ();
if (i != ((long int) (sizeof (off_t))))
return 1;
fprintf (f, "%ld", i);
}
else
{
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (off_t))))
return 1;
fprintf (f, "%lu", i);
}
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_off_t=`cat conftest.val`
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
( exit $ac_status )
if test "$ac_cv_type_off_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (off_t)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_off_t=0
fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
$as_echo "$ac_cv_sizeof_off_t" >&6; }
2009-07-17 04:46:46 -03:00
cat >>confdefs.h <<_ACEOF
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
_ACEOF
{ $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5
$as_echo_n "checking whether to enable large file support... " >&6; }
if test "$have_long_long" = yes -a \
"$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LARGEFILE_SUPPORT 1
_ACEOF
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if test "${ac_cv_sizeof_time_t+set}" = set; then
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=-1 ac_mid=-1
while :; do
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
2009-07-17 04:46:46 -03:00
?*) ac_cv_sizeof_time_t=$ac_lo;;
'') if test "$ac_cv_type_time_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (time_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_time_t=0
2007-08-30 17:10:57 -03:00
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
static long int longval () { return (long int) (sizeof (time_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
#include <stdio.h>
2002-04-12 06:54:03 -03:00
#include <stdlib.h>
int
main ()
{
2002-04-12 06:54:03 -03:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (time_t))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (time_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (time_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_time_t=`cat conftest.val`
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_time_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (time_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_time_t=0
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
# if have pthread_t then define SIZEOF_PTHREAD_T
ac_save_cc="$CC"
if test "$ac_cv_kpthread" = "yes"
then CC="$CC -Kpthread"
elif test "$ac_cv_kthread" = "yes"
then CC="$CC -Kthread"
elif test "$ac_cv_pthread" = "yes"
then CC="$CC -pthread"
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for pthread_t" >&5
$as_echo_n "checking for pthread_t... " >&6; }
have_pthread_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <pthread.h>
int
main ()
{
pthread_t x; x = *(pthread_t*)0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
have_pthread_t=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5
$as_echo "$have_pthread_t" >&6; }
if test "$have_pthread_t" = yes ; then
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
$as_echo_n "checking size of pthread_t... " >&6; }
if test "${ac_cv_sizeof_pthread_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
2009-07-17 04:46:46 -03:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= 0)];
test_array [0] = 0
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) < 0)];
test_array [0] = 0
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
2007-08-30 17:10:57 -03:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
2007-08-30 17:10:57 -03:00
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
ac_lo= ac_hi=
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
2009-07-17 04:46:46 -03:00
#endif
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
done
case $ac_lo in
?*) ac_cv_sizeof_pthread_t=$ac_lo;;
'') if test "$ac_cv_type_pthread_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (pthread_t)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_pthread_t=0
fi ;;
esac
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
2009-07-17 04:46:46 -03:00
#endif
static long int longval () { return (long int) (sizeof (pthread_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (pthread_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
return 1;
if (((long int) (sizeof (pthread_t))) < 0)
{
long int i = longval ();
if (i != ((long int) (sizeof (pthread_t))))
return 1;
fprintf (f, "%ld", i);
}
else
{
unsigned long int i = ulongval ();
if (i != ((long int) (sizeof (pthread_t))))
return 1;
fprintf (f, "%lu", i);
}
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
return ferror (f) || fclose (f) != 0;
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_sizeof_pthread_t=`cat conftest.val`
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
if test "$ac_cv_type_pthread_t" = yes; then
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (pthread_t)
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }; }
else
ac_cv_sizeof_pthread_t=0
fi
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
fi
CC="$ac_save_cc"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
$as_echo_n "checking for --enable-toolbox-glue... " >&6; }
2007-08-30 17:10:57 -03:00
# Check whether --enable-toolbox-glue was given.
2001-08-14 22:27:14 -03:00
if test "${enable_toolbox_glue+set}" = set; then
2007-08-30 17:10:57 -03:00
enableval=$enable_toolbox_glue;
fi
2001-08-14 22:27:14 -03:00
if test -z "$enable_toolbox_glue"
2002-04-12 06:54:03 -03:00
then
2001-08-14 22:27:14 -03:00
case $ac_sys_system/$ac_sys_release in
Darwin/*)
enable_toolbox_glue="yes";;
*)
enable_toolbox_glue="no";;
esac
fi
case "$enable_toolbox_glue" in
yes)
extra_machdep_objs="Python/mactoolboxglue.o"
extra_undefs="-u _PyMac_Error"
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
2001-08-14 22:27:14 -03:00
#define USE_TOOLBOX_OBJECT_GLUE 1
2002-04-12 06:54:03 -03:00
_ACEOF
2001-08-14 22:27:14 -03:00
;;
*)
extra_machdep_objs=""
extra_undefs=""
2001-08-14 22:27:14 -03:00
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
$as_echo "$enable_toolbox_glue" >&6; }
2008-06-06 18:31:33 -03:00
case $ac_sys_system/$ac_sys_release in
Darwin/[01567]\..*)
OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
;;
Darwin/*)
OTHER_LIBTOOL_OPT=""
;;
esac
case $ac_sys_system/$ac_sys_release in
Darwin/[01567]\..*)
LIBTOOL_CRUFT="-framework System -lcc_dynamic"
if test "${enable_universalsdk}"; then
:
else
LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
fi
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Darwin/*)
gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
if test ${gcc_version} '<' 4.0
then
LIBTOOL_CRUFT="-lcc_dynamic"
else
LIBTOOL_CRUFT=""
fi
LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
2001-08-14 22:27:14 -03:00
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5
$as_echo_n "checking for --enable-framework... " >&6; }
2001-08-14 22:27:14 -03:00
if test "$enable_framework"
then
BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
2002-04-12 06:54:03 -03:00
# -F. is needed to allow linking to the framework while
2001-08-14 22:27:14 -03:00
# in the build location.
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_NEXT_FRAMEWORK 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
if test $enable_shared = "yes"
then
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
$as_echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
{ (exit 1); exit 1; }; }
fi
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for dyld" >&5
$as_echo_n "checking for dyld... " >&6; }
case $ac_sys_system/$ac_sys_release in
Darwin/*)
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_DYLD 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5
$as_echo "always on for Darwin" >&6; }
;;
*)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2001-08-14 22:27:14 -03:00
;;
esac
1994-09-12 07:58:40 -03:00
# Set info about shared libraries.
1994-09-12 07:58:40 -03:00
# SO is the extension of shared libraries `(including the dot!)
# -- usually .so, .sl on HP-UX, .dll on Cygwin
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking SO" >&5
$as_echo_n "checking SO... " >&6; }
1994-09-12 07:58:40 -03:00
if test -z "$SO"
then
case $ac_sys_system in
hp*|HP*)
case `uname -m` in
ia64) SO=.so;;
*) SO=.sl;;
esac
;;
CYGWIN*) SO=.dll;;
1996-09-10 15:20:48 -03:00
*) SO=.so;;
1994-09-12 07:58:40 -03:00
esac
else
# this might also be a termcap variable, see #610332
echo
echo '====================================================================='
echo '+ +'
echo '+ WARNING: You have set SO in your environment. +'
echo '+ Do you really mean to change the extension for shared libraries? +'
echo '+ Continuing in 10 seconds to let you to ponder. +'
echo '+ +'
echo '====================================================================='
sleep 10
1994-09-12 07:58:40 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $SO" >&5
$as_echo "$SO" >&6; }
cat >>confdefs.h <<_ACEOF
#define SHLIB_EXT "$SO"
_ACEOF
1994-09-12 07:58:40 -03:00
# LDSHARED is the ld *command* used to create shared library
# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
# (Shared libraries in this instance are shared modules to be loaded into
# Python, as opposed to building Python itself as a shared library.)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking LDSHARED" >&5
$as_echo_n "checking LDSHARED... " >&6; }
1994-09-12 07:58:40 -03:00
if test -z "$LDSHARED"
then
case $ac_sys_system/$ac_sys_release in
2001-02-15 23:37:54 -04:00
AIX*)
BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
2001-02-15 23:37:54 -04:00
;;
BeOS*)
BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
2001-02-15 23:37:54 -04:00
;;
1997-04-29 18:49:50 -03:00
IRIX/5*) LDSHARED="ld -shared";;
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
2002-04-12 06:54:03 -03:00
SunOS/5*)
if test "$GCC" = "yes"
2001-02-19 14:18:48 -04:00
then LDSHARED='$(CC) -shared'
else LDSHARED='$(CC) -G';
fi ;;
hp*|HP*)
if test "$GCC" = "yes"
then LDSHARED='$(CC) -shared'
else LDSHARED='ld -b';
fi ;;
1995-01-25 20:46:29 -04:00
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
Darwin/1.3*)
LDSHARED='$(CC) $(LDFLAGS) -bundle'
if test "$enable_framework" ; then
# Link against the framework. All externals should be defined.
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
else
# No framework. Ignore undefined symbols, assuming they come from Python
LDSHARED="$LDSHARED -undefined suppress"
fi ;;
Darwin/1.4*|Darwin/5.*|Darwin/6.*)
2001-08-14 22:27:14 -03:00
LDSHARED='$(CC) $(LDFLAGS) -bundle'
if test "$enable_framework" ; then
# Link against the framework. All externals should be defined.
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
2001-08-14 22:27:14 -03:00
else
2002-03-07 05:59:15 -04:00
# No framework, use the Python app as bundle-loader
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
fi ;;
Darwin/*)
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
# This allows an extension to be used in any Python
if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
then
if test "${enable_universalsdk}"; then
LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
fi
LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
BLDSHARED="$LDSHARED"
else
LDSHARED='$(CC) $(LDFLAGS) -bundle'
if test "$enable_framework" ; then
# Link against the framework. All externals should be defined.
BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
else
# No framework, use the Python app as bundle-loader
BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
fi
fi
;;
2008-05-23 12:06:50 -03:00
Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
BSD/OS*/4*) LDSHARED="gcc -shared";;
FreeBSD*)
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
then
LDSHARED="$CC -shared ${LDFLAGS}"
else
LDSHARED="ld -Bshareable ${LDFLAGS}"
fi;;
OpenBSD*)
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
then
LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
else
case `uname -r` in
[01].* | 2.[0-7] | 2.[0-7].*)
LDSHARED="ld -Bshareable ${LDFLAGS}"
;;
*)
LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
;;
esac
fi;;
NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
2001-10-07 05:39:18 -03:00
OpenUNIX*|UnixWare*)
if test "$GCC" = "yes"
2002-12-11 08:51:58 -04:00
then LDSHARED='$(CC) -shared'
else LDSHARED='$(CC) -G'
fi;;
2002-12-11 08:51:58 -04:00
SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
2002-06-11 03:22:31 -03:00
atheos*) LDSHARED="gcc -shared";;
1994-09-12 07:58:40 -03:00
*) LDSHARED="ld";;
esac
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5
$as_echo "$LDSHARED" >&6; }
2001-02-15 23:37:54 -04:00
BLDSHARED=${BLDSHARED-$LDSHARED}
1994-09-12 07:58:40 -03:00
# CCSHARED are the C *flags* used to create objects to go into a shared
# library (module) -- this is only needed for a few systems
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking CCSHARED" >&5
$as_echo_n "checking CCSHARED... " >&6; }
1994-09-12 07:58:40 -03:00
if test -z "$CCSHARED"
then
1997-04-29 18:49:50 -03:00
case $ac_sys_system/$ac_sys_release in
2001-02-19 00:50:49 -04:00
SunOS*) if test "$GCC" = yes;
then CCSHARED="-fPIC";
elif test `uname -p` = sparc;
then CCSHARED="-xcode=pic32";
else CCSHARED="-Kpic";
fi;;
1995-02-13 15:45:27 -04:00
hp*|HP*) if test "$GCC" = yes;
then CCSHARED="-fPIC";
1995-02-13 15:45:27 -04:00
else CCSHARED="+z";
fi;;
Linux*|GNU*) CCSHARED="-fPIC";;
BSD/OS*/4*) CCSHARED="-fpic";;
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
2001-10-07 05:39:18 -03:00
OpenUNIX*|UnixWare*)
if test "$GCC" = "yes"
then CCSHARED="-fPIC"
else CCSHARED="-KPIC"
fi;;
SCO_SV*)
if test "$GCC" = "yes"
then CCSHARED="-fPIC"
else CCSHARED="-Kpic -belf"
fi;;
Monterey*) CCSHARED="-G";;
IRIX*/6*) case $CC in
*gcc*) CCSHARED="-shared";;
*) CCSHARED="";;
esac;;
2002-06-11 03:22:31 -03:00
atheos*) CCSHARED="-fPIC";;
1994-09-12 07:58:40 -03:00
esac
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5
$as_echo "$CCSHARED" >&6; }
1994-09-12 07:58:40 -03:00
# LINKFORSHARED are the flags passed to the $(CC) command that links
1995-06-14 20:10:28 -03:00
# the python executable -- this is only needed for a few systems
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
$as_echo_n "checking LINKFORSHARED... " >&6; }
1994-09-12 07:58:40 -03:00
if test -z "$LINKFORSHARED"
then
1997-04-29 18:49:50 -03:00
case $ac_sys_system/$ac_sys_release in
2001-02-15 23:37:54 -04:00
AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
1996-12-06 17:19:16 -04:00
hp*|HP*)
LINKFORSHARED="-Wl,-E -Wl,+s";;
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
# -u libsys_s pulls in all symbols in libsys
2002-04-12 06:54:03 -03:00
Darwin/*)
# -u _PyMac_Error is needed to pull in the mac toolbox glue,
# which is
2001-08-14 22:27:14 -03:00
# not used by the core itself but which needs to be in the core so
# that dynamically loaded extension modules have access to it.
# -prebind is no longer used, because it actually seems to give a
# slowdown in stead of a speedup, maybe due to the large number of
# dynamic loads Python does.
LINKFORSHARED="$extra_undefs"
2001-08-14 22:27:14 -03:00
if test "$enable_framework"
then
LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
2001-08-14 22:27:14 -03:00
fi
LINKFORSHARED="$LINKFORSHARED";;
2001-10-07 05:39:18 -03:00
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
then
LINKFORSHARED="-Wl,--export-dynamic"
fi;;
SunOS/5*) case $CC in
*gcc*)
if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
then
LINKFORSHARED="-Xlinker --export-dynamic"
fi;;
esac;;
CYGWIN*)
if test $enable_shared = "no"
then
LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
fi;;
2008-05-23 12:06:50 -03:00
QNX*)
# -Wl,-E causes the symbols to be added to the dynamic
# symbol table so that they can be found when a module
# is loaded. -N 2048K causes the stack size to be set
# to 2048 kilobytes so that the stack doesn't overflow
# when running test_compile.py.
LINKFORSHARED='-Wl,-E -N 2048K';;
1994-09-12 07:58:40 -03:00
esac
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
$as_echo "$LINKFORSHARED" >&6; }
1994-09-12 07:58:40 -03:00
2008-06-06 18:31:33 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
2001-01-26 12:15:20 -04:00
if test ! "$LIBRARY" = "$LDLIBRARY"
then
2001-01-27 17:40:54 -04:00
case $ac_sys_system in
CYGWIN*)
# Cygwin needs CCSHARED when building extension DLLs
# but not when building the interpreter DLL.
CFLAGSFORSHARED='';;
*)
CFLAGSFORSHARED='$(CCSHARED)'
esac
2001-01-26 12:15:20 -04:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
$as_echo "$CFLAGSFORSHARED" >&6; }
2001-01-26 12:15:20 -04:00
2002-06-11 03:22:31 -03:00
# SHLIBS are libraries (except -lc and -lm) to link to the python shared
# library (with --enable-shared).
# For platforms on which shared libraries are not allowed to have unresolved
# symbols, this must be set to $(LIBS) (expanded by make). We do this even
# if it is not required, since it creates a dependency of the shared library
# to LIBS. This, in turn, means that applications linking the shared libpython
# don't need to link LIBS explicitly. The default should be only changed
# on systems where this approach causes problems.
2002-06-11 03:22:31 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking SHLIBS" >&5
$as_echo_n "checking SHLIBS... " >&6; }
2002-06-11 03:22:31 -03:00
case "$ac_sys_system" in
*)
SHLIBS='$(LIBS)';;
2002-06-11 03:22:31 -03:00
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5
$as_echo "$SHLIBS" >&6; }
2002-06-11 03:22:31 -03:00
1993-12-24 06:39:16 -04:00
# checks for libraries
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
1995-06-14 20:10:28 -03:00
LIBS="-ldl $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return dlopen ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_dl_dlopen=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_dl_dlopen=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDL 1
_ACEOF
1993-12-24 06:39:16 -04:00
1995-06-14 20:10:28 -03:00
LIBS="-ldl $LIBS"
1994-08-01 09:15:30 -03:00
fi
# Dynamic linking for SunOS/Solaris and SYSV
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
1995-06-14 20:10:28 -03:00
LIBS="-ldld $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return shl_load ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_dld_shl_load=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_dld_shl_load=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDLD 1
_ACEOF
1993-12-24 06:39:16 -04:00
1995-06-14 20:10:28 -03:00
LIBS="-ldld $LIBS"
fi
# Dynamic linking for HP-UX
# only check for sem_init if thread support is requested
if test "$with_threads" = "yes" -o -z "$with_threads"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5
$as_echo_n "checking for library containing sem_init... " >&6; }
if test "${ac_cv_search_sem_init+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char sem_init ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return sem_init ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
2007-08-30 17:10:57 -03:00
for ac_lib in '' pthread rt posix4; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2007-08-30 17:10:57 -03:00
fi
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2007-08-30 17:10:57 -03:00
ac_cv_search_sem_init=$ac_res
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext
if test "${ac_cv_search_sem_init+set}" = set; then
break
fi
2007-08-30 17:10:57 -03:00
done
if test "${ac_cv_search_sem_init+set}" = set; then
:
else
ac_cv_search_sem_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
$as_echo "$ac_cv_search_sem_init" >&6; }
2007-08-30 17:10:57 -03:00
ac_res=$ac_cv_search_sem_init
if test "$ac_res" != no; then
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
# 'Real Time' functions on Solaris
# posix4 on Solaris 2.6
# pthread (first!) on Linux
fi
# check if we need libintl for locale functions
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
$as_echo_n "checking for textdomain in -lintl... " >&6; }
if test "${ac_cv_lib_intl_textdomain+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char textdomain ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return textdomain ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_intl_textdomain=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_intl_textdomain=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
if test "x$ac_cv_lib_intl_textdomain" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define WITH_LIBINTL 1
_ACEOF
fi
# checks for system dependent C++ extensions support
case "$ac_sys_system" in
2009-07-17 04:46:46 -03:00
AIX*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "/usr/lpp/xlC/include/load.h"
2002-04-12 06:54:03 -03:00
int
main ()
{
loadAndInit("", 0, "")
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define AIX_GENUINE_CPLUSPLUS 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext;;
*) ;;
esac
# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
# BeOS' sockets are stashed in libnet.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
$as_echo_n "checking for t_open in -lnsl... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_nsl_t_open+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
1995-01-12 08:25:42 -04:00
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
1995-06-14 20:10:28 -03:00
LIBS="-lnsl $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char t_open ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return t_open ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_nsl_t_open=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_nsl_t_open=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
1995-01-12 08:25:42 -04:00
LIBS="-lnsl $LIBS"
fi
1995-01-17 12:46:14 -04:00
# SVR4
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
$as_echo_n "checking for socket in -lsocket... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_socket_socket+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
1995-06-14 20:10:28 -03:00
LIBS="-lsocket $LIBS $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char socket ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return socket ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_socket_socket=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_socket_socket=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
$as_echo "$ac_cv_lib_socket_socket" >&6; }
if test "x$ac_cv_lib_socket_socket" = x""yes; then
1995-01-12 08:25:42 -04:00
LIBS="-lsocket $LIBS"
1994-08-01 09:15:30 -03:00
fi
1995-01-12 08:25:42 -04:00
# SVR4 sockets
case "$ac_sys_system" in
BeOS*)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for socket in -lnet" >&5
$as_echo_n "checking for socket in -lnet... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_net_socket+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lnet $LIBS $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char socket ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return socket ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_net_socket=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_net_socket=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
$as_echo "$ac_cv_lib_net_socket" >&6; }
if test "x$ac_cv_lib_net_socket" = x""yes; then
LIBS="-lnet $LIBS"
fi
# BeOS
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-libs" >&5
$as_echo_n "checking for --with-libs... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-libs was given.
1996-07-31 14:36:39 -03:00
if test "${with_libs+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_libs;
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $withval" >&5
$as_echo "$withval" >&6; }
1996-07-31 14:36:39 -03:00
LIBS="$withval $LIBS"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2007-08-30 17:10:57 -03:00
fi
1994-08-01 09:15:30 -03:00
2006-04-11 08:12:43 -03:00
# Check for use of the system libffi library
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
$as_echo_n "checking for --with-system-ffi... " >&6; }
2006-04-11 08:12:43 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-system_ffi was given.
2006-04-11 08:12:43 -03:00
if test "${with_system_ffi+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_system_ffi;
fi
2006-04-11 08:12:43 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5
$as_echo "$with_system_ffi" >&6; }
2006-04-11 08:12:43 -03:00
2009-04-29 17:36:25 -03:00
# Check for --with-dbmliborder
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
$as_echo_n "checking for --with-dbmliborder... " >&6; }
2009-04-29 17:36:25 -03:00
# Check whether --with-dbmliborder was given.
if test "${with_dbmliborder+set}" = set; then
withval=$with_dbmliborder;
if test x$with_dbmliborder = xyes
then
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
$as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
2009-04-29 17:36:25 -03:00
{ (exit 1); exit 1; }; }
else
for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
then
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
$as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
2009-04-29 17:36:25 -03:00
{ (exit 1); exit 1; }; }
fi
done
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
$as_echo "$with_dbmliborder" >&6; }
2009-04-29 17:36:25 -03:00
# Determine if signalmodule should be used.
2001-01-24 13:25:28 -04:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5
$as_echo_n "checking for --with-signal-module... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-signal-module was given.
2001-01-24 13:25:28 -04:00
if test "${with_signal_module+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_signal_module;
fi
2001-01-24 13:25:28 -04:00
if test -z "$with_signal_module"
then with_signal_module="yes"
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5
$as_echo "$with_signal_module" >&6; }
2001-01-24 13:25:28 -04:00
if test "${with_signal_module}" = "yes"; then
USE_SIGNAL_MODULE=""
SIGNAL_OBJS=""
else
USE_SIGNAL_MODULE="#"
SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
fi
# This is used to generate Setup.config
USE_THREAD_MODULE=""
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
$as_echo_n "checking for --with-dec-threads... " >&6; }
2002-04-12 06:54:03 -03:00
1997-01-22 16:54:01 -04:00
2007-08-30 17:10:57 -03:00
# Check whether --with-dec-threads was given.
1997-01-22 16:54:01 -04:00
if test "${with_dec_threads+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_dec_threads;
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $withval" >&5
$as_echo "$withval" >&6; }
1997-01-22 16:54:01 -04:00
LDLAST=-threads
if test "${with_thread+set}" != set; then
with_thread="$withval";
fi
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2007-08-30 17:10:57 -03:00
fi
2002-04-12 06:54:03 -03:00
# Templates for things AC_DEFINEd more than once.
# For a single AC_DEFINE, no template is needed.
1997-01-22 16:54:01 -04:00
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-threads" >&5
$as_echo_n "checking for --with-threads... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-threads was given.
1997-01-22 16:54:01 -04:00
if test "${with_threads+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_threads;
fi
1997-01-22 16:54:01 -04:00
# --with-thread is deprecated, but check for it anyway
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-thread was given.
1996-05-28 19:53:48 -03:00
if test "${with_thread+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_thread; with_threads=$with_thread
fi
if test -z "$with_threads"
then with_threads="yes"
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $with_threads" >&5
$as_echo "$with_threads" >&6; }
if test "$with_threads" = "no"
then
USE_THREAD_MODULE="#"
elif test "$ac_cv_pthread_is_default" = yes
then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
# Defining _REENTRANT on system with POSIX threads should not hurt.
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define _REENTRANT 1
2002-04-12 06:54:03 -03:00
_ACEOF
posix_threads=yes
2002-04-12 06:54:03 -03:00
THREADOBJ="Python/thread.o"
elif test "$ac_cv_kpthread" = "yes"
then
CC="$CC -Kpthread"
if test "$ac_cv_cxx_thread" = "yes"; then
CXX="$CXX -Kpthread"
fi
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2003-05-05 02:05:30 -03:00
_ACEOF
posix_threads=yes
THREADOBJ="Python/thread.o"
elif test "$ac_cv_kthread" = "yes"
then
CC="$CC -Kthread"
if test "$ac_cv_cxx_thread" = "yes"; then
CXX="$CXX -Kthread"
fi
2003-05-05 02:05:30 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
_ACEOF
posix_threads=yes
THREADOBJ="Python/thread.o"
elif test "$ac_cv_pthread" = "yes"
then
CC="$CC -pthread"
if test "$ac_cv_cxx_thread" = "yes"; then
CXX="$CXX -pthread"
fi
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
posix_threads=yes
THREADOBJ="Python/thread.o"
else
if test ! -z "$with_threads" -a -d "$with_threads"
then LDFLAGS="$LDFLAGS -L$with_threads"
fi
if test ! -z "$withval" -a -d "$withval"
then LDFLAGS="$LDFLAGS -L$withval"
fi
# According to the POSIX spec, a pthreads implementation must
# define _POSIX_THREADS in unistd.h. Some apparently don't
# (e.g. gnu pth with pthread emulation)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
#ifdef _POSIX_THREADS
yes
#endif
2002-04-12 06:54:03 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-25 11:50:04 -03:00
$EGREP "yes" >/dev/null 2>&1; then
unistd_defines_pthreads=yes
else
unistd_defines_pthreads=no
fi
rm -f conftest*
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
$as_echo "$unistd_defines_pthreads" >&6; }
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define _REENTRANT 1
2002-04-12 06:54:03 -03:00
_ACEOF
if test "${ac_cv_header_cthreads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
$as_echo_n "checking for cthreads.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_cthreads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
$as_echo "$ac_cv_header_cthreads_h" >&6; }
2002-04-12 06:54:03 -03:00
else
# Is the header compilable?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5
$as_echo_n "checking cthreads.h usability... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
#include <cthreads.h>
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_header_compiler=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_header_compiler=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2002-04-12 06:54:03 -03:00
# Is the header present?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5
$as_echo_n "checking cthreads.h presence... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <cthreads.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-12 06:54:03 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-04-12 06:54:03 -03:00
ac_header_preproc=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
ac_header_preproc=no
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
rm -f conftest.err conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2002-04-12 06:54:03 -03:00
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-25 11:50:04 -03:00
;;
no:yes:* )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
2007-08-30 17:10:57 -03:00
( cat <<\_ASBOX
2009-05-20 15:24:08 -03:00
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
2003-09-25 11:50:04 -03:00
_ASBOX
2007-08-30 17:10:57 -03:00
) | sed "s/^/$as_me: WARNING: /" >&2
2003-09-25 11:50:04 -03:00
;;
2002-04-12 06:54:03 -03:00
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
$as_echo_n "checking for cthreads.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_cthreads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
ac_cv_header_cthreads_h=$ac_header_preproc
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
$as_echo "$ac_cv_header_cthreads_h" >&6; }
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
if test "x$ac_cv_header_cthreads_h" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define C_THREADS 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HURD_C_THREADS 1
2002-04-12 06:54:03 -03:00
_ACEOF
LIBS="$LIBS -lthreads"
THREADOBJ="Python/thread.o"
else
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
$as_echo_n "checking for mach/cthreads.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
$as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
1996-07-30 15:09:35 -03:00
else
2002-04-12 06:54:03 -03:00
# Is the header compilable?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
$as_echo_n "checking mach/cthreads.h usability... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
1996-07-30 15:09:35 -03:00
#include <mach/cthreads.h>
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_header_compiler=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_header_compiler=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2002-04-12 06:54:03 -03:00
# Is the header present?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
$as_echo_n "checking mach/cthreads.h presence... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <mach/cthreads.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-12 06:54:03 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-04-12 06:54:03 -03:00
ac_header_preproc=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
ac_header_preproc=no
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
rm -f conftest.err conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2002-04-12 06:54:03 -03:00
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-25 11:50:04 -03:00
;;
no:yes:* )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
2007-08-30 17:10:57 -03:00
( cat <<\_ASBOX
2009-05-20 15:24:08 -03:00
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
2003-09-25 11:50:04 -03:00
_ASBOX
2007-08-30 17:10:57 -03:00
) | sed "s/^/$as_me: WARNING: /" >&2
2003-09-25 11:50:04 -03:00
;;
2002-04-12 06:54:03 -03:00
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
$as_echo_n "checking for mach/cthreads.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
ac_cv_header_mach_cthreads_h=$ac_header_preproc
1996-07-30 15:09:35 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
$as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
2002-04-12 06:54:03 -03:00
1996-07-30 15:09:35 -03:00
fi
2009-07-17 04:46:46 -03:00
if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
1996-07-30 15:09:35 -03:00
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
1996-07-30 15:09:35 -03:00
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
1996-07-30 15:09:35 -03:00
#define C_THREADS 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define MACH_C_THREADS 1
2002-04-12 06:54:03 -03:00
_ACEOF
1996-07-30 15:09:35 -03:00
THREADOBJ="Python/thread.o"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-pth" >&5
$as_echo_n "checking for --with-pth... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-pth was given.
if test "${with_pth+set}" = set; then
2009-07-17 04:46:46 -03:00
withval=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5
$as_echo "$withval" >&6; }
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_PTH 1
2002-04-12 06:54:03 -03:00
_ACEOF
LIBS="-lpth $LIBS"
THREADOBJ="Python/thread.o"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
# Just looking for pthread_create in libpthread is not enough:
# on HP/UX, pthread.h renames pthread_create to a different symbol name.
# So we really have to include pthread.h, and then link.
_libs=$LIBS
LIBS="$LIBS -lpthread"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <pthread.h>
void * start_routine (void *arg) { exit (0); }
2002-04-12 06:54:03 -03:00
int
main ()
{
pthread_create (NULL, NULL, start_routine, NULL)
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
posix_threads=yes
THREADOBJ="Python/thread.o"
1998-10-02 11:42:15 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
LIBS=$_libs
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5
$as_echo_n "checking for pthread_detach... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_func_pthread_detach+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
1998-10-02 11:42:15 -03:00
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define pthread_detach innocuous_pthread_detach
1998-10-02 11:42:15 -03:00
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char pthread_detach (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef pthread_detach
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char pthread_detach ();
1998-10-02 11:42:15 -03:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_pthread_detach || defined __stub___pthread_detach
1998-10-02 11:42:15 -03:00
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return pthread_detach ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_func_pthread_detach=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_func_pthread_detach=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
$as_echo "$ac_cv_func_pthread_detach" >&6; }
if test "x$ac_cv_func_pthread_detach" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
1998-10-02 11:42:15 -03:00
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
1998-10-02 11:42:15 -03:00
posix_threads=yes
THREADOBJ="Python/thread.o"
else
2002-06-11 03:22:31 -03:00
if test "${ac_cv_header_atheos_threads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
$as_echo_n "checking for atheos/threads.h... " >&6; }
2002-06-11 03:22:31 -03:00
if test "${ac_cv_header_atheos_threads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-06-11 03:22:31 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
$as_echo "$ac_cv_header_atheos_threads_h" >&6; }
2002-06-11 03:22:31 -03:00
else
# Is the header compilable?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
$as_echo_n "checking atheos/threads.h usability... " >&6; }
2002-06-11 03:22:31 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-06-11 03:22:31 -03:00
$ac_includes_default
#include <atheos/threads.h>
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-06-11 03:22:31 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-06-11 03:22:31 -03:00
ac_header_compiler=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_header_compiler=no
2002-06-11 03:22:31 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2002-06-11 03:22:31 -03:00
# Is the header present?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
$as_echo_n "checking atheos/threads.h presence... " >&6; }
2002-06-11 03:22:31 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-06-11 03:22:31 -03:00
#include <atheos/threads.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-06-11 03:22:31 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-06-11 03:22:31 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-06-11 03:22:31 -03:00
ac_header_preproc=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-06-11 03:22:31 -03:00
ac_header_preproc=no
fi
2007-08-30 17:10:57 -03:00
2002-06-11 03:22:31 -03:00
rm -f conftest.err conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2002-06-11 03:22:31 -03:00
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-25 11:50:04 -03:00
;;
no:yes:* )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
2007-08-30 17:10:57 -03:00
( cat <<\_ASBOX
2009-05-20 15:24:08 -03:00
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
2003-09-25 11:50:04 -03:00
_ASBOX
2007-08-30 17:10:57 -03:00
) | sed "s/^/$as_me: WARNING: /" >&2
2003-09-25 11:50:04 -03:00
;;
2002-06-11 03:22:31 -03:00
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
$as_echo_n "checking for atheos/threads.h... " >&6; }
2002-06-11 03:22:31 -03:00
if test "${ac_cv_header_atheos_threads_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-06-11 03:22:31 -03:00
else
ac_cv_header_atheos_threads_h=$ac_header_preproc
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
$as_echo "$ac_cv_header_atheos_threads_h" >&6; }
2002-06-11 03:22:31 -03:00
fi
2009-07-17 04:46:46 -03:00
if test "x$ac_cv_header_atheos_threads_h" = x""yes; then
2002-06-11 03:22:31 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define ATHEOS_THREADS 1
_ACEOF
THREADOBJ="Python/thread.o"
else
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_kernel_OS_h+set}" = set; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
$as_echo_n "checking for kernel/OS.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_kernel_OS_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
$as_echo "$ac_cv_header_kernel_OS_h" >&6; }
else
2002-04-12 06:54:03 -03:00
# Is the header compilable?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
$as_echo_n "checking kernel/OS.h usability... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
#include <kernel/OS.h>
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_header_compiler=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_header_compiler=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2002-04-12 06:54:03 -03:00
# Is the header present?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
$as_echo_n "checking kernel/OS.h presence... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <kernel/OS.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-12 06:54:03 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-04-12 06:54:03 -03:00
ac_header_preproc=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
ac_header_preproc=no
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
rm -f conftest.err conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2002-04-12 06:54:03 -03:00
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-25 11:50:04 -03:00
;;
no:yes:* )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
2007-08-30 17:10:57 -03:00
( cat <<\_ASBOX
2009-05-20 15:24:08 -03:00
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
2003-09-25 11:50:04 -03:00
_ASBOX
2007-08-30 17:10:57 -03:00
) | sed "s/^/$as_me: WARNING: /" >&2
2003-09-25 11:50:04 -03:00
;;
2002-04-12 06:54:03 -03:00
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
$as_echo_n "checking for kernel/OS.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_kernel_OS_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
ac_cv_header_kernel_OS_h=$ac_header_preproc
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
$as_echo "$ac_cv_header_kernel_OS_h" >&6; }
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
if test "x$ac_cv_header_kernel_OS_h" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define BEOS_THREADS 1
2002-04-12 06:54:03 -03:00
_ACEOF
THREADOBJ="Python/thread.o"
1996-07-30 15:09:35 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
1995-06-14 20:10:28 -03:00
LIBS="-lpthreads $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char pthread_create ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return pthread_create ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_pthreads_pthread_create=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_pthreads_pthread_create=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
1996-06-26 16:47:01 -03:00
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
1996-06-26 16:47:01 -03:00
posix_threads=yes
LIBS="$LIBS -lpthreads"
THREADOBJ="Python/thread.o"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lc_r $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char pthread_create ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return pthread_create ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_c_r_pthread_create=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_c_r_pthread_create=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
posix_threads=yes
LIBS="$LIBS -lc_r"
THREADOBJ="Python/thread.o"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char __pthread_create_system ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return __pthread_create_system ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_pthread___pthread_create_system=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_pthread___pthread_create_system=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
posix_threads=yes
LIBS="$LIBS -lpthread"
THREADOBJ="Python/thread.o"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
$as_echo_n "checking for pthread_create in -lcma... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
1998-05-07 10:27:32 -03:00
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
1998-05-07 10:27:32 -03:00
LIBS="-lcma $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char pthread_create ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return pthread_create ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_cma_pthread_create=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_cma_pthread_create=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
1998-05-07 10:27:32 -03:00
#define WITH_THREAD 1
2002-04-12 06:54:03 -03:00
_ACEOF
1998-05-07 10:27:32 -03:00
posix_threads=yes
LIBS="$LIBS -lcma"
THREADOBJ="Python/thread.o"
1998-05-07 10:27:32 -03:00
else
USE_THREAD_MODULE="#"
1998-05-07 10:27:32 -03:00
fi
2002-04-12 06:54:03 -03:00
1998-05-07 10:27:32 -03:00
fi
1996-06-26 16:47:01 -03:00
1996-07-30 15:09:35 -03:00
fi
1994-08-01 09:15:30 -03:00
fi
fi
2002-04-12 06:54:03 -03:00
2002-06-11 03:22:31 -03:00
fi
fi
1998-10-02 11:42:15 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2007-08-30 17:10:57 -03:00
fi
fi
fi
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
$as_echo_n "checking for usconfig in -lmpc... " >&6; }
if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lmpc $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char usconfig ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return usconfig ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_mpc_usconfig=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_mpc_usconfig=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
_ACEOF
LIBS="$LIBS -lmpc"
THREADOBJ="Python/thread.o"
USE_THREAD_MODULE=""
fi
if test "$posix_threads" != "yes"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
$as_echo_n "checking for thr_create in -lthread... " >&6; }
if test "${ac_cv_lib_thread_thr_create+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char thr_create ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return thr_create ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_thread_thr_create=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_thread_thr_create=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
if test "x$ac_cv_lib_thread_thr_create" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1
_ACEOF
LIBS="$LIBS -lthread"
THREADOBJ="Python/thread.o"
USE_THREAD_MODULE=""
fi
fi
if test "$USE_THREAD_MODULE" != "#"
then
# If the above checks didn't disable threads, (at least) OSF1
# needs this '-threads' argument during linking.
case $ac_sys_system in
OSF1) LDLAST=-threads;;
esac
fi
fi
if test "$posix_threads" = "yes"; then
if test "$unistd_defines_pthreads" = "no"; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define _POSIX_THREADS 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
# Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
case $ac_sys_system/$ac_sys_release in
SunOS/5.6)
cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREAD_DESTRUCTOR 1
_ACEOF
;;
SunOS/5.8)
cat >>confdefs.h <<\_ACEOF
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
_ACEOF
;;
AIX/5)
cat >>confdefs.h <<\_ACEOF
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
_ACEOF
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_pthread_system_supported+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_pthread_system_supported=no
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <pthread.h>
void *foo(void *parm) {
return NULL;
}
main() {
pthread_attr_t attr;
pthread_t id;
if (pthread_attr_init(&attr)) exit(-1);
if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
exit(0);
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
ac_cv_pthread_system_supported=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
ac_cv_pthread_system_supported=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
$as_echo "$ac_cv_pthread_system_supported" >&6; }
if test "$ac_cv_pthread_system_supported" = "yes"; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2002-04-12 06:54:03 -03:00
for ac_func in pthread_sigmask
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
case $ac_sys_system in
CYGWIN*)
cat >>confdefs.h <<\_ACEOF
#define HAVE_BROKEN_PTHREAD_SIGMASK 1
_ACEOF
;;
esac
fi
done
1993-12-24 06:39:16 -04:00
fi
# Check for enable-ipv6
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
2007-08-30 17:10:57 -03:00
# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
2007-08-30 17:10:57 -03:00
enableval=$enable_ipv6; case "$enableval" in
no)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
ipv6=no
;;
2009-07-17 04:46:46 -03:00
*) { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define ENABLE_IPV6 1
2002-04-12 06:54:03 -03:00
_ACEOF
ipv6=yes
;;
2002-04-12 06:54:03 -03:00
esac
else
2002-04-12 06:54:03 -03:00
if test "$cross_compiling" = yes; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
ipv6=no
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* AF_INET6 available check */
#include <sys/types.h>
#include <sys/socket.h>
main()
{
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
exit(1);
else
exit(0);
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
ipv6=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
ipv6=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
if test "$ipv6" = "yes"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
$as_echo_n "checking if RFC2553 API is available... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <netinet/in.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
struct sockaddr_in6 x;
x.sin6_scope_id;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
ipv6=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
ipv6=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test "$ipv6" = "yes"; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define ENABLE_IPV6 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2007-08-30 17:10:57 -03:00
fi
ipv6type=unknown
ipv6lib=none
ipv6trylibc=no
if test "$ipv6" = "yes"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5
$as_echo_n "checking ipv6 stack type... " >&6; }
for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
do
case $i in
inria)
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
2002-04-12 06:54:03 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-25 11:50:04 -03:00
$EGREP "yes" >/dev/null 2>&1; then
ipv6type=$i
fi
rm -f conftest*
;;
kame)
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
2002-04-12 06:54:03 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-25 11:50:04 -03:00
$EGREP "yes" >/dev/null 2>&1; then
ipv6type=$i;
ipv6lib=inet6
ipv6libdir=/usr/local/v6/lib
ipv6trylibc=yes
fi
rm -f conftest*
;;
linux-glibc)
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <features.h>
#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
yes
#endif
2002-04-12 06:54:03 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-25 11:50:04 -03:00
$EGREP "yes" >/dev/null 2>&1; then
ipv6type=$i;
ipv6trylibc=yes
fi
rm -f conftest*
;;
linux-inet6)
if test -d /usr/inet6; then
ipv6type=$i
ipv6lib=inet6
ipv6libdir=/usr/inet6/lib
BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
fi
;;
solaris)
if test -f /etc/netconfig; then
if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
ipv6type=$i
ipv6trylibc=yes
fi
fi
;;
toshiba)
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
2002-04-12 06:54:03 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-25 11:50:04 -03:00
$EGREP "yes" >/dev/null 2>&1; then
ipv6type=$i;
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib
fi
rm -f conftest*
;;
v6d)
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include </usr/local/v6/include/sys/v6config.h>
#ifdef __V6D__
yes
#endif
2002-04-12 06:54:03 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-25 11:50:04 -03:00
$EGREP "yes" >/dev/null 2>&1; then
ipv6type=$i;
ipv6lib=v6;
ipv6libdir=/usr/local/v6/lib;
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
fi
rm -f conftest*
;;
zeta)
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
2002-04-12 06:54:03 -03:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-25 11:50:04 -03:00
$EGREP "yes" >/dev/null 2>&1; then
ipv6type=$i;
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib
fi
rm -f conftest*
;;
esac
if test "$ipv6type" != "unknown"; then
break
fi
done
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ipv6type" >&5
$as_echo "$ipv6type" >&6; }
fi
if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
echo "using lib$ipv6lib"
else
if test $ipv6trylibc = "yes"; then
echo "using libc"
else
echo 'Fatal: no $ipv6lib library found. cannot continue.'
echo "You need to fetch lib$ipv6lib.a from appropriate"
echo 'ipv6 kit and compile beforehand.'
exit 1
fi
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
2008-06-06 18:31:33 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <Carbon/Carbon.h>
int
main ()
{
FSIORefNum fRef = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2008-06-06 18:31:33 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008-06-06 18:31:33 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_OSX105_SDK 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
2008-06-06 18:31:33 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2008-06-06 18:31:33 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2008-06-06 18:31:33 -03:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Check for --with-doc-strings
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
$as_echo_n "checking for --with-doc-strings... " >&6; }
2007-08-30 17:10:57 -03:00
# Check whether --with-doc-strings was given.
if test "${with_doc_strings+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_doc_strings;
fi
if test -z "$with_doc_strings"
then with_doc_strings="yes"
fi
if test "$with_doc_strings" != "no"
then
cat >>confdefs.h <<\_ACEOF
#define WITH_DOC_STRINGS 1
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5
$as_echo "$with_doc_strings" >&6; }
# Check for Python-specific malloc support
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5
$as_echo_n "checking for --with-tsc... " >&6; }
2007-08-30 17:10:57 -03:00
# Check whether --with-tsc was given.
if test "${with_tsc+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_tsc;
if test "$withval" != no
then
cat >>confdefs.h <<\_ACEOF
#define WITH_TSC 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2007-08-30 17:10:57 -03:00
fi
# Check for Python-specific malloc support
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
$as_echo_n "checking for --with-pymalloc... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-pymalloc was given.
if test "${with_pymalloc+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_pymalloc;
fi
2002-03-22 11:34:49 -04:00
if test -z "$with_pymalloc"
then with_pymalloc="yes"
fi
2002-03-22 11:34:49 -04:00
if test "$with_pymalloc" != "no"
then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
2002-03-22 11:34:49 -04:00
#define WITH_PYMALLOC 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-03-22 11:34:49 -04:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5
$as_echo "$with_pymalloc" >&6; }
# Check for --with-wctype-functions
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
$as_echo_n "checking for --with-wctype-functions... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-wctype-functions was given.
if test "${with_wctype_functions+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_wctype_functions;
if test "$withval" != no
2002-04-12 06:54:03 -03:00
then
cat >>confdefs.h <<\_ACEOF
#define WANT_WCTYPE_FUNCTIONS 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2007-08-30 17:10:57 -03:00
fi
1996-05-28 19:53:48 -03:00
# -I${DLINCLDIR} is added to the compile rule for importdl.o
1994-08-01 09:15:30 -03:00
DLINCLDIR=.
1994-08-01 09:15:30 -03:00
# the dlopen() function means we might want to use dynload_shlib.o. some
# platforms, such as AIX, have dlopen(), but don't want to use it.
2002-04-12 06:54:03 -03:00
for ac_func in dlopen
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
done
# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
# loading of modules.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
$as_echo_n "checking DYNLOADFILE... " >&6; }
if test -z "$DYNLOADFILE"
then
case $ac_sys_system/$ac_sys_release in
AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
if test "$ac_cv_func_dlopen" = yes
then DYNLOADFILE="dynload_shlib.o"
else DYNLOADFILE="dynload_aix.o"
fi
;;
BeOS*) DYNLOADFILE="dynload_beos.o";;
hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
# Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
2002-06-11 03:22:31 -03:00
atheos*) DYNLOADFILE="dynload_atheos.o";;
*)
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
# out any dynamic loading
if test "$ac_cv_func_dlopen" = yes
then DYNLOADFILE="dynload_shlib.o"
else DYNLOADFILE="dynload_stub.o"
fi
;;
esac
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
$as_echo "$DYNLOADFILE" >&6; }
if test "$DYNLOADFILE" != "dynload_stub.o"
then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_DYNAMIC_LOADING 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
# MACHDEP_OBJS can be set to platform-specific object files needed by Python
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
$as_echo_n "checking MACHDEP_OBJS... " >&6; }
if test -z "$MACHDEP_OBJS"
then
2001-08-14 22:27:14 -03:00
MACHDEP_OBJS=$extra_machdep_objs
else
MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
$as_echo "MACHDEP_OBJS" >&6; }
1993-12-24 06:39:16 -04:00
# checks for library functions
2002-04-12 06:54:03 -03:00
2003-02-12 22:11:10 -04:00
2002-04-14 07:19:44 -03:00
for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
getpriority getpwent getspnam getspent getsid getwd \
kill killpg lchmod lchown lstat mkfifo mknod mktime \
2002-10-11 02:37:59 -03:00
mremap nice pathconf pause plock poll pthread_init \
putenv readlink realpath \
select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
setgid \
2003-03-28 14:37:01 -04:00
setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
sigaction siginterrupt sigrelse strftime \
sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
1993-12-24 06:39:16 -04:00
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
done
# For some functions, having a definition is not sufficient, since
# we want to take their address.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for chroot" >&5
$as_echo_n "checking for chroot... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
int
main ()
{
void *x=chroot
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_CHROOT 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for link" >&5
$as_echo_n "checking for link... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
int
main ()
{
void *x=link
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LINK 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for symlink" >&5
$as_echo_n "checking for symlink... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
int
main ()
{
void *x=symlink
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_SYMLINK 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for fchdir" >&5
$as_echo_n "checking for fchdir... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
int
main ()
{
void *x=fchdir
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_FCHDIR 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for fsync" >&5
$as_echo_n "checking for fsync... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
int
main ()
{
void *x=fsync
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
2003-09-25 11:50:04 -03:00
#define HAVE_FSYNC 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for fdatasync" >&5
$as_echo_n "checking for fdatasync... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
int
main ()
{
void *x=fdatasync
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_FDATASYNC 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for epoll" >&5
$as_echo_n "checking for epoll... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/epoll.h>
int
main ()
{
void *x=epoll_create
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_EPOLL 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for kqueue" >&5
$as_echo_n "checking for kqueue... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/event.h>
int
main ()
{
int x=kqueue()
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_KQUEUE 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# On some systems (eg. FreeBSD 5), we would find a definition of the
# functions ctermid_r, setgroups in the library, but no prototype
# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
# address to avoid compiler warnings and potential miscompilations
# because of the missing prototypes.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5
$as_echo_n "checking for ctermid_r... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
void* p = ctermid_r
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_CTERMID_R 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for flock" >&5
$as_echo_n "checking for flock... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "confdefs.h"
#include <sys/file.h>
int
main ()
{
void* p = flock
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_FLOCK 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
$as_echo_n "checking for getpagesize... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "confdefs.h"
#include <unistd.h>
int
main ()
{
void* p = getpagesize
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETPAGESIZE 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
for ac_prog in true
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_TRUE+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test -n "$TRUE"; then
ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
2007-08-30 17:10:57 -03:00
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_TRUE="$ac_prog"
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2007-08-30 17:10:57 -03:00
IFS=$as_save_IFS
fi
fi
TRUE=$ac_cv_prog_TRUE
if test -n "$TRUE"; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $TRUE" >&5
$as_echo "$TRUE" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
test -n "$TRUE" && break
done
test -n "$TRUE" || TRUE="/bin/true"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
$as_echo_n "checking for inet_aton in -lc... " >&6; }
if test "${ac_cv_lib_c_inet_aton+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lc $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char inet_aton ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return inet_aton ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_c_inet_aton=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_c_inet_aton=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
if test "x$ac_cv_lib_c_inet_aton" = x""yes; then
$ac_cv_prog_TRUE
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lresolv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char inet_aton ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return inet_aton ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_resolv_inet_aton=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_resolv_inet_aton=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBRESOLV 1
_ACEOF
LIBS="-lresolv $LIBS"
fi
fi
# On Tru64, chflags seems to be present, but calling it will
# exit Python
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for chflags" >&5
$as_echo_n "checking for chflags... " >&6; }
if test "${ac_cv_have_chflags+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_have_chflags=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/stat.h>
#include <unistd.h>
int main(int argc, char*argv[])
{
if(chflags(argv[0], 0) != 0)
return 1;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
2009-07-17 04:46:46 -03:00
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_have_chflags=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_have_chflags=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
$as_echo "$ac_cv_have_chflags" >&6; }
if test $ac_cv_have_chflags = yes
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_CHFLAGS 1
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for lchflags" >&5
$as_echo_n "checking for lchflags... " >&6; }
if test "${ac_cv_have_lchflags+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_have_lchflags=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/stat.h>
#include <unistd.h>
int main(int argc, char*argv[])
{
if(lchflags(argv[0], 0) != 0)
return 1;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_have_lchflags=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_have_lchflags=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
$as_echo "$ac_cv_have_lchflags" >&6; }
if test $ac_cv_have_lchflags = yes
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LCHFLAGS 1
_ACEOF
fi
case $ac_sys_system/$ac_sys_release in
Darwin/*)
_CUR_CFLAGS="${CFLAGS}"
_CUR_LDFLAGS="${LDFLAGS}"
CFLAGS="${CFLAGS} -Wl,-search_paths_first"
LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
$as_echo_n "checking for inflateCopy in -lz... " >&6; }
if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lz $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char inflateCopy ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return inflateCopy ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_z_inflateCopy=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_z_inflateCopy=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_ZLIB_COPY 1
_ACEOF
fi
case $ac_sys_system/$ac_sys_release in
Darwin/*)
CFLAGS="${_CUR_CFLAGS}"
LDFLAGS="${_CUR_LDFLAGS}"
;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for hstrerror" >&5
$as_echo_n "checking for hstrerror... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "confdefs.h"
#include <netdb.h>
int
main ()
{
void* p = hstrerror; hstrerror(0)
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_HSTRERROR 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
$as_echo_n "checking for inet_aton... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int
main ()
{
void* p = inet_aton;inet_aton(0,0)
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_INET_ATON 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
$as_echo_n "checking for inet_pton... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "confdefs.h"
2003-05-05 19:00:11 -03:00
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int
main ()
{
void* p = inet_pton
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_INET_PTON 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# On some systems, setgroups is in unistd.h, on others, in grp.h
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for setgroups" >&5
$as_echo_n "checking for setgroups... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "confdefs.h"
2003-05-05 19:00:11 -03:00
#include <unistd.h>
#ifdef HAVE_GRP_H
#include <grp.h>
#endif
int
main ()
{
void* p = setgroups
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_SETGROUPS 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# check for openpty and forkpty
2002-04-12 06:54:03 -03:00
for ac_func in openpty
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
$as_echo_n "checking for openpty in -lutil... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_util_openpty+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char openpty ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return openpty ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_util_openpty=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_util_openpty=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
$as_echo "$ac_cv_lib_util_openpty" >&6; }
if test "x$ac_cv_lib_util_openpty" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENPTY 1
2002-04-12 06:54:03 -03:00
_ACEOF
LIBS="$LIBS -lutil"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
$as_echo_n "checking for openpty in -lbsd... " >&6; }
if test "${ac_cv_lib_bsd_openpty+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char openpty ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return openpty ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_bsd_openpty=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_bsd_openpty=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
if test "x$ac_cv_lib_bsd_openpty" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENPTY 1
_ACEOF
LIBS="$LIBS -lbsd"
fi
fi
fi
done
2002-04-12 06:54:03 -03:00
for ac_func in forkpty
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
$as_echo_n "checking for forkpty in -lutil... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_util_forkpty+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char forkpty ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return forkpty ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_util_forkpty=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_util_forkpty=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
$as_echo "$ac_cv_lib_util_forkpty" >&6; }
if test "x$ac_cv_lib_util_forkpty" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_FORKPTY 1
2002-04-12 06:54:03 -03:00
_ACEOF
LIBS="$LIBS -lutil"
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
$as_echo_n "checking for forkpty in -lbsd... " >&6; }
if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char forkpty ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return forkpty ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_bsd_forkpty=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_bsd_forkpty=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_FORKPTY 1
_ACEOF
LIBS="$LIBS -lbsd"
fi
fi
fi
done
# Stuff for expat.
for ac_func in memmove
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
# check for long file support functions
2002-04-12 06:54:03 -03:00
for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1995-06-14 20:10:28 -03:00
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
1993-12-24 06:39:16 -04:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
1993-12-24 06:39:16 -04:00
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
1993-12-24 06:39:16 -04:00
done
1996-07-30 15:09:35 -03:00
2002-04-12 06:54:03 -03:00
for ac_func in dup2 getcwd strdup
1993-12-24 06:39:16 -04:00
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1995-06-14 20:10:28 -03:00
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
1993-12-24 06:39:16 -04:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
1993-12-24 06:39:16 -04:00
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
else
2007-08-30 17:10:57 -03:00
case " $LIBOBJS " in
*" $ac_func.$ac_objext "* ) ;;
2007-08-30 17:10:57 -03:00
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
;;
esac
fi
1993-12-24 06:39:16 -04:00
done
2002-04-12 06:54:03 -03:00
for ac_func in getpgrp
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1995-06-14 20:10:28 -03:00
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
1993-12-24 06:39:16 -04:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
1993-12-24 06:39:16 -04:00
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1993-12-24 06:39:16 -04:00
#include <unistd.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
getpgrp(0);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define GETPGRP_HAVE_ARG 1
2002-04-12 06:54:03 -03:00
_ACEOF
1993-12-24 06:39:16 -04:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
1993-12-24 06:39:16 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994-10-20 19:18:37 -03:00
fi
done
1994-10-20 19:18:37 -03:00
for ac_func in setpgrp
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
2002-04-12 06:54:03 -03:00
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
eval "$as_ac_var=yes"
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-07-18 17:25:46 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
int
main ()
{
setpgrp(0,0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define SETPGRP_HAVE_ARG 1
2002-04-12 06:54:03 -03:00
_ACEOF
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
done
2002-04-12 06:54:03 -03:00
for ac_func in gettimeofday
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1995-06-14 20:10:28 -03:00
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/time.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
gettimeofday((struct timeval*)0,(struct timezone*)0);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1993-12-24 06:39:16 -04:00
:
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define GETTIMEOFDAY_NO_TZ 1
2002-04-12 06:54:03 -03:00
_ACEOF
1993-12-24 06:39:16 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
done
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for major" >&5
$as_echo_n "checking for major... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#if defined(MAJOR_IN_MKDEV)
#include <sys/mkdev.h>
#elif defined(MAJOR_IN_SYSMACROS)
#include <sys/sysmacros.h>
#else
#include <sys/types.h>
#endif
int
main ()
{
makedev(major(0),minor(0));
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_DEVICE_MACROS 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
# On OSF/1 V5.1, getaddrinfo is available, but a define
2002-04-12 06:54:03 -03:00
# for [no]getaddrinfo in netdb.h.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
$as_echo_n "checking for getaddrinfo... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
getaddrinfo(NULL, NULL, NULL, NULL);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
have_getaddrinfo=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
have_getaddrinfo=no
fi
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
$as_echo "$have_getaddrinfo" >&6; }
if test $have_getaddrinfo = yes
then
{ $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
$as_echo_n "checking getaddrinfo bug... " >&6; }
if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_buggy_getaddrinfo=yes
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <netdb.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
2009-07-17 04:46:46 -03:00
int main()
{
int passive, gaierr, inet4 = 0, inet6 = 0;
struct addrinfo hints, *ai, *aitop;
char straddr[INET6_ADDRSTRLEN], strport[16];
for (passive = 0; passive <= 1; passive++) {
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_flags = passive ? AI_PASSIVE : 0;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
(void)gai_strerror(gaierr);
goto bad;
}
for (ai = aitop; ai; ai = ai->ai_next) {
if (ai->ai_addr == NULL ||
ai->ai_addrlen == 0 ||
getnameinfo(ai->ai_addr, ai->ai_addrlen,
straddr, sizeof(straddr), strport, sizeof(strport),
NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
goto bad;
}
switch (ai->ai_family) {
case AF_INET:
if (strcmp(strport, "54321") != 0) {
goto bad;
}
if (passive) {
if (strcmp(straddr, "0.0.0.0") != 0) {
goto bad;
}
} else {
if (strcmp(straddr, "127.0.0.1") != 0) {
goto bad;
}
}
inet4++;
break;
case AF_INET6:
if (strcmp(strport, "54321") != 0) {
goto bad;
}
if (passive) {
if (strcmp(straddr, "::") != 0) {
goto bad;
}
} else {
if (strcmp(straddr, "::1") != 0) {
goto bad;
}
}
inet6++;
break;
case AF_UNSPEC:
goto bad;
break;
default:
/* another family support? */
break;
}
}
}
if (!(inet4 == 0 || inet4 == 2))
goto bad;
if (!(inet6 == 0 || inet6 == 2))
goto bad;
if (aitop)
freeaddrinfo(aitop);
2009-07-17 04:46:46 -03:00
return 0;
bad:
if (aitop)
freeaddrinfo(aitop);
2009-07-17 04:46:46 -03:00
return 1;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_buggy_getaddrinfo=no
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_buggy_getaddrinfo=yes
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
fi
2009-07-17 04:46:46 -03:00
if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
then
if test $ipv6 = yes
then
echo 'Fatal: You must get working getaddrinfo() function.'
echo ' or you can specify "--disable-ipv6"'.
exit 1
fi
else
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETADDRINFO 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2002-04-12 06:54:03 -03:00
for ac_func in getnameinfo
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
done
# checks for structures
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_time+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
1993-12-24 06:39:16 -04:00
#include <sys/time.h>
#include <time.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
if ((struct tm *) 0)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_header_time=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_header_time=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
$as_echo "$ac_cv_header_time" >&6; }
if test $ac_cv_header_time = yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_struct_tm+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <time.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
struct tm tm;
int *p = &tm.tm_sec;
2009-07-17 04:46:46 -03:00
return !p;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_struct_tm=time.h
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_struct_tm=sys/time.h
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
$as_echo "$ac_cv_struct_tm" >&6; }
if test $ac_cv_struct_tm = sys/time.h; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define TM_IN_SYS_TIME 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
1993-12-24 06:39:16 -04:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
$as_echo_n "checking for struct tm.tm_zone... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
1993-12-24 06:39:16 -04:00
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <$ac_cv_struct_tm>
2002-04-12 06:54:03 -03:00
int
main ()
{
static struct tm ac_aggr;
if (ac_aggr.tm_zone)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_cv_member_struct_tm_tm_zone=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <$ac_cv_struct_tm>
int
main ()
{
static struct tm ac_aggr;
if (sizeof ac_aggr.tm_zone)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2003-09-25 11:50:04 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-25 11:50:04 -03:00
ac_cv_member_struct_tm_tm_zone=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_member_struct_tm_tm_zone=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-25 11:50:04 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF
fi
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_TM_ZONE 1
2002-04-12 06:54:03 -03:00
_ACEOF
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
$as_echo_n "checking whether tzname is declared... " >&6; }
2007-08-30 17:10:57 -03:00
if test "${ac_cv_have_decl_tzname+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2007-08-30 17:10:57 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
int
main ()
{
#ifndef tzname
(void) tzname;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_tzname=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2007-08-30 17:10:57 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_have_decl_tzname=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
$as_echo "$ac_cv_have_decl_tzname" >&6; }
if test "x$ac_cv_have_decl_tzname" = x""yes; then
2007-08-30 17:10:57 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TZNAME 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TZNAME 0
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for tzname" >&5
$as_echo_n "checking for tzname... " >&6; }
if test "${ac_cv_var_tzname+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
2007-08-30 17:10:57 -03:00
#if !HAVE_DECL_TZNAME
extern char *tzname[];
#endif
int
main ()
{
2007-08-30 17:10:57 -03:00
return tzname[0][0];
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_var_tzname=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_var_tzname=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
$as_echo "$ac_cv_var_tzname" >&6; }
if test $ac_cv_var_tzname = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_TZNAME 1
_ACEOF
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
$as_echo_n "checking for struct stat.st_rdev... " >&6; }
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
2003-09-25 11:50:04 -03:00
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (ac_aggr.st_rdev)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_cv_member_struct_stat_st_rdev=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_rdev)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2003-09-25 11:50:04 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-25 11:50:04 -03:00
ac_cv_member_struct_stat_st_rdev=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_member_struct_stat_st_rdev=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-25 11:50:04 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_RDEV 1
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
$as_echo_n "checking for struct stat.st_blksize... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (ac_aggr.st_blksize)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_cv_member_struct_stat_st_blksize=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_blksize)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2003-09-25 11:50:04 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-25 11:50:04 -03:00
ac_cv_member_struct_stat_st_blksize=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_member_struct_stat_st_blksize=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-25 11:50:04 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
$as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
$as_echo_n "checking for struct stat.st_flags... " >&6; }
if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (ac_aggr.st_flags)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_flags=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_flags)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_flags=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_member_struct_stat_st_flags=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
$as_echo "$ac_cv_member_struct_stat_st_flags" >&6; }
if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_FLAGS 1
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
$as_echo_n "checking for struct stat.st_gen... " >&6; }
if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (ac_aggr.st_gen)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_gen=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_gen)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_gen=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_member_struct_stat_st_gen=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
$as_echo "$ac_cv_member_struct_stat_st_gen" >&6; }
if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_GEN 1
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
$as_echo_n "checking for struct stat.st_birthtime... " >&6; }
if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (ac_aggr.st_birthtime)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_birthtime=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_birthtime)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_stat_st_birthtime=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_member_struct_stat_st_birthtime=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
$as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; }
if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
$as_echo_n "checking for struct stat.st_blocks... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (ac_aggr.st_blocks)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_cv_member_struct_stat_st_blocks=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static struct stat ac_aggr;
if (sizeof ac_aggr.st_blocks)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2003-09-25 11:50:04 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2003-09-25 11:50:04 -03:00
ac_cv_member_struct_stat_st_blocks=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_member_struct_stat_st_blocks=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003-09-25 11:50:04 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_ST_BLOCKS 1
2002-04-12 06:54:03 -03:00
_ACEOF
else
2007-08-30 17:10:57 -03:00
case " $LIBOBJS " in
*" fileblocks.$ac_objext "* ) ;;
2007-08-30 17:10:57 -03:00
*) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
;;
esac
fi
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
$as_echo_n "checking for time.h that defines altzone... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_time_altzone+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1994-08-01 09:15:30 -03:00
#include <time.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
return altzone;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_header_time_altzone=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_header_time_altzone=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
$as_echo "$ac_cv_header_time_altzone" >&6; }
if test $ac_cv_header_time_altzone = yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_ALTZONE 1
2002-04-12 06:54:03 -03:00
_ACEOF
1994-08-01 09:15:30 -03:00
fi
1995-01-25 20:46:29 -04:00
was_it_defined=no
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1994-08-01 09:15:30 -03:00
#include <sys/types.h>
#include <sys/select.h>
#include <sys/time.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define SYS_SELECT_WITH_SYS_TIME 1
2002-04-12 06:54:03 -03:00
_ACEOF
was_it_defined=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
1994-08-01 09:15:30 -03:00
fi
1993-12-24 06:39:16 -04:00
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
$as_echo "$was_it_defined" >&6; }
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for addrinfo" >&5
$as_echo_n "checking for addrinfo... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_struct_addrinfo+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
# include <netdb.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
struct addrinfo a
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_struct_addrinfo=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_struct_addrinfo=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
$as_echo "$ac_cv_struct_addrinfo" >&6; }
if test $ac_cv_struct_addrinfo = yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_ADDRINFO 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
$as_echo_n "checking for sockaddr_storage... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
# include <sys/types.h>
# include <sys/socket.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
struct sockaddr_storage s
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_struct_sockaddr_storage=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_struct_sockaddr_storage=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
if test $ac_cv_struct_sockaddr_storage = yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_SOCKADDR_STORAGE 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
1993-12-24 06:39:16 -04:00
# checks for compiler characteristics
1994-08-01 09:15:30 -03:00
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
$as_echo_n "checking whether char is unsigned... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_c_char_unsigned+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_c_char_unsigned=no
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_c_char_unsigned=yes
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
$as_echo "$ac_cv_c_char_unsigned" >&6; }
2002-04-12 06:54:03 -03:00
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cat >>confdefs.h <<\_ACEOF
#define __CHAR_UNSIGNED__ 1
_ACEOF
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_c_const+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
/* Ultrix mips cc rejects this. */
typedef int charset[2];
2007-08-30 17:10:57 -03:00
const charset cs;
2002-04-12 06:54:03 -03:00
/* SunOS 4.1.1 cc rejects this. */
2007-08-30 17:10:57 -03:00
char const *const *pcpcc;
char **ppc;
2002-04-12 06:54:03 -03:00
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in
an arm of an if-expression whose if-part is not a constant
expression */
const char *g = "string";
2007-08-30 17:10:57 -03:00
pcpcc = &g + (g ? g-g : 0);
2002-04-12 06:54:03 -03:00
/* HPUX 7.0 cc rejects these. */
2007-08-30 17:10:57 -03:00
++pcpcc;
ppc = (char**) pcpcc;
pcpcc = (char const *const *) ppc;
2002-04-12 06:54:03 -03:00
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
2007-08-30 17:10:57 -03:00
if (s) return 0;
2002-04-12 06:54:03 -03:00
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
2007-08-30 17:10:57 -03:00
if (!foo) return 0;
2002-04-12 06:54:03 -03:00
}
2007-08-30 17:10:57 -03:00
return !cs[0] && !zero.x;
2002-04-12 06:54:03 -03:00
#endif
1993-12-24 06:39:16 -04:00
2002-04-12 06:54:03 -03:00
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_c_const=yes
1993-12-24 06:39:16 -04:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_c_const=no
1993-12-24 06:39:16 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define const /**/
2002-04-12 06:54:03 -03:00
_ACEOF
fi
1994-08-01 09:15:30 -03:00
1995-01-25 20:46:29 -04:00
works=no
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
$as_echo_n "checking for working volatile... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1994-10-11 12:04:27 -03:00
2002-04-12 06:54:03 -03:00
int
main ()
{
volatile int x; x = 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1995-01-25 20:46:29 -04:00
works=yes
1994-10-11 12:04:27 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define volatile /**/
2002-04-12 06:54:03 -03:00
_ACEOF
1994-10-11 12:04:27 -03:00
1994-10-11 12:04:27 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $works" >&5
$as_echo "$works" >&6; }
1994-10-11 12:04:27 -03:00
1995-01-25 20:46:29 -04:00
works=no
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for working signed char" >&5
$as_echo_n "checking for working signed char... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1994-08-01 09:15:30 -03:00
2002-04-12 06:54:03 -03:00
int
main ()
{
signed char c;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
1995-01-25 20:46:29 -04:00
works=yes
1994-08-01 09:15:30 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define signed /**/
2002-04-12 06:54:03 -03:00
_ACEOF
1994-08-01 09:15:30 -03:00
1994-08-01 09:15:30 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $works" >&5
$as_echo "$works" >&6; }
1994-08-01 09:15:30 -03:00
1995-01-25 20:46:29 -04:00
have_prototypes=no
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for prototypes" >&5
$as_echo_n "checking for prototypes... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1994-08-01 09:15:30 -03:00
int foo(int x) { return 0; }
2002-04-12 06:54:03 -03:00
int
main ()
{
return foo(10);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_PROTOTYPES 1
2002-04-12 06:54:03 -03:00
_ACEOF
have_prototypes=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
1994-08-01 09:15:30 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5
$as_echo "$have_prototypes" >&6; }
1995-01-25 20:46:29 -04:00
works=no
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1994-08-01 09:15:30 -03:00
#include <stdarg.h>
1996-08-30 17:58:57 -03:00
int foo(int x, ...) {
va_list va;
va_start(va, x);
va_arg(va, int);
va_arg(va, char *);
va_arg(va, double);
return 0;
}
1994-08-01 09:15:30 -03:00
2002-04-12 06:54:03 -03:00
int
main ()
{
1996-08-30 17:58:57 -03:00
return foo(10, "", 3.14);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_STDARG_PROTOTYPES 1
2002-04-12 06:54:03 -03:00
_ACEOF
works=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
1993-12-24 06:39:16 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $works" >&5
$as_echo "$works" >&6; }
# check for socketpair
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for socketpair" >&5
$as_echo_n "checking for socketpair... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
void *x=socketpair
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# check if sockaddr has sa_len member
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/socket.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
struct sockaddr x;
x.sa_len = 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_SOCKADDR_SA_LEN 1
2002-04-12 06:54:03 -03:00
_ACEOF
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995-01-25 20:46:29 -04:00
va_list_is_array=no
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5
$as_echo_n "checking whether va_list is an array... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1993-12-24 06:39:16 -04:00
#ifdef HAVE_STDARG_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
#endif
2002-04-12 06:54:03 -03:00
int
main ()
{
va_list list1, list2; list1 = list2;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
:
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define VA_LIST_IS_ARRAY 1
2002-04-12 06:54:03 -03:00
_ACEOF
1995-01-25 20:46:29 -04:00
va_list_is_array=yes
1993-12-24 06:39:16 -04:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5
$as_echo "$va_list_is_array" >&6; }
1993-12-24 06:39:16 -04:00
# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
$as_echo_n "checking for gethostbyname_r... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_func_gethostbyname_r+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define gethostbyname_r innocuous_gethostbyname_r
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char gethostbyname_r (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef gethostbyname_r
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname_r ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return gethostbyname_r ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_func_gethostbyname_r=yes
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_func_gethostbyname_r=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
$as_echo "$ac_cv_func_gethostbyname_r" >&6; }
if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
OLD_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
# include <netdb.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
char *name;
struct hostent *he, *res;
char buffer[2048];
int buflen = 2048;
int h_errnop;
(void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R_6_ARG 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
{ $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
# include <netdb.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
char *name;
struct hostent *he;
char buffer[2048];
int buflen = 2048;
int h_errnop;
(void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R_5_ARG 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
{ $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
# include <netdb.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
char *name;
struct hostent *he;
struct hostent_data data;
(void) gethostbyname_r(name, he, &data);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R 1
2002-04-12 06:54:03 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETHOSTBYNAME_R_3_ARG 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS=$OLD_CFLAGS
else
2002-04-12 06:54:03 -03:00
for ac_func in gethostbyname
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
2007-08-30 17:10:57 -03:00
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return $ac_func ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
eval "$as_ac_var=no"
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
done
fi
# checks for system services
# (none yet)
# Linux requires this for correct f.p. operations
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5
$as_echo_n "checking for __fpu_control... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_func___fpu_control+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define __fpu_control innocuous___fpu_control
/* System header to define __stub macros and hopefully few prototypes,
2003-09-25 11:50:04 -03:00
which can conflict with char __fpu_control (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
2003-09-25 11:50:04 -03:00
# include <limits.h>
#else
# include <assert.h>
#endif
#undef __fpu_control
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char __fpu_control ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
2007-08-30 17:10:57 -03:00
#if defined __stub___fpu_control || defined __stub_____fpu_control
choke me
#endif
2003-09-25 11:50:04 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
return __fpu_control ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_func___fpu_control=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_func___fpu_control=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
$as_echo "$ac_cv_func___fpu_control" >&6; }
if test "x$ac_cv_func___fpu_control" = x""yes; then
:
else
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
1995-06-14 20:10:28 -03:00
LIBS="-lieee $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char __fpu_control ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return __fpu_control ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_ieee___fpu_control=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_ieee___fpu_control=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBIEEE 1
_ACEOF
1995-06-14 20:10:28 -03:00
LIBS="-lieee $LIBS"
1993-12-24 06:39:16 -04:00
fi
fi
# Check for --with-fpectl
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5
$as_echo_n "checking for --with-fpectl... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-fpectl was given.
1997-05-08 23:42:48 -03:00
if test "${with_fpectl+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_fpectl;
1997-05-08 23:42:48 -03:00
if test "$withval" != no
2002-04-12 06:54:03 -03:00
then
cat >>confdefs.h <<\_ACEOF
1997-05-08 23:42:48 -03:00
#define WANT_SIGFPE_HANDLER 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
1997-05-08 23:42:48 -03:00
fi
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
2007-08-30 17:10:57 -03:00
fi
1997-05-08 23:42:48 -03:00
1994-08-01 09:15:30 -03:00
# check for --with-libm=...
1996-09-10 15:20:48 -03:00
case $ac_sys_system in
Darwin) ;;
BeOS) ;;
1996-09-10 15:20:48 -03:00
*) LIBM=-lm
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
$as_echo_n "checking for --with-libm=STRING... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-libm was given.
1996-05-28 19:53:48 -03:00
if test "${with_libm+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_libm;
1997-05-08 23:42:48 -03:00
if test "$withval" = no
then LIBM=
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5
$as_echo "force LIBM empty" >&6; }
1997-05-08 23:42:48 -03:00
elif test "$withval" != yes
1994-08-01 09:15:30 -03:00
then LIBM=$withval
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
$as_echo "set LIBM=\"$withval\"" >&6; }
else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
$as_echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
1994-08-01 09:15:30 -03:00
fi
1997-05-08 23:42:48 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
$as_echo "default LIBM=\"$LIBM\"" >&6; }
2007-08-30 17:10:57 -03:00
fi
1994-08-01 09:15:30 -03:00
# check for --with-libc=...
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
$as_echo_n "checking for --with-libc=STRING... " >&6; }
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# Check whether --with-libc was given.
1996-05-28 19:53:48 -03:00
if test "${with_libc+set}" = set; then
2007-08-30 17:10:57 -03:00
withval=$with_libc;
1997-05-08 23:42:48 -03:00
if test "$withval" = no
then LIBC=
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5
$as_echo "force LIBC empty" >&6; }
1997-05-08 23:42:48 -03:00
elif test "$withval" != yes
1994-08-01 09:15:30 -03:00
then LIBC=$withval
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
$as_echo "set LIBC=\"$withval\"" >&6; }
else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
$as_echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
1994-08-01 09:15:30 -03:00
fi
1997-05-08 23:42:48 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
$as_echo "default LIBC=\"$LIBC\"" >&6; }
2007-08-30 17:10:57 -03:00
fi
1994-08-01 09:15:30 -03:00
# ************************************
# * Check for mathematical functions *
# ************************************
LIBS_SAVE=$LIBS
LIBS="$LIBS $LIBM"
# Detect whether system arithmetic is subject to x87-style double
# rounding issues. The result of this test has little meaning on non
# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
# mode is round-to-nearest and double rounding issues are present, and
# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
$as_echo_n "checking for x87-style double rounding... " >&6; }
if test "${ac_cv_x87_double_rounding+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_x87_double_rounding=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
#include <math.h>
int main() {
volatile double x, y, z;
/* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
x = 0.99999999999999989; /* 1-2**-53 */
y = 1./x;
if (y != 1.)
exit(0);
/* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
x = 1e16;
y = 2.99999;
z = x + y;
if (z != 1e16+4.)
exit(0);
/* both tests show evidence of double rounding */
exit(1);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_x87_double_rounding=no
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_x87_double_rounding=yes
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
$as_echo "$ac_cv_x87_double_rounding" >&6; }
if test "$ac_cv_x87_double_rounding" = yes
then
cat >>confdefs.h <<\_ACEOF
#define X87_DOUBLE_ROUNDING 1
_ACEOF
fi
# Multiprocessing check for broken sem_getvalue
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
$as_echo_n "checking for broken sem_getvalue... " >&6; }
if test "${ac_cv_broken_sem_getvalue+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_broken_sem_getvalue=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <semaphore.h>
#include <sys/stat.h>
int main(void){
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
int count;
int res;
if(a==SEM_FAILED){
perror("sem_open");
return 1;
}
res = sem_getvalue(a, &count);
sem_close(a);
return res==-1 ? 1 : 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_broken_sem_getvalue=no
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_broken_sem_getvalue=yes
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
if test $ac_cv_broken_sem_getvalue = yes
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_BROKEN_SEM_GETVALUE 1
_ACEOF
2009-07-17 04:46:46 -03:00
fi
# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
# -0. on some architectures.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_tanh_preserves_zero_sign=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <math.h>
#include <stdlib.h>
int main() {
/* return 0 if either negative zeros don't exist
on this platform or if negative zeros exist
and tanh(-0.) == -0. */
if (atan2(0., -1.) == atan2(-0., -1.) ||
atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
else exit(1);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_tanh_preserves_zero_sign=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_tanh_preserves_zero_sign=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
if test "$ac_cv_tanh_preserves_zero_sign" = yes
then
cat >>confdefs.h <<\_ACEOF
#define TANH_PRESERVES_ZERO_SIGN 1
_ACEOF
fi
2002-04-12 06:54:03 -03:00
for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
do
2009-07-17 04:46:46 -03:00
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif
int
main ()
{
return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
eval "$as_ac_var=yes"
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
ac_res=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
$as_echo "$as_val"'`
if test "x$as_val" = x""yes; then
cat >>confdefs.h <<_ACEOF
2009-07-17 04:46:46 -03:00
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5
$as_echo_n "checking whether isinf is declared... " >&6; }
if test "${ac_cv_have_decl_isinf+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <math.h>
int
main ()
{
#ifndef isinf
(void) isinf;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_isinf=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_have_decl_isinf=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
$as_echo "$ac_cv_have_decl_isinf" >&6; }
if test "x$ac_cv_have_decl_isinf" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ISINF 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ISINF 0
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5
$as_echo_n "checking whether isnan is declared... " >&6; }
if test "${ac_cv_have_decl_isnan+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <math.h>
int
main ()
{
#ifndef isnan
(void) isnan;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_isnan=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_have_decl_isnan=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
$as_echo "$ac_cv_have_decl_isnan" >&6; }
if test "x$ac_cv_have_decl_isnan" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ISNAN 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ISNAN 0
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
$as_echo_n "checking whether isfinite is declared... " >&6; }
if test "${ac_cv_have_decl_isfinite+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <math.h>
int
main ()
{
#ifndef isfinite
(void) isfinite;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_isfinite=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_have_decl_isfinite=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
$as_echo "$ac_cv_have_decl_isfinite" >&6; }
if test "x$ac_cv_have_decl_isfinite" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ISFINITE 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ISFINITE 0
_ACEOF
fi
LIBS=$LIBS_SAVE
# determine what size digit to use for Python's longs
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
$as_echo_n "checking digit size for Python's longs... " >&6; }
# Check whether --enable-big-digits was given.
if test "${enable_big_digits+set}" = set; then
enableval=$enable_big_digits; case $enable_big_digits in
yes)
enable_big_digits=30 ;;
no)
enable_big_digits=15 ;;
15|30)
;;
*)
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
$as_echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $enable_big_digits" >&5
$as_echo "$enable_big_digits" >&6; }
cat >>confdefs.h <<_ACEOF
#define PYLONG_BITS_IN_DIGIT $enable_big_digits
_ACEOF
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no value specified" >&5
$as_echo "no value specified" >&6; }
fi
# check for wchar.h
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_wchar_h+set}" = set; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
$as_echo_n "checking for wchar.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_wchar_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
$as_echo "$ac_cv_header_wchar_h" >&6; }
2002-04-12 06:54:03 -03:00
else
# Is the header compilable?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5
$as_echo_n "checking wchar.h usability... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
$ac_includes_default
#include <wchar.h>
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_header_compiler=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_header_compiler=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
2002-04-12 06:54:03 -03:00
# Is the header present?
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5
$as_echo_n "checking wchar.h presence... " >&6; }
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <wchar.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-04-12 06:54:03 -03:00
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
2002-04-12 06:54:03 -03:00
ac_header_preproc=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
ac_header_preproc=no
fi
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
rm -f conftest.err conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
2002-04-12 06:54:03 -03:00
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-25 11:50:04 -03:00
;;
no:yes:* )
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
2007-08-30 17:10:57 -03:00
( cat <<\_ASBOX
2009-05-20 15:24:08 -03:00
## -------------------------------------- ##
## Report this to http://bugs.python.org/ ##
## -------------------------------------- ##
2003-09-25 11:50:04 -03:00
_ASBOX
2007-08-30 17:10:57 -03:00
) | sed "s/^/$as_me: WARNING: /" >&2
2003-09-25 11:50:04 -03:00
;;
2002-04-12 06:54:03 -03:00
esac
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
$as_echo_n "checking for wchar.h... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_header_wchar_h+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
ac_cv_header_wchar_h=$ac_header_preproc
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
$as_echo "$ac_cv_header_wchar_h" >&6; }
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
if test "x$ac_cv_header_wchar_h" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_WCHAR_H 1
2002-04-12 06:54:03 -03:00
_ACEOF
wchar_h="yes"
else
2002-04-12 06:54:03 -03:00
wchar_h="no"
fi
2002-04-12 06:54:03 -03:00
# determine wchar_t size
if test "$wchar_h" = yes
then
2009-07-17 04:46:46 -03:00
# The cast to long int works around a bug in the HP C Compiler
2007-08-30 17:10:57 -03:00
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
$as_echo_n "checking size of wchar_t... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_sizeof_wchar_t+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2002-04-12 06:54:03 -03:00
else
if test "$cross_compiling" = yes; then
2002-04-12 06:54:03 -03:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <wchar.h>
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <wchar.h>
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <wchar.h>
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <wchar.h>
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_lo=$ac_mid; break
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo= ac_hi=
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <wchar.h>
int
main ()
{
2009-07-17 04:46:46 -03:00
static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
2002-04-12 06:54:03 -03:00
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2002-04-12 06:54:03 -03:00
ac_hi=$ac_mid
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_lo=`expr '(' $ac_mid ')' + 1`
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
done
case $ac_lo in
?*) ac_cv_sizeof_wchar_t=$ac_lo;;
2007-08-30 17:10:57 -03:00
'') if test "$ac_cv_type_wchar_t" = yes; then
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (wchar_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
ac_cv_sizeof_wchar_t=0
fi ;;
2002-04-12 06:54:03 -03:00
esac
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
#include <wchar.h>
2009-07-17 04:46:46 -03:00
static long int longval () { return (long int) (sizeof (wchar_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
2002-04-12 06:54:03 -03:00
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
if (((long int) (sizeof (wchar_t))) < 0)
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
long int i = longval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (wchar_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%ld", i);
2002-04-12 06:54:03 -03:00
}
else
{
2007-08-30 17:10:57 -03:00
unsigned long int i = ulongval ();
2009-07-17 04:46:46 -03:00
if (i != ((long int) (sizeof (wchar_t))))
2007-08-30 17:10:57 -03:00
return 1;
2009-07-17 04:46:46 -03:00
fprintf (f, "%lu", i);
2002-04-12 06:54:03 -03:00
}
2009-07-17 04:46:46 -03:00
/* Do not output a trailing newline, as this causes \r\n confusion
on some platforms. */
2007-08-30 17:10:57 -03:00
return ferror (f) || fclose (f) != 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
ac_cv_sizeof_wchar_t=`cat conftest.val`
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
2007-08-30 17:10:57 -03:00
if test "$ac_cv_type_wchar_t" = yes; then
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: error: cannot compute sizeof (wchar_t)
2003-09-25 11:50:04 -03:00
See \`config.log' for more details." >&2;}
2009-07-17 04:46:46 -03:00
{ (exit 77); exit 77; }; }; }
2007-08-30 17:10:57 -03:00
else
ac_cv_sizeof_wchar_t=0
fi
2002-04-12 06:54:03 -03:00
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
fi
rm -f conftest.val
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<_ACEOF
#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
$as_echo_n "checking for UCS-4 tcl... " >&6; }
have_ucs4_tcl=no
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <tcl.h>
#if TCL_UTF_MAX != 6
# error "NOT UCS4_TCL"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_UCS4_TCL 1
_ACEOF
have_ucs4_tcl=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
$as_echo "$have_ucs4_tcl" >&6; }
2003-09-25 11:50:04 -03:00
# check whether wchar_t is signed or not
if test "$wchar_h" = yes
then
# check whether wchar_t is signed or not
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
$as_echo_n "checking whether wchar_t is signed... " >&6; }
if test "${ac_cv_wchar_t_signed+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_wchar_t_signed=yes
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <wchar.h>
int main()
{
/* Success: exit code 0 */
exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_wchar_t_signed=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_wchar_t_signed=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
$as_echo "$ac_cv_wchar_t_signed" >&6; }
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking what type to use for unicode" >&5
$as_echo_n "checking what type to use for unicode... " >&6; }
2007-08-30 17:10:57 -03:00
# Check whether --enable-unicode was given.
if test "${enable_unicode+set}" = set; then
2007-08-30 17:10:57 -03:00
enableval=$enable_unicode;
else
enable_unicode=yes
2007-08-30 17:10:57 -03:00
fi
if test $enable_unicode = yes
then
# Without any arguments, Py_UNICODE defaults to two-byte mode
case "$have_ucs4_tcl" in
yes) enable_unicode="ucs4"
;;
*) enable_unicode="ucs2"
;;
esac
fi
2002-04-12 06:58:45 -03:00
case "$enable_unicode" in
ucs2) unicode_size="2"
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define Py_UNICODE_SIZE 2
2002-04-12 06:54:03 -03:00
_ACEOF
;;
ucs4) unicode_size="4"
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define Py_UNICODE_SIZE 4
2002-04-12 06:54:03 -03:00
_ACEOF
;;
esac
2002-04-12 06:54:03 -03:00
2002-04-12 06:58:45 -03:00
if test "$enable_unicode" = "no"
then
UNICODE_OBJS=""
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: not used" >&5
$as_echo "not used" >&6; }
else
UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define Py_USING_UNICODE 1
2002-04-12 06:54:03 -03:00
_ACEOF
# wchar_t is only usable if it maps to an unsigned type
if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
-a "$ac_cv_wchar_t_signed" = "no"
then
PY_UNICODE_TYPE="wchar_t"
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_USABLE_WCHAR_T 1
2002-04-12 06:54:03 -03:00
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define PY_UNICODE_TYPE wchar_t
_ACEOF
elif test "$ac_cv_sizeof_short" = "$unicode_size"
then
PY_UNICODE_TYPE="unsigned short"
cat >>confdefs.h <<\_ACEOF
#define PY_UNICODE_TYPE unsigned short
_ACEOF
elif test "$ac_cv_sizeof_long" = "$unicode_size"
then
PY_UNICODE_TYPE="unsigned long"
cat >>confdefs.h <<\_ACEOF
#define PY_UNICODE_TYPE unsigned long
_ACEOF
2009-07-17 04:46:46 -03:00
else
PY_UNICODE_TYPE="no type found"
fi
{ $as_echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
$as_echo "$PY_UNICODE_TYPE" >&6; }
fi
# check for endianness
{ $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if test "${ac_cv_c_bigendian+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_c_bigendian=unknown
# See if we're dealing with a universal compiler.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifndef __APPLE_CC__
not a universal capable compiler
#endif
typedef int dummy;
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
# Check for potential -arch flags. It is not universal unless
# there are some -arch flags. Note that *ppc* also matches
# ppc64. This check is also rather less than ideal.
case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
*-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
esac
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_c_bigendian = unknown; then
# See if sys/param.h defines the BYTE_ORDER macro.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
&& LITTLE_ENDIAN)
bogus endian macros
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
# It does; now see whether it defined to BIG_ENDIAN or not.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_c_bigendian=yes
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_c_bigendian=no
fi
2009-07-17 04:46:46 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test $ac_cv_c_bigendian = unknown; then
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <limits.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
bogus endian macros
#endif
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
# It does; now see whether it defined to _BIG_ENDIAN or not.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <limits.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
#ifndef _BIG_ENDIAN
not big endian
#endif
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_c_bigendian=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_c_bigendian=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test $ac_cv_c_bigendian = unknown; then
# Compile a test program.
if test "$cross_compiling" = yes; then
# Try to guess by grepping values from an object file.
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
short int ascii_mm[] =
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
short int ascii_ii[] =
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
int use_ascii (int i) {
return ascii_mm[i] + ascii_ii[i];
}
short int ebcdic_ii[] =
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
short int ebcdic_mm[] =
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
int use_ebcdic (int i) {
return ebcdic_mm[i] + ebcdic_ii[i];
}
extern int foo;
2002-04-12 06:54:03 -03:00
int
main ()
{
2009-07-17 04:46:46 -03:00
return use_ascii (foo) == use_ebcdic (foo);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
ac_cv_c_bigendian=yes
fi
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
if test "$ac_cv_c_bigendian" = unknown; then
ac_cv_c_bigendian=no
else
# finding both strings is unlikely to happen, but who knows?
ac_cv_c_bigendian=unknown
fi
fi
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
$ac_includes_default
2002-04-12 06:54:03 -03:00
int
main ()
{
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
/* Are we little or big endian? From Harbison&Steele. */
union
{
long int l;
char c[sizeof (long int)];
} u;
u.l = 1;
return u.c[sizeof (long int) - 1] == 1;
2007-08-30 17:10:57 -03:00
;
return 0;
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
ac_cv_c_bigendian=no
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
ac_cv_c_bigendian=yes
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
fi
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
case $ac_cv_c_bigendian in #(
yes)
cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF
;; #(
no)
;; #(
universal)
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
2009-07-17 04:46:46 -03:00
#define AC_APPLE_UNIVERSAL_BUILD 1
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
;; #(
*)
{ { $as_echo "$as_me:$LINENO: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
$as_echo "$as_me: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; } ;;
2009-07-17 04:46:46 -03:00
esac
# Check whether right shifting a negative integer extends the sign bit
# or fills with zeros (like the Cray J90, according to Tim Peters).
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_rshift_extends_sign+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
if test "$cross_compiling" = yes; then
ac_cv_rshift_extends_sign=yes
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int main()
{
exit(((-1)>>3 == -1) ? 0 : 1);
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
ac_cv_rshift_extends_sign=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
ac_cv_rshift_extends_sign=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
$as_echo "$ac_cv_rshift_extends_sign" >&6; }
if test "$ac_cv_rshift_extends_sign" = no
then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
# check for getc_unlocked and related locking functions
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_have_getc_unlocked+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdio.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
FILE *f = fopen("/dev/null", "r");
flockfile(f);
getc_unlocked(f);
funlockfile(f);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_have_getc_unlocked=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_have_getc_unlocked=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
$as_echo "$ac_cv_have_getc_unlocked" >&6; }
if test "$ac_cv_have_getc_unlocked" = yes
then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETC_UNLOCKED 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
# check where readline lives
2006-02-10 16:49:30 -04:00
# save the value of LIBS so we don't actually link Python with readline
LIBS_no_readline=$LIBS
2008-09-07 02:15:58 -03:00
# On some systems we need to link readline to a termcap compatible
# library. NOTE: Keep the precedence of listed libraries synchronised
# with setup.py.
py_cv_lib_readline=no
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking how to link readline libs" >&5
$as_echo_n "checking how to link readline libs... " >&6; }
2008-09-07 02:15:58 -03:00
for py_libtermcap in "" ncursesw ncurses curses termcap; do
if test -z "$py_libtermcap"; then
READLINE_LIBS="-lreadline"
else
READLINE_LIBS="-lreadline -l$py_libtermcap"
fi
LIBS="$READLINE_LIBS $LIBS_no_readline"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char readline ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return readline ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2008-09-07 02:15:58 -03:00
py_cv_lib_readline=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2008-09-07 02:15:58 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2008-09-07 02:15:58 -03:00
if test $py_cv_lib_readline = yes; then
break
fi
done
# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
#AC_SUBST([READLINE_LIBS])
2008-09-07 16:19:04 -03:00
if test $py_cv_lib_readline = no; then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
$as_echo "$READLINE_LIBS" >&6; }
2007-08-30 17:10:57 -03:00
2008-09-07 02:15:58 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBREADLINE 1
_ACEOF
fi
# check for readline 2.1
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lreadline $READLINE_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char rl_callback_handler_install ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return rl_callback_handler_install ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_readline_rl_callback_handler_install=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_readline_rl_callback_handler_install=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_RL_CALLBACK 1
_ACEOF
fi
# check for readline 2.2
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <readline/readline.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
2003-09-25 11:50:04 -03:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
have_readline=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
have_readline=no
fi
2007-08-30 17:10:57 -03:00
rm -f conftest.err conftest.$ac_ext
if test $have_readline = yes
then
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <readline/readline.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-25 11:50:04 -03:00
$EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
_ACEOF
fi
rm -f conftest*
fi
# check for readline 4.0
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lreadline $READLINE_LIBS $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char rl_pre_input_hook ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return rl_pre_input_hook ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_readline_rl_pre_input_hook=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_readline_rl_pre_input_hook=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_RL_PRE_INPUT_HOOK 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
# also in 4.0
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lreadline $READLINE_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char rl_completion_display_matches_hook ();
int
main ()
{
return rl_completion_display_matches_hook ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_lib_readline_rl_completion_display_matches_hook=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_readline_rl_completion_display_matches_hook=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
_ACEOF
fi
# check for readline 4.2
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lreadline $READLINE_LIBS $LIBS"
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
2002-04-12 06:54:03 -03:00
#ifdef __cplusplus
extern "C"
#endif
char rl_completion_matches ();
int
main ()
{
2007-08-30 17:10:57 -03:00
return rl_completion_matches ();
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
2002-04-12 06:54:03 -03:00
ac_cv_lib_readline_rl_completion_matches=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_lib_readline_rl_completion_matches=no
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
2002-04-12 06:54:03 -03:00
LIBS=$ac_check_lib_save_LIBS
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_RL_COMPLETION_MATCHES 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
# also in readline 4.2
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <readline/readline.h>
_ACEOF
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } >/dev/null && {
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
}; then
have_readline=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
have_readline=no
fi
2007-08-30 17:10:57 -03:00
rm -f conftest.err conftest.$ac_ext
if test $have_readline = yes
then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <readline/readline.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_RL_CATCH_SIGNAL 1
_ACEOF
fi
rm -f conftest*
fi
2006-02-10 16:49:30 -04:00
# End of readline checks: restore LIBS
LIBS=$LIBS_no_readline
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for broken nice()" >&5
$as_echo_n "checking for broken nice()... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_broken_nice+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
if test "$cross_compiling" = yes; then
ac_cv_broken_nice=no
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int main()
{
int val1 = nice(1);
if (val1 != -1 && val1 == nice(2))
exit(0);
exit(1);
}
2002-04-12 06:54:03 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
2002-04-12 06:54:03 -03:00
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002-04-12 06:54:03 -03:00
(exit $ac_status); }; }; then
ac_cv_broken_nice=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-04-12 06:54:03 -03:00
( exit $ac_status )
ac_cv_broken_nice=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
$as_echo "$ac_cv_broken_nice" >&6; }
if test "$ac_cv_broken_nice" = yes
then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_BROKEN_NICE 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for broken poll()" >&5
$as_echo_n "checking for broken poll()... " >&6; }
if test "${ac_cv_broken_poll+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_broken_poll=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <poll.h>
2009-07-17 04:46:46 -03:00
int main()
{
struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
2009-07-17 04:46:46 -03:00
int poll_test;
close (42);
2009-07-17 04:46:46 -03:00
poll_test = poll(&poll_struct, 1, 0);
if (poll_test < 0)
2009-07-17 04:46:46 -03:00
return 0;
else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
2009-07-17 04:46:46 -03:00
return 0;
else
2009-07-17 04:46:46 -03:00
return 1;
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_broken_poll=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_broken_poll=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
$as_echo "$ac_cv_broken_poll" >&6; }
if test "$ac_cv_broken_poll" = yes
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_BROKEN_POLL 1
_ACEOF
fi
# Before we can test tzset, we need to check if struct tm has a tm_zone
2005-03-14 17:23:33 -04:00
# (which is not required by ISO C or UNIX spec) and/or if we support
# tzname[]
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
$as_echo_n "checking for struct tm.tm_zone... " >&6; }
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <$ac_cv_struct_tm>
int
main ()
{
static struct tm ac_aggr;
if (ac_aggr.tm_zone)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_tm_tm_zone=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <$ac_cv_struct_tm>
int
main ()
{
static struct tm ac_aggr;
if (sizeof ac_aggr.tm_zone)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_member_struct_tm_tm_zone=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_member_struct_tm_tm_zone=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_TM_TM_ZONE 1
_ACEOF
fi
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_TM_ZONE 1
_ACEOF
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
$as_echo_n "checking whether tzname is declared... " >&6; }
2007-08-30 17:10:57 -03:00
if test "${ac_cv_have_decl_tzname+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
2007-08-30 17:10:57 -03:00
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
int
main ()
{
#ifndef tzname
(void) tzname;
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_have_decl_tzname=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2007-08-30 17:10:57 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_have_decl_tzname=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
$as_echo "$ac_cv_have_decl_tzname" >&6; }
if test "x$ac_cv_have_decl_tzname" = x""yes; then
2007-08-30 17:10:57 -03:00
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TZNAME 1
_ACEOF
else
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_TZNAME 0
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for tzname" >&5
$as_echo_n "checking for tzname... " >&6; }
if test "${ac_cv_var_tzname+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <time.h>
2007-08-30 17:10:57 -03:00
#if !HAVE_DECL_TZNAME
extern char *tzname[];
#endif
int
main ()
{
2007-08-30 17:10:57 -03:00
return tzname[0][0];
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2009-07-17 04:46:46 -03:00
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
$as_test_x conftest$ac_exeext
}; then
ac_cv_var_tzname=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_var_tzname=no
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
$as_echo "$ac_cv_var_tzname" >&6; }
if test $ac_cv_var_tzname = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_TZNAME 1
_ACEOF
fi
fi
2005-03-14 17:23:33 -04:00
# check tzset(3) exists and works like we expect it to
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for working tzset()" >&5
$as_echo_n "checking for working tzset()... " >&6; }
if test "${ac_cv_working_tzset+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_working_tzset=no
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
#include <time.h>
#include <string.h>
#if HAVE_TZNAME
extern char *tzname[];
#endif
int main()
{
/* Note that we need to ensure that not only does tzset(3)
do 'something' with localtime, but it works as documented
in the library reference and as expected by the test suite.
2005-03-14 17:23:33 -04:00
This includes making sure that tzname is set properly if
tm->tm_zone does not exist since it is the alternative way
of getting timezone info.
Red Hat 6.2 doesn't understand the southern hemisphere
2005-03-14 17:23:33 -04:00
after New Year's Day.
*/
2005-03-14 17:23:33 -04:00
time_t groundhogday = 1044144000; /* GMT-based */
time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
putenv("TZ=UTC+0");
tzset();
if (localtime(&groundhogday)->tm_hour != 0)
exit(1);
#if HAVE_TZNAME
/* For UTC, tzname[1] is sometimes "", sometimes " " */
if (strcmp(tzname[0], "UTC") ||
(tzname[1][0] != 0 && tzname[1][0] != ' '))
exit(1);
#endif
putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
tzset();
if (localtime(&groundhogday)->tm_hour != 19)
exit(1);
#if HAVE_TZNAME
if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
exit(1);
#endif
putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
tzset();
if (localtime(&groundhogday)->tm_hour != 11)
exit(1);
#if HAVE_TZNAME
if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
exit(1);
#endif
#if HAVE_STRUCT_TM_TM_ZONE
if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
exit(1);
if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
exit(1);
#endif
exit(0);
}
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_working_tzset=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_working_tzset=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
$as_echo "$ac_cv_working_tzset" >&6; }
if test "$ac_cv_working_tzset" = yes
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_WORKING_TZSET 1
_ACEOF
fi
# Look for subsecond timestamps in struct stat
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
if test "${ac_cv_stat_tv_nsec+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/stat.h>
int
main ()
{
struct stat st;
st.st_mtim.tv_nsec = 1;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_stat_tv_nsec=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_stat_tv_nsec=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
$as_echo "$ac_cv_stat_tv_nsec" >&6; }
if test "$ac_cv_stat_tv_nsec" = yes
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_STAT_TV_NSEC 1
_ACEOF
fi
# Look for BSD style subsecond timestamps in struct stat
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
if test "${ac_cv_stat_tv_nsec2+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/stat.h>
int
main ()
{
struct stat st;
st.st_mtimespec.tv_nsec = 1;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_stat_tv_nsec2=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_stat_tv_nsec2=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
if test "$ac_cv_stat_tv_nsec2" = yes
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_STAT_TV_NSEC2 1
_ACEOF
fi
# On HP/UX 11.0, mvwdelch is a block with a return statement
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <curses.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
int rtn;
rtn = mvwdelch(0,0,0);
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_mvwdelch_is_expression=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_mvwdelch_is_expression=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
if test "$ac_cv_mvwdelch_is_expression" = yes
then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define MVWDELCH_IS_EXPRESSION 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
$as_echo_n "checking whether WINDOW has _flags... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_window_has_flags+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2002-04-12 06:54:03 -03:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-25 11:50:04 -03:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <curses.h>
2002-04-12 06:54:03 -03:00
int
main ()
{
WINDOW *w;
w->_flags = 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
ac_cv_window_has_flags=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2007-08-30 17:10:57 -03:00
ac_cv_window_has_flags=no
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
$as_echo "$ac_cv_window_has_flags" >&6; }
if test "$ac_cv_window_has_flags" = yes
then
2002-04-12 06:54:03 -03:00
cat >>confdefs.h <<\_ACEOF
#define WINDOW_HAS_FLAGS 1
2002-04-12 06:54:03 -03:00
_ACEOF
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for is_term_resized" >&5
$as_echo_n "checking for is_term_resized... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <curses.h>
int
main ()
{
void *x=is_term_resized
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_CURSES_IS_TERM_RESIZED 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for resize_term" >&5
$as_echo_n "checking for resize_term... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <curses.h>
int
main ()
{
void *x=resize_term
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_CURSES_RESIZE_TERM 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for resizeterm" >&5
$as_echo_n "checking for resizeterm... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <curses.h>
int
main ()
{
void *x=resizeterm
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_CURSES_RESIZETERM 1
_ACEOF
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
$as_echo_n "checking for /dev/ptmx... " >&6; }
if test -r /dev/ptmx
then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
cat >>confdefs.h <<\_ACEOF
#define HAVE_DEV_PTMX 1
_ACEOF
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
$as_echo_n "checking for /dev/ptc... " >&6; }
if test -r /dev/ptc
then
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
cat >>confdefs.h <<\_ACEOF
#define HAVE_DEV_PTC 1
_ACEOF
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
$as_echo_n "checking for %zd printf() format support... " >&6; }
if test "${ac_cv_have_size_t_format+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
ac_cv_have_size_t_format=no
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2009-07-17 04:46:46 -03:00
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SSIZE_T
typedef ssize_t Py_ssize_t;
#elif SIZEOF_VOID_P == SIZEOF_LONG
typedef long Py_ssize_t;
#else
typedef int Py_ssize_t;
#endif
int main()
{
char buffer[256];
if(sprintf(buffer, "%zd", (size_t)123) < 0)
return 1;
if (strcmp(buffer, "123"))
return 1;
if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
return 1;
if (strcmp(buffer, "-123"))
return 1;
return 0;
}
2009-07-17 04:46:46 -03:00
_ACEOF
rm -f conftest$ac_exeext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_link") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2007-08-30 17:10:57 -03:00
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_try") 2>&5
ac_status=$?
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2009-07-17 04:46:46 -03:00
ac_cv_have_size_t_format=yes
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
2009-07-17 04:46:46 -03:00
ac_cv_have_size_t_format=no
fi
2009-07-17 04:46:46 -03:00
rm -rf conftest.dSYM
2007-08-30 17:10:57 -03:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
$as_echo "$ac_cv_have_size_t_format" >&6; }
if test $ac_cv_have_size_t_format = yes
then
cat >>confdefs.h <<\_ACEOF
#define PY_FORMAT_SIZE_T "z"
_ACEOF
fi
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
$as_echo_n "checking for socklen_t... " >&6; }
2002-04-12 06:54:03 -03:00
if test "${ac_cv_type_socklen_t+set}" = set; then
2009-07-17 04:46:46 -03:00
$as_echo_n "(cached) " >&6
else
2009-07-17 04:46:46 -03:00
ac_cv_type_socklen_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
2009-07-17 04:46:46 -03:00
if (sizeof (socklen_t))
return 0;
;
return 0;
2009-07-17 04:46:46 -03:00
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int
main ()
{
if (sizeof ((socklen_t)))
return 0;
2002-04-12 06:54:03 -03:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
2007-08-30 17:10:57 -03:00
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2009-07-17 04:46:46 -03:00
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
2007-08-30 17:10:57 -03:00
(eval "$ac_compile") 2>conftest.er1
2002-04-12 06:54:03 -03:00
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007-08-30 17:10:57 -03:00
(exit $ac_status); } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
2009-07-17 04:46:46 -03:00
:
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_socklen_t=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: failed program was:" >&5
2003-09-25 11:50:04 -03:00
sed 's/^/| /' conftest.$ac_ext >&5
2009-07-17 04:46:46 -03:00
fi
2007-08-30 17:10:57 -03:00
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
$as_echo "$ac_cv_type_socklen_t" >&6; }
if test "x$ac_cv_type_socklen_t" = x""yes; then
2002-04-12 06:54:03 -03:00
:
else
cat >>confdefs.h <<\_ACEOF
#define socklen_t int
2002-04-12 06:54:03 -03:00
_ACEOF
fi
for h in `(cd $srcdir;echo Python/thread_*.h)`
do
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
done
SRCDIRS="Parser Grammar Objects Python Modules Mac"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: checking for build directories" >&5
$as_echo_n "checking for build directories... " >&6; }
2001-01-24 13:25:28 -04:00
for dir in $SRCDIRS; do
if test ! -d $dir; then
mkdir $dir
fi
2001-01-24 13:25:28 -04:00
done
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: result: done" >&5
$as_echo "done" >&6; }
1993-12-24 06:39:16 -04:00
# generate output files
ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
2002-04-12 06:54:03 -03:00
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
2002-04-12 06:54:03 -03:00
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems. If it contains results you don't
# want to keep, you may remove or edit it.
#
2002-04-12 06:54:03 -03:00
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
2003-09-25 11:50:04 -03:00
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2002-04-12 06:54:03 -03:00
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
_ACEOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
2007-08-30 17:10:57 -03:00
# So, we kill variables containing newlines.
1995-06-14 20:10:28 -03:00
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
2007-08-30 17:10:57 -03:00
(
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
case $ac_var in #(
2009-07-17 04:46:46 -03:00
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007-08-30 17:10:57 -03:00
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
2009-07-17 04:46:46 -03:00
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007-08-30 17:10:57 -03:00
*) $as_unset $ac_var ;;
esac ;;
esac
done
2002-04-12 06:54:03 -03:00
(set) 2>&1 |
2007-08-30 17:10:57 -03:00
case $as_nl`(ac_space=' '; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
2002-04-12 06:54:03 -03:00
# `set' does not quote correctly, so add quotes (double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \).
sed -n \
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2007-08-30 17:10:57 -03:00
;; #(
2002-04-12 06:54:03 -03:00
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
2007-08-30 17:10:57 -03:00
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002-04-12 06:54:03 -03:00
;;
2007-08-30 17:10:57 -03:00
esac |
sort
) |
2002-04-12 06:54:03 -03:00
sed '
2007-08-30 17:10:57 -03:00
/^ac_cv_env_/b end
2002-04-12 06:54:03 -03:00
t clear
2007-08-30 17:10:57 -03:00
:clear
2002-04-12 06:54:03 -03:00
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
2007-08-30 17:10:57 -03:00
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
:end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
if test -w "$cache_file"; then
test "x$cache_file" != "x/dev/null" &&
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
2002-04-12 06:54:03 -03:00
cat confcache >$cache_file
1995-06-14 20:10:28 -03:00
else
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1995-06-14 20:10:28 -03:00
fi
1993-12-24 06:39:16 -04:00
fi
1995-06-14 20:10:28 -03:00
rm -f confcache
1994-09-12 07:58:40 -03:00
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
DEFS=-DHAVE_CONFIG_H
2003-09-25 11:50:04 -03:00
ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
2007-08-30 17:10:57 -03:00
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2009-07-17 04:46:46 -03:00
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2007-08-30 17:10:57 -03:00
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
# will be set to the directory where LIBOBJS objects are built.
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2003-09-25 11:50:04 -03:00
done
LIBOBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
2009-07-17 04:46:46 -03:00
2002-04-12 06:54:03 -03:00
: ${CONFIG_STATUS=./config.status}
2009-07-17 04:46:46 -03:00
ac_write_fail=0
2002-04-12 06:54:03 -03:00
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2002-04-12 06:54:03 -03:00
#! $SHELL
# Generated by $as_me.
1993-12-24 06:39:16 -04:00
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
2002-04-12 06:54:03 -03:00
# configure, is in config.log if it exists.
2002-04-12 06:54:03 -03:00
debug=false
2003-09-25 11:50:04 -03:00
ac_cs_recheck=false
ac_cs_silent=false
2002-04-12 06:54:03 -03:00
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2002-04-12 06:54:03 -03:00
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
2007-08-30 17:10:57 -03:00
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
2002-04-12 06:54:03 -03:00
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2009-07-17 04:46:46 -03:00
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2003-09-25 11:50:04 -03:00
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2007-08-30 17:10:57 -03:00
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in
*posix*) set -o posix ;;
esac
fi
# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
2009-07-17 04:46:46 -03:00
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
as_echo='printf %s\n'
as_echo_n='printf %s'
else
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
as_echo_n='/usr/ucb/echo -n'
else
2009-07-17 04:46:46 -03:00
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
as_echo_n_body='eval
arg=$1;
case $arg in
*"$as_nl"*)
expr "X$arg" : "X\\(.*\\)$as_nl";
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
esac;
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
'
export as_echo_n_body
as_echo_n='sh -c $as_echo_n_body as_echo'
fi
2009-07-17 04:46:46 -03:00
export as_echo_body
as_echo='sh -c $as_echo_body as_echo'
fi
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
PATH_SEPARATOR=:
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
PATH_SEPARATOR=';'
}
2002-04-12 06:54:03 -03:00
fi
# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2002-04-12 06:54:03 -03:00
as_unset=unset
else
as_unset=false
fi
2003-09-25 11:50:04 -03:00
2007-08-30 17:10:57 -03:00
# IFS
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" "" $as_nl"
# Find who we are. Look in the path if we contain no directory separator.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
2009-07-17 04:46:46 -03:00
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }
fi
2003-09-25 11:50:04 -03:00
# Work around bugs in pre-3.0 UWIN ksh.
2007-08-30 17:10:57 -03:00
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
2003-09-25 11:50:04 -03:00
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
2009-07-17 04:46:46 -03:00
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
2003-09-25 11:50:04 -03:00
# Required to use basename.
2007-08-30 17:10:57 -03:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2003-09-25 11:50:04 -03:00
as_expr=expr
else
as_expr=false
fi
2007-08-30 17:10:57 -03:00
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2003-09-25 11:50:04 -03:00
as_basename=basename
else
as_basename=false
fi
2002-04-12 06:54:03 -03:00
# Name of the executable.
2007-08-30 17:10:57 -03:00
as_me=`$as_basename -- "$0" ||
2002-04-12 06:54:03 -03:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
2007-08-30 17:10:57 -03:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2009-07-17 04:46:46 -03:00
$as_echo X/"$0" |
2007-08-30 17:10:57 -03:00
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
# CDPATH.
$as_unset CDPATH
2003-09-25 11:50:04 -03:00
as_lineno_1=$LINENO
as_lineno_2=$LINENO
test "x$as_lineno_1" != "x$as_lineno_2" &&
2007-08-30 17:10:57 -03:00
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2002-04-12 06:54:03 -03:00
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
2007-08-30 17:10:57 -03:00
# line-number line after each line using $LINENO; the second 'sed'
# does the real work. The second script uses 'N' to pair each
# line-number line with the line containing $LINENO, and appends
# trailing '-' during substitution so that $LINENO is not a special
# case at line end.
2002-04-12 06:54:03 -03:00
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2007-08-30 17:10:57 -03:00
# scripts with optimization help from Paolo Bonzini. Blame Lee
# E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
2002-04-12 06:54:03 -03:00
sed '
2007-08-30 17:10:57 -03:00
s/[$]LINENO.*/&-/
t lineno
b
:lineno
2002-04-12 06:54:03 -03:00
N
2007-08-30 17:10:57 -03:00
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2002-04-12 06:54:03 -03:00
t loop
2007-08-30 17:10:57 -03:00
s/-\n.*//
2002-04-12 06:54:03 -03:00
' >$as_me.lineno &&
2007-08-30 17:10:57 -03:00
chmod +x "$as_me.lineno" ||
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
2007-08-30 17:10:57 -03:00
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
2002-04-12 06:54:03 -03:00
# Exit status is that of the last command.
exit
}
2007-08-30 17:10:57 -03:00
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
case `echo 'x\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
*) ECHO_C='\c';;
esac;;
*)
ECHO_N='-n';;
2002-04-12 06:54:03 -03:00
esac
2007-08-30 17:10:57 -03:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2002-04-12 06:54:03 -03:00
as_expr=expr
else
as_expr=false
fi
2002-04-12 06:54:03 -03:00
rm -f conf$$ conf$$.exe conf$$.file
2007-08-30 17:10:57 -03:00
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
2009-07-17 04:46:46 -03:00
mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
if ln -s conf$$.file conf$$ 2>/dev/null; then
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
2002-04-12 06:54:03 -03:00
as_ln_s='cp -p'
2009-07-17 04:46:46 -03:00
fi
2002-04-12 06:54:03 -03:00
else
as_ln_s='cp -p'
fi
2007-08-30 17:10:57 -03:00
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
2003-09-25 11:50:04 -03:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
test -d ./-p && rmdir ./-p
2003-09-25 11:50:04 -03:00
as_mkdir_p=false
fi
2007-08-30 17:10:57 -03:00
if test -x / >/dev/null 2>&1; then
as_test_x='test -x'
else
if ls -dL / >/dev/null 2>&1; then
as_ls_L_option=L
else
as_ls_L_option=
fi
as_test_x='
eval sh -c '\''
if test -d "$1"; then
2009-07-17 04:46:46 -03:00
test -d "$1/.";
2007-08-30 17:10:57 -03:00
else
case $1 in
2009-07-17 04:46:46 -03:00
-*)set "./$1";;
2007-08-30 17:10:57 -03:00
esac;
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
???[sx]*):;;*)false;;esac;fi
'\'' sh
'
fi
as_executable_p=$as_test_x
2002-04-12 06:54:03 -03:00
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2002-04-12 06:54:03 -03:00
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2002-04-12 06:54:03 -03:00
exec 6>&1
2007-08-30 17:10:57 -03:00
# Save the log message, to keep $[0] and so on meaningful, and to
2002-04-12 06:54:03 -03:00
# report actual input values of CONFIG_FILES etc. instead of their
2007-08-30 17:10:57 -03:00
# values after options handling.
ac_log="
2008-10-03 05:59:41 -03:00
This file was extended by python $as_me 2.7, which was
2009-07-17 04:46:46 -03:00
generated by GNU Autoconf 2.63. Invocation command line was
2002-04-12 06:54:03 -03:00
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
2007-08-30 17:10:57 -03:00
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac
case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2002-04-12 06:54:03 -03:00
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
2007-08-30 17:10:57 -03:00
_ACEOF
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2002-04-12 06:54:03 -03:00
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
2009-07-17 04:46:46 -03:00
Usage: $0 [OPTION]... [FILE]...
2002-04-12 06:54:03 -03:00
-h, --help print this help, then exit
2007-08-30 17:10:57 -03:00
-V, --version print version number and configuration settings, then exit
2009-07-17 04:46:46 -03:00
-q, --quiet, --silent
do not print progress messages
2002-04-12 06:54:03 -03:00
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
2009-07-17 04:46:46 -03:00
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
2002-04-12 06:54:03 -03:00
Configuration files:
$config_files
Configuration headers:
$config_headers
Report bugs to <bug-autoconf@gnu.org>."
2007-08-30 17:10:57 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2002-04-12 06:54:03 -03:00
ac_cs_version="\\
2008-10-03 05:59:41 -03:00
python config.status 2.7
2009-07-17 04:46:46 -03:00
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2002-04-12 06:54:03 -03:00
2009-07-17 04:46:46 -03:00
Copyright (C) 2008 Free Software Foundation, Inc.
2002-04-12 06:54:03 -03:00
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
2007-08-30 17:10:57 -03:00
ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
2009-07-17 04:46:46 -03:00
test -n "\$AWK" || AWK=awk
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
2002-04-12 06:54:03 -03:00
ac_need_defaults=:
while test $# != 0
do
case $1 in
--*=*)
2007-08-30 17:10:57 -03:00
ac_option=`expr "X$1" : 'X\([^=]*\)='`
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2003-09-25 11:50:04 -03:00
ac_shift=:
;;
2007-08-30 17:10:57 -03:00
*)
2003-09-25 11:50:04 -03:00
ac_option=$1
ac_optarg=$2
ac_shift=shift
2002-04-12 06:54:03 -03:00
;;
esac
2003-09-25 11:50:04 -03:00
case $ac_option in
2002-04-12 06:54:03 -03:00
# Handling of the options.
2003-09-25 11:50:04 -03:00
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
2007-08-30 17:10:57 -03:00
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2009-07-17 04:46:46 -03:00
$as_echo "$ac_cs_version"; exit ;;
2007-08-30 17:10:57 -03:00
--debug | --debu | --deb | --de | --d | -d )
2002-04-12 06:54:03 -03:00
debug=: ;;
--file | --fil | --fi | --f )
2003-09-25 11:50:04 -03:00
$ac_shift
2009-07-17 04:46:46 -03:00
case $ac_optarg in
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2002-04-12 06:54:03 -03:00
ac_need_defaults=false;;
--header | --heade | --head | --hea )
2003-09-25 11:50:04 -03:00
$ac_shift
2009-07-17 04:46:46 -03:00
case $ac_optarg in
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
2002-04-12 06:54:03 -03:00
ac_need_defaults=false;;
2007-08-30 17:10:57 -03:00
--he | --h)
# Conflict between --help and --header
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me: error: ambiguous option: $1
2007-08-30 17:10:57 -03:00
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; };;
--help | --hel | -h )
2009-07-17 04:46:46 -03:00
$as_echo "$ac_cs_usage"; exit ;;
2003-09-25 11:50:04 -03:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;;
2002-04-12 06:54:03 -03:00
# This is an error.
2009-07-17 04:46:46 -03:00
-*) { $as_echo "$as_me: error: unrecognized option: $1
2007-08-30 17:10:57 -03:00
Try \`$0 --help' for more information." >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; } ;;
2007-08-30 17:10:57 -03:00
*) ac_config_targets="$ac_config_targets $1"
ac_need_defaults=false ;;
esac
2002-04-12 06:54:03 -03:00
shift
done
2003-09-25 11:50:04 -03:00
ac_configure_extra_args=
if $ac_cs_silent; then
exec 6>/dev/null
ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2003-09-25 11:50:04 -03:00
if \$ac_cs_recheck; then
2009-07-17 04:46:46 -03:00
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
shift
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
CONFIG_SHELL='$SHELL'
2007-08-30 17:10:57 -03:00
export CONFIG_SHELL
2009-07-17 04:46:46 -03:00
exec "\$@"
2003-09-25 11:50:04 -03:00
fi
2002-04-12 06:54:03 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2007-08-30 17:10:57 -03:00
exec 5>>config.log
{
echo
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
2009-07-17 04:46:46 -03:00
$as_echo "$ac_log"
2007-08-30 17:10:57 -03:00
} >&5
2007-08-30 17:10:57 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2007-08-30 17:10:57 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2007-08-30 17:10:57 -03:00
# Handling of arguments.
2002-04-12 06:54:03 -03:00
for ac_config_target in $ac_config_targets
do
2007-08-30 17:10:57 -03:00
case $ac_config_target in
"pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
"Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
"Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
"Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
"Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
"Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
2007-08-30 17:10:57 -03:00
"Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
"Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
"Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }; };;
esac
done
2007-08-30 17:10:57 -03:00
2002-04-12 06:54:03 -03:00
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fi
2003-09-25 11:50:04 -03:00
# Have a temporary directory for convenience. Make it in the build tree
2007-08-30 17:10:57 -03:00
# simply because there is no reason against having it here, and in addition,
2003-09-25 11:50:04 -03:00
# creating and moving files from /tmp can sometimes cause problems.
2007-08-30 17:10:57 -03:00
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
2002-04-12 06:54:03 -03:00
$debug ||
{
2007-08-30 17:10:57 -03:00
tmp=
trap 'exit_status=$?
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
2002-04-12 06:54:03 -03:00
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
2003-09-25 11:50:04 -03:00
2002-04-12 06:54:03 -03:00
{
2007-08-30 17:10:57 -03:00
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2002-04-12 06:54:03 -03:00
test -n "$tmp" && test -d "$tmp"
} ||
{
2007-08-30 17:10:57 -03:00
tmp=./conf$$-$RANDOM
(umask 077 && mkdir "$tmp")
2002-04-12 06:54:03 -03:00
} ||
{
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: cannot create a temporary directory in ." >&2
2002-04-12 06:54:03 -03:00
{ (exit 1); exit 1; }
}
2009-07-17 04:46:46 -03:00
# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
2007-08-30 17:10:57 -03:00
if test -n "$CONFIG_FILES"; then
2009-07-17 04:46:46 -03:00
ac_cr=`echo X | tr X '\015'`
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ac_cs_awk_cr='\\r'
else
ac_cs_awk_cr=$ac_cr
2007-08-30 17:10:57 -03:00
fi
1994-08-01 09:15:30 -03:00
2009-07-17 04:46:46 -03:00
echo 'BEGIN {' >"$tmp/subs1.awk" &&
2007-08-30 17:10:57 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
{
echo "cat >conf$$subs.awk <<_ACEOF" &&
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
echo "_ACEOF"
} >conf$$subs.sh ||
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
2007-08-30 17:10:57 -03:00
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
2009-07-17 04:46:46 -03:00
. ./conf$$subs.sh ||
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
if test $ac_delim_n = $ac_delim_num; then
2007-08-30 17:10:57 -03:00
break
elif $ac_last_try; then
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }; }
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fi
done
2009-07-17 04:46:46 -03:00
rm -f conf$$subs.sh
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\).*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\).*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
N
s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
for (key in S) S_is_set[key] = 1
FS = ""
}
{
line = $ 0
nfields = split(line, field, "@")
substed = 0
len = length(field[1])
for (i = 2; i < nfields; i++) {
key = field[i]
keylen = length(key)
if (S_is_set[key]) {
value = S[key]
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
len += length(value) + length(field[++i])
substed = 1
} else
len += 1 + keylen
}
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
print line
}
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
_ACAWK
2007-08-30 17:10:57 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
{ (exit 1); exit 1; }; }
_ACEOF
2007-08-30 17:10:57 -03:00
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[ ]*\):*/\1/
s/:*$//
s/^[^=]*=[ ]*$//
}'
fi
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2007-08-30 17:10:57 -03:00
fi # test -n "$CONFIG_FILES"
2009-07-17 04:46:46 -03:00
# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF
# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.
# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
if test -z "$ac_t"; then
break
elif $ac_last_try; then
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
{ (exit 1); exit 1; }; }
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fi
done
# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any. Preserve backslash
# newline sequences.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[ ]*#[ ]*define[ ][ ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
for (key in D) D_is_set[key] = 1
FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
line = \$ 0
split(line, arg, " ")
if (arg[1] == "#") {
defundef = arg[2]
mac1 = arg[3]
} else {
defundef = substr(arg[1], 2)
mac1 = arg[2]
}
split(mac1, mac2, "(") #)
macro = mac2[1]
prefix = substr(line, 1, index(line, defundef) - 1)
if (D_is_set[macro]) {
# Preserve the white space surrounding the "#".
print prefix "define", macro P[macro] D[macro]
next
} else {
# Replace #undef with comments. This is necessary, for example,
# in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
if (defundef == "undef") {
print "/*", prefix defundef, macro, "*/"
next
}
}
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
{ (exit 1); exit 1; }; }
fi # test -n "$CONFIG_HEADERS"
2007-08-30 17:10:57 -03:00
2009-07-17 04:46:46 -03:00
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
shift
for ac_tag
2007-08-30 17:10:57 -03:00
do
case $ac_tag in
:[FHLC]) ac_mode=$ac_tag; continue;;
esac
case $ac_mode$ac_tag in
:[FHL]*:*);;
2009-07-17 04:46:46 -03:00
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }; };;
:[FH]-) ac_tag=-:-;;
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
esac
ac_save_IFS=$IFS
IFS=:
set x $ac_tag
IFS=$ac_save_IFS
shift
ac_file=$1
shift
case $ac_mode in
:L) ac_source=$1;;
:[FH])
ac_file_inputs=
for ac_f
do
case $ac_f in
-) ac_f="$tmp/stdin";;
*) # Look for the file first in the build tree, then in the source tree
# (if the path is not absolute). The absolute path cannot be DOS-style,
# because $ac_f cannot contain `:'.
test -f "$ac_f" ||
case $ac_f in
[\\/$]*) false;;
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
esac ||
2009-07-17 04:46:46 -03:00
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2007-08-30 17:10:57 -03:00
{ (exit 1); exit 1; }; };;
esac
2009-07-17 04:46:46 -03:00
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
ac_file_inputs="$ac_file_inputs '$ac_f'"
2007-08-30 17:10:57 -03:00
done
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
2009-07-17 04:46:46 -03:00
configure_input='Generated from '`
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
`' by configure.'
2007-08-30 17:10:57 -03:00
if test x"$ac_file" != x-; then
configure_input="$ac_file. $configure_input"
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
2007-08-30 17:10:57 -03:00
fi
2009-07-17 04:46:46 -03:00
# Neutralize special characters interpreted by sed in replacement strings.
case $configure_input in #(
*\&* | *\|* | *\\* )
ac_sed_conf_input=`$as_echo "$configure_input" |
sed 's/[\\\\&|]/\\\\&/g'`;; #(
*) ac_sed_conf_input=$configure_input;;
esac
2007-08-30 17:10:57 -03:00
case $ac_tag in
2009-07-17 04:46:46 -03:00
*:-:* | *:-) cat >"$tmp/stdin" \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; } ;;
2007-08-30 17:10:57 -03:00
esac
;;
1994-08-01 09:15:30 -03:00
esac
2007-08-30 17:10:57 -03:00
ac_dir=`$as_dirname -- "$ac_file" ||
2002-04-12 06:54:03 -03:00
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
2007-08-30 17:10:57 -03:00
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2009-07-17 04:46:46 -03:00
$as_echo X"$ac_file" |
2007-08-30 17:10:57 -03:00
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
{ as_dir="$ac_dir"
case $as_dir in #(
-*) as_dir=./$as_dir;;
esac
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2003-09-25 11:50:04 -03:00
as_dirs=
2007-08-30 17:10:57 -03:00
while :; do
case $as_dir in #(
2009-07-17 04:46:46 -03:00
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2007-08-30 17:10:57 -03:00
*) as_qdir=$as_dir;;
esac
as_dirs="'$as_qdir' $as_dirs"
as_dir=`$as_dirname -- "$as_dir" ||
2003-09-25 11:50:04 -03:00
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
2007-08-30 17:10:57 -03:00
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2009-07-17 04:46:46 -03:00
$as_echo X"$as_dir" |
2007-08-30 17:10:57 -03:00
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
test -d "$as_dir" && break
2003-09-25 11:50:04 -03:00
done
2007-08-30 17:10:57 -03:00
test -z "$as_dirs" || eval "mkdir $as_dirs"
2009-07-17 04:46:46 -03:00
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2003-09-25 11:50:04 -03:00
{ (exit 1); exit 1; }; }; }
2002-04-12 06:54:03 -03:00
ac_builddir=.
2007-08-30 17:10:57 -03:00
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
2009-07-17 04:46:46 -03:00
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2007-08-30 17:10:57 -03:00
# A ".." for each directory in $ac_dir_suffix.
2009-07-17 04:46:46 -03:00
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2007-08-30 17:10:57 -03:00
case $ac_top_builddir_sub in
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
2002-04-12 06:54:03 -03:00
case $srcdir in
2007-08-30 17:10:57 -03:00
.) # We are building in place.
2002-04-12 06:54:03 -03:00
ac_srcdir=.
2007-08-30 17:10:57 -03:00
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
2002-04-12 06:54:03 -03:00
ac_srcdir=$srcdir$ac_dir_suffix;
2007-08-30 17:10:57 -03:00
ac_top_srcdir=$srcdir
ac_abs_top_srcdir=$srcdir ;;
*) # Relative name.
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_build_prefix$srcdir
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2002-04-12 06:54:03 -03:00
esac
2007-08-30 17:10:57 -03:00
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2002-04-12 06:54:03 -03:00
2007-08-30 17:10:57 -03:00
case $ac_mode in
:F)
#
# CONFIG_FILE
#
2002-04-12 06:54:03 -03:00
case $INSTALL in
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2007-08-30 17:10:57 -03:00
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
esac
2007-08-30 17:10:57 -03:00
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2007-08-30 17:10:57 -03:00
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
2009-07-17 04:46:46 -03:00
ac_sed_dataroot='
/datarootdir/ {
2007-08-30 17:10:57 -03:00
p
q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
2009-07-17 04:46:46 -03:00
'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
2007-08-30 17:10:57 -03:00
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2007-08-30 17:10:57 -03:00
ac_datarootdir_hack='
s&@datadir@&$datadir&g
s&@docdir@&$docdir&g
s&@infodir@&$infodir&g
s&@localedir@&$localedir&g
s&@mandir@&$mandir&g
s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF
# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
2002-04-12 06:54:03 -03:00
$extrasub
_ACEOF
2009-07-17 04:46:46 -03:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2002-04-12 06:54:03 -03:00
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2009-07-17 04:46:46 -03:00
s|@configure_input@|$ac_sed_conf_input|;t t
2007-08-30 17:10:57 -03:00
s&@top_builddir@&$ac_top_builddir_sub&;t t
2009-07-17 04:46:46 -03:00
s&@top_build_prefix@&$ac_top_build_prefix&;t t
2007-08-30 17:10:57 -03:00
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
2009-07-17 04:46:46 -03:00
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; }
2007-08-30 17:10:57 -03:00
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2007-08-30 17:10:57 -03:00
which seems to be undefined. Please make sure it is defined." >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2007-08-30 17:10:57 -03:00
which seems to be undefined. Please make sure it is defined." >&2;}
rm -f "$tmp/stdin"
2002-04-12 06:54:03 -03:00
case $ac_file in
2009-07-17 04:46:46 -03:00
-) cat "$tmp/out" && rm -f "$tmp/out";;
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
esac \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; }
2007-08-30 17:10:57 -03:00
;;
:H)
#
# CONFIG_HEADER
#
2002-04-12 06:54:03 -03:00
if test x"$ac_file" != x-; then
2009-07-17 04:46:46 -03:00
{
$as_echo "/* $configure_input */" \
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
} >"$tmp/config.h" \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; }
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
2002-04-12 06:54:03 -03:00
else
2009-07-17 04:46:46 -03:00
rm -f "$ac_file"
mv "$tmp/config.h" "$ac_file" \
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
{ (exit 1); exit 1; }; }
2002-04-12 06:54:03 -03:00
fi
else
2009-07-17 04:46:46 -03:00
$as_echo "/* $configure_input */" \
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
$as_echo "$as_me: error: could not create -" >&2;}
{ (exit 1); exit 1; }; }
2002-04-12 06:54:03 -03:00
fi
2007-08-30 17:10:57 -03:00
;;
esac
done # for ac_tag
1994-08-01 09:15:30 -03:00
1993-12-24 06:39:16 -04:00
2002-04-12 06:54:03 -03:00
{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
2002-04-12 06:54:03 -03:00
ac_clean_files=$ac_clean_files_save
2009-07-17 04:46:46 -03:00
test $ac_write_fail = 0 ||
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }
2002-04-12 06:54:03 -03:00
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded. So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
ac_cs_success=:
2003-09-25 11:50:04 -03:00
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
2002-04-12 06:54:03 -03:00
exec 5>/dev/null
2003-09-25 11:50:04 -03:00
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2002-04-12 06:54:03 -03:00
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
$ac_cs_success || { (exit 1); exit 1; }
fi
2009-07-17 04:46:46 -03:00
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
2001-01-26 12:15:20 -04:00
echo "creating Modules/Setup"
2001-01-26 12:15:20 -04:00
if test ! -f Modules/Setup
then
cp $srcdir/Modules/Setup.dist Modules/Setup
fi
echo "creating Modules/Setup.local"
2001-01-26 12:15:20 -04:00
if test ! -f Modules/Setup.local
then
echo "# Edit this file for local setup changes" >Modules/Setup.local
fi
echo "creating Makefile"
$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
-s Modules Modules/Setup.config \
Modules/Setup.local Modules/Setup
case $ac_sys_system in
BeOS)
2009-07-17 04:46:46 -03:00
{ $as_echo "$as_me:$LINENO: WARNING:
Support for BeOS is deprecated as of Python 2.6.
See PEP 11 for the gory details.
" >&5
2009-07-17 04:46:46 -03:00
$as_echo "$as_me: WARNING:
Support for BeOS is deprecated as of Python 2.6.
See PEP 11 for the gory details.
" >&2;}
;;
*) ;;
esac
2001-02-19 00:50:49 -04:00
mv config.c Modules