mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-25 14:50:24 +08:00
more bug fixes
This commit is contained in:
parent
3016f325ec
commit
c77ff9f7d2
36
ChangeLog
36
ChangeLog
@ -1,3 +1,39 @@
|
||||
Wed Nov 22 11:01:16 1995 David J. MacKenzie <djm@catapult.va.pubnix.com>
|
||||
|
||||
* Version 2.7.
|
||||
|
||||
* autoheader.m4 (AC_CHECK_FUNCS, AC_CHECK_HEADERS): Expand the
|
||||
optional action args. From jj@jfch.vc.cvut.cz (Jakub Jelinek).
|
||||
|
||||
* acgeneral.m4 (AC_CHECK_LIB): Translate - in library names to _.
|
||||
(AC_ARG_PROGRAM): Use cat instead of echo to avoid SysV echo
|
||||
interpreting backslashes. From kim@tac.nyc.ny.US (Kimmo Suominen).
|
||||
(AC_OUTPUT_FILES): Quote $ and \ for being in an unquoted here
|
||||
document. From Paul Eggert <eggert@twinsun.com>.
|
||||
|
||||
* acspecific.m4 (AC_PATH_X_XMKMF): Use ${MAKE-make}, not plain make.
|
||||
(AC_C_CONST): Avoid a warning from g++.
|
||||
From tgl@sss.pgh.pa.us (Tom Lane).
|
||||
(AC_FUNC_MMAP): Check for valloc and getpagesize; don't rely on
|
||||
predefines.
|
||||
(AC_HEADER_STDC): If cross-compiling, assume the ctype macros are
|
||||
ANSI. From dje@cygnus.com (Doug Evans).
|
||||
(AC_TYPE_SIGNAL) [__cplusplus]: Give a full prototype.
|
||||
From churritz@cts.com (Chad Hurwitz).
|
||||
(AC_FUNC_VFORK): If cross-compiling, use AC_CHECK_FUNC instead.
|
||||
From steve chamberlain <sac@cygnus.com>.
|
||||
|
||||
Tue Sep 5 20:37:48 1995 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* acspecific.m4 (X_LIBS): Use `-R lib', not `-Rlib', since Sun
|
||||
CC 3.0 requires this.
|
||||
|
||||
Tue Aug 8 20:10:12 1995 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* acgeneral.m4: When creating config.status, start a new
|
||||
here-script just before building conftest.subs, to work around
|
||||
a bug in the HP-UX 9 HP9000-800 sh.
|
||||
|
||||
Tue Nov 21 17:36:41 1995 David J. MacKenzie <djm@catapult.va.pubnix.com>
|
||||
|
||||
* Makefile.in (install): Undo last ASCRIPTS panic change.
|
||||
|
4
NEWS
4
NEWS
@ -1,6 +1,6 @@
|
||||
Major changes in release 2.6:
|
||||
Major changes in releases 2.6 and 2.7:
|
||||
|
||||
Just fixed a few silly bugs.
|
||||
* Bug fixes.
|
||||
|
||||
Major changes in release 2.5:
|
||||
|
||||
|
34
acgeneral.m4
34
acgeneral.m4
@ -51,7 +51,7 @@ dnl
|
||||
divert(-1)dnl Throw away output until AC_INIT is called.
|
||||
changequote([, ])
|
||||
|
||||
define(AC_ACVERSION, 2.6)
|
||||
define(AC_ACVERSION, 2.7)
|
||||
|
||||
dnl Some old m4's don't support m4exit. But they provide
|
||||
dnl equivalent functionality by core dumping because of the
|
||||
@ -759,8 +759,10 @@ AC_DEFUN(AC_ARG_PROGRAM,
|
||||
[if test "$program_transform_name" = s,x,x,; then
|
||||
program_transform_name=
|
||||
else
|
||||
# Double any \ or $.
|
||||
echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
|
||||
# Double any \ or $. echo might interpret backslashes.
|
||||
cat <<\EOF_SED > conftestsed
|
||||
s,\\,\\\\,g; s,\$,$$,g
|
||||
EOF_SED
|
||||
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
||||
rm -f conftestsed
|
||||
fi
|
||||
@ -1365,7 +1367,7 @@ dnl [, OTHER-LIBRARIES]]])
|
||||
AC_DEFUN(AC_CHECK_LIB,
|
||||
[AC_MSG_CHECKING([for -l$1])
|
||||
changequote(, )dnl
|
||||
ac_lib_var=`echo $1 | tr './+' '__p'`
|
||||
ac_lib_var=`echo $1 | tr '.-/+' '___p'`
|
||||
changequote([, ])dnl
|
||||
AC_CACHE_VAL(ac_cv_lib_$ac_lib_var,
|
||||
[ac_save_LIBS="$LIBS"
|
||||
@ -1424,7 +1426,7 @@ undefine([AC_CV_NAME])dnl
|
||||
dnl ### Examining declarations
|
||||
|
||||
|
||||
dnl AC_TRY_CPP(INCLUDES, ACTION-IF-TRUE [, ACTION-IF-FALSE])
|
||||
dnl AC_TRY_CPP(INCLUDES, [ACTION-IF-TRUE [, ACTION-IF-FALSE]])
|
||||
AC_DEFUN(AC_TRY_CPP,
|
||||
[AC_REQUIRE_CPP()dnl
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
@ -1456,8 +1458,8 @@ AC_DEFUN(AC_EGREP_HEADER,
|
||||
|
||||
dnl Because this macro is used by AC_PROG_GCC_TRADITIONAL, which must
|
||||
dnl come early, it is not included in AC_BEFORE checks.
|
||||
dnl AC_EGREP_CPP(PATTERN, PROGRAM, ACTION-IF-FOUND [,
|
||||
dnl ACTION-IF-NOT-FOUND])
|
||||
dnl AC_EGREP_CPP(PATTERN, PROGRAM, [ACTION-IF-FOUND [,
|
||||
dnl ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_EGREP_CPP,
|
||||
[AC_REQUIRE_CPP()dnl
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
@ -1484,7 +1486,7 @@ dnl ### Examining syntax
|
||||
|
||||
|
||||
dnl AC_TRY_COMPILE(INCLUDES, FUNCTION-BODY,
|
||||
dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_TRY_COMPILE,
|
||||
[cat > conftest.$ac_ext <<EOF
|
||||
dnl This sometimes fails to find confdefs.h, for some reason.
|
||||
@ -1522,7 +1524,7 @@ AC_TRY_LINK([$2], [$3], [$4], [$5])dnl
|
||||
])
|
||||
|
||||
dnl AC_TRY_LINK(INCLUDES, FUNCTION-BODY,
|
||||
dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_TRY_LINK,
|
||||
[cat > conftest.$ac_ext <<EOF
|
||||
dnl This sometimes fails to find confdefs.h, for some reason.
|
||||
@ -1550,8 +1552,8 @@ rm -f conftest*]
|
||||
dnl ### Checking for run-time features
|
||||
|
||||
|
||||
dnl AC_TRY_RUN(PROGRAM, ACTION-IF-TRUE [, ACTION-IF-FALSE
|
||||
dnl [, ACTION-IF-CROSS-COMPILING]])
|
||||
dnl AC_TRY_RUN(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE
|
||||
dnl [, ACTION-IF-CROSS-COMPILING]]])
|
||||
AC_DEFUN(AC_TRY_RUN,
|
||||
[AC_REQUIRE([AC_C_CROSS])dnl
|
||||
if test "$cross_compiling" = yes; then
|
||||
@ -1584,7 +1586,7 @@ rm -fr conftest*])
|
||||
dnl ### Checking for header files
|
||||
|
||||
|
||||
dnl AC_CHECK_HEADER(HEADER-FILE, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
dnl AC_CHECK_HEADER(HEADER-FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_CHECK_HEADER,
|
||||
[dnl Do the transliteration at runtime so arg 1 can be a shell variable.
|
||||
ac_safe=`echo "$1" | tr './\055' '___'`
|
||||
@ -1618,7 +1620,7 @@ done
|
||||
dnl ### Checking for library functions
|
||||
|
||||
|
||||
dnl AC_CHECK_FUNC(FUNCTION, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_CHECK_FUNC,
|
||||
[AC_MSG_CHECKING([for $1])
|
||||
AC_CACHE_VAL(ac_cv_func_$1,
|
||||
@ -1816,6 +1818,8 @@ ifdef(<<AC_LIST_HEADER>>,
|
||||
<<trap 'rm -fr `echo "$1 AC_LIST_HEADER" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15>>,
|
||||
<<trap 'rm -fr `echo "$1" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15>>)
|
||||
changequote([, ])dnl
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
AC_OUTPUT_FILES($1)
|
||||
ifdef([AC_LIST_HEADER], [AC_OUTPUT_HEADER(AC_LIST_HEADER)])dnl
|
||||
@ -1863,8 +1867,8 @@ dnl AC_OUTPUT_FILES(FILE...)
|
||||
define(AC_OUTPUT_FILES,
|
||||
[# Protect against being on the right side of a sed subst in config.status.
|
||||
changequote(, )dnl
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
||||
changequote([, ])dnl
|
||||
dnl These here document variables are unquoted when configure runs
|
||||
dnl but quoted when config.status runs, so variables are expanded once.
|
||||
|
@ -472,7 +472,7 @@ AC_TRY_RUN([#include <ctype.h>
|
||||
int main () { int i; for (i = 0; i < 256; i++)
|
||||
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
||||
exit (0); }
|
||||
], , ac_cv_header_stdc=no, ac_cv_header_stdc=no)
|
||||
], , ac_cv_header_stdc=no, :)
|
||||
fi])
|
||||
if test $ac_cv_header_stdc = yes; then
|
||||
AC_DEFINE(STDC_HEADERS)
|
||||
@ -731,9 +731,11 @@ AC_DEFUN(AC_TYPE_SIGNAL,
|
||||
#undef signal
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
extern "C" void (*signal (int, void (*)(int)))(int);
|
||||
#else
|
||||
void (*signal ()) ();
|
||||
#endif
|
||||
void (*signal ()) ();],
|
||||
],
|
||||
[int i;], ac_cv_type_signal=void, ac_cv_type_signal=int)])
|
||||
AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal)
|
||||
])
|
||||
@ -755,19 +757,14 @@ fi
|
||||
])
|
||||
|
||||
AC_DEFUN(AC_FUNC_MMAP,
|
||||
[AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap,
|
||||
[AC_CHECK_FUNCS(valloc getpagesize)
|
||||
AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap,
|
||||
[AC_TRY_RUN([
|
||||
/* Thanks to Mike Haertel and Jim Avera for this test. */
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#ifdef BSD
|
||||
# ifndef BSD4_1
|
||||
# define HAVE_GETPAGESIZE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETPAGESIZE
|
||||
# include <sys/param.h>
|
||||
# ifdef EXEC_PAGESIZE
|
||||
@ -788,7 +785,7 @@ AC_DEFUN(AC_FUNC_MMAP,
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __osf__
|
||||
#ifndef HAVE_VALLOC
|
||||
# define valloc malloc
|
||||
#endif
|
||||
|
||||
@ -803,7 +800,7 @@ main()
|
||||
{
|
||||
char *buf1, *buf2, *buf3;
|
||||
int i = getpagesize(), j;
|
||||
int i2 = getpagesize()*2;
|
||||
int i2 = i * 2;
|
||||
int fd;
|
||||
|
||||
buf1 = (char *)valloc(i2);
|
||||
@ -994,7 +991,8 @@ main() {
|
||||
|| fstat(fileno(stdout), &st) != 0
|
||||
);
|
||||
}
|
||||
}], ac_cv_func_vfork=yes, ac_cv_func_vfork=no, ac_cv_func_vfork=no)])
|
||||
}],
|
||||
ac_cv_func_vfork=yes, ac_cv_func_vfork=no, AC_CHECK_FUNC(vfork))])
|
||||
if test $ac_cv_func_vfork = no; then
|
||||
AC_DEFINE(vfork, fork)
|
||||
fi
|
||||
@ -1511,7 +1509,7 @@ char const *const *ccp;
|
||||
char **p;
|
||||
/* NEC SVR4.0.2 mips cc rejects this. */
|
||||
struct point {int x, y;};
|
||||
static struct point const zero;
|
||||
static struct point const zero = {0,0};
|
||||
/* AIX XL C 1.02.0.0 rejects this.
|
||||
It does not let you subtract one const X* pointer from another in an arm
|
||||
of an if-expression whose if-part is not a constant expression */
|
||||
@ -1689,7 +1687,7 @@ EOF
|
||||
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
||||
no_x=
|
||||
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
||||
eval `make acfindx 2>/dev/null | grep -v make`
|
||||
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
||||
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
||||
for ac_extension in a so sl; do
|
||||
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
||||
@ -1836,7 +1834,7 @@ else
|
||||
X_LIBS="$X_LIBS -L$x_libraries"
|
||||
if test "`(uname) 2>/dev/null`" = SunOS &&
|
||||
uname -r | grep '^5' >/dev/null; then
|
||||
X_LIBS="$X_LIBS -R$x_libraries"
|
||||
X_LIBS="$X_LIBS -R $x_libraries"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
@c @setchapternewpage odd
|
||||
@c %**end of header
|
||||
|
||||
@set EDITION 2.6
|
||||
@set VERSION 2.6
|
||||
@set EDITION 2.7
|
||||
@set VERSION 2.7
|
||||
@set UPDATED November 1995
|
||||
|
||||
@iftex
|
||||
@ -61,7 +61,7 @@ by the Foundation.
|
||||
|
||||
@page
|
||||
@vskip 0pt plus 1filll
|
||||
Copyright @copyright{} 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||
Copyright @copyright{} 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to make and distribute verbatim copies of
|
||||
this manual provided the copyright notice and this permission notice
|
||||
@ -1974,7 +1974,7 @@ If you need to check the behavior of a function as well as find out
|
||||
whether it is present, you have to write your own test for
|
||||
it (@pxref{Writing Tests}).
|
||||
|
||||
@defmac AC_CHECK_FUNC (@var{function}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_CHECK_FUNC (@var{function}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex CHECK_FUNC
|
||||
If C function @var{function} is available, run shell commands
|
||||
@var{action-if-found}, otherwise @var{action-if-not-found}. If you just
|
||||
@ -2270,7 +2270,7 @@ particular test macros. If you need to check the contents of a header
|
||||
as well as find out whether it is present, you have to write your own
|
||||
test for it (@pxref{Writing Tests}).
|
||||
|
||||
@defmac AC_CHECK_HEADER (@var{header-file}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_CHECK_HEADER (@var{header-file}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex CHECK_HEADER
|
||||
If the system header file @var{header-file} exists, execute shell commands
|
||||
@var{action-if-found}, otherwise execute @var{action-if-not-found}. If
|
||||
@ -2735,7 +2735,7 @@ The macro @code{AC_TRY_CPP} is used to check whether particular header
|
||||
files exist. You can check for one at a time, or more than one if you
|
||||
need several header files to all exist for some purpose.
|
||||
|
||||
@defmac AC_TRY_CPP (@var{includes}, @var{action-if-true} @r{[}, @var{action-if-false}@r{]})
|
||||
@defmac AC_TRY_CPP (@var{includes}, @r{[}@var{action-if-true} @r{[}, @var{action-if-false}@r{]]})
|
||||
@maindex TRY_CPP
|
||||
@var{includes} is C or C++ @code{#include} statements and declarations,
|
||||
on which shell variable, backquote, and backslash substitutions are
|
||||
@ -2775,7 +2775,7 @@ AC_EGREP_CPP(yes,
|
||||
], is_aix=yes, is_aix=no)
|
||||
@end example
|
||||
|
||||
@defmac AC_EGREP_CPP (@var{pattern}, @var{program}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_EGREP_CPP (@var{pattern}, @var{program}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex EGREP_CPP
|
||||
@var{program} is the text of a C or C++ program, on which shell
|
||||
variable, backquote, and backslash substitutions are performed. If the
|
||||
@ -2797,7 +2797,7 @@ compile a small program that uses that feature. You can also use it to
|
||||
check for structures and structure members that are not present on all
|
||||
systems.
|
||||
|
||||
@defmac AC_TRY_COMPILE (@var{includes}, @var{function-body}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_TRY_COMPILE (@var{includes}, @var{function-body}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex TRY_COMPILE
|
||||
Create a test C program to see whether a function whose body consists of
|
||||
@var{function-body} can be compiled; @var{includes} is any
|
||||
@ -2838,7 +2838,7 @@ functions and global variables. It is also used (by
|
||||
checked for to @code{LIBS} temporarily and trying to link a small
|
||||
program.
|
||||
|
||||
@defmac AC_TRY_LINK (@var{includes}, @var{function-body}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_TRY_LINK (@var{includes}, @var{function-body}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex TRY_LINK
|
||||
Create a test C program to see whether a function whose body consists of
|
||||
@var{function-body} can be compiled and linked; @var{includes} is any
|
||||
@ -2884,7 +2884,7 @@ package for cross-compiling.
|
||||
Use the following macro if you need to test run-time behavior of the
|
||||
system while configuring.
|
||||
|
||||
@defmac AC_TRY_RUN (@var{program}, @var{action-if-true} @r{[}, @var{action-if-false} @r{[}, @var{action-if-cross-compiling}@r{]]})
|
||||
@defmac AC_TRY_RUN (@var{program}, @r{[}@var{action-if-true} @r{[}, @var{action-if-false} @r{[}, @var{action-if-cross-compiling}@r{]]]})
|
||||
@maindex TRY_RUN
|
||||
@var{program} is the text of a C program, on which shell variable and
|
||||
backquote substitutions are performed. If it compiles and links
|
||||
|
@ -182,7 +182,6 @@ fi
|
||||
|
||||
echo "$types" | tr , \\012 | sort | uniq | while read ctype; do
|
||||
test -z "$ctype" && continue
|
||||
# Solaris 2.3 tr rejects noncontiguous characters in character classes.
|
||||
sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`"
|
||||
echo "
|
||||
/* The number of bytes in a ${ctype}. */
|
||||
|
@ -1,6 +1,6 @@
|
||||
dnl Driver and redefinitions of some Autoconf macros for autoheader.
|
||||
dnl This file is part of Autoconf.
|
||||
dnl Copyright (C) 1994 Free Software Foundation, Inc.
|
||||
dnl Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
dnl
|
||||
dnl This program is free software; you can redistribute it and/or modify
|
||||
dnl it under the terms of the GNU General Public License as published by
|
||||
@ -31,10 +31,22 @@ dnl a line.
|
||||
|
||||
define([AC_CHECK_FUNCS], [#
|
||||
@@@funcs="$funcs $1"@@@
|
||||
ifelse([$2], , , [
|
||||
# If it was found, we do:
|
||||
$2
|
||||
# If it was not found, we do:
|
||||
$3
|
||||
])
|
||||
])
|
||||
|
||||
define([AC_CHECK_HEADERS], [#
|
||||
@@@headers="$headers $1"@@@
|
||||
ifelse([$2], , , [
|
||||
# If it was found, we do:
|
||||
$2
|
||||
# If it was not found, we do:
|
||||
$3
|
||||
])
|
||||
])
|
||||
|
||||
define([AC_CHECK_HEADERS_DIRENT], [#
|
||||
|
@ -182,7 +182,6 @@ fi
|
||||
|
||||
echo "$types" | tr , \\012 | sort | uniq | while read ctype; do
|
||||
test -z "$ctype" && continue
|
||||
# Solaris 2.3 tr rejects noncontiguous characters in character classes.
|
||||
sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`"
|
||||
echo "
|
||||
/* The number of bytes in a ${ctype}. */
|
||||
|
@ -182,7 +182,6 @@ fi
|
||||
|
||||
echo "$types" | tr , \\012 | sort | uniq | while read ctype; do
|
||||
test -z "$ctype" && continue
|
||||
# Solaris 2.3 tr rejects noncontiguous characters in character classes.
|
||||
sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`"
|
||||
echo "
|
||||
/* The number of bytes in a ${ctype}. */
|
||||
|
18
configure
vendored
18
configure
vendored
@ -1,7 +1,7 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated automatically using autoconf version 2.6
|
||||
# Generated automatically using autoconf version 2.7
|
||||
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||
#
|
||||
# This configure script is free software; the Free Software Foundation
|
||||
@ -330,7 +330,7 @@ EOF
|
||||
verbose=yes ;;
|
||||
|
||||
-version | --version | --versio | --versi | --vers)
|
||||
echo "configure generated by autoconf version 2.6"
|
||||
echo "configure generated by autoconf version 2.7"
|
||||
exit 0 ;;
|
||||
|
||||
-with-* | --with-*)
|
||||
@ -519,8 +519,10 @@ fi
|
||||
if test "$program_transform_name" = s,x,x,; then
|
||||
program_transform_name=
|
||||
else
|
||||
# Double any \ or $.
|
||||
echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
|
||||
# Double any \ or $. echo might interpret backslashes.
|
||||
cat <<\EOF_SED > conftestsed
|
||||
s,\\,\\\\,g; s,\$,$$,g
|
||||
EOF_SED
|
||||
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
||||
rm -f conftestsed
|
||||
fi
|
||||
@ -812,7 +814,7 @@ do
|
||||
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
||||
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
||||
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
||||
echo "$CONFIG_STATUS generated by autoconf version 2.6"
|
||||
echo "$CONFIG_STATUS generated by autoconf version 2.7"
|
||||
exit 0 ;;
|
||||
-help | --help | --hel | --he | --h)
|
||||
echo "\$ac_cs_usage"; exit 0 ;;
|
||||
@ -824,10 +826,12 @@ ac_given_srcdir=$srcdir
|
||||
ac_given_INSTALL="$INSTALL"
|
||||
|
||||
trap 'rm -fr `echo "Makefile testsuite/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
# Protect against being on the right side of a sed subst in config.status.
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
||||
$ac_vpsub
|
||||
$extrasub
|
||||
s%@CFLAGS@%$CFLAGS%g
|
||||
|
@ -6,8 +6,8 @@
|
||||
@c @setchapternewpage odd
|
||||
@c %**end of header
|
||||
|
||||
@set EDITION 2.6
|
||||
@set VERSION 2.6
|
||||
@set EDITION 2.7
|
||||
@set VERSION 2.7
|
||||
@set UPDATED November 1995
|
||||
|
||||
@iftex
|
||||
@ -61,7 +61,7 @@ by the Foundation.
|
||||
|
||||
@page
|
||||
@vskip 0pt plus 1filll
|
||||
Copyright @copyright{} 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||
Copyright @copyright{} 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to make and distribute verbatim copies of
|
||||
this manual provided the copyright notice and this permission notice
|
||||
@ -1974,7 +1974,7 @@ If you need to check the behavior of a function as well as find out
|
||||
whether it is present, you have to write your own test for
|
||||
it (@pxref{Writing Tests}).
|
||||
|
||||
@defmac AC_CHECK_FUNC (@var{function}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_CHECK_FUNC (@var{function}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex CHECK_FUNC
|
||||
If C function @var{function} is available, run shell commands
|
||||
@var{action-if-found}, otherwise @var{action-if-not-found}. If you just
|
||||
@ -2270,7 +2270,7 @@ particular test macros. If you need to check the contents of a header
|
||||
as well as find out whether it is present, you have to write your own
|
||||
test for it (@pxref{Writing Tests}).
|
||||
|
||||
@defmac AC_CHECK_HEADER (@var{header-file}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_CHECK_HEADER (@var{header-file}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex CHECK_HEADER
|
||||
If the system header file @var{header-file} exists, execute shell commands
|
||||
@var{action-if-found}, otherwise execute @var{action-if-not-found}. If
|
||||
@ -2735,7 +2735,7 @@ The macro @code{AC_TRY_CPP} is used to check whether particular header
|
||||
files exist. You can check for one at a time, or more than one if you
|
||||
need several header files to all exist for some purpose.
|
||||
|
||||
@defmac AC_TRY_CPP (@var{includes}, @var{action-if-true} @r{[}, @var{action-if-false}@r{]})
|
||||
@defmac AC_TRY_CPP (@var{includes}, @r{[}@var{action-if-true} @r{[}, @var{action-if-false}@r{]]})
|
||||
@maindex TRY_CPP
|
||||
@var{includes} is C or C++ @code{#include} statements and declarations,
|
||||
on which shell variable, backquote, and backslash substitutions are
|
||||
@ -2775,7 +2775,7 @@ AC_EGREP_CPP(yes,
|
||||
], is_aix=yes, is_aix=no)
|
||||
@end example
|
||||
|
||||
@defmac AC_EGREP_CPP (@var{pattern}, @var{program}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_EGREP_CPP (@var{pattern}, @var{program}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex EGREP_CPP
|
||||
@var{program} is the text of a C or C++ program, on which shell
|
||||
variable, backquote, and backslash substitutions are performed. If the
|
||||
@ -2797,7 +2797,7 @@ compile a small program that uses that feature. You can also use it to
|
||||
check for structures and structure members that are not present on all
|
||||
systems.
|
||||
|
||||
@defmac AC_TRY_COMPILE (@var{includes}, @var{function-body}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_TRY_COMPILE (@var{includes}, @var{function-body}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex TRY_COMPILE
|
||||
Create a test C program to see whether a function whose body consists of
|
||||
@var{function-body} can be compiled; @var{includes} is any
|
||||
@ -2838,7 +2838,7 @@ functions and global variables. It is also used (by
|
||||
checked for to @code{LIBS} temporarily and trying to link a small
|
||||
program.
|
||||
|
||||
@defmac AC_TRY_LINK (@var{includes}, @var{function-body}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
|
||||
@defmac AC_TRY_LINK (@var{includes}, @var{function-body}, @r{[}@var{action-if-found} @r{[}, @var{action-if-not-found}@r{]]})
|
||||
@maindex TRY_LINK
|
||||
Create a test C program to see whether a function whose body consists of
|
||||
@var{function-body} can be compiled and linked; @var{includes} is any
|
||||
@ -2884,7 +2884,7 @@ package for cross-compiling.
|
||||
Use the following macro if you need to test run-time behavior of the
|
||||
system while configuring.
|
||||
|
||||
@defmac AC_TRY_RUN (@var{program}, @var{action-if-true} @r{[}, @var{action-if-false} @r{[}, @var{action-if-cross-compiling}@r{]]})
|
||||
@defmac AC_TRY_RUN (@var{program}, @r{[}@var{action-if-true} @r{[}, @var{action-if-false} @r{[}, @var{action-if-cross-compiling}@r{]]]})
|
||||
@maindex TRY_RUN
|
||||
@var{program} is the text of a C program, on which shell variable and
|
||||
backquote substitutions are performed. If it compiles and links
|
||||
|
@ -51,7 +51,7 @@ dnl
|
||||
divert(-1)dnl Throw away output until AC_INIT is called.
|
||||
changequote([, ])
|
||||
|
||||
define(AC_ACVERSION, 2.6)
|
||||
define(AC_ACVERSION, 2.7)
|
||||
|
||||
dnl Some old m4's don't support m4exit. But they provide
|
||||
dnl equivalent functionality by core dumping because of the
|
||||
@ -759,8 +759,10 @@ AC_DEFUN(AC_ARG_PROGRAM,
|
||||
[if test "$program_transform_name" = s,x,x,; then
|
||||
program_transform_name=
|
||||
else
|
||||
# Double any \ or $.
|
||||
echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
|
||||
# Double any \ or $. echo might interpret backslashes.
|
||||
cat <<\EOF_SED > conftestsed
|
||||
s,\\,\\\\,g; s,\$,$$,g
|
||||
EOF_SED
|
||||
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
||||
rm -f conftestsed
|
||||
fi
|
||||
@ -1365,7 +1367,7 @@ dnl [, OTHER-LIBRARIES]]])
|
||||
AC_DEFUN(AC_CHECK_LIB,
|
||||
[AC_MSG_CHECKING([for -l$1])
|
||||
changequote(, )dnl
|
||||
ac_lib_var=`echo $1 | tr './+' '__p'`
|
||||
ac_lib_var=`echo $1 | tr '.-/+' '___p'`
|
||||
changequote([, ])dnl
|
||||
AC_CACHE_VAL(ac_cv_lib_$ac_lib_var,
|
||||
[ac_save_LIBS="$LIBS"
|
||||
@ -1424,7 +1426,7 @@ undefine([AC_CV_NAME])dnl
|
||||
dnl ### Examining declarations
|
||||
|
||||
|
||||
dnl AC_TRY_CPP(INCLUDES, ACTION-IF-TRUE [, ACTION-IF-FALSE])
|
||||
dnl AC_TRY_CPP(INCLUDES, [ACTION-IF-TRUE [, ACTION-IF-FALSE]])
|
||||
AC_DEFUN(AC_TRY_CPP,
|
||||
[AC_REQUIRE_CPP()dnl
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
@ -1456,8 +1458,8 @@ AC_DEFUN(AC_EGREP_HEADER,
|
||||
|
||||
dnl Because this macro is used by AC_PROG_GCC_TRADITIONAL, which must
|
||||
dnl come early, it is not included in AC_BEFORE checks.
|
||||
dnl AC_EGREP_CPP(PATTERN, PROGRAM, ACTION-IF-FOUND [,
|
||||
dnl ACTION-IF-NOT-FOUND])
|
||||
dnl AC_EGREP_CPP(PATTERN, PROGRAM, [ACTION-IF-FOUND [,
|
||||
dnl ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_EGREP_CPP,
|
||||
[AC_REQUIRE_CPP()dnl
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
@ -1484,7 +1486,7 @@ dnl ### Examining syntax
|
||||
|
||||
|
||||
dnl AC_TRY_COMPILE(INCLUDES, FUNCTION-BODY,
|
||||
dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_TRY_COMPILE,
|
||||
[cat > conftest.$ac_ext <<EOF
|
||||
dnl This sometimes fails to find confdefs.h, for some reason.
|
||||
@ -1522,7 +1524,7 @@ AC_TRY_LINK([$2], [$3], [$4], [$5])dnl
|
||||
])
|
||||
|
||||
dnl AC_TRY_LINK(INCLUDES, FUNCTION-BODY,
|
||||
dnl ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_TRY_LINK,
|
||||
[cat > conftest.$ac_ext <<EOF
|
||||
dnl This sometimes fails to find confdefs.h, for some reason.
|
||||
@ -1550,8 +1552,8 @@ rm -f conftest*]
|
||||
dnl ### Checking for run-time features
|
||||
|
||||
|
||||
dnl AC_TRY_RUN(PROGRAM, ACTION-IF-TRUE [, ACTION-IF-FALSE
|
||||
dnl [, ACTION-IF-CROSS-COMPILING]])
|
||||
dnl AC_TRY_RUN(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE
|
||||
dnl [, ACTION-IF-CROSS-COMPILING]]])
|
||||
AC_DEFUN(AC_TRY_RUN,
|
||||
[AC_REQUIRE([AC_C_CROSS])dnl
|
||||
if test "$cross_compiling" = yes; then
|
||||
@ -1584,7 +1586,7 @@ rm -fr conftest*])
|
||||
dnl ### Checking for header files
|
||||
|
||||
|
||||
dnl AC_CHECK_HEADER(HEADER-FILE, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
dnl AC_CHECK_HEADER(HEADER-FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_CHECK_HEADER,
|
||||
[dnl Do the transliteration at runtime so arg 1 can be a shell variable.
|
||||
ac_safe=`echo "$1" | tr './\055' '___'`
|
||||
@ -1618,7 +1620,7 @@ done
|
||||
dnl ### Checking for library functions
|
||||
|
||||
|
||||
dnl AC_CHECK_FUNC(FUNCTION, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
AC_DEFUN(AC_CHECK_FUNC,
|
||||
[AC_MSG_CHECKING([for $1])
|
||||
AC_CACHE_VAL(ac_cv_func_$1,
|
||||
@ -1816,6 +1818,8 @@ ifdef(<<AC_LIST_HEADER>>,
|
||||
<<trap 'rm -fr `echo "$1 AC_LIST_HEADER" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15>>,
|
||||
<<trap 'rm -fr `echo "$1" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15>>)
|
||||
changequote([, ])dnl
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
AC_OUTPUT_FILES($1)
|
||||
ifdef([AC_LIST_HEADER], [AC_OUTPUT_HEADER(AC_LIST_HEADER)])dnl
|
||||
@ -1863,8 +1867,8 @@ dnl AC_OUTPUT_FILES(FILE...)
|
||||
define(AC_OUTPUT_FILES,
|
||||
[# Protect against being on the right side of a sed subst in config.status.
|
||||
changequote(, )dnl
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
||||
changequote([, ])dnl
|
||||
dnl These here document variables are unquoted when configure runs
|
||||
dnl but quoted when config.status runs, so variables are expanded once.
|
||||
|
@ -472,7 +472,7 @@ AC_TRY_RUN([#include <ctype.h>
|
||||
int main () { int i; for (i = 0; i < 256; i++)
|
||||
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
||||
exit (0); }
|
||||
], , ac_cv_header_stdc=no, ac_cv_header_stdc=no)
|
||||
], , ac_cv_header_stdc=no, :)
|
||||
fi])
|
||||
if test $ac_cv_header_stdc = yes; then
|
||||
AC_DEFINE(STDC_HEADERS)
|
||||
@ -731,9 +731,11 @@ AC_DEFUN(AC_TYPE_SIGNAL,
|
||||
#undef signal
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
extern "C" void (*signal (int, void (*)(int)))(int);
|
||||
#else
|
||||
void (*signal ()) ();
|
||||
#endif
|
||||
void (*signal ()) ();],
|
||||
],
|
||||
[int i;], ac_cv_type_signal=void, ac_cv_type_signal=int)])
|
||||
AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal)
|
||||
])
|
||||
@ -755,19 +757,14 @@ fi
|
||||
])
|
||||
|
||||
AC_DEFUN(AC_FUNC_MMAP,
|
||||
[AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap,
|
||||
[AC_CHECK_FUNCS(valloc getpagesize)
|
||||
AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap,
|
||||
[AC_TRY_RUN([
|
||||
/* Thanks to Mike Haertel and Jim Avera for this test. */
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#ifdef BSD
|
||||
# ifndef BSD4_1
|
||||
# define HAVE_GETPAGESIZE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETPAGESIZE
|
||||
# include <sys/param.h>
|
||||
# ifdef EXEC_PAGESIZE
|
||||
@ -788,7 +785,7 @@ AC_DEFUN(AC_FUNC_MMAP,
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __osf__
|
||||
#ifndef HAVE_VALLOC
|
||||
# define valloc malloc
|
||||
#endif
|
||||
|
||||
@ -803,7 +800,7 @@ main()
|
||||
{
|
||||
char *buf1, *buf2, *buf3;
|
||||
int i = getpagesize(), j;
|
||||
int i2 = getpagesize()*2;
|
||||
int i2 = i * 2;
|
||||
int fd;
|
||||
|
||||
buf1 = (char *)valloc(i2);
|
||||
@ -994,7 +991,8 @@ main() {
|
||||
|| fstat(fileno(stdout), &st) != 0
|
||||
);
|
||||
}
|
||||
}], ac_cv_func_vfork=yes, ac_cv_func_vfork=no, ac_cv_func_vfork=no)])
|
||||
}],
|
||||
ac_cv_func_vfork=yes, ac_cv_func_vfork=no, AC_CHECK_FUNC(vfork))])
|
||||
if test $ac_cv_func_vfork = no; then
|
||||
AC_DEFINE(vfork, fork)
|
||||
fi
|
||||
@ -1511,7 +1509,7 @@ char const *const *ccp;
|
||||
char **p;
|
||||
/* NEC SVR4.0.2 mips cc rejects this. */
|
||||
struct point {int x, y;};
|
||||
static struct point const zero;
|
||||
static struct point const zero = {0,0};
|
||||
/* AIX XL C 1.02.0.0 rejects this.
|
||||
It does not let you subtract one const X* pointer from another in an arm
|
||||
of an if-expression whose if-part is not a constant expression */
|
||||
@ -1689,7 +1687,7 @@ EOF
|
||||
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
||||
no_x=
|
||||
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
||||
eval `make acfindx 2>/dev/null | grep -v make`
|
||||
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
||||
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
||||
for ac_extension in a so sl; do
|
||||
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
||||
@ -1836,7 +1834,7 @@ else
|
||||
X_LIBS="$X_LIBS -L$x_libraries"
|
||||
if test "`(uname) 2>/dev/null`" = SunOS &&
|
||||
uname -r | grep '^5' >/dev/null; then
|
||||
X_LIBS="$X_LIBS -R$x_libraries"
|
||||
X_LIBS="$X_LIBS -R $x_libraries"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user