# HG changeset patch # User jkeil # Date 1038335649 0 # Node ID 2a69a884206aecb5ade620c101dbcc8a28b06eed # Parent 25fd5c47e31a82f5af7f4a7f6eab0979b6e21af4 Add a new test for "scandir()" and friends. scandir() is used in the new menu code; and we must include our own implemenation for solaris (and maybe other platforms as well). diff -r 25fd5c47e31a -r 2a69a884206a configure --- a/configure Tue Nov 26 18:31:30 2002 +0000 +++ b/configure Tue Nov 26 18:34:09 2002 +0000 @@ -2116,6 +2116,20 @@ echores "$_linux_devfs" +echocheck "scandir()" +cat > $TMPC << EOF +int main (void) { scandir("", 0, 0, 0); alphasort(0, 0); return 0; } +EOF +_scandir=no +cc_check && _scandir=yes +if test "$_scandir" = yes ; then + _def_scandir='#define HAVE_SCANDIR 1' +else + _def_scandir='#undef HAVE_SCANDIR' +fi +echores "$_scandir" + + echocheck "strsep()" cat > $TMPC << EOF #include @@ -4824,6 +4838,9 @@ /* Define this if you have shm support */ $_def_shm +/* Define this if your system has scandir & alphasort */ +$_def_scandir + /* Define this if your system has strsep */ $_def_strsep