949
949
ac_env_PKG_CONFIG_value=$PKG_CONFIG
950
950
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951
951
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952
ac_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
953
ac_env_DEP_CFLAGS_value=$DEP_CFLAGS
954
ac_cv_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
955
ac_cv_env_DEP_CFLAGS_value=$DEP_CFLAGS
956
ac_env_DEP_LIBS_set=${DEP_LIBS+set}
957
ac_env_DEP_LIBS_value=$DEP_LIBS
958
ac_cv_env_DEP_LIBS_set=${DEP_LIBS+set}
959
ac_cv_env_DEP_LIBS_value=$DEP_LIBS
952
ac_env_FS_CFLAGS_set=${FS_CFLAGS+set}
953
ac_env_FS_CFLAGS_value=$FS_CFLAGS
954
ac_cv_env_FS_CFLAGS_set=${FS_CFLAGS+set}
955
ac_cv_env_FS_CFLAGS_value=$FS_CFLAGS
956
ac_env_FS_LIBS_set=${FS_LIBS+set}
957
ac_env_FS_LIBS_value=$FS_LIBS
958
ac_cv_env_FS_LIBS_set=${FS_LIBS+set}
959
ac_cv_env_FS_LIBS_value=$FS_LIBS
960
960
ac_env_XTRANS_CFLAGS_set=${XTRANS_CFLAGS+set}
961
961
ac_env_XTRANS_CFLAGS_value=$XTRANS_CFLAGS
962
962
ac_cv_env_XTRANS_CFLAGS_set=${XTRANS_CFLAGS+set}
1715
1720
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1718
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1719
# We used to keeping the `.' as first argument, in order to
1720
# allow $(mkdir_p) to be used without argument. As in
1721
# $(mkdir_p) $(somedir)
1722
# where $(somedir) is conditionally defined. However this is wrong
1724
# 1. if the package is installed by a user who cannot write `.'
1725
# make install will fail,
1726
# 2. the above comment should most certainly read
1727
# $(mkdir_p) $(DESTDIR)$(somedir)
1728
# so it does not work when $(somedir) is undefined and
1729
# $(DESTDIR) is not.
1730
# To support the latter case, we have to write
1731
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1732
# so the `.' trick is pointless.
1733
mkdir_p='mkdir -p --'
1735
# On NextStep and OpenStep, the `mkdir' command does not
1736
# recognize any option. It will interpret all options as
1737
# directories to create, and then abort because `.' already
1739
for d in ./-p ./--version;
1741
test -d $d && rmdir $d
1743
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1744
if test -f "$ac_aux_dir/mkinstalldirs"; then
1745
mkdir_p='$(mkinstalldirs)'
1747
mkdir_p='$(install_sh) -d'
1751
1723
for ac_prog in gawk mawk nawk awk
1753
1725
# Extract the first word of "$ac_prog", so it can be a program name with args.
19250
19460
if test $pkg_failed = yes; then
19251
DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto fontsproto"`
19461
FS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto fontsproto"`
19252
19462
# Put the nasty error message in config.log where it belongs
19253
echo "$DEP_PKG_ERRORS" 1>&5
19463
echo "$FS_PKG_ERRORS" 1>&5
19255
19465
{ { echo "$as_me:$LINENO: error: Package requirements (xproto fontsproto) were not met.
19256
19466
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19257
19467
installed software in a non-standard prefix.
19259
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19469
Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19260
19470
to avoid the need to call pkg-config. See the pkg-config man page for
19261
19471
more details." >&5
19262
19472
echo "$as_me: error: Package requirements (xproto fontsproto) were not met.
19263
19473
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19264
19474
installed software in a non-standard prefix.
19266
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19476
Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19267
19477
to avoid the need to call pkg-config. See the pkg-config man page for
19268
19478
more details." >&2;}
19269
19479
{ (exit 1); exit 1; }; }
19379
19591
XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
19380
19592
XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
19593
echo "$as_me:$LINENO: result: yes" >&5
19594
echo "${ECHO_T}yes" >&6
19386
# Check whether --enable-unix-transport or --disable-unix-transport was given.
19600
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19601
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19602
if test "${ac_cv_type_signal+set}" = set; then
19603
echo $ECHO_N "(cached) $ECHO_C" >&6
19605
cat >conftest.$ac_ext <<_ACEOF
19608
cat confdefs.h >>conftest.$ac_ext
19609
cat >>conftest.$ac_ext <<_ACEOF
19610
/* end confdefs.h. */
19611
#include <sys/types.h>
19612
#include <signal.h>
19617
extern "C" void (*signal (int, void (*)(int)))(int);
19619
void (*signal ()) ();
19630
rm -f conftest.$ac_objext
19631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632
(eval $ac_compile) 2>conftest.er1
19634
grep -v '^ *+' conftest.er1 >conftest.err
19636
cat conftest.err >&5
19637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638
(exit $ac_status); } &&
19639
{ ac_try='test -z "$ac_c_werror_flag"
19640
|| test ! -s conftest.err'
19641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642
(eval $ac_try) 2>&5
19644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645
(exit $ac_status); }; } &&
19646
{ ac_try='test -s conftest.$ac_objext'
19647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648
(eval $ac_try) 2>&5
19650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651
(exit $ac_status); }; }; then
19652
ac_cv_type_signal=void
19654
echo "$as_me: failed program was:" >&5
19655
sed 's/^/| /' conftest.$ac_ext >&5
19657
ac_cv_type_signal=int
19659
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19661
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19662
echo "${ECHO_T}$ac_cv_type_signal" >&6
19664
cat >>confdefs.h <<_ACEOF
19665
#define RETSIGTYPE $ac_cv_type_signal
19670
# Check whether --enable-unix-transport or --disable-unix-transport was given.
19387
19671
if test "${enable_unix_transport+set}" = set; then
19388
19672
enableval="$enable_unix_transport"
19389
19673
UNIXCONN=$enableval
20072
echo "$as_me:$LINENO: result: $IPV6CONN" >&5
20073
echo "${ECHO_T}$IPV6CONN" >&6
20075
# 4.3BSD-Reno added a new member to struct sockaddr_in
20076
echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
20077
echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6
20078
if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
20079
echo $ECHO_N "(cached) $ECHO_C" >&6
20081
cat >conftest.$ac_ext <<_ACEOF
20084
cat confdefs.h >>conftest.$ac_ext
20085
cat >>conftest.$ac_ext <<_ACEOF
20086
/* end confdefs.h. */
20088
#include <sys/types.h>
20089
#include <sys/socket.h>
20090
#include <netinet/in.h>
20096
static struct sockaddr_in ac_aggr;
20097
if (ac_aggr.sin_len)
20103
rm -f conftest.$ac_objext
20104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105
(eval $ac_compile) 2>conftest.er1
20107
grep -v '^ *+' conftest.er1 >conftest.err
20109
cat conftest.err >&5
20110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111
(exit $ac_status); } &&
20112
{ ac_try='test -z "$ac_c_werror_flag"
20113
|| test ! -s conftest.err'
20114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115
(eval $ac_try) 2>&5
20117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118
(exit $ac_status); }; } &&
20119
{ ac_try='test -s conftest.$ac_objext'
20120
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121
(eval $ac_try) 2>&5
20123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124
(exit $ac_status); }; }; then
20125
ac_cv_member_struct_sockaddr_in_sin_len=yes
20127
echo "$as_me: failed program was:" >&5
20128
sed 's/^/| /' conftest.$ac_ext >&5
20130
cat >conftest.$ac_ext <<_ACEOF
20133
cat confdefs.h >>conftest.$ac_ext
20134
cat >>conftest.$ac_ext <<_ACEOF
20135
/* end confdefs.h. */
20137
#include <sys/types.h>
20138
#include <sys/socket.h>
20139
#include <netinet/in.h>
20145
static struct sockaddr_in ac_aggr;
20146
if (sizeof ac_aggr.sin_len)
20152
rm -f conftest.$ac_objext
20153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20154
(eval $ac_compile) 2>conftest.er1
20156
grep -v '^ *+' conftest.er1 >conftest.err
20158
cat conftest.err >&5
20159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160
(exit $ac_status); } &&
20161
{ ac_try='test -z "$ac_c_werror_flag"
20162
|| test ! -s conftest.err'
20163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164
(eval $ac_try) 2>&5
20166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167
(exit $ac_status); }; } &&
20168
{ ac_try='test -s conftest.$ac_objext'
20169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170
(eval $ac_try) 2>&5
20172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173
(exit $ac_status); }; }; then
20174
ac_cv_member_struct_sockaddr_in_sin_len=yes
20176
echo "$as_me: failed program was:" >&5
20177
sed 's/^/| /' conftest.$ac_ext >&5
20179
ac_cv_member_struct_sockaddr_in_sin_len=no
20181
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20183
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20185
echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
20186
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6
20187
if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
20189
cat >>confdefs.h <<\_ACEOF
20190
#define BSD44SOCKETS 1
20200
# Check whether --enable-malloc0returnsnull or --disable-malloc0returnsnull was given.
20201
if test "${enable_malloc0returnsnull+set}" = set; then
20202
enableval="$enable_malloc0returnsnull"
20203
MALLOC_ZERO_RETURNS_NULL=$enableval
20205
MALLOC_ZERO_RETURNS_NULL=auto
20208
echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
20209
echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6
20210
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20211
if test "$cross_compiling" = yes; then
20212
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20213
See \`config.log' for more details." >&5
20214
echo "$as_me: error: cannot run test program while cross compiling
20215
See \`config.log' for more details." >&2;}
20216
{ (exit 1); exit 1; }; }
20218
cat >conftest.$ac_ext <<_ACEOF
20224
char *m0, *r0, *c0, *p;
20229
exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
20232
rm -f conftest$ac_exeext
20233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234
(eval $ac_link) 2>&5
20236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239
(eval $ac_try) 2>&5
20241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242
(exit $ac_status); }; }; then
20243
MALLOC_ZERO_RETURNS_NULL=yes
20245
echo "$as_me: program exited with status $ac_status" >&5
20246
echo "$as_me: failed program was:" >&5
20247
sed 's/^/| /' conftest.$ac_ext >&5
20249
( exit $ac_status )
20250
MALLOC_ZERO_RETURNS_NULL=no
20252
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20255
echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20256
echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6
20258
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20259
MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20260
XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20261
XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20263
MALLOC_ZERO_CFLAGS=""
20264
XMALLOC_ZERO_CFLAGS=""
20265
XTMALLOC_ZERO_CFLAGS=""
19775
20273
# Check fixesext configuration, strip extra digits from package version to
19776
20274
# find the required protocol version
20278
# Check whether --with-release-version or --without-release-version was given.
20279
if test "${with_release_version+set}" = set; then
20280
withval="$with_release_version"
20281
RELEASE_VERSION="$withval"
20285
if test "x$RELEASE_VERSION" != "x"; then
20286
PACKAGE="$PACKAGE-$RELEASE_VERSION"
20287
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20288
{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20289
echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19778
20293
ac_config_files="$ac_config_files Makefile src/Makefile libfs.pc"
19779
20294
cat >confcache <<\_ACEOF
19780
20295
# This file is a shell script that caches the results of configure
20440
20955
s,@AUTOMAKE@,$AUTOMAKE,;t t
20441
20956
s,@AUTOHEADER@,$AUTOHEADER,;t t
20442
20957
s,@MAKEINFO@,$MAKEINFO,;t t
20958
s,@AMTAR@,$AMTAR,;t t
20443
20959
s,@install_sh@,$install_sh,;t t
20444
20960
s,@STRIP@,$STRIP,;t t
20445
20961
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20446
20962
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20447
s,@mkdir_p@,$mkdir_p,;t t
20448
20963
s,@AWK@,$AWK,;t t
20449
20964
s,@SET_MAKE@,$SET_MAKE,;t t
20450
20965
s,@am__leading_dot@,$am__leading_dot,;t t
20451
s,@AMTAR@,$AMTAR,;t t
20452
s,@am__tar@,$am__tar,;t t
20453
s,@am__untar@,$am__untar,;t t
20454
20966
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20455
20967
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20456
20968
s,@MAINT@,$MAINT,;t t
20499
21011
s,@LIBTOOL@,$LIBTOOL,;t t
20500
21012
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20501
21013
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20502
s,@DEP_CFLAGS@,$DEP_CFLAGS,;t t
20503
s,@DEP_LIBS@,$DEP_LIBS,;t t
21014
s,@FS_CFLAGS@,$FS_CFLAGS,;t t
21015
s,@FS_LIBS@,$FS_LIBS,;t t
20504
21016
s,@XTRANS_CFLAGS@,$XTRANS_CFLAGS,;t t
20505
21017
s,@XTRANS_LIBS@,$XTRANS_LIBS,;t t
21018
s,@MALLOC_ZERO_CFLAGS@,$MALLOC_ZERO_CFLAGS,;t t
21019
s,@XMALLOC_ZERO_CFLAGS@,$XMALLOC_ZERO_CFLAGS,;t t
21020
s,@XTMALLOC_ZERO_CFLAGS@,$XTMALLOC_ZERO_CFLAGS,;t t
20506
21021
s,@LIBOBJS@,$LIBOBJS,;t t
20507
21022
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21131
# Extract the definition of DEPDIR, am__include, and am__quote
21132
# from the Makefile without running `make'.
21133
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21645
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21646
# Extract the definition of DEP_FILES from the Makefile without
21648
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21134
21649
test -z "$DEPDIR" && continue
21135
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21136
test -z "am__include" && continue
21137
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21138
21650
# When using ansi2knr, U may be empty or an underscore; expand it
21139
U=`sed -n 's/^U = //p' < "$mf"`
21140
# Find all dependency output files, they are included files with
21141
# $(DEPDIR) in their names. We invoke sed twice because it is the
21142
# simplest approach to changing $(DEPDIR) to its actual value in the
21144
for file in `sed -n "
21145
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21651
U=`sed -n -e '/^U = / s///p' < "$mf"`
21652
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21653
# We invoke sed twice because it is the simplest approach to
21654
# changing $(DEPDIR) to its actual value in the expansion.
21655
for file in `sed -n -e '
21656
/^DEP_FILES = .*\\\\$/ {
21665
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21146
21666
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21147
21667
# Make sure the directory exists.
21148
21668
test -f "$dirpart/$file" && continue