Ticket #13290: configure.ac.patch

File configure.ac.patch, 689 bytes (added by leif, 10 years ago)

"Upstream" patch to configure.ac to fix CC not being taken from gmp.h.

  • src/configure.ac

     
    3030USER_CC=$CC
    3131USER_CFLAGS=$CFLAGS
    3232
    33 # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
    34 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
    35 
    3633AC_CANONICAL_HOST
    3734AC_CONFIG_MACRO_DIR([m4])
    3835
     
    111108AC_PROG_CC
    112109AC_LANG(C)
    113110
     111# Automake 1.12 seems to require this, but automake 1.11 doesn't recognize it.
     112# Do not call AM_PROG_AR before MPC_GMP_CC_CFLAGS, since otherwise ac_cv_prog_CC
     113# is already set and overrides our CC setting (which may come from gmp.h).
     114m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
     115
    114116# Set up LibTool
    115117LT_INIT
    116118