forked from OSchip/llvm-project
Remove unneeded checks from configure.ac.
HAVE_{BI,STD,FWD}_ITERATOR and HAVE_NAMESPACES were not used in the code. bison and flex are no longer used. CAN_DLOPEN_SELF was never used either. AC_PROG_LIBTOOL is not needed since we don't use libtool, we only need the libltdl checks for dlopen. Add check for AR, it used to be done by AC_PROG_LIBTOOL. AC_TYPE_SIGNAL is deprecated, follow autoupdate's suggestion and replace with void. Remove unused m4 files. Configure can now be generated using autoconf 2.65 too, without any warnings! llvm-svn: 94534
This commit is contained in:
parent
b3b43e65ba
commit
1e86bc50c7
|
@ -49,6 +49,7 @@ AC_CONFIG_SRCDIR([lib/VMCore/Module.cpp])
|
||||||
dnl Place all of the extra autoconf files into the config subdirectory. Tell
|
dnl Place all of the extra autoconf files into the config subdirectory. Tell
|
||||||
dnl various tools where the m4 autoconf macros are.
|
dnl various tools where the m4 autoconf macros are.
|
||||||
AC_CONFIG_AUX_DIR([autoconf])
|
AC_CONFIG_AUX_DIR([autoconf])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
dnl Quit if the source directory has already been configured.
|
dnl Quit if the source directory has already been configured.
|
||||||
dnl NOTE: This relies upon undocumented autoconf behavior.
|
dnl NOTE: This relies upon undocumented autoconf behavior.
|
||||||
|
@ -789,6 +790,7 @@ AC_PATH_PROG(GREP, [grep], [grep])
|
||||||
AC_PATH_PROG(MKDIR,[mkdir],[mkdir])
|
AC_PATH_PROG(MKDIR,[mkdir],[mkdir])
|
||||||
AC_PATH_PROG(MV, [mv], [mv])
|
AC_PATH_PROG(MV, [mv], [mv])
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
|
AC_CHECK_TOOL(AR, ar, false)
|
||||||
AC_PATH_PROG(RM, [rm], [rm])
|
AC_PATH_PROG(RM, [rm], [rm])
|
||||||
AC_PATH_PROG(SED, [sed], [sed])
|
AC_PATH_PROG(SED, [sed], [sed])
|
||||||
AC_PATH_PROG(TAR, [tar], [gtar])
|
AC_PATH_PROG(TAR, [tar], [gtar])
|
||||||
|
@ -919,13 +921,6 @@ dnl before the AC_PROG_LIBTOOL check in order to enable dlopening libraries with
|
||||||
dnl libtool).
|
dnl libtool).
|
||||||
AC_LIBTOOL_DLOPEN
|
AC_LIBTOOL_DLOPEN
|
||||||
AC_LIB_LTDL
|
AC_LIB_LTDL
|
||||||
AC_PROG_LIBTOOL
|
|
||||||
|
|
||||||
if test "$lt_cv_dlopen_self" = "yes" ; then
|
|
||||||
AC_DEFINE([CAN_DLOPEN_SELF],[1],
|
|
||||||
[Define if dlopen(0) will open the symbols of the program])
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if test "$WITH_LLVMGCCDIR" = "default" ; then
|
if test "$WITH_LLVMGCCDIR" = "default" ; then
|
||||||
LLVMGCC="llvm-gcc${EXEEXT}"
|
LLVMGCC="llvm-gcc${EXEEXT}"
|
||||||
|
@ -1148,7 +1143,7 @@ dnl===-----------------------------------------------------------------------===
|
||||||
AC_HUGE_VAL_CHECK
|
AC_HUGE_VAL_CHECK
|
||||||
AC_TYPE_PID_T
|
AC_TYPE_PID_T
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
AC_TYPE_SIGNAL
|
AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[Define as the return type of signal handlers (`int' or `void').])
|
||||||
AC_STRUCT_TM
|
AC_STRUCT_TM
|
||||||
AC_CHECK_TYPES([int64_t],,AC_MSG_ERROR([Type int64_t required but not found]))
|
AC_CHECK_TYPES([int64_t],,AC_MSG_ERROR([Type int64_t required but not found]))
|
||||||
AC_CHECK_TYPES([uint64_t],,
|
AC_CHECK_TYPES([uint64_t],,
|
||||||
|
@ -1170,15 +1165,10 @@ AC_CHECK_FUNCS([strerror strerror_r strerror_s setenv ])
|
||||||
AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ])
|
AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ])
|
||||||
AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp])
|
AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp])
|
||||||
AC_C_PRINTF_A
|
AC_C_PRINTF_A
|
||||||
dnl FIXME: This is no longer used, please remove (but test)!!!
|
|
||||||
AC_FUNC_ALLOCA
|
|
||||||
AC_FUNC_RAND48
|
AC_FUNC_RAND48
|
||||||
|
|
||||||
dnl Check for variations in the Standard C++ library and STL. These macros are
|
dnl Check for variations in the Standard C++ library and STL. These macros are
|
||||||
dnl provided by LLVM in the autoconf/m4 directory.
|
dnl provided by LLVM in the autoconf/m4 directory.
|
||||||
AC_CXX_HAVE_STD_ITERATOR
|
|
||||||
AC_CXX_HAVE_BI_ITERATOR
|
|
||||||
AC_CXX_HAVE_FWD_ITERATOR
|
|
||||||
AC_FUNC_ISNAN
|
AC_FUNC_ISNAN
|
||||||
AC_FUNC_ISINF
|
AC_FUNC_ISINF
|
||||||
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
#
|
|
||||||
# Check for Bison.
|
|
||||||
#
|
|
||||||
# This macro verifies that Bison is installed. If successful, then
|
|
||||||
# 1) YACC is set to bison -y (to emulate YACC calls)
|
|
||||||
# 2) BISON is set to bison
|
|
||||||
#
|
|
||||||
AC_DEFUN([AC_PROG_BISON],
|
|
||||||
[AC_CACHE_CHECK([],[llvm_cv_has_bison],[AC_PROG_YACC()])
|
|
||||||
if test "$YACC" != "bison -y"; then
|
|
||||||
AC_SUBST(BISON,[])
|
|
||||||
AC_MSG_WARN([bison not found, can't rebuild grammars])
|
|
||||||
else
|
|
||||||
AC_SUBST(BISON,[bison])
|
|
||||||
fi])
|
|
|
@ -1,22 +0,0 @@
|
||||||
#
|
|
||||||
# Check for bidirectional iterator extension. This is modified from
|
|
||||||
# http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_ext_hash_set.html
|
|
||||||
#
|
|
||||||
AC_DEFUN([AC_CXX_HAVE_BI_ITERATOR],
|
|
||||||
[AC_CACHE_CHECK(whether the compiler has the bidirectional iterator,
|
|
||||||
ac_cv_cxx_have_bi_iterator,
|
|
||||||
[AC_REQUIRE([AC_CXX_NAMESPACES])
|
|
||||||
AC_LANG_PUSH([C++])
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <iterator>
|
|
||||||
#ifdef HAVE_NAMESPACES
|
|
||||||
using namespace std;
|
|
||||||
#endif]], [[bidirectional_iterator<int,int> t; return 0;]])],[ac_cv_cxx_have_bi_iterator=yes],[ac_cv_cxx_have_bi_iterator=no])
|
|
||||||
AC_LANG_POP([C++])
|
|
||||||
])
|
|
||||||
if test "$ac_cv_cxx_have_bi_iterator" = yes
|
|
||||||
then
|
|
||||||
AC_DEFINE(HAVE_BI_ITERATOR,1,[Have bi-directional iterator])
|
|
||||||
else
|
|
||||||
AC_DEFINE(HAVE_BI_ITERATOR,0,[Does not have bi-directional iterator])
|
|
||||||
fi
|
|
||||||
])
|
|
|
@ -1,22 +0,0 @@
|
||||||
# Check for forward iterator extension. This is modified from
|
|
||||||
# http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_ext_hash_set.html
|
|
||||||
AC_DEFUN([AC_CXX_HAVE_FWD_ITERATOR],
|
|
||||||
[AC_CACHE_CHECK(whether the compiler has forward iterators,
|
|
||||||
ac_cv_cxx_have_fwd_iterator,
|
|
||||||
[AC_REQUIRE([AC_CXX_NAMESPACES])
|
|
||||||
AC_LANG_PUSH([C++])
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <iterator>
|
|
||||||
#ifdef HAVE_NAMESPACES
|
|
||||||
using namespace std;
|
|
||||||
#endif]], [[forward_iterator<int,int> t; return 0;]])],[ac_cv_cxx_have_fwd_iterator=yes],[ac_cv_cxx_have_fwd_iterator=no])
|
|
||||||
AC_LANG_POP([C++])
|
|
||||||
])
|
|
||||||
if test "$ac_cv_cxx_have_fwd_iterator" = yes
|
|
||||||
then
|
|
||||||
AC_DEFINE(HAVE_FWD_ITERATOR,1,[Have forward iterator])
|
|
||||||
else
|
|
||||||
AC_DEFINE(HAVE_FWD_ITERATOR,0,[Does not have forward iterator])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
# Check for C++ namespace support. This is from
|
|
||||||
# http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_namespaces.html
|
|
||||||
#
|
|
||||||
AC_DEFUN([AC_CXX_NAMESPACES],
|
|
||||||
[AC_CACHE_CHECK(whether the compiler implements namespaces,
|
|
||||||
ac_cv_cxx_namespaces,
|
|
||||||
[AC_LANG_PUSH([C++])
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
|
||||||
[[namespace Outer { namespace Inner { int i = 0; }}]],
|
|
||||||
[[using namespace Outer::Inner; return i;]])],
|
|
||||||
ac_cv_cxx_namespaces=yes,
|
|
||||||
ac_cv_cxx_namespaces=no)
|
|
||||||
AC_LANG_POP([C++])
|
|
||||||
])
|
|
||||||
if test "$ac_cv_cxx_namespaces" = yes; then
|
|
||||||
AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
# Check for standard iterator extension. This is modified from
|
|
||||||
# http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_ext_hash_set.html
|
|
||||||
AC_DEFUN([AC_CXX_HAVE_STD_ITERATOR],
|
|
||||||
[AC_CACHE_CHECK(whether the compiler has the standard iterator,
|
|
||||||
ac_cv_cxx_have_std_iterator,
|
|
||||||
[AC_REQUIRE([AC_CXX_NAMESPACES])
|
|
||||||
AC_LANG_PUSH([C++])
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
|
||||||
[[#include <iterator>
|
|
||||||
#ifdef HAVE_NAMESPACES
|
|
||||||
using namespace std;
|
|
||||||
#endif]],
|
|
||||||
[[iterator<int,int,int> t; return 0;]])],
|
|
||||||
ac_cv_cxx_have_std_iterator=yes,
|
|
||||||
ac_cv_cxx_have_std_iterator=no)
|
|
||||||
AC_LANG_POP([C++])
|
|
||||||
])
|
|
||||||
if test "$ac_cv_cxx_have_std_iterator" = yes
|
|
||||||
then
|
|
||||||
AC_DEFINE(HAVE_STD_ITERATOR,1,[Have std namespace iterator])
|
|
||||||
else
|
|
||||||
AC_DEFINE(HAVE_STD_ITERATOR,0,[Does not have std namespace iterator])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
#
|
|
||||||
# Check for FLEX.
|
|
||||||
#
|
|
||||||
# This macro verifies that flex is installed. If successful, then
|
|
||||||
# 1) $LEX is set to "flex" (to emulate lex calls)
|
|
||||||
# 2) BISON is set to bison
|
|
||||||
AC_DEFUN([AC_PROG_FLEX],
|
|
||||||
[AC_CACHE_CHECK(,
|
|
||||||
ac_cv_has_flex,
|
|
||||||
[AC_PROG_LEX()
|
|
||||||
])
|
|
||||||
if test "$LEX" != "flex"; then
|
|
||||||
AC_MSG_ERROR([flex not found but required])
|
|
||||||
else
|
|
||||||
AC_SUBST(FLEX,[flex],[location of flex])
|
|
||||||
fi
|
|
||||||
])
|
|
Loading…
Reference in New Issue