While trying to track down Nelson H. F. Beebe's problems with Solaris 9, I built coreutils 5.0.90 on Solaris 9 sparc (Forte Developer 7 C 5.4) using the following options:
CC=c89 CFLAGS="-xO5 -dalign -xlibmil -xcg92 -xsafe=mem" CXX=CC CXXFLAGS=-xO5 and got the following diagnostics: checking sys/sysinfo.h presence... yes configure: WARNING: sys/sysinfo.h: present but cannot be compiled configure: WARNING: sys/sysinfo.h: check for missing prerequisite headers? configure: WARNING: sys/sysinfo.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ------------------------------------ ## ... checking nfs/nfs_clnt.h presence... yes configure: WARNING: nfs/nfs_clnt.h: present but cannot be compiled configure: WARNING: nfs/nfs_clnt.h: check for missing prerequisite headers? configure: WARNING: nfs/nfs_clnt.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ------------------------------------ ## Here is a patch. (Perhaps all of coreutils should invoke AC_CHECK_HEADERS in the new form? But I wasn't that ambitious here.) 2003-08-05 Paul Eggert <[EMAIL PROTECTED]> * m4/prereq.m4 (jm_PREREQ_PHYSMEM, jm_PREREQ_STAT): Ignore headers that are present but cannot be compiled. This avoids spurious warnings on Solaris 9 sparc with Forte Developer 7 C 5.4. Index: m4/prereq.m4 =================================================================== RCS file: /cvsroot/coreutils/coreutils/m4/prereq.m4,v retrieving revision 1.72 diff -p -u -r1.72 prereq.m4 --- m4/prereq.m4 6 Jun 2003 07:07:13 -0000 1.72 +++ m4/prereq.m4 5 Aug 2003 22:57:16 -0000 @@ -118,7 +118,7 @@ AC_DEFUN([jm_PREREQ_PHYSMEM], [ AC_CHECK_HEADERS([unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h \ machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \ - sys/systemcfg.h]) + sys/systemcfg.h],,, [AC_INCLUDES_DEFAULT]) AC_CHECK_FUNCS(pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table) AC_REQUIRE([gl_SYS__SYSTEM_CONFIGURATION]) @@ -191,7 +191,8 @@ AC_DEFUN([jm_PREREQ_STAT], AC_CHECK_FUNCS(statvfs) # For `struct statfs' on Ultrix 4.4. - AC_CHECK_HEADERS(netinet/in.h nfs/nfs_clnt.h nfs/vfs.h) + AC_CHECK_HEADERS([netinet/in.h nfs/nfs_clnt.h nfs/vfs.h],,, + [AC_INCLUDES_DEFAULT]) AC_REQUIRE([jm_AC_TYPE_LONG_LONG]) _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils