]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
you cant check for file existance when cross compiling
authorMichael Jerris <mike@jerris.com>
Thu, 3 May 2007 09:36:04 +0000 (09:36 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 3 May 2007 09:36:04 +0000 (09:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5075 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sqlite/configure.ac

index cdc22c72b81f984b492e926e461626360f74a665..39870cde9cab2fa2f3b7c2f95321f62ce0166f82 100644 (file)
@@ -627,10 +627,11 @@ fi
 if test "$found" = "yes"; then
   AC_MSG_RESULT($TARGET_READLINE_INC)
 else
-  AC_MSG_RESULT(not specified: still searching...)
-  AC_CHECK_HEADER(readline.h, [found=yes])
+    AC_MSG_RESULT(not specified: still searching...)
+    AC_CHECK_HEADER(readline.h, [found=yes])
 fi
 if test "$found" = "no"; then
+  if test "$cross_compiling" != "yes"; then
   for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
     AC_CHECK_FILE($dir/include/readline.h, found=yes)
     if test "$found" = "yes"; then
@@ -643,6 +644,7 @@ if test "$found" = "no"; then
       break
     fi
   done
+  fi
 fi
 if test "$found" = "yes"; then
   if test "$TARGET_READLINE_LIBS" = ""; then