aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2002-05-19 16:25:51 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2002-05-19 16:25:51 +0000
commita15135c91aa1dffab3287d252ad35ccce81f999f (patch)
tree1383344abf323a2552d11370828d33361a92e04b /gcc/java/jcf.h
parenta1ab4696ab5f9398bfe87ca2bc211cea787a1515 (diff)
downloadgcc-a15135c91aa1dffab3287d252ad35ccce81f999f.zip
gcc-a15135c91aa1dffab3287d252ad35ccce81f999f.tar.gz
gcc-a15135c91aa1dffab3287d252ad35ccce81f999f.tar.bz2
configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort.
* configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort. * config.in: Regenerated. * configure: Regenerated. From-SVN: r53633
Diffstat (limited to 'gcc/java/jcf.h')
-rw-r--r--gcc/java/jcf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h
index c683e2b..e674bdb 100644
--- a/gcc/java/jcf.h
+++ b/gcc/java/jcf.h
@@ -63,6 +63,14 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#define JCF_word JCF_u4
#endif
+/* If we have both "scandir" and "alphasort", we can cache directory
+ listings to reduce the time taken to search the classpath. */
+#if defined(HAVE_SCANDIR) && defined(HAVE_ALPHASORT)
+#define JCF_USE_SCANDIR 1
+#else
+#define JCF_USE_SCANDIR 0
+#endif
+
struct JCF;
typedef int (*jcf_filbuf_t) PARAMS ((struct JCF*, int needed));