[lwatch-cvs] files configure,1.41,1.42 configure.ac,1.34,1.35
Brought to you by:
arturcz
|
From: <ar...@us...> - 2004-01-11 21:23:51
|
Update of /cvsroot/lwatch/files
In directory sc8-pr-cvs1:/tmp/cvs-serv8905
Modified Files:
configure configure.ac
Log Message:
- AC_C_CONST turned again, let's include "config.h" as first
Index: configure
===================================================================
RCS file: /cvsroot/lwatch/files/configure,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** configure 4 Jan 2004 01:59:01 -0000 1.41
--- configure 11 Jan 2004 21:23:48 -0000 1.42
***************
*** 1,6 ****
#! /bin/sh
! # From configure.ac Revision: 1.33 .
# Guess values for system-dependent variables and create Makefiles.
! # Generated by GNU Autoconf 2.58 for lwatch 0.4.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
--- 1,6 ----
#! /bin/sh
! # From configure.ac Revision: 1.34 .
# Guess values for system-dependent variables and create Makefiles.
! # Generated by GNU Autoconf 2.59 for lwatch 0.4.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
***************
*** 857,878 ****
--disable-dependency-tracking Speeds up one-time builds
--enable-dependency-tracking Do not reject slow dependency extractors
! --enable-debug
! Compile with diagnostic messages
! --enable-input=file
! Specify default input file other than /dev/lwatch
Some influential environment variables:
! CC
! C compiler command
! CFLAGS
! C compiler flags
! LDFLAGS
! linker flags, e.g. -L<lib dir> if you have
! libraries in a nonstandard directory <lib dir>
! CPPFLAGS
! C/C++ preprocessor flags, e.g. -I<include dir> if you
! have headers in a nonstandard directory <include dir>
! CPP
! C preprocessor
Use these variables to override the choices made by `configure' or to help
--- 857,871 ----
--disable-dependency-tracking Speeds up one-time builds
--enable-dependency-tracking Do not reject slow dependency extractors
! --enable-debug Compile with diagnostic messages
! --enable-input=file Specify default input file other than /dev/lwatch
Some influential environment variables:
! CC C compiler command
! CFLAGS C compiler flags
! LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
! nonstandard directory <lib dir>
! CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
! headers in a nonstandard directory <include dir>
! CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
***************
*** 975,979 ****
cat <<\_ACEOF
lwatch configure 0.4
! generated by GNU Autoconf 2.58
Copyright (C) 2003 Free Software Foundation, Inc.
--- 968,972 ----
cat <<\_ACEOF
lwatch configure 0.4
! generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
***************
*** 989,993 ****
It was created by lwatch $as_me 0.4, which was
! generated by GNU Autoconf 2.58. Invocation command line was
$ $0 $@
--- 982,986 ----
It was created by lwatch $as_me 0.4, which was
! generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
***************
*** 4157,4160 ****
--- 4150,4259 ----
# Checks for typedefs, structures, and compiler characteristics.
+ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
+ echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
+ if test "${ac_cv_c_const+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+
+ int
+ main ()
+ {
+ /* FIXME: Include the comments suggested by Paul. */
+ #ifndef __cplusplus
+ /* Ultrix mips cc rejects this. */
+ typedef int charset[2];
+ const charset x;
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *ccp;
+ char **p;
+ /* NEC SVR4.0.2 mips cc rejects this. */
+ struct point {int x, y;};
+ 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 */
+ const char *g = "string";
+ ccp = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++ccp;
+ p = (char**) ccp;
+ ccp = (char const *const *) p;
+ { /* SCO 3.2v4 cc rejects this. */
+ char *t;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+ *t++ = 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
+ int x[] = {25, 17};
+ const int *foo = &x[0];
+ ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ typedef const int *iptr;
+ iptr p = 0;
+ ++p;
+ }
+ { /* AIX XL C 1.02.0.0 rejects this saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ struct s { int j; const int *ap[3]; };
+ struct s *b; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+ }
+ #endif
+
+ ;
+ return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_c_const=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_c_const=no
+ fi
+ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
+ echo "${ECHO_T}$ac_cv_c_const" >&6
+ if test $ac_cv_c_const = no; then
+
+ cat >>confdefs.h <<\_ACEOF
+ #define const
+ _ACEOF
+
+ fi
+
# Checks for library functions.
***************
*** 5603,5607 ****
This file was extended by lwatch $as_me 0.4, which was
! generated by GNU Autoconf 2.58. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
--- 5702,5706 ----
This file was extended by lwatch $as_me 0.4, which was
! generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
***************
*** 5666,5670 ****
ac_cs_version="\\
lwatch config.status 0.4
! configured by $0, generated by GNU Autoconf 2.58,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
--- 5765,5769 ----
ac_cs_version="\\
lwatch config.status 0.4
! configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Index: configure.ac
===================================================================
RCS file: /cvsroot/lwatch/files/configure.ac,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** configure.ac 4 Jan 2004 01:59:01 -0000 1.34
--- configure.ac 11 Jan 2004 21:23:48 -0000 1.35
***************
*** 99,103 ****
# Checks for typedefs, structures, and compiler characteristics.
! dnl AC_C_CONST
# Checks for library functions.
--- 99,103 ----
# Checks for typedefs, structures, and compiler characteristics.
! AC_C_CONST
# Checks for library functions.
|