comparison configure @ 32185:26e3bf13985e

Simplify glob() check.
author diego
date Thu, 16 Sep 2010 14:40:44 +0000
parents dab4de13e332
children f1aae2e20e2c
comparison
equal deleted inserted replaced
32184:dab4de13e332 32185:26e3bf13985e
3914 fi 3914 fi
3915 echores "$_gettimeofday" 3915 echores "$_gettimeofday"
3916 3916
3917 3917
3918 echocheck "glob()" 3918 echocheck "glob()"
3919 cat > $TMPC << EOF
3920 #include <stdio.h>
3921 #include <glob.h>
3922 int main(void) { glob_t gg; glob("filename",0,NULL,&gg); return 0; }
3923 EOF
3924 _glob=no 3919 _glob=no
3925 cc_check && _glob=yes 3920 function_check glob.h 'glob("filename", 0, 0, 0)' && _glob=yes
3926 if test "$_glob" = yes ; then 3921 if test "$_glob" = yes ; then
3927 def_glob='#define HAVE_GLOB 1' 3922 def_glob='#define HAVE_GLOB 1'
3928 _need_glob=no 3923 _need_glob=no
3929 else 3924 else
3930 def_glob='#undef HAVE_GLOB' 3925 def_glob='#undef HAVE_GLOB'