summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-08-13 12:18:26 +0000
committerwlemb <wlemb>2001-08-13 12:18:26 +0000
commit1cce6a2ecf0c58357b5e2187ea459bc165810ad8 (patch)
treebb3fb7887ee938f7ae90ab10f139c8a87931f22e
parent53b5abaf04f16b21b2358c6848d3264a1ebdd37e (diff)
downloadgroff-1cce6a2ecf0c58357b5e2187ea459bc165810ad8.tar.gz
* aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
* configure.ac: Add declaration test for strcasecmp(). * Makefile.in: Updated. * configure: Regenerated. * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() -- this is necessary because groff's mkstemp.cc is C++. Add declaration conditionally for strcasecmp().
-rw-r--r--ChangeLog10
-rw-r--r--Makefile.in7
-rw-r--r--aclocal.m42
-rwxr-xr-xconfigure421
-rw-r--r--configure.ac1
-rw-r--r--src/include/lib.h19
-rw-r--r--src/preproc/tbl/tbl.man2
7 files changed, 282 insertions, 180 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d040750..783472e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-08-11 Werner LEMBERG <wl@gnu.org>
+
+ * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
+ * configure.ac: Add declaration test for strcasecmp().
+ * Makefile.in: Updated.
+ * configure: Regenerated.
+ * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
+ this is necessary because groff's mkstemp.cc is C++.
+ Add declaration conditionally for strcasecmp().
+
2001-08-10 Werner LEMBERG <wl@gnu.org>
Intergrated pic2graph, contributed by Eric S. Raymond.
diff --git a/Makefile.in b/Makefile.in
index 89d03be4..cf79e738 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -198,6 +198,7 @@ man7dir=$(manroot)/man$(man7ext)
# -DHAVE_FMOD if you have fmod()
# -DHAVE_GETCWD if you have getcwd()
# -DHAVE_GETTIMEOFDAY if you have gettimeofday()
+# -DHAVE_MKSTEMP if you have mkstemp()
# -DHAVE_MMAP if you have mmap()
# -DHAVE_PUTENV if you have putenv()
# -DHAVE_RENAME if you have rename()
@@ -211,6 +212,8 @@ man7dir=$(manroot)/man$(man7ext)
# -DNEED_DECLARATION_PCLOSE if your C++ <stdio.h> doesn't declare pclose()
# -DNEED_DECLARATION_POPEN if your C++ <stdio.h> doesn't declare popen()
# -DNEED_DECLARATION_PUTENV if your C++ <stdlib.h> doesn't declare putenv()
+# -DNEED_DECLARATION_STRCASECMP if your C++ <string.h> doesn't declare
+# strcasecmp()
# -DNEED_DECLARATION_STRNCASECMP
# if your C++ <string.h> doesn't declare
# strncasecmp()
@@ -228,8 +231,8 @@ man7dir=$(manroot)/man$(man7ext)
# -DPAGEA4 if the the printer's page size is A4
DEFINES=@DEFS@
-# Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o in LIBOBJS if
-# your C library is missing the corresponding function.
+# Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o, mkstemp.o
+# in LIBOBJS if your C library is missing the corresponding function.
LIBOBJS=@LIBOBJS@
# CCC is the compiler for C++ (.cc) files.
diff --git a/aclocal.m4 b/aclocal.m4
index d72c696b..250ce3a8 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -482,7 +482,7 @@ dnl
AC_DEFUN(GROFF_MKSTEMP,
[AC_LANG_PUSH(C++)
AC_LIBSOURCE(mkstemp.cc)
-AC_CHECK_FUNC(mkstemp, , [_AC_LIBOBJ(mkstemp)])
+AC_CHECK_FUNC(mkstemp, [AC_DEFINE(HAVE_MKSTEMP)], [_AC_LIBOBJ(mkstemp)])
AC_LANG_POP(C++)])dnl
dnl
dnl
diff --git a/configure b/configure
index 8d8f5499..7d9abe0d 100755
--- a/configure
+++ b/configure
@@ -3121,15 +3121,15 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-echo "$as_me:3124: checking whether strncasecmp must be declared" >&5
-echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
+echo "$as_me:3124: checking whether strcasecmp must be declared" >&5
+echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
+if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
@@ -3155,7 +3155,7 @@ else
int
main ()
{
-char *(*pfn) = (char *(*)) strncasecmp
+char *(*pfn) = (char *(*)) strcasecmp
;
return 0;
}
@@ -3172,6 +3172,80 @@ if { (eval echo "$as_me:3164: \"$ac_compile\"") >&5
ac_status=$?
echo "$as_me:3173: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
+ groff_cv_decl_needed_strcasecmp=no
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+groff_cv_decl_needed_strcasecmp=yes
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+
+echo "$as_me:3184: result: $groff_cv_decl_needed_strcasecmp" >&5
+echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
+if test $groff_cv_decl_needed_strcasecmp = yes; then
+ cat >>confdefs.h <<\EOF
+#define NEED_DECLARATION_STRCASECMP 1
+EOF
+
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+echo "$as_me:3198: checking whether strncasecmp must be declared" >&5
+echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
+ac_ext=cc
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+#line 3210 "configure"
+#include "confdefs.h"
+
+#include <stdio.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+int
+main ()
+{
+char *(*pfn) = (char *(*)) strncasecmp
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:3238: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:3241: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:3244: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:3247: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
groff_cv_decl_needed_strncasecmp=no
else
echo "$as_me: failed program was:" >&5
@@ -3181,7 +3255,7 @@ fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:3184: result: $groff_cv_decl_needed_strncasecmp" >&5
+echo "$as_me:3258: result: $groff_cv_decl_needed_strncasecmp" >&5
echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
if test $groff_cv_decl_needed_strncasecmp = yes; then
cat >>confdefs.h <<\EOF
@@ -3201,10 +3275,10 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:3204: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
+echo "$as_me:3278: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
echo $ECHO_N "checking for sys_nerr in <errno.h> or <stdio.h>... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 3207 "configure"
+#line 3281 "configure"
#include "confdefs.h"
#include <errno.h>
#include <stdio.h>
@@ -3217,18 +3291,18 @@ int k; k = sys_nerr;
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:3220: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:3294: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:3223: \$? = $ac_status" >&5
+ echo "$as_me:3297: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:3226: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3300: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3229: \$? = $ac_status" >&5
+ echo "$as_me:3303: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:3231: result: yes" >&5
+ echo "$as_me:3305: result: yes" >&5
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
#define HAVE_SYS_NERR 1
EOF
@@ -3236,7 +3310,7 @@ EOF
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:3239: result: no" >&5
+echo "$as_me:3313: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext
@@ -3246,10 +3320,10 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-echo "$as_me:3249: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
+echo "$as_me:3323: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
echo $ECHO_N "checking for sys_errlist in <errno.h> or <stdio.h>... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 3252 "configure"
+#line 3326 "configure"
#include "confdefs.h"
#include <errno.h>
#include <stdio.h>
@@ -3262,18 +3336,18 @@ int k; k = (int)sys_errlist[0];
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:3265: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:3339: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:3268: \$? = $ac_status" >&5
+ echo "$as_me:3342: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:3271: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3345: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3274: \$? = $ac_status" >&5
+ echo "$as_me:3348: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:3276: result: yes" >&5
+ echo "$as_me:3350: result: yes" >&5
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
#define HAVE_SYS_ERRLIST 1
EOF
@@ -3281,7 +3355,7 @@ EOF
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:3284: result: no" >&5
+echo "$as_me:3358: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext
@@ -3291,10 +3365,10 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:3294: checking C++ <osfcn.h>" >&5
+echo "$as_me:3368: checking C++ <osfcn.h>" >&5
echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 3297 "configure"
+#line 3371 "configure"
#include "confdefs.h"
#include <osfcn.h>
int
@@ -3306,18 +3380,18 @@ read(0, 0, 0); open(0, 0);
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:3309: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:3383: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:3312: \$? = $ac_status" >&5
+ echo "$as_me:3386: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:3315: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3389: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3318: \$? = $ac_status" >&5
+ echo "$as_me:3392: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:3320: result: yes" >&5
+ echo "$as_me:3394: result: yes" >&5
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
#define HAVE_CC_OSFCN_H 1
EOF
@@ -3325,7 +3399,7 @@ EOF
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:3328: result: no" >&5
+echo "$as_me:3402: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext
@@ -3341,10 +3415,10 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:3344: checking C++ <limits.h>" >&5
+echo "$as_me:3418: checking C++ <limits.h>" >&5
echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 3347 "configure"
+#line 3421 "configure"
#include "confdefs.h"
#include <limits.h>
int
@@ -3356,18 +3430,18 @@ int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:3359: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:3433: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:3362: \$? = $ac_status" >&5
+ echo "$as_me:3436: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:3365: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3439: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3368: \$? = $ac_status" >&5
+ echo "$as_me:3442: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:3370: result: yes" >&5
+ echo "$as_me:3444: result: yes" >&5
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
#define HAVE_CC_LIMITS_H 1
EOF
@@ -3375,7 +3449,7 @@ EOF
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:3378: result: no" >&5
+echo "$as_me:3452: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext
@@ -3391,10 +3465,10 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:3394: checking for inttypes.h" >&5
+echo "$as_me:3468: checking for inttypes.h" >&5
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 3397 "configure"
+#line 3471 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <inttypes.h>
@@ -3407,16 +3481,16 @@ uintmax_t i = (uintmax_t)-1;
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:3410: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:3484: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:3413: \$? = $ac_status" >&5
+ echo "$as_me:3487: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:3416: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3490: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3419: \$? = $ac_status" >&5
+ echo "$as_me:3493: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
groff_cv_header_inttypes_h=yes
else
@@ -3425,7 +3499,7 @@ cat conftest.$ac_ext >&5
groff_cv_header_inttypes_h=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:3428: result: $groff_cv_header_inttypes_h" >&5
+echo "$as_me:3502: result: $groff_cv_header_inttypes_h" >&5
echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
@@ -3439,10 +3513,10 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:3442: checking for unsigned long long" >&5
+echo "$as_me:3516: checking for unsigned long long" >&5
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 3445 "configure"
+#line 3519 "configure"
#include "confdefs.h"
unsigned long long ull = 1; int i = 63;
int
@@ -3455,16 +3529,16 @@ return ull << i | ull >> i | ullmax / ull | ullmax % ull;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:3458: \"$ac_link\"") >&5
+if { (eval echo "$as_me:3532: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:3461: \$? = $ac_status" >&5
+ echo "$as_me:3535: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:3464: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3538: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3467: \$? = $ac_status" >&5
+ echo "$as_me:3541: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
groff_cv_type_unsigned_long_long=yes
else
@@ -3473,7 +3547,7 @@ cat conftest.$ac_ext >&5
groff_cv_type_unsigned_long_long=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-echo "$as_me:3476: result: $groff_cv_type_unsigned_long_long" >&5
+echo "$as_me:3550: result: $groff_cv_type_unsigned_long_long" >&5
echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
@@ -3497,10 +3571,10 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:3500: checking for declaration of time_t" >&5
+echo "$as_me:3574: checking for declaration of time_t" >&5
echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 3503 "configure"
+#line 3577 "configure"
#include "confdefs.h"
#include <time.h>
int
@@ -3512,23 +3586,23 @@ time_t t = time(0); struct tm *p = localtime(&t);
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:3515: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:3589: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:3518: \$? = $ac_status" >&5
+ echo "$as_me:3592: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:3521: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3595: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3524: \$? = $ac_status" >&5
+ echo "$as_me:3598: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:3526: result: yes" >&5
+ echo "$as_me:3600: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:3531: result: no" >&5
+echo "$as_me:3605: result: no" >&5
echo "${ECHO_T}no" >&6;cat >>confdefs.h <<\EOF
#define LONG_FOR_TIME_T 1
EOF
@@ -3541,13 +3615,13 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-echo "$as_me:3544: checking return type of signal handlers" >&5
+echo "$as_me:3618: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line 3550 "configure"
+#line 3624 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
@@ -3569,16 +3643,16 @@ int i;
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:3572: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:3646: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:3575: \$? = $ac_status" >&5
+ echo "$as_me:3649: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:3578: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3652: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3581: \$? = $ac_status" >&5
+ echo "$as_me:3655: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_signal=void
else
@@ -3588,17 +3662,17 @@ ac_cv_type_signal=int
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:3591: result: $ac_cv_type_signal" >&5
+echo "$as_me:3665: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6
cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
-echo "$as_me:3598: checking struct exception" >&5
+echo "$as_me:3672: checking struct exception" >&5
echo $ECHO_N "checking struct exception... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 3601 "configure"
+#line 3675 "configure"
#include "confdefs.h"
#include <math.h>
int
@@ -3610,18 +3684,18 @@ struct exception e;
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:3687: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:3616: \$? = $ac_status" >&5
+ echo "$as_me:3690: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:3619: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3693: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3622: \$? = $ac_status" >&5
+ echo "$as_me:3696: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:3624: result: yes" >&5
+ echo "$as_me:3698: result: yes" >&5
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_EXCEPTION 1
EOF
@@ -3629,11 +3703,11 @@ EOF
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:3632: result: no" >&5
+echo "$as_me:3706: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:3636: checking for sin in -lm" >&5
+echo "$as_me:3710: checking for sin in -lm" >&5
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_sin+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3641,7 +3715,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
-#line 3644 "configure"
+#line 3718 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -3660,16 +3734,16 @@ sin ();
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:3663: \"$ac_link\"") >&5
+if { (eval echo "$as_me:3737: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:3666: \$? = $ac_status" >&5
+ echo "$as_me:3740: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:3669: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3743: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3672: \$? = $ac_status" >&5
+ echo "$as_me:3746: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_m_sin=yes
else
@@ -3680,7 +3754,7 @@ fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:3683: result: $ac_cv_lib_m_sin" >&5
+echo "$as_me:3757: result: $ac_cv_lib_m_sin" >&5
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
if test $ac_cv_lib_m_sin = yes; then
LIBM=-lm
@@ -3689,23 +3763,23 @@ fi
for ac_header in stdlib.h unistd.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
-echo "$as_me:3692: checking for $ac_header" >&5
+echo "$as_me:3766: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line 3698 "configure"
+#line 3772 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
-if { (eval echo "$as_me:3702: \"$ac_cpp conftest.$ac_ext\"") >&5
+if { (eval echo "$as_me:3776: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
egrep -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:3708: \$? = $ac_status" >&5
+ echo "$as_me:3782: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -3724,7 +3798,7 @@ else
fi
rm -f conftest.err conftest.$ac_ext
fi
-echo "$as_me:3727: result: `eval echo '${'$ac_ac_Header'}'`" >&5
+echo "$as_me:3801: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
@@ -3737,13 +3811,13 @@ done
for ac_func in getpagesize
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
-echo "$as_me:3740: checking for $ac_func" >&5
+echo "$as_me:3814: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line 3746 "configure"
+#line 3820 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below. */
@@ -3774,16 +3848,16 @@ f = $ac_func;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:3777: \"$ac_link\"") >&5
+if { (eval echo "$as_me:3851: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:3780: \$? = $ac_status" >&5
+ echo "$as_me:3854: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:3783: \"$ac_try\"") >&5
+ { (eval echo "$as_me:3857: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3786: \$? = $ac_status" >&5
+ echo "$as_me:3860: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$ac_ac_var=yes"
else
@@ -3793,7 +3867,7 @@ eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:3796: result: `eval echo '${'$ac_ac_var'}'`" >&5
+echo "$as_me:3870: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
@@ -3803,7 +3877,7 @@ EOF
fi
done
-echo "$as_me:3806: checking for working mmap" >&5
+echo "$as_me:3880: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3812,7 +3886,7 @@ else
ac_cv_func_mmap_fixed_mapped=no
else
cat >conftest.$ac_ext <<_ACEOF
-#line 3815 "configure"
+#line 3889 "configure"
#include "confdefs.h"
/* Thanks to Mike Haertel and Jim Avera for this test.
Here is a matrix of mmap possibilities:
@@ -3944,15 +4018,15 @@ main ()
}
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:3947: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4021: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:3950: \$? = $ac_status" >&5
+ echo "$as_me:4024: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:3952: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4026: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:3955: \$? = $ac_status" >&5
+ echo "$as_me:4029: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func_mmap_fixed_mapped=yes
else
@@ -3964,7 +4038,7 @@ fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
fi
fi
-echo "$as_me:3967: result: $ac_cv_func_mmap_fixed_mapped" >&5
+echo "$as_me:4041: result: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
@@ -3981,13 +4055,13 @@ LIBS="$LIBS -lc $LIBM"
for ac_func in fmod strtol getcwd strerror putenv
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
-echo "$as_me:3984: checking for $ac_func" >&5
+echo "$as_me:4058: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line 3990 "configure"
+#line 4064 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below. */
@@ -4018,16 +4092,16 @@ f = $ac_func;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:4021: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4095: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4024: \$? = $ac_status" >&5
+ echo "$as_me:4098: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:4027: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4101: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4030: \$? = $ac_status" >&5
+ echo "$as_me:4104: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$ac_ac_var=yes"
else
@@ -4037,7 +4111,7 @@ eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:4040: result: `eval echo '${'$ac_ac_var'}'`" >&5
+echo "$as_me:4114: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
@@ -4054,13 +4128,13 @@ LIBS="$saved_libs"
for ac_func in rename strcasecmp strncasecmp strsep gettimeofday
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
-echo "$as_me:4057: checking for $ac_func" >&5
+echo "$as_me:4131: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line 4063 "configure"
+#line 4137 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below. */
@@ -4091,16 +4165,16 @@ f = $ac_func;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:4094: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4168: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4097: \$? = $ac_status" >&5
+ echo "$as_me:4171: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:4100: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4174: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4103: \$? = $ac_status" >&5
+ echo "$as_me:4177: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$ac_ac_var=yes"
else
@@ -4110,7 +4184,7 @@ eval "$ac_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:4113: result: `eval echo '${'$ac_ac_var'}'`" >&5
+echo "$as_me:4187: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
@@ -4126,13 +4200,13 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:4129: checking for mkstemp" >&5
+echo "$as_me:4203: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line 4135 "configure"
+#line 4209 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char mkstemp (); below. */
@@ -4163,16 +4237,16 @@ f = mkstemp;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:4166: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4240: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4169: \$? = $ac_status" >&5
+ echo "$as_me:4243: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:4172: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4246: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4175: \$? = $ac_status" >&5
+ echo "$as_me:4249: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func_mkstemp=yes
else
@@ -4182,10 +4256,13 @@ ac_cv_func_mkstemp=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:4185: result: $ac_cv_func_mkstemp" >&5
+echo "$as_me:4259: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
if test $ac_cv_func_mkstemp = yes; then
- :
+ cat >>confdefs.h <<\EOF
+#define HAVE_MKSTEMP 1
+EOF
+
else
LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
fi
@@ -4196,13 +4273,13 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-echo "$as_me:4199: checking for sys_siglist declaration in signal.h or unistd.h" >&5
+echo "$as_me:4276: checking for sys_siglist declaration in signal.h or unistd.h" >&5
echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
if test "${ac_cv_decl_sys_siglist+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line 4205 "configure"
+#line 4282 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
@@ -4220,16 +4297,16 @@ char *msg = *(sys_siglist + 1);
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:4223: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:4300: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:4226: \$? = $ac_status" >&5
+ echo "$as_me:4303: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:4229: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4306: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4232: \$? = $ac_status" >&5
+ echo "$as_me:4309: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_decl_sys_siglist=yes
else
@@ -4239,7 +4316,7 @@ ac_cv_decl_sys_siglist=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:4242: result: $ac_cv_decl_sys_siglist" >&5
+echo "$as_me:4319: result: $ac_cv_decl_sys_siglist" >&5
echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
if test $ac_cv_decl_sys_siglist = yes; then
@@ -4255,10 +4332,10 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:4258: checking whether ANSI array delete syntax supported" >&5
+echo "$as_me:4335: checking whether ANSI array delete syntax supported" >&5
echo $ECHO_N "checking whether ANSI array delete syntax supported... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 4261 "configure"
+#line 4338 "configure"
#include "confdefs.h"
int
@@ -4270,23 +4347,23 @@ char *p = new char[5]; delete [] p;
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:4273: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:4350: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:4276: \$? = $ac_status" >&5
+ echo "$as_me:4353: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:4279: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4356: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4282: \$? = $ac_status" >&5
+ echo "$as_me:4359: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:4284: result: yes" >&5
+ echo "$as_me:4361: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:4289: result: no" >&5
+echo "$as_me:4366: result: no" >&5
echo "${ECHO_T}no" >&6;cat >>confdefs.h <<\EOF
#define ARRAY_DELETE_NEEDS_SIZE 1
EOF
@@ -4305,10 +4382,10 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-echo "$as_me:4308: checking traditional preprocessor" >&5
+echo "$as_me:4385: checking traditional preprocessor" >&5
echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
-#line 4311 "configure"
+#line 4388 "configure"
#include "confdefs.h"
#define name2(a,b) a/**/b
int
@@ -4320,18 +4397,18 @@ int name2(foo,bar);
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:4323: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:4400: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:4326: \$? = $ac_status" >&5
+ echo "$as_me:4403: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:4329: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4406: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4332: \$? = $ac_status" >&5
+ echo "$as_me:4409: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:4334: result: yes" >&5
+ echo "$as_me:4411: result: yes" >&5
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
#define TRADITIONAL_CPP 1
EOF
@@ -4339,7 +4416,7 @@ EOF
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:4342: result: no" >&5
+echo "$as_me:4419: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext
@@ -4349,14 +4426,14 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-echo "$as_me:4352: checking w_coredump" >&5
+echo "$as_me:4429: checking w_coredump" >&5
echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
- echo "$as_me:4355: result: no" >&5
+ echo "$as_me:4432: result: no" >&5
echo "${ECHO_T}no" >&6
else
cat >conftest.$ac_ext <<_ACEOF
-#line 4359 "configure"
+#line 4436 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
@@ -4372,17 +4449,17 @@ main()
}
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:4375: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4452: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4378: \$? = $ac_status" >&5
+ echo "$as_me:4455: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:4380: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4457: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4383: \$? = $ac_status" >&5
+ echo "$as_me:4460: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- echo "$as_me:4385: result: yes" >&5
+ echo "$as_me:4462: result: yes" >&5
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
#define WCOREFLAG 0200
EOF
@@ -4391,18 +4468,18 @@ else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
-echo "$as_me:4394: result: no" >&5
+echo "$as_me:4471: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:4399: checking default value for grops -b option" >&5
+echo "$as_me:4476: checking default value for grops -b option" >&5
echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
-echo "$as_me:4402: result: $BROKEN_SPOOLER_FLAGS" >&5
+echo "$as_me:4479: result: $BROKEN_SPOOLER_FLAGS" >&5
echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
-echo "$as_me:4405: checking default paper size" >&5
+echo "$as_me:4482: checking default paper size" >&5
echo $ECHO_N "checking default paper size... $ECHO_C" >&6
if test -z "$PAGE"; then
descfile=
@@ -4447,22 +4524,22 @@ if test "x$PAGE" = "xA4"; then
EOF
fi
-echo "$as_me:4450: result: $PAGE" >&5
+echo "$as_me:4527: result: $PAGE" >&5
echo "${ECHO_T}$PAGE" >&6
-echo "$as_me:4453: checking for existing troff installation" >&5
+echo "$as_me:4530: checking for existing troff installation" >&5
echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
- echo "$as_me:4456: result: yes" >&5
+ echo "$as_me:4533: result: yes" >&5
echo "${ECHO_T}yes" >&6
g=g
else
- echo "$as_me:4460: result: no" >&5
+ echo "$as_me:4537: result: no" >&5
echo "${ECHO_T}no" >&6
g=
fi
-echo "$as_me:4465: checking for prefix of system macro packages" >&5
+echo "$as_me:4542: checking for prefix of system macro packages" >&5
echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
sys_tmac_prefix=
sys_tmac_file_prefix=
@@ -4479,11 +4556,11 @@ for d in /usr/share/lib/tmac /usr/lib/tmac; do
done
done
done
-echo "$as_me:4482: result: $sys_tmac_prefix" >&5
+echo "$as_me:4559: result: $sys_tmac_prefix" >&5
echo "${ECHO_T}$sys_tmac_prefix" >&6
tmac_wrap=
-echo "$as_me:4486: checking which system macro packages should be made available" >&5
+echo "$as_me:4563: checking which system macro packages should be made available" >&5
echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
if test "x$sys_tmac_file_prefix" = "xtmac."; then
for f in $sys_tmac_prefix*; do
@@ -4519,7 +4596,7 @@ elif test -n "$sys_tmac_prefix"; then
done
rm -f conftest.sol
fi
-echo "$as_me:4522: result: $tmac_wrap" >&5
+echo "$as_me:4599: result: $tmac_wrap" >&5
echo "${ECHO_T}$tmac_wrap" >&6
$srcdir/mkinstalldirs src/xditview
@@ -4634,7 +4711,7 @@ rm -f confdef2opt.sed
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ echo "$as_me:4637: creating $CONFIG_STATUS" >&5
+{ echo "$as_me:4714: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
@@ -4802,7 +4879,7 @@ cat >>$CONFIG_STATUS <<\EOF
echo "$ac_cs_version"; exit 0 ;;
--he | --h)
# Conflict between --help and --header
- { { echo "$as_me:4805: error: ambiguous option: $1
+ { { echo "$as_me:4882: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
@@ -4825,12 +4902,12 @@ Try \`$0 --help' for more information." >&2;}
'src/xditview/Imakefile' ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
# This is an error.
- -*) { { echo "$as_me:4828: error: unrecognized option: $1
+ -*) { { echo "$as_me:4905: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; } ;;
- *) { { echo "$as_me:4833: error: invalid argument: $1" >&5
+ *) { { echo "$as_me:4910: error: invalid argument: $1" >&5
echo "$as_me: error: invalid argument: $1" >&2;}
{ (exit 1); exit 1; }; };;
esac
@@ -5071,7 +5148,7 @@ done; }
esac
if test x"$ac_file" != x-; then
- { echo "$as_me:5074: creating $ac_file" >&5
+ { echo "$as_me:5151: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
fi
@@ -5089,7 +5166,7 @@ echo "$as_me: creating $ac_file" >&6;}
-) echo $tmp/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:5092: error: cannot find input file: $f" >&5
+ test -f "$f" || { { echo "$as_me:5169: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo $f;;
@@ -5102,7 +5179,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
echo $srcdir/$f
else
# /dev/null tree
- { { echo "$as_me:5105: error: cannot find input file: $f" >&5
+ { { echo "$as_me:5182: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
diff --git a/configure.ac b/configure.ac
index 60c7da36..4f8491bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,6 +30,7 @@ GROFF_NEED_DECLARATION(hypot)
GROFF_NEED_DECLARATION(popen)
GROFF_NEED_DECLARATION(pclose)
GROFF_NEED_DECLARATION(putenv)
+GROFF_NEED_DECLARATION(strcasecmp)
GROFF_NEED_DECLARATION(strncasecmp)
GROFF_SYS_NERR
GROFF_SYS_ERRLIST
diff --git a/src/include/lib.h b/src/include/lib.h
index 6eb67952..03038951 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -43,6 +43,12 @@ int is_prime(unsigned);
#include <strings.h>
#endif
+#ifndef HAVE_MKSTEMP
+/* since mkstemp() is defined as a real C++ function if taken from
+ groff's mkstemp.cc we need a declaration */
+int mkstemp(char *tmpl);
+#endif /* HAVE_MKSTEMP */
+
int mksdir(char *tmpl);
FILE *xtmpfile(char **namep = 0,
@@ -51,15 +57,11 @@ FILE *xtmpfile(char **namep = 0,
char *xtmptemplate(const char *postfix_long, const char *postfix_short);
#ifdef NEED_DECLARATION_POPEN
-
extern "C" { FILE *popen(const char *, const char *); }
-
#endif /* NEED_DECLARATION_POPEN */
#ifdef NEED_DECLARATION_PCLOSE
-
extern "C" { int pclose (FILE *); }
-
#endif /* NEED_DECLARATION_PCLOSE */
size_t file_name_max(const char *fname);
@@ -73,6 +75,15 @@ inline int illegal_input_char(int c)
return c >= 0 && illegal_char_table[c];
}
+#ifdef HAVE_STRCASECMP
+#ifdef NEED_DECLARATION_STRCASECMP
+extern "C" {
+ // Ultrix's string.h fails to declare this.
+ int strcasecmp(const char *, const char *);
+}
+#endif /* NEED_DECLARATION_STRCASECMP */
+#endif /* HAVE_STRCASECMP */
+
#if !defined(_AIX) && !defined(sinix) && !defined(__sinix__)
#ifdef HAVE_STRNCASECMP
#ifdef NEED_DECLARATION_STRNCASECMP
diff --git a/src/preproc/tbl/tbl.man b/src/preproc/tbl/tbl.man
index 058d6009..7447f02a 100644
--- a/src/preproc/tbl/tbl.man
+++ b/src/preproc/tbl/tbl.man
@@ -153,7 +153,7 @@ columns (GNU tbl only).
.
.LP
The global options must end with a semicolon.
-There might be whitespace after the option and its argument in parentheses.
+There might be whitespace after an option and its argument in parentheses.
.LP
After global options come lines describing the format of each line of
the table.