configure-cpp-fallback-to-cc-E-20090317
authorDerrick Brashear <shadow@dementia.org>
Tue, 17 Mar 2009 15:44:15 +0000 (15:44 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 17 Mar 2009 15:44:15 +0000 (15:44 +0000)
LICENSE IPL10

if we don't find any cpp whatsoever, fall back to $CC -E, or cc -E

configure.in

index db1806f..0445e79 100644 (file)
@@ -11,7 +11,7 @@ AC_SUBST(LINUX_PKGVER)
 AC_SUBST(LINUX_PKGREL)
 
 AC_PROG_CC
-AC_PATH_PROGS([PATH_CPP], [cpp], , [$PATH:/lib:/usr/ccs/lib])
+AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
 AC_SUBST([PATH_CPP])
 OPENAFS_CONFIGURE_COMMON