aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/common
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/common')
-rwxr-xr-xsysdeps/unix/common/configure34
-rw-r--r--sysdeps/unix/common/glue-ctype.c34
2 files changed, 36 insertions, 32 deletions
diff --git a/sysdeps/unix/common/configure b/sysdeps/unix/common/configure
index 257ff68a4a..9e26b276f2 100755
--- a/sysdeps/unix/common/configure
+++ b/sysdeps/unix/common/configure
@@ -3,27 +3,28 @@ if test -z "$inhibit_glue"; then
# Find out what this system calls `sys_siglist'.
echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
+echo "configure:7: checking for sys_siglist" >&5
if eval "test \"`echo '$''{'ac_cv_check_symbol_sys_siglist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 11 "configure"
+#line 12 "configure"
#include "confdefs.h"
-int main() { return 0; }
-int t() {
+int main() {
extern char *sys_siglist[]; puts(*sys_siglist);
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
ac_cv_check_symbol_sys_siglist=yes
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_check_symbol_sys_siglist=no
fi
rm -f conftest*
-
fi
if test "$ac_cv_check_symbol_sys_siglist" = yes; then
@@ -35,27 +36,28 @@ EOF
fi
echo "$ac_t""$ac_cv_check_symbol_sys_siglist" 1>&6
echo $ac_n "checking for _sys_siglist""... $ac_c" 1>&6
+echo "configure:40: checking for _sys_siglist" >&5
if eval "test \"`echo '$''{'ac_cv_check_symbol__sys_siglist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 43 "configure"
+#line 45 "configure"
#include "confdefs.h"
-int main() { return 0; }
-int t() {
+int main() {
extern char *_sys_siglist[]; puts(*_sys_siglist);
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:52: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
ac_cv_check_symbol__sys_siglist=yes
else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_check_symbol__sys_siglist=no
fi
rm -f conftest*
-
fi
if test "$ac_cv_check_symbol__sys_siglist" = yes; then
@@ -70,25 +72,27 @@ echo "$ac_t""$ac_cv_check_symbol__sys_siglist" 1>&6
# Find out the name of the table the system's <ctype.h> uses for character
# classification. This is used by sysdeps/unix/common/glue-ctype.c.
echo $ac_n "checking ctype array name for glue""... $ac_c" 1>&6
+echo "configure:76: checking ctype array name for glue" >&5
if eval "test \"`echo '$''{'libc_cv_ctype_glue'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
for ctype in _ctype_ __ctype_ __ctype _ctype__ _ctype _locp; do
cat > conftest.$ac_ext <<EOF
-#line 79 "configure"
+#line 82 "configure"
#include "confdefs.h"
#include <ctype.h>
-int main() { return 0; }
-int t() {
+int main() {
$ctype[13];
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:89: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
libc_cv_ctype_glue="$ctype"; break
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
fi
rm -f conftest*
-
done
fi
diff --git a/sysdeps/unix/common/glue-ctype.c b/sysdeps/unix/common/glue-ctype.c
index d2d645b5b0..977f9d25bf 100644
--- a/sysdeps/unix/common/glue-ctype.c
+++ b/sysdeps/unix/common/glue-ctype.c
@@ -1,20 +1,20 @@
-/* Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
-This file is part of the GNU C Library.
+/* Copyright (C) 1992, 1993, 1994, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
-The GNU C Library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public License as
-published by the Free Software Foundation; either version 2 of the
-License, or (at your option) any later version.
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
-The GNU C Library 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
-Library General Public License for more details.
+ The GNU C Library 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
+ Library General Public License for more details.
-You should have received a copy of the GNU Library General Public
-License along with the GNU C Library; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-Cambridge, MA 02139, USA. */
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
/* Different systems have different names for the array.
This order is important for some systems. */
@@ -55,6 +55,7 @@ extern loc_t *_locp;
#define EVALLED_STRINGIFY(x) STRINGIFY (x)
+int
main ()
{
#ifdef TABLE
@@ -66,11 +67,10 @@ main ()
extern unsigned char TABLE[];
#endif
- puts ("#include <ansidecl.h>");
#ifdef TABLE_NAME
- printf ("CONST unsigned char %s[] =\n {\n", EVALLED_STRINGIFY (TABLE_NAME));
+ printf ("const unsigned char %s[] =\n {\n", EVALLED_STRINGIFY (TABLE_NAME));
#else
- printf ("CONST unsigned char %s[] =\n {\n", EVALLED_STRINGIFY (TABLE));
+ printf ("const unsigned char %s[] =\n {\n", EVALLED_STRINGIFY (TABLE));
#endif
for (i = -1; i < 256; ++i)