texinfo-commits
[Top][All Lists]
Advanced

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

[7414] add var PERL_EXT_CC


From: gavinsmith0123
Subject: [7414] add var PERL_EXT_CC
Date: Sat, 24 Sep 2016 16:59:06 +0000 (UTC)

Revision: 7414
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7414
Author:   gavin
Date:     2016-09-24 16:59:06 +0000 (Sat, 24 Sep 2016)
Log Message:
-----------
add var PERL_EXT_CC

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/configure.ac
    trunk/tp/Texinfo/Convert/XSParagraph/configure.ac

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-09-23 15:27:16 UTC (rev 7413)
+++ trunk/ChangeLog     2016-09-24 16:59:06 UTC (rev 7414)
@@ -1,3 +1,9 @@
+2016-09-24  Gavin Smith  <address@hidden>
+
+       * tp/Texinfo/Convert/XSParagraph/configure.ac, configure.ac
+       (PERL_EXT_CC): New variable to override compiler used to build 
+       XS extension.
+
 2016-09-23  Gavin Smith  <address@hidden>
 
        * doc/texinfo.texi (Customization Variables and Options): Remove 

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac  2016-09-23 15:27:16 UTC (rev 7413)
+++ trunk/configure.ac  2016-09-24 16:59:06 UTC (rev 7414)
@@ -63,6 +63,7 @@
 AC_ARG_VAR([PERL_EXT_CFLAGS], [Compiler flags for a Perl extension])
 AC_ARG_VAR([PERL_EXT_CPPFLAGS], [C preprocessor flags for a Perl extension])
 AC_ARG_VAR([PERL_EXT_LDFLAGS], [Linker flags for a Perl extension])
+AC_ARG_VAR([PERL_EXT_CC], [Compiler for a Perl extension])
 
 AC_MSG_CHECKING([Perl version and Encode module])
 if $PERL -e "use 5.007_003; use Encode;" > /dev/null 2>&1; then

Modified: trunk/tp/Texinfo/Convert/XSParagraph/configure.ac
===================================================================
--- trunk/tp/Texinfo/Convert/XSParagraph/configure.ac   2016-09-23 15:27:16 UTC 
(rev 7413)
+++ trunk/tp/Texinfo/Convert/XSParagraph/configure.ac   2016-09-24 16:59:06 UTC 
(rev 7414)
@@ -52,11 +52,15 @@
 if test x$disable_xs != xyes; then
   AC_PATH_PROG([PERL], [perl])
   
-  # It's essential that we use the same compiler that was used to build
-  # Perl.  Otherwise Perl's "config.h" will be incorrect.  This overrides
-  # the check in AC_PROG_CC below.
-  lookup_perl_conf([cc])
-  CC=$conf_value
+  if test -v PERL_EXT_CC ; then
+    CC=$PERL_EXT_CC
+  else
+    # It's essential that we use the same compiler that was used to build
+    # Perl.  Otherwise Perl's "config.h" will be incorrect.  This overrides
+    # the check in AC_PROG_CC below.
+    lookup_perl_conf([cc])
+    CC=$conf_value
+  fi
 
   # Wipe the cache value in case -C was given at the top level
   ac_cv_prog_CC= ; unset ac_cv_prog_CC
@@ -85,6 +89,7 @@
 AC_ARG_VAR([PERL_EXT_CFLAGS], [Compiler flags for a Perl extension])
 AC_ARG_VAR([PERL_EXT_CPPFLAGS], [C preprocessor flags for a Perl extension])
 AC_ARG_VAR([PERL_EXT_LDFLAGS], [Linker flags for a Perl extension])
+AC_ARG_VAR([PERL_EXT_CC], [Compiler for a Perl extension])
 
 # version of the XSParagraph interface
 XSPARAGRAPH_INTERFACE_VERSION=1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]