]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/libdce2.git/commitdiff
configure.ac: Added conditional check for files existence
authorMrinmayee Hingolikar <mrinmayee@ti.com>
Thu, 29 Aug 2013 19:30:26 +0000 (01:00 +0530)
committerMrinmayee Hingolikar <mrinmayee@ti.com>
Thu, 29 Aug 2013 19:30:26 +0000 (01:00 +0530)
Signed-off-by: Mrinmayee Hingolikar <mrinmayee@ti.com>
configure.ac

index a27bd0840c2a9888a35bbd1b4bcec27dcccbe957..aa3ab73fc1a50c76def213368f7846bb00285955 100644 (file)
@@ -70,8 +70,11 @@ dnl *** checks for dependancy libraries ***
 dnl *** set variables based on configure arguments ***
 
 if test "$IPC_HEADERS" != "" ; then
-        AC_CHECK_FILES(["$IPC_HEADERS"],,[AC_MSG_ERROR(["$IPC_HEADERS" not found, Set path variable IPC_HEADERS])])
-        AC_SUBST(IPC_HEADERS)
+        if test "$cross_compiling" != "yes"
+               then
+                       AC_CHECK_FILES(["$IPC_HEADERS"],,[AC_MSG_ERROR(["$IPC_HEADERS" not found, Set path variable IPC_HEADERS])])
+        fi
+               AC_SUBST(IPC_HEADERS)
 else
         AC_MSG_ERROR([Set path variable IPC_HEADERS])
 fi