mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
oops: AC_RUN_IFELSE gets offended if I don't give it a AC_LANG_PROGRAM
This commit is contained in:
parent
adbdeafad9
commit
8c0158101c
14
acinclude.m4
14
acinclude.m4
@ -71,14 +71,12 @@ AC_DEFUN([TOR_CHECK_LDFLAGS], [
|
|||||||
CFLAGS="$CFLAGS -pedantic -Werror"
|
CFLAGS="$CFLAGS -pedantic -Werror"
|
||||||
LDFLAGS="$LDFLAGS $2 $1"
|
LDFLAGS="$LDFLAGS $2 $1"
|
||||||
LIBS="$LIBS $3"
|
LIBS="$LIBS $3"
|
||||||
AC_RUN_IFELSE([
|
AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [fputs("", stdout)])],
|
||||||
#include <stdio.h>
|
[AS_VAR_SET(VAR,yes)],
|
||||||
int main(int argc, char **argv) { fputs("", stdout); return 0; }],
|
[AS_VAR_SET(VAR,no)],
|
||||||
[AS_VAR_SET(VAR,yes)],
|
[AC_TRY_LINK([], [return 0;],
|
||||||
[AS_VAR_SET(VAR,no)],
|
[AS_VAR_SET(VAR,yes)],
|
||||||
[AC_TRY_LINK([], [return 0;],
|
[AS_VAR_SET(VAR,no)])])
|
||||||
[AS_VAR_SET(VAR,yes)],
|
|
||||||
[AS_VAR_SET(VAR,no)])])
|
|
||||||
CFLAGS="$tor_saved_CFLAGS"
|
CFLAGS="$tor_saved_CFLAGS"
|
||||||
LDFLAGS="$tor_saved_LDFLAGS"
|
LDFLAGS="$tor_saved_LDFLAGS"
|
||||||
LIBS="$tor_saved_LIBS"
|
LIBS="$tor_saved_LIBS"
|
||||||
|
Loading…
Reference in New Issue
Block a user