2014-09-15 04:39:49 +02:00
|
|
|
From: Maarten ter Huurne <maarten@treewalker.org>
|
|
|
|
Date: Sat, 13 Sep 2014 10:27:27 +0200
|
|
|
|
Subject: Removed redundant compiler sanity checks
|
|
|
|
|
|
|
|
AC_PROG_CC already performs sanity checks. And unlike the removed
|
|
|
|
checks, it does so in a way that supports cross compilation.
|
|
|
|
|
|
|
|
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
|
2016-02-28 01:01:11 +01:00
|
|
|
[Ricardo: rebase on top of 4.3.1]
|
|
|
|
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
|
2014-09-15 04:39:49 +02:00
|
|
|
---
|
2016-02-28 01:01:11 +01:00
|
|
|
configure.ac | 27 ---------------------------
|
2014-09-15 04:39:49 +02:00
|
|
|
1 file changed, 27 deletions(-)
|
|
|
|
|
2016-02-28 01:01:11 +01:00
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
|
|
index ffe2e37..27690a6 100644
|
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
|
|
|
@@ -48,31 +48,6 @@ AC_PROG_GCC_TRADITIONAL
|
2014-09-15 04:39:49 +02:00
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
|
|
|
-AC_TRY_RUN(main(){exit(0);},,[
|
|
|
|
-if test $CC != cc ; then
|
|
|
|
-AC_NOTE(Your $CC failed - restarting with CC=cc)
|
|
|
|
-AC_NOTE()
|
|
|
|
-CC=cc
|
|
|
|
-export CC
|
|
|
|
-exec $0 $configure_args
|
|
|
|
-fi
|
|
|
|
-])
|
|
|
|
-
|
|
|
|
-AC_TRY_RUN(main(){exit(0);},,
|
|
|
|
-exec 5>&2
|
|
|
|
-eval $ac_link
|
|
|
|
-AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;)
|
|
|
|
-AC_NOTE($ac_compile)
|
|
|
|
-AC_MSG_ERROR(Can't run the compiler - sorry))
|
|
|
|
-
|
|
|
|
-AC_TRY_RUN([
|
|
|
|
-main()
|
|
|
|
-{
|
|
|
|
- int __something_strange_();
|
|
|
|
- __something_strange_(0);
|
|
|
|
-}
|
|
|
|
-],AC_MSG_ERROR(Your compiler does not set the exit status - sorry))
|
|
|
|
-
|
|
|
|
AC_PROG_AWK
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
2016-02-28 01:01:11 +01:00
|
|
|
@@ -1300,8 +1275,6 @@ fi
|
2014-09-15 04:39:49 +02:00
|
|
|
dnl Ptx bug workaround -- insert -lc after -ltermcap
|
|
|
|
test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
|
|
|
|
|
|
|
|
-AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
|
|
|
|
-
|
|
|
|
ETCSCREENRC=
|
|
|
|
AC_MSG_CHECKING(for the global screenrc file)
|
|
|
|
AC_ARG_WITH(sys-screenrc, [ --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ])
|
|
|
|
--
|
|
|
|
1.8.4.5
|
|
|
|
|