]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs: #2315432, debian#284854#42.
authorThorsten Kukuk <kukuk@thkukuk.de>
Thu, 26 Aug 2010 13:49:33 +0000 (13:49 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Thu, 26 Aug 2010 13:49:33 +0000 (13:49 +0000)
Purpose of commit: bugfix

Commit summary:
---------------

2010-08-26  Thorsten Kukuk  <kukuk@thkukuk.de>

* doc/specs/Makefile.am: Use CC_FOR_BUILD as compiler (cross
compile support).
* configure.in: Check for host compiler if cross compiling.
Bug #2315432, debian#284854#42.

ChangeLog
configure.in
doc/specs/Makefile.am

index 6fbdb4e090ac773fa9dd27b5f787081ea3505aa8..df2b08208a7191122164845b2512178f872e7c67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-08-26  Thorsten Kukuk  <kukuk@thkukuk.de>
+
+       * doc/specs/Makefile.am: Use CC_FOR_BUILD as compiler (cross
+       compile support).
+       * configure.in: Check for host compiler if cross compiling.
+       Bug #2315432, debian#284854#42.
+
 2010-08-17  Thorsten Kukuk  <kukuk@thkukuk.de>
 
        * modules/pam_unix/pam_unix_passwd.c: Implement minlen option.
index 87bd56807c3cdc521f1c28bae3e0fd1242d6154d..cb827112cec8e4d5cbb1ff672d7aeb18c6d1420c 100644 (file)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT
 AC_CONFIG_SRCDIR([conf/pam_conv1/pam_conv_y.y])
-AM_INIT_AUTOMAKE("Linux-PAM", 1.1.1)
+AM_INIT_AUTOMAKE("Linux-PAM", 1.1.1.91)
 AC_PREREQ(2.61)
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
@@ -86,6 +86,12 @@ AM_PROG_CC_C_O
 PAM_LD_AS_NEEDED
 PAM_LD_O1
 
+if test x"$cross_compiling" = xyes; then
+       AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
+else
+       CC_FOR_BUILD="$CC"
+fi
+
 dnl Largefile support
 AC_SYS_LARGEFILE
 
index 595c09bf142b919d25cf37362fef6179ccc2b95e..d92ddd38d138eab0117a0134dd6822ca1d509e96 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2005, 2006 Thorsten Kukuk <kukuk@suse.de>
+# Copyright (c) 2005, 2006, 2010 Thorsten Kukuk <kukuk@suse.de>
 #
 
 CLEANFILES = draft-morgan-pam-current.txt *~
@@ -11,6 +11,8 @@ draft-morgan-pam-current.txt: padout draft-morgan-pam.raw
 
 AM_YFLAGS = -d
 
+CC = @CC_FOR_BUILD@
+
 BUILT_SOURCES = parse_y.h
 
 noinst_PROGRAMS = padout