[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#941593: libpam-x2go FTCBFS: abuses AC_CHECK_FILES



Source: libpam-x2go
Version: 0.0.2.0-2
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

libpam-x2go fails to cross build from source, because m4/gtest.m4 abuses
AC_CHECK_FILES. It uses the macro to check for files on the build
system, while it is meant for checking files on the host system. Please
use a plain test -e for the former. Please consider applying the
attached patch.

Helmut
--- libpam-x2go-0.0.2.0.orig/m4/gtest.m4
+++ libpam-x2go-0.0.2.0/m4/gtest.m4
@@ -49,8 +49,7 @@
 
   AC_LANG_POP
 
-  AC_CHECK_FILES([$GTEST_SOURCE/src/gtest-all.cc]
-                 [$GTEST_SOURCE/src/gtest_main.cc],
+  AS_IF([test -e "$GTEST_SOURCE/src/gtest-all.cc" || test -e "$GTEST_SOURCE/src/gtest_main.cc"],
                  [have_gtest_source=yes],
                  [have_gtest_source=no])
 

Reply to: