]> git.kaiwu.me - nginx.git/commitdiff
Solaris compatibility
authorIgor Sysoev <igor@sysoev.ru>
Sun, 15 Jul 2007 14:45:51 +0000 (14:45 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 15 Jul 2007 14:45:51 +0000 (14:45 +0000)
auto/lib/pcre/conf

index f0666ae719fcdce62092bd1c3222f78704f5a2fd..667a16a1daa43217e2e2efec4b10d06fcd527d21 100644 (file)
@@ -25,11 +25,11 @@ if [ $PCRE != NONE ]; then
 
             echo $ngx_n "checking for PCRE library ...$ngx_c"
 
-            if [ -e $PCRE/pcre.h ]; then
+            if [ -f $PCRE/pcre.h ]; then
                 ngx_pcre_ver=`grep PCRE_MAJOR $PCRE/pcre.h \
                               | sed -e 's/^.*PCRE_MAJOR.* \(.*\)$/\1/'`
 
-            else if [ -e $PCRE/configure.in.h ]; then
+            else if [ -f $PCRE/configure.in.h ]; then
                 ngx_pcre_ver=`grep PCRE_MAJOR= $PCRE/configure.in \
                               | sed -e 's/^.*=\(.*\)$/\1/'`