]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
update multiple case example
authorDavid MacKenzie <djm@djmnet.org>
Thu, 22 Sep 1994 03:18:49 +0000 (03:18 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Thu, 22 Sep 1994 03:18:49 +0000 (03:18 +0000)
autoconf.texi
doc/autoconf.texi

index 3f2a52b2911dd127d520af3a2313f3fcd985ff2c..1b6fdb3611c09472ba505c2390defe17219864a6 100644 (file)
@@ -2824,21 +2824,21 @@ track of whether the remaining cases need to be checked.
 
 @example
 @group
-echo checking how to get filesystem type
+AC_MSG_CHECKING(how to get filesystem type)
 fstype=no
-# SVR4.
+# The order of these tests is important.
 AC_TRY_CPP([#include <sys/statvfs.h>
-#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=yes)
+#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
 if test $fstype = no; then
-# SVR3.
 AC_TRY_CPP([#include <sys/statfs.h>
-#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=yes)
+#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
 fi
 if test $fstype = no; then
-# AIX.
 AC_TRY_CPP([#include <sys/statfs.h>
-#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=yes)
+#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
 fi
+# (more cases omitted here)
+AC_MSG_RESULT($fstype)
 @end group
 @end example
 
index 3f2a52b2911dd127d520af3a2313f3fcd985ff2c..1b6fdb3611c09472ba505c2390defe17219864a6 100644 (file)
@@ -2824,21 +2824,21 @@ track of whether the remaining cases need to be checked.
 
 @example
 @group
-echo checking how to get filesystem type
+AC_MSG_CHECKING(how to get filesystem type)
 fstype=no
-# SVR4.
+# The order of these tests is important.
 AC_TRY_CPP([#include <sys/statvfs.h>
-#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=yes)
+#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
 if test $fstype = no; then
-# SVR3.
 AC_TRY_CPP([#include <sys/statfs.h>
-#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=yes)
+#include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
 fi
 if test $fstype = no; then
-# AIX.
 AC_TRY_CPP([#include <sys/statfs.h>
-#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=yes)
+#include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
 fi
+# (more cases omitted here)
+AC_MSG_RESULT($fstype)
 @end group
 @end example