]> granicus.if.org Git - sudo/commitdiff
Define HAVE_EXTENDED_GLOB for extended glob (GLOB_TILDE and GLOB_BRACE)
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Oct 2004 18:27:49 +0000 (18:27 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Oct 2004 18:27:49 +0000 (18:27 +0000)
config.h.in
configure
configure.in

index dc4076f4015dbf89d4ce0b888ed9a48dc803027d..57beec97b9aff36f753034f05ff74cb504323078 100644 (file)
@@ -91,6 +91,9 @@
 /* Define to 1 if you have the <err.h> header file. */
 #undef HAVE_ERR_H
 
+/* [Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags. */
+#undef HAVE_EXTENDED_GLOB
+
 /* Define to 1 if you have the `flock' function. */
 #undef HAVE_FLOCK
 
index 9b911d7694cb3d005c002246e056f512fb75e0e7..0b583ee3837b5bd0cad3d461b29803bda3a59518 100755 (executable)
--- a/configure
+++ b/configure
@@ -26776,7 +26776,11 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  echo "$as_me:$LINENO: result: yes" >&5
+  cat >>confdefs.h <<\_ACEOF
+#define HAVE_EXTENDED_GLOB 1
+_ACEOF
+
+    echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
 else
   echo "$as_me: failed program was:" >&5
@@ -34050,6 +34054,8 @@ fi
 
 
 
+
+
 
 
 
index 90997035bee1f5ed1e57dfd6e9506759640d09af..7c3e4ec03534892bb2445ad225422d07b171ddf3 100644 (file)
@@ -1709,7 +1709,8 @@ if test -z "$BROKEN_GETCWD"; then
 fi
 AC_CHECK_FUNCS(glob, [AC_MSG_CHECKING(for GLOB_BRACE and GLOB_TILDE in glob.h)
 AC_TRY_COMPILE([#include <glob.h>], [int i = GLOB_BRACE | GLOB_TILDE; (void)i;],
-    [AC_MSG_RESULT(yes)], [AC_LIBOBJ(glob)]
+    [AC_DEFINE(HAVE_EXTENDED_GLOB)
+    AC_MSG_RESULT(yes)], [AC_LIBOBJ(glob)]
     [AC_MSG_RESULT(no)])], [AC_LIBOBJ(glob)])
 AC_CHECK_FUNCS(lockf flock, [break])
 AC_CHECK_FUNCS(waitpid wait3, [break])
@@ -2257,6 +2258,7 @@ AH_TEMPLATE(HAVE_BSD_AUTH_H, [Define to 1 if you use BSD authentication.])
 AH_TEMPLATE(HAVE_DCE, [Define to 1 if you use OSF DCE.])
 AH_TEMPLATE(HAVE_DD_FD, [Define to 1 if your `DIR' contains dd_fd.])
 AH_TEMPLATE(HAVE_DIRFD, [Define to 1 if you have the `dirfd' function or macro.])
+AH_TEMPLATE(HAVE_EXTENDED_GLOB, [Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags.])
 AH_TEMPLATE(HAVE_FNMATCH, [Define to 1 if you have the `fnmatch' function.])
 AH_TEMPLATE(HAVE_FWTK, [Define to 1 if you use the FWTK authsrv daemon.])
 AH_TEMPLATE(HAVE_GETAUTHUID, [Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x  shadow passwords)])