1998-02-09 19:06:40 +00:00
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
2024-07-16 13:20:38 +00:00
# Generated by GNU Autoconf 2.71.
2015-08-16 10:04:46 +00:00
#
#
2024-07-16 13:20:38 +00:00
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
# Inc.
2015-08-16 10:04:46 +00:00
#
1998-02-09 19:06:40 +00:00
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
2015-08-16 10:04:46 +00:00
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
2002-05-02 15:17:54 +00:00
2012-09-20 09:32:00 +00:00
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
2024-07-16 13:20:38 +00:00
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
2002-05-02 15:17:54 +00:00
emulate sh
NULLCMD=:
2012-09-20 09:32:00 +00:00
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2003-09-22 03:00:21 +00:00
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2010-06-12 07:19:26 +00:00
setopt NO_GLOB_SUBST
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
case `(set -o) 2>/dev/null` in #(
*posix*) :
set -o posix ;; #(
*) :
;;
2012-09-20 09:32:00 +00:00
esac
2010-06-12 07:19:26 +00:00
fi
2012-09-20 09:32:00 +00:00
2024-07-16 13:20:38 +00:00
# Reset variables that may have inherited troublesome values from
# the environment.
# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
2012-09-20 09:32:00 +00:00
as_nl='
'
export as_nl
2024-07-16 13:20:38 +00:00
IFS=" "" $as_nl"
PS1='$ '
PS2='> '
PS4='+ '
# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
2012-09-20 09:32:00 +00:00
# The user is always right.
2024-07-16 13:20:38 +00:00
if ${PATH_SEPARATOR+false} :; then
2012-09-20 09:32:00 +00:00
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=';'
}
2012-03-27 17:05:19 +00:00
fi
2003-09-22 03:00:21 +00:00
2010-06-12 07:19:26 +00:00
# Find who we are. Look in the path if we contain no directory separator.
2017-12-20 13:25:41 +00:00
as_myself=
2015-08-16 10:04:46 +00:00
case $0 in #((
2010-06-12 07:19:26 +00:00
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
2015-08-16 10:04:46 +00:00
done
2010-06-12 07:19:26 +00:00
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
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2015-08-16 10:04:46 +00:00
exit 1
2010-06-12 07:19:26 +00:00
fi
2015-08-16 10:04:46 +00:00
2017-12-20 13:25:41 +00:00
# Use a proper internal environment variable to ensure we don't fall
# into an infinite loop, continuously re-executing ourselves.
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
_as_can_reexec=no; export _as_can_reexec;
# We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
*v*x* | *x*v* ) as_opts=-vx ;;
*v* ) as_opts=-v ;;
*x* ) as_opts=-x ;;
* ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
2024-07-16 13:20:38 +00:00
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
2017-12-20 13:25:41 +00:00
fi
# We don't want this to propagate to other subprocesses.
{ _as_can_reexec=; unset _as_can_reexec;}
2015-08-16 10:04:46 +00:00
if test "x$CONFIG_SHELL" = x; then
2024-07-16 13:20:38 +00:00
as_bourne_compatible="as_nop=:
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
2015-08-16 10:04:46 +00:00
emulate sh
NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
# is contrary to our usage. Disable this feature.
alias -g '\${1+\"\$@\"}'='\"\$@\"'
setopt NO_GLOB_SUBST
2024-07-16 13:20:38 +00:00
else \$as_nop
2015-08-16 10:04:46 +00:00
case \`(set -o) 2>/dev/null\` in #(
*posix*) :
set -o posix ;; #(
*) :
;;
esac
fi
"
as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }
exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
2024-07-16 13:20:38 +00:00
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
then :
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
else \$as_nop
2015-08-16 10:04:46 +00:00
exitcode=1; echo positional parameters were not saved.
fi
2017-12-20 13:25:41 +00:00
test x\$exitcode = x0 || exit 1
2024-07-16 13:20:38 +00:00
blah=\$(echo \$(echo blah))
test x\"\$blah\" = xblah || exit 1
2017-12-20 13:25:41 +00:00
test -x / || exit 1"
2015-08-16 10:04:46 +00:00
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
2024-07-16 13:20:38 +00:00
if (eval "$as_required") 2>/dev/null
then :
2015-08-16 10:04:46 +00:00
as_have_required=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_have_required=no
fi
2024-07-16 13:20:38 +00:00
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
as_found=:
case $as_dir in #(
/*)
for as_base in sh bash ksh sh5; do
# Try only shells that exist, to save several forks.
2024-07-16 13:20:38 +00:00
as_shell=$as_dir$as_base
2015-08-16 10:04:46 +00:00
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2024-07-16 13:20:38 +00:00
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
2015-08-16 10:04:46 +00:00
CONFIG_SHELL=$as_shell as_have_required=yes
2024-07-16 13:20:38 +00:00
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
then :
2015-08-16 10:04:46 +00:00
break 2
fi
fi
done;;
esac
as_found=false
done
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
if $as_found
then :
else $as_nop
if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
CONFIG_SHELL=$SHELL as_have_required=yes
fi
fi
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
if test "x$CONFIG_SHELL" != x
then :
2017-12-20 13:25:41 +00:00
export CONFIG_SHELL
# We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
*v*x* | *x*v* ) as_opts=-vx ;;
*v* ) as_opts=-v ;;
*x* ) as_opts=-x ;;
* ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
2024-07-16 13:20:38 +00:00
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2017-12-20 13:25:41 +00:00
exit 255
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
if test x$as_have_required = xno
then :
printf "%s\n" "$0: This script requires a shell more modern than all"
printf "%s\n" "$0: the shells that I found on your system."
if test ${ZSH_VERSION+y} ; then
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
2015-08-16 10:04:46 +00:00
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
fi
exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS
## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
{ eval $1=; unset $1;}
}
as_unset=as_fn_unset
2024-07-16 13:20:38 +00:00
2015-08-16 10:04:46 +00:00
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
2024-07-16 13:20:38 +00:00
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
return $?
}
as_nop=as_fn_nop
2015-08-16 10:04:46 +00:00
# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{
case $as_dir in #(
-*) as_dir=./$as_dir;;
esac
test -d "$as_dir" || eval $as_mkdir_p || {
as_dirs=
while :; do
case $as_dir in #(
2024-07-16 13:20:38 +00:00
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2015-08-16 10:04:46 +00:00
*) as_qdir=$as_dir;;
esac
as_dirs="'$as_qdir' $as_dirs"
as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2024-07-16 13:20:38 +00:00
printf "%s\n" X"$as_dir" |
2015-08-16 10:04:46 +00: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
done
test -z "$as_dirs" || eval "mkdir $as_dirs"
2017-12-20 13:25:41 +00:00
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2015-08-16 10:04:46 +00:00
} # as_fn_mkdir_p
2017-12-20 13:25:41 +00:00
# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
test -f "$1" && test -x "$1"
} # as_fn_executable_p
2015-08-16 10:04:46 +00:00
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
2024-07-16 13:20:38 +00:00
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
2015-08-16 10:04:46 +00:00
eval 'as_fn_append ()
{
eval $1+=\$2
}'
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_fn_append ()
{
eval $1=\$$1\$2
}
fi # as_fn_append
# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
2024-07-16 13:20:38 +00:00
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
2015-08-16 10:04:46 +00:00
eval 'as_fn_arith ()
{
as_val=$(( $* ))
}'
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_fn_arith ()
{
as_val=`expr "$@" || test $? -eq 1`
}
fi # as_fn_arith
2024-07-16 13:20:38 +00:00
# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
return $?
}
as_nop=as_fn_nop
2015-08-16 10:04:46 +00:00
2017-12-20 13:25:41 +00:00
# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
2015-08-16 10:04:46 +00:00
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2017-12-20 13:25:41 +00:00
# script with STATUS, using 1 if that was 0.
2015-08-16 10:04:46 +00:00
as_fn_error ()
{
2017-12-20 13:25:41 +00:00
as_status=$1; test $as_status -eq 0 && as_status=1
if test "$4"; then
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me: error: $2" >&2
2015-08-16 10:04:46 +00:00
as_fn_exit $as_status
} # as_fn_error
2010-06-12 07:19:26 +00:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2003-09-22 03:00:21 +00:00
as_expr=expr
else
as_expr=false
fi
2010-06-12 07:19:26 +00:00
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2003-09-22 03:00:21 +00:00
as_basename=basename
else
as_basename=false
fi
2002-05-02 15:17:54 +00:00
2015-08-16 10:04:46 +00:00
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
2002-05-02 15:17:54 +00:00
2010-06-12 07:19:26 +00:00
as_me=`$as_basename -- "$0" ||
2002-05-02 15:17:54 +00:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
2010-06-12 07:19:26 +00:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2024-07-16 13:20:38 +00:00
printf "%s\n" X/"$0" |
2010-06-12 07:19:26 +00:00
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2010-03-18 05:07:08 +00:00
2015-08-16 10:04:46 +00:00
# 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
2010-03-28 13:18:58 +00:00
2010-04-07 07:26:44 +00:00
2015-08-16 10:04:46 +00:00
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
2010-04-07 07:26:44 +00:00
2017-12-20 13:25:41 +00:00
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
# already done that, so ensure we don't try to do so again and fall
# in an infinite loop. This has already happened in practice.
_as_can_reexec=no; export _as_can_reexec
2015-08-16 10:04:46 +00:00
# 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
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
2010-06-12 07:19:26 +00:00
}
2010-04-07 07:26:44 +00:00
2024-07-16 13:20:38 +00:00
# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
2015-08-16 10:04:46 +00:00
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
case `echo 'xy\c'` in
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
xy) ECHO_C='\c';;
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
ECHO_T=' ';;
esac;;
*)
ECHO_N='-n';;
esac
2024-07-16 13:20:38 +00:00
# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n. New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'
2015-08-16 10:04:46 +00:00
rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
2012-03-21 09:06:40 +00:00
else
2015-08-16 10:04:46 +00:00
rm -f conf$$.dir
mkdir conf$$.dir 2>/dev/null
2012-03-27 17:05:19 +00:00
fi
2015-08-16 10:04:46 +00:00
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.
2017-12-20 13:25:41 +00:00
# In both cases, we have to default to `cp -pR'.
2015-08-16 10:04:46 +00:00
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2017-12-20 13:25:41 +00:00
as_ln_s='cp -pR'
2015-08-16 10:04:46 +00:00
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
2017-12-20 13:25:41 +00:00
as_ln_s='cp -pR'
2015-08-16 10:04:46 +00:00
fi
else
2017-12-20 13:25:41 +00:00
as_ln_s='cp -pR'
2012-03-27 17:05:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p='mkdir -p "$as_dir"'
2011-12-15 09:42:39 +00:00
else
2015-08-16 10:04:46 +00:00
test -d ./-p && rmdir ./-p
as_mkdir_p=false
2011-12-15 09:42:39 +00:00
fi
2017-12-20 13:25:41 +00:00
as_test_x='test -x'
as_executable_p=as_fn_executable_p
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00: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'"
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1
2012-03-21 08:00:33 +00:00
2015-08-16 10:04:46 +00:00
# Name of the host.
2017-12-20 13:25:41 +00:00
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
2015-08-16 10:04:46 +00:00
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
2012-11-28 05:46:21 +00:00
2015-08-16 10:04:46 +00:00
#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
2012-11-28 05:46:21 +00:00
2015-08-16 10:04:46 +00:00
# Identity of this package.
2024-07-16 13:20:38 +00:00
PACKAGE_NAME=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PACKAGE_STRING=''
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
2015-05-13 10:57:56 +00:00
ac_unique_file="Source/NSArray.m"
# Factoring default headers for most tests.
2002-05-02 15:17:54 +00:00
ac_includes_default="\
2024-07-16 13:20:38 +00:00
#include <stddef.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
2002-05-02 15:17:54 +00:00
#endif
2024-07-16 13:20:38 +00:00
#ifdef HAVE_STDLIB_H
2002-05-02 15:17:54 +00:00
# include <stdlib.h>
#endif
2012-09-20 09:32:00 +00:00
#ifdef HAVE_STRING_H
2002-05-02 15:17:54 +00:00
# include <string.h>
#endif
2012-09-20 09:32:00 +00:00
#ifdef HAVE_INTTYPES_H
2002-05-02 15:17:54 +00:00
# include <inttypes.h>
2006-07-07 13:22:37 +00:00
#endif
2012-09-20 09:32:00 +00:00
#ifdef HAVE_STDINT_H
2010-06-12 07:19:26 +00:00
# include <stdint.h>
#endif
2024-07-16 13:20:38 +00:00
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
2012-09-20 09:32:00 +00:00
#ifdef HAVE_UNISTD_H
2002-05-02 15:17:54 +00:00
# include <unistd.h>
#endif"
2024-07-16 13:20:38 +00:00
ac_header_c_list=
2012-09-20 09:32:00 +00:00
ac_subst_vars='LTLIBOBJS
LIBOBJS
GCC_VERSION
SUBMINOR_VERSION
MINOR_VERSION
MAJOR_VERSION
VERSION
GNUSTEP_INSTALL_GDOMAP_AS_SETUID
GNUSTEP_GDOMAP_PORT_OVERRIDE
WARN_FLAGS
LDIR_FLAGS
INCLUDE_FLAGS
USE_GMP
2020-11-29 11:57:47 +00:00
GS_HAVE_NSURLSESSION
HAVE_LIBCURL
2016-08-19 12:20:24 +00:00
HAVE_LIBDISPATCH_RUNLOOP
2012-09-20 09:32:00 +00:00
HAVE_LIBDISPATCH
HAVE_ICU
ICU_LIBS
2019-01-06 19:57:59 +00:00
ICU_CFLAGS
2012-09-20 09:32:00 +00:00
HAVE_AVAHI
HAVE_MDNS
HAVE_GNUTLS
TLS_LIBS
TLS_CFLAGS
TLS_CONFIG
HAVE_LIBXML
HAVE_LIBXSLT
2021-08-03 14:54:23 +00:00
XSLT_LIBS
XSLT_CFLAGS
2012-09-20 09:32:00 +00:00
XML_CONFIG
XML2_CONFIG
2020-02-05 22:10:53 +00:00
XML_LIBS
XML_CFLAGS
2012-09-20 09:32:00 +00:00
WITH_FFI
GS_FAKE_MAIN
GS_PASS_ARGUMENTS
HAVE_INET_NTOP
HAVE_INET_PTON
USE_ZLIB
DEFINE_UINTPTR_T
DEFINE_INTPTR_T
DEFINE_UINT64_T
DEFINE_INT64_T
DEFINE_UINT32_T
DEFINE_INT32_T
DEFINE_UINT16_T
DEFINE_INT16_T
DEFINE_UINT8_T
DEFINE_INT8_T
2013-10-29 09:14:45 +00:00
INCLUDE_INTTYPES
2012-09-20 09:32:00 +00:00
HAVE_PTS_STREAM_MODULES
OBJCFLAGS
HAVE_OBJC_SYNC_ENTER
BASE_NATIVE_OBJC_EXCEPTIONS
2024-07-16 13:20:38 +00:00
EGREP
GREP
2012-09-20 09:32:00 +00:00
GS_NONFRAGILE
HAVE_BLOCKS
OBJC2RUNTIME
OBJCSYNC
NX_CONST_STRING_CLASS
NX_CONST_STRING_OBJCFLAGS
GS_HAVE_OBJC_ROOT_CLASS_ATTR
GS_ALIGNOF_COND_T
2021-07-28 14:17:47 +00:00
GS_ALIGNOF_COND_MUTEX_T
2012-09-20 09:32:00 +00:00
GS_ALIGNOF_MUTEX_T
GS_SIZEOF_COND_T
2021-07-28 14:17:47 +00:00
GS_SIZEOF_COND_MUTEX_T
2012-09-20 09:32:00 +00:00
GS_SIZEOF_MUTEX_T
2021-07-28 14:17:47 +00:00
HAVE_WIN32_THREADS_AND_LOCKS
2012-09-20 09:32:00 +00:00
DYNAMIC_LINKER
2013-11-26 22:55:47 +00:00
BUGGY_PTR_LIMITS
GS_UINTPTR_MAX
GS_INTPTR_MIN
GS_INTPTR_MAX
2012-09-20 09:32:00 +00:00
_GSC_S_LNG_LNG
_GSC_S_LNG
_GSC_S_INT
_GSC_S_SHT
GS_FLT64
GS_FLT32
GS_HAVE_I128
GS_UINT128
GS_SINT128
GS_HAVE_I64
GS_UINT64
GS_SINT64
GS_UINT32
GS_SINT32
GS_UINT16
GS_SINT16
GS_UADDR
GS_SADDR
ac_cv_sizeof_voidp
ac_cv_sizeof_double
ac_cv_sizeof_float
ac_cv_sizeof_long_long
ac_cv_sizeof_long
ac_cv_sizeof_int
ac_cv_sizeof_short
GS_UINT8
GS_SINT8
GS_WORDS_BIGENDIAN
2018-01-15 10:59:30 +00:00
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH
2018-01-15 10:45:16 +00:00
PKG_CONFIG
2012-09-20 09:32:00 +00:00
WHOAMI
2018-07-10 09:49:31 +00:00
CLANG_CC
2012-09-20 09:32:00 +00:00
CPP
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
GNUSTEP_BASE_RELATIVE_PATHS
GNUSTEP_BASE_DOMAIN
target_os
target_vendor
target_cpu
target
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
2024-03-27 12:30:41 +00:00
BASELIBS
BASEFLAGS
2012-09-20 09:32:00 +00:00
BASE_NONFRAGILE_ABI
target_alias
host_alias
2012-08-16 12:31:16 +00:00
build_alias
2012-09-20 09:32:00 +00:00
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
2024-07-16 13:20:38 +00:00
runstatedir
2012-09-20 09:32:00 +00:00
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
2015-08-16 10:04:46 +00:00
PACKAGE_URL
2012-09-20 09:32:00 +00:00
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
with_cross_compilation_info
with_config_file
enable_environment_config_file
enable_importing_config_file
with_default_config
with_installation_domain
2014-07-25 10:54:52 +00:00
enable_largefile
2012-09-20 09:32:00 +00:00
enable_nxconstantstring
enable_bfd
2020-07-27 23:02:55 +00:00
with_unwind
2012-09-20 09:32:00 +00:00
enable_procfs
enable_procfs_psinfo
enable_pass_arguments
enable_fake_main
with_include_flags
with_library_flags
enable_libffi
enable_ffcall
enable_invocations
with_ffi_include
with_ffi_library
enable_iconv
with_libiconv_library
2021-11-16 00:23:57 +00:00
with_libiconv_include
2012-09-20 09:32:00 +00:00
enable_stricticonv
enable_xml
with_xml_prefix
enable_xmltest
enable_xslt
enable_tls
with_tls_prefix
enable_tlstest
enable_zeroconf
with_zeroconf_api
enable_icu
enable_libdispatch
2020-11-29 11:57:47 +00:00
with_dispatch_include
with_dispatch_library
2022-08-23 16:55:40 +00:00
with_curl
2020-11-29 11:57:47 +00:00
enable_nsurlsession
2012-09-20 09:32:00 +00:00
with_gmp_include
with_gmp_library
with_gdomap_port
enable_setuid_gdomap
'
ac_precious_vars='build_alias
2012-08-16 12:31:16 +00:00
host_alias
target_alias
CC
CFLAGS
LDFLAGS
2012-09-20 09:32:00 +00:00
LIBS
2012-08-16 12:31:16 +00:00
CPPFLAGS
2018-01-15 10:59:30 +00:00
CPP
PKG_CONFIG
PKG_CONFIG_PATH
2019-01-06 19:57:59 +00:00
PKG_CONFIG_LIBDIR
2020-02-05 22:10:53 +00:00
XML_CFLAGS
XML_LIBS
2021-08-03 14:54:23 +00:00
XSLT_CFLAGS
XSLT_LIBS
2019-01-06 19:57:59 +00:00
ICU_CFLAGS
ICU_LIBS'
2016-06-28 10:40:33 +00:00
2012-08-16 12:31:16 +00:00
# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
2012-09-20 09:32:00 +00:00
ac_unrecognized_opts=
ac_unrecognized_sep=
2012-08-16 12:31:16 +00:00
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
2012-02-07 10:18:52 +00:00
prefix=NONE
1998-02-09 19:06:40 +00:00
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
2002-05-02 15:17:54 +00: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.
2010-06-12 07:19:26 +00:00
# (The list follows the same order as the GNU Coding Standards.)
1998-02-09 19:06:40 +00:00
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
2010-06-12 07:19:26 +00:00
datarootdir='${prefix}/share'
datadir='${datarootdir}'
1998-02-09 19:06:40 +00:00
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
2024-07-16 13:20:38 +00:00
runstatedir='${localstatedir}/run'
1998-02-09 19:06:40 +00:00
includedir='${prefix}/include'
oldincludedir='/usr/include'
2010-06-12 07:19:26 +00:00
docdir='${datarootdir}/doc/${PACKAGE}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'
1998-02-09 19:06:40 +00:00
ac_prev=
2010-06-12 07:19:26 +00:00
ac_dashdash=
1998-02-09 19:06:40 +00:00
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
2010-06-12 07:19:26 +00:00
eval $ac_prev=\$ac_option
1998-02-09 19:06:40 +00:00
ac_prev=
continue
fi
2010-06-12 07:19:26 +00:00
case $ac_option in
2017-12-20 13:25:41 +00:00
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
*=) ac_optarg= ;;
*) ac_optarg=yes ;;
2010-06-12 07:19:26 +00:00
esac
1998-02-09 19:06:40 +00:00
2010-06-12 07:19:26 +00:00
case $ac_dashdash$ac_option in
--)
ac_dashdash=yes ;;
1998-02-09 19:06:40 +00:00
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2002-05-02 15:17:54 +00:00
bindir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-build | --build | --buil | --bui | --bu)
2002-05-02 15:17:54 +00:00
ac_prev=build_alias ;;
1998-02-09 19:06:40 +00:00
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
2002-05-02 15:17:54 +00:00
build_alias=$ac_optarg ;;
1998-02-09 19:06:40 +00: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-05-02 15:17:54 +00:00
cache_file=$ac_optarg ;;
--config-cache | -C)
cache_file=config.cache ;;
1998-02-09 19:06:40 +00:00
2010-06-12 07:19:26 +00:00
-datadir | --datadir | --datadi | --datad)
1998-02-09 19:06:40 +00:00
ac_prev=datadir ;;
2010-06-12 07:19:26 +00:00
-datadir=* | --datadir=* | --datadi=* | --datad=*)
2002-05-02 15:17:54 +00:00
datadir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
2010-06-12 07:19:26 +00:00
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
| --dataroo | --dataro | --datar)
ac_prev=datarootdir ;;
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
datarootdir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-disable-* | --disable-*)
2012-09-20 09:32:00 +00:00
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1998-02-09 19:06:40 +00:00
# Reject names that are not valid shell variable names.
2012-09-20 09:32:00 +00:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2024-07-16 13:20:38 +00:00
as_fn_error $? "invalid feature name: \`$ac_useropt'"
2012-09-20 09:32:00 +00:00
ac_useropt_orig=$ac_useropt
2024-07-16 13:20:38 +00:00
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2012-09-20 09:32:00 +00:00
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 ;;
2010-06-12 07:19:26 +00: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 ;;
1998-02-09 19:06:40 +00:00
-enable-* | --enable-*)
2012-09-20 09:32:00 +00:00
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1998-02-09 19:06:40 +00:00
# Reject names that are not valid shell variable names.
2012-09-20 09:32:00 +00:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2024-07-16 13:20:38 +00:00
as_fn_error $? "invalid feature name: \`$ac_useropt'"
2012-09-20 09:32:00 +00:00
ac_useropt_orig=$ac_useropt
2024-07-16 13:20:38 +00:00
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2012-09-20 09:32:00 +00:00
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 ;;
1998-02-09 19:06:40 +00: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-05-02 15:17:54 +00:00
exec_prefix=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
2002-05-02 15:17:54 +00: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 ;;
1998-02-09 19:06:40 +00:00
-host | --host | --hos | --ho)
2002-05-02 15:17:54 +00:00
ac_prev=host_alias ;;
1998-02-09 19:06:40 +00:00
-host=* | --host=* | --hos=* | --ho=*)
2002-05-02 15:17:54 +00:00
host_alias=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
2010-06-12 07:19:26 +00:00
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
ac_prev=htmldir ;;
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
| --ht=*)
htmldir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
2002-05-02 15:17:54 +00:00
includedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2002-05-02 15:17:54 +00:00
infodir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
2002-05-02 15:17:54 +00:00
libdir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
2002-05-02 15:17:54 +00:00
libexecdir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
2010-06-12 07:19:26 +00:00
-localedir | --localedir | --localedi | --localed | --locale)
ac_prev=localedir ;;
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
localedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-localstatedir | --localstatedir | --localstatedi | --localstated \
2010-06-12 07:19:26 +00:00
| --localstate | --localstat | --localsta | --localst | --locals)
1998-02-09 19:06:40 +00:00
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2010-06-12 07:19:26 +00:00
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2002-05-02 15:17:54 +00:00
localstatedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2002-05-02 15:17:54 +00:00
mandir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
2002-05-02 15:17:54 +00:00
| --no-cr | --no-c | -n)
1998-02-09 19:06:40 +00: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 ;;
-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-05-02 15:17:54 +00:00
oldincludedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2002-05-02 15:17:54 +00:00
prefix=$ac_optarg ;;
1998-02-09 19:06:40 +00: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-05-02 15:17:54 +00:00
program_prefix=$ac_optarg ;;
1998-02-09 19:06:40 +00: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-05-02 15:17:54 +00:00
program_suffix=$ac_optarg ;;
1998-02-09 19:06:40 +00: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-05-02 15:17:54 +00:00
program_transform_name=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
2010-06-12 07:19:26 +00: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 ;;
1998-02-09 19:06:40 +00:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
2024-07-16 13:20:38 +00:00
-runstatedir | --runstatedir | --runstatedi | --runstated \
| --runstate | --runstat | --runsta | --runst | --runs \
| --run | --ru | --r)
ac_prev=runstatedir ;;
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
| --run=* | --ru=* | --r=*)
runstatedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
2002-05-02 15:17:54 +00:00
sbindir=$ac_optarg ;;
1998-02-09 19:06:40 +00: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-05-02 15:17:54 +00:00
sharedstatedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
2002-05-02 15:17:54 +00:00
site=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2002-05-02 15:17:54 +00:00
srcdir=$ac_optarg ;;
1998-02-09 19:06:40 +00: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-05-02 15:17:54 +00:00
sysconfdir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-target | --target | --targe | --targ | --tar | --ta | --t)
2002-05-02 15:17:54 +00:00
ac_prev=target_alias ;;
1998-02-09 19:06:40 +00:00
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2002-05-02 15:17:54 +00:00
target_alias=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
2002-05-02 15:17:54 +00:00
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
1998-02-09 19:06:40 +00:00
-with-* | --with-*)
2012-09-20 09:32:00 +00:00
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1998-02-09 19:06:40 +00:00
# Reject names that are not valid shell variable names.
2012-09-20 09:32:00 +00:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2024-07-16 13:20:38 +00:00
as_fn_error $? "invalid package name: \`$ac_useropt'"
2012-09-20 09:32:00 +00:00
ac_useropt_orig=$ac_useropt
2024-07-16 13:20:38 +00:00
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2012-09-20 09:32:00 +00:00
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 ;;
1998-02-09 19:06:40 +00:00
-without-* | --without-*)
2012-09-20 09:32:00 +00:00
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1998-02-09 19:06:40 +00:00
# Reject names that are not valid shell variable names.
2012-09-20 09:32:00 +00:00
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2024-07-16 13:20:38 +00:00
as_fn_error $? "invalid package name: \`$ac_useropt'"
2012-09-20 09:32:00 +00:00
ac_useropt_orig=$ac_useropt
2024-07-16 13:20:38 +00:00
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2012-09-20 09:32:00 +00:00
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 ;;
1998-02-09 19:06:40 +00:00
--x)
# Obsolete; use --with-x.
with_x=yes ;;
-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-05-02 15:17:54 +00:00
x_includes=$ac_optarg ;;
1998-02-09 19:06:40 +00: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-05-02 15:17:54 +00:00
x_libraries=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
2017-12-20 13:25:41 +00:00
-*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
1998-02-09 19:06:40 +00:00
;;
2002-05-02 15:17:54 +00:00
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
2015-08-16 10:04:46 +00:00
case $ac_envvar in #(
'' | [0-9]* | *[!_$as_cr_alnum]* )
2017-12-20 13:25:41 +00:00
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2015-08-16 10:04:46 +00:00
esac
2010-06-12 07:19:26 +00:00
eval $ac_envvar=\$ac_optarg
2002-05-02 15:17:54 +00:00
export $ac_envvar ;;
1998-02-09 19:06:40 +00:00
*)
2002-05-02 15:17:54 +00:00
# FIXME: should be removed in autoconf 3.0.
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2002-05-02 15:17:54 +00:00
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2017-12-20 13:25:41 +00:00
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1998-02-09 19:06:40 +00:00
;;
esac
done
if test -n "$ac_prev"; then
2002-05-02 15:17:54 +00:00
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2017-12-20 13:25:41 +00:00
as_fn_error $? "missing argument to $ac_option"
2012-03-02 06:53:16 +00:00
fi
2012-09-20 09:32:00 +00:00
if test -n "$ac_unrecognized_opts"; then
case $enable_option_checking in
no) ;;
2017-12-20 13:25:41 +00:00
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2024-07-16 13:20:38 +00:00
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2012-09-20 09:32:00 +00:00
esac
fi
# Check all directory arguments for consistency.
2010-06-12 07:19:26 +00:00
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2024-07-16 13:20:38 +00:00
libdir localedir mandir runstatedir
2010-04-12 17:44:20 +00:00
do
2010-06-12 07:19:26 +00:00
eval ac_val=\$$ac_var
2012-09-20 09:32:00 +00: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.
2010-06-12 07:19:26 +00:00
case $ac_val in
[\\/$]* | ?:[\\/]* ) continue;;
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1998-02-09 19:06:40 +00:00
esac
2017-12-20 13:25:41 +00:00
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1998-02-09 19:06:40 +00:00
done
2002-05-02 15:17:54 +00: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
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
fi
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
test "$silent" = yes && exec 6>/dev/null
1998-02-09 19:06:40 +00:00
2010-06-12 07:19:26 +00:00
ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2017-12-20 13:25:41 +00:00
as_fn_error $? "working directory cannot be determined"
2010-06-12 07:19:26 +00:00
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2017-12-20 13:25:41 +00:00
as_fn_error $? "pwd does not report name of working directory"
2010-06-12 07:19:26 +00:00
1998-02-09 19:06:40 +00:00
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
2010-06-12 07:19:26 +00:00
# Try the directory containing this script, then the parent directory.
2012-09-20 09:32:00 +00: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 ||
2024-07-16 13:20:38 +00:00
printf "%s\n" X"$as_myself" |
2010-06-12 07:19:26 +00:00
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
1998-02-09 19:06:40 +00:00
srcdir=$ac_confdir
2010-06-12 07:19:26 +00:00
if test ! -r "$srcdir/$ac_unique_file"; then
1998-02-09 19:06:40 +00:00
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
2010-06-12 07:19:26 +00:00
if test ! -r "$srcdir/$ac_unique_file"; then
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2017-12-20 13:25:41 +00:00
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2010-04-12 17:44:20 +00:00
fi
2010-06-12 07:19:26 +00:00
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
2017-12-20 13:25:41 +00:00
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2010-06-12 07:19:26 +00: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-05-02 15:17:54 +00: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
\`configure' configures this package to adapt to many kinds of systems.
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
2017-12-20 13:25:41 +00:00
-q, --quiet, --silent do not print \`checking ...' messages
2002-05-02 15:17:54 +00:00
--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
2012-09-20 09:32:00 +00:00
[$ac_default_prefix]
2002-05-02 15:17:54 +00:00
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2012-09-20 09:32:00 +00:00
[PREFIX]
2002-05-02 15:17:54 +00: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:
2012-09-20 09:32:00 +00: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]
2024-07-16 13:20:38 +00:00
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2012-09-20 09:32:00 +00:00
--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/PACKAGE]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
2002-05-02 15:17:54 +00:00
_ACEOF
cat <<\_ACEOF
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
--target=TARGET configure for building compilers for TARGET [HOST]
_ACEOF
fi
if test -n "$ac_init_help"; then
cat <<\_ACEOF
Optional Features:
2012-09-20 09:32:00 +00:00
--disable-option-checking ignore unrecognized --enable/--with options
2002-05-02 15:17:54 +00:00
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2010-04-18 18:18:45 +00:00
--disable-environment-config-file
Disables the use of the GNUSTEP_CONFIG_FILE
environment variable to specify/override
the location of the GNUstep config file
at runtime. This option is occasionally
useful to disable the environment variable
for sites which wish to 'lock down' users
to always work with a specific system-wide
configuration. On unix-like systems the
default is for this option to be enabled.
It is disabled by default on windows systems
so that the base library will not use a
config file intended for the gnustep-make
system (and containing unix-style paths
2014-02-02 08:57:42 +00:00
which cannot be used by windows apps).
2010-04-18 18:18:45 +00:00
Normally this should be left at its default
setting.
--disable-importing-config-file
Disable importing of an existing GNUstep config
file and use inbuilt defaults instead.
2014-07-25 10:54:52 +00:00
--disable-largefile omit support for large files
2010-06-16 07:58:04 +00:00
--enable-nxconstantstring
Enables the use of the NXConstantString class for old compilers.
2010-01-24 17:13:03 +00:00
--enable-bfd
Enables the use of libbfd to provide symbolic stack traces.
Enabling this option provides support for symbolic stack traces
on platforms where the backtrace_symbols() function is not
available or does not work properly.
Enabling this option also has the effect of changing the license
of gnustep-base from LGPL to GPL since libbfd uses the GPL license
2002-05-02 15:17:54 +00:00
--enable-procfs Use /proc filesystem (default)
2005-12-05 19:37:33 +00:00
--enable-procfs-psinfo Use /proc/%pid% to get info
2002-05-02 15:17:54 +00:00
--enable-pass-arguments Force user main call to NSProcessInfo initialize
--enable-fake-main Force redefine of user main function
2010-04-11 08:57:46 +00:00
--disable-libffi Disable use of libffi library
2010-03-14 15:33:37 +00:00
--enable-ffcall Enable use of the deprecated ffcall library
2012-04-16 08:57:45 +00:00
--disable-invocations Build even if invocation-dependencies are not met
--disable-iconv Build even if iconv is not available
--enable-stricticonv Build even if iconv is strict
--disable-xml Build even if XML-dependencies are not met
2004-10-26 19:08:17 +00:00
--disable-xmltest Do not try to compile and run a test XML program
2012-04-16 08:57:45 +00:00
--disable-xslt Build even if XSLT-dependency is not met
2008-01-04 13:06:14 +00:00
--disable-tls Disable use of GNUTLS
--disable-tlstest Do not try to compile and run a test TLS program
2009-03-12 10:06:06 +00:00
--disable-zeroconf Disable NSNetServices support
2012-03-27 17:05:19 +00:00
--disable-icu Disable International Components for Unicode
--disable-libdispatch Disable dispatching blocks via libdispatch
2020-11-29 11:57:47 +00:00
--disable-nsurlsession Disable support for NSURLSession
2010-06-02 10:17:37 +00:00
2010-06-10 09:51:40 +00:00
--enable-setuid-gdomap Enable installing gdomap as a setuid
executable. By default, it is installed
as a normal program intended to be started
by root at system boot time, but it can
also be started up automatically
2010-06-02 10:17:37 +00:00
by any user at any time. Use this
2010-06-10 09:51:40 +00:00
option if you are happy having the program
started automatically on demand.
2010-06-02 10:17:37 +00:00
2002-05-02 15:17:54 +00:00
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2012-08-25 21:44:02 +00:00
--with-cross-compilation-info=PATH
Specify path to the configuration file that
contains information for the configure script in
case of cross compilation. This information
replaces those obtained from running programmes
during the configuration phase.
2009-01-19 15:50:51 +00:00
--with-config-file=PATH Specify path to the GNUstep config file.
This is the location to be used by the base
library to locate path information at
application or tool runtime.
This file might not even exist now; it is
not read at configure time. The base library
will only read it at runtime.
If unspecified, this uses the same value as
the GNUstep make package on unix-like systems,
but uses ./GNUstep.conf on mingw so that
it is relative to the location of the
base library DLL.
If a leading './' is specified, the path
is taken to be relative to the base library
linked runtime, not all operating systems
can support this, so on some platforms you
may need to specify the location of the
config file using the GNUSTEP_CONFIG_FILE
environment variable at runtime.
If a trailing '/' is specified, the path is
used for locating domains but no GNUstep
config file is read at runtime.
--with-default-config=PATH Specify path to a GNUstep config file to be
imported at configure time (now) and used to
provide default values for the base library
to use at runtime if no GNUstep config file
is found at runtime. If this is not specified
2011-10-27 07:43:49 +00:00
then the path from the gnustep-make package
is used.
2010-04-18 18:18:45 +00:00
--with-installation-domain=DOMAIN
Specify the domain (SYSTEM, LOCAL,
NETWORK or USER) into which
gnustep-base will be installed.
Whenever relative paths are hardcoded
into gnustep-base (at the moment, this
happens only on MinGW) this option
must be used and must match the domain
where you will be installing
gnustep-base.
If this is not specified, the output of
gnustep-config --installation-domain-for=gnustep-base
(which should normally be LOCAL) is used.
2020-07-27 23:02:55 +00:00
--without-unwind Ignore unwind if found and disable it
2010-04-18 18:18:45 +00:00
--with-include-flags=FLAGS Specify all include flags at once
--with-library-flags=FLAGS Specify all library flags at once
--with-ffi-include=PATH Include path for ffi headers
--with-ffi-library=PATH Library path for ffi libs
--with-libiconv-library=PATH Library path for libiconv libraries
2021-11-16 00:23:57 +00:00
--with-libiconv-include=PATH Include path for libiconv header
2010-04-18 18:18:45 +00:00
--with-xml-prefix=PFX Prefix where libxml is installed (optional)
--with-tls-prefix=PFX Prefix where libgnutls is installed (optional)
2010-07-13 10:35:13 +00:00
--with-zeroconf-api=API force use of a specific zeroconf API (mdns or avahi)
2020-11-29 11:57:47 +00:00
--with-dispatch-include=PATH Include path for dispatch header
--with-dispatch-library=PATH Library path for dispatch lib
2022-08-23 16:55:40 +00:00
--with-curl=<DIR> use curl installed in directory <DIR>
2010-04-18 18:18:45 +00:00
--with-gmp-include=PATH include path for gmp headers
--with-gmp-library=PATH library path for gmp libraries
2011-06-09 17:08:41 +00:00
--with-gdomap-port=PORT alternative port for gdomap
2002-05-02 15:17:54 +00: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>
2012-09-20 09:32:00 +00:00
LIBS libraries to pass to the linker, e.g. -l<library>
2015-08-16 10:04:46 +00:00
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2010-06-12 07:19:26 +00:00
you have headers in a nonstandard directory <include dir>
2002-05-02 15:17:54 +00:00
CPP C preprocessor
2018-01-15 10:59:30 +00:00
PKG_CONFIG path to pkg-config utility
PKG_CONFIG_PATH
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
2020-02-05 22:10:53 +00:00
XML_CFLAGS C compiler flags for XML, overriding pkg-config
XML_LIBS linker flags for XML, overriding pkg-config
2021-08-03 14:54:23 +00:00
XSLT_CFLAGS C compiler flags for XSLT, overriding pkg-config
XSLT_LIBS linker flags for XSLT, overriding pkg-config
2019-01-06 19:57:59 +00:00
ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
ICU_LIBS linker flags for ICU, overriding pkg-config
2002-05-02 15:17:54 +00:00
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
2015-08-16 10:04:46 +00:00
Report bugs to the package provider.
2002-05-02 15:17:54 +00:00
_ACEOF
2010-06-12 07:19:26 +00:00
ac_status=$?
2002-05-02 15:17:54 +00: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
2012-09-20 09:32:00 +00:00
test -d "$ac_dir" ||
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
continue
2002-05-02 15:17:54 +00:00
ac_builddir=.
2010-06-12 07:19:26 +00:00
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
2024-07-16 13:20:38 +00:00
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2010-06-12 07:19:26 +00:00
# A ".." for each directory in $ac_dir_suffix.
2024-07-16 13:20:38 +00:00
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2010-06-12 07:19:26 +00: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-05-02 15:17:54 +00:00
case $srcdir in
2010-06-12 07:19:26 +00:00
.) # We are building in place.
2002-05-02 15:17:54 +00:00
ac_srcdir=.
2010-06-12 07:19:26 +00:00
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
2002-05-02 15:17:54 +00:00
ac_srcdir=$srcdir$ac_dir_suffix;
2010-06-12 07:19:26 +00: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 ;;
2008-12-08 05:03:13 +00:00
esac
2010-06-12 07:19:26 +00:00
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
cd "$ac_dir" || { ac_status=$?; continue; }
2024-07-16 13:20:38 +00:00
# Check for configure.gnu first; this name is used for a wrapper for
# Metaconfig's "Configure" on case-insensitive file systems.
2010-06-12 07:19:26 +00:00
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-05-02 15:17:54 +00:00
else
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2010-06-12 07:19:26 +00:00
fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; }
2002-05-02 15:17:54 +00:00
done
fi
2010-06-12 07:19:26 +00:00
test -n "$ac_init_help" && exit $ac_status
2002-05-02 15:17:54 +00:00
if $ac_init_version; then
cat <<\_ACEOF
2010-06-12 07:19:26 +00:00
configure
2024-07-16 13:20:38 +00:00
generated by GNU Autoconf 2.71
2002-05-02 15:17:54 +00:00
2024-07-16 13:20:38 +00:00
Copyright (C) 2021 Free Software Foundation, Inc.
2002-05-02 15:17:54 +00:00
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
2010-06-12 07:19:26 +00:00
exit
2002-05-02 15:17:54 +00:00
fi
2011-02-06 14:41:01 +00:00
2015-08-16 10:04:46 +00:00
## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##
2011-02-11 20:41:10 +00:00
2015-08-16 10:04:46 +00:00
# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
2011-10-17 18:49:16 +00:00
{
2015-08-16 10:04:46 +00:00
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024-07-16 13:20:38 +00:00
rm -f conftest.$ac_objext conftest.beam
2015-08-16 10:04:46 +00:00
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:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-08-16 10:04:46 +00:00
(eval "$ac_compile") 2>conftest.err
ac_status=$?
if test -s conftest.err; then
grep -v '^ *+' conftest.err >conftest.er1
cat conftest.er1 >&5
mv -f conftest.er1 conftest.err
fi
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015-08-16 10:04:46 +00:00
test $ac_status = 0; } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
2024-07-16 13:20:38 +00:00
} && test -s conftest.$ac_objext
then :
2015-08-16 10:04:46 +00:00
ac_retval=0
2024-07-16 13:20:38 +00:00
else $as_nop
printf "%s\n" "$as_me: failed program was:" >&5
2015-08-16 10:04:46 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2011-02-11 20:41:10 +00:00
2015-08-16 10:04:46 +00:00
ac_retval=1
fi
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015-08-16 10:04:46 +00:00
as_fn_set_status $ac_retval
2011-02-11 20:41:10 +00:00
2015-08-16 10:04:46 +00:00
} # ac_fn_c_try_compile
2012-03-21 08:00:33 +00:00
2015-08-16 10:04:46 +00:00
# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-08-16 10:04:46 +00:00
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
ac_status=$?
if test -s conftest.err; then
grep -v '^ *+' conftest.err >conftest.er1
cat conftest.er1 >&5
mv -f conftest.er1 conftest.err
fi
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017-12-20 13:25:41 +00:00
test $ac_status = 0; } > conftest.i && {
2015-08-16 10:04:46 +00:00
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
test ! -s conftest.err
2024-07-16 13:20:38 +00:00
}
then :
2015-08-16 10:04:46 +00:00
ac_retval=0
2024-07-16 13:20:38 +00:00
else $as_nop
printf "%s\n" "$as_me: failed program was:" >&5
2015-08-16 10:04:46 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2012-03-21 08:00:33 +00:00
2015-08-16 10:04:46 +00:00
ac_retval=1
fi
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015-08-16 10:04:46 +00:00
as_fn_set_status $ac_retval
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
} # ac_fn_c_try_cpp
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
#include <$2>
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
eval "$3=yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
eval "$3=no"
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
eval ac_res=\$$3
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
} # ac_fn_c_check_header_compile
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024-07-16 13:20:38 +00:00
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2015-08-16 10:04:46 +00:00
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:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-08-16 10:04:46 +00:00
(eval "$ac_link") 2>conftest.err
ac_status=$?
if test -s conftest.err; then
grep -v '^ *+' conftest.err >conftest.er1
cat conftest.er1 >&5
mv -f conftest.er1 conftest.err
fi
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015-08-16 10:04:46 +00:00
test $ac_status = 0; } && {
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
2017-12-20 13:25:41 +00:00
test -x conftest$ac_exeext
2024-07-16 13:20:38 +00:00
}
then :
2015-08-16 10:04:46 +00:00
ac_retval=0
2024-07-16 13:20:38 +00:00
else $as_nop
printf "%s\n" "$as_me: failed program was:" >&5
2015-08-16 10:04:46 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
ac_retval=1
fi
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
# interfere with the next link command; also delete a directory that is
# left behind by Apple's compiler. We do this before executing the actions.
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015-08-16 10:04:46 +00:00
as_fn_set_status $ac_retval
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
} # ac_fn_c_try_link
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
eval "$3=no"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
if (sizeof ($2))
return 0;
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
if (sizeof (($2)))
return 0;
;
return 0;
}
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2014-02-02 08:57:42 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
eval "$3=yes"
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
eval ac_res=\$$3
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012-11-28 05:46:21 +00:00
2015-08-16 10:04:46 +00:00
} # ac_fn_c_check_type
2013-11-26 22:55:47 +00:00
2024-07-16 13:20:38 +00:00
# ac_fn_c_try_run LINENO
# ----------------------
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
# executables *can* be run.
ac_fn_c_try_run ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
(eval "$ac_link") 2>&5
ac_status=$?
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } && { 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:${as_lineno-$LINENO}: $ac_try_echo\""
printf "%s\n" "$ac_try_echo"; } >&5
(eval "$ac_try") 2>&5
ac_status=$?
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }
then :
ac_retval=0
else $as_nop
printf "%s\n" "$as_me: program exited with status $ac_status" >&5
printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_retval=$ac_status
fi
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
as_fn_set_status $ac_retval
} # ac_fn_c_try_run
2015-08-16 10:04:46 +00:00
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
static int test_array [1 - 2 * !(($2) >= 0)];
2017-12-20 13:25:41 +00:00
test_array [0] = 0;
return test_array [0];
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_lo=0 ac_mid=0
while :; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017-12-20 13:25:41 +00:00
test_array [0] = 0;
return test_array [0];
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_hi=$ac_mid; break
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
done
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
static int test_array [1 - 2 * !(($2) < 0)];
2017-12-20 13:25:41 +00:00
test_array [0] = 0;
return test_array [0];
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_hi=-1 ac_mid=-1
while :; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2017-12-20 13:25:41 +00:00
test_array [0] = 0;
return test_array [0];
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_lo=$ac_mid; break
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
done
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_lo= ac_hi=
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017-12-20 13:25:41 +00:00
test_array [0] = 0;
return test_array [0];
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_hi=$ac_mid
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
2024-07-16 13:20:38 +00:00
static long int longval (void) { return $2; }
static unsigned long int ulongval (void) { return $2; }
2015-08-16 10:04:46 +00:00
#include <stdio.h>
#include <stdlib.h>
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2013-07-01 07:08:55 +00:00
2015-08-16 10:04:46 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
return 1;
if (($2) < 0)
{
long int i = longval ();
if (i != ($2))
return 1;
fprintf (f, "%ld", i);
}
else
{
unsigned long int i = ulongval ();
if (i != ($2))
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;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_retval=1
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
fi
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015-08-16 10:04:46 +00:00
as_fn_set_status $ac_retval
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
} # ac_fn_c_compute_int
2014-11-28 18:38:24 +00:00
2016-04-04 08:17:08 +00:00
# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
printf %s "(cached) " >&6
else $as_nop
2016-04-04 08:17:08 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $2 innocuous_$2
/* System header to define __stub macros and hopefully few prototypes,
2024-07-16 13:20:38 +00:00
which can conflict with char $2 (); below. */
2016-04-04 08:17:08 +00:00
2024-07-16 13:20:38 +00:00
#include <limits.h>
2016-04-04 08:17:08 +00:00
#undef $2
/* 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 $2 ();
/* 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_$2 || defined __stub___$2
choke me
#endif
int
2024-07-16 13:20:38 +00:00
main (void)
2016-04-04 08:17:08 +00:00
{
return $2 ();
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2016-04-04 08:17:08 +00:00
eval "$3=yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2016-04-04 08:17:08 +00:00
eval "$3=no"
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2016-04-04 08:17:08 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016-04-04 08:17:08 +00:00
} # ac_fn_c_check_func
2015-08-16 10:04:46 +00:00
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
printf %s "checking for $2.$3... " >&6; }
if eval test \${$4+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$5
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
eval "$4=yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$5
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
eval "$4=yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
eval "$4=no"
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2014-08-19 11:45:36 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
eval ac_res=\$$4
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012-03-02 06:53:16 +00:00
2015-08-16 10:04:46 +00:00
} # ac_fn_c_check_member
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
# ------------------------------------------------------------------
2017-12-20 13:25:41 +00:00
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2024-07-16 13:20:38 +00:00
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
ac_fn_check_decl ()
2015-08-16 10:04:46 +00:00
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017-12-20 13:25:41 +00:00
as_decl_name=`echo $2|sed 's/ *(.*//'`
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
printf %s "checking whether $as_decl_name is declared... " >&6; }
if eval test \${$3+y}
then :
printf %s "(cached) " >&6
else $as_nop
2017-12-20 13:25:41 +00:00
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2024-07-16 13:20:38 +00:00
eval ac_save_FLAGS=\$$6
as_fn_append $6 " $5"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2017-12-20 13:25:41 +00:00
#ifndef $as_decl_name
#ifdef __cplusplus
(void) $as_decl_use;
#else
(void) $as_decl_name;
#endif
2015-08-16 10:04:46 +00:00
#endif
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
eval "$3=yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
eval "$3=no"
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
eval $6=\$ac_save_FLAGS
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
eval ac_res=\$$3
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
2017-12-20 13:25:41 +00:00
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
} # ac_fn_check_decl
ac_configure_args_raw=
for ac_arg
do
case $ac_arg in
*\'*)
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
as_fn_append ac_configure_args_raw " '$ac_arg'"
done
case $ac_configure_args_raw in
*$as_nl*)
ac_safe_unquote= ;;
*)
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
ac_unsafe_a="$ac_unsafe_z#~"
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
esac
2015-08-16 10:04:46 +00:00
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
It was created by $as_me, which was
2024-07-16 13:20:38 +00:00
generated by GNU Autoconf 2.71. Invocation command line was
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
$ $0$ac_configure_args_raw
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
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`
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
/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`
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
/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`
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
_ASUNAME
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
printf "%s\n" "PATH: $as_dir"
2015-08-16 10:04:46 +00:00
done
IFS=$as_save_IFS
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
} >&5
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
cat >&5 <<_ACEOF
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
## ----------- ##
## Core tests. ##
## ----------- ##
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
_ACEOF
2015-04-01 08:44:17 +00:00
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
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 ;;
*\'*)
2024-07-16 13:20:38 +00:00
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015-08-16 10:04:46 +00:00
esac
case $ac_pass in
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2)
as_fn_append ac_configure_args1 " '$ac_arg'"
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
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
fi
as_fn_append ac_configure_args " '$ac_arg'"
;;
esac
done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00: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.
# 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.
trap 'exit_status=$?
2024-07-16 13:20:38 +00:00
# Sanitize IFS.
IFS=" "" $as_nl"
2015-08-16 10:04:46 +00:00
# Save into config.log some information that might help in debugging.
{
echo
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "## ---------------- ##
2015-08-16 10:04:46 +00:00
## Cache variables. ##
2017-12-20 13:25:41 +00:00
## ---------------- ##"
2015-08-16 10:04:46 +00:00
echo
# The following way of writing the cache mishandles newlines in values,
(
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 #(
2024-07-16 13:20:38 +00:00
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2015-08-16 10:04:46 +00:00
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
*) { eval $ac_var=; unset $ac_var;} ;;
esac ;;
esac
done
(set) 2>&1 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
sed -n \
"s/'\''/'\''\\\\'\'''\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
;; #(
*)
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
;;
esac |
sort
)
echo
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "## ----------------- ##
2015-08-16 10:04:46 +00:00
## Output variables. ##
2017-12-20 13:25:41 +00:00
## ----------------- ##"
2015-08-16 10:04:46 +00:00
echo
for ac_var in $ac_subst_vars
do
eval ac_val=\$$ac_var
case $ac_val in
2024-07-16 13:20:38 +00:00
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015-08-16 10:04:46 +00:00
esac
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_var='\''$ac_val'\''"
2015-08-16 10:04:46 +00:00
done | sort
echo
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
if test -n "$ac_subst_files"; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "## ------------------- ##
2015-08-16 10:04:46 +00:00
## File substitutions. ##
2017-12-20 13:25:41 +00:00
## ------------------- ##"
2015-08-16 10:04:46 +00:00
echo
for ac_var in $ac_subst_files
do
eval ac_val=\$$ac_var
case $ac_val in
2024-07-16 13:20:38 +00:00
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015-08-16 10:04:46 +00:00
esac
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_var='\''$ac_val'\''"
2015-08-16 10:04:46 +00:00
done | sort
echo
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
if test -s confdefs.h; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "## ----------- ##
2015-08-16 10:04:46 +00:00
## confdefs.h. ##
2017-12-20 13:25:41 +00:00
## ----------- ##"
2015-08-16 10:04:46 +00:00
echo
cat confdefs.h
echo
fi
test "$ac_signal" != 0 &&
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me: caught signal $ac_signal"
printf "%s\n" "$as_me: exit $exit_status"
2015-08-16 10:04:46 +00:00
} >&5
rm -f core *.core core.conftest.* &&
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "/* confdefs.h */" > confdefs.h
2012-03-21 08:00:33 +00:00
2015-08-16 10:04:46 +00:00
# Predefined preprocessor variables.
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
if test -n "$CONFIG_SITE"; then
2024-07-16 13:20:38 +00:00
ac_site_files="$CONFIG_SITE"
2015-08-16 10:04:46 +00:00
elif test "x$prefix" != xNONE; then
2024-07-16 13:20:38 +00:00
ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
for ac_site_file in $ac_site_files
2015-08-16 10:04:46 +00:00
do
2024-07-16 13:20:38 +00:00
case $ac_site_file in #(
*/*) :
;; #(
*) :
ac_site_file=./$ac_site_file ;;
esac
if test -f "$ac_site_file" && test -r "$ac_site_file"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2015-08-16 10:04:46 +00:00
sed 's/^/| /' "$ac_site_file" >&5
2017-12-20 13:25:41 +00:00
. "$ac_site_file" \
2024-07-16 13:20:38 +00:00
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
done
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special files
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2015-08-16 10:04:46 +00:00
case $cache_file in
[\\/]* | ?:[\\/]* ) . "$cache_file";;
*) . "./$cache_file";;
2015-04-01 08:44:17 +00:00
esac
fi
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2015-08-16 10:04:46 +00:00
>$cache_file
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
# Test code for whether the C compiler supports C89 (global declarations)
ac_c_conftest_c89_globals='
/* Does the compiler advertise C89 conformance?
Do not test the value of __STDC__, because some compilers set it to 0
while being otherwise adequately conformant. */
#if !defined __STDC__
# error "Compiler does not advertise C89 conformance"
#endif
#include <stddef.h>
#include <stdarg.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
struct buf { int x; };
struct buf * (*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 do not provoke an error unfortunately, instead are silently treated
as an "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 is necessary to write \x00 == 0 to get something
that is true only with -std. */
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
/* 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];
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
int, int);'
# Test code for whether the C compiler supports C89 (body of main).
ac_c_conftest_c89_main='
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
'
# Test code for whether the C compiler supports C99 (global declarations)
ac_c_conftest_c99_globals='
// Does the compiler advertise C99 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
# error "Compiler does not advertise C99 conformance"
#endif
#include <stdbool.h>
extern int puts (const char *);
extern int printf (const char *, ...);
extern int dprintf (int, const char *, ...);
extern void *malloc (size_t);
// Check varargs macros. These examples are taken from C99 6.10.3.5.
// dprintf is used instead of fprintf to avoid needing to declare
// FILE and stderr.
#define debug(...) dprintf (2, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
int x = 1234;
int y = 5678;
debug ("Flag");
debug ("X = %d\n", x);
showlist (The first, second, and third items.);
report (x>y, "x is %d but y is %d", x, y);
}
// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
#error "your preprocessor is broken"
#endif
#if BIG_OK
#else
#error "your preprocessor is broken"
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;
struct incomplete_array
{
int datasize;
double data[];
};
struct named_init {
int number;
const wchar_t *name;
double average;
};
typedef const char *ccp;
static inline int
test_restrict (ccp restrict text)
{
// See if C++-style comments work.
// Iterate through items via the restricted pointer.
// Also check for declarations in for loops.
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
continue;
return 0;
}
// Check varargs and va_copy.
static bool
test_varargs (const char *format, ...)
{
va_list args;
va_start (args, format);
va_list args_copy;
va_copy (args_copy, args);
const char *str = "";
int number = 0;
float fnumber = 0;
while (*format)
{
switch (*format++)
{
case '\''s'\'': // string
str = va_arg (args_copy, const char *);
break;
case '\''d'\'': // int
number = va_arg (args_copy, int);
break;
case '\''f'\'': // float
fnumber = va_arg (args_copy, double);
break;
default:
break;
}
}
va_end (args_copy);
va_end (args);
return *str && number && fnumber;
}
'
# Test code for whether the C compiler supports C99 (body of main).
ac_c_conftest_c99_main='
// Check bool.
_Bool success = false;
success |= (argc != 0);
// Check restrict.
if (test_restrict ("String literal") == 0)
success = true;
char *restrict newvar = "Another string";
// Check varargs.
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
test_varargs_macros ();
// Check flexible array members.
struct incomplete_array *ia =
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
ia->datasize = 10;
for (int i = 0; i < ia->datasize; ++i)
ia->data[i] = i * 1.234;
// Check named initializers.
struct named_init ni = {
.number = 34,
.name = L"Test wide string",
.average = 543.34343,
};
ni.number = 58;
int dynamic_array[ni.number];
dynamic_array[0] = argv[0][0];
dynamic_array[ni.number - 1] = 543;
// work around unused variable warnings
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
|| dynamic_array[ni.number - 1] != 543);
'
# Test code for whether the C compiler supports C11 (global declarations)
ac_c_conftest_c11_globals='
// Does the compiler advertise C11 conformance?
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
# error "Compiler does not advertise C11 conformance"
#endif
// Check _Alignas.
char _Alignas (double) aligned_as_double;
char _Alignas (0) no_special_alignment;
extern char aligned_as_int;
char _Alignas (0) _Alignas (int) aligned_as_int;
// Check _Alignof.
enum
{
int_alignment = _Alignof (int),
int_array_alignment = _Alignof (int[100]),
char_alignment = _Alignof (char)
};
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
// Check _Noreturn.
int _Noreturn does_not_return (void) { for (;;) continue; }
// Check _Static_assert.
struct test_static_assert
{
int x;
_Static_assert (sizeof (int) <= sizeof (long int),
"_Static_assert does not work in struct");
long int y;
};
// Check UTF-8 literals.
#define u8 syntax error!
char const utf8_literal[] = u8"happens to be ASCII" "another string";
// Check duplicate typedefs.
typedef long *long_ptr;
typedef long int *long_ptr;
typedef long_ptr long_ptr;
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
struct anonymous
{
union {
struct { int i; int j; };
struct { int k; long int l; } w;
};
int m;
} v1;
'
# Test code for whether the C compiler supports C11 (body of main).
ac_c_conftest_c11_main='
_Static_assert ((offsetof (struct anonymous, i)
== offsetof (struct anonymous, w.k)),
"Anonymous union alignment botch");
v1.i = 2;
v1.w.k = 5;
ok |= v1.i != 5;
'
# Test code for whether the C compiler supports C11 (complete).
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}
${ac_c_conftest_c11_globals}
int
main (int argc, char **argv)
{
int ok = 0;
${ac_c_conftest_c89_main}
${ac_c_conftest_c99_main}
${ac_c_conftest_c11_main}
return ok;
}
"
# Test code for whether the C compiler supports C99 (complete).
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}
int
main (int argc, char **argv)
{
int ok = 0;
${ac_c_conftest_c89_main}
${ac_c_conftest_c99_main}
return ok;
}
"
# Test code for whether the C compiler supports C89 (complete).
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
int
main (int argc, char **argv)
{
int ok = 0;
${ac_c_conftest_c89_main}
return ok;
}
"
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
# Auxiliary files required by this configure script.
ac_aux_files="config.guess config.sub"
# Locations in which to look for auxiliary files.
ac_aux_dir_candidates="`if test -z "$GNUSTEP_MAKEFILES"; then
gnustep-config --variable=GNUSTEP_MAKEFILES 2>&5
else
echo $GNUSTEP_MAKEFILES
fi`"
# Search for a directory containing all of the required auxiliary files,
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
# If we don't find one directory that contains all the files we need,
# we report the set of missing files from the *first* directory in
# $ac_aux_dir_candidates and give up.
ac_missing_aux_files=""
ac_first_candidate=:
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in $ac_aux_dir_candidates
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
as_found=:
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
ac_aux_dir_found=yes
ac_install_sh=
for ac_aux in $ac_aux_files
do
# As a special case, if "install-sh" is required, that requirement
# can be satisfied by any of "install-sh", "install.sh", or "shtool",
# and $ac_install_sh is set appropriately for whichever one is found.
if test x"$ac_aux" = x"install-sh"
then
if test -f "${as_dir}install-sh"; then
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
ac_install_sh="${as_dir}install-sh -c"
elif test -f "${as_dir}install.sh"; then
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
ac_install_sh="${as_dir}install.sh -c"
elif test -f "${as_dir}shtool"; then
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
ac_install_sh="${as_dir}shtool install -c"
else
ac_aux_dir_found=no
if $ac_first_candidate; then
ac_missing_aux_files="${ac_missing_aux_files} install-sh"
else
break
fi
fi
else
if test -f "${as_dir}${ac_aux}"; then
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
else
ac_aux_dir_found=no
if $ac_first_candidate; then
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
else
break
fi
fi
fi
done
if test "$ac_aux_dir_found" = yes; then
ac_aux_dir="$as_dir"
break
fi
ac_first_candidate=false
as_found=false
done
IFS=$as_save_IFS
if $as_found
then :
else $as_nop
as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
fi
# 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.
if test -f "${ac_aux_dir}config.guess"; then
ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
fi
if test -f "${ac_aux_dir}config.sub"; then
ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
fi
if test -f "$ac_aux_dir/configure"; then
ac_configure="$SHELL ${ac_aux_dir}configure"
fi
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
eval ac_old_val=\$ac_cv_env_${ac_var}_value
eval ac_new_val=\$ac_env_${ac_var}_value
case $ac_old_set,$ac_new_set in
set,)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;;
,set)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
# 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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac_cache_corrupted=:
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
eval $ac_var=\$ac_old_val
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
fi;;
esac
# Pass precious variables to config.status.
if test "$ac_new_set" = set; then
case $ac_new_val in
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
esac
2015-08-16 10:04:46 +00:00
fi
done
if $ac_cache_corrupted; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
and start over" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00: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
2014-02-02 08:57:42 +00:00
2015-02-15 17:56:32 +00:00
2012-03-27 17:05:19 +00:00
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
# If GNUSTEP_MAKEFILES is undefined, try to use gnustep-config to determine it.
if test -z "$GNUSTEP_MAKEFILES"; then
GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES 2>&5`
fi
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
if test -z "$GNUSTEP_MAKEFILES"; then
2017-12-20 13:25:41 +00:00
as_fn_error $? "You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
# If LIBRARY_COMBO is undefined, try to use gnustep-config to determine it.
if test -z "$LIBRARY_COMBO"; then
LIBRARY_COMBO=`gnustep-config --variable=LIBRARY_COMBO 2>&5`
fi
2020-04-16 08:39:35 +00:00
OBJC_RUNTIME_LIB=`echo $LIBRARY_COMBO | tr '-' ' ' | awk '{print $1}'`
2015-02-15 17:56:32 +00:00
2020-04-14 13:56:17 +00:00
if test "$OBJC_RUNTIME_LIB" = "ng" -o "$OBJC_RUNTIME_LIB" = "apple"; then
2015-08-16 10:04:46 +00:00
nonfragile=yes
BASE_NONFRAGILE_ABI=1
2015-08-16 10:42:48 +00:00
else
nonfragile=`gnustep-config --objc-flags | grep _NONFRAGILE_ABI 2>&5`
if test -z "$nonfragile"; then
nonfragile=no
BASE_NONFRAGILE_ABI=0
else
nonfragile=yes
BASE_NONFRAGILE_ABI=1
fi
2015-04-01 08:44:17 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
2015-09-03 14:23:20 +00:00
MAKECPPFLAGS=`gnustep-config --variable=CPPFLAGS`
if test "$CPPFLAGS" = ""; then
CPPFLAGS=$MAKECPPFLAGS
export CPPFLAGS
else
if test "$CPPFLAGS" != "$MAKECPPFLAGS"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the preprocessor options ($CPPFLAGS) set to a different value from that used by gnustep-make ($MAKECPPFLAGS). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPPFLAGS=$CPPFLAGS or run the gnustep-base configure again with your CPPFLAGS environment variable set to $MAKECPPFLAGS" >&5
printf "%s\n" "$as_me: WARNING: You are running configure with the preprocessor options ($CPPFLAGS) set to a different value from that used by gnustep-make ($MAKECPPFLAGS). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPPFLAGS=$CPPFLAGS or run the gnustep-base configure again with your CPPFLAGS environment variable set to $MAKECPPFLAGS" >&2;}
2015-09-03 14:23:20 +00:00
fi
fi
MAKELDFLAGS=`gnustep-config --variable=LDFLAGS`
if test "$LDFLAGS" = ""; then
LDFLAGS=$MAKELDFLAGS
export LDFLAGS
else
if test "$LDFLAGS" != "$MAKELDFLAGS"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the link options ($LDFLAGS) set to a different value from that used by gnustep-make ($MAKELDFLAGS). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use LDFLAGS=$LDFLAGS or run the gnustep-base configure again with your LDFLAGS environment variable set to $MAKELDFLAGS" >&5
printf "%s\n" "$as_me: WARNING: You are running configure with the link options ($LDFLAGS) set to a different value from that used by gnustep-make ($MAKELDFLAGS). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use LDFLAGS=$LDFLAGS or run the gnustep-base configure again with your LDFLAGS environment variable set to $MAKELDFLAGS" >&2;}
2015-09-03 14:23:20 +00:00
fi
fi
2024-03-27 12:30:41 +00:00
BASEFLAGS=`gnustep-config --objc-flags`
BASELIBS=`gnustep-config --base-libs`
2015-08-16 10:04:46 +00:00
# We shouldn't be loading GNUstep.sh here. It would load in a lot of
# variables which might get confused with the ones that will be used
# at runtime. We will load it later once we have determined (and
# saved) the runtime configuration.
# This variable might get temporarily overwritten with the
# GNUSTEP_MAKEFILES of the runtime configuration, make sure we keep
# track of the original one. CURRENT_GNUSTEP_MAKEFILES is the one
# that we use to locate the actual gnustep-make installation that
# will build the software.
CURRENT_GNUSTEP_MAKEFILES="$GNUSTEP_MAKEFILES"
#--------------------------------------------------------------------
# Use config.guess, config.sub and install-sh provided by gnustep-make
2024-07-16 13:20:38 +00:00
# Evaluation order of the configure script means we can not depend on
# GNUSTEP_MAKEFILES being set for simple variable substitution, so we
# execute a bit of shell code to dynamically get the directory.
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Use a .h file with #define's, instead of -D command-line switches
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_config_headers="$ac_config_headers Headers/GNUstepBase/config.h:Headers/GNUstepBase/config.h.in"
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Determine the host, build, and target systems
#--------------------------------------------------------------------
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
# Make sure we can run config.sub.
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
printf %s "checking build system type... " >&6; }
if test ${ac_cv_build+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
2024-07-16 13:20:38 +00:00
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2015-08-16 10:04:46 +00:00
test "x$ac_build_alias" = x &&
2017-12-20 13:25:41 +00:00
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2024-07-16 13:20:38 +00:00
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
printf "%s\n" "$ac_cv_build" >&6; }
2015-08-16 10:04:46 +00:00
case $ac_cv_build in
*-*-*) ;;
2017-12-20 13:25:41 +00:00
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2014-11-28 18:38:24 +00:00
esac
2015-08-16 10:04:46 +00:00
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
printf %s "checking host system type... " >&6; }
if test ${ac_cv_host+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if test "x$host_alias" = x; then
ac_cv_host=$ac_cv_build
else
2024-07-16 13:20:38 +00:00
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
printf "%s\n" "$ac_cv_host" >&6; }
2015-08-16 10:04:46 +00:00
case $ac_cv_host in
*-*-*) ;;
2017-12-20 13:25:41 +00:00
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2015-08-16 10:04:46 +00:00
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2015-02-15 17:56:32 +00:00
2013-11-26 22:55:47 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
printf %s "checking target system type... " >&6; }
if test ${ac_cv_target+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if test "x$target_alias" = x; then
ac_cv_target=$ac_cv_host
else
2024-07-16 13:20:38 +00:00
ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
printf "%s\n" "$ac_cv_target" >&6; }
2015-08-16 10:04:46 +00:00
case $ac_cv_target in
*-*-*) ;;
2017-12-20 13:25:41 +00:00
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2015-08-16 10:04:46 +00:00
esac
target=$ac_cv_target
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_target
shift
target_cpu=$1
target_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
target_os=$*
IFS=$ac_save_IFS
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Setup cross-compilation-information
#--------------------------------------------------------------------
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Check whether --with-cross-compilation-info was given.
2024-07-16 13:20:38 +00:00
if test ${with_cross_compilation_info+y}
then :
2015-08-16 10:04:46 +00:00
withval=$with_cross_compilation_info; cross_result="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cross_result="no"
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2024-02-05 21:51:57 +00:00
CROSS_CONFIG="$srcdir/cross.config"
2015-08-16 10:04:46 +00:00
if test "$cross_result" != "no"
then
if test -f "$cross_result" && test -r "$cross_result"
then
CROSS_CONFIG="$cross_result"
else
2017-12-20 13:25:41 +00:00
as_fn_error $? "\"Could not load cross-compilation variables from $cross_result\"" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# import information from the cross-config.
. "$CROSS_CONFIG"
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#---------------------------------------------------------------------
# Location of the GNUstep.conf config file (--with-config-file)
#---------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNUstep configuration file to use at runtime" >&5
printf %s "checking for GNUstep configuration file to use at runtime... " >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# This requires gnustep-make > 1.13.0 to work. For gnustep-make =
# 1.13.0 we would have to parse
# $CURRENT_GNUSTEP_MAKEFILES/$obj_dir/config.make, but $obj_dir is not defined
# yet at this stage in config, not sure if it's worth trying to make
# it work. For gnustep-make < 1.13.0 we would have to parse
# $CURRENT_GNUSTEP_MAKEFILES/config.make.
GNUSTEP_MAKE_CONFIG=`(grep '^GNUSTEP_CONFIG_FILE *=' $CURRENT_GNUSTEP_MAKEFILES/config-noarch.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/') 2>&5`
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# So, for backwards compatiblity, we try the plain config.make too.
# This should work with gnustep-make < 1.13.0, and with 1.13.0 too if
# they haven't deleted the file.
if test "$GNUSTEP_MAKE_CONFIG" = ""; then
GNUSTEP_MAKE_CONFIG=`(grep '^GNUSTEP_CONFIG_FILE *=' $CURRENT_GNUSTEP_MAKEFILES/config.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/') 2>&5`
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Check whether --with-config-file was given.
2024-07-16 13:20:38 +00:00
if test ${with_config_file+y}
then :
2015-08-16 10:04:46 +00:00
withval=$with_config_file; result="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
result="no"
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test "$result" != "no"
then
GNUSTEP_TARGET_CONFIG_FILE="$result"
fi
if test x"$GNUSTEP_TARGET_CONFIG_FILE" = x""; then
case "$target_os" in
2021-07-28 14:17:47 +00:00
mingw*|windows)
2015-08-16 10:04:46 +00:00
GNUSTEP_TARGET_CONFIG_FILE=./GNUstep.conf ;;
*)
GNUSTEP_TARGET_CONFIG_FILE="$GNUSTEP_MAKE_CONFIG" ;;
esac
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_TARGET_CONFIG_FILE" >&5
printf "%s\n" "$GNUSTEP_TARGET_CONFIG_FILE" >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#-----------------------------------------------------------------
# Whether the GNUstep.conf file path can be set in the environment
# By default this is enabled on unix, but disabled on mswindows
# since the normal setup on mswindows is to have the config file
# located with the base library dll for runtime configuration and
# use the environment variable to control the developer config file
# location (used by gnustep-make when building).
#-----------------------------------------------------------------
case "$target_os" in
2021-07-28 14:17:47 +00:00
mingw*|windows) enable_env_config=no;;
2015-08-16 10:04:46 +00:00
*) enable_env_config=yes;;
esac
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GNUstep.conf file path can be set in the environment" >&5
printf %s "checking whether the GNUstep.conf file path can be set in the environment... " >&6; }
2015-08-16 10:04:46 +00:00
# Check whether --enable-environment-config-file was given.
2024-07-16 13:20:38 +00:00
if test ${enable_environment_config_file+y}
then :
2015-08-16 10:04:46 +00:00
enableval=$enable_environment_config_file; ac_cv_environment_config_file=$enableval
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_environment_config_file=$enable_env_config
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test "$ac_cv_environment_config_file" = "yes"; then
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define OPTION_NO_ENVIRONMENT 0" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-08-16 10:04:46 +00:00
else
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define OPTION_NO_ENVIRONMENT 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: disabled from the command-line" >&5
printf "%s\n" "no: disabled from the command-line" >&6; }
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# We are now trying to determine the default GNUstep paths to be
# used at runtime. So all GNUSTEP_xxx variables from now on are to be
# considered as 'runtime' ones. They refer to paths that might not
# make any sense now, but might make sense once gnustep-base is
# installed in its final location.
#---------------------------------------------------------------------
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#
# Set 'standard' defaults for values from configuration file.
#
case "$target_os" in
*)
GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
GNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
GNUSTEP_NETWORK_ROOT=/usr/GNUstep/Local
GNUSTEP_USER_DEFAULTS_DIR=GNUstep/Defaults
GNUSTEP_USER_CONFIG_FILE=.GNUstep.conf
;;
esac
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#---------------------------------------------------------------------
# Now read/import the existing configuration file, if any
#---------------------------------------------------------------------
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Reading/importing an existing configuration file is good as it means
# the built-in default paths in the code will match those of your
# installation (or of the config file you specify).
# It can be annoying in certain cases though; this option lets you
# turn it off.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should import an existing configuration file now" >&5
printf %s "checking if we should import an existing configuration file now... " >&6; }
2015-08-16 10:04:46 +00:00
# Check whether --enable-importing-config-file was given.
2024-07-16 13:20:38 +00:00
if test ${enable_importing_config_file+y}
then :
2015-08-16 10:04:46 +00:00
enableval=$enable_importing_config_file; ac_cv_importing_config_file=$enableval
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_importing_config_file="yes"
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test "$ac_cv_importing_config_file" = "no"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: disabled from the command-line" >&5
printf "%s\n" "no: disabled from the command-line" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test "$ac_cv_importing_config_file" = "yes" ;
then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default GNUstep configuration file to use" >&5
printf %s "checking for default GNUstep configuration file to use... " >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Check whether --with-default-config was given.
2024-07-16 13:20:38 +00:00
if test ${with_default_config+y}
then :
2015-08-16 10:04:46 +00:00
withval=$with_default_config; result="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
result="no"
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test "$result" != "no"
then
GNUSTEP_DEFAULT_CONFIG="$result"
fi
if test "$GNUSTEP_DEFAULT_CONFIG" = ""; then
# No file to import has been specified. We need to read the paths
# from somewhere though! GNUstep.sh might not have been sourced,
# so at this stage we have no knowledge of what the paths must be.
# The only place that we can read them from is the gnustep-make
# GNUstep.conf file.
# So we fall back to useing the make settings for the built-in ones.
# However, on mingw these will be msys style paths, and we don't
# want that ... so later on we convert these to portable relative
# paths based on the directory in which the base library will be
# installed.
GNUSTEP_DEFAULT_CONFIG="$GNUSTEP_MAKE_CONFIG"
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_DEFAULT_CONFIG" >&5
printf "%s\n" "$GNUSTEP_DEFAULT_CONFIG" >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#
# Only try importing if the default config file has been specified.
#
if test "$GNUSTEP_DEFAULT_CONFIG" != ""; then
# Make sure we have a slash in the path so that '.' will source it
case $GNUSTEP_DEFAULT_CONFIG in
/*) ;;
*) GNUSTEP_DEFAULT_CONFIG="./$GNUSTEP_DEFAULT_CONFIG" ;;
esac
#
# Use the default config file to override standard values.
#
if test ! -f "$GNUSTEP_DEFAULT_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail: file \"$GNUSTEP_DEFAULT_CONFIG\" does not exist" >&5
printf "%s\n" "fail: file \"$GNUSTEP_DEFAULT_CONFIG\" does not exist" >&6; }
2015-08-16 10:04:46 +00:00
# Ohoh ... things are not going well. We are asked to import
# a config file that doesn't exist. So all paths might be unset
# and who knows what we'll end up hardcoding into gnustep-base.
# It looks like we need to make sure the user knows what they
# are doing, as there is a high chance they don't and might end
# up with a confused/non-working system. As far as we know, the
# system might be already screwed. If they don't want to import
# a config file (eg, they don't have one and they don't care about
# the hardcoded paths) they should just say so. ;-)
2017-12-20 13:25:41 +00:00
as_fn_error $? "Please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" "$LINENO" 5
2015-08-16 10:04:46 +00:00
exit 1
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: trying to import \"$GNUSTEP_DEFAULT_CONFIG\"" >&5
printf "%s\n" "trying to import \"$GNUSTEP_DEFAULT_CONFIG\"" >&6; }
2015-08-16 10:04:46 +00:00
if test -r "$GNUSTEP_DEFAULT_CONFIG"
then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: If this fails, please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" >&5
printf "%s\n" "$as_me: If this fails, please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" >&6;}
2015-08-16 10:04:46 +00:00
. "$GNUSTEP_DEFAULT_CONFIG"
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail: file \"$GNUSTEP_DEFAULT_CONFIG\" is not readable" >&5
printf "%s\n" "fail: file \"$GNUSTEP_DEFAULT_CONFIG\" is not readable" >&6; }
2017-12-20 13:25:41 +00:00
as_fn_error $? "Unable to import configuration file at $GNUSTEP_DEFAULT_CONFIG. Please run configure again with a revised/corrected --with-default-config= option or with --disable-importing-config-file." "$LINENO" 5
2015-08-16 10:04:46 +00:00
exit 1
fi
fi
fi
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Now we have the problem of what to do if some of the paths were not
# set by GNUstep.conf (eg, old gnustep-make), or if no config file was
# read, or if the config file was corrupt. We decide that the most
# likely case is an old gnustep-make, so by default we configure the
# other paths basing on GNUSTEP_*_ROOT.
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# TODO/FIXME: We should really have better checks once the situation
# has stabilized. This is a reasonable hack for now.
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_MAKEFILES" = x""; then GNUSTEP_MAKEFILES=$GNUSTEP_SYSTEM_ROOT/Library/Makefiles; fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_SYSTEM_USERS_DIR" = x""; then GNUSTEP_SYSTEM_USERS_DIR=/home; fi
if test x"$GNUSTEP_NETWORK_USERS_DIR" = x""; then GNUSTEP_NETWORK_USERS_DIR=/home; fi
if test x"$GNUSTEP_LOCAL_USERS_DIR" = x""; then GNUSTEP_LOCAL_USERS_DIR=/home; fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_SYSTEM_APPS" = x""; then GNUSTEP_SYSTEM_APPS=$GNUSTEP_SYSTEM_ROOT/Applications; fi
if test x"$GNUSTEP_SYSTEM_ADMIN_APPS" = x""; then GNUSTEP_SYSTEM_ADMIN_APPS=$GNUSTEP_SYSTEM_ROOT/Applications/Admin; fi
if test x"$GNUSTEP_SYSTEM_WEB_APPS" = x""; then GNUSTEP_SYSTEM_WEB_APPS=$GNUSTEP_SYSTEM_ROOT/WebApplications; fi
if test x"$GNUSTEP_SYSTEM_TOOLS" = x""; then GNUSTEP_SYSTEM_TOOLS=$GNUSTEP_SYSTEM_ROOT/Tools; fi
if test x"$GNUSTEP_SYSTEM_ADMIN_TOOLS" = x""; then GNUSTEP_SYSTEM_ADMIN_TOOLS=$GNUSTEP_SYSTEM_ROOT/Tools/Admin; fi
if test x"$GNUSTEP_SYSTEM_LIBRARY" = x""; then GNUSTEP_SYSTEM_LIBRARY=$GNUSTEP_SYSTEM_ROOT/Library; fi
if test x"$GNUSTEP_SYSTEM_LIBRARIES" = x""; then GNUSTEP_SYSTEM_LIBRARIES=$GNUSTEP_SYSTEM_LIBRARY/Libraries; fi
if test x"$GNUSTEP_SYSTEM_HEADERS" = x""; then GNUSTEP_SYSTEM_HEADERS=$GNUSTEP_SYSTEM_LIBRARY/Headers; fi
if test x"$GNUSTEP_SYSTEM_DOC" = x""; then GNUSTEP_SYSTEM_DOC=$GNUSTEP_SYSTEM_LIBRARY/Documentation; fi
if test x"$GNUSTEP_SYSTEM_DOC_MAN" = x""; then GNUSTEP_SYSTEM_DOC_MAN=$GNUSTEP_SYSTEM_LIBRARY/Documentation/man; fi
if test x"$GNUSTEP_SYSTEM_DOC_INFO" = x""; then GNUSTEP_SYSTEM_DOC_INFO=$GNUSTEP_SYSTEM_LIBRARY/Documentation/info; fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_NETWORK_APPS" = x""; then GNUSTEP_NETWORK_APPS=$GNUSTEP_NETWORK_ROOT/Applications; fi
if test x"$GNUSTEP_NETWORK_ADMIN_APPS" = x""; then GNUSTEP_NETWORK_ADMIN_APPS=$GNUSTEP_NETWORK_ROOT/Applications/Admin; fi
if test x"$GNUSTEP_NETWORK_WEB_APPS" = x""; then GNUSTEP_NETWORK_APPS=$GNUSTEP_NETWORK_ROOT/WebApplications; fi
if test x"$GNUSTEP_NETWORK_TOOLS" = x""; then GNUSTEP_NETWORK_TOOLS=$GNUSTEP_NETWORK_ROOT/Tools; fi
if test x"$GNUSTEP_NETWORK_ADMIN_TOOLS" = x""; then GNUSTEP_NETWORK_ADMIN_TOOLS=$GNUSTEP_NETWORK_ROOT/Tools/Admin; fi
if test x"$GNUSTEP_NETWORK_LIBRARY" = x""; then GNUSTEP_NETWORK_LIBRARY=$GNUSTEP_NETWORK_ROOT/Library; fi
if test x"$GNUSTEP_NETWORK_LIBRARIES" = x""; then GNUSTEP_NETWORK_LIBRARIES=$GNUSTEP_NETWORK_LIBRARY/Libraries; fi
if test x"$GNUSTEP_NETWORK_HEADERS" = x""; then GNUSTEP_NETWORK_HEADERS=$GNUSTEP_NETWORK_LIBRARY/Headers; fi
if test x"$GNUSTEP_NETWORK_DOC" = x""; then GNUSTEP_NETWORK_DOC=$GNUSTEP_NETWORK_LIBRARY/Documentation; fi
if test x"$GNUSTEP_NETWORK_DOC_MAN" = x""; then GNUSTEP_NETWORK_DOC_MAN=$GNUSTEP_NETWORK_LIBRARY/Documentation/man; fi
if test x"$GNUSTEP_NETWORK_DOC_INFO" = x""; then GNUSTEP_NETWORK_DOC_INFO=$GNUSTEP_NETWORK_LIBRARY/Documentation/info; fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_LOCAL_APPS" = x""; then GNUSTEP_LOCAL_APPS=$GNUSTEP_LOCAL_ROOT/Applications; fi
if test x"$GNUSTEP_LOCAL_ADMIN_APPS" = x""; then GNUSTEP_LOCAL_ADMIN_APPS=$GNUSTEP_LOCAL_ROOT/Applications/Admin; fi
if test x"$GNUSTEP_LOCAL_WEB_APPS" = x""; then GNUSTEP_LOCAL_APPS=$GNUSTEP_LOCAL_ROOT/WebApplications; fi
if test x"$GNUSTEP_LOCAL_TOOLS" = x""; then GNUSTEP_LOCAL_TOOLS=$GNUSTEP_LOCAL_ROOT/Tools; fi
if test x"$GNUSTEP_LOCAL_ADMIN_TOOLS" = x""; then GNUSTEP_LOCAL_ADMIN_TOOLS=$GNUSTEP_LOCAL_ROOT/Tools/Admin; fi
if test x"$GNUSTEP_LOCAL_LIBRARY" = x""; then GNUSTEP_LOCAL_LIBRARY=$GNUSTEP_LOCAL_ROOT/Library; fi
if test x"$GNUSTEP_LOCAL_LIBRARIES" = x""; then GNUSTEP_LOCAL_LIBRARIES=$GNUSTEP_LOCAL_LIBRARY/Libraries; fi
if test x"$GNUSTEP_LOCAL_HEADERS" = x""; then GNUSTEP_LOCAL_HEADERS=$GNUSTEP_LOCAL_LIBRARY/Headers; fi
if test x"$GNUSTEP_LOCAL_DOC" = x""; then GNUSTEP_LOCAL_DOC=$GNUSTEP_LOCAL_LIBRARY/Documentation; fi
if test x"$GNUSTEP_LOCAL_DOC_MAN" = x""; then GNUSTEP_LOCAL_DOC_MAN=$GNUSTEP_LOCAL_LIBRARY/Documentation/man; fi
if test x"$GNUSTEP_LOCAL_DOC_INFO" = x""; then GNUSTEP_LOCAL_DOC_INFO=$GNUSTEP_LOCAL_LIBRARY/Documentation/info; fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_USER_DIR_APPS" = x""; then GNUSTEP_USER_DIR_APPS=$GNUSTEP_USER_DIR/Applications; fi
if test x"$GNUSTEP_USER_DIR_ADMIN_APPS" = x""; then GNUSTEP_USER_DIR_ADMIN_APPS=$GNUSTEP_USER_DIR/Applications/Admin; fi
if test x"$GNUSTEP_USER_DIR_WEB_APPS" = x""; then GNUSTEP_USER_DIR_APPS=$GNUSTEP_USER_DIR/WebApplications; fi
if test x"$GNUSTEP_USER_DIR_TOOLS" = x""; then GNUSTEP_USER_DIR_TOOLS=$GNUSTEP_USER_DIR/Tools; fi
if test x"$GNUSTEP_USER_DIR_ADMIN_TOOLS" = x""; then GNUSTEP_USER_DIR_ADMIN_TOOLS=$GNUSTEP_USER_DIR/Tools/Admin; fi
if test x"$GNUSTEP_USER_DIR_LIBRARY" = x""; then GNUSTEP_USER_DIR_LIBRARY=$GNUSTEP_USER_DIR/Library; fi
if test x"$GNUSTEP_USER_DIR_LIBRARIES" = x""; then GNUSTEP_USER_DIR_LIBRARIES=$GNUSTEP_USER_DIR/Libraries; fi
if test x"$GNUSTEP_USER_DIR_HEADERS" = x""; then GNUSTEP_USER_DIR_HEADERS=$GNUSTEP_USER_DIR/Headers; fi
if test x"$GNUSTEP_USER_DIR_DOC" = x""; then GNUSTEP_USER_DIR_DOC=$GNUSTEP_USER_DIR/Documentation; fi
if test x"$GNUSTEP_USER_DIR_DOC_MAN" = x""; then GNUSTEP_USER_DIR_DOC_MAN=$GNUSTEP_USER_DIR/Documentation/man; fi
if test x"$GNUSTEP_USER_DIR_DOC_INFO" = x""; then GNUSTEP_USER_DIR_DOC_INFO=$GNUSTEP_USER_DIR/Documentation/info; fi
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNUstep-base installation domain" >&5
printf %s "checking for GNUstep-base installation domain... " >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Check whether --with-installation-domain was given.
2024-07-16 13:20:38 +00:00
if test ${with_installation_domain+y}
then :
2015-08-16 10:04:46 +00:00
withval=$with_installation_domain; result="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
result="no"
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test "$result" = "no"
then
# Check if gnustep-config supports the option
# --installation-domain-for, and use it if available. That option
# will automatically use the shell variable GNUSTEP_INSTALLATION_DOMAIN or
# the installation-domains.conf files (or the LOCAL default) as appropriate.
# Otherwise, if that option is not available just fall back to
# using GNUSTEP_INSTALLATION_DOMAIN or (if that was not defiend) LOCAL.
if (gnustep-config --help | grep installation-domain) >&5 2>&5
then
result=`gnustep-config --installation-domain-for=gnustep-base 2>&5`
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'gnustep-config' script was not found or out of date." >&5
printf "%s\n" "$as_me: WARNING: The 'gnustep-config' script was not found or out of date." >&2;}
2015-08-16 10:04:46 +00:00
result=$GNUSTEP_INSTALLATION_DOMAIN
if test "$result" = ""
then
# This case was added on December 2008 and is only for backwards
# compatibility with older versions of gnustep-make.
result=LOCAL
fi
fi
fi
case "$result" in
SYSTEM)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SYSTEM" >&5
printf "%s\n" "SYSTEM" >&6; }
2015-08-16 10:04:46 +00:00
GNUSTEP_BASE_PATH="$GNUSTEP_SYSTEM_TOOLS";;
LOCAL)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LOCAL" >&5
printf "%s\n" "LOCAL" >&6; }
2015-08-16 10:04:46 +00:00
GNUSTEP_BASE_PATH="$GNUSTEP_LOCAL_TOOLS";;
NETWORK)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: NETWORK" >&5
printf "%s\n" "NETWORK" >&6; }
2015-08-16 10:04:46 +00:00
GNUSTEP_BASE_PATH="$GNUSTEP_NETWORK_TOOLS";;
USER)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: USER" >&5
printf "%s\n" "USER" >&6; }
2015-08-16 10:04:46 +00:00
GNUSTEP_BASE_PATH="$GNUSTEP_USER_TOOLS";;
*)
2017-12-20 13:25:41 +00:00
as_fn_error $? "Unknown installation domain '$result' (it should be SYSTEM, LOCAL, NETWORK or USER). Please run configure again with the option --with-installation-domain=LOCAL (or whatever domain you want to install into)." "$LINENO" 5
2015-08-16 10:04:46 +00:00
exit 1;;
esac
# We store GNUSTEP_BASE_DOMAIN in config.mak so that we can check
# at runtime and make sure it is consistent with the
# GNUSTEP_INSTALLATION_DOMAIN that is used at runtime.
GNUSTEP_BASE_DOMAIN=$result
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#
# If we are on mingw, we now want to convert the paths to relative
# paths (relative to libgnustep-base.dll).
#
case "$target_os" in
2021-07-28 14:17:47 +00:00
mingw*|windows)
2015-08-16 10:04:46 +00:00
# TODO: Improve this hack.
# According to Wikipedia, this is the default for Windows 2000,
# Windows XP and Windows Server 2003. For Windows Vista this will
# change to C:\Users. The directory name needs to be localized though
# (and the disk may need changing as well ?).
GNUSTEP_SYSTEM_USERS_DIR="C:\Documents and Settings"
GNUSTEP_NETWORK_USERS_DIR="C:\Documents and Settings"
GNUSTEP_LOCAL_USERS_DIR="C:\Documents and Settings"
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# TODO: It would be nice to use the 'short' output of
# relative_path.sh, but older versions of relative_path.sh
# did not support specifying the type of output and
# would abort if they were given more than 2 parameters,
# so we can not use the 'short' option if we want gnustep-base
# to work with older versions of gnustep-make.
# Once everyone has upgraded to gnustep-make >= 2.0.5 (I'd say
# two years after it has been released ?), we could switch to the
# 'short' output though.
GNUSTEP_SYSTEM_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_APPS`
GNUSTEP_SYSTEM_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_ADMIN_APPS`
GNUSTEP_SYSTEM_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_WEB_APPS`
GNUSTEP_SYSTEM_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_TOOLS`
GNUSTEP_SYSTEM_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_ADMIN_TOOLS`
GNUSTEP_SYSTEM_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_LIBRARY`
GNUSTEP_SYSTEM_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_LIBRARIES`
GNUSTEP_SYSTEM_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_HEADERS`
GNUSTEP_SYSTEM_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC`
GNUSTEP_SYSTEM_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC_MAN`
GNUSTEP_SYSTEM_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC_INFO`
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_APPS`
GNUSTEP_NETWORK_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_ADMIN_APPS`
GNUSTEP_NETWORK_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_WEB_APPS`
GNUSTEP_NETWORK_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_TOOLS`
GNUSTEP_NETWORK_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_ADMIN_TOOLS`
GNUSTEP_NETWORK_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_LIBRARY`
GNUSTEP_NETWORK_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_LIBRARIES`
GNUSTEP_NETWORK_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_HEADERS`
GNUSTEP_NETWORK_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC`
GNUSTEP_NETWORK_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC_MAN`
GNUSTEP_NETWORK_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC_INFO`
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_APPS`
GNUSTEP_LOCAL_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_ADMIN_APPS`
GNUSTEP_LOCAL_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_WEB_APPS`
GNUSTEP_LOCAL_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_TOOLS`
GNUSTEP_LOCAL_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_ADMIN_TOOLS`
GNUSTEP_LOCAL_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_LIBRARY`
GNUSTEP_LOCAL_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_LIBRARIES`
GNUSTEP_LOCAL_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_HEADERS`
GNUSTEP_LOCAL_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC`
GNUSTEP_LOCAL_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC_MAN`
GNUSTEP_LOCAL_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC_INFO`
# It would be nice to now store this stuff into a ./GNUstep.conf file
# installed with gnustep-base.dll. This would clarify.
;;
esac
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_BASE_RELATIVE_PATHS=no
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Now, check if any of the paths is a relative path.
for path in \
"$GNUSTEP_SYSTEM_APPS" "$GNUSTEP_SYSTEM_ADMIN_APPS" "$GNUSTEP_SYSTEM_WEB_APPS" \
"$GNUSTEP_SYSTEM_TOOLS" "$GNUSTEP_SYSTEM_ADMIN_TOOLS" \
"$GNUSTEP_SYSTEM_LIBRARY" "$GNUSTEP_SYSTEM_LIBRARIES" "$GNUSTEP_SYSTEM_HEADERS" \
"$GNUSTEP_SYSTEM_DOC" "$GNUSTEP_SYSTEM_DOC_MAN" "$GNUSTEP_SYSTEM_DOC_INFO" \
"$GNUSTEP_NETWORK_APPS" "$GNUSTEP_NETWORK_ADMIN_APPS" "$GNUSTEP_NETWORK_WEB_APPS" \
"$GNUSTEP_NETWORK_TOOLS" "$GNUSTEP_NETWORK_ADMIN_TOOLS" \
"$GNUSTEP_NETWORK_LIBRARY" "$GNUSTEP_NETWORK_LIBRARIES" "$GNUSTEP_NETWORK_HEADERS" \
"$GNUSTEP_NETWORK_DOC" "$GNUSTEP_NETWORK_DOC_MAN" "$GNUSTEP_NETWORK_DOC_INFO" \
"$GNUSTEP_LOCAL_APPS" "$GNUSTEP_LOCAL_ADMIN_APPS" "$GNUSTEP_LOCAL_WEB_APPS" \
"$GNUSTEP_LOCAL_TOOLS" "$GNUSTEP_LOCAL_ADMIN_TOOLS" \
"$GNUSTEP_LOCAL_LIBRARY" "$GNUSTEP_LOCAL_LIBRARIES" "$GNUSTEP_LOCAL_HEADERS" \
"$GNUSTEP_LOCAL_DOC" "$GNUSTEP_LOCAL_DOC_MAN" "$GNUSTEP_LOCAL_DOC_INFO"; do
case "$path" in
./*) GNUSTEP_BASE_RELATIVE_PATHS=yes ;;
../*) GNUSTEP_BASE_RELATIVE_PATHS=yes ;;
esac
done
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we are hardcoding any relative paths in gnustep-base" >&5
printf %s "checking if we are hardcoding any relative paths in gnustep-base... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_BASE_RELATIVE_PATHS" >&5
printf "%s\n" "$GNUSTEP_BASE_RELATIVE_PATHS" >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#
# Now, we want to print out the paths that we're going to hardcode
# into gnustep-base. This is to help users in finding
# misconfigurations.
#
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: We store the following filesystem layout into gnustep-base, to be used when no config file is found" >&5
printf "%s\n" "$as_me: We store the following filesystem layout into gnustep-base, to be used when no config file is found" >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Makefiles directory" >&5
printf %s "checking for Makefiles directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_MAKEFILES" >&5
printf "%s\n" "$GNUSTEP_MAKEFILES" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user defaults directory" >&5
printf %s "checking for user defaults directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DEFAULTS_DIR" >&5
printf "%s\n" "$GNUSTEP_USER_DEFAULTS_DIR" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user config file" >&5
printf %s "checking for user config file... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_CONFIG_FILE" >&5
printf "%s\n" "$GNUSTEP_USER_CONFIG_FILE" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Applications directory" >&5
printf %s "checking for System Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_APPS" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Admin Applications directory" >&5
printf %s "checking for System Admin Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_ADMIN_APPS" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_ADMIN_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Web Applications directory" >&5
printf %s "checking for System Web Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_WEB_APPS" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_WEB_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Tools directory" >&5
printf %s "checking for System Tools directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_TOOLS" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_TOOLS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Admin Tools directory" >&5
printf %s "checking for System Admin Tools directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_ADMIN_TOOLS" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_ADMIN_TOOLS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Library directory" >&5
printf %s "checking for System Library directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_LIBRARY" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_LIBRARY" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Libraries directory" >&5
printf %s "checking for System Libraries directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_LIBRARIES" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_LIBRARIES" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Headers directory" >&5
printf %s "checking for System Headers directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_HEADERS" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_HEADERS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Documentation directory" >&5
printf %s "checking for System Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_DOC" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_DOC" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Info Documentation directory" >&5
printf %s "checking for System Info Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_DOC_INFO" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_DOC_INFO" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System Man Documentation directory" >&5
printf %s "checking for System Man Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_DOC_MAN" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_DOC_MAN" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Applications directory" >&5
printf %s "checking for Network Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_APPS" >&5
printf "%s\n" "$GNUSTEP_NETWORK_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Admin Applications directory" >&5
printf %s "checking for Network Admin Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_ADMIN_APPS" >&5
printf "%s\n" "$GNUSTEP_NETWORK_ADMIN_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Web Applications directory" >&5
printf %s "checking for Network Web Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_WEB_APPS" >&5
printf "%s\n" "$GNUSTEP_NETWORK_WEB_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Tools directory" >&5
printf %s "checking for Network Tools directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_TOOLS" >&5
printf "%s\n" "$GNUSTEP_NETWORK_TOOLS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Admin Tools directory" >&5
printf %s "checking for Network Admin Tools directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_ADMIN_TOOLS" >&5
printf "%s\n" "$GNUSTEP_NETWORK_ADMIN_TOOLS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Library directory" >&5
printf %s "checking for Network Library directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_LIBRARY" >&5
printf "%s\n" "$GNUSTEP_NETWORK_LIBRARY" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Libraries directory" >&5
printf %s "checking for Network Libraries directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_LIBRARIES" >&5
printf "%s\n" "$GNUSTEP_NETWORK_LIBRARIES" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Headers directory" >&5
printf %s "checking for Network Headers directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_HEADERS" >&5
printf "%s\n" "$GNUSTEP_NETWORK_HEADERS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Documentation directory" >&5
printf %s "checking for Network Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_DOC" >&5
printf "%s\n" "$GNUSTEP_NETWORK_DOC" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Info Documentation directory" >&5
printf %s "checking for Network Info Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_DOC_INFO" >&5
printf "%s\n" "$GNUSTEP_NETWORK_DOC_INFO" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network Man Documentation directory" >&5
printf %s "checking for Network Man Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_DOC_MAN" >&5
printf "%s\n" "$GNUSTEP_NETWORK_DOC_MAN" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Applications directory" >&5
printf %s "checking for Local Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_APPS" >&5
printf "%s\n" "$GNUSTEP_LOCAL_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Admin Applications directory" >&5
printf %s "checking for Local Admin Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_ADMIN_APPS" >&5
printf "%s\n" "$GNUSTEP_LOCAL_ADMIN_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Web Applications directory" >&5
printf %s "checking for Local Web Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_WEB_APPS" >&5
printf "%s\n" "$GNUSTEP_LOCAL_WEB_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Tools directory" >&5
printf %s "checking for Local Tools directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_TOOLS" >&5
printf "%s\n" "$GNUSTEP_LOCAL_TOOLS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Admin Tools directory" >&5
printf %s "checking for Local Admin Tools directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_ADMIN_TOOLS" >&5
printf "%s\n" "$GNUSTEP_LOCAL_ADMIN_TOOLS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Library directory" >&5
printf %s "checking for Local Library directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_LIBRARY" >&5
printf "%s\n" "$GNUSTEP_LOCAL_LIBRARY" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Libraries directory" >&5
printf %s "checking for Local Libraries directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_LIBRARIES" >&5
printf "%s\n" "$GNUSTEP_LOCAL_LIBRARIES" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Headers directory" >&5
printf %s "checking for Local Headers directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_HEADERS" >&5
printf "%s\n" "$GNUSTEP_LOCAL_HEADERS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Documentation directory" >&5
printf %s "checking for Local Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_DOC" >&5
printf "%s\n" "$GNUSTEP_LOCAL_DOC" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Info Documentation directory" >&5
printf %s "checking for Local Info Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_DOC_INFO" >&5
printf "%s\n" "$GNUSTEP_LOCAL_DOC_INFO" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local Man Documentation directory" >&5
printf %s "checking for Local Man Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_DOC_MAN" >&5
printf "%s\n" "$GNUSTEP_LOCAL_DOC_MAN" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Applications directory" >&5
printf %s "checking for User Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_APPS" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Admin Applications directory" >&5
printf %s "checking for User Admin Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_ADMIN_APPS" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_ADMIN_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Web Applications directory" >&5
printf %s "checking for User Web Applications directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_WEB_APPS" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_WEB_APPS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Tools directory" >&5
printf %s "checking for User Tools directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_TOOLS" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_TOOLS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Admin Tools directory" >&5
printf %s "checking for User Admin Tools directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_ADMIN_TOOLS" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_ADMIN_TOOLS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Library directory" >&5
printf %s "checking for User Library directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_LIBRARY" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_LIBRARY" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Libraries directory" >&5
printf %s "checking for User Libraries directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_LIBRARIES" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_LIBRARIES" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Headers directory" >&5
printf %s "checking for User Headers directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_HEADERS" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_HEADERS" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Documentation directory" >&5
printf %s "checking for User Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_DOC" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_DOC" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Info Documentation directory" >&5
printf %s "checking for User Info Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_DOC_INFO" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_DOC_INFO" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for User Man Documentation directory" >&5
printf %s "checking for User Man Documentation directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_USER_DIR_DOC_MAN" >&5
printf "%s\n" "$GNUSTEP_USER_DIR_DOC_MAN" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System User directory" >&5
printf %s "checking for System User directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_SYSTEM_USERS_DIR" >&5
printf "%s\n" "$GNUSTEP_SYSTEM_USERS_DIR" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Network User directory" >&5
printf %s "checking for Network User directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_NETWORK_USERS_DIR" >&5
printf "%s\n" "$GNUSTEP_NETWORK_USERS_DIR" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Local User directory" >&5
printf %s "checking for Local User directory... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_LOCAL_USERS_DIR" >&5
printf "%s\n" "$GNUSTEP_LOCAL_USERS_DIR" >&6; }
2015-08-16 10:04:46 +00:00
#
# Set the default configuration file values in config.h to be hard-coded
# into NSPathUtilities.m
#
GNUSTEP_MAKEFILES=`echo $GNUSTEP_MAKEFILES|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_MAKEFILES \"$GNUSTEP_MAKEFILES\"" >>confdefs.h
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DEFAULTS_DIR=`echo $GNUSTEP_USER_DEFAULTS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DEFAULTS_DIR \"$GNUSTEP_USER_DEFAULTS_DIR\"" >>confdefs.h
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_CONFIG_FILE=`echo $GNUSTEP_USER_CONFIG_FILE|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_CONFIG_FILE \"$GNUSTEP_USER_CONFIG_FILE\"" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_TARGET_CONFIG_FILE=`echo $GNUSTEP_TARGET_CONFIG_FILE|sed -e 's/\\\\/\\\\\\\\/g'`
2014-02-02 08:57:42 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_CONFIG_FILE \"$GNUSTEP_TARGET_CONFIG_FILE\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#
# SYSTEM domain paths
#
GNUSTEP_SYSTEM_APPS=`echo $GNUSTEP_SYSTEM_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_APPS \"$GNUSTEP_SYSTEM_APPS\"" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_ADMIN_APPS=`echo $GNUSTEP_SYSTEM_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_ADMIN_APPS \"$GNUSTEP_SYSTEM_ADMIN_APPS\"" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_WEB_APPS=`echo $GNUSTEP_SYSTEM_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_WEB_APPS \"$GNUSTEP_SYSTEM_WEB_APPS\"" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_TOOLS=`echo $GNUSTEP_SYSTEM_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_TOOLS \"$GNUSTEP_SYSTEM_TOOLS\"" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_ADMIN_TOOLS=`echo $GNUSTEP_SYSTEM_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_ADMIN_TOOLS \"$GNUSTEP_SYSTEM_ADMIN_TOOLS\"" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_LIBRARY=`echo $GNUSTEP_SYSTEM_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_LIBRARY \"$GNUSTEP_SYSTEM_LIBRARY\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_LIBRARIES=`echo $GNUSTEP_SYSTEM_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_LIBRARIES \"$GNUSTEP_SYSTEM_LIBRARIES\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2013-11-26 22:55:47 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_HEADERS=`echo $GNUSTEP_SYSTEM_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_HEADERS \"$GNUSTEP_SYSTEM_HEADERS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_DOC=`echo $GNUSTEP_SYSTEM_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_DOC \"$GNUSTEP_SYSTEM_DOC\"" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_DOC_MAN=`echo $GNUSTEP_SYSTEM_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_DOC_MAN \"$GNUSTEP_SYSTEM_DOC_MAN\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_SYSTEM_DOC_INFO=`echo $GNUSTEP_SYSTEM_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_DOC_INFO \"$GNUSTEP_SYSTEM_DOC_INFO\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#
# NETWORK domain paths
#
GNUSTEP_NETWORK_APPS=`echo $GNUSTEP_NETWORK_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_APPS \"$GNUSTEP_NETWORK_APPS\"" >>confdefs.h
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_ADMIN_APPS=`echo $GNUSTEP_NETWORK_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_ADMIN_APPS \"$GNUSTEP_NETWORK_ADMIN_APPS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_WEB_APPS=`echo $GNUSTEP_NETWORK_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_WEB_APPS \"$GNUSTEP_NETWORK_WEB_APPS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_TOOLS=`echo $GNUSTEP_NETWORK_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_TOOLS \"$GNUSTEP_NETWORK_TOOLS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_ADMIN_TOOLS=`echo $GNUSTEP_NETWORK_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_ADMIN_TOOLS \"$GNUSTEP_NETWORK_ADMIN_TOOLS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_LIBRARY=`echo $GNUSTEP_NETWORK_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_LIBRARY \"$GNUSTEP_NETWORK_LIBRARY\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_LIBRARIES=`echo $GNUSTEP_NETWORK_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_LIBRARIES \"$GNUSTEP_NETWORK_LIBRARIES\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_HEADERS=`echo $GNUSTEP_NETWORK_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_HEADERS \"$GNUSTEP_NETWORK_HEADERS\"" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_DOC=`echo $GNUSTEP_NETWORK_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_DOC \"$GNUSTEP_NETWORK_DOC\"" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_DOC_MAN=`echo $GNUSTEP_NETWORK_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_DOC_MAN \"$GNUSTEP_NETWORK_DOC_MAN\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_NETWORK_DOC_INFO=`echo $GNUSTEP_NETWORK_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_DOC_INFO \"$GNUSTEP_NETWORK_DOC_INFO\"" >>confdefs.h
2012-03-27 17:05:19 +00:00
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
#
# LOCAL domain paths
#
GNUSTEP_LOCAL_APPS=`echo $GNUSTEP_LOCAL_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_APPS \"$GNUSTEP_LOCAL_APPS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2012-11-28 05:46:21 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_ADMIN_APPS=`echo $GNUSTEP_LOCAL_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_ADMIN_APPS \"$GNUSTEP_LOCAL_ADMIN_APPS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_WEB_APPS=`echo $GNUSTEP_LOCAL_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_WEB_APPS \"$GNUSTEP_LOCAL_WEB_APPS\"" >>confdefs.h
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_TOOLS=`echo $GNUSTEP_LOCAL_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_TOOLS \"$GNUSTEP_LOCAL_TOOLS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_ADMIN_TOOLS=`echo $GNUSTEP_LOCAL_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_ADMIN_TOOLS \"$GNUSTEP_LOCAL_ADMIN_TOOLS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_LIBRARY=`echo $GNUSTEP_LOCAL_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_LIBRARY \"$GNUSTEP_LOCAL_LIBRARY\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_LIBRARIES=`echo $GNUSTEP_LOCAL_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_LIBRARIES \"$GNUSTEP_LOCAL_LIBRARIES\"" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_HEADERS=`echo $GNUSTEP_LOCAL_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_HEADERS \"$GNUSTEP_LOCAL_HEADERS\"" >>confdefs.h
2014-08-19 11:45:36 +00:00
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_DOC=`echo $GNUSTEP_LOCAL_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_DOC \"$GNUSTEP_LOCAL_DOC\"" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_DOC_MAN=`echo $GNUSTEP_LOCAL_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_DOC_MAN \"$GNUSTEP_LOCAL_DOC_MAN\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_LOCAL_DOC_INFO=`echo $GNUSTEP_LOCAL_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_DOC_INFO \"$GNUSTEP_LOCAL_DOC_INFO\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
#
# USER_DIR domain paths
#
GNUSTEP_USER_DIR_APPS=`echo $GNUSTEP_USER_DIR_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_APPS \"$GNUSTEP_USER_DIR_APPS\"" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_ADMIN_APPS=`echo $GNUSTEP_USER_DIR_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_ADMIN_APPS \"$GNUSTEP_USER_DIR_ADMIN_APPS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_WEB_APPS=`echo $GNUSTEP_USER_DIR_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_WEB_APPS \"$GNUSTEP_USER_DIR_WEB_APPS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_TOOLS=`echo $GNUSTEP_USER_DIR_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
2012-03-02 06:53:16 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_TOOLS \"$GNUSTEP_USER_DIR_TOOLS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_ADMIN_TOOLS=`echo $GNUSTEP_USER_DIR_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_ADMIN_TOOLS \"$GNUSTEP_USER_DIR_ADMIN_TOOLS\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_LIBRARY=`echo $GNUSTEP_USER_DIR_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
2013-11-26 22:55:47 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_LIBRARY \"$GNUSTEP_USER_DIR_LIBRARY\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_LIBRARIES=`echo $GNUSTEP_USER_DIR_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_LIBRARIES \"$GNUSTEP_USER_DIR_LIBRARIES\"" >>confdefs.h
2013-11-26 22:55:47 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_HEADERS=`echo $GNUSTEP_USER_DIR_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_HEADERS \"$GNUSTEP_USER_DIR_HEADERS\"" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_DOC=`echo $GNUSTEP_USER_DIR_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_DOC \"$GNUSTEP_USER_DIR_DOC\"" >>confdefs.h
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_DOC_MAN=`echo $GNUSTEP_USER_DIR_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_DOC_MAN \"$GNUSTEP_USER_DIR_DOC_MAN\"" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_USER_DIR_DOC_INFO=`echo $GNUSTEP_USER_DIR_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_USER_DIR_DOC_INFO \"$GNUSTEP_USER_DIR_DOC_INFO\"" >>confdefs.h
2015-08-16 10:04:46 +00:00
GNUSTEP_TARGET_SYSTEM_USERS_DIR=`echo $GNUSTEP_TARGET_SYSTEM_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_SYSTEM_USERS_DIR \"$GNUSTEP_TARGET_SYSTEM_USERS_DIR\"" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_TARGET_NETWORK_USERS_DIR=`echo $GNUSTEP_TARGET_NETWORK_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_NETWORK_USERS_DIR \"$GNUSTEP_TARGET_NETWORK_USERS_DIR\"" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
GNUSTEP_TARGET_LOCAL_USERS_DIR=`echo $GNUSTEP_TARGET_LOCAL_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define GNUSTEP_TARGET_LOCAL_USERS_DIR \"$GNUSTEP_TARGET_LOCAL_USERS_DIR\"" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
#
# Now load the values to be used in locating libraries etc used when
# building the base library ... as supplied by the gnustep-make package
#
# It looks like we ought to source the whole GNUstep.sh here, and even
# ask it to output all variables! That way we have access to (eg)
# GNUSTEP_SYSTEM_HEADERS below.
#
# We need to unset any values that we really need, or existing settings
# would be used by GNUstep.sh
#
unset GNUSTEP_SYSTEM_HEADERS
unset GNUSTEP_SYSTEM_LIBRARIES
unset GNUSTEP_NETWORK_HEADERS
unset GNUSTEP_NETWORK_LIBRARIES
unset GNUSTEP_LOCAL_HEADERS
unset GNUSTEP_LOCAL_LIBRARIES
GNUSTEP_MAKEFILES="$CURRENT_GNUSTEP_MAKEFILES"
GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes
. "$CURRENT_GNUSTEP_MAKEFILES/GNUstep.sh"
unset GNUSTEP_SH_EXPORT_ALL_VARIABLES
# For backwards compatibility, define GNUSTEP_SYSTEM_HEADERS from
# GNUSTEP_SYSTEM_ROOT if not set yet.
if test x"$GNUSTEP_SYSTEM_HEADERS" = x""; then
GNUSTEP_SYSTEM_HEADERS="$GNUSTEP_SYSTEM_ROOT/Library/Headers"
2015-02-15 17:56:32 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_SYSTEM_LIBRARIES" = x""; then
GNUSTEP_SYSTEM_LIBRARIES="$GNUSTEP_SYSTEM_ROOT/Library/Libraries"
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_NETWORK_HEADERS" = x""; then
GNUSTEP_NETWORK_HEADERS="$GNUSTEP_NETWORK_ROOT/Library/Headers"
2015-05-13 10:57:56 +00:00
fi
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_NETWORK_LIBRARIES" = x""; then
GNUSTEP_NETWORK_LIBRARIES="$GNUSTEP_NETWORK_ROOT/Library/Libraries"
fi
if test x"$GNUSTEP_LOCAL_HEADERS" = x""; then
GNUSTEP_LOCAL_HEADERS="$GNUSTEP_LOCAL_ROOT/Library/Headers"
2014-11-28 18:38:24 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
if test x"$GNUSTEP_LOCAL_LIBRARIES" = x""; then
GNUSTEP_LOCAL_LIBRARIES="$GNUSTEP_LOCAL_ROOT/Library/Libraries"
fi
2014-12-28 13:19:19 +00:00
2016-06-25 07:12:41 +00:00
#
# Add standard library and header directories for configure to use to locate
# plain C developer headers/libraries which have been installed in the
# GNUstep hierarchy. These take precedence
#
if test x"$GNUSTEP_IS_FLATTENED" = x"yes"; then
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_LOCAL_HEADERS"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_NETWORK_HEADERS"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS"
LDFLAGS="$LDFLAGS -L$GNUSTEP_LOCAL_LIBRARIES"
LDFLAGS="$LDFLAGS -L$GNUSTEP_NETWORK_LIBRARIES"
LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES"
else
2015-08-16 10:04:46 +00:00
# FIXME: Cross-compiling should read the target from the configure
# options and use it. GNUSTEP_TARGET_* variables do not exist in
# this context (so "$GNUSTEP_TARGET_CPU" will always be "")
if test x"$GNUSTEP_TARGET_CPU" = x""; then
2016-06-25 07:12:41 +00:00
ARCH="$GNUSTEP_HOST_CPU-$GNUSTEP_HOST_OS"
2015-08-16 10:04:46 +00:00
else
2016-06-25 07:12:41 +00:00
ARCH=$GNUSTEP_TARGET_CPU-$GNUSTEP_TARGET_OS
2015-08-16 10:04:46 +00:00
fi
2016-06-25 07:12:41 +00:00
ALIB="$ARCH/$LIBRARY_COMBO"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_LOCAL_HEADERS/$ALIB"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_LOCAL_HEADERS/$ARCH"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_LOCAL_HEADERS"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_NETWORK_HEADERS/$ALIB"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_NETWORK_HEADERS/$ARCH"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_NETWORK_HEADERS"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS/$ALIB"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS/$ARCH"
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS"
LDFLAGS="$LDFLAGS -L$GNUSTEP_LOCAL_LIBRARIES/$ALIB"
LDFLAGS="$LDFLAGS -L$GNUSTEP_LOCAL_LIBRARIES/$ARCH"
LDFLAGS="$LDFLAGS -L$GNUSTEP_LOCAL_LIBRARIES"
LDFLAGS="$LDFLAGS -L$GNUSTEP_NETWORK_LIBRARIES/$ALIB"
LDFLAGS="$LDFLAGS -L$GNUSTEP_NETWORK_LIBRARIES/$ARCH"
LDFLAGS="$LDFLAGS -L$GNUSTEP_NETWORK_LIBRARIES"
LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES/$ALIB"
LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES/$ARCH"
LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES"
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# Find the compiler
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
MAKECC=`gnustep-config --variable=CC`
MAKECPP=`gnustep-config --variable=CPP`
MAKECXX=`gnustep-config --variable=CXX`
if test "$CC" = ""; then
CC=$MAKECC
export CC
else
if test "$CC" != "$MAKECC"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CC=$CC or run the gnustep-base configure again with your CC environment variable set to $MAKECC" >&5
printf "%s\n" "$as_me: WARNING: You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CC=$CC or run the gnustep-base configure again with your CC environment variable set to $MAKECC" >&2;}
2015-08-16 10:04:46 +00:00
fi
fi
if test "$CPP" = ""; then
CPP=$MAKECPP
export CPP
else
if test "$CPP" != "$MAKECPP"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the preprocessor ($CPP) set to a different value from that used by gnustep-make ($MAKECPP). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPP=$CPP or run the gnustep-base configure again with your CPP environment variable set to $MAKECPP" >&5
printf "%s\n" "$as_me: WARNING: You are running configure with the preprocessor ($CPP) set to a different value from that used by gnustep-make ($MAKECPP). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPP=$CPP or run the gnustep-base configure again with your CPP environment variable set to $MAKECPP" >&2;}
2015-08-16 10:04:46 +00:00
fi
fi
if test "$CXX" = ""; then
CXX=$MAKECXX
export CXX
else
if test "$CXX" != "$MAKECXX"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You are running configure with the compiler ($CXX) set to a different value from that used by gnustep-make ($MAKECXX). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CXX=$CXX or run the gnustep-base configure again with your CXX environment variable set to $MAKECXX" >&5
printf "%s\n" "$as_me: WARNING: You are running configure with the compiler ($CXX) set to a different value from that used by gnustep-make ($MAKECXX). To avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CXX=$CXX or run the gnustep-base configure again with your CXX environment variable set to $MAKECXX" >&2;}
2015-08-31 05:39:23 +00:00
fi
fi
2024-07-16 13:20:38 +00:00
2015-08-16 10:04:46 +00: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
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
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
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
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2015-08-16 10:04:46 +00:00
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2015-08-16 10:04:46 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00: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
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
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
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2015-08-16 10:04:46 +00:00
ac_cv_prog_ac_ct_CC="gcc"
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2015-08-16 10:04:46 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
2014-02-02 08:57:42 +00:00
2015-04-01 08:44:17 +00:00
fi
2015-02-15 17:56:32 +00:00
fi
2015-08-16 10:04:46 +00:00
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2014-08-19 11:45:36 +00:00
fi
2015-08-16 10:04:46 +00:00
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2015-08-16 10:04:46 +00:00
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
else
CC="$ac_cv_prog_CC"
2015-04-01 08:44:17 +00:00
fi
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
if test -z "$CC"; then
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.
set dummy ${ac_tool_prefix}cc; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
2014-12-28 13:19:19 +00:00
else
2015-08-16 10:04:46 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2015-08-16 10:04:46 +00:00
ac_cv_prog_CC="${ac_tool_prefix}cc"
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2015-08-16 10:04:46 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
2015-05-13 10:57:56 +00:00
2014-08-19 11:45:36 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2014-08-19 11:45:36 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
fi
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
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015-08-16 10:04:46 +00:00
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2015-08-16 10:04:46 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00: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
if test $# != 0; then
# 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
2024-07-16 13:20:38 +00:00
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2015-08-16 10:04:46 +00:00
fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
2015-05-13 10:57:56 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-05-13 10:57:56 +00:00
fi
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
for ac_prog in cl.exe
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
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
2015-05-13 10:57:56 +00:00
else
2015-08-16 10:04:46 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2015-08-16 10:04:46 +00:00
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2015-08-16 10:04:46 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
2015-05-13 10:57:56 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
test -n "$CC" && break
done
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
if test -z "$CC"; then
ac_ct_CC=$CC
for ac_prog in cl.exe
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
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
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2015-08-16 10:04:46 +00:00
ac_cv_prog_ac_ct_CC="$ac_prog"
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2015-08-16 10:04:46 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
2015-05-13 10:57:56 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
test -n "$ac_ct_CC" && break
done
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
fi
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
set dummy ${ac_tool_prefix}clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
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
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_prog_CC="${ac_tool_prefix}clang"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
fi
if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC
# Extract the first word of "clang", so it can be a program name with args.
set dummy clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
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
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_CC="clang"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
if test "x$ac_ct_CC" = x; then
CC=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2015-08-16 10:04:46 +00:00
ac_tool_warned=yes ;;
esac
CC=$ac_ct_CC
fi
2024-07-16 13:20:38 +00:00
else
CC="$ac_cv_prog_CC"
2015-08-16 10:04:46 +00:00
fi
2014-11-28 18:38:24 +00:00
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
# Provide some information about the compiler.
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2015-08-16 10:04:46 +00:00
set X $ac_compile
ac_compiler=$2
2024-07-16 13:20:38 +00:00
for ac_option in --version -v -V -qversion -version; do
2015-08-16 10:04:46 +00:00
{ { ac_try="$ac_compiler $ac_option >&5"
2015-05-13 10:57:56 +00:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2015-08-16 10:04:46 +00:00
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-08-16 10:04:46 +00:00
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2015-05-13 10:57:56 +00:00
ac_status=$?
2015-08-16 10:04:46 +00:00
if test -s conftest.err; then
sed '10a\
... rest of stderr output deleted ...
10q' conftest.err >conftest.er1
cat conftest.er1 >&5
fi
rm -f conftest.er1 conftest.err
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015-08-16 10:04:46 +00:00
test $ac_status = 0; }
2015-05-13 10:57:56 +00:00
done
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-04-01 08:44:17 +00:00
{
2014-12-28 13:19:19 +00:00
2015-04-01 08:44:17 +00:00
;
return 0;
}
_ACEOF
2015-08-16 10:04:46 +00:00
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# 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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
printf %s "checking whether the C compiler works... " >&6; }
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2015-08-16 10:04:46 +00:00
# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
ac_rmfiles=
for ac_file in $ac_files
do
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
esac
done
rm -f $ac_rmfiles
if { { ac_try="$ac_link_default"
2015-05-13 10:57:56 +00:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2015-08-16 10:04:46 +00:00
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-08-16 10:04:46 +00:00
(eval "$ac_link_default") 2>&5
2015-05-13 10:57:56 +00:00
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
then :
2015-08-16 10:04:46 +00: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 ''
do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
;;
[ab].out )
# We found the default executable, but exeext='' is most
# certainly right.
break;;
*.* )
2024-07-16 13:20:38 +00:00
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2015-08-16 10:04:46 +00:00
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;;
* )
break;;
esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_file=''
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
if test -z "$ac_file"
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
printf "%s\n" "$as_me: failed program was:" >&5
2015-08-16 10:04:46 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
2024-07-16 13:20:38 +00:00
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
printf %s "checking for C compiler default output file name... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
printf "%s\n" "$ac_file" >&6; }
2015-08-16 10:04:46 +00:00
ac_exeext=$ac_cv_exeext
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
printf %s "checking for suffix of executables... " >&6; }
2015-08-16 10:04:46 +00:00
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:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-08-16 10:04:46 +00:00
(eval "$ac_link") 2>&5
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
then :
2015-08-16 10:04:46 +00:00
# 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'.
for ac_file in conftest.exe conftest conftest.*; do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
break;;
* ) break;;
esac
done
2024-07-16 13:20:38 +00:00
else $as_nop
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f conftest conftest$ac_cv_exeext
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
printf "%s\n" "$ac_cv_exeext" >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <stdio.h>
2015-04-01 08:44:17 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-04-01 08:44:17 +00:00
{
2015-08-16 10:04:46 +00:00
FILE *f = fopen ("conftest.out", "w");
return ferror (f) || fclose (f) != 0;
;
2015-04-01 08:44:17 +00:00
return 0;
}
_ACEOF
2015-08-16 10:04:46 +00:00
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
printf %s "checking whether we are cross compiling... " >&6; }
2015-08-16 10:04:46 +00:00
if test "$cross_compiling" != yes; then
{ { ac_try="$ac_link"
2015-05-13 10:57:56 +00:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2015-08-16 10:04:46 +00:00
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-05-13 10:57:56 +00:00
(eval "$ac_link") 2>&5
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015-08-16 10:04:46 +00:00
test $ac_status = 0; }
if { ac_try='./conftest$ac_cv_exeext'
{ { case "(($ac_try" in
2015-05-13 10:57:56 +00:00
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2015-08-16 10:04:46 +00:00
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-05-13 10:57:56 +00:00
(eval "$ac_try") 2>&5
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015-08-16 10:04:46 +00:00
test $ac_status = 0; }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot run C compiled programs.
2015-08-16 10:04:46 +00:00
If you meant to cross compile, use \`--host'.
2017-12-20 13:25:41 +00:00
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
fi
fi
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
printf "%s\n" "$cross_compiling" >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
printf %s "checking for suffix of object files... " >&6; }
if test ${ac_cv_objext+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-02-15 17:56:32 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
;
return 0;
}
2015-02-15 17:56:32 +00:00
_ACEOF
2015-08-16 10:04:46 +00:00
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
2015-05-13 10:57:56 +00:00
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
2015-08-16 10:04:46 +00:00
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_try_echo"; } >&5
2015-08-16 10:04:46 +00:00
(eval "$ac_compile") 2>&5
2015-05-13 10:57:56 +00:00
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
then :
2015-08-16 10:04:46 +00:00
for ac_file in conftest.o conftest.obj conftest.*; do
test -f "$ac_file" || continue;
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;;
esac
done
2024-07-16 13:20:38 +00:00
else $as_nop
printf "%s\n" "$as_me: failed program was:" >&5
2015-05-13 10:57:56 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
printf "%s\n" "$ac_cv_objext" >&6; }
2015-08-16 10:04:46 +00:00
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
printf %s "checking whether the compiler supports GNU C... " >&6; }
if test ${ac_cv_c_compiler_gnu+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
#ifndef __GNUC__
choke me
#endif
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_compiler_gnu=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_compiler_gnu=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015-08-16 10:04:46 +00:00
if test $ac_compiler_gnu = yes; then
GCC=yes
else
GCC=
fi
2024-07-16 13:20:38 +00:00
ac_test_CFLAGS=${CFLAGS+y}
2015-08-16 10:04:46 +00:00
ac_save_CFLAGS=$CFLAGS
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
printf %s "checking whether $CC accepts -g... " >&6; }
if test ${ac_cv_prog_cc_g+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_save_c_werror_flag=$ac_c_werror_flag
ac_c_werror_flag=yes
ac_cv_prog_cc_g=no
CFLAGS="-g"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-02-15 17:56:32 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_prog_cc_g=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
CFLAGS=""
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_c_werror_flag=$ac_save_c_werror_flag
CFLAGS="-g"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_prog_cc_g=yes
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
ac_c_werror_flag=$ac_save_c_werror_flag
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; then
2015-08-16 10:04:46 +00:00
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
2015-05-13 10:57:56 +00:00
else
2015-08-16 10:04:46 +00:00
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_prog_cc_stdc=no
if test x$ac_prog_cc_stdc = xno
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
printf %s "checking for $CC option to enable C11 features... " >&6; }
if test ${ac_cv_prog_cc_c11+y}
then :
printf %s "(cached) " >&6
else $as_nop
ac_cv_prog_cc_c11=no
2015-08-16 10:04:46 +00:00
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
$ac_c_conftest_c11_program
_ACEOF
for ac_arg in '' -std=gnu11
do
CC="$ac_save_CC $ac_arg"
if ac_fn_c_try_compile "$LINENO"
then :
ac_cv_prog_cc_c11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
test "x$ac_cv_prog_cc_c11" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_prog_cc_c11" = xno
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
if test "x$ac_cv_prog_cc_c11" = x
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
CC="$CC $ac_cv_prog_cc_c11"
fi
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
ac_prog_cc_stdc=c11
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
printf %s "checking for $CC option to enable C99 features... " >&6; }
if test ${ac_cv_prog_cc_c99+y}
then :
printf %s "(cached) " >&6
else $as_nop
ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_c_conftest_c99_program
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
do
CC="$ac_save_CC $ac_arg"
if ac_fn_c_try_compile "$LINENO"
then :
ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_prog_cc_c99" = xno
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
if test "x$ac_cv_prog_cc_c99" = x
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
CC="$CC $ac_cv_prog_cc_c99"
fi
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
ac_prog_cc_stdc=c99
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
printf %s "checking for $CC option to enable C89 features... " >&6; }
if test ${ac_cv_prog_cc_c89+y}
then :
printf %s "(cached) " >&6
else $as_nop
ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_c_conftest_c89_program
2015-08-16 10:04:46 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2015-08-16 10:04:46 +00:00
do
CC="$ac_save_CC $ac_arg"
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_prog_cc_c89=$ac_arg
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam
2015-08-16 10:04:46 +00:00
test "x$ac_cv_prog_cc_c89" != "xno" && break
2015-04-01 08:44:17 +00:00
done
2015-08-16 10:04:46 +00:00
rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_prog_cc_c89" = xno
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
if test "x$ac_cv_prog_cc_c89" = x
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
CC="$CC $ac_cv_prog_cc_c89"
fi
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
ac_prog_cc_stdc=c89
fi
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00: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
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
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "checking how to run the C preprocessor... " >&6; }
2015-08-16 10:04:46 +00:00
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
if test -z "$CPP"; then
2024-07-16 13:20:38 +00:00
if test ${ac_cv_prog_CPP+y}
then :
printf %s "(cached) " >&6
else $as_nop
# Double quotes because $CC needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
2015-08-16 10:04:46 +00:00
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.
# 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
#include <limits.h>
2015-08-16 10:04:46 +00:00
Syntax error
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_cpp "$LINENO"
then :
2014-08-19 11:45:36 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
# Broken: fails on valid input.
continue
2015-05-13 10:57:56 +00:00
fi
2017-12-20 13:25:41 +00:00
rm -f conftest.err conftest.i conftest.$ac_ext
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# OK, works on sane cases. Now check whether nonexistent headers
# can be detected and how.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <ac_nonexistent.h>
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_cpp "$LINENO"
then :
2015-08-16 10:04:46 +00:00
# Broken: success on invalid input.
continue
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
# Passes both tests.
ac_preproc_ok=:
break
2012-03-27 17:05:19 +00:00
fi
2017-12-20 13:25:41 +00:00
rm -f conftest.err conftest.i conftest.$ac_ext
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2017-12-20 13:25:41 +00:00
rm -f conftest.i conftest.err conftest.$ac_ext
2024-07-16 13:20:38 +00:00
if $ac_preproc_ok
then :
2015-08-16 10:04:46 +00:00
break
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
done
ac_cv_prog_CPP=$CPP
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
fi
CPP=$ac_cv_prog_CPP
2015-04-01 08:44:17 +00:00
else
2015-08-16 10:04:46 +00:00
ac_cv_prog_CPP=$CPP
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
2015-08-16 10:04:46 +00: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.
# 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
#include <limits.h>
2015-08-16 10:04:46 +00:00
Syntax error
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_cpp "$LINENO"
then :
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
# Broken: fails on valid input.
continue
2015-05-13 10:57:56 +00:00
fi
2017-12-20 13:25:41 +00:00
rm -f conftest.err conftest.i conftest.$ac_ext
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
# OK, works on sane cases. Now check whether nonexistent headers
# can be detected and how.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_cpp "$LINENO"
then :
2015-08-16 10:04:46 +00:00
# Broken: success on invalid input.
continue
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
# Passes both tests.
ac_preproc_ok=:
break
2014-02-02 08:57:42 +00:00
fi
2017-12-20 13:25:41 +00:00
rm -f conftest.err conftest.i conftest.$ac_ext
2012-11-28 05:46:21 +00:00
2015-05-13 10:57:56 +00:00
done
2015-08-16 10:04:46 +00:00
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2017-12-20 13:25:41 +00:00
rm -f conftest.i conftest.err conftest.$ac_ext
2024-07-16 13:20:38 +00:00
if $ac_preproc_ok
then :
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
fi
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00: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
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
ac_header= ac_cache=
for ac_item in $ac_header_c_list
2015-08-16 10:04:46 +00:00
do
2024-07-16 13:20:38 +00:00
if test $ac_cache; then
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
printf "%s\n" "#define $ac_item 1" >> confdefs.h
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_header= ac_cache=
elif test $ac_header; then
ac_cache=$ac_item
else
ac_header=$ac_item
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
done
2012-11-02 13:44:30 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
fi
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test ${ac_cv_safe_to_define___extensions__+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
# define __EXTENSIONS__ 1
$ac_includes_default
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
ac_cv_safe_to_define___extensions__=yes
else $as_nop
ac_cv_safe_to_define___extensions__=no
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
2012-11-02 13:44:30 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
if test ${ac_cv_should_define__xopen_source+y}
then :
printf %s "(cached) " >&6
else $as_nop
ac_cv_should_define__xopen_source=no
if test $ac_cv_header_wchar_h = yes
then :
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
#include <wchar.h>
mbstate_t x;
int
main (void)
{
2012-11-02 13:44:30 +00:00
2024-07-16 13:20:38 +00:00
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
#define _XOPEN_SOURCE 500
#include <wchar.h>
mbstate_t x;
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2024-07-16 13:20:38 +00:00
;
2015-08-16 10:04:46 +00:00
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
ac_cv_should_define__xopen_source=yes
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-02-15 17:56:32 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
if test $ac_cv_header_minix_config_h = yes
then :
MINIX=yes
printf "%s\n" "#define _MINIX 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
MINIX=
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
if test $ac_cv_safe_to_define___extensions__ = yes
then :
printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
fi
if test $ac_cv_should_define__xopen_source = yes
then :
printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
printf %s "checking whether the compiler is clang... " >&6; }
2018-07-10 09:49:31 +00:00
if test ! x"${GCC}" = x"yes" ; then
CLANG_CC=no
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2018-07-10 09:49:31 +00:00
else
if "${CC}" -v 2>&1 | grep -q 'clang version'; then
CLANG_CC=yes
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2018-07-10 09:49:31 +00:00
else
CLANG_CC=no
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2018-07-10 09:49:31 +00:00
fi
fi
2015-08-16 10:04:46 +00:00
# Large file support needed by NSData/NSFileHandle.
# These macros must be called after AC_USE_SYSTEM_EXTENSIONS because
# the `fseeko' declaration may be hidden by default on some systems.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
if test ${ac_cv_sys_largefile_source+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
while :; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h> /* for off_t */
#include <stdio.h>
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
int (*fp) (FILE *, off_t, int) = fseeko;
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_sys_largefile_source=no; break
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#define _LARGEFILE_SOURCE 1
#include <sys/types.h> /* for off_t */
#include <stdio.h>
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
int (*fp) (FILE *, off_t, int) = fseeko;
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_sys_largefile_source=1; break
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
ac_cv_sys_largefile_source=unknown
break
done
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
2015-08-16 10:04:46 +00:00
case $ac_cv_sys_largefile_source in #(
no | unknown) ;;
*)
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
2015-08-16 10:04:46 +00:00
;;
esac
rm -rf conftest*
2013-11-26 22:55:47 +00:00
2015-08-16 10:04:46 +00:00
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
# in glibc 2.1.3, but that breaks too many other things.
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
if test $ac_cv_sys_largefile_source != unknown; then
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
# Check whether --enable-largefile was given.
2024-07-16 13:20:38 +00:00
if test ${enable_largefile+y}
then :
2015-08-16 10:04:46 +00:00
enableval=$enable_largefile;
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
if test "$enable_largefile" != no; then
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
printf %s "checking for special C compiler options needed for large files... " >&6; }
if test ${ac_cv_sys_largefile_CC+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_sys_largefile_CC=no
if test "$GCC" != yes; then
ac_save_CC=$CC
while :; do
# IRIX 6.2 and later do not support large files by default,
# so use the C compiler's -n32 option if that helps.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
2024-07-16 13:20:38 +00:00
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
2015-08-16 10:04:46 +00:00
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
break
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam
2015-08-16 10:04:46 +00:00
CC="$CC -n32"
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_sys_largefile_CC=' -n32'; break
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam
2015-08-16 10:04:46 +00:00
break
done
CC=$ac_save_CC
rm -f conftest.$ac_ext
fi
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
2015-08-16 10:04:46 +00:00
if test "$ac_cv_sys_largefile_CC" != no; then
CC=$CC$ac_cv_sys_largefile_CC
fi
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
if test ${ac_cv_sys_file_offset_bits+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
while :; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
2024-07-16 13:20:38 +00:00
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
2015-08-16 10:04:46 +00:00
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_sys_file_offset_bits=no; break
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
2024-07-16 13:20:38 +00:00
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
2015-08-16 10:04:46 +00:00
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_sys_file_offset_bits=64; break
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
ac_cv_sys_file_offset_bits=unknown
break
2015-05-13 10:57:56 +00:00
done
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
2015-08-16 10:04:46 +00:00
case $ac_cv_sys_file_offset_bits in #(
no | unknown) ;;
*)
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
2015-08-16 10:04:46 +00:00
;;
esac
rm -rf conftest*
if test $ac_cv_sys_file_offset_bits = unknown; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
if test ${ac_cv_sys_large_files+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
while :; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
2024-07-16 13:20:38 +00:00
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
2015-08-16 10:04:46 +00:00
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
2014-02-02 08:57:42 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2014-02-02 08:57:42 +00:00
{
2015-08-16 10:04:46 +00:00
2014-02-02 08:57:42 +00:00
;
return 0;
}
2012-03-21 08:00:33 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_sys_large_files=no; break
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define _LARGE_FILES 1
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
2024-07-16 13:20:38 +00:00
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
2015-08-16 10:04:46 +00:00
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_sys_large_files=1; break
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
ac_cv_sys_large_files=unknown
break
done
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
printf "%s\n" "$ac_cv_sys_large_files" >&6; }
2015-08-16 10:04:46 +00:00
case $ac_cv_sys_large_files in #(
no | unknown) ;;
*)
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
2015-08-16 10:04:46 +00:00
;;
esac
rm -rf conftest*
fi
2014-12-28 13:19:19 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_type_off_t" = xyes
then :
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define off_t long int" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check how to enable builtins for atomic operations
#--------------------------------------------------------------------
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00: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
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports atomic operations" >&5
printf %s "checking whether the compiler supports atomic operations... " >&6; };
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
typedef int atomic;
2015-04-01 08:44:17 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-04-01 08:44:17 +00:00
{
2015-08-16 10:04:46 +00:00
atomic x; atomic y; __sync_bool_compare_and_swap(&x, y, y + 1);
2015-04-01 08:44:17 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
have_atomic=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_atomic=no
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext;
if test "$have_atomic" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; };
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define USE_ATOMIC_BUILTINS 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; };
2015-08-16 10:04:46 +00:00
if test "$CC" = "gcc"; then
saved_CFLAGS="$CFLAGS";
ATOMIC_CFLAGS="";
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# FIXME: Forcing -march=i568 for any i568 or later CPU is a
# stop gap measure to make the compiler emit native assembly
# for atomic operations on i586 or latter processors (GCC by
# default emits code compatible with the original i386 and
# requires library functions to emulate atomic operations).
# When gnustep-make takes care of this kind of target setting,
# the check can safely be removed.
case "$target_cpu" in
i586*|i686*|i786*)
ATOMIC_CFLAGS="-march=i586"
CFLAGS="$saved_CFLAGS $ATOMIC_CFLAGS"
;;
x86_64)
ATOMIC_CFLAGS="-march=x86-64"
CFLAGS="$saved_CFLAGS $ATOMIC_CFLAGS"
;;
esac
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CC supports atomic operations with -march" >&5
printf %s "checking whether CC supports atomic operations with -march... " >&6; };
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
typedef int atomic;
2014-02-02 08:57:42 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2014-02-02 08:57:42 +00:00
{
2015-08-16 10:04:46 +00:00
atomic x; atomic y; __sync_bool_compare_and_swap(&x, y, y+1);
2014-02-02 08:57:42 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
need_march=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
need_march=no
2013-11-26 22:55:47 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext;
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test "$need_march" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; };
2015-08-16 10:04:46 +00:00
OBJCFLAGS="$OBJCFLAGS $ATOMIC_CFLAGS";
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define USE_ATOMIC_BUILTINS 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; };
2015-08-16 10:04:46 +00:00
saved_LDFLAGS="$LDFLAGS";
LDFLAGS="$saved_LDFLAGS -lgcc";
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CC supports atomic operations using libgcc" >&5
printf %s "checking whether CC supports atomic operations using libgcc... " >&6; };
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-02-15 17:56:32 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
typedef int atomic;
2015-02-15 17:56:32 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-02-15 17:56:32 +00:00
{
2015-08-16 10:04:46 +00:00
atomic x; atomic y; __sync_bool_compare_and_swap(&x, y, y+1);
2015-02-15 17:56:32 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
atomic_in_libgcc=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
atomic_in_libgcc=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext;
if test "$atomic_in_libgcc" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; };
2015-08-16 10:04:46 +00:00
LIBS="$LIBS -lgcc";
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define USE_ATOMIC_BUILTINS 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
else
LDFLAGS="$saved_LDFLAGS";
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; };
2015-08-16 10:04:46 +00:00
fi
fi
fi
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
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Extract the first word of "whoami", so it can be a program name with args.
set dummy whoami; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_WHOAMI+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
case $WHOAMI in
[\\/]* | ?:[\\/]*)
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/ucb"
for as_dir in $as_dummy
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_WHOAMI="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2015-08-16 10:04:46 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo"
;;
esac
fi
WHOAMI=$ac_cv_path_WHOAMI
if test -n "$WHOAMI"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5
printf "%s\n" "$WHOAMI" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-04-01 08:44:17 +00:00
fi
2015-05-13 10:57:56 +00:00
2018-01-15 10:59:30 +00:00
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKG_CONFIG+y}
then :
printf %s "(cached) " >&6
else $as_nop
2018-01-15 10:45:16 +00:00
case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2018-01-15 10:45:16 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2018-01-15 10:45:16 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
printf "%s\n" "$PKG_CONFIG" >&6; }
2018-01-15 10:45:16 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2018-01-15 10:45:16 +00:00
fi
fi
2018-01-15 10:59:30 +00:00
if test -z "$ac_cv_path_PKG_CONFIG"; then
ac_pt_PKG_CONFIG=$PKG_CONFIG
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
then :
printf %s "(cached) " >&6
else $as_nop
2018-01-15 10:59:30 +00:00
case $ac_pt_PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2018-01-15 10:59:30 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2018-01-15 10:59:30 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
2018-01-15 10:59:30 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2018-01-15 10:59:30 +00:00
fi
if test "x$ac_pt_PKG_CONFIG" = x; then
PKG_CONFIG=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2018-01-15 10:59:30 +00:00
ac_tool_warned=yes ;;
esac
PKG_CONFIG=$ac_pt_PKG_CONFIG
fi
else
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi
fi
if test -n "$PKG_CONFIG"; then
_pkg_min_version=0.9.0
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2018-01-15 10:59:30 +00:00
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2018-01-15 10:59:30 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2018-01-15 10:59:30 +00:00
PKG_CONFIG=""
fi
fi
2018-01-15 11:03:02 +00:00
# If the modern mechanism failswe may havew an older pkg-config
# so try looking it up the old fashioned way.
if test -z "$PKG_CONFIG"; then
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKG_CONFIG+y}
then :
printf %s "(cached) " >&6
else $as_nop
2018-01-15 11:03:02 +00:00
case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2018-01-15 11:03:02 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2018-01-15 11:03:02 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
printf "%s\n" "$PKG_CONFIG" >&6; }
2018-01-15 11:03:02 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2018-01-15 11:03:02 +00:00
fi
fi
2018-01-15 10:45:16 +00:00
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# specific target_os options
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
INCLUDE_FLAGS="$CPPFLAGS"
LDIR_FLAGS="$LDFLAGS"
# This is just for configuring. Later, in config.make, INCLUDE_FLAGS
# goes in CONFIG_SYSTEM_INCL and LIBS goes in CONFIG_SYSTEM_LIBS
case "$target_os" in
freebsd* | openbsd* )
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib";;
netbsd*) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
LDFLAGS="$LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
2019-05-09 18:16:18 +00:00
linux-android* )
# link against libandroid for native application APIs
LIBS="$LIBS -landroid";;
2015-08-16 10:04:46 +00:00
esac
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Set Apple/Darwin/OSX/NeXT information for other tests
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the Objective-C runtime" >&5
printf %s "checking the Objective-C runtime... " >&6; }
2015-08-16 10:04:46 +00:00
if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: NeXT" >&5
printf "%s\n" "NeXT" >&6; }
2015-08-16 10:04:46 +00:00
OBJCFLAGS="$OBJCFLAGS -fnext-runtime -DNeXT_RUNTIME"
elif test "$OBJC_RUNTIME_LIB" = "ng"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Next Gen" >&5
printf "%s\n" "Next Gen" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
printf "%s\n" "GNU" >&6; }
2018-07-10 09:49:31 +00:00
if test "$CLANG_CC" = "yes"; then
OBJCFLAGS="$OBJCFLAGS -fobjc-runtime=gcc"
fi
2015-08-16 10:04:46 +00:00
fi
LIBOBJC=`gnustep-config --objc-libs`
if test "$LIBOBJC" = ""; then
2017-12-20 13:25:41 +00:00
as_fn_error $? "The command 'gnustep-config --objc-libs' (provided by the gnustep-make package) returned no Objective-C library. Unable to continue configuring without Objective-C support." "$LINENO" 5
2015-08-16 10:04:46 +00:00
exit 1
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Miscellaneous flags
#--------------------------------------------------------------------
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
# Check to see if the libobjc library is in our GNUSTEP_SYSTEM_LIBRARIES.
# If so, there are probably other libraries that we want there also, so
# leave the proper includes in CPPFLAGS and LDFLAGS
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for custom shared objc library" >&5
printf %s "checking for custom shared objc library... " >&6; }
if test ${gs_cv_objc_libdir+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
gs_cv_objc_libdir=NONE
gs_cv_objc_incdir=NONE
# Try GNUSTEP_SYSTEM_LIBRARIES first
if test "$GNUSTEP_IS_FLATTENED" = yes; then
GNUSTEP_LDIR="$GNUSTEP_SYSTEM_LIBRARIES"
GNUSTEP_HDIR="$GNUSTEP_SYSTEM_HEADERS"
2015-05-13 10:57:56 +00:00
else
2015-08-16 10:04:46 +00:00
GNUSTEP_LDIR="$GNUSTEP_SYSTEM_LIBRARIES/$obj_dir"
GNUSTEP_HDIR="$GNUSTEP_SYSTEM_HEADERS/$LIBRARY_COMBO"
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
2020-11-27 14:33:16 +00:00
if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc-gnu.dylib" -o -f "$GNUSTEP_LDIR/objc.lib"; then
2015-08-16 10:04:46 +00:00
gs_cv_objc_libdir="$GNUSTEP_LDIR"
gs_cv_objc_incdir="$GNUSTEP_HDIR"
fi
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
# Try GNUSTEP_NETWORK_LIBRARIES second (override GNUSTEP_SYSTEM if
# found)
if test "$GNUSTEP_IS_FLATTENED" = yes; then
GNUSTEP_LDIR="$GNUSTEP_NETWORK_LIBRARIES"
GNUSTEP_HDIR="$GNUSTEP_NETWORK_HEADERS"
2015-05-13 10:57:56 +00:00
else
2015-08-16 10:04:46 +00:00
GNUSTEP_LDIR="$GNUSTEP_NETWORK_LIBRARIES/$obj_dir"
GNUSTEP_HDIR="$GNUSTEP_NETWORK_HEADERS/$LIBRARY_COMBO"
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
2020-11-27 14:33:16 +00:00
if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc-gnu.dylib" -o -f "$GNUSTEP_LDIR/objc.lib"; then
2015-08-16 10:04:46 +00:00
gs_cv_objc_libdir="$GNUSTEP_LDIR"
gs_cv_objc_incdir="$GNUSTEP_HDIR"
fi
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Try GNUSTEP_LOCAL_LIBRARIES third (override GNUSTEP_SYSTEM and
# GNUSTEP_NETWORK if found)
if test "$GNUSTEP_IS_FLATTENED" = yes; then
GNUSTEP_LDIR="$GNUSTEP_LOCAL_LIBRARIES"
GNUSTEP_HDIR="$GNUSTEP_LOCAL_HEADERS"
2015-04-01 08:44:17 +00:00
else
2015-08-16 10:04:46 +00:00
GNUSTEP_LDIR="$GNUSTEP_LOCAL_LIBRARIES/$obj_dir"
GNUSTEP_HDIR="$GNUSTEP_LOCAL_HEADERS/$LIBRARY_COMBO"
2014-12-28 13:19:19 +00:00
fi
2011-12-08 12:33:06 +00:00
2015-08-16 10:04:46 +00:00
if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
2020-11-27 14:33:16 +00:00
if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc-gnu.dylib" -o -f "$GNUSTEP_LDIR/objc.lib"; then
2015-08-16 10:04:46 +00:00
gs_cv_objc_libdir="$GNUSTEP_LDIR"
gs_cv_objc_incdir="$GNUSTEP_HDIR"
fi
2014-08-19 11:45:36 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-05-13 10:57:56 +00:00
fi
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gs_cv_objc_libdir" >&5
printf "%s\n" "$gs_cv_objc_libdir" >&6; }
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
if test "$gs_cv_objc_libdir" != "NONE"; then
#
# The following one is so that headers of custom libraries into
# $GNUSTEP_HDIR are used before the standard ones
#
INCLUDE_FLAGS="$INCLUDE_FLAGS -I$gs_cv_objc_incdir"
LDIR_FLAGS="$LDIR_FLAGS -L$gs_cv_objc_libdir/$LIBRARY_COMBO -L$gs_cv_objc_libdir"
CPPFLAGS="$CPPFLAGS -I$gs_cv_objc_incdir"
LDFLAGS="$LDFLAGS -L$gs_cv_objc_libdir"
2020-11-27 14:33:16 +00:00
# add to path on Windows for config checks to find DLL at runtime
case $host_os in
2021-02-08 21:19:41 +00:00
mingw*|windows) PATH=$PATH:$gs_cv_objc_libdir;;
2020-11-27 14:33:16 +00:00
esac
2015-02-15 17:56:32 +00:00
fi
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check if Objective-C is installed
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "objc/runtime.h" "ac_cv_header_objc_runtime_h" "$ac_includes_default"
if test "x$ac_cv_header_objc_runtime_h" = xyes
then :
printf "%s\n" "#define HAVE_OBJC_RUNTIME_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2014-02-02 08:57:42 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "objc/objc.h" "ac_cv_header_objc_objc_h" "$ac_includes_default"
if test "x$ac_cv_header_objc_objc_h" = xyes
then :
printf "%s\n" "#define HAVE_OBJC_OBJC_H 1" >>confdefs.h
2013-11-26 22:55:47 +00:00
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
if test $ac_cv_header_objc_objc_h = no; then
echo "Check to make sure you have the Objective-C runtime library"
echo "and its headers installed."
2017-12-20 13:25:41 +00:00
as_fn_error $? "Could not find Objective-C headers" "$LINENO" 5
2014-12-28 13:19:19 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check for strange network stuff used by gdomap
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: for gdomap network details" >&5
printf "%s\n" "$as_me: for gdomap network details" >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable length socket addresses" >&5
printf %s "checking for variable length socket addresses... " >&6; }
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
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
struct ifreq s; s.ifr_addr.sa_len = 0;
2015-05-13 10:57:56 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
sa_len=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
sa_len=0
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
if test $sa_len = 1; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
printf "%s\n" "found" >&6; }
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
printf "%s\n" "not found" >&6; }
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler visibility attribute support" >&5
printf %s "checking for compiler visibility attribute support... " >&6; }
2015-08-16 10:04:46 +00:00
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
int foo() __attribute__ ((visibility("internal")));
int foo(){ return 1; }
int main(){ return foo(); }
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
printf "%s\n" "found" >&6; }
2015-08-16 10:04:46 +00:00
gs_visibility=1
2024-07-16 13:20:38 +00:00
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present" >&5
printf "%s\n" "not present" >&6; }
2015-08-16 10:04:46 +00:00
gs_visibility=0
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_VISIBILITY_ATTRIBUTE $gs_visibility" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
CFLAGS="$saved_CFLAGS"
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# Check if system has buggy SO_REUSEADDR
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SO_REUSEADDR is broken" >&5
printf %s "checking whether SO_REUSEADDR is broken... " >&6; }
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
reuseaddr_ok="$cross_reuseaddr_ok"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include "$srcdir/config/config.reuseaddr.c"
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
reuseaddr_ok=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
reuseaddr_ok=0
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-05-13 10:57:56 +00:00
fi
2012-03-21 09:06:40 +00:00
2015-08-16 10:04:46 +00:00
if test $reuseaddr_ok = 0; then
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define BROKEN_SO_REUSEADDR 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
echo
echo "The SO_REUSEADDR socket option for controlling re-use of network"
echo "sockets immediately after shutdown appears to be broken on this"
echo "machine. Networking code will be built without using this"
echo "feature."
echo "The effect of this lack is that when a network service is shut"
echo "down, it cannot be re-started on the same network port until"
echo "an operating-system timeout has expired."
echo "For servers other than gdomap, GNUstep does not normally need"
echo "a particular network port, so the problem is unlikely to arise."
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-05-13 10:57:56 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check for thread flags for libobjc.
#--------------------------------------------------------------------
#
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objc threading flags" >&5
printf %s "checking for objc threading flags... " >&6; }
2015-08-16 10:04:46 +00:00
#
# Get them from gnustep-make which contains the real code to get them
#
objc_threaded=`grep objc_threaded: $CURRENT_GNUSTEP_MAKEFILES/$lobj_dir/config.make | sed -e 's/objc_threaded:=//'`
#
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $objc_threaded" >&5
printf "%s\n" "$objc_threaded" >&6; }
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Byte order information needed for foundation headers.
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
printf %s "checking whether byte ordering is bigendian... " >&6; }
if test ${ac_cv_c_bigendian+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_c_bigendian=unknown
# See if we're dealing with a universal compiler.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifndef __APPLE_CC__
not a universal capable compiler
#endif
typedef int dummy;
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2013-11-26 22:55:47 +00:00
2015-08-16 10:04:46 +00:00
# Check for potential -arch flags. It is not universal unless
# there are at least two -arch flags with different values.
ac_arch=
ac_prev=
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
if test -n "$ac_prev"; then
case $ac_word in
i?86 | x86_64 | ppc | ppc64)
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
ac_arch=$ac_word
else
ac_cv_c_bigendian=universal
break
fi
;;
esac
ac_prev=
elif test "x$ac_word" = "x-arch"; then
ac_prev=arch
fi
done
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
if test $ac_cv_c_bigendian = unknown; then
# See if sys/param.h defines the BYTE_ORDER macro.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/param.h>
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
&& LITTLE_ENDIAN)
bogus endian macros
#endif
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
# It does; now see whether it defined to BIG_ENDIAN or not.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <sys/types.h>
#include <sys/param.h>
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
2015-05-13 10:57:56 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_c_bigendian=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_c_bigendian=no
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
if test $ac_cv_c_bigendian = unknown; then
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <limits.h>
2015-05-13 10:57:56 +00:00
2014-11-28 18:38:24 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2014-11-28 18:38:24 +00:00
{
2015-08-16 10:04:46 +00:00
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
bogus endian macros
#endif
2014-11-28 18:38:24 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
# It does; now see whether it defined to _BIG_ENDIAN or not.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <limits.h>
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
#ifndef _BIG_ENDIAN
not big endian
#endif
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_c_bigendian=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_c_bigendian=no
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
if test $ac_cv_c_bigendian = unknown; then
# Compile a test program.
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
# Try to guess by grepping values from an object file.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
unsigned short int ascii_mm[] =
2015-08-16 10:04:46 +00:00
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2024-07-16 13:20:38 +00:00
unsigned short int ascii_ii[] =
2015-08-16 10:04:46 +00:00
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
int use_ascii (int i) {
return ascii_mm[i] + ascii_ii[i];
}
2024-07-16 13:20:38 +00:00
unsigned short int ebcdic_ii[] =
2015-08-16 10:04:46 +00:00
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2024-07-16 13:20:38 +00:00
unsigned short int ebcdic_mm[] =
2015-08-16 10:04:46 +00:00
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
int use_ebcdic (int i) {
return ebcdic_mm[i] + ebcdic_ii[i];
}
extern int foo;
2012-11-28 05:46:21 +00:00
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
return use_ascii (foo) == use_ebcdic (foo);
;
return 0;
}
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00: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
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
$ac_includes_default
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00: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;
2015-05-13 10:57:56 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_c_bigendian=no
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_c_bigendian=yes
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
printf "%s\n" "$ac_cv_c_bigendian" >&6; }
2015-08-16 10:04:46 +00:00
case $ac_cv_c_bigendian in #(
yes)
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
;; #(
no)
;; #(
universal)
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
;; #(
*)
2017-12-20 13:25:41 +00:00
as_fn_error $? "unknown endianness
2015-08-16 10:04:46 +00:00
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
esac
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
if test $ac_cv_c_bigendian = yes; then
GS_WORDS_BIGENDIAN=1
else
GS_WORDS_BIGENDIAN=0
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Type size information needed for foundation headers.
#--------------------------------------------------------------------
# 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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
printf %s "checking size of void*... " >&6; }
if test ${ac_cv_sizeof_voidp+y}
then :
printf %s "(cached) " >&6
else $as_nop
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
then :
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_voidp" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (void*)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_voidp=0
fi
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
2015-04-01 08:44:17 +00:00
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
2015-08-16 10:04:46 +00:00
GS_SINT8="signed char"
GS_UINT8="unsigned char"
# 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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
printf %s "checking size of short... " >&6; }
if test ${ac_cv_sizeof_short+y}
then :
printf %s "(cached) " >&6
else $as_nop
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
then :
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_short" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_short=0
fi
2015-04-01 08:44:17 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00: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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
printf %s "checking size of int... " >&6; }
if test ${ac_cv_sizeof_int+y}
then :
printf %s "(cached) " >&6
else $as_nop
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
then :
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_int" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_int=0
fi
fi
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00: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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
printf %s "(cached) " >&6
else $as_nop
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
then :
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_long" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_long=0
fi
2015-05-13 10:57:56 +00:00
fi
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }
2015-05-13 10:57:56 +00:00
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00: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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
printf %s "checking size of long long... " >&6; }
if test ${ac_cv_sizeof_long_long+y}
then :
printf %s "(cached) " >&6
else $as_nop
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
then :
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_long_long" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_long_long=0
fi
2014-12-28 13:19:19 +00:00
fi
2015-02-15 17:56:32 +00:00
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
2014-11-28 18:38:24 +00:00
2014-02-02 08:57:42 +00:00
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
2015-04-01 08:44:17 +00:00
2014-12-28 13:19:19 +00:00
2013-11-26 22:55:47 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00: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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
printf %s "checking size of float... " >&6; }
if test ${ac_cv_sizeof_float+y}
then :
printf %s "(cached) " >&6
else $as_nop
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
then :
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_float" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (float)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_float=0
fi
2015-05-13 10:57:56 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
printf "%s\n" "$ac_cv_sizeof_float" >&6; }
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00: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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
printf %s "checking size of double... " >&6; }
if test ${ac_cv_sizeof_double+y}
then :
printf %s "(cached) " >&6
else $as_nop
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
then :
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_double" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (double)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_double=0
fi
fi
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
printf "%s\n" "$ac_cv_sizeof_double" >&6; }
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_int; then
GS_SADDR="int"
GS_UADDR="unsigned int"
2014-12-28 13:19:19 +00:00
else
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long; then
GS_SADDR="long"
GS_UADDR="unsigned long"
else
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long_long; then
GS_SADDR="long long"
GS_UADDR="unsigned long long"
else
2017-12-20 13:25:41 +00:00
as_fn_error $? "Unable to find integer of same size as void*" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
fi
2015-05-13 10:57:56 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_short = 2; then
GS_SINT16="signed short"
GS_UINT16="unsigned short"
else
if test $ac_cv_sizeof_int = 2; then
GS_SINT16="signed int"
GS_UINT16="unsigned int"
else
2017-12-20 13:25:41 +00:00
as_fn_error $? "Unable to determine type for 16-bit integer" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_int = 4; then
GS_SINT32="signed int"
GS_UINT32="unsigned int"
2015-05-13 10:57:56 +00:00
else
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_long = 4; then
GS_SINT32="signed long"
GS_UINT32="unsigned long"
else
if test $ac_cv_sizeof_short = 4; then
GS_SINT32="signed short"
GS_UINT32="unsigned short"
else
2017-12-20 13:25:41 +00:00
as_fn_error $? "Unable to determine type for 32-bit integer" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
fi
fi
2012-03-27 17:05:19 +00:00
2013-11-26 22:55:47 +00:00
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
GS_HAVE_I64=1
if test $ac_cv_sizeof_int = 8; then
GS_SINT64="signed int"
GS_UINT64="unsigned int"
2014-12-28 13:19:19 +00:00
else
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_long = 8; then
GS_SINT64="signed long"
GS_UINT64="unsigned long"
else
if test $ac_cv_sizeof_long_long = 8; then
GS_SINT64="signed long long"
GS_UINT64="unsigned long long"
else
# 64-bit ints not supported - but we need a dummy type for byte-swapping
# of 64-bit values arriving from another system.
GS_SINT64="struct { gsu8 a8; }"
GS_UINT64="struct { gsu8 a8; }"
GS_HAVE_I64=0
fi
fi
2015-02-15 17:56:32 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-02-15 17:56:32 +00:00
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
GS_HAVE_I128=1
if test $ac_cv_sizeof_long = 16; then
GS_SINT128="signed long"
GS_UINT128="unsigned long"
2015-02-15 17:56:32 +00:00
else
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_long_long = 16; then
GS_SINT128="signed long long"
GS_UINT128="unsigned long long"
else
# 128-bit ints not supported - but we need a dummy type for byte-swapping
# of 128-bit values arriving from another system.
GS_SINT128="struct { gsu8 a[16]; }"
GS_UINT128="struct { gsu8 a[16]; }"
GS_HAVE_I128=0
fi
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_float = 4; then
GS_FLT32="float"
else
2017-12-20 13:25:41 +00:00
as_fn_error $? "Unable to determine type for 32-bit float" "$LINENO" 5
2014-11-28 18:38:24 +00:00
fi
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_double = 8; then
GS_FLT64="double"
else
2017-12-20 13:25:41 +00:00
as_fn_error $? "Unable to determine type for 64-bit float" "$LINENO" 5
2015-02-15 17:56:32 +00:00
fi
2013-11-26 22:55:47 +00:00
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Type-size information for encoding into archives using NSArchiver etc.
#--------------------------------------------------------------------
if test $ac_cv_sizeof_short = 2; then
_GSC_S_SHT=_GSC_I16
else
_GSC_S_SHT=_GSC_I32
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_int = 2; then
_GSC_S_INT=_GSC_I16
else
if test $ac_cv_sizeof_int = 4; then
_GSC_S_INT=_GSC_I32
else
if test $ac_cv_sizeof_int = 8; then
_GSC_S_INT=_GSC_I64
2015-05-13 10:57:56 +00:00
else
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_int = 16; then
_GSC_S_INT=_GSC_I128
fi
2015-04-01 08:44:17 +00:00
fi
fi
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_long = 4; then
_GSC_S_LNG=_GSC_I32
else
if test $ac_cv_sizeof_long = 8; then
_GSC_S_LNG=_GSC_I64
else
if test $ac_cv_sizeof_long = 16; then
_GSC_S_LNG=_GSC_I128
fi
fi
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_long_long = 4; then
_GSC_S_LNG_LNG=_GSC_I32
2014-08-19 11:45:36 +00:00
else
2015-08-16 10:04:46 +00:00
if test $ac_cv_sizeof_long_long = 8; then
_GSC_S_LNG_LNG=_GSC_I64
else
if test $ac_cv_sizeof_long_long = 16; then
_GSC_S_LNG_LNG=_GSC_I128
fi
fi
fi
2015-05-13 10:57:56 +00:00
2012-11-28 05:46:21 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Limit information needed for foundation headers.
#--------------------------------------------------------------------
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
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX" >&5
printf %s "checking for working INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX... " >&6; };
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <inttypes.h>
2015-02-15 17:56:32 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-02-15 17:56:32 +00:00
{
2015-08-16 10:04:46 +00:00
int imax = INTPTR_MAX; int imin = INTPTR_MIN; unsigned umax = UINTPTR_MAX;
2015-02-15 17:56:32 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
have_valid_ptr_limits=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_valid_ptr_limits=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext;
2015-08-16 10:04:46 +00:00
if test "$have_valid_ptr_limits" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; };
2015-08-16 10:04:46 +00:00
BUGGY_PTR_LIMITS=0
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; };
2015-08-16 10:04:46 +00:00
BUGGY_PTR_LIMITS=1
case "$target_os" in
solaris*)
case "$target_cpu" in
sparc64*|x86_64*)
GS_INTPTR_MAX="INT64_MAX"
GS_INTPTR_MIN="INT64_MIN"
GS_UINTPTR_MAX="UINT64_MAX"
;;
sparc*|i386*|i586*|i686*)
GS_INTPTR_MAX="INT32_MAX"
GS_INTPTR_MIN="INT32_MIN"
GS_UINTPTR_MAX="UINT32_MAX"
;;
*) ;;
esac ;;
# support for other OS's with broken macros to be added here (HP-UX, IRIX being known)
*)
;;
esac
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
#--------------------------------------------------------------------
# Setup dynamic linking
#--------------------------------------------------------------------
# Copyright (C) 2005 Free Software Foundation
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
#--------------------------------------------------------------------
# Guess if we are using a object file format that supports automatic
# loading of constructor functions.
#
# If this system supports autoloading of constructors, that means that gcc
# doesn't have to do it for us via collect2. This routine tests for this
# in a very roundabout way by compiling a program with a constructor and
# testing the file, via nm, for certain symbols that collect2 includes to
# handle loading of constructors.
#
# Makes the following substitutions:
# Defines CON_AUTOLOAD (whether constructor functions are autoloaded)
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking loading of constructor functions" >&5
printf %s "checking loading of constructor functions... " >&6; }
if test ${objc_cv_con_autoload+y}
then :
printf %s "(cached) " >&6
else $as_nop
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
objc_cv_con_autoload=no
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
static int loaded = 0;
void cons_functions() __attribute__ ((constructor));
void cons_functions() { loaded = 1; }
int main()
{
return ( (loaded == 1) ? 0 : 1);
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
objc_cv_con_autoload=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
objc_cv_con_autoload=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
case "$target_os" in
cygwin*) objc_cv_con_autoload=yes;;
mingw*) objc_cv_con_autoload=yes;;
esac
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $objc_cv_con_autoload = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define CON_AUTOLOAD 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-02-15 17:56:32 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
# Copyright (C) 2005 Free Software Foundation
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
#--------------------------------------------------------------------
# Guess the type of dynamic linker for the system
#
# Makes the following substitutions:
# DYNAMIC_LINKER - cooresponds to the interface that is included
# in objc-load.c (i.e. #include "${DYNAMIC_LINKER}-load.h")
#--------------------------------------------------------------------
DYNAMIC_LINKER=null
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
if test "x$ac_cv_header_windows_h" = xyes
then :
2015-08-16 10:04:46 +00:00
DYNAMIC_LINKER=win32
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $DYNAMIC_LINKER = null; then
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes
then :
2015-08-16 10:04:46 +00:00
DYNAMIC_LINKER=simple
2015-02-15 17:56:32 +00:00
fi
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
if test $DYNAMIC_LINKER = null; then
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
if test "x$ac_cv_header_dl_h" = xyes
then :
2015-08-16 10:04:46 +00:00
DYNAMIC_LINKER=hpux
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
if test $DYNAMIC_LINKER = null; then
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "dld/defs.h" "ac_cv_header_dld_defs_h" "$ac_includes_default"
if test "x$ac_cv_header_dld_defs_h" = xyes
then :
2015-08-16 10:04:46 +00:00
DYNAMIC_LINKER=dld
fi
2015-05-13 10:57:56 +00:00
2014-11-28 18:38:24 +00:00
fi
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
# NB: This is used as follows: in Source/Makefile.postamble we copy
# $(DYNAMIC_LINKER)-load.h into dynamic-load.h
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dynamic linker type" >&5
printf %s "checking for dynamic linker type... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNAMIC_LINKER" >&5
printf "%s\n" "$DYNAMIC_LINKER" >&6; }
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
if test $DYNAMIC_LINKER = simple; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
printf %s "checking for dladdr in -ldl... " >&6; }
if test ${ac_cv_lib_dl_dladdr+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-02-15 17:56:32 +00:00
/* end confdefs.h. */
2014-11-28 18:38:24 +00:00
2015-02-15 17:56:32 +00: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. */
2015-08-16 10:04:46 +00:00
char dladdr ();
2015-02-15 17:56:32 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-02-15 17:56:32 +00:00
{
2015-08-16 10:04:46 +00:00
return dladdr ();
2015-02-15 17:56:32 +00:00
;
return 0;
}
2014-12-28 13:19:19 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_dl_dladdr=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_dl_dladdr=no
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
printf "%s\n" "$ac_cv_lib_dl_dladdr" >&6; }
if test "x$ac_cv_lib_dl_dladdr" = xyes
then :
printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
LIBS="-ldl $LIBS"
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
# NOTE: libdl should be in LIBS now if it's available.
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
if test "x$ac_cv_func_dladdr" = xyes
then :
printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h
2011-12-08 12:33:06 +00:00
2014-11-28 18:38:24 +00:00
fi
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
if test "x$ac_cv_func_gethostbyname" = xyes
then :
printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
if test "$ac_cv_func_gethostbyname" = "no"; then
# QNX has gethostbyname and friends in libsocket
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
printf %s "checking for gethostbyname in -lsocket... " >&6; }
if test ${ac_cv_lib_socket_gethostbyname+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-05-13 10:57:56 +00: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. */
2015-08-16 10:04:46 +00:00
char gethostbyname ();
2015-04-01 08:44:17 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-04-01 08:44:17 +00:00
{
2015-08-16 10:04:46 +00:00
return gethostbyname ();
2015-04-01 08:44:17 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_socket_gethostbyname=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_socket_gethostbyname=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
if test "x$ac_cv_lib_socket_gethostbyname" = xyes
then :
printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
LIBS="-lsocket $LIBS"
2015-04-01 08:44:17 +00:00
2015-02-15 17:56:32 +00:00
fi
2015-04-01 08:44:17 +00:00
fi
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
if test "x$ac_cv_func_getaddrinfo" = xyes
then :
printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
2014-02-02 08:57:42 +00:00
2015-04-01 08:44:17 +00:00
fi
2015-05-13 10:57:56 +00:00
2021-07-28 14:17:47 +00:00
#--------------------------------------------------------------------
# Windows: check if we have native threading APIs and SRW locks
#--------------------------------------------------------------------
HAVE_WIN32_THREADS_AND_LOCKS=0
case "$target_os" in
mingw*|windows)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Windows threads and locks" >&5
printf %s "checking for native Windows threads and locks... " >&6; }
2021-07-28 14:17:47 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define GS_USE_WIN32_THREADS_AND_LOCKS 1
#include "$srcdir/Source/GSPThread.h"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2021-07-28 14:17:47 +00:00
HAVE_WIN32_THREADS_AND_LOCKS=1
2024-07-16 13:20:38 +00:00
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2021-07-28 14:17:47 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2021-07-28 14:17:47 +00:00
;;
esac
2015-04-01 08:44:17 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# Check for pthread.h
2015-04-01 08:44:17 +00:00
#--------------------------------------------------------------------
2021-07-28 14:17:47 +00:00
if test $HAVE_WIN32_THREADS_AND_LOCKS = 0; then
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes
then :
printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
2018-08-08 09:29:05 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default
2021-07-28 14:17:47 +00:00
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
2018-08-08 09:29:05 +00:00
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_header_pthread_np_h" = xyes
then :
printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
if test $ac_cv_header_pthread_h = yes ; then
# The cast to long int works around a bug in the HP C Compiler
2015-08-16 10:04:46 +00: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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_mutex_t" >&5
printf %s "checking size of pthread_mutex_t... " >&6; }
if test ${ac_cv_sizeof_pthread_mutex_t+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_mutex_t))" "ac_cv_sizeof_pthread_mutex_t" "$ac_includes_default
2021-07-28 14:17:47 +00:00
#include <pthread.h>
2024-07-16 13:20:38 +00:00
"
then :
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_pthread_mutex_t" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (pthread_mutex_t)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_pthread_mutex_t=0
fi
fi
2014-02-02 08:57:42 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_mutex_t" >&5
printf "%s\n" "$ac_cv_sizeof_pthread_mutex_t" >&6; }
2012-03-21 09:06:40 +00:00
2013-11-26 22:55:47 +00:00
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_PTHREAD_MUTEX_T $ac_cv_sizeof_pthread_mutex_t" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
GS_SIZEOF_MUTEX_T=$ac_cv_sizeof_pthread_mutex_t
if test $ac_cv_sizeof_pthread_mutex_t = 0 ; then
as_fn_error $? "Unable to find size of pthread_mutex_t (required)." "$LINENO" 5
fi
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
GS_SIZEOF_COND_MUTEX_T=$ac_cv_sizeof_pthread_mutex_t
# pthread_mutex_t.__data.__owner is non-standard since pthread_mutex_t is
# nominally an opaque type. We must not rely on this for anything other
# than debug output!
ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__owner" "ac_cv_member_pthread_mutex_t___data___owner" "$ac_includes_default
#include <pthread.h>
2015-08-16 10:04:46 +00:00
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_member_pthread_mutex_t___data___owner" = xyes
then :
2015-08-16 10:04:46 +00:00
2015-04-01 08:44:17 +00:00
fi
2021-07-28 14:17:47 +00:00
if test $ac_cv_member_pthread_mutex_t___data___owner = yes ; then
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_PTHREAD_MUTEX_OWNER 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2021-07-28 14:17:47 +00:00
fi
# The cast to long int works around a bug in the HP C Compiler
2015-08-16 10:04:46 +00: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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_cond_t" >&5
printf %s "checking size of pthread_cond_t... " >&6; }
if test ${ac_cv_sizeof_pthread_cond_t+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_cond_t))" "ac_cv_sizeof_pthread_cond_t" "$ac_includes_default
2021-07-28 14:17:47 +00:00
#include <pthread.h>
2024-07-16 13:20:38 +00:00
"
then :
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_pthread_cond_t" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute sizeof (pthread_cond_t)
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_sizeof_pthread_cond_t=0
fi
2015-02-15 17:56:32 +00:00
fi
2014-11-28 18:38:24 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_cond_t" >&5
printf "%s\n" "$ac_cv_sizeof_pthread_cond_t" >&6; }
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_PTHREAD_COND_T $ac_cv_sizeof_pthread_cond_t" >>confdefs.h
2014-11-28 18:38:24 +00:00
2015-02-15 17:56:32 +00:00
2021-07-28 14:17:47 +00:00
if test $ac_cv_sizeof_pthread_cond_t = 0 ; then
as_fn_error $? "Unable to find size of pthread_cond_t (required)." "$LINENO" 5
fi
GS_SIZEOF_COND_T=$ac_cv_sizeof_pthread_cond_t
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
# The cast to long int works around a bug in the HP C Compiler,
2015-08-16 10:04:46 +00:00
# see AC_CHECK_SIZEOF for more information.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of pthread_mutex_t" >&5
printf %s "checking alignment of pthread_mutex_t... " >&6; }
if test ${ac_cv_alignof_pthread_mutex_t+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_pthread_mutex_t" "$ac_includes_default
2021-07-28 14:17:47 +00:00
#include <pthread.h>
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
typedef struct { char x; pthread_mutex_t y; } ac__type_alignof_;"
then :
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_pthread_mutex_t" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute alignment of pthread_mutex_t
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_alignof_pthread_mutex_t=0
fi
fi
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_pthread_mutex_t" >&5
printf "%s\n" "$ac_cv_alignof_pthread_mutex_t" >&6; }
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define ALIGNOF_PTHREAD_MUTEX_T $ac_cv_alignof_pthread_mutex_t" >>confdefs.h
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
GS_ALIGNOF_MUTEX_T=$ac_cv_alignof_pthread_mutex_t
if test $ac_cv_alignof_pthread_mutex_t = 0 ; then
as_fn_error $? "Unable to find align of pthread_mutex_t (required)." "$LINENO" 5
fi
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
GS_ALIGNOF_COND_MUTEX_T=$ac_cv_alignof_pthread_mutex_t
# The cast to long int works around a bug in the HP C Compiler,
2015-08-16 10:04:46 +00:00
# see AC_CHECK_SIZEOF for more information.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of pthread_cond_t" >&5
printf %s "checking alignment of pthread_cond_t... " >&6; }
if test ${ac_cv_alignof_pthread_cond_t+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_pthread_cond_t" "$ac_includes_default
2021-07-28 14:17:47 +00:00
#include <pthread.h>
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
typedef struct { char x; pthread_cond_t y; } ac__type_alignof_;"
then :
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
if test "$ac_cv_type_pthread_cond_t" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error 77 "cannot compute alignment of pthread_cond_t
See \`config.log' for more details" "$LINENO" 5; }
2015-08-16 10:04:46 +00:00
else
ac_cv_alignof_pthread_cond_t=0
fi
2015-05-13 10:57:56 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_pthread_cond_t" >&5
printf "%s\n" "$ac_cv_alignof_pthread_cond_t" >&6; }
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define ALIGNOF_PTHREAD_COND_T $ac_cv_alignof_pthread_cond_t" >>confdefs.h
2014-11-28 18:38:24 +00:00
2021-07-28 14:17:47 +00:00
if test $ac_cv_alignof_pthread_cond_t = 0 ; then
as_fn_error $? "Unable to find align of pthread_cond_t (required)." "$LINENO" 5
fi
GS_ALIGNOF_COND_T=$ac_cv_alignof_pthread_cond_t
2015-05-13 10:57:56 +00:00
2021-07-28 14:17:47 +00:00
else
as_fn_error $? "Unable to find pthread.h (needed for thread support)." "$LINENO" 5
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
printf %s "checking for pthread_join in -lpthread... " >&6; }
if test ${ac_cv_lib_pthread_pthread_join+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* 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. */
2015-08-16 10:04:46 +00:00
char pthread_join ();
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
return pthread_join ();
2015-05-13 10:57:56 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_pthread_pthread_join=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_pthread_pthread_join=no
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
printf "%s\n" "$ac_cv_lib_pthread_pthread_join" >&6; }
if test "x$ac_cv_lib_pthread_pthread_join" = xyes
then :
2015-08-16 10:04:46 +00:00
pthread_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
pthread_ok=no
2014-12-28 13:19:19 +00:00
fi
2015-05-13 10:57:56 +00:00
2021-07-28 14:17:47 +00:00
if test $pthread_ok = yes ; then
LIBS="$LIBS -lpthread"
else
case "$target_os" in
mingw*)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthreadGC2" >&5
printf %s "checking for pthread_join in -lpthreadGC2... " >&6; }
if test ${ac_cv_lib_pthreadGC2_pthread_join+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthreadGC2 $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2014-08-19 11:45:36 +00:00
2015-05-13 10:57:56 +00: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. */
2015-08-16 10:04:46 +00:00
char pthread_join ();
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
return pthread_join ();
2015-05-13 10:57:56 +00:00
;
return 0;
}
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_pthreadGC2_pthread_join=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_pthreadGC2_pthread_join=no
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC2_pthread_join" >&5
printf "%s\n" "$ac_cv_lib_pthreadGC2_pthread_join" >&6; }
if test "x$ac_cv_lib_pthreadGC2_pthread_join" = xyes
then :
2015-08-16 10:04:46 +00:00
pthread_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
pthread_ok=no
2015-04-01 08:44:17 +00:00
fi
2014-02-02 08:57:42 +00:00
2021-07-28 14:17:47 +00:00
if test $pthread_ok = yes ; then
LIBS="$LIBS -lpthreadGC2"
fi
;;
windows)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthreadVC2" >&5
printf %s "checking for pthread_join in -lpthreadVC2... " >&6; }
if test ${ac_cv_lib_pthreadVC2_pthread_join+y}
then :
printf %s "(cached) " >&6
else $as_nop
2021-02-08 21:19:41 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthreadVC2 $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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. */
char pthread_join ();
int
2024-07-16 13:20:38 +00:00
main (void)
2021-02-08 21:19:41 +00:00
{
return pthread_join ();
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2021-02-08 21:19:41 +00:00
ac_cv_lib_pthreadVC2_pthread_join=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2021-02-08 21:19:41 +00:00
ac_cv_lib_pthreadVC2_pthread_join=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2021-02-08 21:19:41 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadVC2_pthread_join" >&5
printf "%s\n" "$ac_cv_lib_pthreadVC2_pthread_join" >&6; }
if test "x$ac_cv_lib_pthreadVC2_pthread_join" = xyes
then :
2021-02-08 21:19:41 +00:00
pthread_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2021-02-08 21:19:41 +00:00
pthread_ok=no
fi
2021-07-28 14:17:47 +00:00
if test $pthread_ok = yes ; then
LIBS="$LIBS -lpthreadVC2"
fi
;;
nto*|qnx*|*android*)
# Android and QNX have pthread in libc instead of libpthread
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lc" >&5
printf %s "checking for pthread_join in -lc... " >&6; }
if test ${ac_cv_lib_c_pthread_join+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lc $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00: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. */
2015-08-16 10:04:46 +00:00
char pthread_join ();
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
return pthread_join ();
2015-05-13 10:57:56 +00:00
;
return 0;
}
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_c_pthread_join=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_c_pthread_join=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_join" >&5
printf "%s\n" "$ac_cv_lib_c_pthread_join" >&6; }
if test "x$ac_cv_lib_c_pthread_join" = xyes
then :
2015-08-16 10:04:46 +00:00
pthread_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
pthread_ok=no
2015-04-01 08:44:17 +00:00
fi
2015-02-15 17:56:32 +00:00
2021-07-28 14:17:47 +00:00
if test $pthread_ok = yes ; then
LIBS="$LIBS -lc"
fi
;;
esac
fi
if test $pthread_ok = no ; then
as_fn_error $? "Unable to find pthread library (needed for thread support)." "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
2021-07-28 14:17:47 +00:00
# Check threading extensions
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "pthread_getthreadid_np" "ac_cv_func_pthread_getthreadid_np"
if test "x$ac_cv_func_pthread_getthreadid_np" = xyes
then :
printf "%s\n" "#define HAVE_PTHREAD_GETTHREADID_NP 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "pthread_main_np" "ac_cv_func_pthread_main_np"
if test "x$ac_cv_func_pthread_main_np" = xyes
then :
printf "%s\n" "#define HAVE_PTHREAD_MAIN_NP 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-02-15 17:56:32 +00:00
2021-07-28 14:17:47 +00:00
# Typically need librt on Solaris for sched_yield
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
printf %s "checking for sched_yield in -lrt... " >&6; }
if test ${ac_cv_lib_rt_sched_yield+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lrt $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2012-11-02 13:44:30 +00:00
2015-05-13 10:57:56 +00: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. */
2015-08-16 10:04:46 +00:00
char sched_yield ();
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
return sched_yield ();
2015-05-13 10:57:56 +00:00
;
return 0;
}
2015-02-15 17:56:32 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_rt_sched_yield=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_rt_sched_yield=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
if test "x$ac_cv_lib_rt_sched_yield" = xyes
then :
printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
LIBS="-lrt $LIBS"
fi
2021-07-28 14:17:47 +00:00
# Check if we can name pthreads
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np()" >&5
printf %s "checking for pthread_setname_np()... " >&6; }
if test ${gs_cv_pthread_setname_np+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <pthread.h>
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
pthread_setname_np("name");
;
return 0;
}
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
gs_cv_pthread_setname_np=darwin
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <pthread.h>
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
pthread_setname_np(pthread_self(), "name");
2015-05-13 10:57:56 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
gs_cv_pthread_setname_np=glibc
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <pthread.h>
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
pthread_setname_np(pthread_self(), "%s", "name");
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
gs_cv_pthread_setname_np=netbsd
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
gs_cv_pthread_setname_np=none
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2014-08-19 11:45:36 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gs_cv_pthread_setname_np" >&5
printf "%s\n" "$gs_cv_pthread_setname_np" >&6; }
2021-07-28 14:17:47 +00:00
case $gs_cv_pthread_setname_np in
darwin)
2014-08-19 11:45:36 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PTHREAD_SETNAME(a) pthread_setname_np(a)" >>confdefs.h
2015-04-01 08:44:17 +00:00
2021-07-28 14:17:47 +00:00
;;
glibc)
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PTHREAD_SETNAME(a) pthread_setname_np(pthread_self(),a)" >>confdefs.h
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
;;
netbsd)
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PTHREAD_SETNAME(a) pthread_setname_np(pthread_self(),\"%s\",a)" >>confdefs.h
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
;;
esac
2015-08-16 10:04:46 +00:00
2024-04-27 13:45:01 +00:00
# Check if we can get names of pthreads
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_getname_np()" >&5
printf %s "checking for pthread_getname_np()... " >&6; }
if test ${gs_cv_pthread_getname_np+y}
then :
printf %s "(cached) " >&6
else $as_nop
2024-04-27 13:45:01 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <pthread.h>
int
2024-07-16 13:20:38 +00:00
main (void)
2024-04-27 13:45:01 +00:00
{
char name16; pthread_getname_np(pthread_self(), name, 16);
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2024-04-27 13:45:01 +00:00
gs_cv_pthread_getname_np=generic
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2024-04-27 13:45:01 +00:00
conftest$ac_exeext conftest.$ac_ext
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gs_cv_pthread_getname_np" >&5
printf "%s\n" "$gs_cv_pthread_getname_np" >&6; }
2024-04-27 13:45:01 +00:00
case $gs_cv_pthread_getname_np in
generic)
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PTHREAD_GETNAME(b,c) pthread_getname_np(pthread_self(),b,c)" >>confdefs.h
2024-04-27 13:45:01 +00:00
;;
esac
2021-07-28 14:17:47 +00:00
# Check if we have spinlock support
2018-04-24 11:24:37 +00:00
ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func_pthread_spin_lock" = xyes
then :
printf "%s\n" "#define HAVE_PTHREAD_SPIN_LOCK 1" >>confdefs.h
2018-04-24 11:24:37 +00:00
fi
2021-07-28 14:17:47 +00:00
fi
#--------------------------------------------------------------------
# Check Win32 lock sizes
#--------------------------------------------------------------------
if test $HAVE_WIN32_THREADS_AND_LOCKS = 1; 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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of gs_mutex_t" >&5
printf %s "checking size of gs_mutex_t... " >&6; }
if test ${ac_cv_sizeof_gs_mutex_t+y}
then :
printf %s "(cached) " >&6
else $as_nop
2021-07-28 14:17:47 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gs_mutex_t))" "ac_cv_sizeof_gs_mutex_t" "$ac_includes_default
#define GS_USE_WIN32_THREADS_AND_LOCKS 1
2024-02-05 21:51:57 +00:00
#include \"$srcdir/Source/GSPThread.h\"
2024-07-16 13:20:38 +00:00
"
then :
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2021-07-28 14:17:47 +00:00
if test "$ac_cv_type_gs_mutex_t" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2021-07-28 14:17:47 +00:00
as_fn_error 77 "cannot compute sizeof (gs_mutex_t)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof_gs_mutex_t=0
fi
fi
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gs_mutex_t" >&5
printf "%s\n" "$ac_cv_sizeof_gs_mutex_t" >&6; }
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_GS_MUTEX_T $ac_cv_sizeof_gs_mutex_t" >>confdefs.h
2021-07-28 14:17:47 +00:00
GS_SIZEOF_MUTEX_T=$ac_cv_sizeof_gs_mutex_t
if test $ac_cv_sizeof_gs_mutex_t = 0 ; then
as_fn_error $? "Unable to find size of gs_mutex_t (required)." "$LINENO" 5
fi
# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of gs_mutex_t" >&5
printf %s "checking alignment of gs_mutex_t... " >&6; }
if test ${ac_cv_alignof_gs_mutex_t+y}
then :
printf %s "(cached) " >&6
else $as_nop
2021-07-28 14:17:47 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_gs_mutex_t" "$ac_includes_default
#define GS_USE_WIN32_THREADS_AND_LOCKS 1
2024-02-05 21:51:57 +00:00
#include \"$srcdir/Source/GSPThread.h\"
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
typedef struct { char x; gs_mutex_t y; } ac__type_alignof_;"
then :
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2021-07-28 14:17:47 +00:00
if test "$ac_cv_type_gs_mutex_t" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2021-07-28 14:17:47 +00:00
as_fn_error 77 "cannot compute alignment of gs_mutex_t
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_alignof_gs_mutex_t=0
fi
fi
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_gs_mutex_t" >&5
printf "%s\n" "$ac_cv_alignof_gs_mutex_t" >&6; }
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define ALIGNOF_GS_MUTEX_T $ac_cv_alignof_gs_mutex_t" >>confdefs.h
2021-07-28 14:17:47 +00:00
GS_ALIGNOF_MUTEX_T=$ac_cv_alignof_gs_mutex_t
if test $ac_cv_alignof_gs_mutex_t = 0 ; then
as_fn_error $? "Unable to find align of gs_mutex_t (required)." "$LINENO" 5
fi
# 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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of CONDITION_VARIABLE" >&5
printf %s "checking size of CONDITION_VARIABLE... " >&6; }
if test ${ac_cv_sizeof_CONDITION_VARIABLE+y}
then :
printf %s "(cached) " >&6
else $as_nop
2021-07-28 14:17:47 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (CONDITION_VARIABLE))" "ac_cv_sizeof_CONDITION_VARIABLE" "$ac_includes_default
#include <windows.h>
2024-07-16 13:20:38 +00:00
"
then :
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2021-07-28 14:17:47 +00:00
if test "$ac_cv_type_CONDITION_VARIABLE" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2021-07-28 14:17:47 +00:00
as_fn_error 77 "cannot compute sizeof (CONDITION_VARIABLE)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof_CONDITION_VARIABLE=0
fi
fi
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_CONDITION_VARIABLE" >&5
printf "%s\n" "$ac_cv_sizeof_CONDITION_VARIABLE" >&6; }
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_CONDITION_VARIABLE $ac_cv_sizeof_CONDITION_VARIABLE" >>confdefs.h
2021-07-28 14:17:47 +00:00
GS_SIZEOF_COND_T=$ac_cv_sizeof_CONDITION_VARIABLE
if test $ac_cv_sizeof_CONDITION_VARIABLE = 0 ; then
as_fn_error $? "Unable to find size of CONDITION_VARIABLE (required)." "$LINENO" 5
fi
# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of CONDITION_VARIABLE" >&5
printf %s "checking alignment of CONDITION_VARIABLE... " >&6; }
if test ${ac_cv_alignof_CONDITION_VARIABLE+y}
then :
printf %s "(cached) " >&6
else $as_nop
2021-07-28 14:17:47 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_CONDITION_VARIABLE" "$ac_includes_default
#include <windows.h>
2024-07-16 13:20:38 +00:00
typedef struct { char x; CONDITION_VARIABLE y; } ac__type_alignof_;"
then :
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2021-07-28 14:17:47 +00:00
if test "$ac_cv_type_CONDITION_VARIABLE" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2021-07-28 14:17:47 +00:00
as_fn_error 77 "cannot compute alignment of CONDITION_VARIABLE
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_alignof_CONDITION_VARIABLE=0
fi
fi
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_CONDITION_VARIABLE" >&5
printf "%s\n" "$ac_cv_alignof_CONDITION_VARIABLE" >&6; }
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define ALIGNOF_CONDITION_VARIABLE $ac_cv_alignof_CONDITION_VARIABLE" >>confdefs.h
2021-07-28 14:17:47 +00:00
GS_ALIGNOF_COND_T=$ac_cv_alignof_CONDITION_VARIABLE
if test $ac_cv_alignof_CONDITION_VARIABLE = 0 ; then
as_fn_error $? "Unable to find align of CONDITION_VARIABLE (required)." "$LINENO" 5
fi
# 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.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of SRWLOCK" >&5
printf %s "checking size of SRWLOCK... " >&6; }
if test ${ac_cv_sizeof_SRWLOCK+y}
then :
printf %s "(cached) " >&6
else $as_nop
2021-07-28 14:17:47 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (SRWLOCK))" "ac_cv_sizeof_SRWLOCK" "$ac_includes_default
#include <windows.h>
2024-07-16 13:20:38 +00:00
"
then :
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2021-07-28 14:17:47 +00:00
if test "$ac_cv_type_SRWLOCK" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2021-07-28 14:17:47 +00:00
as_fn_error 77 "cannot compute sizeof (SRWLOCK)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof_SRWLOCK=0
fi
fi
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_SRWLOCK" >&5
printf "%s\n" "$ac_cv_sizeof_SRWLOCK" >&6; }
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SIZEOF_SRWLOCK $ac_cv_sizeof_SRWLOCK" >>confdefs.h
2021-07-28 14:17:47 +00:00
GS_SIZEOF_COND_MUTEX_T=$ac_cv_sizeof_SRWLOCK
if test $ac_cv_sizeof_SRWLOCK = 0 ; then
as_fn_error $? "Unable to find size of SRWLOCK (required)." "$LINENO" 5
fi
# The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of SRWLOCK" >&5
printf %s "checking alignment of SRWLOCK... " >&6; }
if test ${ac_cv_alignof_SRWLOCK+y}
then :
printf %s "(cached) " >&6
else $as_nop
2021-07-28 14:17:47 +00:00
if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_SRWLOCK" "$ac_includes_default
#include <windows.h>
2024-07-16 13:20:38 +00:00
typedef struct { char x; SRWLOCK y; } ac__type_alignof_;"
then :
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2021-07-28 14:17:47 +00:00
if test "$ac_cv_type_SRWLOCK" = yes; then
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2021-07-28 14:17:47 +00:00
as_fn_error 77 "cannot compute alignment of SRWLOCK
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_alignof_SRWLOCK=0
fi
fi
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_SRWLOCK" >&5
printf "%s\n" "$ac_cv_alignof_SRWLOCK" >&6; }
2021-07-28 14:17:47 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define ALIGNOF_SRWLOCK $ac_cv_alignof_SRWLOCK" >>confdefs.h
2021-07-28 14:17:47 +00:00
GS_ALIGNOF_COND_MUTEX_T=$ac_cv_alignof_SRWLOCK
if test $ac_cv_alignof_SRWLOCK = 0 ; then
as_fn_error $? "Unable to find align of SRWLOCK (required)." "$LINENO" 5
fi
fi
#--------------------------------------------------------------------
# One of these function needed by NSThread.m and objc initialize test
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
if test "x$ac_cv_func_nanosleep" = xyes
then :
printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
if test "x$ac_cv_func_usleep" = xyes
then :
printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "Sleep" "ac_cv_func_Sleep"
if test "x$ac_cv_func_Sleep" = xyes
then :
printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h
2021-07-28 14:17:47 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objc_root_class attribute support" >&5
printf %s "checking for objc_root_class attribute support... " >&6; }
2021-07-28 14:17:47 +00:00
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror $OBJCFLAGS -x objective-c"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
__attribute__((objc_root_class)) @interface RootObject
@end
@implementation RootObject
@end
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
printf "%s\n" "found" >&6; }
2021-07-28 14:17:47 +00:00
gs_objc_root_class_attr=1
2024-07-16 13:20:38 +00:00
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present" >&5
printf "%s\n" "not present" >&6; }
2021-07-28 14:17:47 +00:00
gs_objc_root_class_attr=0
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2021-07-28 14:17:47 +00:00
GS_HAVE_OBJC_ROOT_CLASS_ATTR=$gs_objc_root_class_attr
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_OBJC_ROOT_CLASS_ATTRIBUTE $gs_objc_root_class_attr" >>confdefs.h
2021-07-28 14:17:47 +00:00
CFLAGS=$saved_CFLAGS
2018-04-24 11:24:37 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check whether we can get the system thread ID
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettid()" >&5
printf %s "checking for gettid()... " >&6; }
if test ${ac_cv_gettid+y}
then :
printf %s "(cached) " >&6
else $as_nop
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
ac_cv_gettid=no
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/types.h>
int main(int argc, char **argv) {
pid_t t = syscall(SYS_gettid); return t == -1 ? 1 : 0; }
2015-05-13 10:57:56 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_gettid=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_gettid=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2015-05-13 10:57:56 +00:00
2014-11-28 18:38:24 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gettid" >&5
printf "%s\n" "$ac_cv_gettid" >&6; }
2015-08-16 10:04:46 +00:00
if test "$ac_cv_gettid" = "yes"; then
2014-08-19 11:45:36 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
fi
#--------------------------------------------------------------------
# Check whether Objective-C /really/ works
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether objc really works" >&5
printf %s "checking whether objc really works... " >&6; }
2015-08-16 10:04:46 +00:00
saved_LIBS="$LIBS"
saved_CPPFLAGS="$CPPFLAGS"
LIBS="$LIBS $LIBOBJC"
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
if test x"$objc_threaded" != x""; then
LIBS="$LIBS $objc_threaded"
fi
LIBS="$LIBS $extra_LIBS"
2024-07-16 13:20:38 +00:00
if test ${gs_cv_objc_works+y}
then :
printf %s "(cached) " >&6
else $as_nop
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
gs_cv_objc_works="$cross_gs_cv_objc_works"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include "$srcdir/config/config.objc.m"
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
gs_cv_objc_works=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
gs_cv_objc_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
if test $gs_cv_objc_works = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-08-16 10:04:46 +00:00
echo "I don't seem to be able to use your Objective-C compiler to produce"
echo "working binaries! Please check your Objective-C compiler installation."
echo "If you are using gcc-3.x make sure that your compiler's libgcc_s and libobjc"
echo "can be found by the dynamic linker - usually that requires you to play"
echo "with LD_LIBRARY_PATH or /etc/ld.so.conf."
echo "Please refer to your compiler installation instructions for more help."
2017-12-20 13:25:41 +00:00
as_fn_error $? "The Objective-C compiler does not work or is not installed properly." "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
#---------------------------------------------------------------------
# See if we are using a compiler which allows us to change the class
# to be used for constant strings by using the -fconstant-string-class
# option. If that is the case, we change it to NSConstantString.
# Unless we are building for the apple runtime (ie only building base
# additions library and not implementing a constant string class).
#---------------------------------------------------------------------
if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
NX_CONST_STRING_OBJCFLAGS=""
NX_CONST_STRING_CLASS=NXConstantString
else
strclass_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -fconstant-string-class=FooConstantString"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -fconstant-string-class" >&5
printf %s "checking if the compiler supports -fconstant-string-class... " >&6; }
if test ${gs_cv_objc_compiler_supports_constant_string_class+y}
then :
printf %s "(cached) " >&6
else $as_nop
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
gs_cv_objc_compiler_supports_constant_string_class="$cross_gs_cv_objc_compiler_supports_constant_string_class"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.constant-string-class.m"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
gs_cv_objc_compiler_supports_constant_string_class=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
gs_cv_objc_compiler_supports_constant_string_class=no
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
if test $gs_cv_objc_compiler_supports_constant_string_class = yes; then
NX_CONST_STRING_OBJCFLAGS="-fconstant-string-class=NSConstantString"
NX_CONST_STRING_CLASS=NSConstantString
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-08-16 10:04:46 +00:00
# Check whether --enable-nxconstantstring was given.
2024-07-16 13:20:38 +00:00
if test ${enable_nxconstantstring+y}
then :
2015-08-16 10:04:46 +00:00
enableval=$enable_nxconstantstring;
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
enable_nxconstantstring=no
2015-05-13 10:57:56 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
if test $enable_nxconstantstring = yes; then
NX_CONST_STRING_OBJCFLAGS=""
NX_CONST_STRING_CLASS=NXConstantString
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have enabled the use of NXConstantString as the string class in gnustep-base. The objective-c runtime library typically implements its own class of the same name, so you must either enforce a link order which ensures that the gnustep-base implementation is used, or (better) you must remove the class from the runtime library!" >&5
printf "%s\n" "$as_me: WARNING: You have enabled the use of NXConstantString as the string class in gnustep-base. The objective-c runtime library typically implements its own class of the same name, so you must either enforce a link order which ensures that the gnustep-base implementation is used, or (better) you must remove the class from the runtime library!" >&2;}
2015-08-16 10:04:46 +00:00
else
2017-12-20 13:25:41 +00:00
as_fn_error $? "Your compiler does not appear to implement the -fconstant-string-class option needed for support of strings. Please check for a more recent version or consider using --enable-nxconstantstring" "$LINENO" 5
2015-08-16 10:04:46 +00:00
fi
fi
CPPFLAGS="$strclass_CPPFLAGS"
fi
2014-02-02 08:57:42 +00:00
2014-08-19 11:45:36 +00:00
2015-04-01 08:44:17 +00:00
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#---------------------------------------------------------------------
# Guess if we are using a compiler which has the (GNU extension) +load
# method which is executed before main.
# Defines HAVE_LOAD_METHOD if +load methods are called before main.
# Needed by NSProcessInfo.m
#---------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if +load method is executed before main" >&5
printf %s "checking if +load method is executed before main... " >&6; }
if test ${gs_cv_objc_load_method_worked+y}
then :
printf %s "(cached) " >&6
else $as_nop
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
gs_cv_objc_load_method_worked="$cross_gs_cv_objc_load_method_worked"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include "$srcdir/config/config.loadtest.m"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
gs_cv_objc_load_method_worked=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
gs_cv_objc_load_method_worked=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $gs_cv_objc_load_method_worked = yes; then
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_LOAD_METHOD 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-05-13 10:57:56 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-04-01 08:44:17 +00:00
fi
2015-03-31 09:14:01 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
#--------------------------------------------------------------------
# Check for thread synchronisation support in runtime
#--------------------------------------------------------------------
2021-01-18 13:20:14 +00:00
if test "$host_os" = windows -a "$OBJC_RUNTIME_LIB" = "ng"; then
# On Windows MSVC, AC_CHECK_FUNCS() will throw linker errors ("relocation
# against symbol in discarded section") as the file won't contain any actual
# ObjC code, so we just assume the function is there.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: assuming objc_sync_enter() on Windows MSVC" >&5
printf "%s\n" "$as_me: assuming objc_sync_enter() on Windows MSVC" >&6;}
2021-01-18 13:20:14 +00:00
OBJCSYNC=1
else
2015-08-16 10:04:46 +00:00
ac_fn_c_check_func "$LINENO" "objc_sync_enter" "ac_cv_func_objc_sync_enter"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func_objc_sync_enter" = xyes
then :
printf "%s\n" "#define HAVE_OBJC_SYNC_ENTER 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-04-01 08:44:17 +00:00
2021-01-18 13:20:14 +00:00
if test $ac_cv_func_objc_sync_enter = yes ; then
OBJCSYNC=1
else
OBJCSYNC=0
if test "$OBJC_RUNTIME_LIB" = "ng"; then
as_fn_error $? "The objc runtime library does not appear to have synchronisation support. Try re-configuring gnustep-make with a CPPFLAGS variable containing a -L point to specify the directory containing the correct libobjc, or using the --with-objc-lib-flag=... option." "$LINENO" 5
fi
2016-03-02 14:42:43 +00:00
fi
2012-11-28 05:46:21 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check for ObjC2 support in runtime
#--------------------------------------------------------------------
if test "$cross_compiling" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \"Cross compiling! Using predefined OBJC2RUNTIME variable\"" >&5
printf "%s\n" "$as_me: \"Cross compiling! Using predefined OBJC2RUNTIME variable\"" >&6;}
2015-08-16 10:04:46 +00:00
OBJC2RUNTIME="$cross_objc2_runtime"
2021-01-18 13:20:14 +00:00
elif test "$host_os" = windows -a "$OBJC_RUNTIME_LIB" = "ng"; then
# On Windows MSVC, AC_CHECK_FUNCS() will throw linker errors ("relocation
# against symbol in discarded section") as the file won't contain any actual
# ObjC code, so we just assume the function is there.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: assuming objc_setProperty() on Windows MSVC" >&5
printf "%s\n" "$as_me: assuming objc_setProperty() on Windows MSVC" >&6;}
2021-01-18 13:20:14 +00:00
OBJC2RUNTIME=1
2015-08-16 10:04:46 +00:00
else
ac_fn_c_check_func "$LINENO" "objc_setProperty" "ac_cv_func_objc_setProperty"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func_objc_setProperty" = xyes
then :
printf "%s\n" "#define HAVE_OBJC_SETPROPERTY 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
fi
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
if test $ac_cv_func_objc_setProperty = yes ; then
OBJC2RUNTIME=1
else
OBJC2RUNTIME=0
2016-03-02 14:42:43 +00:00
if test "$OBJC_RUNTIME_LIB" = "ng"; then
2017-12-20 13:25:41 +00:00
as_fn_error $? "The objc runtime library does not appear to have property support. Try re-configuring gnustep-make with a CPPFLAGS variable containing a -L point to specify the directory containing the correct libobjc, or using the --with-objc-lib-flag=... option." "$LINENO" 5
2016-03-02 14:42:43 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
2014-12-28 13:19:19 +00:00
fi
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check for blocks support in runtime
#--------------------------------------------------------------------
2021-01-18 13:20:14 +00:00
if test "$host_os" = windows -a "$OBJC_RUNTIME_LIB" = "ng"; then
# On Windows MSVC, AC_CHECK_FUNCS() will throw linker errors ("relocation
# against symbol in discarded section") as the file won't contain any actual
# ObjC code, so we just assume the function is there.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: assuming _Block_copy() on Windows MSVC" >&5
printf "%s\n" "$as_me: assuming _Block_copy() on Windows MSVC" >&6;}
2021-01-18 13:20:14 +00:00
HAVE_BLOCKS=1
else
2015-08-16 10:04:46 +00:00
ac_fn_c_check_func "$LINENO" "_Block_copy" "ac_cv_func__Block_copy"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func__Block_copy" = xyes
then :
printf "%s\n" "#define HAVE__BLOCK_COPY 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
fi
2014-08-19 11:45:36 +00:00
2021-01-18 13:20:14 +00:00
if test $ac_cv_func__Block_copy = yes ; then
HAVE_BLOCKS=1
else
HAVE_BLOCKS=0
if test "$OBJC_RUNTIME_LIB" = "ng"; then
as_fn_error $? "The objc runtime library does not appear to have blocks support. Try re-configuring gnustep-make with a CPPFLAGS variable containing a -L point to specify the directory containing the correct libobjc, or using the --with-objc-lib-flag=... option." "$LINENO" 5
fi
2016-03-02 14:42:43 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
2014-08-19 11:45:36 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
GS_NONFRAGILE=0
if test "$nonfragile" = "yes"; then
2021-01-18 13:20:14 +00:00
if test "$host_os" = windows -a "$OBJC_RUNTIME_LIB" = "ng"; then
# On Windows MSVC, AC_CHECK_FUNCS() will throw linker errors ("relocation
# against symbol in discarded section") as the file won't contain any actual
# ObjC code, so we just assume the function is there.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: assuming non-fragile-abi support on Windows MSVC" >&5
printf "%s\n" "$as_me: assuming non-fragile-abi support on Windows MSVC" >&6;}
2021-01-18 13:20:14 +00:00
GS_NONFRAGILE=1
else
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-fragile-abi support" >&5
printf %s "checking for non-fragile-abi support... " >&6; }
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
non_fragile="$cross_non_fragile"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.non-fragile-ivars.m"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
non_fragile=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
non_fragile=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2012-03-21 09:06:40 +00:00
2021-01-18 13:20:14 +00:00
CPPFLAGS="$saved_CPPFLAGS"
if test $non_fragile = yes; then
GS_NONFRAGILE=1
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $non_fragile" >&5
printf "%s\n" "$non_fragile" >&6; }
2021-01-18 13:20:14 +00:00
fi
2015-08-16 10:04:46 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# get_uninstalled_dtable used by behavior.m and objc-load.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
printf %s "checking for grep that handles long lines and -e... " >&6; }
if test ${ac_cv_path_GREP+y}
then :
printf %s "(cached) " >&6
else $as_nop
if test -z "$GREP"; then
ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_prog in grep ggrep
do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
# 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
printf %s 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
printf "%s\n" 'GREP' >> "conftest.nl"
"$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
as_fn_arith $ac_count + 1 && ac_count=$as_val
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
$ac_path_GREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_GREP"; then
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi
else
ac_cv_path_GREP=$GREP
fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
printf "%s\n" "$ac_cv_path_GREP" >&6; }
GREP="$ac_cv_path_GREP"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
printf %s "(cached) " >&6
else $as_nop
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
then ac_cv_path_EGREP="$GREP -E"
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_prog in egrep
do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
# 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
printf %s 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val
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
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
$ac_path_EGREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi
else
ac_cv_path_EGREP=$EGREP
fi
fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
EGREP="$ac_cv_path_EGREP"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <objc/objc-api.h>
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2024-07-16 13:20:38 +00:00
$EGREP "objc_get_uninstalled_dtable" >/dev/null 2>&1
then :
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_OBJC_GET_UNINSTALLED_DTABLE 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -rf conftest*
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Native Objective-C exceptions
#--------------------------------------------------------------------
2015-05-13 10:57:56 +00:00
2015-08-16 10:42:48 +00:00
if test "$OBJC_RUNTIME_LIB" = "ng"; then
2015-08-16 10:04:46 +00:00
exceptions=yes
2015-05-13 10:57:56 +00:00
else
2015-08-16 10:42:48 +00:00
# Determine if native Objective-C exceptions are enabled
# in gnustep-make. They are enabled if the compiler supports it; they
# are disabled if it doesn't. And, of course, the user may have
# forced one behaviour or the other. Note that we go and look at the
# actual config.make file to be able to know what was configured in
# gnustep-make regardless of any gnustep-base that is currently
# installed. We can't use `gnustep-config --objc-flags` because that
# may report native exceptions as disabled because the currently
# installed gnustep-base has them disabled.
if grep USE_OBJC_EXCEPTIONS $CURRENT_GNUSTEP_MAKEFILES/$lobj_dir/config.make | grep yes >&5 2>&5; then
exceptions=yes
else
exceptions=no
fi
2014-08-19 11:45:36 +00:00
fi
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
# At this point, if exceptions=no, then native exceptions are disabled
# and won't be used. If exceptions=yes, we need to check if they work
# and if the runtime has proper support for them. If it does, we'll
# happily use them; if it doesn't, we'll automatically disable them
# because they don't work. ;-)
#--------------------------------------------------------------------
# One of these is needed by for handling uncaught exceptions
#--------------------------------------------------------------------
# TODO: These checks are not really needed if native exceptions are
# disabled. So maybe we should not run them at all in that case. On
# the other hand, that case is going to become more and more unusual.
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objc_setUncaughtExceptionHandler() in runtime" >&5
printf %s "checking for objc_setUncaughtExceptionHandler() in runtime... " >&6; }
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include "$srcdir/config/config.setUncaughtExceptionHandler.m"
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
have_set_uncaught_exception_handler=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_set_uncaught_exception_handler=no
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
if test $have_set_uncaught_exception_handler = yes; then
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_SET_UNCAUGHT_EXCEPTION_HANDLER 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_set_uncaught_exception_handler" >&5
printf "%s\n" "$have_set_uncaught_exception_handler" >&6; }
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objc_set_unexpected() in runtime" >&5
printf %s "checking for objc_set_unexpected() in runtime... " >&6; }
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.set_unexpected.m"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
have_set_unexpected=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_set_unexpected=no
2014-08-19 11:45:36 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
if test $have_set_unexpected = yes; then
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_SET_UNEXPECTED 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_set_unexpected" >&5
printf "%s\n" "$have_set_unexpected" >&6; }
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _objc_unexpected_exception in runtime" >&5
printf %s "checking for _objc_unexpected_exception in runtime... " >&6; }
2021-01-18 13:20:14 +00:00
if test "$host_os" = windows -a "$OBJC_RUNTIME_LIB" = "ng"; then
# On Windows MSVC, AC_CHECK_FUNCS() will throw linker errors ("relocation
# against symbol in discarded section") as the file won't contain any actual
# ObjC code, so we just assume the function is there.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: assuming _objc_unexpected_exception() on Windows MSVC" >&5
printf "%s\n" "$as_me: assuming _objc_unexpected_exception() on Windows MSVC" >&6;}
2021-01-18 13:20:14 +00:00
have_unexpected=yes
else
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
have_unexpected="$cross_have_unexpected"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.unexpected.m"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
have_unexpected=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_unexpected=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2014-12-28 13:19:19 +00:00
fi
2014-11-28 18:38:24 +00:00
2021-01-18 13:20:14 +00:00
fi
2015-08-16 10:04:46 +00:00
if test $have_unexpected = yes; then
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_UNEXPECTED 1" >>confdefs.h
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_unexpected" >&5
printf "%s\n" "$have_unexpected" >&6; }
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
# TODO: It would also be nice to actually test that native Objective-C
# exceptions work.
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
if test "$exceptions" = "yes"; then
if test x"$have_set_uncaught_exception_handler" = x"no"; then
if test x"$have_set_unexpected" = x"no"; then
if test x"$have_unexpected" = x"no"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling native Objective-C exceptions because the ObjC runtime" >&5
printf "%s\n" "$as_me: Disabling native Objective-C exceptions because the ObjC runtime" >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: has no way to set an uncaught exception handler. Please install" >&5
printf "%s\n" "$as_me: has no way to set an uncaught exception handler. Please install" >&6;}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: a recent Objective-C runtime if you want to use them." >&5
printf "%s\n" "$as_me: a recent Objective-C runtime if you want to use them." >&6;}
2015-08-16 10:04:46 +00:00
exceptions="no";
fi
fi
fi
fi
2014-11-28 18:38:24 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable native Objective-C exceptions" >&5
printf %s "checking whether to enable native Objective-C exceptions... " >&6; }
2015-08-16 10:04:46 +00:00
if test "$exceptions" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-08-16 10:04:46 +00:00
BASE_NATIVE_OBJC_EXCEPTIONS=1
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-08-16 10:04:46 +00:00
BASE_NATIVE_OBJC_EXCEPTIONS=0
fi
2014-08-19 11:45:36 +00:00
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2014-11-28 18:38:24 +00:00
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# Function needed by @synchronize directive
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2021-01-18 13:20:14 +00:00
HAVE_OBJC_SYNC_ENTER=no
if test "$host_os" = windows -a "$OBJC_RUNTIME_LIB" = "ng"; then
# On Windows MSVC, AC_CHECK_FUNCS() will throw linker errors ("relocation
# against symbol in discarded section") as the file won't contain any actual
# ObjC code, so we just assume the function is there.
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: assuming objc_sync_enter() on Windows MSVC" >&5
printf "%s\n" "$as_me: assuming objc_sync_enter() on Windows MSVC" >&6;}
2021-01-18 13:20:14 +00:00
HAVE_OBJC_SYNC_ENTER=yes
else
2015-08-16 10:04:46 +00:00
ac_fn_c_check_func "$LINENO" "objc_sync_enter" "ac_cv_func_objc_sync_enter"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func_objc_sync_enter" = xyes
then :
printf "%s\n" "#define HAVE_OBJC_SYNC_ENTER 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2014-02-02 08:57:42 +00:00
fi
2014-12-28 13:19:19 +00:00
2021-01-18 13:20:14 +00:00
if test $ac_cv_func_objc_sync_enter = yes ; then
HAVE_OBJC_SYNC_ENTER=yes
fi
2015-02-15 17:56:32 +00:00
fi
2015-04-01 08:44:17 +00:00
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2014-02-02 08:57:42 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread-safe +initialize in runtime" >&5
printf %s "checking for thread-safe +initialize in runtime... " >&6; }
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
safe_initialize="$cross_safe_initialize"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.initialize.m"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
safe_initialize=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
safe_initialize=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $safe_initialize = yes; then
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_INITIALIZE 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2014-11-28 18:38:24 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your ObjectiveC runtime does not support thread-safe class initialisation. Please use a different runtime if you intend to use threads." >&5
printf "%s\n" "$as_me: WARNING: Your ObjectiveC runtime does not support thread-safe class initialisation. Please use a different runtime if you intend to use threads." >&2;}
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $safe_initialize" >&5
printf "%s\n" "$safe_initialize" >&6; }
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
LIBS="$saved_LIBS"
CPPFLAGS="$saved_CPPFLAGS"
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Generic settings needed by NSZone.m
#--------------------------------------------------------------------
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_type_size_t" = xyes
then :
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define size_t unsigned int" >>confdefs.h
2015-08-16 10:04:46 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
printf %s "checking for inline... " >&6; }
if test ${ac_cv_c_inline+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifndef __cplusplus
typedef int foo_t;
2024-07-16 13:20:38 +00:00
static $ac_kw foo_t static_foo (void) {return 0; }
$ac_kw foo_t foo (void) {return 0; }
2015-08-16 10:04:46 +00:00
#endif
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_c_inline=$ac_kw
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
test "$ac_cv_c_inline" != no && break
2015-04-01 08:44:17 +00:00
done
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
printf "%s\n" "$ac_cv_c_inline" >&6; }
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
case $ac_cv_c_inline in
inline | yes) ;;
*)
case $ac_cv_c_inline in
no) ac_val=;;
*) ac_val=$ac_cv_c_inline;;
esac
cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
;;
esac
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Following header checks needed for bzero in Storage.m and other places
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change. They are probably safe to remove.
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
printf %s "checking for egrep... " >&6; }
if test ${ac_cv_path_EGREP+y}
then :
printf %s "(cached) " >&6
else $as_nop
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
then ac_cv_path_EGREP="$GREP -E"
else
if test -z "$EGREP"; then
ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_prog in egrep
do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
# 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
printf %s 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conftest.tmp"
mv "conftest.tmp" "conftest.in"
cp "conftest.in" "conftest.nl"
printf "%s\n" 'EGREP' >> "conftest.nl"
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
as_fn_arith $ac_count + 1 && ac_count=$as_val
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
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
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
$ac_path_EGREP_found && break 3
done
done
done
IFS=$as_save_IFS
if test -z "$ac_cv_path_EGREP"; then
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
fi
2015-05-13 10:57:56 +00:00
else
2024-07-16 13:20:38 +00:00
ac_cv_path_EGREP=$EGREP
2015-08-16 10:04:46 +00:00
fi
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
fi
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
EGREP="$ac_cv_path_EGREP"
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
if test "x$ac_cv_header_string_h" = xyes
then :
printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
if test "x$ac_cv_header_memory_h" = xyes
then :
printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2014-11-28 18:38:24 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
if test "x$ac_cv_header_alloca_h" = xyes
then :
printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
2011-10-17 18:49:16 +00:00
2015-05-13 10:57:56 +00:00
fi
2013-11-26 22:55:47 +00:00
2024-07-16 13:20:38 +00:00
#--------------------------------------------------------------------
# Following header check needed NSConnection.h
#--------------------------------------------------------------------
ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
if test "x$ac_cv_header_float_h" = xyes
then :
printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
2014-02-02 08:57:42 +00:00
2014-11-28 18:38:24 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
# Header files and functions for files and filesystems
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stat_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_vfs_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_statfs_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_statvfs_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
2012-03-02 06:53:16 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
if test "x$ac_cv_header_pwd_h" = xyes
then :
printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
if test "x$ac_cv_header_grp_h" = xyes
then :
printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_cdefs_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_syslimits_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_SYSLIMITS_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
fi
2015-08-16 10:04:46 +00:00
# Twisted header checks for some BSDs with stupid interdependencies
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "#if HAVE_SYS_CDEFS_H
2015-08-16 10:04:46 +00:00
#include <sys/cdefs.h>
#endif
#include <sys/syslimits.h>
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_header_sys_syslimits_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_SYSLIMITS_H 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-04-01 08:44:17 +00:00
fi
2014-08-19 11:45:36 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "#if HAVE_SYS_CDEFS_H
2015-08-16 10:04:46 +00:00
#include <sys/cdefs.h>
#endif
#if HAVE_SYS_SYSLIMITS_H
#include <sys/syslimits.h>
#endif
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_header_sys_param_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
2014-11-28 18:38:24 +00:00
fi
2014-08-19 11:45:36 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#if HAVE_SYS_CDEFS_H
2015-08-16 10:04:46 +00:00
#include <sys/cdefs.h>
#endif
#if HAVE_SYS_SYSLIMITS_H
#include <sys/syslimits.h>
#endif
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
2013-11-26 22:55:47 +00:00
2015-08-16 10:04:46 +00:00
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_header_sys_mount_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_types_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
if test "x$ac_cv_header_windows_h" = xyes
then :
printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
if test "x$ac_cv_header_locale_h" = xyes
then :
printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
if test "x$ac_cv_header_langinfo_h" = xyes
then :
printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
fi
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
saved_LIBS="$LIBS"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
printf %s "checking for main in -lm... " >&6; }
if test ${ac_cv_lib_m_main+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
return main ();
2015-05-13 10:57:56 +00:00
;
return 0;
}
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_m_main=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_m_main=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
printf "%s\n" "$ac_cv_lib_m_main" >&6; }
if test "x$ac_cv_lib_m_main" = xyes
then :
printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
LIBS="-lm $LIBS"
2014-08-19 11:45:36 +00:00
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
if test "x$ac_cv_func_utimensat" = xyes
then :
printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
if test "x$ac_cv_func_statvfs" = xyes
then :
printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
if test "x$ac_cv_func_link" = xyes
then :
printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
if test "x$ac_cv_func_symlink" = xyes
then :
printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
if test "x$ac_cv_func_readlink" = xyes
then :
printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
if test "x$ac_cv_func_geteuid" = xyes
then :
printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin"
if test "x$ac_cv_func_getlogin" = xyes
then :
printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
if test "x$ac_cv_func_getpwnam" = xyes
then :
printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
if test "x$ac_cv_func_getpwnam_r" = xyes
then :
printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
if test "x$ac_cv_func_getpwuid" = xyes
then :
printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
if test "x$ac_cv_func_getpwuid_r" = xyes
then :
printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid"
if test "x$ac_cv_func_getgrgid" = xyes
then :
printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
if test "x$ac_cv_func_getgrgid_r" = xyes
then :
printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getgrnam" "ac_cv_func_getgrnam"
if test "x$ac_cv_func_getgrnam" = xyes
then :
printf "%s\n" "#define HAVE_GETGRNAM 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
if test "x$ac_cv_func_getgrnam_r" = xyes
then :
printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
if test "x$ac_cv_func_rint" = xyes
then :
printf "%s\n" "#define HAVE_RINT 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
if test "x$ac_cv_func_getopt" = xyes
then :
printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
if test "x$ac_cv_func_malloc_usable_size" = xyes
then :
printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
LIBS="$saved_LIBS"
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pw_gecos field in struct passwd" >&5
printf %s "checking for pw_gecos field in struct passwd... " >&6; }
if test ${ac_cv_have_pw_gecos_in_struct_passwd+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <pwd.h>
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
struct passwd p; p.pw_gecos = 0;
2015-05-13 10:57:56 +00:00
;
return 0;
}
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_have_pw_gecos_in_struct_passwd="yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_have_pw_gecos_in_struct_passwd="no"
2014-02-02 08:57:42 +00:00
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_gecos_in_struct_passwd" >&5
printf "%s\n" "$ac_cv_have_pw_gecos_in_struct_passwd" >&6; }
2015-08-16 10:04:46 +00:00
if test "x$ac_cv_have_pw_gecos_in_struct_passwd" = "xyes" ; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_PW_GECOS_IN_PASSWD 1" >>confdefs.h
2014-02-02 08:57:42 +00:00
2014-12-28 13:19:19 +00:00
fi
2014-08-19 11:45:36 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for currency_symbol field in struct lconv" >&5
printf %s "checking for currency_symbol field in struct lconv... " >&6; }
if test ${ac_cv_have_currency_symbol_in_struct_lconv+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-02-15 17:56:32 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <locale.h>
2015-02-15 17:56:32 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-02-15 17:56:32 +00:00
{
2015-08-16 10:04:46 +00:00
struct lconv l; l.currency_symbol = NULL;
2015-02-15 17:56:32 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_have_currency_symbol_in_struct_lconv="yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_have_currency_symbol_in_struct_lconv="no"
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_currency_symbol_in_struct_lconv" >&5
printf "%s\n" "$ac_cv_have_currency_symbol_in_struct_lconv" >&6; }
2015-08-16 10:04:46 +00:00
if test "x$ac_cv_have_currency_symbol_in_struct_lconv" = "xyes" ; then
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_CURRENCY_SYMBOL_IN_LCONV 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
#--------------------------------------------------------------------
# These two headers (functions) needed by Time.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
if test "x$ac_cv_header_time_h" = xyes
then :
printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "tzfile.h" "ac_cv_header_tzfile_h" "$ac_includes_default"
if test "x$ac_cv_header_tzfile_h" = xyes
then :
printf "%s\n" "#define HAVE_TZFILE_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_rusage_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_RUSAGE_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "ucbinclude/sys/resource.h" "ac_cv_header_ucbinclude_sys_resource_h" "$ac_includes_default"
if test "x$ac_cv_header_ucbinclude_sys_resource_h" = xyes
then :
printf "%s\n" "#define HAVE_UCBINCLUDE_SYS_RESOURCE_H 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
if test "x$ac_cv_func_time" = xyes
then :
printf "%s\n" "#define HAVE_TIME 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime"
if test "x$ac_cv_func_ctime" = xyes
then :
printf "%s\n" "#define HAVE_CTIME 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
if test "x$ac_cv_func_tzset" = xyes
then :
printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
#--------------------------------------------------------------------
# These headers/functions needed by GSTcpPort.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
2015-08-16 10:04:46 +00:00
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_type_socklen_t" = xyes
then :
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2023-09-24 11:26:59 +00:00
#--------------------------------------------------------------------
# This needed by GSSocketStream.h
#--------------------------------------------------------------------
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
#undef inline
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#endif
#else
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#endif
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
then :
2023-09-24 11:26:59 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
2023-09-24 11:26:59 +00:00
fi
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# These headers/functions needed for stacktrace in NSException.m
#--------------------------------------------------------------------
# Check whether --enable-bfd was given.
2024-07-16 13:20:38 +00:00
if test ${enable_bfd+y}
then :
2015-08-16 10:04:46 +00:00
enableval=$enable_bfd;
2024-07-16 13:20:38 +00:00
else $as_nop
2016-05-14 14:47:43 +00:00
enable_bfd=no
2015-08-16 10:04:46 +00:00
fi
2016-05-14 14:47:43 +00:00
if test $enable_bfd = yes ; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define USE_BFD 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You enabled bfd, which causes gnustep-base to link with libbfd. This makes the license GPL rather than the normal LGPL." >&5
printf "%s\n" "$as_me: WARNING: You enabled bfd, which causes gnustep-base to link with libbfd. This makes the license GPL rather than the normal LGPL." >&2;}
2016-05-14 14:47:43 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
if test "x$ac_cv_header_bfd_h" = xyes
then :
printf "%s\n" "#define HAVE_BFD_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libintl_fprintf in -lintl" >&5
printf %s "checking for libintl_fprintf in -lintl... " >&6; }
if test ${ac_cv_lib_intl_libintl_fprintf+y}
then :
printf %s "(cached) " >&6
else $as_nop
2016-03-11 16:52:21 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lintl $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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. */
char libintl_fprintf ();
int
2024-07-16 13:20:38 +00:00
main (void)
2016-03-11 16:52:21 +00:00
{
return libintl_fprintf ();
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2016-03-11 16:52:21 +00:00
ac_cv_lib_intl_libintl_fprintf=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2016-03-11 16:52:21 +00:00
ac_cv_lib_intl_libintl_fprintf=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2016-03-11 16:52:21 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_fprintf" >&5
printf "%s\n" "$ac_cv_lib_intl_libintl_fprintf" >&6; }
if test "x$ac_cv_lib_intl_libintl_fprintf" = xyes
then :
printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h
2016-03-11 16:52:21 +00:00
LIBS="-lintl $LIBS"
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
printf %s "checking for ZSTD_compress in -lzstd... " >&6; }
if test ${ac_cv_lib_zstd_ZSTD_compress+y}
then :
printf %s "(cached) " >&6
else $as_nop
2024-04-14 13:20:43 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lzstd $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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. */
char ZSTD_compress ();
int
2024-07-16 13:20:38 +00:00
main (void)
2024-04-14 13:20:43 +00:00
{
return ZSTD_compress ();
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2024-04-14 13:20:43 +00:00
ac_cv_lib_zstd_ZSTD_compress=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2024-04-14 13:20:43 +00:00
ac_cv_lib_zstd_ZSTD_compress=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2024-04-14 13:20:43 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
printf "%s\n" "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes
then :
printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
2024-04-14 13:20:43 +00:00
LIBS="-lzstd $LIBS"
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyn_string_append in -liberty" >&5
printf %s "checking for dyn_string_append in -liberty... " >&6; }
if test ${ac_cv_lib_iberty_dyn_string_append+y}
then :
printf %s "(cached) " >&6
else $as_nop
2024-04-12 13:32:29 +00:00
ac_check_lib_save_LIBS=$LIBS
2024-04-14 13:14:55 +00:00
LIBS="-liberty $LIBS"
2024-04-12 13:32:29 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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. */
2024-04-14 13:14:55 +00:00
char dyn_string_append ();
2024-04-12 13:32:29 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2024-04-12 13:32:29 +00:00
{
2024-04-14 13:14:55 +00:00
return dyn_string_append ();
2024-04-12 13:32:29 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2024-04-14 13:14:55 +00:00
ac_cv_lib_iberty_dyn_string_append=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2024-04-14 13:14:55 +00:00
ac_cv_lib_iberty_dyn_string_append=no
2024-04-12 13:32:29 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2024-04-12 13:32:29 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_dyn_string_append" >&5
printf "%s\n" "$ac_cv_lib_iberty_dyn_string_append" >&6; }
if test "x$ac_cv_lib_iberty_dyn_string_append" = xyes
then :
printf "%s\n" "#define HAVE_LIBIBERTY 1" >>confdefs.h
2024-04-12 13:32:29 +00:00
2024-04-14 13:14:55 +00:00
LIBS="-liberty $LIBS"
2024-04-12 13:32:29 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
printf %s "checking for gzseek in -lz... " >&6; }
if test ${ac_cv_lib_z_gzseek+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
2024-04-14 13:14:55 +00:00
LIBS="-lz $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2015-04-01 08:44:17 +00: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. */
2024-04-14 13:14:55 +00:00
char gzseek ();
2013-11-26 22:55:47 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2013-11-26 22:55:47 +00:00
{
2024-04-14 13:14:55 +00:00
return gzseek ();
2014-08-19 11:45:36 +00:00
;
return 0;
2013-11-26 22:55:47 +00:00
}
2014-02-02 08:57:42 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2024-04-14 13:14:55 +00:00
ac_cv_lib_z_gzseek=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2024-04-14 13:14:55 +00:00
ac_cv_lib_z_gzseek=no
2014-08-19 11:45:36 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
printf "%s\n" "$ac_cv_lib_z_gzseek" >&6; }
if test "x$ac_cv_lib_z_gzseek" = xyes
then :
printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
2024-04-14 13:14:55 +00:00
LIBS="-lz $LIBS"
2015-08-16 10:04:46 +00:00
2015-02-15 17:56:32 +00:00
fi
2013-11-26 22:55:47 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sframe" >&5
printf %s "checking for library containing sframe... " >&6; }
if test ${ac_cv_search_sframe+y}
then :
printf %s "(cached) " >&6
else $as_nop
2024-04-20 15:23:02 +00:00
ac_func_search_save_LIBS=$LIBS
2021-11-23 14:08:42 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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. */
2024-04-20 15:23:02 +00:00
char sframe ();
2021-11-23 14:08:42 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2021-11-23 14:08:42 +00:00
{
2024-04-20 15:23:02 +00:00
return sframe ();
2021-11-23 14:08:42 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
for ac_lib in '' sframe_decode
do
2024-04-20 15:23:02 +00:00
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
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2024-04-20 15:23:02 +00:00
ac_cv_search_sframe=$ac_res
2021-11-23 14:08:42 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2024-04-20 15:23:02 +00:00
conftest$ac_exeext
2024-07-16 13:20:38 +00:00
if test ${ac_cv_search_sframe+y}
then :
2024-04-20 15:23:02 +00:00
break
2021-11-23 14:08:42 +00:00
fi
2024-04-20 15:23:02 +00:00
done
2024-07-16 13:20:38 +00:00
if test ${ac_cv_search_sframe+y}
then :
2021-11-23 14:08:42 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2024-04-20 15:23:02 +00:00
ac_cv_search_sframe=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sframe" >&5
printf "%s\n" "$ac_cv_search_sframe" >&6; }
2024-04-20 15:23:02 +00:00
ac_res=$ac_cv_search_sframe
2024-07-16 13:20:38 +00:00
if test "$ac_res" != no
then :
2024-04-20 15:23:02 +00:00
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2021-11-23 14:08:42 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
printf %s "checking for bfd_openr in -lbfd... " >&6; }
if test ${ac_cv_lib_bfd_bfd_openr+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lbfd $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00: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. */
char bfd_openr ();
2015-04-01 08:44:17 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-04-01 08:44:17 +00:00
{
2015-08-16 10:04:46 +00:00
return bfd_openr ();
2015-04-01 08:44:17 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_bfd_bfd_openr=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_bfd_bfd_openr=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
printf "%s\n" "$ac_cv_lib_bfd_bfd_openr" >&6; }
if test "x$ac_cv_lib_bfd_bfd_openr" = xyes
then :
printf "%s\n" "#define HAVE_LIBBFD 1" >>confdefs.h
2013-11-26 22:55:47 +00:00
2015-08-16 10:04:46 +00:00
LIBS="-lbfd $LIBS"
2014-11-28 18:38:24 +00:00
2015-02-15 17:56:32 +00:00
fi
2015-04-01 08:44:17 +00:00
2021-03-18 21:35:34 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
#include <bfd.h>
2021-03-18 21:35:34 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2021-03-18 21:35:34 +00:00
{
bfd_section_vma(0);
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2021-03-18 21:35:34 +00:00
bfd_section_vma=1
2024-07-16 13:20:38 +00:00
else $as_nop
2021-03-18 21:35:34 +00:00
bfd_section_vma=0
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2021-03-18 21:35:34 +00:00
if test $bfd_section_vma = 1; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: bfd_section_vma found" >&5
printf "%s\n" "bfd_section_vma found" >&6; }
2021-03-18 21:35:34 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_BFD_SECTION_VMA 1" >>confdefs.h
2021-03-18 21:35:34 +00:00
fi
2021-07-28 14:17:47 +00:00
case "$target_os" in
mingw*)
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "dbghelp.h" "ac_cv_header_dbghelp_h" "$ac_includes_default"
if test "x$ac_cv_header_dbghelp_h" = xyes
then :
printf "%s\n" "#define HAVE_DBGHELP_H 1" >>confdefs.h
2016-03-11 16:52:21 +00:00
fi
2021-07-28 14:17:47 +00:00
;;
*)
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
if test "x$ac_cv_header_execinfo_h" = xyes
then :
printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
if test "x$ac_cv_func_backtrace" = xyes
then :
printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
2011-05-29 07:38:48 +00:00
2015-02-15 17:56:32 +00:00
fi
2015-08-16 10:04:46 +00:00
2021-07-28 14:17:47 +00:00
;;
esac
2016-05-14 14:47:43 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "__builtin_extract_return_address" "ac_cv_func___builtin_extract_return_address"
if test "x$ac_cv_func___builtin_extract_return_address" = xyes
then :
printf "%s\n" "#define HAVE___BUILTIN_EXTRACT_RETURN_ADDRESS 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
2020-07-27 23:02:55 +00:00
# Enable unwind if found by default
# Check whether --with-unwind was given.
2024-07-16 13:20:38 +00:00
if test ${with_unwind+y}
then :
2020-07-27 23:02:55 +00:00
withval=$with_unwind;
fi
2024-07-16 13:20:38 +00:00
if test "x$with_unwind" != "xno"
then :
ac_fn_c_check_header_compile "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
if test "x$ac_cv_header_unwind_h" = xyes
then :
printf "%s\n" "#define HAVE_UNWIND_H 1" >>confdefs.h
2019-06-13 15:24:28 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "_Unwind_GetIP" "ac_cv_func__Unwind_GetIP"
if test "x$ac_cv_func__Unwind_GetIP" = xyes
then :
printf "%s\n" "#define HAVE__UNWIND_GETIP 1" >>confdefs.h
2020-07-27 23:02:55 +00:00
fi
2019-06-13 15:24:28 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2020-07-27 23:02:55 +00:00
have_unwind=no
fi
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func__Unwind_GetIP" = "xyes"
then :
2020-07-27 23:02:55 +00:00
have_unwind=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2020-07-27 23:02:55 +00:00
have_unwind=no
fi
2024-07-16 13:20:38 +00:00
if test "x$have_unwind" = "xyes"
then :
2020-07-27 23:02:55 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define WITH_UNWIND 1" >>confdefs.h
2020-07-27 23:02:55 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
if test "x$with_unwind" = "xyes"
then :
2020-07-27 23:02:55 +00:00
as_fn_error $? "unwind requested but not found" "$LINENO" 5
fi
fi
2019-06-13 15:24:28 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# These headers/functions needed by NSLog.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
if test "x$ac_cv_header_syslog_h" = xyes
then :
printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-02-15 17:56:32 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/slog.h" "ac_cv_header_sys_slog_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_slog_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_SLOG_H 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "sys/slogcodes.h" "ac_cv_header_sys_slogcodes_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_slogcodes_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_SLOGCODES_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
if test "x$ac_cv_func_syslog" = xyes
then :
printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-02-15 17:56:32 +00:00
fi
2015-08-16 10:04:46 +00:00
if test "$ac_cv_header_sys_slog_h" = "yes"; then
oldLibs="$LIBS";
LIBS="$LIBS -l:libc.a";
ac_fn_c_check_func "$LINENO" "slogf" "ac_cv_func_slogf"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func_slogf" = xyes
then :
printf "%s\n" "#define HAVE_SLOGF 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
fi
2012-03-21 09:06:40 +00:00
2015-08-16 10:04:46 +00:00
if test "$ac_cv_func_slogf" = "no"; then
LIBS="$oldLibs"
fi
fi
2012-11-28 05:46:21 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# These headers/functions needed by NSRunLoop.m
2012-11-28 05:46:21 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
if test "x$ac_cv_header_poll_h" = xyes
then :
printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
if test "x$ac_cv_func_poll" = xyes
then :
printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
have_poll=no
if test $ac_cv_header_poll_h = yes; then
have_poll=yes
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll emulation" >&5
printf %s "checking for poll emulation... " >&6; }
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include "config/config.poll.c"
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2024-07-16 13:20:38 +00:00
$EGREP "emulating_poll" >/dev/null 2>&1
then :
2015-08-16 10:04:46 +00:00
have_poll=no
fi
2024-07-16 13:20:38 +00:00
rm -rf conftest*
2012-03-27 17:05:19 +00:00
2015-08-16 10:04:46 +00:00
if test $have_poll = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll supports devices" >&5
printf %s "checking if poll supports devices... " >&6; }
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
have_poll="$cross_have_poll"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
#include "$srcdir/config/config.poll-dev.c"
2015-08-16 10:04:46 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_poll=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
if test $have_poll = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_POLL_F 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-08-16 10:04:46 +00:00
fi
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-08-16 10:04:46 +00:00
fi
fi
#--------------------------------------------------------------------
# This function needed by StdioStream.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
if test "x$ac_cv_func_vsprintf" = xyes
then :
printf "%s\n" "#define HAVE_VSPRINTF 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
if test "x$ac_cv_func_vasprintf" = xyes
then :
printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes
then :
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes
then :
printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
if test $ac_cv_func_vsprintf = yes ; then
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
VSPRINTF_RETURNS_LENGTH="$cross_VSPRINTF_RETURNS_LENGTH"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.vsprintf.c"
2012-03-02 06:53:16 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
VSPRINTF_RETURNS_LENGTH=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
VSPRINTF_RETURNS_LENGTH=0
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define VSPRINTF_RETURNS_LENGTH $VSPRINTF_RETURNS_LENGTH" >>confdefs.h
2011-12-08 12:33:06 +00:00
2012-03-21 09:06:40 +00:00
fi
2015-08-16 10:04:46 +00:00
if test $ac_cv_func_vasprintf = yes ; then
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
VASPRINTF_RETURNS_LENGTH="$cross_VASPRINTF_RETURNS_LENGTH"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.vasprintf.c"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
VASPRINTF_RETURNS_LENGTH=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
VASPRINTF_RETURNS_LENGTH=0
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define VASPRINTF_RETURNS_LENGTH $VASPRINTF_RETURNS_LENGTH" >>confdefs.h
2012-03-27 17:05:19 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# This function needed by NSFileManager.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
if test "x$ac_cv_func_getcwd" = xyes
then :
printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
2012-03-27 17:05:19 +00:00
2015-04-01 08:44:17 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2024-07-16 13:20:38 +00:00
as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
printf %s "checking for $ac_hdr that defines DIR... " >&6; }
if eval test \${$as_ac_Header+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <sys/types.h>
#include <$ac_hdr>
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
if ((DIR *) 0)
return 0;
2015-05-13 10:57:56 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
eval "$as_ac_Header=yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
eval "$as_ac_Header=no"
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
eval ac_res=\$$as_ac_Header
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
2015-08-16 10:04:46 +00:00
cat >>confdefs.h <<_ACEOF
2024-07-16 13:20:38 +00:00
#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
2015-04-01 08:44:17 +00:00
_ACEOF
2015-08-16 10:04:46 +00: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
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00: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. */
char opendir ();
2014-11-28 18:38:24 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2014-11-28 18:38:24 +00:00
{
2015-08-16 10:04:46 +00:00
return opendir ();
2014-12-28 13:19:19 +00:00
;
return 0;
2014-11-28 18:38:24 +00:00
}
_ACEOF
2024-07-16 13:20:38 +00:00
for ac_lib in '' dir
do
2015-08-16 10:04:46 +00:00
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
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_search_opendir=$ac_res
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext
2024-07-16 13:20:38 +00:00
if test ${ac_cv_search_opendir+y}
then :
2015-08-16 10:04:46 +00:00
break
fi
done
2024-07-16 13:20:38 +00:00
if test ${ac_cv_search_opendir+y}
then :
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_search_opendir=no
2014-12-28 13:19:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
printf "%s\n" "$ac_cv_search_opendir" >&6; }
2015-08-16 10:04:46 +00:00
ac_res=$ac_cv_search_opendir
2024-07-16 13:20:38 +00:00
if test "$ac_res" != no
then :
2015-08-16 10:04:46 +00:00
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2014-12-28 13:19:19 +00:00
2015-05-13 10:57:56 +00:00
fi
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
printf %s "checking for library containing opendir... " >&6; }
if test ${ac_cv_search_opendir+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00: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. */
char opendir ();
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
return opendir ();
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
for ac_lib in '' x
do
2015-08-16 10:04:46 +00:00
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
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_search_opendir=$ac_res
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext
2024-07-16 13:20:38 +00:00
if test ${ac_cv_search_opendir+y}
then :
2015-08-16 10:04:46 +00:00
break
fi
done
2024-07-16 13:20:38 +00:00
if test ${ac_cv_search_opendir+y}
then :
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_search_opendir=no
2014-08-19 11:45:36 +00:00
fi
2015-08-16 10:04:46 +00:00
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
printf "%s\n" "$ac_cv_search_opendir" >&6; }
2015-08-16 10:04:46 +00:00
ac_res=$ac_cv_search_opendir
2024-07-16 13:20:38 +00:00
if test "$ac_res" != no
then :
2015-08-16 10:04:46 +00:00
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2014-08-19 11:45:36 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
2021-02-02 22:30:18 +00:00
# Look for file creation and modification date on NetBSD, FreeBSD, Darwin
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
then :
2021-02-02 22:30:18 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
2021-02-02 22:30:18 +00:00
fi
2020-04-09 07:05:46 +00:00
ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h>
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
then :
2020-04-09 07:05:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
2020-04-09 07:05:46 +00:00
fi
ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "#include <sys/stat.h>
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes
then :
2020-04-09 07:05:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1" >>confdefs.h
2020-04-09 07:05:46 +00:00
fi
ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "#include <sys/stat.h>
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes
then :
2020-04-09 07:05:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM 1" >>confdefs.h
2020-04-09 07:05:46 +00:00
fi
ac_fn_c_check_member "$LINENO" "struct stat64" "st_birthtimespec" "ac_cv_member_struct_stat64_st_birthtimespec" "#include <sys/stat.h>
"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_member_struct_stat64_st_birthtimespec" = xyes
then :
2020-04-09 07:05:46 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_STRUCT_STAT64_ST_BIRTHTIMESPEC 1" >>confdefs.h
2020-04-09 07:05:46 +00:00
fi
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# This function needed by gdomap.c
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
if test "x$ac_cv_header_getopt_h" = xyes
then :
printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
2012-11-28 05:46:21 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# This function needed by NSPage.m
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
if test "x$ac_cv_func_posix_memalign" = xyes
then :
printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
if test "x$ac_cv_func_valloc" = xyes
then :
printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# This function needed by Time.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
if test "x$ac_cv_func_times" = xyes
then :
printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
2012-11-28 05:46:21 +00:00
2014-08-19 11:45:36 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# These functions needed by NSData.m and GSFFIInvocation.m
2014-08-19 11:45:36 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
if test "x$ac_cv_func_mkstemp" = xyes
then :
printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
if test "x$ac_cv_func_shmctl" = xyes
then :
printf "%s\n" "#define HAVE_SHMCTL 1" >>confdefs.h
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
if test "x$ac_cv_func_mmap" = xyes
then :
printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
2013-11-26 22:55:47 +00:00
2014-11-28 18:38:24 +00:00
fi
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
if test "x$ac_cv_func_mprotect" = xyes
then :
printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
2012-03-21 09:06:40 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# These functions needed by NSTask.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
if test "x$ac_cv_func_killpg" = xyes
then :
printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
if test "x$ac_cv_func_setpgrp" = xyes
then :
printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
if test "x$ac_cv_func_setpgid" = xyes
then :
printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
if test "x$ac_cv_func_setsid" = xyes
then :
printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
if test "x$ac_cv_func_grantpt" = xyes
then :
printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
if test "x$ac_cv_func_closefrom" = xyes
then :
printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
2023-11-14 11:34:55 +00:00
fi
2015-08-16 10:04:46 +00:00
if test "x$ac_cv_func_setpgrp" = xyes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setpgrp requires zero arguments" >&5
printf %s "checking whether setpgrp requires zero arguments... " >&6; }
if test ${ac_cv_func_setpgrp_void+y}
then :
printf %s "(cached) " >&6
else $as_nop
# Call it with two arguments.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-08-16 10:04:46 +00:00
/* end confdefs.h. */
$ac_includes_default
2015-02-15 17:56:32 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-02-15 17:56:32 +00:00
{
2024-07-16 13:20:38 +00:00
setpgrp(0, 0);
2015-04-01 08:44:17 +00:00
;
return 0;
2015-02-15 17:56:32 +00:00
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_func_setpgrp_void=no
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_func_setpgrp_void=yes
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
printf "%s\n" "$ac_cv_func_setpgrp_void" >&6; }
2015-08-16 10:04:46 +00:00
if test $ac_cv_func_setpgrp_void = yes; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define SETPGRP_VOID 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
2015-04-01 08:44:17 +00:00
fi
2014-11-28 18:38:24 +00:00
2015-08-16 10:04:46 +00:00
HAVE_PTS_STREAM_MODULES=0
case "${target}" in
*-sysv-*)
HAVE_PTS_STREAM_MODULES=1
;;
2015-05-13 10:57:56 +00:00
esac
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_PTS_STREAM_MODULES $HAVE_PTS_STREAM_MODULES" >>confdefs.h
2015-04-01 08:44:17 +00:00
2014-12-28 13:19:19 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
if test "x$ac_cv_header_fcntl_h" = xyes
then :
printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
if test "x$ac_cv_header_inttypes_h" = xyes
then :
printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_header_compile "$LINENO" "libc.h" "ac_cv_header_libc_h" "$ac_includes_default"
if test "x$ac_cv_header_libc_h" = xyes
then :
printf "%s\n" "#define HAVE_LIBC_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
if test "x$ac_cv_header_limits_h" = xyes
then :
printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
if test "x$ac_cv_header_malloc_h" = xyes
then :
printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
if test "x$ac_cv_header_memory_h" = xyes
then :
printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_signal_h" = xyes
then :
printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
if test "x$ac_cv_header_stdint_h" = xyes
then :
printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
if test "x$ac_cv_header_string_h" = xyes
then :
printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/fcntl.h" "ac_cv_header_sys_fcntl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_fcntl_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_FCNTL_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_file_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_filio_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_inttypes_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_signal_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_SIGNAL_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stropts_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_wait_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
if test "x$ac_cv_header_utime_h" = xyes
then :
printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
if test "x$ac_cv_header_stdlib_h" = xyes
then :
printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
if test "x$ac_cv_header_stdbool_h" = xyes
then :
printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
fi
2015-08-16 10:04:46 +00:00
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
if test $ac_cv_header_inttypes_h = yes; then
INCLUDE_INTTYPES="#include <inttypes.h>"
elif test $ac_cv_header_sys_inttypes_h = yes; then
INCLUDE_INTTYPES="#include <sys/inttypes.h>"
elif test $ac_cv_header_stdint_h = yes; then
INCLUDE_INTTYPES="#include <stdint.h>"
else
INCLUDE_INTTYPES="no"
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
if test "$INCLUDE_INTTYPES" = "no"; then
INCLUDE_INTTYPES=""
DEFINE_INT8_T="#define int8_t gss8"
DEFINE_UINT8_T="#define uint8_t gsu8"
DEFINE_INT16_T="#define int16_t gss16"
DEFINE_UINT16_T="#define uint16_t gsu16"
DEFINE_INT32_T="#define int32_t gss32"
DEFINE_UINT32_T="#define uint32_t gsu32"
DEFINE_INT64_T="#define int64_t gss64"
DEFINE_UINT64_T="#define uint64_t gsu64"
DEFINE_INTPTR_T="#define intptr_t gssaddr"
DEFINE_UINTPTR_T="#define uintptr_t gsuaddr"
else
DEFINE_INT8_T=""
DEFINE_UINT8_T=""
DEFINE_INT16_T=""
DEFINE_UINT16_T=""
DEFINE_INT32_T=""
DEFINE_UINT32_T=""
DEFINE_INT64_T=""
DEFINE_UINT64_T=""
DEFINE_INTPTR_T=""
DEFINE_UINTPTR_T=""
2014-12-28 13:19:19 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
2014-02-02 08:57:42 +00:00
2015-08-16 10:04:46 +00:00
2015-04-01 08:44:17 +00:00
2014-02-02 08:57:42 +00:00
2014-12-28 13:19:19 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# These used by GSFileHandle.m and distributed objects
# On some systems we need -lnsl ... so check for that case.
2014-12-28 13:19:19 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
if test "x$ac_cv_header_ws2tcpip_h" = xyes
then :
printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
2020-06-09 11:44:42 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
printf %s "checking for library containing inet_ntop... " >&6; }
if test ${ac_cv_search_inet_ntop+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00: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. */
2015-08-16 10:04:46 +00:00
char inet_ntop ();
2015-04-01 08:44:17 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-04-01 08:44:17 +00:00
{
2015-08-16 10:04:46 +00:00
return inet_ntop ();
2015-04-01 08:44:17 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
for ac_lib in '' nsl Ws2_32
do
2015-08-16 10:04:46 +00:00
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
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_search_inet_ntop=$ac_res
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext
2024-07-16 13:20:38 +00:00
if test ${ac_cv_search_inet_ntop+y}
then :
2015-08-16 10:04:46 +00:00
break
fi
done
2024-07-16 13:20:38 +00:00
if test ${ac_cv_search_inet_ntop+y}
then :
2015-02-15 17:56:32 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_search_inet_ntop=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
2014-02-02 08:57:42 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
2015-08-16 10:04:46 +00:00
ac_res=$ac_cv_search_inet_ntop
2024-07-16 13:20:38 +00:00
if test "$ac_res" != no
then :
2015-08-16 10:04:46 +00:00
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2014-08-19 11:45:36 +00:00
2015-02-15 17:56:32 +00:00
fi
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
if test "x$ac_cv_func_gethostbyaddr_r" = xyes
then :
printf "%s\n" "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
2013-11-26 22:55:47 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
if test "x$ac_cv_func_inet_aton" = xyes
then :
printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes
then :
printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
2014-02-02 08:57:42 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes
then :
printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
2013-11-26 22:55:47 +00:00
2024-07-16 13:20:38 +00:00
fi
ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
if test "x$ac_cv_func_sigaction" = xyes
then :
printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
USE_ZLIB=0
ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_zlib_h" = xyes
then :
printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
fi
2015-08-16 10:04:46 +00:00
if test $ac_cv_header_zlib_h = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
printf %s "checking for gzseek in -lz... " >&6; }
if test ${ac_cv_lib_z_gzseek+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lz $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00: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. */
char gzseek ();
2015-05-13 10:57:56 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-05-13 10:57:56 +00:00
{
2015-08-16 10:04:46 +00:00
return gzseek ();
;
return 0;
2015-05-13 10:57:56 +00:00
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_z_gzseek=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_z_gzseek=no
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
printf "%s\n" "$ac_cv_lib_z_gzseek" >&6; }
if test "x$ac_cv_lib_z_gzseek" = xyes
then :
2015-08-16 10:04:46 +00:00
zlib_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
zlib_ok=no
fi
if test "$zlib_ok" = yes; then
LIBS="$LIBS -lz"
USE_ZLIB=1
fi
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
HAVE_INET_PTON=no
if test $ac_cv_func_inet_pton = yes ; then
HAVE_INET_PTON=yes
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
HAVE_INET_NTOP=no
if test $ac_cv_func_inet_ntop = yes ; then
HAVE_INET_NTOP=yes
2015-05-13 10:57:56 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# For setting thread stack size
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_resource_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2015-04-01 08:44:17 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
if test "x$ac_cv_func_setrlimit" = xyes
then :
printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
2014-11-28 18:38:24 +00:00
2015-02-15 17:56:32 +00:00
fi
2015-08-16 10:04:46 +00:00
2014-11-28 18:38:24 +00:00
2015-04-01 08:44:17 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# One of these functions needed by NSDebug.m and NSProcessInfo.m
2015-04-01 08:44:17 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
if test "x$ac_cv_func_strerror" = xyes
then :
printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
if test ${ac_cv_c_undeclared_builtin_options+y}
then :
printf %s "(cached) " >&6
else $as_nop
ac_save_CFLAGS=$CFLAGS
ac_cv_c_undeclared_builtin_options='cannot detect'
for ac_arg in '' -fno-builtin; do
CFLAGS="$ac_save_CFLAGS $ac_arg"
# This test program should *not* compile successfully.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main (void)
{
(void) strchr;
;
return 0;
}
2015-08-16 10:04:46 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
else $as_nop
# This test program should compile successfully.
# No library function is consistently available on
# freestanding implementations, so test against a dummy
# declaration. Include always-available headers on the
# off chance that they somehow elicit warnings.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <float.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
extern void ac_decl (int, char *);
int
main (void)
{
(void) ac_decl (0, (char *) 0);
(void) ac_decl;
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
if test x"$ac_arg" = x
then :
ac_cv_c_undeclared_builtin_options='none needed'
else $as_nop
ac_cv_c_undeclared_builtin_options=$ac_arg
2015-05-13 10:57:56 +00:00
fi
2024-07-16 13:20:38 +00:00
break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
done
CFLAGS=$ac_save_CFLAGS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
case $ac_cv_c_undeclared_builtin_options in #(
'cannot detect') :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot make $CC report undeclared builtins
See \`config.log' for more details" "$LINENO" 5; } ;; #(
'none needed') :
ac_c_undeclared_builtin_options='' ;; #(
*) :
ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
esac
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_strerror_r" = xyes
then :
2015-08-16 10:04:46 +00:00
ac_have_decl=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_have_decl=0
fi
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
if test $ac_cv_have_decl_strerror_r = yes; then
# For backward compatibility's sake, define HAVE_STRERROR_R.
# (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
# as AC_CHECK_DECLS_ONCE.)
printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
2015-05-13 10:57:56 +00:00
2014-12-28 13:19:19 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
printf %s "checking whether strerror_r returns char *... " >&6; }
if test ${ac_cv_func_strerror_r_char_p+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-11-02 13:44:30 +00:00
2015-08-16 10:04:46 +00:00
ac_cv_func_strerror_r_char_p=no
if test $ac_cv_have_decl_strerror_r = yes; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
#include <string.h>
2015-08-16 10:04:46 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2015-08-16 10:04:46 +00:00
{
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
char buf[100];
char x = *strerror_r (0, buf, sizeof buf);
char *p = strerror_r (0, buf, sizeof buf);
return !p || x;
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_func_strerror_r_char_p=yes
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-08-16 10:04:46 +00:00
fi
2015-05-13 10:57:56 +00:00
2014-11-28 18:38:24 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
2015-08-16 10:04:46 +00:00
if test $ac_cv_func_strerror_r_char_p = yes; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Needed by NSDebug.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
if test "x$ac_cv_func_sigsetjmp" = xyes
then :
printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
fi
2014-11-28 18:38:24 +00:00
2014-08-19 11:45:36 +00:00
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# This type needed by GSFormat
2015-05-13 10:57:56 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_type_uintmax_t" = xyes
then :
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
if test "x$ac_cv_header_wchar_h" = xyes
then :
printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
2015-02-15 17:56:32 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check if short and int values need to be word aligned
#--------------------------------------------------------------------
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -O0"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking short/int needs to be word aligned" >&5
printf %s "checking short/int needs to be word aligned... " >&6; }
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
NEED_WORD_ALIGNMENT="$cross_NEED_WORD_ALIGNMENT"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-04-01 08:44:17 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include "$srcdir/config/config.align.c"
2014-08-19 11:45:36 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
NEED_WORD_ALIGNMENT=0
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
NEED_WORD_ALIGNMENT=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2015-04-01 08:44:17 +00:00
fi
2015-08-16 10:04:46 +00:00
CFLAGS="$saved_CFLAGS"
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT" >>confdefs.h
2013-11-26 22:55:47 +00:00
2015-08-16 10:04:46 +00:00
if test $NEED_WORD_ALIGNMENT = 1; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-05-13 10:57:56 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-02-15 17:56:32 +00:00
fi
2015-04-01 08:44:17 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# This needed by NSString for handling of %@ printf directive.
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "register_printf_specifier" "ac_cv_func_register_printf_specifier"
if test "x$ac_cv_func_register_printf_specifier" = xyes
then :
printf "%s\n" "#define HAVE_REGISTER_PRINTF_SPECIFIER 1" >>confdefs.h
2014-12-28 13:19:19 +00:00
fi
2015-02-15 17:56:32 +00:00
2015-08-16 10:04:46 +00:00
ac_fn_c_check_func "$LINENO" "register_printf_function" "ac_cv_func_register_printf_function"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func_register_printf_function" = xyes
then :
2015-08-16 10:04:46 +00:00
register_printf=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
register_printf=0
fi
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
if test $register_printf = 1; then
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
working_register_printf="$cross_working_register_printf"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-02-15 17:56:32 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include "$srcdir/config/config.printf.c"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
working_register_printf=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
working_register_printf=0
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
if test $working_register_printf = 1; then
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_REGISTER_PRINTF_FUNCTION 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
wide_register_printf="$cross_wide_register_printf"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.wprintf.c"
2014-12-28 13:19:19 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
wide_register_printf=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
wide_register_printf=0
2012-11-28 05:46:21 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
if test $wide_register_printf = 1; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_WIDE_PRINTF_FUNCTION 1" >>confdefs.h
2014-08-19 11:45:36 +00:00
2015-08-16 10:04:46 +00:00
fi
fi
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# This function needed by NSString.
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
if test "x$ac_cv_func_realpath" = xyes
then :
printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
fi
2015-05-13 10:57:56 +00:00
2015-04-01 08:44:17 +00:00
#--------------------------------------------------------------------
2015-08-16 10:04:46 +00:00
# Check if the C Library defines extern char *program_invocation_name
# Used in critical cases by NSProcessInfo.m
2015-04-01 08:44:17 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking program_invocation_name in C Library" >&5
printf %s "checking program_invocation_name in C Library... " >&6; }
if test ${gs_cv_program_invocation_name_worked+y}
then :
printf %s "(cached) " >&6
else $as_nop
if test "$cross_compiling" = yes
then :
2015-08-16 10:04:46 +00:00
gs_cv_program_invocation_name_worked="$cross_gs_cv_program_invocation_name_worked"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-05-13 10:57:56 +00:00
/* end confdefs.h. */
2015-08-16 10:04:46 +00:00
#include <string.h>
int
main (int argc, char *argv[])
{
extern char *program_invocation_name;
return (strcmp (program_invocation_name, argv[0]));
}
2015-04-01 08:44:17 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
gs_cv_program_invocation_name_worked=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
gs_cv_program_invocation_name_worked=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2014-12-28 13:19:19 +00:00
2014-02-02 08:57:42 +00:00
fi
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
if test $gs_cv_program_invocation_name_worked = yes; then
2014-08-19 11:45:36 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-05-13 10:57:56 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2015-08-16 10:04:46 +00:00
fi
#--------------------------------------------------------------------
# Check for uname header used by NSProcessInfo.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_utsname_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2014-11-28 18:38:24 +00:00
fi
2015-04-01 08:44:17 +00:00
2014-12-28 13:19:19 +00:00
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Check for sysctlbyname used by NSProcessInfo.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sysctl_h" = xyes
then :
printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
2015-08-16 10:04:46 +00:00
2015-02-15 17:56:32 +00:00
fi
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
if test "x$ac_cv_func_sysctlbyname" = xyes
then :
printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
2015-04-01 08:44:17 +00:00
2015-05-13 10:57:56 +00:00
fi
2015-08-16 10:04:46 +00:00
#--------------------------------------------------------------------
# Defines HAVE_PROCFS if the kernel supports the /proc filesystem.
# Needed by NSProcessInfo.m
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "procfs.h" "ac_cv_header_procfs_h" "$ac_includes_default"
if test "x$ac_cv_header_procfs_h" = xyes
then :
printf "%s\n" "#define HAVE_PROCFS_H 1" >>confdefs.h
2012-03-21 09:06:40 +00:00
fi
2012-03-27 17:05:19 +00:00
# Check whether --enable-procfs was given.
2024-07-16 13:20:38 +00:00
if test ${enable_procfs+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_procfs; enable_procfs="$enableval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
if test "$cross_compiling" = yes; then enable_procfs=cross; else enable_procfs=yes; fi;
2012-03-21 09:06:40 +00:00
fi
2012-03-21 08:00:33 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking kernel support for /proc filesystem" >&5
printf %s "checking kernel support for /proc filesystem... " >&6; }
if test ${ac_cv_sys_procfs+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
if test "$enable_procfs" = yes; then
# Suggested change for the following line was
# if test -d /proc/0; then
# but it doesn't work on my linux - /proc/0 does not exist, but /proc
# works fine
if grep 'proc' /proc/mounts >/dev/null 2>/dev/null; then
ac_cv_sys_procfs=yes
else
ac_cv_sys_procfs=no
fi
case "$target_os" in
# Solaris has proc, but it is not readable
solaris*) ac_cv_sys_procfs=no;;
irix*) ac_cv_sys_procfs=no;;
# Cygwin does have proc, but it does not show with mount
cygwin*) ac_cv_sys_procfs=yes;;
esac
elif test "$enable_procfs" = cross; then
ac_cv_sys_procfs=no
else
ac_cv_sys_procfs=no
fi
2011-07-15 13:53:45 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_procfs" >&5
printf "%s\n" "$ac_cv_sys_procfs" >&6; }
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
if test "$enable_procfs" = cross; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compiling: Pass --enable-procfs argument to enable use of /proc filesystem." >&5
printf "%s\n" "$as_me: WARNING: Cross-compiling: Pass --enable-procfs argument to enable use of /proc filesystem." >&2;}
2012-03-27 17:05:19 +00:00
fi
if test $ac_cv_sys_procfs = yes; then
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_PROCFS 1" >>confdefs.h
2011-07-15 13:53:45 +00:00
2012-03-27 17:05:19 +00:00
fi
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --enable-procfs-psinfo was given.
2024-07-16 13:20:38 +00:00
if test ${enable_procfs_psinfo+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_procfs_psinfo; enable_procfs_psinfo="$enableval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
if test "$cross_compiling" = yes; then enable_procfs_psinfo=cross; else enable_procfs_psinfo=yes; fi;
2012-03-21 09:06:40 +00:00
fi
2012-03-27 17:05:19 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for /proc psinfo struct" >&5
printf %s "checking support for /proc psinfo struct... " >&6; }
if test ${ac_cv_sys_procfs_psinfo+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
if test "$enable_procfs_psinfo" = yes; then
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2012-03-27 17:05:19 +00:00
ac_cv_sys_procfs_psinfo=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-21 09:06:40 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include "$srcdir/config/config.psinfo.c"
2012-03-21 09:06:40 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-03-27 17:05:19 +00:00
ac_cv_sys_procfs_psinfo=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_sys_procfs_psinfo=no
2012-03-21 09:06:40 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-03-21 09:06:40 +00:00
fi
2012-03-27 17:05:19 +00:00
elif test "$enable_procfs" = cross; then
ac_cv_sys_procfs_psinfo=no
2012-03-21 09:06:40 +00:00
else
2012-03-27 17:05:19 +00:00
ac_cv_sys_procfs_psinfo=no
2012-03-21 09:06:40 +00:00
fi
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_procfs_psinfo" >&5
printf "%s\n" "$ac_cv_sys_procfs_psinfo" >&6; }
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
if test "$enable_procfs" = cross; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compiling: Pass --enable-procfs-psinfo argument to enable use of /proc psinfo information." >&5
printf "%s\n" "$as_me: WARNING: Cross-compiling: Pass --enable-procfs-psinfo argument to enable use of /proc psinfo information." >&2;}
2012-03-27 17:05:19 +00:00
fi
if test $ac_cv_sys_procfs_psinfo = yes; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_PROCFS_PSINFO 1" >>confdefs.h
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
fi
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking link to exe of process in /proc" >&5
printf %s "checking link to exe of process in /proc... " >&6; }
if test ${ac_cv_sys_procfs_exe_link+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
if test "$ac_cv_sys_procfs" = yes; then
# Linux 2.2.x and up
if test -L /proc/self/exe; then
ac_cv_sys_procfs_exe_link=/proc/self/exe
# FreeBSD 4.x and up
elif test -L /proc/curproc/file; then
ac_cv_sys_procfs_exe_link=/proc/curproc/file
else
ac_cv_sys_procfs_exe_link=no
fi
else
ac_cv_sys_procfs_exe_link=no
fi
2012-03-21 09:06:40 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_procfs_exe_link" >&5
printf "%s\n" "$ac_cv_sys_procfs_exe_link" >&6; }
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
if test "$ac_cv_sys_procfs_exe_link" != no; then
2012-03-21 08:00:33 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define PROCFS_EXE_LINK \"$ac_cv_sys_procfs_exe_link\"" >>confdefs.h
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
fi
#--------------------------------------------------------------------
# Check if /proc/$$/cmdline terminates the last argument with a nul
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking /proc/$$/cmdline terminated by nul" >&5
printf %s "checking /proc/$$/cmdline terminated by nul... " >&6; }
if test "$cross_compiling" = yes
then :
2012-08-25 21:44:02 +00:00
CMDLINE_TERMINATED="$cross_CMDLINE_TERMINATED"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-21 09:06:40 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include "$srcdir/config/config.proccmd.c"
2012-03-21 09:06:40 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-03-27 17:05:19 +00:00
CMDLINE_TERMINATED=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
CMDLINE_TERMINATED=0
2012-03-21 09:06:40 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-03-21 09:06:40 +00:00
fi
2011-10-17 18:49:16 +00:00
2012-03-21 08:00:33 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define CMDLINE_TERMINATED $CMDLINE_TERMINATED" >>confdefs.h
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
if test $CMDLINE_TERMINATED = 1; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2012-03-27 17:05:19 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-03-02 06:53:16 +00:00
fi
2012-03-21 08:00:33 +00:00
2012-03-21 09:06:40 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
# If /proc doesn't work, try kvm (on FreeBSD, for instance)
2012-03-21 09:06:40 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
have_kvm_env=0
save_LIBS="$LIBS"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_getenvv in -lkvm" >&5
printf %s "checking for kvm_getenvv in -lkvm... " >&6; }
if test ${ac_cv_lib_kvm_kvm_getenvv+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lkvm $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-21 08:00:33 +00:00
/* end confdefs.h. */
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00: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. */
char kvm_getenvv ();
2012-03-21 08:00:33 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2012-03-21 08:00:33 +00:00
{
2012-03-27 17:05:19 +00:00
return kvm_getenvv ();
2012-03-21 08:00:33 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2012-03-27 17:05:19 +00:00
ac_cv_lib_kvm_kvm_getenvv=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_kvm_kvm_getenvv=no
2012-03-02 06:53:16 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2012-03-27 17:05:19 +00:00
LIBS=$ac_check_lib_save_LIBS
2012-03-02 06:53:16 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_getenvv" >&5
printf "%s\n" "$ac_cv_lib_kvm_kvm_getenvv" >&6; }
if test "x$ac_cv_lib_kvm_kvm_getenvv" = xyes
then :
printf "%s\n" "#define HAVE_LIBKVM 1" >>confdefs.h
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
LIBS="-lkvm $LIBS"
2012-03-21 08:00:33 +00:00
fi
2012-03-27 17:05:19 +00:00
if test "$ac_cv_lib_kvm_kvm_getenvv" = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can access kernel memory" >&5
printf %s "checking if we can access kernel memory... " >&6; }
if test "$cross_compiling" = yes
then :
2012-08-25 21:44:02 +00:00
have_kvm_env="$cross_have_kvm_env"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-21 08:00:33 +00:00
/* end confdefs.h. */
2024-07-16 13:20:38 +00:00
[#include "$srcdir/config/config.kvmopen.c"])
2012-03-27 17:05:19 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-03-27 17:05:19 +00:00
have_kvm_env=1
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_kvm_env=0
2012-03-27 17:05:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-03-27 17:05:19 +00:00
fi
if test $have_kvm_env = 1; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2012-03-27 17:05:19 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_KVM_ENV 1" >>confdefs.h
2012-03-27 17:05:19 +00:00
2012-03-21 09:06:40 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-03-27 17:05:19 +00:00
# Reset LIBS since we don't need kvm
LIBS="$save_LIBS"
2012-03-21 09:06:40 +00:00
fi
2012-03-02 06:53:16 +00:00
fi
2012-03-27 17:05:19 +00:00
#--------------------------------------------------------------------
# Include redefinition of main () only if needed.
# On some systems - force redefinition to be used as the /proc stuff
# doesn't work. Allow NSProcessInfo initialization method also.
#--------------------------------------------------------------------
PASS_ARG=no
case "$target_os" in
cygwin*) PASS_ARG=yes;;
esac
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking use of pass-through arguments" >&5
printf %s "checking use of pass-through arguments... " >&6; }
2012-03-27 17:05:19 +00:00
# Check whether --enable-pass-arguments was given.
2024-07-16 13:20:38 +00:00
if test ${enable_pass_arguments+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_pass_arguments;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_pass_arguments=$PASS_ARG
fi
if test "$enable_pass_arguments" = "yes"; then
GS_PASS_ARGUMENTS=1
else
GS_PASS_ARGUMENTS=0
2012-03-21 09:06:40 +00:00
fi
2012-03-02 06:53:16 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pass_arguments" >&5
printf "%s\n" "$enable_pass_arguments" >&6; }
2012-03-27 17:05:19 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking use of fake-main definition" >&5
printf %s "checking use of fake-main definition... " >&6; }
2012-03-27 17:05:19 +00:00
# Check whether --enable-fake-main was given.
2024-07-16 13:20:38 +00:00
if test ${enable_fake_main+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_fake_main;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_fake_main=no
2012-03-21 09:06:40 +00:00
fi
2011-10-15 07:59:19 +00:00
2011-10-17 18:49:16 +00:00
2012-03-27 17:05:19 +00:00
if test "$enable_pass_arguments" = "no"; then
case "$target_os" in
freebsd2*) enable_fake_main=yes;;
freebsd*) ;;
2014-02-02 08:57:42 +00:00
kfreebsd*) enable_fake_main=yes;;
2012-03-27 17:05:19 +00:00
netbsd*) enable_fake_main=yes;;
openbsd*) enable_fake_main=yes;;
*sysv*) enable_fake_main=yes;;
esac
fi
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
GS_FAKE_MAIN=0
if test "$enable_fake_main" = "yes"; then
GS_FAKE_MAIN=1
elif test "$enable_pass_arguments" = "no"; then
if test "$gs_cv_objc_load_method_worked" = yes -a \( "$ac_cv_sys_procfs" = yes -o "$have_kvm_env" = 1 -o "$ac_cv_sys_procfs_psinfo" = yes \); then
GS_FAKE_MAIN=0
if test "$have_kvm_env" = "1"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using libkvm which is known to be buggy on some systems consider configuring with --enable-fake-main instead." >&5
printf "%s\n" "$as_me: WARNING: Using libkvm which is known to be buggy on some systems consider configuring with --enable-fake-main instead." >&2;}
2012-03-27 17:05:19 +00:00
fi
2012-03-21 09:06:40 +00:00
else
2012-03-27 17:05:19 +00:00
case "$target_os" in
darwin* ) ;;
* )
GS_FAKE_MAIN=1
enable_fake_main=yes
esac
2012-03-21 09:06:40 +00:00
fi
fi
2012-03-27 17:05:19 +00:00
case "$target_os" in
2021-07-28 14:17:47 +00:00
mingw*|windows) enable_fake_main=no; GS_FAKE_MAIN=0;;
2012-03-27 17:05:19 +00:00
esac
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_fake_main" >&5
printf "%s\n" "$enable_fake_main" >&6; }
2012-03-27 17:05:19 +00:00
#--------------------------------------------------------------------
# Simple way to add a bunch of paths to the flags
#--------------------------------------------------------------------
2010-11-17 21:46:31 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --with-include-flags was given.
2024-07-16 13:20:38 +00:00
if test ${with_include_flags+y}
then :
2012-03-27 17:05:19 +00:00
withval=$with_include_flags; include_flags="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
include_flags="no"
2012-03-21 09:06:40 +00:00
fi
2012-03-27 17:05:19 +00:00
if test ${include_flags} != "no"; then
CPPFLAGS="$CPPFLAGS ${include_flags}"
INCLUDE_FLAGS="$INCLUDE_FLAGS ${include_flags}"
2011-07-15 13:53:45 +00:00
fi
2011-10-15 07:59:19 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --with-library-flags was given.
2024-07-16 13:20:38 +00:00
if test ${with_library_flags+y}
then :
2012-03-27 17:05:19 +00:00
withval=$with_library_flags; library_flags="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
library_flags="no"
2012-03-21 08:00:33 +00:00
fi
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
if test ${library_flags} != "no"; then
LDFLAGS="$LDFLAGS ${library_flags}"
LDIR_FLAGS="$LDIR_FLAGS ${library_flags}"
fi
2012-03-21 09:06:40 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
# Check for FFI interface libraries for invocations
2016-06-28 10:40:33 +00:00
# We enable ffi by default now, as it's the only well supported
# library nowadays.
2012-03-21 09:06:40 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
do_broken_libffi=no
do_broken_libffcall=no
do_enable_libffi=yes
do_enable_libffcall=no
case "$target_cpu" in
sparc64*)
case "$target_os" in
solaris*)
do_broken_libffcall=yes;
do_enable_libffi=yes;
do_enable_libffcall=no;;
*) ;;
esac ;;
*) ;;
esac
if test "$exceptions" = "yes"; then
# ffcall will mess up native exceptions, so we must disable it.
do_broken_libffcall=yes
do_enable_libffcall=no
fi
2011-07-15 13:53:45 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --enable-libffi was given.
2024-07-16 13:20:38 +00:00
if test ${enable_libffi+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_libffi;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_libffi=$do_enable_libffi
2011-10-17 18:49:16 +00:00
fi
2012-03-21 08:00:33 +00:00
2008-11-13 14:28:56 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --enable-ffcall was given.
2024-07-16 13:20:38 +00:00
if test ${enable_ffcall+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_ffcall;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_ffcall=$do_enable_libffcall
fi
2011-07-15 13:53:45 +00:00
2011-10-15 07:59:19 +00:00
2012-03-27 17:05:19 +00:00
if test $enable_ffcall = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ffcall has been enabled ... this is deprecated ... please install and use a recent libffi if possible" >&5
printf "%s\n" "$as_me: WARNING: ffcall has been enabled ... this is deprecated ... please install and use a recent libffi if possible" >&2;}
2011-10-15 07:59:19 +00:00
fi
2011-12-08 12:33:06 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --enable-invocations was given.
2024-07-16 13:20:38 +00:00
if test ${enable_invocations+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_invocations;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_invocations=yes
fi
2011-10-15 07:59:19 +00:00
2011-10-17 18:49:16 +00:00
2012-03-27 17:05:19 +00:00
# DO isn't used on apple-apple-apple
if test $LIBRARY_COMBO = apple-apple-apple; then
enable_invocations=no
2011-12-08 12:33:06 +00:00
fi
2012-03-21 09:06:40 +00:00
2011-02-11 20:41:10 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --with-ffi-include was given.
2024-07-16 13:20:38 +00:00
if test ${with_ffi_include+y}
then :
2012-03-27 17:05:19 +00:00
withval=$with_ffi_include; ffi_incdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
ffi_incdir="no"
fi
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
if test ${ffi_incdir} != "no"; then
CPPFLAGS="$CPPFLAGS -I${ffi_incdir}"
INCLUDE_FLAGS="$INCLUDE_FLAGS -I${ffi_incdir}"
2012-03-21 09:06:40 +00:00
fi
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --with-ffi-library was given.
2024-07-16 13:20:38 +00:00
if test ${with_ffi_library+y}
then :
2012-03-27 17:05:19 +00:00
withval=$with_ffi_library; ffi_libdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
ffi_libdir="no"
2012-03-21 09:06:40 +00:00
fi
2012-03-21 08:00:33 +00:00
2012-03-27 17:05:19 +00:00
if test ${ffi_libdir} != "no"; then
case "$target_os" in
netbsd*)
LDFLAGS="$LDFLAGS -L${ffi_libdir} -Wl,-R${ffi_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${ffi_libdir} -L${ffi_libdir}";;
*)
2020-11-29 11:57:47 +00:00
LDFLAGS="$LDFLAGS -Wl,-rpath,${ffi_libdir} -L${ffi_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-rpath,${ffi_libdir} -L${ffi_libdir}";;
2012-03-27 17:05:19 +00:00
esac
fi
if test "$do_broken_libffi" = "no"; then
2018-01-14 12:30:13 +00:00
if test -n "$PKG_CONFIG"; then
if $PKG_CONFIG --exists libffi; then
2012-03-27 17:05:19 +00:00
pkg_config_libffi=yes
2018-01-14 12:30:13 +00:00
ffi_CFLAGS=`$PKG_CONFIG --cflags libffi`;
2012-03-27 17:05:19 +00:00
CPPFLAGS="$CPPFLAGS $ffi_CFLAGS"
INCLUDE_FLAGS="$INCLUDE_FLAGS $ffi_CFLAGS"
fi
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
if test "x$ac_cv_header_ffi_h" = xyes
then :
2012-03-27 17:05:19 +00:00
have_libffi=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_libffi=no
fi
2011-12-08 12:33:06 +00:00
2012-03-27 17:05:19 +00:00
else
have_libffi=no
2012-03-21 08:00:33 +00:00
fi
2012-03-27 17:05:19 +00:00
if test "$do_broken_libffcall" = "no"; then
2024-07-16 13:20:38 +00:00
for ac_header in callback.h
2015-08-16 10:04:46 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "callback.h" "ac_cv_header_callback_h" "$ac_includes_default"
if test "x$ac_cv_header_callback_h" = xyes
then :
printf "%s\n" "#define HAVE_CALLBACK_H 1" >>confdefs.h
2012-03-27 17:05:19 +00:00
have_ffcall=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_ffcall=no
2012-03-21 08:00:33 +00:00
fi
2012-03-02 06:53:16 +00:00
2012-03-21 09:06:40 +00:00
done
else
2012-03-27 17:05:19 +00:00
have_ffcall=no
fi
if test $have_ffcall = no; then
enable_ffcall=no
# If we don't have ffcall but do have libffi, use libffi
if test $have_libffi = yes; then
enable_libffi=yes
fi
fi
if test $have_libffi = no; then
enable_libffi=no
# If we don't have libffi but do have ffcall, use ffcall
if test $have_ffcall = yes; then
if test $enable_ffcall = no; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ffi support seems to be missing on this system ... please install a recent libffi" >&5
printf "%s\n" "$as_me: WARNING: ffi support seems to be missing on this system ... please install a recent libffi" >&2;}
2012-03-27 17:05:19 +00:00
fi
fi
2012-03-21 09:06:40 +00:00
fi
2012-03-02 06:53:16 +00:00
2012-08-25 21:44:02 +00:00
have_forward_hook=yes
2012-03-27 17:05:19 +00:00
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forwarding callback in runtime" >&5
printf %s "checking for forwarding callback in runtime... " >&6; }
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include "$srcdir/config/config.forward2.m"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2012-03-27 17:05:19 +00:00
have_forward_hook=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_forward_hook=no
2012-03-27 17:05:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-03-27 17:05:19 +00:00
if test $have_forward_hook = yes; then
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_FORWARD2 1" >>confdefs.h
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
else
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include "$srcdir/config/config.forward.m"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2012-03-27 17:05:19 +00:00
have_forward_hook=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_forward_hook=no
2012-03-27 17:05:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-03-27 17:05:19 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_forward_hook" >&5
printf "%s\n" "$have_forward_hook" >&6; }
2012-03-27 17:05:19 +00:00
if test $have_forward_hook = no; then
enable_libffi=no
enable_ffcall=no
fi
CPPFLAGS="$saved_CPPFLAGS"
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FFI library usage" >&5
printf %s "checking FFI library usage... " >&6; }
2012-03-27 17:05:19 +00:00
WITH_FFI=none
if test $enable_libffi = yes; then
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define USE_LIBFFI 1" >>confdefs.h
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
WITH_FFI=libffi
if test "$pkg_config_libffi" = "yes"; then
ffi_LIBS=`pkg-config --libs libffi`
else
ffi_LIBS=-lffi
fi
LIBS="$ffi_LIBS $LIBS"
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2012-08-25 21:44:02 +00:00
ffi_ok="$cross_ffi_ok"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "$srcdir/config/config.ffi.c"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-03-27 17:05:19 +00:00
ffi_ok="yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ffi_ok="no"
2012-03-27 17:05:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-03-27 17:05:19 +00:00
fi
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
if test $ffi_ok = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libffi" >&5
printf "%s\n" "libffi" >&6; }
2012-03-27 17:05:19 +00:00
if test $do_broken_libffi = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ffi may be broken on this system ... try enabling ffcall" >&5
printf "%s\n" "$as_me: WARNING: ffi may be broken on this system ... try enabling ffcall" >&2;}
2012-03-27 17:05:19 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "ffi_prep_closure_loc" "ac_cv_func_ffi_prep_closure_loc"
if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes
then :
printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h
2011-10-15 07:59:19 +00:00
2010-11-17 21:46:31 +00:00
fi
2011-02-11 20:41:10 +00:00
2012-03-27 17:05:19 +00:00
else
2017-12-20 13:25:41 +00:00
as_fn_error $? "The ffi library (libffi) does not appear to be working. Perhaps it's missing or you need a more recent version. Version 3.0.9 or later should work, and you can find a link to it n the list of packages for download at http://www.gnustep.org/resources/sources.html" "$LINENO" 5
2012-03-27 17:05:19 +00:00
fi
elif test $enable_ffcall = yes; then
2011-12-08 12:33:06 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define USE_FFCALL 1" >>confdefs.h
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
WITH_FFI=ffcall
LIBS="-lcallback -lavcall $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011-10-17 18:49:16 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include <callback.h>
2011-10-17 18:49:16 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2011-10-17 18:49:16 +00:00
{
2012-03-27 17:05:19 +00:00
2012-03-21 09:06:40 +00:00
;
return 0;
2011-10-17 18:49:16 +00:00
}
2011-10-15 07:59:19 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2012-03-27 17:05:19 +00:00
ffi_ok="yes"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ffi_ok="no"
2012-03-21 08:00:33 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2012-03-27 17:05:19 +00:00
if test $ffi_ok = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ffcall" >&5
printf "%s\n" "ffcall" >&6; }
2012-03-27 17:05:19 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ffcall is broken on some systems and is deprecated ... try enabling ffi" >&5
printf "%s\n" "$as_me: WARNING: ffcall is broken on some systems and is deprecated ... try enabling ffi" >&2;}
2012-03-27 17:05:19 +00:00
else
ffi_ok=no
2011-06-26 09:05:32 +00:00
fi
2012-03-27 17:05:19 +00:00
if test $enable_ffcall = yes -a $ffi_ok = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ffcall trampolines work" >&5
printf %s "checking if ffcall trampolines work... " >&6; }
if test "$cross_compiling" = yes
then :
2012-03-27 17:05:19 +00:00
have_working_trampoline=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include "$srcdir/config/config.trampoline.c"
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-03-27 17:05:19 +00:00
have_working_trampoline=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_working_trampoline=no
2012-03-27 17:05:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2011-02-11 20:41:10 +00:00
fi
2011-10-15 07:59:19 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_working_trampoline" >&5
printf "%s\n" "$have_working_trampoline" >&6; }
2012-03-27 17:05:19 +00:00
fi
if test $ffi_ok = no; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
printf "%s\n" "none" >&6; }
2012-03-27 17:05:19 +00:00
echo
if test $have_forward_hook = no; then
echo "You do not have an up-to-date libobjc library installed"
elif test "$have_working_trampoline" = no; then
echo "You have ffcall, but it does not work properly. Most likely because"
echo "your system's security policy is blocking some parts of ffcall"
echo "we recommend installing libffi instead."
else
echo "You do not have either ffcall or libffi installed/enabled, or configure needs"
echo "--with-ffi-include and/or --with-ffi-library flags so GNUstep can find them,"
echo "or you have ffcall but gnustep-make is configured to use native exceptions"
echo "(native exceptions are not compatible with ffcall)."
fi
echo "GNUstep requires libffi (or ffcall) and proper libobjc hooks to do"
echo "invocations and DO."
echo "(This does not apply on apple-apple-apple systems where DO is"
echo "not compatible with other GNUstep systems.)"
if test $enable_invocations = yes; then
echo
echo "You most likely do not want to build base without invocation support."
echo "Many things (including Distributed Objects and undo/redo), won't work"
echo "at all without invocations."
echo "If you really want to build -base without invocation support,"
echo "add --disable-invocations to the configure arguments."
echo "For more information, read the GNUstep build guide, ffcall section:"
echo "http://gnustep.made-it.com/BuildGuide/index.html"
2017-12-20 13:25:41 +00:00
as_fn_error $? "Incomplete support for ffi functionality." "$LINENO" 5
2012-03-21 09:06:40 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Incomplete support for ffi funtionality." >&5
printf "%s\n" "$as_me: WARNING: Incomplete support for ffi funtionality." >&2;}
2012-04-16 08:57:45 +00:00
fi
#--------------------------------------------------------------------
# Check for iconv support (for Unicode conversion).
#--------------------------------------------------------------------
# Do this before checking for xml2, as xml2 may require iconv.
#
# We need to find an iconv library that matches the installed iconv.h header
# (if any). It is important to check header/library compatibility. It's
# fairly common to have iconv support both in libc and from libiconv. In that
# case, a naive check that iconv() is in libc will succeed, but if we use
# libiconv's iconv.h, it will redefine iconv() to functions that exist
# only in libiconv, and we'll get link errors.
#
# Some versions of iconv don't support the '//TRANSLIT' option, which is
# needed for a lossy conversion (where we pick the closest equivalent for
# any character present in the source string which does not exist in the
# destination characterset), so we check for support of that first.
# First, check if there's a working iconv in libc (ie. if the test program
# runs without any extra flags).
# Check whether --enable-iconv was given.
2024-07-16 13:20:38 +00:00
if test ${enable_iconv+y}
then :
2012-04-16 08:57:45 +00:00
enableval=$enable_iconv;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-04-16 08:57:45 +00:00
enable_iconv=yes
fi
if test $enable_iconv = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking iconv support" >&5
printf %s "checking iconv support... " >&6; }
if test "$cross_compiling" = yes
then :
2020-06-03 14:53:28 +00:00
found_iconv="$cross_found_iconv_libc";
if test "$found_iconv" = "yes"; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2020-06-03 14:53:28 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in libc (via cross.config)" >&5
printf "%s\n" "yes, in libc (via cross.config)" >&6; }
2020-06-03 14:53:28 +00:00
fi
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-04-16 08:57:45 +00:00
#include <iconv.h>
int main(int argc,char **argv)
{ return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-04-16 08:57:45 +00:00
# libc has a working iconv.
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2012-04-16 08:57:45 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in libc" >&5
printf "%s\n" "yes, in libc" >&6; }
2012-04-16 08:57:45 +00:00
found_iconv=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
found_iconv=no
2012-04-16 08:57:45 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-04-16 08:57:45 +00:00
fi
if test $found_iconv = no ; then
# libc doesn't have a working iconv with translit.
# Try adding -liconv and any user supplied directory.
# Check whether --with-libiconv-library was given.
2024-07-16 13:20:38 +00:00
if test ${with_libiconv_library+y}
then :
2012-04-16 08:57:45 +00:00
withval=$with_libiconv_library; libiconv_libdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-04-16 08:57:45 +00:00
libiconv_libdir="no"
fi
if test "$libiconv_libdir" != "no"; then
case "$target_os" in
netbsd*)
LDFLAGS="$LDFLAGS -L${libiconv_libdir} -Wl,-R${libiconv_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${libiconv_libdir} -L${libiconv_libdir}";;
*)
2020-11-29 11:57:47 +00:00
LDFLAGS="$LDFLAGS -Wl,-rpath,${libiconv_libdir} -L${libiconv_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-rpath,${libiconv_libdir} -L${libiconv_libdir}";;
2012-04-16 08:57:45 +00:00
esac
fi
2021-11-16 00:23:57 +00:00
# Check whether --with-libiconv-include was given.
2024-07-16 13:20:38 +00:00
if test ${with_libiconv_include+y}
then :
2021-11-16 00:23:57 +00:00
withval=$with_libiconv_include; libiconv_incdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2021-11-16 00:23:57 +00:00
libiconv_incdir="no"
fi
if test ${libiconv_incdir} != "no"; then
CPPFLAGS="$CPPFLAGS -I${libiconv_incdir}"
INCLUDE_FLAGS="$INCLUDE_FLAGS -I${libiconv_incdir}"
fi
2012-04-16 08:57:45 +00:00
old_LIBS="$LIBS"
LIBS="-liconv $LIBS"
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2012-08-25 21:44:02 +00:00
found_iconv="$cross_found_iconv_liconv";
2020-06-03 14:53:28 +00:00
if test "$found_iconv" = "yes"; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2020-06-03 14:53:28 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, -liconv (via cross.config)" >&5
printf "%s\n" "yes, -liconv (via cross.config)" >&6; }
2020-06-03 14:53:28 +00:00
else
2012-08-25 21:44:02 +00:00
LIBS="$old_LIBS"
fi
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-04-16 08:57:45 +00:00
#include <iconv.h>
int main(int argc,char **argv)
{ return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-04-16 08:57:45 +00:00
# -liconv works.
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2012-04-16 08:57:45 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, -liconv" >&5
printf "%s\n" "yes, -liconv" >&6; }
2012-04-16 08:57:45 +00:00
found_iconv=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
found_iconv=no
2012-04-16 08:57:45 +00:00
LIBS="$old_LIBS"
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-04-16 08:57:45 +00:00
fi
fi
if test $found_iconv = no ; then
# -liconv with translit didn't work. Try giconv.h and -lgiconv.
# BSDs install this lib as libgiconv.
old_LIBS="$LIBS"
LIBS="-lgiconv $LIBS"
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2012-08-25 21:44:02 +00:00
found_iconv="$cross_found_iconv_lgiconv";
2020-06-03 14:53:28 +00:00
if test "$found_iconv" = "yes"; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2020-06-03 14:53:28 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_GICONV 1" >>confdefs.h
2020-06-03 14:53:28 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, -lgiconv (via cross.config)" >&5
printf "%s\n" "yes, -lgiconv (via cross.config)" >&6; }
2020-06-03 14:53:28 +00:00
else
2012-08-25 21:44:02 +00:00
LIBS="$old_LIBS"
fi
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-04-16 08:57:45 +00:00
#include <giconv.h>
int main(int argc,char **argv)
{ return iconv_open("UTF-8//TRANSLIT","ASCII") == -1 ? 1 : 0; }
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-04-16 08:57:45 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2012-04-16 08:57:45 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_GICONV 1" >>confdefs.h
2012-04-16 08:57:45 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, -lgiconv" >&5
printf "%s\n" "yes, -lgiconv" >&6; }
2012-04-16 08:57:45 +00:00
found_iconv=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
found_iconv=no
2012-04-16 08:57:45 +00:00
LIBS="$old_LIBS"
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-03-21 08:00:33 +00:00
fi
2011-10-15 07:59:19 +00:00
2012-04-16 08:57:45 +00:00
fi
2012-03-27 17:05:19 +00:00
2012-04-16 08:57:45 +00:00
# Check whether --enable-stricticonv was given.
2024-07-16 13:20:38 +00:00
if test ${enable_stricticonv+y}
then :
2012-04-16 08:57:45 +00:00
enableval=$enable_stricticonv;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-04-16 08:57:45 +00:00
enable_stricticonv=no
fi
if test $enable_stricticonv = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking non-lossy iconv support" >&5
printf %s "checking non-lossy iconv support... " >&6; }
if test "$cross_compiling" = yes
then :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include <iconv.h>
2012-04-16 08:57:45 +00:00
int main(int argc,char **argv)
{ return iconv_open("UTF-8","ASCII") == -1 ? 1 : 0; }
2012-03-27 17:05:19 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-03-27 17:05:19 +00:00
# libc has a working iconv.
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2012-03-27 17:05:19 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, in libc" >&5
printf "%s\n" "yes, in libc" >&6; }
2012-03-27 17:05:19 +00:00
found_iconv=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
found_iconv=no
2012-03-27 17:05:19 +00:00
2012-03-21 09:06:40 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-04-16 08:57:45 +00:00
fi
2011-12-15 09:42:39 +00:00
2012-03-27 17:05:19 +00:00
if test $found_iconv = no ; then
# libc doesn't have a working iconv. Try adding -liconv and any user
# supplied directory.
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --with-libiconv-library was given.
2024-07-16 13:20:38 +00:00
if test ${with_libiconv_library+y}
then :
2012-03-27 17:05:19 +00:00
withval=$with_libiconv_library; libiconv_libdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
libiconv_libdir="no"
2012-03-02 06:53:16 +00:00
fi
2011-12-15 09:42:39 +00:00
2012-03-27 17:05:19 +00:00
if test "$libiconv_libdir" != "no"; then
case "$target_os" in
netbsd*)
LDFLAGS="$LDFLAGS -L${libiconv_libdir} -Wl,-R${libiconv_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${libiconv_libdir} -L${libiconv_libdir}";;
*)
2020-11-29 11:57:47 +00:00
LDFLAGS="$LDFLAGS -Wl,-rpath,${libiconv_libdir} -L${libiconv_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-rpath,${libiconv_libdir} -L${libiconv_libdir}";;
2012-03-27 17:05:19 +00:00
esac
fi
old_LIBS="$LIBS"
LIBS="-liconv $LIBS"
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include <iconv.h>
2012-04-16 08:57:45 +00:00
int main(int argc,char **argv)
{ return iconv_open("UTF-8","ASCII") == -1 ? 1 : 0; }
2012-03-27 17:05:19 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-03-27 17:05:19 +00:00
# -liconv works.
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2011-03-17 22:33:31 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, -liconv" >&5
printf "%s\n" "yes, -liconv" >&6; }
2012-03-27 17:05:19 +00:00
found_iconv=yes
2012-03-02 06:53:16 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
found_iconv=no
2012-03-27 17:05:19 +00:00
LIBS="$old_LIBS"
2011-10-15 07:59:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-04-16 08:57:45 +00:00
fi
2011-05-29 07:38:48 +00:00
fi
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
if test $found_iconv = no ; then
# -liconv didn't work. Try giconv.h and -lgiconv.
# BSDs install this lib as libgiconv.
old_LIBS="$LIBS"
LIBS="-lgiconv $LIBS"
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017-12-20 13:25:41 +00:00
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015-06-30 08:28:00 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include <giconv.h>
2012-04-16 08:57:45 +00:00
int main(int argc,char **argv)
{ return iconv_open("UTF-8","ASCII") == -1 ? 1 : 0; }
2011-10-15 07:59:19 +00:00
2012-03-21 09:06:40 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-03-02 06:53:16 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_GICONV 1" >>confdefs.h
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, -lgiconv" >&5
printf "%s\n" "yes, -lgiconv" >&6; }
2012-04-16 08:57:45 +00:00
found_iconv=yes
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
found_iconv=no
2012-03-27 17:05:19 +00:00
LIBS="$old_LIBS"
2011-10-17 18:49:16 +00:00
2011-10-15 07:59:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-04-16 08:57:45 +00:00
fi
fi
fi
2011-10-15 07:59:19 +00:00
2012-04-16 08:57:45 +00:00
if test $found_iconv = no ; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-04-16 08:57:45 +00:00
echo
echo "You do not appear to have usable iconv header/library."
echo "Building without them will disable much characterset support."
echo "If you really want to build gnustep-base without character conversion"
echo " support, please add --disable-iconv to the configure arguments."
2017-12-20 13:25:41 +00:00
as_fn_error $? "Missing support for character conversion functionality." "$LINENO" 5
2012-04-16 08:57:45 +00:00
fi
2012-03-27 17:05:19 +00:00
fi
2012-03-21 09:06:40 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
# Check recent libxml2 for GSXML and NSXMLNode
# See DEPENDENCIES POLICY at the start of this file.
2012-03-21 09:06:40 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
# Check whether --enable-xml was given.
2024-07-16 13:20:38 +00:00
if test ${enable_xml+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_xml;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_xml=yes
2011-12-08 12:33:06 +00:00
fi
2011-05-28 18:10:07 +00:00
2011-06-26 09:05:32 +00:00
2020-02-05 22:10:53 +00:00
HAVE_LIBXML=0
2012-03-27 17:05:19 +00:00
if test $enable_xml = yes; then
2020-02-05 22:10:53 +00:00
pkg_failed=no
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
printf %s "checking for XML... " >&6; }
2020-02-05 22:10:53 +00:00
if test -n "$XML_CFLAGS"; then
pkg_cv_XML_CFLAGS="$XML_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.3.0\""; } >&5
2020-02-05 22:10:53 +00:00
($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.3.0") 2>&5
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020-02-05 22:10:53 +00:00
test $ac_status = 0; }; then
pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.3.0" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$XML_LIBS"; then
pkg_cv_XML_LIBS="$XML_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.3.0\""; } >&5
2020-02-05 22:10:53 +00:00
($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.3.0") 2>&5
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020-02-05 22:10:53 +00:00
test $ac_status = 0; }; then
pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.3.0" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2020-02-05 22:10:53 +00:00
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.3.0" 2>&1`
else
XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.3.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$XML_PKG_ERRORS" >&5
2011-06-26 09:05:32 +00:00
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --with-xml-prefix was given.
2024-07-16 13:20:38 +00:00
if test ${with_xml_prefix+y}
then :
2012-03-27 17:05:19 +00:00
withval=$with_xml_prefix; xml_config_prefix="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
xml_config_prefix=""
2012-03-21 09:06:40 +00:00
fi
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --enable-xmltest was given.
2024-07-16 13:20:38 +00:00
if test ${enable_xmltest+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_xmltest;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_xmltest=yes
2012-03-21 09:06:40 +00:00
fi
2011-06-26 09:05:32 +00:00
2012-03-27 17:05:19 +00:00
if test x$xml_config_prefix != x ; then
xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
if test x${XML2_CONFIG+set} != xset ; then
XML2_CONFIG=$xml_config_prefix/bin/xml2-config
fi
if test x${XML_CONFIG+set} != xset ; then
XML_CONFIG=$xml_config_prefix/bin/xml-config
2012-03-21 09:06:40 +00:00
fi
fi
2012-03-27 17:05:19 +00:00
# Extract the first word of "xml2-config", so it can be a program name with args.
set dummy xml2-config; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_XML2_CONFIG+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
case $XML2_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_XML2_CONFIG="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2012-03-27 17:05:19 +00:00
break 2
fi
2008-11-13 14:28:56 +00:00
done
2015-08-16 10:04:46 +00:00
done
2012-03-27 17:05:19 +00:00
IFS=$as_save_IFS
2008-11-13 14:28:56 +00:00
2012-03-27 17:05:19 +00:00
test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
;;
esac
fi
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
if test -n "$XML2_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
printf "%s\n" "$XML2_CONFIG" >&6; }
2012-03-21 09:06:40 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-03-27 17:05:19 +00:00
fi
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
if test "$XML2_CONFIG" = "no" ; then
# Extract the first word of "xml-config", so it can be a program name with args.
set dummy xml-config; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_XML_CONFIG+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
case $XML_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_XML_CONFIG="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2012-03-27 17:05:19 +00:00
break 2
fi
done
2015-08-16 10:04:46 +00:00
done
2012-03-27 17:05:19 +00:00
IFS=$as_save_IFS
2010-12-16 10:09:43 +00:00
2012-03-27 17:05:19 +00:00
test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
;;
esac
2010-12-16 10:09:43 +00:00
fi
2012-03-27 17:05:19 +00:00
XML_CONFIG=$ac_cv_path_XML_CONFIG
if test -n "$XML_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
printf "%s\n" "$XML_CONFIG" >&6; }
2012-03-21 08:00:33 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2011-05-27 10:05:25 +00:00
fi
2011-10-17 18:49:16 +00:00
2012-03-27 17:05:19 +00:00
else
XML_CONFIG=$XML2_CONFIG
fi
min_xml_version=2.3.0
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
printf %s "checking for libxml - version >= $min_xml_version... " >&6; }
2012-03-27 17:05:19 +00:00
no_xml=""
if test "$XML_CONFIG" = "no" ; then
XML_CFLAGS=""
XML_LIBS="-lxml2"
2011-12-15 09:42:39 +00:00
2012-03-27 17:05:19 +00:00
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$XML_LIBS $LIBS"
rm -f conf.xmltest
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2012-03-27 17:05:19 +00:00
echo $ac_n "cross compiling; assumed OK... $ac_c"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-27 17:05:19 +00:00
/* end confdefs.h. */
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
#include <stdlib.h>
#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
int
main()
{
int xml_major_version, xml_minor_version, xml_micro_version;
int major, minor, micro;
char *tmp_version;
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
system("touch conf.xmltest");
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
tmp_version = xmlStrdup("$min_xml_version");
if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
if ((xml_major_version > major) ||
((xml_major_version == major) && (xml_minor_version > minor)) ||
((xml_major_version == major) && (xml_minor_version == minor) &&
(xml_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the xml-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
printf("*** correct copy of xml-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
return 1;
}
2012-03-21 09:06:40 +00:00
2005-08-12 17:34:19 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2012-11-28 05:46:21 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
no_xml=yes
2012-03-27 17:05:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2005-08-12 17:34:19 +00:00
fi
2012-03-27 17:05:19 +00:00
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
else
XML_CFLAGS=`$XML_CONFIG $xml_config_args --cflags`
XML_LIBS=`$XML_CONFIG $xml_config_args --libs`
xml_config_major_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
xml_config_minor_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
xml_config_micro_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2009-10-07 15:59:09 +00:00
2012-03-27 17:05:19 +00:00
if test "x$enable_xmltest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$XML_LIBS $LIBS"
rm -f conf.xmltest
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2012-03-27 17:05:19 +00:00
echo $ac_n "cross compiling; assumed OK... $ac_c"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-27 17:05:19 +00:00
/* end confdefs.h. */
2001-03-01 11:03:39 +00:00
2012-03-27 17:05:19 +00:00
#include <stdlib.h>
#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
2002-05-02 15:17:54 +00:00
2012-03-27 17:05:19 +00:00
int
main()
{
int xml_major_version, xml_minor_version, xml_micro_version;
int major, minor, micro;
char *tmp_version;
2001-03-01 11:03:39 +00:00
2012-03-27 17:05:19 +00:00
system("touch conf.xmltest");
2001-03-01 11:03:39 +00:00
2012-03-27 17:05:19 +00:00
tmp_version = xmlStrdup("$min_xml_version");
if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
2001-03-01 11:03:39 +00:00
2012-03-27 17:05:19 +00:00
tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
2010-06-12 07:19:26 +00:00
2012-03-27 17:05:19 +00:00
if((xml_major_version != $xml_config_major_version) ||
(xml_minor_version != $xml_config_minor_version) ||
(xml_micro_version != $xml_config_micro_version))
{
printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
$xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version,
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** was found! If xml-config was correct, then it is best\n");
printf("*** to remove the old version of libxml. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If xml-config was wrong, set the environment variable XML_CONFIG\n");
printf("*** to point to the correct copy of xml-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
else
{
if ((xml_major_version > major) ||
((xml_major_version == major) && (xml_minor_version > minor)) ||
((xml_major_version == major) && (xml_minor_version == minor) &&
(xml_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the xml-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
printf("*** correct copy of xml-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
2009-10-07 15:59:09 +00:00
2015-08-16 10:04:46 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-08-16 10:04:46 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
no_xml=yes
2012-03-27 17:05:19 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2005-08-12 17:34:19 +00:00
fi
2012-03-27 17:05:19 +00:00
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
2005-08-12 17:34:19 +00:00
fi
2012-03-27 17:05:19 +00:00
if test "x$no_xml" = x ; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2012-03-27 17:05:19 +00:00
enable_libxml=yes
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-03-27 17:05:19 +00:00
if test "$XML_CONFIG" = "no" ; then
echo "*** The xml-config script installed by libxml could not be found"
echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the XML_CONFIG environment variable to the"
echo "*** full path to xml-config."
2001-10-26 02:37:52 +00:00
else
2012-03-27 17:05:19 +00:00
if test -f conf.xmltest ; then
:
else
echo "*** Could not run libxml test program, checking why..."
CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$LIBS $XML_LIBS"
fi
2001-03-01 11:03:39 +00:00
fi
2012-03-27 17:05:19 +00:00
XML_CFLAGS=""
XML_LIBS=""
enable_libxml=no
2001-03-01 11:03:39 +00:00
fi
2012-03-27 17:05:19 +00:00
rm -f conf.xmltest
2001-04-21 05:55:16 +00:00
2020-02-05 22:10:53 +00:00
elif test $pkg_failed = untried; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2020-02-05 22:10:53 +00:00
# Check whether --with-xml-prefix was given.
2024-07-16 13:20:38 +00:00
if test ${with_xml_prefix+y}
then :
2020-02-05 22:10:53 +00:00
withval=$with_xml_prefix; xml_config_prefix="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2020-02-05 22:10:53 +00:00
xml_config_prefix=""
fi
# Check whether --enable-xmltest was given.
2024-07-16 13:20:38 +00:00
if test ${enable_xmltest+y}
then :
2020-02-05 22:10:53 +00:00
enableval=$enable_xmltest;
2024-07-16 13:20:38 +00:00
else $as_nop
2020-02-05 22:10:53 +00:00
enable_xmltest=yes
fi
if test x$xml_config_prefix != x ; then
xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
if test x${XML2_CONFIG+set} != xset ; then
XML2_CONFIG=$xml_config_prefix/bin/xml2-config
fi
if test x${XML_CONFIG+set} != xset ; then
XML_CONFIG=$xml_config_prefix/bin/xml-config
fi
fi
# Extract the first word of "xml2-config", so it can be a program name with args.
set dummy xml2-config; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_XML2_CONFIG+y}
then :
printf %s "(cached) " >&6
else $as_nop
2020-02-05 22:10:53 +00:00
case $XML2_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2020-02-05 22:10:53 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_XML2_CONFIG="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2020-02-05 22:10:53 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
;;
esac
fi
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
if test -n "$XML2_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
printf "%s\n" "$XML2_CONFIG" >&6; }
2020-02-05 22:10:53 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2020-02-05 22:10:53 +00:00
fi
if test "$XML2_CONFIG" = "no" ; then
# Extract the first word of "xml-config", so it can be a program name with args.
set dummy xml-config; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_XML_CONFIG+y}
then :
printf %s "(cached) " >&6
else $as_nop
2020-02-05 22:10:53 +00:00
case $XML_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2020-02-05 22:10:53 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_XML_CONFIG="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2020-02-05 22:10:53 +00:00
break 2
fi
done
done
IFS=$as_save_IFS
test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
;;
esac
fi
XML_CONFIG=$ac_cv_path_XML_CONFIG
if test -n "$XML_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
printf "%s\n" "$XML_CONFIG" >&6; }
2020-02-05 22:10:53 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2020-02-05 22:10:53 +00:00
fi
else
XML_CONFIG=$XML2_CONFIG
fi
min_xml_version=2.3.0
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
printf %s "checking for libxml - version >= $min_xml_version... " >&6; }
2020-02-05 22:10:53 +00:00
no_xml=""
if test "$XML_CONFIG" = "no" ; then
XML_CFLAGS=""
XML_LIBS="-lxml2"
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$XML_LIBS $LIBS"
rm -f conf.xmltest
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2020-02-05 22:10:53 +00:00
echo $ac_n "cross compiling; assumed OK... $ac_c"
2024-07-16 13:20:38 +00:00
else $as_nop
2020-02-05 22:10:53 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdlib.h>
#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
int
main()
{
int xml_major_version, xml_minor_version, xml_micro_version;
int major, minor, micro;
char *tmp_version;
system("touch conf.xmltest");
tmp_version = xmlStrdup("$min_xml_version");
if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
if ((xml_major_version > major) ||
((xml_major_version == major) && (xml_minor_version > minor)) ||
((xml_major_version == major) && (xml_minor_version == minor) &&
(xml_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the xml-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
printf("*** correct copy of xml-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
return 1;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2020-02-05 22:10:53 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2020-02-05 22:10:53 +00:00
no_xml=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
else
XML_CFLAGS=`$XML_CONFIG $xml_config_args --cflags`
XML_LIBS=`$XML_CONFIG $xml_config_args --libs`
xml_config_major_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
xml_config_minor_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
xml_config_micro_version=`$XML_CONFIG $xml_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
if test "x$enable_xmltest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$XML_LIBS $LIBS"
rm -f conf.xmltest
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2020-02-05 22:10:53 +00:00
echo $ac_n "cross compiling; assumed OK... $ac_c"
2024-07-16 13:20:38 +00:00
else $as_nop
2020-02-05 22:10:53 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdlib.h>
#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
int
main()
{
int xml_major_version, xml_minor_version, xml_micro_version;
int major, minor, micro;
char *tmp_version;
system("touch conf.xmltest");
tmp_version = xmlStrdup("$min_xml_version");
if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
printf("%s, bad version string\n", "$min_xml_version");
exit(1);
}
if((xml_major_version != $xml_config_major_version) ||
(xml_minor_version != $xml_config_minor_version) ||
(xml_micro_version != $xml_config_micro_version))
{
printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
$xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version,
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** was found! If xml-config was correct, then it is best\n");
printf("*** to remove the old version of libxml. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If xml-config was wrong, set the environment variable XML_CONFIG\n");
printf("*** to point to the correct copy of xml-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
else
{
if ((xml_major_version > major) ||
((xml_major_version == major) && (xml_minor_version > minor)) ||
((xml_major_version == major) && (xml_minor_version == minor) &&
(xml_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the xml-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
printf("*** correct copy of xml-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2020-02-05 22:10:53 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2020-02-05 22:10:53 +00:00
no_xml=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_xml" = x ; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2020-02-05 22:10:53 +00:00
enable_libxml=yes
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2020-02-05 22:10:53 +00:00
if test "$XML_CONFIG" = "no" ; then
echo "*** The xml-config script installed by libxml could not be found"
echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the XML_CONFIG environment variable to the"
echo "*** full path to xml-config."
else
if test -f conf.xmltest ; then
:
else
echo "*** Could not run libxml test program, checking why..."
CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$LIBS $XML_LIBS"
fi
fi
XML_CFLAGS=""
XML_LIBS=""
enable_libxml=no
fi
rm -f conf.xmltest
else
XML_CFLAGS=$pkg_cv_XML_CFLAGS
XML_LIBS=$pkg_cv_XML_LIBS
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2020-02-05 22:10:53 +00:00
enable_libxml=yes
fi
2012-03-27 17:05:19 +00:00
if test $enable_libxml = yes; then
CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
INCLUDE_FLAGS="$INCLUDE_FLAGS $XML_CFLAGS"
LIBS="$XML_LIBS $LIBS"
HAVE_LIBXML=1
2010-06-12 07:19:26 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h
2010-06-12 07:19:26 +00:00
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "libxml/SAX2.h" "ac_cv_header_libxml_SAX2_h" "$ac_includes_default"
if test "x$ac_cv_header_libxml_SAX2_h" = xyes
then :
printf "%s\n" "#define HAVE_LIBXML_SAX2_H 1" >>confdefs.h
1999-09-09 02:56:20 +00:00
1999-07-22 14:17:27 +00:00
fi
2020-02-05 22:10:53 +00:00
2012-03-27 17:05:19 +00:00
#--------------------------------------------------------------------
# Check for (optional) libxslt
#--------------------------------------------------------------------
# Check whether --enable-xslt was given.
2024-07-16 13:20:38 +00:00
if test ${enable_xslt+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_xslt;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_xslt=yes
2004-10-26 19:08:17 +00:00
fi
2012-03-27 17:05:19 +00:00
if test $enable_xslt = yes; then
2004-10-26 19:08:17 +00:00
2021-08-03 14:54:23 +00:00
pkg_failed=no
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSLT" >&5
printf %s "checking for XSLT... " >&6; }
2021-08-03 14:54:23 +00:00
if test -n "$XSLT_CFLAGS"; then
pkg_cv_XSLT_CFLAGS="$XSLT_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.0\""; } >&5
2021-08-03 14:54:23 +00:00
($PKG_CONFIG --exists --print-errors "libxslt >= 1.0") 2>&5
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021-08-03 14:54:23 +00:00
test $ac_status = 0; }; then
pkg_cv_XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.0" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
2012-03-27 17:05:19 +00:00
else
2021-08-03 14:54:23 +00:00
pkg_failed=yes
2012-03-21 08:00:33 +00:00
fi
2021-08-03 14:54:23 +00:00
else
pkg_failed=untried
2012-03-21 09:06:40 +00:00
fi
2021-08-03 14:54:23 +00:00
if test -n "$XSLT_LIBS"; then
pkg_cv_XSLT_LIBS="$XSLT_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.0\""; } >&5
2021-08-03 14:54:23 +00:00
($PKG_CONFIG --exists --print-errors "libxslt >= 1.0") 2>&5
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021-08-03 14:54:23 +00:00
test $ac_status = 0; }; then
pkg_cv_XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.0" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
2012-03-21 08:00:33 +00:00
else
2021-08-03 14:54:23 +00:00
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2021-08-03 14:54:23 +00:00
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
2012-03-21 08:00:33 +00:00
fi
2021-08-03 14:54:23 +00:00
if test $_pkg_short_errors_supported = yes; then
XSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxslt >= 1.0" 2>&1`
else
XSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxslt >= 1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$XSLT_PKG_ERRORS" >&5
2012-03-21 08:00:33 +00:00
2021-08-03 14:54:23 +00:00
xslt_ok=no
elif test $pkg_failed = untried; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2021-08-03 14:54:23 +00:00
xslt_ok=no
else
XSLT_CFLAGS=$pkg_cv_XSLT_CFLAGS
XSLT_LIBS=$pkg_cv_XSLT_LIBS
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2021-08-03 14:54:23 +00:00
xslt_ok=yes
fi
2012-03-27 17:05:19 +00:00
if test "$xslt_ok" = "yes"; then
2024-07-16 13:20:38 +00:00
for ac_header in libxslt/xslt.h
2021-08-03 14:54:23 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
if test "x$ac_cv_header_libxslt_xslt_h" = xyes
then :
printf "%s\n" "#define HAVE_LIBXSLT_XSLT_H 1" >>confdefs.h
2021-08-03 14:54:23 +00:00
xslt_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2021-08-03 14:54:23 +00:00
xslt_ok=no
2012-03-21 08:00:33 +00:00
fi
2021-08-03 14:54:23 +00:00
done
2012-03-27 17:05:19 +00:00
fi
if test "$xslt_ok" = "yes"; then
2021-08-03 14:54:23 +00:00
CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
INCLUDE_FLAGS="$INCLUDE_FLAGS $XSLT_CFLAGS"
LIBS="$XSLT_LIBS $LIBS"
HAVE_LIBXSLT=1
2012-03-21 09:06:40 +00:00
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_LIBXSLT 1" >>confdefs.h
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
else
2021-08-03 14:54:23 +00:00
echo
echo "You do not appear to have usable libxslt headers/library."
echo "Building without them will disable the XSLT extensions."
echo "If you really want to build gnustep-base without XSLT support,"
echo "add --disable-xslt to the configure arguments to avoid warning."
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Missing support for XSLT functionality." >&5
printf "%s\n" "$as_me: WARNING: Missing support for XSLT functionality." >&2;}
2012-03-27 17:05:19 +00:00
fi
else
HAVE_LIBXSLT=0
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabled support for XSLT funtionality." >&5
printf "%s\n" "$as_me: WARNING: Disabled support for XSLT funtionality." >&2;}
2012-03-21 09:06:40 +00:00
fi
2012-03-27 17:05:19 +00:00
else
echo
echo "You do not appear to have usable libxml2 headers/library."
echo "Building without them will disable the GSXML and NSXMLNode."
echo "If you really want to build gnustep-base without XML DOM support"
echo " (though NSXMLParser is unaffected), please"
echo "add --disable-xml to the configure arguments."
2017-12-20 13:25:41 +00:00
as_fn_error $? "Missing support for XML DOM functionality." "$LINENO" 5
2012-03-21 09:06:40 +00:00
fi
2012-03-21 08:00:33 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: XML functionality disabled." >&5
printf "%s\n" "$as_me: WARNING: XML functionality disabled." >&2;}
2012-03-21 08:00:33 +00:00
fi
2012-03-21 09:06:40 +00:00
2012-03-27 17:05:19 +00:00
#--------------------------------------------------------------------
# Check recent libgnutls for SSL streams.
# See DEPENDENCIES POLICY at the start of this file.
#--------------------------------------------------------------------
# Check whether --enable-tls was given.
2024-07-16 13:20:38 +00:00
if test ${enable_tls+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_tls;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_tls=yes
2000-12-08 19:06:00 +00:00
fi
2002-05-02 15:17:54 +00:00
2000-12-08 19:06:00 +00:00
2012-03-27 17:05:19 +00:00
if test $enable_tls = yes; then
HAVE_GNUTLS=0
# Save CFLAGS and LIBS as AM_PATH_TLS clobbers these variables regardless
# of the success of the macro.
saved_LIBS="$LIBS"
saved_CFLAGS="$CFLAGS"
2018-01-14 12:30:13 +00:00
if test -n "$PKG_CONFIG"; then
2012-03-27 17:05:19 +00:00
if pkg-config --exists gnutls; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gnutls support" >&5
printf %s "checking gnutls support... " >&6; }
2012-03-27 17:05:19 +00:00
HAVE_GNUTLS=1
2018-01-14 12:30:13 +00:00
TLS_CFLAGS=`$PKG_CONFIG --cflags gnutls`
TLS_LIBS=`$PKG_CONFIG --libs gnutls`
2010-04-07 07:24:54 +00:00
fi
2008-07-06 08:46:38 +00:00
fi
2012-03-27 17:05:19 +00:00
if test $HAVE_GNUTLS = 0; then
# AM_PATH_TLS(2.0.1, enable_libgnutls=yes, enable_libgnutls=no)
# Check whether --with-tls-prefix was given.
2024-07-16 13:20:38 +00:00
if test ${with_tls_prefix+y}
then :
2012-03-27 17:05:19 +00:00
withval=$with_tls_prefix; tls_config_prefix="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
tls_config_prefix=""
2003-10-25 03:04:07 +00:00
fi
2003-08-24 02:46:30 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --enable-tlstest was given.
2024-07-16 13:20:38 +00:00
if test ${enable_tlstest+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_tlstest;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_tlstest=yes
2012-03-02 06:53:16 +00:00
fi
2012-01-29 16:57:06 +00:00
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
if test x$tls_config_prefix != x ; then
tls_config_args="$tls_config_args --prefix=$tls_config_prefix"
if test x${TLS_CONFIG+set} != xset ; then
TLS_CONFIG=$tls_config_prefix/bin/libgnutls-config
fi
fi
2013-04-05 15:55:20 +00:00
if test ! -x "$TLS_CONFIG" ; then
unset TLS_CONFIG
fi
2012-03-27 17:05:19 +00:00
# Extract the first word of "libgnutls-config", so it can be a program name with args.
set dummy libgnutls-config; ac_word=$2
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_TLS_CONFIG+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
case $TLS_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_TLS_CONFIG="$TLS_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
2015-08-16 10:04:46 +00:00
for ac_exec_ext in '' $ac_executable_extensions; do
2024-07-16 13:20:38 +00:00
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_TLS_CONFIG="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2012-03-27 17:05:19 +00:00
break 2
fi
done
2015-08-16 10:04:46 +00:00
done
2012-03-27 17:05:19 +00:00
IFS=$as_save_IFS
test -z "$ac_cv_path_TLS_CONFIG" && ac_cv_path_TLS_CONFIG="no"
;;
esac
2012-03-02 06:53:16 +00:00
fi
2012-03-27 17:05:19 +00:00
TLS_CONFIG=$ac_cv_path_TLS_CONFIG
if test -n "$TLS_CONFIG"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TLS_CONFIG" >&5
printf "%s\n" "$TLS_CONFIG" >&6; }
2012-03-27 17:05:19 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-01-29 16:57:06 +00:00
fi
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
min_tls_version=1.4.0
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_tls_version" >&5
printf %s "checking for libgnutls - version >= $min_tls_version... " >&6; }
2012-03-27 17:05:19 +00:00
no_tls=""
if test "$TLS_CONFIG" = "no" ; then
2013-04-05 15:55:20 +00:00
if test x$tls_config_prefix != x ; then
TLS_CFLAGS="-I$tls_config_prefix/include"
TLS_LIBS="-L$tls_config_prefix/lib -lgnutls -lgcrypt"
else
TLS_CFLAGS="-I/usr/include"
TLS_LIBS="-L/usr/lib -lgnutls -lgcrypt"
fi
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $TLS_CFLAGS"
LIBS="$TLS_LIBS $LIBS"
rm -f conf.tlstest
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2012-03-27 17:05:19 +00:00
echo $ac_n "cross compiling; assumed OK... $ac_c"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-02 06:53:16 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include <stdlib.h>
#include <stdio.h>
#include <gnutls/gnutls.h>
int
main()
{
system("touch conf.tlstest");
if (gnutls_check_version("$min_tls_version") == 0)
{
printf("\n*** An old version of libgnutls (%s) was found.\n",
gnutls_check_version(0));
printf("*** You need a version of libtgnuls newer than $min_tls_version.\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
printf("*** being found. You can fix this is by removing the old version\n");
printf("*** of libgnutls.\n");
return 1;
}
return 0;
}
2012-03-02 06:53:16 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
no_tls=yes
2012-03-02 06:53:16 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-01-29 16:57:06 +00:00
fi
2012-03-02 06:53:16 +00:00
2012-01-29 16:57:06 +00:00
2012-03-27 17:05:19 +00:00
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
2010-03-29 10:49:07 +00:00
else
2012-03-27 17:05:19 +00:00
TLS_CFLAGS=`$TLS_CONFIG $tls_config_args --cflags`
TLS_LIBS=`$TLS_CONFIG $tls_config_args --libs`
tls_config_major_version=`$TLS_CONFIG $tls_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
tls_config_minor_version=`$TLS_CONFIG $tls_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
tls_config_micro_version=`$TLS_CONFIG $tls_config_args --version | \
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2000-12-08 19:06:00 +00:00
2012-03-27 17:05:19 +00:00
if test "x$enable_tlstest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $TLS_CFLAGS"
LIBS="$TLS_LIBS $LIBS"
rm -f conf.tlstest
2024-07-16 13:20:38 +00:00
if test "$cross_compiling" = yes
then :
2012-03-27 17:05:19 +00:00
echo $ac_n "cross compiling; assumed OK... $ac_c"
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004-11-30 04:25:38 +00:00
/* end confdefs.h. */
2012-03-27 17:05:19 +00:00
#include <stdlib.h>
#include <stdio.h>
#include <gnutls/gnutls.h>
2004-11-30 04:25:38 +00:00
int
2012-03-27 17:05:19 +00:00
main()
2004-11-30 04:25:38 +00:00
{
2012-03-27 17:05:19 +00:00
system("touch conf.tlstest");
2004-11-30 04:25:38 +00:00
2012-03-27 17:05:19 +00:00
if (gnutls_check_version("$min_tls_version") == 0)
{
printf("\n*** An old version of libgnutls (%s) was found.\n",
gnutls_check_version(0));
printf("*** You need a version of libtgnuls newer than $min_tls_version.\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
printf("*** being found. You can fix this is by removing the old version\n");
printf("*** of libgnutls.\n");
return 1;
}
2011-01-23 04:46:14 +00:00
return 0;
}
2012-03-21 09:06:40 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2015-05-13 10:57:56 +00:00
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
no_tls=yes
2007-03-05 15:21:34 +00:00
fi
2015-08-16 10:04:46 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
2007-03-05 17:58:02 +00:00
fi
2010-06-12 07:19:26 +00:00
2004-11-30 04:25:38 +00:00
2012-03-27 17:05:19 +00:00
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
2000-12-08 19:06:00 +00:00
2012-03-27 17:05:19 +00:00
if test "x$no_tls" = x ; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2012-03-27 17:05:19 +00:00
enable_libgnutls=yes
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-03-27 17:05:19 +00:00
if test "$TLS_CONFIG" = "no" ; then
echo "*** The libgnutls-config script installed by libgnutls could not be found"
2013-04-05 15:55:20 +00:00
echo "*** If libtgnuls-config was installed in PREFIX, make sure PREFIX/bin is in"
2012-03-27 17:05:19 +00:00
echo "*** your path."
else
if test -f conf.tlstest ; then
:
else
echo "*** Could not run libtgnuls test program, checking why..."
CFLAGS="$CFLAGS $TLS_CFLAGS"
LIBS="$LIBS $TLS_LIBS"
fi
fi
2005-02-16 14:45:07 +00:00
2012-03-27 17:05:19 +00:00
TLS_CFLAGS=""
TLS_LIBS=""
enable_libgnutls=no
fi
2005-02-16 14:45:07 +00:00
2012-03-27 17:05:19 +00:00
rm -f conf.tlstest
2005-02-16 14:45:07 +00:00
2012-03-27 17:05:19 +00:00
if test $enable_libgnutls = yes; then
HAVE_GNUTLS=1
else
HAVE_GNUTLS=0
fi
fi
if test $HAVE_GNUTLS = 1; then
2014-06-30 06:28:38 +00:00
if ! pkg-config --atleast-version=2.12 gnutls; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
printf %s "checking for gcry_control in -lgcrypt... " >&6; }
if test ${ac_cv_lib_gcrypt_gcry_control+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcrypt $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-27 17:05:19 +00:00
/* end confdefs.h. */
2005-02-16 14:45:07 +00:00
2012-03-27 17:05:19 +00: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. */
char gcry_control ();
int
2024-07-16 13:20:38 +00:00
main (void)
2012-03-27 17:05:19 +00:00
{
return gcry_control ();
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2012-03-27 17:05:19 +00:00
ac_cv_lib_gcrypt_gcry_control=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_gcrypt_gcry_control=no
2005-02-16 14:45:07 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2012-03-27 17:05:19 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
printf "%s\n" "$ac_cv_lib_gcrypt_gcry_control" >&6; }
if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes
then :
2012-03-27 17:05:19 +00:00
have_gcrypt=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_gcrypt=no
2010-06-12 07:19:26 +00:00
fi
2014-06-30 06:28:38 +00:00
if test "$have_gcrypt" = "no"; then
HAVE_GNUTLS=0
else
TLS_LIBS="$TLS_LIBS -lgcrypt"
fi
2012-03-27 17:05:19 +00:00
fi
2005-02-16 14:45:07 +00:00
fi
2012-03-27 17:05:19 +00:00
if test $HAVE_GNUTLS = 0; then
# Restore the CFLAGS and LIBS because AM_PATH_TLS messes them
LIBS="$saved_LIBS"
CFLAGS="$saved_CFLAGS"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-03-27 17:05:19 +00:00
echo
echo "You do not appear to have usable libgnutls headers/library."
2012-09-23 13:11:15 +00:00
echo "Building without them will disable SSL/TLS/HTTPS in NSStream,"
echo "NSFileHandle, NSURLHandle and NSURLConnection."
2012-03-27 17:05:19 +00:00
echo "If you really want to build gnustep-base without TLS support,"
echo "add --disable-tls to the configure arguments."
2017-12-20 13:25:41 +00:00
as_fn_error $? "Missing support for TLS functionality." "$LINENO" 5
2015-08-16 10:04:46 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2015-08-16 10:04:46 +00:00
CPPFLAGS="$CPPFLAGS $TLS_CFLAGS"
INCLUDE_FLAGS="$INCLUDE_FLAGS $TLS_CFLAGS"
LIBS="$TLS_LIBS $LIBS"
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "gnutls_transport_set_errno" "ac_cv_func_gnutls_transport_set_errno"
if test "x$ac_cv_func_gnutls_transport_set_errno" = xyes
then :
printf "%s\n" "#define HAVE_GNUTLS_TRANSPORT_SET_ERRNO 1" >>confdefs.h
2005-02-16 14:45:07 +00:00
2012-03-27 17:05:19 +00:00
fi
2005-02-16 14:45:07 +00:00
2012-03-27 17:05:19 +00:00
if test "$ac_cv_func_gnutls_transport_set_errno" = "no"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Missing support for thread-safe error handling in GNUTLS. Please check that you have the most recent version installed (2.0 or later chould be fine)." >&5
printf "%s\n" "$as_me: WARNING: Missing support for thread-safe error handling in GNUTLS. Please check that you have the most recent version installed (2.0 or later chould be fine)." >&2;}
2012-03-27 17:05:19 +00:00
fi
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "gnutls_x509_privkey_import2" "ac_cv_func_gnutls_x509_privkey_import2"
if test "x$ac_cv_func_gnutls_x509_privkey_import2" = xyes
then :
printf "%s\n" "#define HAVE_GNUTLS_X509_PRIVKEY_IMPORT2 1" >>confdefs.h
2016-10-11 11:59:04 +00:00
fi
2012-03-27 17:05:19 +00:00
fi
2005-02-16 14:45:07 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabled support for TLS funtionality." >&5
printf "%s\n" "$as_me: WARNING: Disabled support for TLS funtionality." >&2;}
2012-03-27 17:05:19 +00:00
HAVE_GNUTLS=0
2005-02-16 14:45:07 +00:00
fi
2012-03-27 17:05:19 +00:00
if test $HAVE_GNUTLS = 1; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_GNUTLS $HAVE_GNUTLS" >>confdefs.h
2012-03-27 17:05:19 +00:00
2005-02-16 14:45:07 +00:00
fi
2012-03-27 17:05:19 +00:00
2000-06-20 13:17:22 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
# Check for NSNetServices
2012-03-21 08:00:33 +00:00
# See DEPENDENCIES POLICY at the start of this file.
2000-06-20 13:17:22 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
HAVE_MDNS=0
HAVE_AVAHI=0
# Check whether --enable-zeroconf was given.
2024-07-16 13:20:38 +00:00
if test ${enable_zeroconf+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_zeroconf;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_zeroconf=yes
2010-06-12 07:19:26 +00:00
fi
2004-01-25 19:57:10 +00:00
2012-03-27 17:05:19 +00:00
# Check whether --with-zeroconf-api was given.
2024-07-16 13:20:38 +00:00
if test ${with_zeroconf_api+y}
then :
2012-03-27 17:05:19 +00:00
withval=$with_zeroconf_api; zeroconf_api="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
zeroconf_api="any"
2010-06-12 07:19:26 +00:00
fi
2012-03-27 17:05:19 +00:00
if test $enable_zeroconf = yes; then
if test "$zeroconf_api" = "any" || test "$zeroconf_api" = "mdns"; then
2024-07-16 13:20:38 +00:00
for ac_header in dns_sd.h
2015-08-16 10:04:46 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
if test "x$ac_cv_header_dns_sd_h" = xyes
then :
printf "%s\n" "#define HAVE_DNS_SD_H 1" >>confdefs.h
2012-03-27 17:05:19 +00:00
have_mdns=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_mdns=no
2005-02-16 14:45:07 +00:00
fi
2012-03-27 17:05:19 +00:00
done
if test "$have_mdns" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DNSServiceBrowse in -ldns_sd" >&5
printf %s "checking for DNSServiceBrowse in -ldns_sd... " >&6; }
if test ${ac_cv_lib_dns_sd_DNSServiceBrowse+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-27 17:05:19 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldns_sd $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003-09-22 03:00:21 +00:00
/* end confdefs.h. */
2001-01-05 10:12:17 +00:00
2012-03-27 17:05:19 +00: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. */
char DNSServiceBrowse ();
2001-01-05 10:12:17 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2001-01-05 10:12:17 +00:00
{
2012-03-27 17:05:19 +00:00
return DNSServiceBrowse ();
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2012-03-27 17:05:19 +00:00
ac_cv_lib_dns_sd_DNSServiceBrowse=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_dns_sd_DNSServiceBrowse=no
2012-03-27 17:05:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2012-03-27 17:05:19 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceBrowse" >&5
printf "%s\n" "$ac_cv_lib_dns_sd_DNSServiceBrowse" >&6; }
if test "x$ac_cv_lib_dns_sd_DNSServiceBrowse" = xyes
then :
2012-03-27 17:05:19 +00:00
have_mdns=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_mdns=no
fi
2001-01-05 10:12:17 +00:00
2012-03-27 17:05:19 +00:00
if test "$have_mdns" = "yes"; then
MDNS_LIBS="-ldns_sd"
HAVE_MDNS=1
fi
fi
fi
if test "$zeroconf_api" = "any" || test "$zeroconf_api" = "avahi"; then
2024-07-16 13:20:38 +00:00
for ac_header in avahi-client/client.h
2015-08-16 10:04:46 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default"
if test "x$ac_cv_header_avahi_client_client_h" = xyes
then :
printf "%s\n" "#define HAVE_AVAHI_CLIENT_CLIENT_H 1" >>confdefs.h
2012-03-27 17:05:19 +00:00
have_avahi=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_avahi=no
2012-03-21 08:00:33 +00:00
fi
2012-03-27 17:05:19 +00:00
done
if test "$have_avahi" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
printf %s "checking for avahi_client_new in -lavahi-client... " >&6; }
if test ${ac_cv_lib_avahi_client_avahi_client_new+y}
then :
printf %s "(cached) " >&6
else $as_nop
2012-03-21 09:06:40 +00:00
ac_check_lib_save_LIBS=$LIBS
2012-03-27 17:05:19 +00:00
LIBS="-lavahi-client $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-21 09:06:40 +00:00
/* end confdefs.h. */
2012-03-21 08:00:33 +00:00
2012-03-21 09:06:40 +00: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. */
2012-03-27 17:05:19 +00:00
char avahi_client_new ();
2012-03-21 09:06:40 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2012-03-21 09:06:40 +00:00
{
2012-03-27 17:05:19 +00:00
return avahi_client_new ();
2012-03-21 09:06:40 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2012-03-27 17:05:19 +00:00
ac_cv_lib_avahi_client_avahi_client_new=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_avahi_client_avahi_client_new=no
2012-03-21 09:06:40 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2012-03-21 09:06:40 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
printf "%s\n" "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes
then :
2012-03-27 17:05:19 +00:00
have_avahi=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_avahi=no
2006-12-27 14:11:14 +00:00
fi
2012-03-27 17:05:19 +00:00
if test "$have_avahi" = "yes"; then
AVAHI_LIBS="-lavahi-common -lavahi-client"
HAVE_AVAHI=1
2006-12-27 14:11:14 +00:00
fi
fi
2012-03-27 17:05:19 +00:00
fi
# If we have both APIs, prefer Avahi, because the mDNS API
# is most certainly the compatability one
if test "$have_avahi" = "yes" && test "$have_mdns" = "yes"; then
LIBS="$AVAHI_LIBS $LIBS"
HAVE_MDNS=0
2006-12-27 14:11:14 +00:00
else
2012-03-27 17:05:19 +00:00
# One of those will be empty.
LIBS="$AVAHI_LIBS $MDNS_LIBS $LIBS"
2006-12-27 14:11:14 +00:00
fi
fi
2008-01-04 13:06:14 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
# Check for International Components for Unicode
2011-10-15 07:59:19 +00:00
# See DEPENDENCIES POLICY at the start of this file.
2008-01-04 13:06:14 +00:00
#--------------------------------------------------------------------
2012-03-27 17:05:19 +00:00
HAVE_ICU=0
# Check whether --enable-icu was given.
2024-07-16 13:20:38 +00:00
if test ${enable_icu+y}
then :
2012-03-27 17:05:19 +00:00
enableval=$enable_icu;
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_icu=yes
2010-06-12 07:19:26 +00:00
fi
2010-04-12 17:44:20 +00:00
2010-06-12 07:19:26 +00:00
2024-07-16 13:20:38 +00:00
if test "x$enable_icu" = "xyes"
then :
2021-07-16 12:31:38 +00:00
case "$target_os" in
mingw*|windows)
# check for ICU bundled with Windows 10
2021-08-06 07:29:11 +00:00
old_LIBS="$LIBS"
LIBS="-licu $LIBS"
2024-07-16 13:20:38 +00:00
for ac_header in icu.h
2021-07-16 12:31:38 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "icu.h" "ac_cv_header_icu_h" "$ac_includes_default"
if test "x$ac_cv_header_icu_h" = xyes
then :
printf "%s\n" "#define HAVE_ICU_H 1" >>confdefs.h
if test "$cross_compiling" = yes
then :
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2021-08-06 07:29:11 +00:00
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
2024-07-16 13:20:38 +00:00
else $as_nop
2021-08-06 07:29:11 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021-07-16 12:31:38 +00:00
/* end confdefs.h. */
2021-08-06 07:29:11 +00:00
#include <icu.h>
int main () {
return udat_countAvailable() > 0 ? 0 : 1;
}
2021-07-16 12:31:38 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_run "$LINENO"
then :
2021-07-16 12:31:38 +00:00
HAVE_ICU=1
fi
2021-08-06 07:29:11 +00:00
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
2021-07-16 12:31:38 +00:00
fi
done
2021-08-06 07:29:11 +00:00
LIBS="$old_LIBS"
2021-07-16 12:31:38 +00:00
if test $HAVE_ICU = 1; then
ICU_LIBS=-licu
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using system-provided ICU DLL (requires Windows 10 version 1903 or later)" >&5
printf "%s\n" "$as_me: Using system-provided ICU DLL (requires Windows 10 version 1903 or later)" >&6;}
2021-07-16 12:31:38 +00:00
fi
;;
esac
if test $HAVE_ICU = 0; then
2012-09-01 19:24:54 +00:00
2019-01-06 19:57:59 +00:00
pkg_failed=no
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
printf %s "checking for ICU... " >&6; }
2012-09-01 19:24:54 +00:00
2019-01-06 19:57:59 +00:00
if test -n "$ICU_CFLAGS"; then
pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n > 49.0\""; } >&5
2019-03-29 09:22:28 +00:00
($PKG_CONFIG --exists --print-errors "icu-i18n > 49.0") 2>&5
2019-01-06 19:57:59 +00:00
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019-01-06 19:57:59 +00:00
test $ac_status = 0; }; then
2019-03-29 09:22:28 +00:00
pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n > 49.0" 2>/dev/null`
2019-01-06 19:57:59 +00:00
test "x$?" != "x0" && pkg_failed=yes
2012-09-01 19:24:54 +00:00
else
2019-01-06 19:57:59 +00:00
pkg_failed=yes
2012-09-01 19:24:54 +00:00
fi
2019-01-06 19:57:59 +00:00
else
pkg_failed=untried
2012-03-27 17:05:19 +00:00
fi
2019-01-06 19:57:59 +00:00
if test -n "$ICU_LIBS"; then
pkg_cv_ICU_LIBS="$ICU_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
2024-07-16 13:20:38 +00:00
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n > 49.0\""; } >&5
2019-03-29 09:22:28 +00:00
($PKG_CONFIG --exists --print-errors "icu-i18n > 49.0") 2>&5
2019-01-06 19:57:59 +00:00
ac_status=$?
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019-01-06 19:57:59 +00:00
test $ac_status = 0; }; then
2019-03-29 09:22:28 +00:00
pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n > 49.0" 2>/dev/null`
2019-01-06 19:57:59 +00:00
test "x$?" != "x0" && pkg_failed=yes
2012-03-27 17:05:19 +00:00
else
2019-01-06 19:57:59 +00:00
pkg_failed=yes
fi
else
pkg_failed=untried
2012-03-27 17:05:19 +00:00
fi
2019-01-06 19:57:59 +00:00
if test $pkg_failed = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2012-03-27 17:05:19 +00:00
2019-01-06 19:57:59 +00:00
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
2019-03-29 09:22:28 +00:00
ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n > 49.0" 2>&1`
2019-01-06 19:57:59 +00:00
else
2019-03-29 09:22:28 +00:00
ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n > 49.0" 2>&1`
2019-01-06 19:57:59 +00:00
fi
# Put the nasty error message in config.log where it belongs
echo "$ICU_PKG_ERRORS" >&5
2012-03-27 17:05:19 +00:00
2021-07-16 12:31:38 +00:00
HAVE_ICU=0
2019-01-06 19:57:59 +00:00
elif test $pkg_failed = untried; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
2021-07-16 12:31:38 +00:00
HAVE_ICU=0
2018-01-14 12:30:13 +00:00
else
2019-01-06 19:57:59 +00:00
ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
ICU_LIBS=$pkg_cv_ICU_LIBS
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
2019-01-06 19:57:59 +00:00
2024-07-16 13:20:38 +00:00
for ac_header in unicode/uloc.h unicode/ulocdata.h unicode/ucol.h unicode/ucurr.h unicode/uregex.h unicode/ucal.h unicode/unorm2.h unicode/unum.h unicode/udat.h unicode/udatpg.h unicode/ustring.h unicode/usearch.h unicode/ucnv.h unicode/utext.h unicode/ubrk.h unicode/utypes.h
2015-08-16 10:04:46 +00:00
do :
2024-07-16 13:20:38 +00:00
as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
2012-03-27 17:05:19 +00:00
cat >>confdefs.h <<_ACEOF
2024-07-16 13:20:38 +00:00
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
2012-03-27 17:05:19 +00:00
_ACEOF
2021-07-16 12:31:38 +00:00
HAVE_ICU=1
2012-03-27 17:05:19 +00:00
fi
2008-01-04 13:06:14 +00:00
2012-03-27 17:05:19 +00:00
done
2021-07-16 12:31:38 +00:00
fi
fi
if test $HAVE_ICU = 0; then
as_fn_error $? "No useable ICU installation found" "$LINENO" 5
fi
2019-01-06 19:57:59 +00:00
LIBS="$LIBS $ICU_LIBS"
2021-07-16 12:31:38 +00:00
2012-03-27 17:05:19 +00:00
fi
2010-06-09 15:03:37 +00:00
2012-03-27 17:05:19 +00:00
#--------------------------------------------------------------------
# Check for libdispatch
# See DEPENDENCIES POLICY at the start of this file.
#--------------------------------------------------------------------
2020-11-29 11:57:47 +00:00
2012-03-27 17:05:19 +00:00
HAVE_LIBDISPATCH=0
# Check whether --enable-libdispatch was given.
2024-07-16 13:20:38 +00:00
if test ${enable_libdispatch+y}
then :
2019-05-07 14:05:17 +00:00
enableval=$enable_libdispatch; enable_libdispatch=$enableval
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
enable_libdispatch=yes
2010-07-13 10:35:13 +00:00
fi
2012-03-27 17:05:19 +00:00
if test $enable_libdispatch = yes; then
2020-11-29 11:57:47 +00:00
# Check whether --with-dispatch-include was given.
2024-07-16 13:20:38 +00:00
if test ${with_dispatch_include+y}
then :
2020-11-29 11:57:47 +00:00
withval=$with_dispatch_include; dispatch_incdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2020-11-29 11:57:47 +00:00
dispatch_incdir="no"
fi
if test ${dispatch_incdir} != "no"; then
CPPFLAGS="$CPPFLAGS -I${dispatch_incdir}"
INCLUDE_FLAGS="$INCLUDE_FLAGS -I${dispatch_incdir}"
fi
# Check whether --with-dispatch-library was given.
2024-07-16 13:20:38 +00:00
if test ${with_dispatch_library+y}
then :
2020-11-29 11:57:47 +00:00
withval=$with_dispatch_library; dispatch_libdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2020-11-29 11:57:47 +00:00
dispatch_libdir="no"
fi
if test ${dispatch_libdir} != "no"; then
case "$target_os" in
netbsd*)
LDFLAGS="$LDFLAGS -L${dispatch_libdir} -Wl,-R${dispatch_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${dispatch_libdir} -L${dispatch_libdir}";;
*)
LDFLAGS="$LDFLAGS -Wl,-rpath,${dispatch_libdir} -L${dispatch_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-rpath,${dispatch_libdir} -L${dispatch_libdir}";;
esac
fi
2024-07-16 13:20:38 +00:00
for ac_header in dispatch/dispatch.h
2015-08-16 10:04:46 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "dispatch/dispatch.h" "ac_cv_header_dispatch_dispatch_h" "$ac_includes_default"
if test "x$ac_cv_header_dispatch_dispatch_h" = xyes
then :
printf "%s\n" "#define HAVE_DISPATCH_DISPATCH_H 1" >>confdefs.h
2012-03-27 17:05:19 +00:00
have_dispatch=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_dispatch=no
2010-06-25 10:33:55 +00:00
fi
2019-05-07 14:33:20 +00:00
done
2020-11-27 13:25:46 +00:00
if test "$have_dispatch" = "yes"; then
2019-05-07 14:33:20 +00:00
# check for private header which includes runloop integration functions in
# the Swift corelibs libdispatch release
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "dispatch/private.h" "ac_cv_header_dispatch_private_h" "$ac_includes_default"
if test "x$ac_cv_header_dispatch_private_h" = xyes
then :
printf "%s\n" "#define HAVE_DISPATCH_PRIVATE_H 1" >>confdefs.h
2019-05-07 14:33:20 +00:00
fi
2020-11-27 13:25:46 +00:00
else
2024-07-16 13:20:38 +00:00
for ac_header in dispatch.h
2020-11-27 13:25:46 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "dispatch.h" "ac_cv_header_dispatch_h" "$ac_includes_default"
if test "x$ac_cv_header_dispatch_h" = xyes
then :
printf "%s\n" "#define HAVE_DISPATCH_H 1" >>confdefs.h
2020-11-27 13:25:46 +00:00
have_dispatch=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2020-11-27 13:25:46 +00:00
have_dispatch=no
fi
2010-06-25 10:33:55 +00:00
done
2012-03-27 17:05:19 +00:00
fi
if test "$have_dispatch" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dispatch_queue_create in -ldispatch" >&5
printf %s "checking for dispatch_queue_create in -ldispatch... " >&6; }
if test ${ac_cv_lib_dispatch_dispatch_queue_create+y}
then :
printf %s "(cached) " >&6
else $as_nop
2010-06-25 10:33:55 +00:00
ac_check_lib_save_LIBS=$LIBS
2012-03-27 17:05:19 +00:00
LIBS="-ldispatch $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010-06-25 10:33:55 +00:00
/* 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. */
2012-03-27 17:05:19 +00:00
char dispatch_queue_create ();
2010-06-25 10:33:55 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2010-06-25 10:33:55 +00:00
{
2012-03-27 17:05:19 +00:00
return dispatch_queue_create ();
2010-06-25 10:33:55 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2012-03-27 17:05:19 +00:00
ac_cv_lib_dispatch_dispatch_queue_create=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_dispatch_dispatch_queue_create=no
2012-03-27 17:05:19 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2012-03-27 17:05:19 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dispatch_dispatch_queue_create" >&5
printf "%s\n" "$ac_cv_lib_dispatch_dispatch_queue_create" >&6; }
if test "x$ac_cv_lib_dispatch_dispatch_queue_create" = xyes
then :
2012-03-27 17:05:19 +00:00
have_dispatch=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2012-03-27 17:05:19 +00:00
have_dispatch=no
fi
2011-12-15 09:42:39 +00:00
2012-03-27 17:05:19 +00:00
if test "$have_dispatch" = "yes"; then
saveLIBS="$LIBS"
LIBS="-lobjc -ldispatch";
# This check is needed because libdispatch might be linked against a
# version of libBlocksRuntime that defines symbols conflicting with libobjc
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link libdispatch and libobjc at the same time" >&5
printf %s "checking whether we can link libdispatch and libobjc at the same time... " >&6; }
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012-03-27 17:05:19 +00:00
/* end confdefs.h. */
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2012-03-27 17:05:19 +00:00
{
2012-03-02 06:53:16 +00:00
2012-03-27 17:05:19 +00:00
;
return 0;
}
2004-03-28 04:42:11 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2012-03-27 17:05:19 +00:00
have_dispatch=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
have_dispatch=no
2006-12-27 14:11:14 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2012-03-27 17:05:19 +00:00
if test "$have_dispatch" = "yes"; then
LIBS="$saveLIBS -ldispatch";
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; };
2012-03-27 17:05:19 +00:00
HAVE_LIBDISPATCH=1;
else
LIBS="$saveLIBS";
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; };
2012-03-27 17:05:19 +00:00
fi
fi
2010-10-27 11:24:44 +00:00
else
2020-11-29 11:57:47 +00:00
HAVE_LIBDISPATCH=0;
# just ignore libdispatch if it's not there
2006-12-27 14:11:14 +00:00
fi
2004-03-28 04:42:11 +00:00
fi
2016-08-19 12:20:24 +00:00
HAVE_LIBDISPATCH_RUNLOOP=0
2016-04-04 08:17:08 +00:00
if test $HAVE_LIBDISPATCH = 1; then
2016-05-14 14:47:43 +00:00
# We check whether we have a variant of libdispatch that allows runloop
# integration
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "dispatch_main_queue_drain_np" "ac_cv_func_dispatch_main_queue_drain_np"
if test "x$ac_cv_func_dispatch_main_queue_drain_np" = xyes
then :
printf "%s\n" "#define HAVE_DISPATCH_MAIN_QUEUE_DRAIN_NP 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "dispatch_get_main_queue_handle_np" "ac_cv_func_dispatch_get_main_queue_handle_np"
if test "x$ac_cv_func_dispatch_get_main_queue_handle_np" = xyes
then :
printf "%s\n" "#define HAVE_DISPATCH_GET_MAIN_QUEUE_HANDLE_NP 1" >>confdefs.h
2016-04-04 08:17:08 +00:00
fi
2019-05-07 14:33:20 +00:00
if test "$ac_cv_func_dispatch_main_queue_drain_np" = "yes" && test "$ac_cv_func_dispatch_get_main_queue_handle_np" = "yes"; then
2016-08-19 12:20:24 +00:00
HAVE_LIBDISPATCH_RUNLOOP=1
fi
2019-05-07 14:33:20 +00:00
# Check for "_4CF" variants of runloop integration functions provided by the
# Swift corelibs libdispatch release
2024-07-16 13:20:38 +00:00
ac_fn_c_check_func "$LINENO" "_dispatch_main_queue_callback_4CF" "ac_cv_func__dispatch_main_queue_callback_4CF"
if test "x$ac_cv_func__dispatch_main_queue_callback_4CF" = xyes
then :
printf "%s\n" "#define HAVE__DISPATCH_MAIN_QUEUE_CALLBACK_4CF 1" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "_dispatch_get_main_queue_handle_4CF" "ac_cv_func__dispatch_get_main_queue_handle_4CF"
if test "x$ac_cv_func__dispatch_get_main_queue_handle_4CF" = xyes
then :
printf "%s\n" "#define HAVE__DISPATCH_GET_MAIN_QUEUE_HANDLE_4CF 1" >>confdefs.h
2019-05-07 14:33:20 +00:00
fi
if test "$ac_cv_func__dispatch_main_queue_callback_4CF" = "yes" && test "$ac_cv_func__dispatch_get_main_queue_handle_4CF" = "yes"; then
2016-08-19 12:20:24 +00:00
HAVE_LIBDISPATCH_RUNLOOP=1
fi
2016-04-04 08:17:08 +00:00
fi
2012-03-27 17:05:19 +00:00
2016-08-19 12:20:24 +00:00
2020-11-29 11:57:47 +00:00
#--------------------------------------------------------------------
# Check for libcurl
# See DEPENDENCIES POLICY at the start of this file.
#--------------------------------------------------------------------
2022-08-23 16:55:40 +00:00
CURL_CONFIG="curl-config"
# Check whether --with-curl was given.
2024-07-16 13:20:38 +00:00
if test ${with_curl+y}
then :
2022-08-23 16:55:40 +00:00
withval=$with_curl;
fi
if test "$with_curl" != ""; then
CURL_CONFIG="$with_curl/bin/curl-config"
fi
2020-11-29 11:57:47 +00:00
HAVE_LIBCURL=0
2022-08-24 08:08:44 +00:00
SKIP_CURL_CONFIG=0
2020-11-29 11:57:47 +00:00
curl_all=no
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
printf %s "checking for libcurl... " >&6; }
2022-08-23 10:53:54 +00:00
2022-08-24 08:08:44 +00:00
case "$target_os" in
2022-08-24 10:28:58 +00:00
windows) SKIP_CURL_CONFIG=1;;
2022-08-24 08:08:44 +00:00
esac
2022-08-24 10:28:58 +00:00
# When compiling libs-base in an MSYS2 environment on Windows MSVC, compilation may fail:
# Curl is preinstalled on MSYS2 and bundles the curl-config script. The MSYS2 curl library
# and a different (MSVC) curl library might interfere and produce an incorrect configuration.
#
# Skip the curl-config check on Windows.
2022-08-24 08:08:44 +00:00
if eval $CURL_CONFIG --version 2>/dev/null >/dev/null && test "$SKIP_CURL_CONFIG" == "0"; then
2022-08-23 16:55:40 +00:00
curl_ver=`$CURL_CONFIG --version | sed -e "s/libcurl //g"`
curl_maj=`echo $curl_ver | sed -e "s/^\(.*\)\.\(.*\)\.\(.*\)$/\1/"`
curl_min=`echo $curl_ver | sed -e "s/^\(.*\)\.\(.*\)\.\(.*\)$/\2/"`
if test $curl_maj -lt 7 -o \( $curl_maj -eq 7 -a $curl_min -lt 66 \); then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED (version too old to use" >&5
printf "%s\n" "FAILED (version too old to use" >&6; }
2022-08-23 16:55:40 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ... version $curl_ver" >&5
printf "%s\n" "yes ... version $curl_ver" >&6; }
for ac_header in curl/curl.h
2020-12-15 15:18:57 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
if test "x$ac_cv_header_curl_curl_h" = xyes
then :
printf "%s\n" "#define HAVE_CURL_CURL_H 1" >>confdefs.h
2020-12-15 15:18:57 +00:00
curl_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2020-12-15 15:18:57 +00:00
curl_ok=no
fi
done
if test "$curl_ok" = yes; then
2022-08-23 16:55:40 +00:00
HAVE_LIBCURL=1
CURLCFLAGS=`$CURL_CONFIG --cflags`
CURLLIBS=`$CURL_CONFIG --libs`
CFLAGS="$CFLAGS $CURLCFLAGS"
LIBS="$LIBS $CURLLIBS"
2020-12-15 15:18:57 +00:00
curl_all=yes
2020-11-29 11:57:47 +00:00
fi
2022-08-23 16:55:40 +00:00
fi
else
if test -n "$PKG_CONFIG"; then
if pkg-config --exists libcurl; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ... via pkg-config" >&5
printf "%s\n" "yes ... via pkg-config" >&6; }
2022-08-23 16:55:40 +00:00
if $PKG_CONFIG --atleast-version 2.66.0 libcurl; then
2024-07-16 13:20:38 +00:00
for ac_header in curl/curl.h
2022-08-23 16:55:40 +00:00
do :
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
if test "x$ac_cv_header_curl_curl_h" = xyes
then :
printf "%s\n" "#define HAVE_CURL_CURL_H 1" >>confdefs.h
2022-08-23 16:55:40 +00:00
curl_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2022-08-23 16:55:40 +00:00
curl_ok=no
fi
done
if test "$curl_ok" = yes; then
2022-08-24 08:08:44 +00:00
HAVE_LIBCURL=1
CURLCFLAGS=`$PKG_CONFIG --cflags libcurl`
CURLLIBS=`$PKG_CONFIG --libs libcurl`
CFLAGS="$CFLAGS $CURLCFLAGS"
LIBS="$LIBS $CURLLIBS"
2022-08-23 16:55:40 +00:00
curl_all=yes
fi
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED (version too old to use" >&5
printf "%s\n" "FAILED (version too old to use" >&6; }
2022-08-23 16:55:40 +00:00
curl_all=no
fi
2022-08-24 08:08:44 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED (libcurl not found via pkg-config)" >&5
printf "%s\n" "FAILED (libcurl not found via pkg-config)" >&6; }
2022-08-24 08:08:44 +00:00
curl_all=no
2022-08-23 10:53:54 +00:00
fi
2022-08-23 16:55:40 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FAILED (curl-config and pkg-config not found)" >&5
printf "%s\n" "FAILED (curl-config and pkg-config not found)" >&6; }
2020-11-29 11:57:47 +00:00
fi
fi
#--------------------------------------------------------------------
# Check dependencies of NSURLSession API
#--------------------------------------------------------------------
nsurlsessiondefault=no
if test "$OBJC_RUNTIME_LIB" = "ng" -a $HAVE_BLOCKS = 1 -a $HAVE_LIBDISPATCH = 1 -a $HAVE_LIBCURL = 1; then
nsurlsessiondefault=yes
fi
GS_HAVE_NSURLSESSION=0
# Check whether --enable-nsurlsession was given.
2024-07-16 13:20:38 +00:00
if test ${enable_nsurlsession+y}
then :
2020-11-29 11:57:47 +00:00
enableval=$enable_nsurlsession;
2024-07-16 13:20:38 +00:00
else $as_nop
2020-11-29 11:57:47 +00:00
enable_nsurlsession=$nsurlsessiondefault
fi
if test $enable_nsurlsession = yes; then
if test "$OBJC_RUNTIME_LIB" != "ng"; then
as_fn_error $? "Missing ng runtime (needed for NSURLSession). To build without NSURLSession support, please run configure again with the --disable-nsurlsession option." "$LINENO" 5
fi
if test $HAVE_BLOCKS = 0; then
as_fn_error $? "Missing blocks support (needed for NSURLSession). To build without NSURLSession support, please run configure again with the --disable-nsurlsession option." "$LINENO" 5
fi
if test $HAVE_LIBDISPATCH = 0; then
as_fn_error $? "Missing libdispatch (needed for NSURLSession). To build without NSURLSession support, please run configure again with the --disable-nsurlsession option." "$LINENO" 5
fi
# Check for dispatch_queue_create_with_target needed for NSURLSession
ac_fn_c_check_func "$LINENO" "dispatch_queue_create_with_target" "ac_cv_func_dispatch_queue_create_with_target"
2024-07-16 13:20:38 +00:00
if test "x$ac_cv_func_dispatch_queue_create_with_target" = xyes
then :
printf "%s\n" "#define HAVE_DISPATCH_QUEUE_CREATE_WITH_TARGET 1" >>confdefs.h
2020-11-29 11:57:47 +00:00
fi
if test $HAVE_LIBCURL = 0; then
as_fn_error $? "Missing libcurl (needed for NSURLSession). To build without NSURLSession support, please run configure again with the --disable-nsurlsession option." "$LINENO" 5
fi
GS_HAVE_NSURLSESSION=1
fi
2000-11-18 08:54:32 +00:00
#--------------------------------------------------------------------
# Check GMP for NSDecimal
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2010-06-12 07:19:26 +00:00
# Check whether --with-gmp-include was given.
2024-07-16 13:20:38 +00:00
if test ${with_gmp_include+y}
then :
2010-06-12 07:19:26 +00:00
withval=$with_gmp_include; gmp_incdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2000-11-18 08:54:32 +00:00
gmp_incdir="no"
2010-06-12 07:19:26 +00:00
fi
2010-01-24 17:13:03 +00:00
2010-02-24 10:23:47 +00:00
2010-06-12 07:19:26 +00:00
# Check whether --with-gmp-library was given.
2024-07-16 13:20:38 +00:00
if test ${with_gmp_library+y}
then :
2010-06-12 07:19:26 +00:00
withval=$with_gmp_library; gmp_libdir="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2000-11-18 08:54:32 +00:00
gmp_libdir="no"
2010-06-12 07:19:26 +00:00
fi
2000-11-18 08:54:32 +00:00
libs_temp=$LIBS
if test "$gmp_incdir" != "no"; then
CPPFLAGS="$CPPFLAGS -I$gmp_incdir"
2002-11-27 17:15:39 +00:00
INCLUDE_FLAGS="$INCLUDE_FLAGS -I$gmp_incdir"
2000-11-18 08:54:32 +00:00
fi
if test "$gmp_libdir" != "no"; then
2006-01-18 08:02:51 +00:00
case "$target_os" in
netbsd*)
LDFLAGS="$LDFLAGS -L${gmp_libdir} -Wl,-R${gmp_libdir}"
2006-01-18 22:20:13 +00:00
LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${gmp_libdir} -L${gmp_libdir}";;
2006-01-18 08:02:51 +00:00
*)
2020-11-29 11:57:47 +00:00
LDFLAGS="$LDFLAGS -Wl,-rpath,${gmp_libdir} -L${gmp_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -Wl,-rpath,${gmp_libdir} -L${gmp_libdir}";;
2006-01-18 08:02:51 +00:00
esac
2000-11-18 08:54:32 +00:00
fi
2002-05-22 14:37:21 +00:00
USE_GMP=0
2024-07-16 13:20:38 +00:00
ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
if test "x$ac_cv_header_gmp_h" = xyes
then :
printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h
2002-05-02 15:17:54 +00:00
2000-11-18 08:54:32 +00:00
fi
2002-05-02 15:17:54 +00:00
2001-06-11 15:38:22 +00:00
if test $ac_cv_header_gmp_h = yes; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpf_abs in -lgmp" >&5
printf %s "checking for mpf_abs in -lgmp... " >&6; }
if test ${ac_cv_lib_gmp_mpf_abs+y}
then :
printf %s "(cached) " >&6
else $as_nop
2002-05-02 15:17:54 +00:00
ac_check_lib_save_LIBS=$LIBS
2000-11-18 08:54:32 +00:00
LIBS="-lgmp $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003-09-22 03:00:21 +00:00
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
2010-06-12 07:19:26 +00: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-05-02 15:17:54 +00:00
char mpf_abs ();
int
2024-07-16 13:20:38 +00:00
main (void)
2002-05-02 15:17:54 +00:00
{
2010-06-12 07:19:26 +00:00
return mpf_abs ();
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2002-05-02 15:17:54 +00:00
ac_cv_lib_gmp_mpf_abs=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_gmp_mpf_abs=no
2002-05-02 15:17:54 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_mpf_abs" >&5
printf "%s\n" "$ac_cv_lib_gmp_mpf_abs" >&6; }
if test "x$ac_cv_lib_gmp_mpf_abs" = xyes
then :
2001-01-25 17:38:07 +00:00
gmp_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2002-05-02 15:17:54 +00:00
gmp_ok=no
2001-01-25 17:38:07 +00:00
fi
if test "$gmp_ok" = no; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpf_abs in -lgmp" >&5
printf %s "checking for __gmpf_abs in -lgmp... " >&6; }
if test ${ac_cv_lib_gmp___gmpf_abs+y}
then :
printf %s "(cached) " >&6
else $as_nop
2002-05-02 15:17:54 +00:00
ac_check_lib_save_LIBS=$LIBS
2001-01-25 17:38:07 +00:00
LIBS="-lgmp $LIBS"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003-09-22 03:00:21 +00:00
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
2010-06-12 07:19:26 +00: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. */
2011-10-15 07:59:19 +00:00
char __gmpf_abs ();
2012-03-21 09:06:40 +00:00
int
2024-07-16 13:20:38 +00:00
main (void)
2012-03-21 09:06:40 +00:00
{
return __gmpf_abs ();
;
return 0;
}
2012-11-02 13:44:30 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2015-08-16 10:04:46 +00:00
ac_cv_lib_gmp___gmpf_abs=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
ac_cv_lib_gmp___gmpf_abs=no
2002-05-02 15:17:54 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpf_abs" >&5
printf "%s\n" "$ac_cv_lib_gmp___gmpf_abs" >&6; }
if test "x$ac_cv_lib_gmp___gmpf_abs" = xyes
then :
2000-11-18 08:54:32 +00:00
gmp_ok=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2002-05-02 15:17:54 +00:00
gmp_ok=no
2000-11-18 08:54:32 +00:00
fi
2001-01-25 17:38:07 +00:00
fi
2000-11-18 08:54:32 +00:00
if test "$gmp_ok" = yes; then
2004-10-26 19:08:17 +00:00
LIBS="-lgmp $LIBS"
2002-05-22 14:37:21 +00:00
USE_GMP=1
2000-11-18 08:54:32 +00:00
fi
fi
2012-09-19 13:31:09 +00:00
2004-02-18 04:03:24 +00:00
#--------------------------------------------------------------------
# Check whether nl_langinfo(CODESET) is supported, needed by Unicode.m.
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
printf %s "checking for nl_langinfo and CODESET... " >&6; }
if test ${am_cv_langinfo_codeset+y}
then :
printf %s "(cached) " >&6
else $as_nop
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004-02-18 04:03:24 +00:00
/* end confdefs.h. */
#include <langinfo.h>
int
2024-07-16 13:20:38 +00:00
main (void)
2004-02-18 04:03:24 +00:00
{
char* cs = nl_langinfo(CODESET);
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_link "$LINENO"
then :
2004-02-18 04:03:24 +00:00
am_cv_langinfo_codeset=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
am_cv_langinfo_codeset=no
2004-02-18 04:03:24 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015-08-16 10:04:46 +00:00
conftest$ac_exeext conftest.$ac_ext
2004-02-18 04:03:24 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
2004-02-18 04:03:24 +00:00
if test $am_cv_langinfo_codeset = yes; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
2004-02-18 04:03:24 +00:00
fi
2000-11-18 08:54:32 +00:00
1999-07-22 14:17:27 +00:00
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
2010-03-11 08:08:08 +00:00
#--------------------------------------------------------------------
2010-04-12 17:44:20 +00:00
# Check for -Wdeclaration-after-statement
2010-03-11 08:08:08 +00:00
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
printf %s "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
2010-04-12 17:44:20 +00:00
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
2015-08-16 10:04:46 +00:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010-04-07 07:26:44 +00:00
/* end confdefs.h. */
int
2024-07-16 13:20:38 +00:00
main (void)
2010-04-07 07:26:44 +00:00
{
;
return 0;
}
_ACEOF
2024-07-16 13:20:38 +00:00
if ac_fn_c_try_compile "$LINENO"
then :
2010-04-12 17:44:20 +00:00
HAS_W_DECL_AFTER_STATEMENT=yes
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
HAS_W_DECL_AFTER_STATEMENT=no
2010-04-07 07:26:44 +00:00
fi
2024-07-16 13:20:38 +00:00
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2010-04-12 17:44:20 +00:00
CFLAGS="$saved_CFLAGS"
2010-04-07 07:26:44 +00:00
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_W_DECL_AFTER_STATEMENT" >&5
printf "%s\n" "$HAS_W_DECL_AFTER_STATEMENT" >&6; }
2010-04-07 07:26:44 +00:00
2010-04-12 17:44:20 +00:00
if test x"$HAS_W_DECL_AFTER_STATEMENT" = x"yes"; then
2010-04-07 07:26:44 +00:00
WARN_FLAGS="-Wall -Wdeclaration-after-statement"
2010-04-12 17:44:20 +00:00
else
WARN_FLAGS=-Wall
2010-04-07 07:26:44 +00:00
fi
2010-03-11 08:08:08 +00:00
2011-06-09 17:08:41 +00:00
#--------------------------------------------------------------------
# Check if we should use an alternative gdomap port
#--------------------------------------------------------------------
# Check whether --with-gdomap-port was given.
2024-07-16 13:20:38 +00:00
if test ${with_gdomap_port+y}
then :
2011-06-09 17:08:41 +00:00
withval=$with_gdomap_port; gdomap_port="$withval"
2024-07-16 13:20:38 +00:00
else $as_nop
2011-06-09 17:08:41 +00:00
gdomap_port="no"
fi
if test "$gdomap_port" = "no"; then
GNUSTEP_GDOMAP_PORT_OVERRIDE="$gdomap_port"
else
GNUSTEP_GDOMAP_PORT_OVERRIDE="$gdomap_port"
fi
2010-06-02 10:17:37 +00:00
#--------------------------------------------------------------------
# Check if we should install gdomap as setuid
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should install gdomap as setuid" >&5
printf %s "checking if we should install gdomap as setuid... " >&6; }
2010-06-12 07:19:26 +00:00
# Check whether --enable-setuid-gdomap was given.
2024-07-16 13:20:38 +00:00
if test ${enable_setuid_gdomap+y}
then :
2010-06-12 07:19:26 +00:00
enableval=$enable_setuid_gdomap; ac_cv_setuid_gdomap=$enableval
2024-07-16 13:20:38 +00:00
else $as_nop
2010-06-10 09:51:40 +00:00
ac_cv_setuid_gdomap="no"
2010-06-12 07:19:26 +00:00
fi
2010-06-02 10:17:37 +00:00
if test "$ac_cv_setuid_gdomap" = "yes"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; };
2010-06-02 10:17:37 +00:00
GNUSTEP_INSTALL_GDOMAP_AS_SETUID="yes"
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; };
2010-06-02 10:17:37 +00:00
GNUSTEP_INSTALL_GDOMAP_AS_SETUID="no"
fi
2010-04-12 17:44:20 +00:00
2000-09-13 14:19:43 +00:00
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of gnustep-base we are compiling" >&5
printf %s "checking for the version of gnustep-base we are compiling... " >&6; }
2000-09-13 14:19:43 +00:00
if test -f "Version"; then
2001-02-27 02:58:57 +00:00
. ./Version
2000-09-13 14:19:43 +00:00
fi
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
printf "%s\n" "$VERSION" >&6; }
2000-09-13 14:19:43 +00:00
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# Write the Makefiles
#--------------------------------------------------------------------
2024-03-27 12:30:41 +00:00
ac_config_files="$ac_config_files config.mak base.make Source/gnustep-base.pc Headers/GNUstepBase/GSConfig.h"
2002-05-02 15:17:54 +00:00
cat >confcache <<\_ACEOF
1998-02-09 19:06:40 +00:00
# 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-05-02 15:17:54 +00: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.
1998-02-09 19:06:40 +00:00
#
2002-05-02 15:17:54 +00:00
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
1998-02-09 19:06:40 +00:00
#
2003-09-22 03:00:21 +00:00
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2002-05-02 15:17:54 +00:00
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
_ACEOF
1998-02-09 19:06:40 +00:00
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
2010-06-12 07:19:26 +00:00
# So, we kill variables containing newlines.
1998-02-09 19:06:40 +00: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.
2010-06-12 07:19:26 +00: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 #(
2024-07-16 13:20:38 +00:00
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010-06-12 07:19:26 +00:00
esac
case $ac_var in #(
_ | IFS | as_nl) ;; #(
2012-09-20 09:32:00 +00:00
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015-08-16 10:04:46 +00:00
*) { eval $ac_var=; unset $ac_var;} ;;
2010-06-12 07:19:26 +00:00
esac ;;
esac
done
2007-12-19 14:39:44 +00:00
(set) 2>&1 |
2010-06-12 07:19:26 +00:00
case $as_nl`(ac_space=' '; set) 2>&1` in #(
*${as_nl}ac_space=\ *)
2015-08-16 10:04:46 +00:00
# `set' does not quote correctly, so add quotes: double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \.
2002-05-02 15:17:54 +00:00
sed -n \
2008-12-08 05:03:13 +00:00
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2010-06-12 07:19:26 +00:00
;; #(
2002-05-02 15:17:54 +00:00
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
2010-06-12 07:19:26 +00:00
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002-05-02 15:17:54 +00:00
;;
2010-06-12 07:19:26 +00:00
esac |
sort
) |
2002-05-02 15:17:54 +00:00
sed '
2010-06-12 07:19:26 +00:00
/^ac_cv_env_/b end
2002-05-02 15:17:54 +00:00
t clear
2010-06-12 07:19:26 +00:00
:clear
2024-07-16 13:20:38 +00:00
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
2002-05-02 15:17:54 +00:00
t end
2010-06-12 07:19:26 +00:00
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
:end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
if test -w "$cache_file"; then
2017-12-20 13:25:41 +00:00
if test "x$cache_file" != "x/dev/null"; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
2017-12-20 13:25:41 +00:00
if test ! -f "$cache_file" || test -h "$cache_file"; then
cat confcache >"$cache_file"
else
case $cache_file in #(
*/* | ?:*)
mv -f confcache "$cache_file"$$ &&
mv -f "$cache_file"$$ "$cache_file" ;; #(
*)
mv -f confcache "$cache_file" ;;
esac
fi
fi
1998-02-09 19:06:40 +00:00
else
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1998-02-09 19:06:40 +00:00
fi
fi
rm -f confcache
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-22 03:00:21 +00:00
ac_libobjs=
ac_ltlibobjs=
2017-12-20 13:25:41 +00:00
U=
2003-09-22 03:00:21 +00:00
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
2010-06-12 07:19:26 +00:00
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2024-07-16 13:20:38 +00:00
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
2010-06-12 07:19:26 +00:00
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
# will be set to the directory where LIBOBJS objects are built.
2015-08-16 10:04:46 +00:00
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2003-09-22 03:00:21 +00:00
done
LIBOBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
1998-02-09 19:06:40 +00:00
2012-09-20 09:32:00 +00:00
2017-12-20 13:25:41 +00:00
: "${CONFIG_STATUS=./config.status}"
2012-09-20 09:32:00 +00:00
ac_write_fail=0
2002-05-02 15:17:54 +00:00
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
2015-08-16 10:04:46 +00:00
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2002-05-02 15:17:54 +00:00
#! $SHELL
# Generated by $as_me.
1998-02-09 19:06:40 +00:00
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
2002-05-02 15:17:54 +00:00
# configure, is in config.log if it exists.
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
debug=false
2003-09-22 03:00:21 +00:00
ac_cs_recheck=false
ac_cs_silent=false
2015-05-13 10:57:56 +00:00
2015-08-16 10:04:46 +00:00
SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
2012-03-27 17:05:19 +00:00
2012-09-20 09:32:00 +00:00
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
2024-07-16 13:20:38 +00:00
as_nop=:
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
then :
2002-05-02 15:17:54 +00:00
emulate sh
NULLCMD=:
2012-09-20 09:32:00 +00:00
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2003-09-22 03:00:21 +00:00
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2010-06-12 07:19:26 +00:00
setopt NO_GLOB_SUBST
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
case `(set -o) 2>/dev/null` in #(
*posix*) :
set -o posix ;; #(
*) :
;;
2012-09-20 09:32:00 +00:00
esac
2010-06-12 07:19:26 +00:00
fi
2012-09-20 09:32:00 +00:00
2024-07-16 13:20:38 +00:00
# Reset variables that may have inherited troublesome values from
# the environment.
# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
2012-09-20 09:32:00 +00:00
as_nl='
'
export as_nl
2024-07-16 13:20:38 +00:00
IFS=" "" $as_nl"
PS1='$ '
PS2='> '
PS4='+ '
# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
2012-09-20 09:32:00 +00:00
# The user is always right.
2024-07-16 13:20:38 +00:00
if ${PATH_SEPARATOR+false} :; then
2012-09-20 09:32:00 +00:00
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=';'
}
2012-03-27 17:05:19 +00:00
fi
2003-09-22 03:00:21 +00:00
2010-06-12 07:19:26 +00:00
# Find who we are. Look in the path if we contain no directory separator.
2017-12-20 13:25:41 +00:00
as_myself=
2015-08-16 10:04:46 +00:00
case $0 in #((
2010-06-12 07:19:26 +00:00
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
2024-07-16 13:20:38 +00:00
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
2015-08-16 10:04:46 +00:00
done
2010-06-12 07:19:26 +00:00
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
2011-02-06 14:41:01 +00:00
if test ! -f "$as_myself"; then
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2015-08-16 10:04:46 +00:00
exit 1
2011-02-06 14:41:01 +00:00
fi
2015-08-16 10:04:46 +00:00
2017-12-20 13:25:41 +00:00
# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
2015-08-16 10:04:46 +00:00
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2017-12-20 13:25:41 +00:00
# script with STATUS, using 1 if that was 0.
2015-08-16 10:04:46 +00:00
as_fn_error ()
{
2017-12-20 13:25:41 +00:00
as_status=$1; test $as_status -eq 0 && as_status=1
if test "$4"; then
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2015-08-16 10:04:46 +00:00
fi
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me: error: $2" >&2
2015-08-16 10:04:46 +00:00
as_fn_exit $as_status
} # as_fn_error
2024-07-16 13:20:38 +00:00
2015-08-16 10:04:46 +00:00
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
{ eval $1=; unset $1;}
}
as_unset=as_fn_unset
2024-07-16 13:20:38 +00:00
2015-08-16 10:04:46 +00:00
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
2024-07-16 13:20:38 +00:00
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
then :
2015-08-16 10:04:46 +00:00
eval 'as_fn_append ()
{
eval $1+=\$2
}'
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_fn_append ()
{
eval $1=\$$1\$2
}
fi # as_fn_append
# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
2024-07-16 13:20:38 +00:00
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
then :
2015-08-16 10:04:46 +00:00
eval 'as_fn_arith ()
{
as_val=$(( $* ))
}'
2024-07-16 13:20:38 +00:00
else $as_nop
2015-08-16 10:04:46 +00:00
as_fn_arith ()
{
as_val=`expr "$@" || test $? -eq 1`
}
fi # as_fn_arith
2010-06-12 07:19:26 +00:00
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
2003-09-22 03:00:21 +00:00
as_expr=expr
else
as_expr=false
fi
2010-06-12 07:19:26 +00:00
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2003-09-22 03:00:21 +00:00
as_basename=basename
else
as_basename=false
fi
2002-05-02 15:17:54 +00:00
2015-08-16 10:04:46 +00:00
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
2002-05-02 15:17:54 +00:00
2010-06-12 07:19:26 +00:00
as_me=`$as_basename -- "$0" ||
2002-05-02 15:17:54 +00:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
2010-06-12 07:19:26 +00:00
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2024-07-16 13:20:38 +00:00
printf "%s\n" X/"$0" |
2010-06-12 07:19:26 +00:00
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2010-04-12 17:44:20 +00:00
2015-08-16 10:04:46 +00:00
# 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-10-04 11:09:48 +00:00
2024-07-16 13:20:38 +00:00
# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
2010-06-12 07:19:26 +00:00
ECHO_C= ECHO_N= ECHO_T=
2015-08-16 10:04:46 +00:00
case `echo -n x` in #(((((
2010-06-12 07:19:26 +00:00
-n*)
2015-08-16 10:04:46 +00:00
case `echo 'xy\c'` in
2010-06-12 07:19:26 +00:00
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
2015-08-16 10:04:46 +00:00
xy) ECHO_C='\c';;
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
ECHO_T=' ';;
2010-06-12 07:19:26 +00:00
esac;;
*)
ECHO_N='-n';;
esac
2012-03-27 17:05:19 +00:00
2024-07-16 13:20:38 +00:00
# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n. New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'
2002-05-02 15:17:54 +00:00
rm -f conf$$ conf$$.exe conf$$.file
2010-06-12 07:19:26 +00:00
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
2012-09-20 09:32:00 +00: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.
2017-12-20 13:25:41 +00:00
# In both cases, we have to default to `cp -pR'.
2012-09-20 09:32:00 +00:00
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2017-12-20 13:25:41 +00:00
as_ln_s='cp -pR'
2012-09-20 09:32:00 +00:00
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
2017-12-20 13:25:41 +00:00
as_ln_s='cp -pR'
2012-09-20 09:32:00 +00:00
fi
2002-05-02 15:17:54 +00:00
else
2017-12-20 13:25:41 +00:00
as_ln_s='cp -pR'
2002-05-02 15:17:54 +00:00
fi
2010-06-12 07:19:26 +00:00
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
2002-05-02 15:17:54 +00:00
2015-08-16 10:04:46 +00:00
# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{
case $as_dir in #(
-*) as_dir=./$as_dir;;
esac
test -d "$as_dir" || eval $as_mkdir_p || {
as_dirs=
while :; do
case $as_dir in #(
2024-07-16 13:20:38 +00:00
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2015-08-16 10:04:46 +00:00
*) as_qdir=$as_dir;;
esac
as_dirs="'$as_qdir' $as_dirs"
as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2024-07-16 13:20:38 +00:00
printf "%s\n" X"$as_dir" |
2015-08-16 10:04:46 +00: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
done
test -z "$as_dirs" || eval "mkdir $as_dirs"
2017-12-20 13:25:41 +00:00
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2015-08-16 10:04:46 +00:00
} # as_fn_mkdir_p
2003-09-22 03:00:21 +00:00
if mkdir -p . 2>/dev/null; then
2015-08-16 10:04:46 +00:00
as_mkdir_p='mkdir -p "$as_dir"'
2003-09-22 03:00:21 +00:00
else
2008-12-08 05:03:13 +00:00
test -d ./-p && rmdir ./-p
2003-09-22 03:00:21 +00:00
as_mkdir_p=false
fi
2010-06-12 07:19:26 +00:00
2017-12-20 13:25:41 +00:00
# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p
2002-05-02 15:17:54 +00:00
# Sed expression to map a string onto a valid CPP name.
2008-12-08 05:03:13 +00:00
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2002-05-02 15:17:54 +00:00
# Sed expression to map a string onto a valid variable name.
2008-12-08 05:03:13 +00:00
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2008-11-28 15:38:48 +00:00
2002-05-02 15:17:54 +00:00
exec 6>&1
2015-08-16 10:04:46 +00:00
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2002-05-02 15:17:54 +00:00
2015-08-16 10:04:46 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
2002-05-02 15:17:54 +00:00
# report actual input values of CONFIG_FILES etc. instead of their
2010-06-12 07:19:26 +00:00
# values after options handling.
ac_log="
2002-05-02 15:17:54 +00:00
This file was extended by $as_me, which was
2024-07-16 13:20:38 +00:00
generated by GNU Autoconf 2.71. Invocation command line was
2002-05-02 15:17:54 +00:00
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
2010-06-12 07:19:26 +00:00
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"
2002-05-02 15:17:54 +00:00
_ACEOF
2012-09-20 09:32:00 +00: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
2010-06-12 07:19:26 +00:00
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
2009-10-04 11:09:48 +00:00
2010-06-12 07:19:26 +00:00
_ACEOF
2010-04-12 17:44:20 +00:00
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2002-05-02 15:17:54 +00:00
ac_cs_usage="\
2015-08-16 10:04:46 +00:00
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration. Unless the files
and actions are specified as TAGs, all are instantiated by default.
2002-05-02 15:17:54 +00:00
2015-08-16 10:04:46 +00:00
Usage: $0 [OPTION]... [TAG]...
2002-05-02 15:17:54 +00:00
-h, --help print this help, then exit
2012-09-20 09:32:00 +00:00
-V, --version print version number and configuration settings, then exit
2015-08-16 10:04:46 +00:00
--config print configuration, then exit
2012-09-20 09:32:00 +00:00
-q, --quiet, --silent
do not print progress messages
2002-05-02 15:17:54 +00:00
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
2012-09-20 09:32:00 +00:00
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
2002-05-02 15:17:54 +00:00
Configuration files:
$config_files
Configuration headers:
$config_headers
2015-08-16 10:04:46 +00:00
Report bugs to the package provider."
2010-04-12 17:44:20 +00:00
2010-06-12 07:19:26 +00:00
_ACEOF
2024-07-16 13:20:38 +00:00
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2024-07-16 13:20:38 +00:00
ac_cs_config='$ac_cs_config_escaped'
2002-05-02 15:17:54 +00:00
ac_cs_version="\\
config.status
2024-07-16 13:20:38 +00:00
configured by $0, generated by GNU Autoconf 2.71,
2015-08-16 10:04:46 +00:00
with options \\"\$ac_cs_config\\"
2002-05-02 15:17:54 +00:00
2024-07-16 13:20:38 +00:00
Copyright (C) 2021 Free Software Foundation, Inc.
2002-05-02 15:17:54 +00:00
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
2010-06-12 07:19:26 +00:00
ac_pwd='$ac_pwd'
srcdir='$srcdir'
2012-09-20 09:32:00 +00:00
test -n "\$AWK" || AWK=awk
2002-05-02 15:17:54 +00:00
_ACEOF
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
2002-05-02 15:17:54 +00:00
ac_need_defaults=:
while test $# != 0
do
case $1 in
2017-12-20 13:25:41 +00:00
--*=?*)
2010-06-12 07:19:26 +00:00
ac_option=`expr "X$1" : 'X\([^=]*\)='`
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2003-09-22 03:00:21 +00:00
ac_shift=:
;;
2017-12-20 13:25:41 +00:00
--*=)
ac_option=`expr "X$1" : 'X\([^=]*\)='`
ac_optarg=
ac_shift=:
;;
2010-06-12 07:19:26 +00:00
*)
2003-09-22 03:00:21 +00:00
ac_option=$1
ac_optarg=$2
ac_shift=shift
2002-05-02 15:17:54 +00:00
;;
esac
2003-09-22 03:00:21 +00:00
case $ac_option in
2002-05-02 15:17:54 +00:00
# Handling of the options.
2003-09-22 03:00:21 +00:00
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
2010-06-12 07:19:26 +00:00
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_cs_version"; exit ;;
2015-08-16 10:04:46 +00:00
--config | --confi | --conf | --con | --co | --c )
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_cs_config"; exit ;;
2010-06-12 07:19:26 +00:00
--debug | --debu | --deb | --de | --d | -d )
2002-05-02 15:17:54 +00:00
debug=: ;;
--file | --fil | --fi | --f )
2003-09-22 03:00:21 +00:00
$ac_shift
2012-09-20 09:32:00 +00:00
case $ac_optarg in
2024-07-16 13:20:38 +00:00
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2017-12-20 13:25:41 +00:00
'') as_fn_error $? "missing file argument" ;;
2012-09-20 09:32:00 +00:00
esac
2015-08-16 10:04:46 +00:00
as_fn_append CONFIG_FILES " '$ac_optarg'"
2002-05-02 15:17:54 +00:00
ac_need_defaults=false;;
--header | --heade | --head | --hea )
2003-09-22 03:00:21 +00:00
$ac_shift
2012-09-20 09:32:00 +00:00
case $ac_optarg in
2024-07-16 13:20:38 +00:00
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2012-09-20 09:32:00 +00:00
esac
2015-08-16 10:04:46 +00:00
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
2002-05-02 15:17:54 +00:00
ac_need_defaults=false;;
2010-06-12 07:19:26 +00:00
--he | --h)
# Conflict between --help and --header
2017-12-20 13:25:41 +00:00
as_fn_error $? "ambiguous option: \`$1'
2015-08-16 10:04:46 +00:00
Try \`$0 --help' for more information.";;
2010-06-12 07:19:26 +00:00
--help | --hel | -h )
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_cs_usage"; exit ;;
2003-09-22 03:00:21 +00:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;;
2002-05-02 15:17:54 +00:00
# This is an error.
2017-12-20 13:25:41 +00:00
-*) as_fn_error $? "unrecognized option: \`$1'
2015-08-16 10:04:46 +00:00
Try \`$0 --help' for more information." ;;
2002-05-02 15:17:54 +00:00
2015-08-16 10:04:46 +00:00
*) as_fn_append ac_config_targets " $1"
2010-06-12 07:19:26 +00:00
ac_need_defaults=false ;;
2002-05-02 15:17:54 +00:00
esac
shift
done
2003-09-22 03:00:21 +00: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
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2003-09-22 03:00:21 +00:00
if \$ac_cs_recheck; then
2017-12-20 13:25:41 +00:00
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2012-09-20 09:32:00 +00:00
shift
2024-07-16 13:20:38 +00:00
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
2012-09-20 09:32:00 +00:00
CONFIG_SHELL='$SHELL'
2010-06-12 07:19:26 +00:00
export CONFIG_SHELL
2012-09-20 09:32:00 +00:00
exec "\$@"
2003-09-22 03:00:21 +00:00
fi
2002-05-02 15:17:54 +00:00
_ACEOF
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2010-06-12 07:19:26 +00:00
exec 5>>config.log
{
echo
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
2024-07-16 13:20:38 +00:00
printf "%s\n" "$ac_log"
2010-06-12 07:19:26 +00:00
} >&5
2002-05-02 15:17:54 +00:00
2010-06-12 07:19:26 +00:00
_ACEOF
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2010-06-12 07:19:26 +00:00
_ACEOF
2010-04-07 07:24:54 +00:00
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2010-04-07 07:26:44 +00:00
2010-06-12 07:19:26 +00:00
# Handling of arguments.
2002-05-02 15:17:54 +00:00
for ac_config_target in $ac_config_targets
do
2010-06-12 07:19:26 +00:00
case $ac_config_target in
2024-07-16 13:20:38 +00:00
"Headers/GNUstepBase/config.h") CONFIG_HEADERS="$CONFIG_HEADERS Headers/GNUstepBase/config.h:Headers/GNUstepBase/config.h.in" ;;
2010-06-12 07:19:26 +00:00
"config.mak") CONFIG_FILES="$CONFIG_FILES config.mak" ;;
"base.make") CONFIG_FILES="$CONFIG_FILES base.make" ;;
2024-03-27 12:30:41 +00:00
"Source/gnustep-base.pc") CONFIG_FILES="$CONFIG_FILES Source/gnustep-base.pc" ;;
2011-03-13 12:52:37 +00:00
"Headers/GNUstepBase/GSConfig.h") CONFIG_FILES="$CONFIG_FILES Headers/GNUstepBase/GSConfig.h" ;;
2010-06-12 07:19:26 +00:00
2017-12-20 13:25:41 +00:00
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2002-05-02 15:17:54 +00:00
esac
1998-02-09 19:06:40 +00:00
done
2002-05-02 15:17:54 +00:00
2010-06-12 07:19:26 +00:00
2002-05-02 15:17:54 +00: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
2024-07-16 13:20:38 +00:00
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
1998-02-09 19:06:40 +00:00
fi
2003-09-22 03:00:21 +00:00
# Have a temporary directory for convenience. Make it in the build tree
2010-06-12 07:19:26 +00:00
# simply because there is no reason against having it here, and in addition,
2003-09-22 03:00:21 +00:00
# creating and moving files from /tmp can sometimes cause problems.
2010-06-12 07:19:26 +00: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-05-02 15:17:54 +00:00
$debug ||
{
2017-12-20 13:25:41 +00:00
tmp= ac_tmp=
2010-06-12 07:19:26 +00:00
trap 'exit_status=$?
2017-12-20 13:25:41 +00:00
: "${ac_tmp:=$tmp}"
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
2010-06-12 07:19:26 +00:00
' 0
2015-08-16 10:04:46 +00:00
trap 'as_fn_exit 1' 1 2 13 15
2002-05-02 15:17:54 +00:00
}
# Create a (secure) tmp directory for tmp files.
2003-09-22 03:00:21 +00:00
2002-05-02 15:17:54 +00:00
{
2010-06-12 07:19:26 +00:00
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2017-12-20 13:25:41 +00:00
test -d "$tmp"
2002-05-02 15:17:54 +00:00
} ||
{
2010-06-12 07:19:26 +00:00
tmp=./conf$$-$RANDOM
(umask 077 && mkdir "$tmp")
2017-12-20 13:25:41 +00:00
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp
2012-03-27 17:05:19 +00:00
2012-09-20 09:32:00 +00: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'.
2010-06-12 07:19:26 +00:00
if test -n "$CONFIG_FILES"; then
2012-08-16 12:31:16 +00:00
2015-08-16 10:04:46 +00:00
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
eval ac_cr=\$\'\\r\'
fi
2012-09-20 09:32:00 +00:00
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
2017-12-20 13:25:41 +00:00
ac_cs_awk_cr='\\r'
2012-09-20 09:32:00 +00:00
else
ac_cs_awk_cr=$ac_cr
2010-06-12 07:19:26 +00:00
fi
2017-12-20 13:25:41 +00:00
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
2010-04-12 17:44:20 +00:00
_ACEOF
2012-09-20 09:32:00 +00:00
{
echo "cat >conf$$subs.awk <<_ACEOF" &&
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
echo "_ACEOF"
} >conf$$subs.sh ||
2017-12-20 13:25:41 +00:00
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
2010-06-12 07:19:26 +00:00
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
2012-09-20 09:32:00 +00:00
. ./conf$$subs.sh ||
2017-12-20 13:25:41 +00:00
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2012-09-20 09:32:00 +00:00
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
2010-06-12 07:19:26 +00:00
break
elif $ac_last_try; then
2017-12-20 13:25:41 +00:00
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2010-06-12 07:19:26 +00:00
else
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2010-04-07 07:26:44 +00:00
fi
2010-06-12 07:19:26 +00:00
done
2012-09-20 09:32:00 +00:00
rm -f conf$$subs.sh
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2017-12-20 13:25:41 +00:00
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2012-09-20 09:32:00 +00:00
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
2015-08-16 10:04:46 +00:00
s/\(.\{148\}\)..*/\1/
2012-09-20 09:32:00 +00:00
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
2015-08-16 10:04:46 +00:00
s/\(.\{148\}\)..*/\1/
2012-09-20 09:32:00 +00:00
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
2017-12-20 13:25:41 +00:00
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
2012-09-20 09:32:00 +00:00
for (key in S) S_is_set[key] = 1
FS = " "
2012-04-16 08:57:45 +00:00
2012-09-20 09:32:00 +00:00
}
{
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
}
print line
}
2010-06-12 07:19:26 +00:00
2012-09-20 09:32:00 +00:00
_ACAWK
2010-06-12 07:19:26 +00:00
_ACEOF
2012-09-20 09:32:00 +00: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
2017-12-20 13:25:41 +00:00
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
2010-06-12 07:19:26 +00:00
_ACEOF
2017-12-20 13:25:41 +00:00
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
2010-06-12 07:19:26 +00:00
# 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
2017-12-20 13:25:41 +00:00
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
h
s///
s/^/:/
s/[ ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
2010-06-12 07:19:26 +00:00
s/:*$//
2017-12-20 13:25:41 +00:00
x
s/\(=[ ]*\).*/\1/
G
s/\n//
2010-06-12 07:19:26 +00:00
s/^[^=]*=[ ]*$//
}'
fi
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2010-04-12 17:44:20 +00:00
fi # test -n "$CONFIG_FILES"
2010-04-07 07:26:44 +00:00
2012-09-20 09:32:00 +00: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
2017-12-20 13:25:41 +00:00
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
2012-09-20 09:32:00 +00:00
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
2017-12-20 13:25:41 +00:00
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
if test -z "$ac_tt"; then
2012-09-20 09:32:00 +00:00
break
elif $ac_last_try; then
2017-12-20 13:25:41 +00:00
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
2012-09-20 09:32:00 +00:00
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
2017-12-20 13:25:41 +00:00
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
2012-09-20 09:32:00 +00:00
fi # test -n "$CONFIG_HEADERS"
2010-06-12 07:19:26 +00:00
2012-09-20 09:32:00 +00:00
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
shift
for ac_tag
2010-06-12 07:19:26 +00:00
do
case $ac_tag in
:[FHLC]) ac_mode=$ac_tag; continue;;
esac
case $ac_mode$ac_tag in
:[FHL]*:*);;
2017-12-20 13:25:41 +00:00
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
2010-06-12 07:19:26 +00:00
:[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
2017-12-20 13:25:41 +00:00
-) ac_f="$ac_tmp/stdin";;
2010-06-12 07:19:26 +00:00
*) # 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 ||
2017-12-20 13:25:41 +00:00
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
2010-06-12 07:19:26 +00:00
esac
2024-07-16 13:20:38 +00:00
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
2015-08-16 10:04:46 +00:00
as_fn_append ac_file_inputs " '$ac_f'"
2010-06-12 07:19:26 +00: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. */
2012-09-20 09:32:00 +00:00
configure_input='Generated from '`
2024-07-16 13:20:38 +00:00
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
2012-09-20 09:32:00 +00:00
`' by configure.'
2010-06-12 07:19:26 +00:00
if test x"$ac_file" != x-; then
configure_input="$ac_file. $configure_input"
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
printf "%s\n" "$as_me: creating $ac_file" >&6;}
2010-06-12 07:19:26 +00:00
fi
2012-09-20 09:32:00 +00:00
# Neutralize special characters interpreted by sed in replacement strings.
case $configure_input in #(
*\&* | *\|* | *\\* )
2024-07-16 13:20:38 +00:00
ac_sed_conf_input=`printf "%s\n" "$configure_input" |
2012-09-20 09:32:00 +00:00
sed 's/[\\\\&|]/\\\\&/g'`;; #(
*) ac_sed_conf_input=$configure_input;;
esac
2010-06-12 07:19:26 +00:00
case $ac_tag in
2017-12-20 13:25:41 +00:00
*:-:* | *:-) cat >"$ac_tmp/stdin" \
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
2010-06-12 07:19:26 +00:00
esac
;;
2010-02-24 10:23:47 +00:00
esac
2010-06-12 07:19:26 +00:00
ac_dir=`$as_dirname -- "$ac_file" ||
2002-05-02 15:17:54 +00:00
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2008-12-08 05:03:13 +00:00
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
2010-06-12 07:19:26 +00:00
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2024-07-16 13:20:38 +00:00
printf "%s\n" X"$ac_file" |
2012-03-27 17:05:19 +00:00
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
2015-08-16 10:04:46 +00:00
as_dir="$ac_dir"; as_fn_mkdir_p
2002-05-02 15:17:54 +00:00
ac_builddir=.
2010-06-12 07:19:26 +00:00
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
2024-07-16 13:20:38 +00:00
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2010-06-12 07:19:26 +00:00
# A ".." for each directory in $ac_dir_suffix.
2024-07-16 13:20:38 +00:00
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2010-06-12 07:19:26 +00: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
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
case $srcdir in
2010-06-12 07:19:26 +00:00
.) # We are building in place.
2002-05-02 15:17:54 +00:00
ac_srcdir=.
2010-06-12 07:19:26 +00:00
ac_top_srcdir=$ac_top_builddir_sub
ac_abs_top_srcdir=$ac_pwd ;;
[\\/]* | ?:[\\/]* ) # Absolute name.
2002-05-02 15:17:54 +00:00
ac_srcdir=$srcdir$ac_dir_suffix;
2010-06-12 07:19:26 +00: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-05-02 15:17:54 +00:00
esac
2010-06-12 07:19:26 +00:00
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2009-09-23 11:52:32 +00:00
2010-01-24 17:13:03 +00:00
2010-06-12 07:19:26 +00:00
case $ac_mode in
:F)
#
# CONFIG_FILE
#
_ACEOF
2010-03-28 13:18:58 +00:00
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2010-06-12 07:19:26 +00: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=
2012-09-20 09:32:00 +00:00
ac_sed_dataroot='
/datarootdir/ {
2010-06-12 07:19:26 +00:00
p
q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
2015-08-16 10:04:46 +00:00
/@mandir@/p'
2012-09-20 09:32:00 +00:00
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
2010-06-12 07:19:26 +00:00
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2010-06-12 07:19:26 +00:00
_ACEOF
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2010-06-12 07:19:26 +00:00
ac_datarootdir_hack='
s&@datadir@&$datadir&g
s&@docdir@&$docdir&g
s&@infodir@&$infodir&g
s&@localedir@&$localedir&g
s&@mandir@&$mandir&g
2015-08-16 10:04:46 +00:00
s&\\\${datarootdir}&$datarootdir&g' ;;
2010-06-12 07:19:26 +00:00
esac
2010-04-07 07:26:44 +00:00
_ACEOF
2010-06-12 07:19:26 +00:00
# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
2002-05-02 15:17:54 +00:00
$extrasub
_ACEOF
2012-09-20 09:32:00 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2002-05-02 15:17:54 +00:00
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2012-09-20 09:32:00 +00:00
s|@configure_input@|$ac_sed_conf_input|;t t
2010-06-12 07:19:26 +00:00
s&@top_builddir@&$ac_top_builddir_sub&;t t
2012-09-20 09:32:00 +00:00
s&@top_build_prefix@&$ac_top_build_prefix&;t t
2010-06-12 07:19:26 +00: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
$ac_datarootdir_hack
2012-09-20 09:32:00 +00:00
"
2017-12-20 13:25:41 +00:00
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2010-04-12 17:44:20 +00:00
2010-06-12 07:19:26 +00:00
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2017-12-20 13:25:41 +00:00
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
"$ac_tmp/out"`; test -z "$ac_out"; } &&
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2017-12-20 13:25:41 +00:00
which seems to be undefined. Please make sure it is defined" >&5
2024-07-16 13:20:38 +00:00
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2017-12-20 13:25:41 +00:00
which seems to be undefined. Please make sure it is defined" >&2;}
2012-03-02 06:53:16 +00:00
2017-12-20 13:25:41 +00:00
rm -f "$ac_tmp/stdin"
2010-04-12 17:44:20 +00:00
case $ac_file in
2017-12-20 13:25:41 +00:00
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
2012-09-20 09:32:00 +00:00
esac \
2017-12-20 13:25:41 +00:00
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
2010-06-12 07:19:26 +00:00
;;
:H)
#
# CONFIG_HEADER
#
2009-10-04 11:09:48 +00:00
if test x"$ac_file" != x-; then
2012-09-20 09:32:00 +00:00
{
2024-07-16 13:20:38 +00:00
printf "%s\n" "/* $configure_input */" >&1 \
2017-12-20 13:25:41 +00:00
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
} >"$ac_tmp/config.h" \
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
2002-05-02 15:17:54 +00:00
else
2012-09-20 09:32:00 +00:00
rm -f "$ac_file"
2017-12-20 13:25:41 +00:00
mv "$ac_tmp/config.h" "$ac_file" \
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
2002-05-02 15:17:54 +00:00
fi
else
2024-07-16 13:20:38 +00:00
printf "%s\n" "/* $configure_input */" >&1 \
2017-12-20 13:25:41 +00:00
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|| as_fn_error $? "could not create -" "$LINENO" 5
2002-05-02 15:17:54 +00:00
fi
2010-06-12 07:19:26 +00:00
;;
esac
done # for ac_tag
1998-02-09 19:06:40 +00:00
2015-08-16 10:04:46 +00:00
as_fn_exit 0
2002-05-02 15:17:54 +00:00
_ACEOF
ac_clean_files=$ac_clean_files_save
2012-09-20 09:32:00 +00:00
test $ac_write_fail = 0 ||
2017-12-20 13:25:41 +00:00
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
2012-09-20 09:32:00 +00:00
2002-05-02 15:17:54 +00: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-22 03:00:21 +00:00
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
2002-05-02 15:17:54 +00:00
exec 5>/dev/null
2003-09-22 03:00:21 +00:00
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2002-05-02 15:17:54 +00: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.
2017-12-20 13:25:41 +00:00
$ac_cs_success || as_fn_exit 1
2002-05-02 15:17:54 +00:00
fi
2012-09-20 09:32:00 +00:00
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
2024-07-16 13:20:38 +00:00
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
2012-09-20 09:32:00 +00:00
fi
1999-01-02 18:29:44 +00:00
2024-07-16 13:20:38 +00:00