File: 1001_dont_abuse_AC_CHECK_FILES.patch

package info (click to toggle)
libpam-x2go 0.0.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 288 kB
  • sloc: ansic: 774; makefile: 146; cpp: 40
file content (19 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Helmut Grohne <helmut@subdivi.de>
Description: libpam-x2go FTCBFS: abuses AC_CHECK_FILES
Abstract:
 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.

--- a/m4/gtest.m4
+++ b/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])