Author: bgbnbigben
Date: 2011-02-15 17:09:42 -0800 (Tue, 15 Feb 2011)
New Revision: 8433
Log:
Defined HAVE_SCANDIR on Solaris systems where the POSIX-compliant headers and 
prototypes exist - the assumption being if these prototypes exist, Solaris has 
scandir()!
This fixes #2313.


Modified:
   trunk/configure.in

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in  2011-02-15 21:19:41 UTC (rev 8432)
+++ trunk/configure.in  2011-02-16 01:09:42 UTC (rev 8433)
@@ -337,7 +337,7 @@
 AC_CHECK_HEADER(sys/stdtypes.h,AC_DEFINE(HAVE_SYS_SELECT_H))
 AC_CHECK_FUNC(scandir,[
     if test "$uname" = SunOS -o "$uname" = QNX; then
-        AC_MSG_WARN(Not using $uname scandir emulation function.)
+        AC_MSG_WARN(Not using $uname scandir emulation function unless POSIX 
compatible definitions are found.)
     else
         AC_DEFINE(HAVE_SCANDIR)
     fi])
@@ -358,6 +358,7 @@
     ])
 
 if test "$ac_cv_cxx_scandir_posix" = yes; then
+    AC_DEFINE(HAVE_SCANDIR)
     AC_DEFINE(HAVE_SCANDIR_POSIX)
 fi
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to