X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fglob.m4;h=3e9978aba38883fe8e5564a619b95e0f485064fe;hb=9e83e486f6e0949ad5d3843011ae88c495681727;hp=759c6f84f719eabf31b3ebc2aace24c7d84f5dd5;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/m4/glob.m4 b/m4/glob.m4 index 759c6f84f..3e9978aba 100644 --- a/m4/glob.m4 +++ b/m4/glob.m4 @@ -1,5 +1,5 @@ -# glob.m4 serial 11 -dnl Copyright (C) 2005-2007, 2009-2011 Free Software Foundation, Inc. +# glob.m4 serial 14 +dnl Copyright (C) 2005-2007, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,15 +8,6 @@ dnl with or without modifications, as long as this notice is preserved. # rather than vanilla POSIX glob. This means your code should # always include for the glob prototypes. -AC_DEFUN([gl_GLOB_SUBSTITUTE], -[ - gl_PREREQ_GLOB - - GLOB_H=glob.h - AC_LIBOBJ([glob]) - AC_SUBST([GLOB_H]) -]) - AC_DEFUN([gl_GLOB], [ GLOB_H= AC_CHECK_HEADERS([glob.h], [], [GLOB_H=glob.h]) @@ -64,9 +55,8 @@ if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;]])], rm -f conf$$-globtest - if test -n "$GLOB_H"; then - gl_GLOB_SUBSTITUTE - fi + AC_SUBST([GLOB_H]) + AM_CONDITIONAL([GL_GENERATE_GLOB_H], [test -n "$GLOB_H"]) ]) # Prerequisites of lib/glob.*.