Use AC_RUN_IFELSE instead deprecated AC_TRY_RUN

This commit is contained in:
Pierre-Louis Bonicoli 2015-07-10 13:18:27 +02:00
parent fbb285fc91
commit ddf7958353
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ AS_IF([test "x$enable_pie" != "xno"], [
save_LDFLAGS=$LDFLAGS
CFLAGS="$CFLAGS -fPIE"
LDFLAGS="$LDFLAGS -pie"
AC_TRY_RUN([static int foo[30000]; int main () { return 0; }],
AC_RUN_IFELSE([AC_LANG_SOURCE([[static int foo[30000]; int main () { return 0; }]])],
[ap_cv_cc_pie=yes],
[ap_cv_cc_pie=no],
[ap_cv_cc_pie=yes]