- Timestamp:
- Oct 15, 2021, 4:09:30 PM (3 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 3551885a5d35f5d806aa9a27ec225b51933cd05c
- Parents:
- 69185ceb2807ebeacfe2824621e4b70e2ed19642
- Location:
- m4
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/ax_append_flag.m4
r69185ce r0c26a1 53 53 54 54 AC_DEFUN([AX_APPEND_FLAG], 55 [AC_PREREQ( [2.71])dnl for _AC_LANG_PREFIX55 [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX 56 56 AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])dnl 57 57 AS_VAR_SET_IF(FLAGS, -
m4/ax_check_compile_flag.m4
r69185ce r0c26a1 57 57 58 58 AC_DEFUN([AX_CHECK_COMPILE_FLAG], 59 [AC_PREREQ( [2.71])dnl for _AC_LANG_PREFIX59 [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX 60 60 AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl 61 61 AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ -
m4/ax_cxx_gcc_abi_demangle.m4
r69185ce r0c26a1 30 30 ax_cv_cxx_gcc_abi_demangle, 31 31 [AC_LANG_SAVE 32 AC_LANG ([C++])33 AC_ COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <typeinfo>32 AC_LANG_CPLUSPLUS 33 AC_TRY_COMPILE([#include <typeinfo> 34 34 #include <cxxabi.h> 35 35 #include <string> … … 37 37 template<typename TYPE> 38 38 class A {}; 39 ] ], [[A<int> instance;39 ],[A<int> instance; 40 40 int status = 0; 41 41 char* c_name = 0; … … 47 47 48 48 return name == "A<int>"; 49 ]])],[ax_cv_cxx_gcc_abi_demangle=yes],[ax_cv_cxx_gcc_abi_demangle=no]) 49 ], 50 ax_cv_cxx_gcc_abi_demangle=yes, ax_cv_cxx_gcc_abi_demangle=no) 50 51 AC_LANG_RESTORE 51 52 ]) -
m4/ax_prog_cc_for_build.m4
r69185ce r0c26a1 45 45 pushdef([ac_cv_prog_CPP], ac_cv_build_prog_CPP)dnl 46 46 pushdef([ac_cv_prog_cc_c89], ac_cv_build_prog_cc_c89)dnl 47 pushdef([ac_cv_ c_compiler_gnu], ac_cv_build_prog_gcc)dnl47 pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl 48 48 pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl 49 49 pushdef([ac_cv_prog_cc_cross], ac_cv_build_prog_cc_cross)dnl … … 122 122 popdef([ac_cv_prog_cc_works])dnl 123 123 popdef([ac_cv_prog_cc_c89])dnl 124 popdef([ac_cv_ c_compiler_gnu])dnl124 popdef([ac_cv_prog_gcc])dnl 125 125 popdef([ac_cv_prog_CPP])dnl 126 126 -
m4/ax_prog_cxx_for_build.m4
r69185ce r0c26a1 44 44 dnl 45 45 pushdef([ac_cv_prog_CXXCPP], ac_cv_build_prog_CXXCPP)dnl 46 pushdef([ac_cv_ cxx_compiler_gnu], ac_cv_build_prog_gxx)dnl46 pushdef([ac_cv_prog_gxx], ac_cv_build_prog_gxx)dnl 47 47 pushdef([ac_cv_prog_cxx_works], ac_cv_build_prog_cxx_works)dnl 48 48 pushdef([ac_cv_prog_cxx_cross], ac_cv_build_prog_cxx_cross)dnl … … 101 101 popdef([ac_cv_prog_cxx_cross])dnl 102 102 popdef([ac_cv_prog_cxx_works])dnl 103 popdef([ac_cv_ cxx_compiler_gnu])dnl103 popdef([ac_cv_prog_gxx])dnl 104 104 popdef([ac_cv_prog_CXXCPP])dnl 105 105 -
m4/flint-check.m4
r69185ce r0c26a1 53 53 LIBS="${FLINT_LIBS} ${GMP_LIBS} ${BACKUP_LIBS}" 54 54 55 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <flint/fmpz.h> 56 ]], [[fmpz_t x; fmpz_init(x);]])],[ 55 AC_TRY_LINK([#include <flint/fmpz.h> 56 ], 57 [fmpz_t x; fmpz_init(x);], [ 57 58 flint_found="yes" 58 59 break 59 ] ,[])60 ]) 60 61 done 61 62 -
m4/gmp-check.m4
r69185ce r0c26a1 32 32 CFLAGS="${GMP_CPPFLAGS} ${BACKUP_CFLAGS}" 33 33 LIBS=" ${GMP_LIBS} ${BACKUP_LIBS}" 34 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gmp.h> 35 ]], [[mpz_t a; mpz_init (a);]])],[ 34 AC_TRY_LINK([#include <gmp.h> 35 ], 36 [mpz_t a; mpz_init (a);], [ 36 37 gmp_found=yes 37 38 break 38 ] ,[])39 ]) 39 40 done 40 41 if test "$gmp_found" != yes; then -
m4/google-perftools.m4
r69185ce r0c26a1 23 23 ac_google_perfdir='no' 24 24 AC_ARG_WITH(google-perftools, 25 AS_HELP_STRING([--with-google-perftools=DIR],[location of a google perftools installation (default none)]), 25 AC_HELP_STRING([--with-google-perftools=DIR], 26 [location of a google perftools installation (default none)]), 26 27 ac_google_perfdir=$withval) 27 28 28 29 AC_ARG_ENABLE(google-profiling, 29 AS_HELP_STRING([--enable-google-profiling],[compile with google profiling]), 30 AC_HELP_STRING([--enable-google-profiling], 31 [compile with google profiling]), 30 32 [google_profile=$enableval], 31 33 [google_profile=no]) -
m4/pipe-check.m4
r69185ce r0c26a1 14 14 CFLAGS="${CFLAGS} -pipe" 15 15 AC_CACHE_VAL(ac_cv_cxx_have_pipe, 16 AC_ COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[ac_cv_cxx_have_pipe=yes],[ac_cv_cxx_have_pipe=no]))16 AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no)) 17 17 AC_MSG_RESULT(${ac_cv_cxx_have_pipe}) 18 18 CFLAGS=${temp_cflags} -
m4/readline-check.m4
r69185ce r0c26a1 35 35 if test "$with_readline" != dynamic && test "$with_readline" != no; then 36 36 AC_LANG_SAVE 37 AC_LANG ([C++])37 AC_LANG_CPLUSPLUS 38 38 AC_CHECK_LIB(readline, readline) 39 39 AC_CHECK_HEADERS(readline/readline.h readline/history.h) … … 42 42 AC_MSG_CHECKING(whether readline.h is ok) 43 43 AC_CACHE_VAL(ac_cv_header_readline_readline_h_ok, 44 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include<unistd.h> 44 AC_TRY_LINK( 45 #include<unistd.h> 45 46 #include<stdio.h> 46 47 #include<readline/readline.h> … … 48 49 #include<readline/history.h> 49 50 #endif 50 ]], [[]])],[ac_cv_header_readline_readline_h_ok="yes"],[ac_cv_header_readline_readline_h_ok="no"])) 51 , 52 , 53 ac_cv_header_readline_readline_h_ok="yes", 54 ac_cv_header_readline_readline_h_ok="no", 55 )) 51 56 AC_MSG_RESULT($ac_cv_header_readline_readline_h_ok) 52 57 if test "$ac_cv_header_readline_readline_h_ok" != yes; then … … 54 59 AC_MSG_CHECKING(whether or not we nevertheless can use readline) 55 60 AC_CACHE_VAL(ac_cv_have_readline, 56 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> 61 AC_TRY_LINK( 62 #include <stdio.h> 57 63 extern "C" 58 64 { … … 72 78 #define NULL 0 73 79 #endif 74 ]], [[rl_readline_name=NULL; 80 , 81 rl_readline_name=NULL; 75 82 *rl_line_buffer=1; 76 83 completion_matches(NULL, filename_completion_function); … … 81 88 read_history(NULL); 82 89 write_history(NULL); 83 ]])],[ac_cv_have_readline="yes" 84 ],[ac_cv_have_readline="no" 85 ])) 90 , 91 ac_cv_have_readline="yes" 92 , 93 ac_cv_have_readline="no" 94 )) 86 95 AC_MSG_RESULT($ac_cv_have_readline) 87 96 else
Note: See TracChangeset
for help on using the changeset viewer.