* tests/base.at, tests/compile.at, tests/foreign.at,
* tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
* tests/semantics.at, tests/suite.at, tests/tools.at,
* tests/torture.at: Ask Autotest mode, not Autoconf mode.
2001-08-20 22:44:38 +08:00
|
|
|
# -*- Autotest -*-
|
2000-02-07 19:54:29 +08:00
|
|
|
|
2000-12-07 23:21:54 +08:00
|
|
|
AT_BANNER([Semantics.])
|
2000-02-07 19:54:29 +08:00
|
|
|
|
2005-02-05 12:55:08 +08:00
|
|
|
# Copyright (C) 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc.
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
# 02111-1307, USA.
|
2000-03-25 17:06:24 +08:00
|
|
|
|
Eradicate AC_TRY_COMPILE.
* aclang.m4 (AC_PROG_CC_STDC, AC_C_BIGENDIAN, AC_C_INLINE,
AC_C_CONST, AC_C_VOLATILE, AC_F77_NAME_MANGLING): Use
`AC_COMPILE_IFELSE'.
* acspecific.m4 (AC_DECL_SYS_SIGLIST, _AC_CHECK_HEADER_DIRENT,
AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_TYPE_SIGNAL,
AC_FUNC_GETLOADAVG, AC_FUNC_SELECT_ARGTYPES, AC_STRUCT_TM,
AC_CYGWIN, AC_MINGW32, AC_EMXOS2): Likewise.
* tests/semantics.m4 (C keywords): Check that AC_C_CONST,
AC_C_VOLATILE, and AC_C_INLINE function properly with GCC.
2000-05-11 21:09:05 +08:00
|
|
|
|
|
|
|
## -------------------------------- ##
|
|
|
|
## Members of the AC_CHECK family. ##
|
|
|
|
## -------------------------------- ##
|
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_LIB
|
|
|
|
# ------------
|
|
|
|
# Well, I can't imagine a system where `cos' is neither in libc, nor
|
|
|
|
# in libm. Nor can I imagine a lib more likely to exists than libm.
|
2000-04-11 20:07:45 +08:00
|
|
|
# But there are systems without libm, on which we don't want to have
|
2000-03-25 17:06:24 +08:00
|
|
|
# this test fail, so exit successfully if `cos' is in libc.
|
2000-11-29 18:11:38 +08:00
|
|
|
AT_CHECK_MACRO([AC_CHECK_LIB],
|
2001-06-06 16:25:00 +08:00
|
|
|
[AC_TRY_LINK_FUNC(cos,
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[AC_MSG_ERROR([`cos' is in `libc'], 77)])
|
2001-06-06 16:25:00 +08:00
|
|
|
|
2000-10-27 22:15:28 +08:00
|
|
|
AC_CHECK_LIB(m, cos,,
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[AC_MSG_ERROR([cannot find `cos' in `libm'])])
|
2001-06-06 16:25:00 +08:00
|
|
|
|
|
|
|
# No kidding, using variables was broken in 2.50 :(
|
|
|
|
ac_sin=sin
|
|
|
|
AC_CHECK_LIB(m, $ac_sin,,
|
|
|
|
[AC_MSG_ERROR([cannot find `\$ac_sin' (= `$ac_sin') in `libm'])])
|
|
|
|
|
|
|
|
ac_m=m
|
|
|
|
AC_CHECK_LIB($ac_m, acos,,
|
|
|
|
[AC_MSG_ERROR([cannot find `acos' in `\$ac_m' (= `$ac_m')])])
|
|
|
|
|
|
|
|
ac_asin=asin
|
|
|
|
AC_CHECK_LIB($ac_m, $ac_asin,,
|
|
|
|
[AC_MSG_ERROR([cannot find `\$ac_asin' (= `$ac_asin') in `\$ac_m' (= `$at_m')])])
|
|
|
|
|
|
|
|
# But if the bug is in the caching mechanism, then be sure we
|
|
|
|
# correctly detect failures.
|
|
|
|
|
|
|
|
AC_CHECK_LIB(m, cossack,
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[AC_MSG_ERROR([found `cossack' in `libm'])])
|
2001-06-06 16:25:00 +08:00
|
|
|
|
|
|
|
# No kidding, using variables was broken in 2.50 :(
|
|
|
|
ac_sinner=sinner
|
|
|
|
AC_CHECK_LIB(m, $ac_sinner,
|
|
|
|
[AC_MSG_ERROR([found `\$ac_sinner' (= `$ac_sinner') in `libm'])])
|
|
|
|
|
|
|
|
ac_m=m
|
|
|
|
AC_CHECK_LIB($ac_m, acossack,
|
|
|
|
[AC_MSG_ERROR([found `acossack' in `\$ac_m' (= `$ac_m')])])
|
|
|
|
|
|
|
|
ac_asinner=asinner
|
|
|
|
AC_CHECK_LIB($ac_m, $ac_asinner,
|
|
|
|
[AC_MSG_ERROR([found `\$ac_asinner' (= `$ac_asinner') in `\$ac_m' (= `$at_m')])])
|
|
|
|
|
|
|
|
])
|
2000-03-25 17:06:24 +08:00
|
|
|
|
|
|
|
|
2003-05-18 22:48:02 +08:00
|
|
|
# AC_SEARCH_LIBS
|
|
|
|
# --------------
|
|
|
|
AT_CHECK_MACRO([AC_SEARCH_LIBS],
|
|
|
|
[
|
|
|
|
AC_SEARCH_LIBS(cos, oser m ust,,
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[AC_MSG_ERROR([cannot find `cos'])])
|
2003-05-18 22:48:02 +08:00
|
|
|
|
|
|
|
case "$ac_cv_search_cos" in
|
|
|
|
-loser|-lust) AC_MSG_ERROR([jeez, $ac_cv_search_cos must be a cool library!]) ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_SEARCH_LIBS(printf, oser c ust,,
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[AC_MSG_ERROR([cannot find `printf'])])
|
2003-05-18 22:48:02 +08:00
|
|
|
|
|
|
|
case "$ac_cv_search_printf" in
|
|
|
|
-loser|-lust) AC_MSG_ERROR([jeez, $ac_cv_search_printf must be a cool library!]) ;;
|
|
|
|
-lc) AC_MSG_ERROR([huh, you need to give -lc?])
|
|
|
|
esac
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_DECLS
|
|
|
|
# --------------
|
|
|
|
# Check that it performs the correct actions:
|
|
|
|
# Must define NEED_NO_DECL, but not NEED_YES_DECL.
|
2000-11-29 18:11:38 +08:00
|
|
|
AT_CHECK_MACRO([AC_CHECK_DECLS],
|
2000-05-11 00:16:31 +08:00
|
|
|
[[AC_CHECK_DECLS([yes, no],,,
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[int yes = 1;])]],
|
2000-02-08 01:28:43 +08:00
|
|
|
[AT_CHECK_DEFINES(
|
2000-02-15 17:33:59 +08:00
|
|
|
[#define HAVE_DECL_NO 0
|
|
|
|
#define HAVE_DECL_YES 1
|
2000-02-08 01:28:43 +08:00
|
|
|
])])
|
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_FUNCS
|
|
|
|
# --------------
|
|
|
|
# Check that it performs the correct actions:
|
2001-01-11 23:17:13 +08:00
|
|
|
# Must define HAVE_PRINTF, but not HAVE_AUTOCONF_FTNIRP
|
2000-11-03 19:59:39 +08:00
|
|
|
AT_CHECK_MACRO([AC_CHECK_FUNCS],
|
2001-01-11 23:17:13 +08:00
|
|
|
[AC_CHECK_FUNCS(printf autoconf_ftnirp)],
|
2000-11-03 19:59:39 +08:00
|
|
|
[AT_CHECK_DEFINES(
|
2001-01-11 23:17:13 +08:00
|
|
|
[/* #undef HAVE_AUTOCONF_FTNIRP */
|
|
|
|
#define HAVE_PRINTF 1
|
2000-11-03 19:59:39 +08:00
|
|
|
])])
|
|
|
|
|
|
|
|
|
2001-02-05 18:16:32 +08:00
|
|
|
# AC_REPLACE_FUNCS
|
|
|
|
# ----------------
|
|
|
|
# Check that it performs the correct actions: autoconf_ftnirp.c must
|
|
|
|
# be compiled, and must define HAVE_PRINTF, but not HAVE_AUTOCONF_FTNIRP
|
|
|
|
# FIXME: Maybe check the traces?
|
|
|
|
AT_SETUP([AC_REPLACE_FUNCS])
|
|
|
|
|
|
|
|
AT_DATA([config.in],
|
|
|
|
[@LIBOBJS@
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_CONFIGURE_AC(
|
|
|
|
[AC_CONFIG_FILES(config.libobjs:config.in)
|
|
|
|
AC_REPLACE_FUNCS(printf autoconf_ftnirp)])
|
|
|
|
|
|
|
|
AT_CHECK_AUTOCONF([-W obsolete])
|
|
|
|
AT_CHECK_AUTOHEADER
|
|
|
|
AT_CHECK_CONFIGURE
|
|
|
|
AT_CHECK_ENV
|
|
|
|
AT_CHECK_DEFINES(
|
|
|
|
[/* #undef HAVE_AUTOCONF_FTNIRP */
|
|
|
|
#define HAVE_PRINTF 1
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_CHECK([sed 's/ */ /g;s/^ //;s/ $//' config.libobjs], [],
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[autoconf_ftnirp$U.o
|
2001-02-05 18:16:32 +08:00
|
|
|
])
|
|
|
|
|
|
|
|
AT_CLEANUP([config.libobjs])
|
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_HEADERS
|
|
|
|
# ----------------
|
|
|
|
# Check that it performs the correct actions:
|
|
|
|
# Must define HAVE_STDIO_H, but not HAVE_AUTOCONF_IO_H.
|
2000-11-29 18:11:38 +08:00
|
|
|
AT_CHECK_MACRO([AC_CHECK_HEADERS],
|
2000-02-08 01:28:43 +08:00
|
|
|
[AC_CHECK_HEADERS(stdio.h autoconf_io.h)],
|
|
|
|
[AT_CHECK_DEFINES(
|
|
|
|
[/* #undef HAVE_AUTOCONF_IO_H */
|
|
|
|
#define HAVE_STDIO_H 1
|
|
|
|
])])
|
|
|
|
|
|
|
|
|
2003-05-18 22:48:02 +08:00
|
|
|
# AC_CHECK_HEADERS_OLD
|
|
|
|
# --------------------
|
|
|
|
# Check that it performs the correct actions:
|
|
|
|
# Must not check prerequisites, hence define header2.h
|
|
|
|
AT_SETUP([AC_CHECK_HEADERS_OLD])
|
|
|
|
|
|
|
|
AT_DATA([header1.h],
|
|
|
|
[typedef int foo;
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_DATA([header2.h],
|
|
|
|
[typedef foo bar;
|
|
|
|
])
|
|
|
|
|
2005-02-05 12:55:08 +08:00
|
|
|
AT_CONFIGURE_AC([AC_CHECK_HEADERS(header2.h, [], [], -)])
|
2003-05-18 22:48:02 +08:00
|
|
|
|
|
|
|
AT_CHECK_AUTOCONF([-W obsolete])
|
|
|
|
AT_CHECK_AUTOHEADER
|
2005-02-05 12:55:08 +08:00
|
|
|
AT_CHECK_CONFIGURE([CPPFLAGS=-I.])
|
2003-05-18 22:48:02 +08:00
|
|
|
AT_CHECK_ENV
|
|
|
|
AT_CHECK_DEFINES(
|
|
|
|
[#define HAVE_HEADER2_H 1
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_CLEANUP([header1.h header2.h])
|
|
|
|
|
|
|
|
|
|
|
|
# AC_CHECK_HEADERS_NEW
|
|
|
|
# --------------------
|
|
|
|
# Check that it performs the correct actions:
|
|
|
|
# Must check prerequisites, hence define header2.h but not header3.h
|
|
|
|
AT_SETUP([AC_CHECK_HEADERS_NEW])
|
|
|
|
|
|
|
|
AT_DATA([header1.h],
|
|
|
|
[typedef int foo;
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_DATA([header2.h],
|
|
|
|
[typedef foo bar;
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_DATA([header3.h],
|
|
|
|
[typedef bar wow;
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_CONFIGURE_AC(
|
2005-02-05 12:55:08 +08:00
|
|
|
[AC_CHECK_HEADERS(header2.h header3.h, [], [], [[@%:@include "header1.h"]])])
|
2003-05-18 22:48:02 +08:00
|
|
|
|
|
|
|
AT_CHECK_AUTOCONF([-W obsolete])
|
|
|
|
AT_CHECK_AUTOHEADER
|
2005-02-05 12:55:08 +08:00
|
|
|
AT_CHECK_CONFIGURE([CPPFLAGS=-I.])
|
2003-05-18 22:48:02 +08:00
|
|
|
AT_CHECK_ENV
|
|
|
|
AT_CHECK_DEFINES(
|
|
|
|
[#define HAVE_HEADER2_H 1
|
|
|
|
/* #undef HAVE_HEADER3_H */
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_CLEANUP([header1.h header2.h header3.h])
|
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_MEMBERS
|
|
|
|
# ----------------
|
|
|
|
# Check that it performs the correct actions.
|
2000-04-11 20:07:45 +08:00
|
|
|
# Must define HAVE_STRUCT_YES_S_YES, but not HAVE_STRUCT_YES_S_NO.
|
2000-11-29 18:11:38 +08:00
|
|
|
AT_CHECK_MACRO([AC_CHECK_MEMBERS],
|
2000-05-11 00:16:31 +08:00
|
|
|
[[AC_CHECK_MEMBERS([struct yes_s.yes, struct yes_s.no],,,
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[struct yes_s { int yes ;} ;])]],
|
2000-02-08 01:28:43 +08:00
|
|
|
[AT_CHECK_DEFINES(
|
2000-04-11 20:07:45 +08:00
|
|
|
[/* #undef HAVE_STRUCT_YES_S_NO */
|
|
|
|
#define HAVE_STRUCT_YES_S_YES 1
|
2000-02-07 19:54:29 +08:00
|
|
|
])])
|
|
|
|
|
|
|
|
|
2004-03-16 06:00:05 +08:00
|
|
|
# AC_CHECK_ALIGNOF
|
|
|
|
# ----------------
|
|
|
|
# Not cross-compiling.
|
|
|
|
AT_CHECK_MACRO([AC_CHECK_ALIGNOF],
|
|
|
|
[[AC_CHECK_ALIGNOF(char)
|
|
|
|
AC_CHECK_ALIGNOF(charchar,
|
|
|
|
[[#include <stddef.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
typedef char charchar[2];]])
|
|
|
|
AC_CHECK_ALIGNOF(charcharchar)
|
|
|
|
]],
|
|
|
|
[AT_CHECK_DEFINES(
|
|
|
|
[#define ALIGNOF_CHAR 1
|
|
|
|
#define ALIGNOF_CHARCHAR 1
|
|
|
|
#define ALIGNOF_CHARCHARCHAR 0
|
|
|
|
])])
|
|
|
|
|
|
|
|
|
|
|
|
# AC_CHECK_ALIGNOF
|
|
|
|
# ----------------
|
|
|
|
AT_CHECK_MACRO([AC_CHECK_ALIGNOF],
|
|
|
|
[[# Exercise the code used when cross-compiling
|
|
|
|
cross_compiling=yes
|
|
|
|
AC_CHECK_ALIGNOF(char)
|
|
|
|
AC_CHECK_ALIGNOF(charchar,
|
|
|
|
[[#include <stddef.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
typedef char charchar[2];]])
|
|
|
|
AC_CHECK_ALIGNOF(charcharchar)
|
|
|
|
]],
|
|
|
|
[AT_CHECK_DEFINES(
|
|
|
|
[#define ALIGNOF_CHAR 1
|
|
|
|
#define ALIGNOF_CHARCHAR 1
|
|
|
|
#define ALIGNOF_CHARCHARCHAR 0
|
|
|
|
])])
|
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_SIZEOF
|
2000-04-11 20:07:45 +08:00
|
|
|
# ---------------
|
2002-01-30 23:11:49 +08:00
|
|
|
# Not cross-compiling.
|
2000-11-29 18:11:38 +08:00
|
|
|
AT_CHECK_MACRO([AC_CHECK_SIZEOF],
|
2000-11-29 22:14:10 +08:00
|
|
|
[[AC_CHECK_SIZEOF(char)
|
2000-02-08 01:28:43 +08:00
|
|
|
AC_CHECK_SIZEOF(charchar,,
|
2000-11-29 22:14:10 +08:00
|
|
|
[[#include <stdio.h>
|
|
|
|
typedef char charchar[2];]])
|
2000-05-26 19:33:54 +08:00
|
|
|
AC_CHECK_SIZEOF(charcharchar)
|
2002-01-30 23:11:49 +08:00
|
|
|
]],
|
|
|
|
[AT_CHECK_DEFINES(
|
|
|
|
[#define SIZEOF_CHAR 1
|
|
|
|
#define SIZEOF_CHARCHAR 2
|
|
|
|
#define SIZEOF_CHARCHARCHAR 0
|
|
|
|
])])
|
|
|
|
|
2000-05-26 19:33:54 +08:00
|
|
|
|
2002-01-30 23:11:49 +08:00
|
|
|
# AC_CHECK_SIZEOF
|
|
|
|
# ---------------
|
|
|
|
AT_CHECK_MACRO([AC_CHECK_SIZEOF],
|
2002-04-20 14:09:01 +08:00
|
|
|
[[# Exercise the code used when cross-compiling
|
2000-05-26 19:33:54 +08:00
|
|
|
cross_compiling=yes
|
2002-01-30 23:11:49 +08:00
|
|
|
AC_CHECK_SIZEOF(char)
|
|
|
|
AC_CHECK_SIZEOF(charchar,,
|
2000-11-29 22:14:10 +08:00
|
|
|
[[#include <stdio.h>
|
2002-01-30 23:11:49 +08:00
|
|
|
typedef char charchar[2];]])
|
|
|
|
AC_CHECK_SIZEOF(charcharchar)
|
|
|
|
]],
|
2000-02-08 01:28:43 +08:00
|
|
|
[AT_CHECK_DEFINES(
|
2001-01-18 18:00:00 +08:00
|
|
|
[#define SIZEOF_CHAR 1
|
2000-02-08 01:28:43 +08:00
|
|
|
#define SIZEOF_CHARCHAR 2
|
2000-05-26 19:33:54 +08:00
|
|
|
#define SIZEOF_CHARCHARCHAR 0
|
2000-02-07 19:54:29 +08:00
|
|
|
])])
|
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_TYPES
|
|
|
|
# --------------
|
|
|
|
# Check that it performs the correct actions.
|
2000-04-11 20:07:45 +08:00
|
|
|
# Must define HAVE_STRUCT_YES_S, HAVE_INT, but not HAVE_STRUCT_NO_S.
|
|
|
|
# `int' and `struct yes_s' are both checked to test both the compiler
|
2000-03-25 17:06:24 +08:00
|
|
|
# builtin types, and defined types.
|
2000-11-29 18:11:38 +08:00
|
|
|
AT_CHECK_MACRO([AC_CHECK_TYPES],
|
2000-05-11 00:16:31 +08:00
|
|
|
[[AC_CHECK_TYPES([int, struct yes_s, struct no_s],,,
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
[struct yes_s { int yes ;} ;])]],
|
2000-02-08 01:28:43 +08:00
|
|
|
[AT_CHECK_DEFINES(
|
|
|
|
[#define HAVE_INT 1
|
2000-04-11 20:07:45 +08:00
|
|
|
/* #undef HAVE_STRUCT_NO_S */
|
|
|
|
#define HAVE_STRUCT_YES_S 1
|
2000-02-07 19:54:29 +08:00
|
|
|
])])
|
2000-02-10 17:40:55 +08:00
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_TYPES
|
|
|
|
# --------------
|
|
|
|
# Check that we properly dispatch properly to the old implementation
|
|
|
|
# or to the new one.
|
2000-12-14 23:36:47 +08:00
|
|
|
AT_SETUP([AC_CHECK_TYPES: backward compatibility])
|
2000-02-10 18:24:10 +08:00
|
|
|
|
2001-08-20 22:45:09 +08:00
|
|
|
AT_DATA([configure.ac],
|
2000-02-10 18:24:10 +08:00
|
|
|
[[AC_INIT
|
Get rid of the m4 name spaces.
* libm4.m4 (m4_changequote, m4_define, m4_defn, m4_dnl, m4_indir,
m4_popdef, m4_pushdef, m4_undefine, m4_namespace_push,
m4_namespace_pop, m4_namespace_register, m4_namespace_define,
m4_disable, m4_enable): Removed.
All dependencies adjusted.
* libm4.m4: Remove all the name space initialization.
* acgeneral.m4: Adjust.
(AU_DEFINE): Redefine as `AC_DEFUN'.
* autoupdate.m4: Adjust.
* tests/tools.m4: Temporarily disable the `autoupdate' test.
2000-05-11 21:28:47 +08:00
|
|
|
define([_AC_CHECK_TYPE_NEW], [NEW])
|
|
|
|
define([_AC_CHECK_TYPE_OLD], [OLD])
|
2000-02-10 18:24:10 +08:00
|
|
|
#(cut-from-here
|
|
|
|
AC_CHECK_TYPE(ptrdiff_t)
|
|
|
|
AC_CHECK_TYPE(ptrdiff_t, int)
|
2004-03-30 15:55:25 +08:00
|
|
|
AC_CHECK_TYPE(quad, long long int)
|
2000-02-10 18:24:10 +08:00
|
|
|
AC_CHECK_TYPE(table_42, [int[42]])
|
2000-03-25 17:06:24 +08:00
|
|
|
# Nice machine!
|
2000-02-10 18:24:10 +08:00
|
|
|
AC_CHECK_TYPE(uint8_t, uint65536_t)
|
|
|
|
AC_CHECK_TYPE(a,b,c,d)
|
|
|
|
#to-here)
|
|
|
|
AC_OUTPUT
|
|
|
|
]])
|
|
|
|
|
2001-07-17 18:01:09 +08:00
|
|
|
AT_CHECK_AUTOCONF
|
2000-02-17 17:38:08 +08:00
|
|
|
AT_CHECK([[sed -e '/^#(cut-from-here/,/^#to-here)/!d' -e '/^#/d' configure]],
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
0,
|
|
|
|
[NEW
|
2000-02-10 18:24:10 +08:00
|
|
|
OLD
|
|
|
|
OLD
|
|
|
|
OLD
|
2001-07-17 18:01:09 +08:00
|
|
|
OLD
|
2000-02-10 18:24:10 +08:00
|
|
|
NEW
|
|
|
|
])
|
|
|
|
|
2000-12-19 16:15:48 +08:00
|
|
|
AT_CLEANUP
|
2000-02-10 18:24:10 +08:00
|
|
|
|
|
|
|
|
2000-03-25 17:06:24 +08:00
|
|
|
# AC_CHECK_FILES
|
|
|
|
# --------------
|
|
|
|
# FIXME: To really test HAVE_AC_EXISTS2 and HAVE_AC_MISSING2 we need to
|
2000-12-23 18:11:57 +08:00
|
|
|
# open AH_TEMPLATE to `configure.ac', which is not yet the case.
|
2000-11-29 18:11:38 +08:00
|
|
|
AT_CHECK_MACRO([AC_CHECK_FILES],
|
2001-01-18 17:30:10 +08:00
|
|
|
[touch at-exists1 at-exists2
|
|
|
|
ac_exists2=at-exists2
|
|
|
|
ac_missing2=at-missing2
|
|
|
|
AC_CHECK_FILES(at-exists1 at-missing1 $ac_exists2 $ac_missing2)
|
|
|
|
rm at-exists1 at-exists2],
|
2000-02-10 17:40:55 +08:00
|
|
|
[AT_CHECK_DEFINES(
|
2001-01-18 17:30:10 +08:00
|
|
|
[#define HAVE_AT_EXISTS1 1
|
|
|
|
/* #undef HAVE_AT_MISSING1 */
|
2000-02-10 17:40:55 +08:00
|
|
|
])])
|
2000-03-03 22:15:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2000-03-21 20:22:27 +08:00
|
|
|
## ------------------------------ ##
|
|
|
|
## AC_CHECK_PROG & AC_PATH_PROG. ##
|
|
|
|
## ------------------------------ ##
|
2000-03-03 22:15:41 +08:00
|
|
|
|
|
|
|
|
2000-10-27 22:15:28 +08:00
|
|
|
# AT_CHECK_PROGS_PREPARE
|
|
|
|
# ----------------------
|
2000-03-03 22:15:41 +08:00
|
|
|
# Create a sub directory `path' with 6 subdirs which all 7 contain
|
|
|
|
# an executable `tool'. `6' contains a `better' tool.
|
2000-11-29 18:11:38 +08:00
|
|
|
m4_define([AT_CHECK_PROGS_PREPARE],
|
2000-10-27 22:15:28 +08:00
|
|
|
[mkdir path
|
2000-03-03 22:15:41 +08:00
|
|
|
|
|
|
|
cat >path/tool <<\EOF
|
|
|
|
#! /bin/sh
|
|
|
|
exit 0
|
|
|
|
EOF
|
|
|
|
chmod +x path/tool
|
|
|
|
|
|
|
|
for i in 1 2 3 4 5 6
|
|
|
|
do
|
|
|
|
mkdir path/$i
|
|
|
|
cp path/tool path/$i
|
|
|
|
done
|
2000-10-27 22:15:28 +08:00
|
|
|
cp path/tool path/6/better])
|
2000-03-03 22:15:41 +08:00
|
|
|
|
2000-03-21 20:22:27 +08:00
|
|
|
|
|
|
|
# -------------------------------- #
|
|
|
|
# AC_CHECK_PROG & AC_CHECK_PROGS. #
|
|
|
|
# -------------------------------- #
|
|
|
|
|
2000-11-29 18:11:38 +08:00
|
|
|
AT_SETUP([AC_CHECK_PROG & AC_CHECK_PROGS])
|
2000-10-27 22:15:28 +08:00
|
|
|
|
|
|
|
AT_CHECK_PROGS_PREPARE
|
|
|
|
|
2001-08-20 22:45:09 +08:00
|
|
|
AT_DATA([configure.ac],
|
2000-03-03 22:15:41 +08:00
|
|
|
[[AC_INIT
|
2000-03-21 20:22:27 +08:00
|
|
|
pwd=`pwd`
|
2001-09-10 15:17:41 +08:00
|
|
|
p="1${PATH_SEPARATOR}2${PATH_SEPARATOR}3${PATH_SEPARATOR}4${PATH_SEPARATOR}5${PATH_SEPARATOR}6"
|
2001-03-13 20:43:14 +08:00
|
|
|
path=`echo $p | sed -e 's,\([[0-9]]\),'"$pwd"'/path/\1,g'`
|
2000-10-27 22:15:28 +08:00
|
|
|
fail=false
|
2000-03-03 22:15:41 +08:00
|
|
|
|
|
|
|
AC_CHECK_PROG(TOOL1, tool, found, not-found, $path)
|
2000-10-27 22:15:28 +08:00
|
|
|
test "$TOOL1" = found || fail=:
|
2000-03-03 22:15:41 +08:00
|
|
|
|
|
|
|
# Yes, the semantics of this macro is weird.
|
|
|
|
AC_CHECK_PROG(TOOL2, tool,, not-found, $path)
|
2000-10-27 22:15:28 +08:00
|
|
|
test "$TOOL2" = not-found || fail=:
|
2000-03-03 22:15:41 +08:00
|
|
|
|
2000-03-21 20:22:27 +08:00
|
|
|
AC_CHECK_PROG(TOOL3, tool, tool, not-found, $path, $pwd/path/1/tool)
|
2000-10-27 22:15:28 +08:00
|
|
|
test "$TOOL3" = $pwd/path/2/tool || fail=:
|
2000-03-03 22:15:41 +08:00
|
|
|
|
2000-03-21 20:22:27 +08:00
|
|
|
AC_CHECK_PROG(TOOL4, better, better, not-found, $path, $pwd/path/1/tool)
|
2000-10-27 22:15:28 +08:00
|
|
|
test "$TOOL4" = better || fail=:
|
2000-03-03 22:15:41 +08:00
|
|
|
|
|
|
|
# When a tool is not found, and no value is given for not-found,
|
|
|
|
# the variable is left empty.
|
|
|
|
AC_CHECK_PROGS(TOOL5, missing,, $path)
|
2000-10-27 22:15:28 +08:00
|
|
|
test -z "$TOOL5" || fail=:
|
2000-03-03 22:15:41 +08:00
|
|
|
|
|
|
|
AC_CHECK_PROGS(TOOL6, missing tool better,, $path)
|
2000-10-27 22:15:28 +08:00
|
|
|
test "$TOOL6" = tool || fail=:
|
2000-03-03 22:15:41 +08:00
|
|
|
|
2001-01-18 17:30:10 +08:00
|
|
|
# No AC-OUTPUT, we don't need config.status.
|
2000-10-27 22:15:28 +08:00
|
|
|
$fail &&
|
|
|
|
AC_MSG_ERROR([[CHECK_PROG failed]])
|
2000-11-02 03:57:54 +08:00
|
|
|
AS_EXIT(0)
|
2000-03-03 22:15:41 +08:00
|
|
|
]])
|
|
|
|
|
2000-11-23 17:52:35 +08:00
|
|
|
AT_CHECK_AUTOCONF
|
|
|
|
AT_CHECK_CONFIGURE
|
2000-03-03 22:15:41 +08:00
|
|
|
|
2000-11-23 17:52:35 +08:00
|
|
|
AT_CLEANUP(path)
|
2000-10-27 22:15:28 +08:00
|
|
|
|
2001-08-12 20:35:50 +08:00
|
|
|
|
2001-08-31 21:32:54 +08:00
|
|
|
|
|
|
|
## ---------------- ##
|
|
|
|
## AC_C_BIGENDIAN. ##
|
|
|
|
## ---------------- ##
|
|
|
|
|
2005-02-05 16:28:35 +08:00
|
|
|
AT_SETUP([AC_C_BIGENDIAN])
|
2001-09-13 14:53:19 +08:00
|
|
|
AT_KEYWORDS([cross])
|
2001-08-12 20:35:50 +08:00
|
|
|
|
|
|
|
# Make sure that AC_C_BIGENDIAN behave the same whether we are
|
2001-08-12 23:20:29 +08:00
|
|
|
# cross-compiling or not.
|
|
|
|
|
|
|
|
_AT_CHECK_AC_MACRO(
|
|
|
|
[AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
|
|
|
|
echo $ac_endian > at-endian
|
|
|
|
])
|
2001-08-12 20:35:50 +08:00
|
|
|
|
|
|
|
rm -f config.hin # So that next run of autoheader is quiet.
|
|
|
|
_AT_CHECK_AC_MACRO(
|
|
|
|
[cross_compiling=yes
|
2001-08-12 23:20:29 +08:00
|
|
|
AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
|
|
|
|
ac_prevendian=`cat at-endian`
|
2002-06-27 15:50:42 +08:00
|
|
|
# Check that we have found the same result as in the previous run
|
2001-08-12 23:20:29 +08:00
|
|
|
# or unknown (because the cross-compiling check is allowed to fail;
|
|
|
|
# although it might be interesting to suppress this comparison, just
|
|
|
|
# to know on which system it fails if it ever does).
|
2002-06-27 15:50:42 +08:00
|
|
|
if test $ac_endian != $ac_prevendian && test $ac_endian != unknown; then
|
2001-08-12 23:20:29 +08:00
|
|
|
AC_MSG_ERROR([unexpected endianness: first run found '$ac_prevendian' but second run found '$ac_endian'])
|
|
|
|
fi
|
|
|
|
])
|
2001-08-12 20:35:50 +08:00
|
|
|
|
|
|
|
# Make sure AC_C_BIGENDIAN with no argument will define WORDS_BIGENDIAN
|
|
|
|
AT_CONFIGURE_AC([AC_C_BIGENDIAN])
|
2002-10-16 14:38:50 +08:00
|
|
|
AT_CHECK_AUTOHEADER
|
2001-08-12 20:35:50 +08:00
|
|
|
AT_CHECK([grep WORDS_BIGENDIAN config.hin], [], [ignore])
|
|
|
|
|
2001-08-12 23:20:29 +08:00
|
|
|
AT_CLEANUP(at-endian)
|
2000-03-21 20:22:27 +08:00
|
|
|
|
2001-08-31 21:32:54 +08:00
|
|
|
|
2000-03-21 20:22:27 +08:00
|
|
|
# ------------------------------ #
|
|
|
|
# AC_PATH_PROG & AC_PATH_PROGS. #
|
|
|
|
# ------------------------------ #
|
|
|
|
|
2005-02-05 16:28:35 +08:00
|
|
|
AT_SETUP([AC_PATH_PROG & AC_PATH_PROGS])
|
2000-10-27 22:15:28 +08:00
|
|
|
|
|
|
|
AT_CHECK_PROGS_PREPARE
|
|
|
|
|
2001-08-20 22:45:09 +08:00
|
|
|
AT_DATA([configure.ac],
|
2000-03-21 20:22:27 +08:00
|
|
|
[[AC_INIT
|
|
|
|
pwd=`pwd`
|
2001-09-10 15:17:41 +08:00
|
|
|
p="1${PATH_SEPARATOR}2${PATH_SEPARATOR}3${PATH_SEPARATOR}4${PATH_SEPARATOR}5${PATH_SEPARATOR}6"
|
2001-03-13 20:43:14 +08:00
|
|
|
path=`echo $p | sed -e 's,\([[0-9]]\),'"$pwd"'/path/\1,g'`
|
2000-10-27 22:15:28 +08:00
|
|
|
fail=false
|
2000-03-21 20:22:27 +08:00
|
|
|
|
|
|
|
AC_PATH_PROG(TOOL1, tool, not-found, $path)
|
2000-10-27 22:15:28 +08:00
|
|
|
test "$TOOL1" = $pwd/path/1/tool || fail=:
|
2000-03-21 20:22:27 +08:00
|
|
|
|
|
|
|
AC_PATH_PROG(TOOL2, better, not-found, $path)
|
2000-10-27 22:15:28 +08:00
|
|
|
test "$TOOL2" = $pwd/path/6/better || fail=:
|
2000-03-21 20:22:27 +08:00
|
|
|
|
|
|
|
# When a tool is not found, and no value is given for not-found,
|
|
|
|
# the variable is left empty.
|
|
|
|
AC_PATH_PROGS(TOOL3, missing,, $path)
|
2000-10-27 22:15:28 +08:00
|
|
|
test -z "$TOOL3" || fail=:
|
2000-03-21 20:22:27 +08:00
|
|
|
|
|
|
|
AC_PATH_PROGS(TOOL4, missing tool better,, $path)
|
2000-10-27 22:15:28 +08:00
|
|
|
test "$TOOL4" = $pwd/path/1/tool || fail=:
|
2000-03-21 20:22:27 +08:00
|
|
|
|
2001-01-18 17:30:10 +08:00
|
|
|
# No AC-OUTPUT, we don't need config.status.
|
2000-10-27 22:15:28 +08:00
|
|
|
$fail &&
|
|
|
|
AC_MSG_ERROR([[PATH_PROG failed]])
|
2000-11-02 03:57:54 +08:00
|
|
|
AS_EXIT(0)
|
2000-03-21 20:22:27 +08:00
|
|
|
]])
|
|
|
|
|
2000-11-23 17:52:35 +08:00
|
|
|
AT_CHECK_AUTOCONF
|
|
|
|
AT_CHECK_CONFIGURE
|
2000-03-21 20:22:27 +08:00
|
|
|
|
2000-11-23 17:52:35 +08:00
|
|
|
AT_CLEANUP(path)
|
Eradicate AC_TRY_COMPILE.
* aclang.m4 (AC_PROG_CC_STDC, AC_C_BIGENDIAN, AC_C_INLINE,
AC_C_CONST, AC_C_VOLATILE, AC_F77_NAME_MANGLING): Use
`AC_COMPILE_IFELSE'.
* acspecific.m4 (AC_DECL_SYS_SIGLIST, _AC_CHECK_HEADER_DIRENT,
AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_TYPE_SIGNAL,
AC_FUNC_GETLOADAVG, AC_FUNC_SELECT_ARGTYPES, AC_STRUCT_TM,
AC_CYGWIN, AC_MINGW32, AC_EMXOS2): Likewise.
* tests/semantics.m4 (C keywords): Check that AC_C_CONST,
AC_C_VOLATILE, and AC_C_INLINE function properly with GCC.
2000-05-11 21:09:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-12-07 23:21:54 +08:00
|
|
|
## -------------- ##
|
|
|
|
## AC_PATH_XTRA. ##
|
|
|
|
## -------------- ##
|
|
|
|
|
|
|
|
|
|
|
|
AT_SETUP([AC_PATH_XTRA])
|
|
|
|
|
|
|
|
_AT_CHECK_AC_MACRO([AC_PATH_XTRA])
|
|
|
|
|
|
|
|
# Check X_DISPLAY_MISSING.
|
2000-12-19 16:15:48 +08:00
|
|
|
AT_CHECK_CONFIGURE([--without-x])
|
2000-12-07 23:21:54 +08:00
|
|
|
AT_CHECK_DEFINES(
|
|
|
|
[#define X_DISPLAY_MISSING 1
|
|
|
|
])
|
|
|
|
|
|
|
|
AT_CLEANUP
|
2001-06-26 02:27:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
## ------------------------------- ##
|
|
|
|
## Obsolete non-updatable macros. ##
|
|
|
|
## ------------------------------- ##
|
|
|
|
|
|
|
|
|
|
|
|
AT_CHECK_MACRO([AC_SYS_RESTARTABLE_SYSCALLS], , ,[-W no-obsolete])
|
|
|
|
AT_CHECK_MACRO([AC_FUNC_WAIT3], , ,[-W no-obsolete])
|