Skip to content

Commit ef6164d

Browse files
committed
Revert removal of signed, volatile, and signal handler arg type tests.
1 parent dffd8ca commit ef6164d

File tree

13 files changed

+376
-230
lines changed

13 files changed

+376
-230
lines changed

aclocal.m4

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.6 2000/08/28 11:53:12 petere Exp $
1+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.7 2000/08/29 09:36:37 petere Exp $
22
# This comes from the official Autoconf macro archive at
33
# <http://research.cys.de/autoconf-archive/>
44
# (I removed the $ before the Id CVS keyword below.)
@@ -65,7 +65,37 @@ extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_acc
6565
AC_DEFINE_UNQUOTED(ACCEPT_TYPE_ARG3,$ac_cv_func_accept_arg3)
6666
])
6767
# Macros to detect C compiler features
68-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.6 2000/08/28 11:53:12 petere Exp $
68+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.7 2000/08/29 09:36:37 petere Exp $
69+
70+
71+
# PGAC_C_SIGNED
72+
# -------------
73+
# Check if the C compiler understands signed types.
74+
AC_DEFUN([PGAC_C_SIGNED],
75+
[AC_CACHE_CHECK(for signed types, pgac_cv_c_signed,
76+
[AC_TRY_COMPILE([],
77+
[signed char c; signed short s; signed int i;],
78+
[pgac_cv_c_signed=yes],
79+
[pgac_cv_c_signed=no])])
80+
if test x"$pgac_cv_c_signed" = xno ; then
81+
AC_DEFINE(signed,, [Define empty if the C compiler does not understand signed types])
82+
fi])# PGAC_C_SIGNED
83+
84+
85+
86+
# PGAC_C_VOLATILE
87+
# ---------------
88+
# Check if the C compiler understands `volatile'. Note that if it doesn't
89+
# then this will potentially break the program semantics.
90+
AC_DEFUN([PGAC_C_VOLATILE],
91+
[AC_CACHE_CHECK(for volatile, pgac_cv_c_volatile,
92+
[AC_TRY_COMPILE([],
93+
[extern volatile int i;],
94+
[pgac_cv_c_volatile=yes],
95+
[pgac_cv_c_volatile=no])])
96+
if test x"$pgac_cv_c_volatile" = xno ; then
97+
AC_DEFINE(volatile,, [Define empty if the C compiler does not understand `volatile'])
98+
fi])# PGAC_C_VOLATILE
6999

70100

71101

@@ -154,7 +184,7 @@ undefine([AC_TYPE_NAME])dnl
154184
undefine([AC_CV_NAME])dnl
155185
])# PGAC_CHECK_ALIGNOF
156186
# Macros that test various C library quirks
157-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.6 2000/08/28 11:53:12 petere Exp $
187+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.7 2000/08/29 09:36:37 petere Exp $
158188

159189

160190
# PGAC_VAR_INT_TIMEZONE
@@ -233,7 +263,7 @@ fi
233263
HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
234264
AC_SUBST(HAVE_POSIX_SIGNALS)])# PGAC_FUNC_POSIX_SIGNALS
235265
# Macros to detect certain C++ features
236-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.6 2000/08/28 11:53:12 petere Exp $
266+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.7 2000/08/29 09:36:37 petere Exp $
237267

238268

239269
# PGAC_CLASS_STRING
@@ -299,7 +329,7 @@ AC_LANG_RESTORE])
299329
if test $pgac_cv_cxx_namespace_std = yes ; then
300330
AC_DEFINE(HAVE_NAMESPACE_STD, 1, [Define to 1 if the C++ compiler understands `using namespace std'])
301331
fi])# PGAC_CXX_NAMESPACE_STD
302-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.6 2000/08/28 11:53:12 petere Exp $
332+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.7 2000/08/29 09:36:37 petere Exp $
303333

304334

305335
# PGAC_PATH_FLEX
@@ -374,7 +404,7 @@ AC_SUBST(FLEXFLAGS)
374404
#
375405
# Autoconf macros for configuring the build of Python extension modules
376406
#
377-
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.6 2000/08/28 11:53:12 petere Exp $
407+
# $Header: /cvsroot/pgsql/aclocal.m4,v 1.7 2000/08/29 09:36:37 petere Exp $
378408
#
379409

380410
# PGAC_PROG_PYTHON

config/c-compiler.m4

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# Macros to detect C compiler features
2-
# $Header: /cvsroot/pgsql/config/c-compiler.m4,v 1.2 2000/08/27 19:00:22 petere Exp $
2+
# $Header: /cvsroot/pgsql/config/c-compiler.m4,v 1.3 2000/08/29 09:36:37 petere Exp $
3+
4+
5+
# PGAC_C_SIGNED
6+
# -------------
7+
# Check if the C compiler understands signed types.
8+
AC_DEFUN([PGAC_C_SIGNED],
9+
[AC_CACHE_CHECK(for signed types, pgac_cv_c_signed,
10+
[AC_TRY_COMPILE([],
11+
[signed char c; signed short s; signed int i;],
12+
[pgac_cv_c_signed=yes],
13+
[pgac_cv_c_signed=no])])
14+
if test x"$pgac_cv_c_signed" = xno ; then
15+
AC_DEFINE(signed,, [Define empty if the C compiler does not understand signed types])
16+
fi])# PGAC_C_SIGNED
17+
18+
19+
20+
# PGAC_C_VOLATILE
21+
# ---------------
22+
# Check if the C compiler understands `volatile'. Note that if it doesn't
23+
# then this will potentially break the program semantics.
24+
AC_DEFUN([PGAC_C_VOLATILE],
25+
[AC_CACHE_CHECK(for volatile, pgac_cv_c_volatile,
26+
[AC_TRY_COMPILE([],
27+
[extern volatile int i;],
28+
[pgac_cv_c_volatile=yes],
29+
[pgac_cv_c_volatile=no])])
30+
if test x"$pgac_cv_c_volatile" = xno ; then
31+
AC_DEFINE(volatile,, [Define empty if the C compiler does not understand `volatile'])
32+
fi])# PGAC_C_VOLATILE
333

434

535

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy