aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-01-20 21:06:49 +0100
committerYang Tse <yangsita@gmail.com>2013-01-20 21:06:49 +0100
commit1347b3085c2e2c512bcc782cde13df8a869b12bc (patch)
tree07cd60ea7b802cd91aea667632a580c7d7657a72 /m4
parent9d1effad0524bcb4763e06659b728ba134464608 (diff)
xc-cc-check.m4: mark earlier variables that are to be exported
Diffstat (limited to 'm4')
-rw-r--r--m4/xc-cc-check.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/xc-cc-check.m4 b/m4/xc-cc-check.m4
index 5e5af9c69..a6db65d4c 100644
--- a/m4/xc-cc-check.m4
+++ b/m4/xc-cc-check.m4
@@ -26,6 +26,12 @@ dnl -------------------------------------------------
dnl Private macro.
AC_DEFUN([_XC_PROG_CC_PREAMBLE], [
+ export CC
+ export CPP
+ export LIBS
+ export CFLAGS
+ export LDFLAGS
+ export CPPFLAGS
xc_prog_cc_prev_IFS=$IFS
xc_prog_cc_prev_LIBS=$LIBS
xc_prog_cc_prev_CFLAGS=$CFLAGS
@@ -44,12 +50,6 @@ AC_DEFUN([_XC_PROG_CC_POSTLUDE], [
CFLAGS=$xc_prog_cc_prev_CFLAGS
LDFLAGS=$xc_prog_cc_prev_LDFLAGS
CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
- export CC
- export CPP
- export LIBS
- export CFLAGS
- export LDFLAGS
- export CPPFLAGS
AC_SUBST([CC])dnl
AC_SUBST([CPP])dnl
AC_SUBST([LIBS])dnl