Changeset aaa6f6 in git for m4


Ignore:
Timestamp:
Apr 3, 2021, 2:51:17 AM (3 years ago)
Author:
Matthias Koeppe <mkoeppe@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
667529e8a32e9ef38583a0bd6b869c9b45a11fd2
Parents:
1733ed9a4d750611a361aa6089edb436c8173c79
git-author:
Matthias Koeppe <mkoeppe@math.ucdavis.edu>2021-04-02 17:51:17-07:00
git-committer:
Matthias Koeppe <mkoeppe@math.ucdavis.edu>2021-04-03 09:43:28-07:00
Message:
m4/ntl-check.m4: In the search loop, put NTL_CPPFLAGS to the front of CXXFLAGS; use AC_CHECK_HEADER instead of 'test -r'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/ntl-check.m4

    r1733ed raaa6f6  
    5050for NTL_HOME in ${NTL_HOME_PATH}
    5151 do
    52 if test -r "$NTL_HOME/include/NTL/ZZ.h"; then
    53 
    5452        if test "x$NTL_HOME" != "x/usr"; then
    55           if test -e  $NTL_HOME/include/NTL/mat_ZZ.h; then
    5653                NTL_CPPFLAGS="-I${NTL_HOME}/include"
    5754                NTL_LIBS="-L${NTL_HOME}/lib -lntl"
    58           fi
    5955        else
    6056                NTL_CPPFLAGS=""
    6157                NTL_LIBS="-lntl"
    6258        fi
    63 ###     CFLAGS="${BACKUP_CFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}"
    64         CXXFLAGS="${BACKUP_CXXFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}"
     59        CXXFLAGS="${NTL_CPPFLAGS} ${GMP_CPPFLAGS} ${BACKUP_CXXFLAGS}"
    6560        LIBS="${NTL_LIBS} ${GMP_LIBS} ${BACKUP_LIBS}"
    6661
     
    10398                NTL_LIBS="-lntl"
    10499        fi
    105 ###     CFLAGS="${BACKUP_CFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}"
    106         CXXFLAGS="${BACKUP_CXXFLAGS} ${NTL_CPPFLAGS} ${GMP_CPPFLAGS}"
    107         LIBS="${BACKUP_LIBS} ${NTL_LIBS} ${GMP_LIBS}"
     100        CXXFLAGS="${NTL_CPPFLAGS} ${BACKUP_CXXFLAGS} ${GMP_CPPFLAGS}"
     101        LIBS="${NTL_LIBS} ${GMP_LIBS} ${BACKUP_LIBS}"
    108102
    109103        AC_TRY_LINK(
     
    137131        unset NTL_LIBS
    138132        ])
    139 else
    140         ntl_found="no"
    141 fi
    142133done
    143134
Note: See TracChangeset for help on using the changeset viewer.