Commit ed3a56f3 by Richard Guenther Committed by Richard Biener

configure.ac: Do not set LIBS for ppl/cloog checks.

2009-10-22  Richard Guenther  <rguenther@suse.de>

	* configure.ac: Do not set LIBS for ppl/cloog checks.  Disable
	cloog if the ppl version check failed.  Move flags saving
	before setting in libelf check.
	* configure: Regenerate.

From-SVN: r153447
parent 76d02e9f
2009-10-22 Richard Guenther <rguenther@suse.de>
* configure.ac: Do not set LIBS for ppl/cloog checks. Disable
cloog if the ppl version check failed. Move flags saving
before setting in libelf check.
* configure: Regenerate.
2009-10-21 Richard Guenther <rguenther@suse.de> 2009-10-21 Richard Guenther <rguenther@suse.de>
* configure.ac: Adjust the ppl and cloog configure to work as * configure.ac: Adjust the ppl and cloog configure to work as
......
...@@ -5771,12 +5771,10 @@ case $with_ppl in ...@@ -5771,12 +5771,10 @@ case $with_ppl in
ppllibs= ppllibs=
;; ;;
yes) yes)
LIBS="$ppllibs $LIBS"
;; ;;
*) *)
ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx" ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
pplinc="-I$with_ppl/include $pplinc" pplinc="-I$with_ppl/include $pplinc"
LIBS="$ppllibs $LIBS"
;; ;;
esac esac
if test "x$with_ppl_include" != x; then if test "x$with_ppl_include" != x; then
...@@ -5784,12 +5782,10 @@ if test "x$with_ppl_include" != x; then ...@@ -5784,12 +5782,10 @@ if test "x$with_ppl_include" != x; then
fi fi
if test "x$with_ppl_lib" != x; then if test "x$with_ppl_lib" != x; then
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx" ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
LIBS="$ppllibs $LIBS"
fi fi
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx ' ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include ' pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
LIBS="$ppllibs $LIBS"
fi fi
# Check whether --enable-ppl-version-check was given. # Check whether --enable-ppl-version-check was given.
...@@ -5825,7 +5821,7 @@ if ac_fn_c_try_compile "$LINENO"; then : ...@@ -5825,7 +5821,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
$as_echo "yes" >&6; } $as_echo "yes" >&6; }
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }; ppllibs= ; pplinc= $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS="$saved_CFLAGS" CFLAGS="$saved_CFLAGS"
...@@ -5871,12 +5867,10 @@ case $with_cloog in ...@@ -5871,12 +5867,10 @@ case $with_cloog in
clooginc= clooginc=
;; ;;
yes) yes)
LIBS="$clooglibs $LIBS"
;; ;;
*) *)
clooglibs="-L$with_cloog/lib -lcloog" clooglibs="-L$with_cloog/lib -lcloog"
clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND " clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
LIBS="$clooglibs $LIBS"
;; ;;
esac esac
if test "x$with_cloog_include" != x; then if test "x$with_cloog_include" != x; then
...@@ -5884,12 +5878,10 @@ if test "x$with_cloog_include" != x; then ...@@ -5884,12 +5878,10 @@ if test "x$with_cloog_include" != x; then
fi fi
if test "x$with_cloog_lib" != x; then if test "x$with_cloog_lib" != x; then
clooglibs="-L$with_cloog_lib -lcloog" clooglibs="-L$with_cloog_lib -lcloog"
LIBS="$clooglibs $LIBS"
fi fi
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog ' clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND ' clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
LIBS="$clooglibs $LIBS"
fi fi
# Check whether --enable-cloog-version-check was given. # Check whether --enable-cloog-version-check was given.
...@@ -5967,6 +5959,10 @@ if test "${with_libelf_lib+set}" = set; then : ...@@ -5967,6 +5959,10 @@ if test "${with_libelf_lib+set}" = set; then :
fi fi
saved_CFLAGS="$CFLAGS"
saved_CPPFLAGS="$CPPFLAGS"
saved_LIBS="$LIBS"
case $with_libelf in case $with_libelf in
"") "")
libelflibs="-lelf" libelflibs="-lelf"
...@@ -5995,10 +5991,6 @@ fi ...@@ -5995,10 +5991,6 @@ fi
LIBS="$libelflibs $LIBS" LIBS="$libelflibs $LIBS"
fi fi
saved_CFLAGS="$CFLAGS"
saved_CPPFLAGS="$CPPFLAGS"
saved_LIBS="$LIBS"
CFLAGS="$CFLAGS $libelfinc" CFLAGS="$CFLAGS $libelfinc"
CPPFLAGS="$CPPFLAGS $libelfinc" CPPFLAGS="$CPPFLAGS $libelfinc"
LIBS="$LIBS $libelflibs" LIBS="$LIBS $libelflibs"
......
...@@ -1523,12 +1523,10 @@ case $with_ppl in ...@@ -1523,12 +1523,10 @@ case $with_ppl in
ppllibs= ppllibs=
;; ;;
yes) yes)
LIBS="$ppllibs $LIBS"
;; ;;
*) *)
ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx" ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
pplinc="-I$with_ppl/include $pplinc" pplinc="-I$with_ppl/include $pplinc"
LIBS="$ppllibs $LIBS"
;; ;;
esac esac
if test "x$with_ppl_include" != x; then if test "x$with_ppl_include" != x; then
...@@ -1536,12 +1534,10 @@ if test "x$with_ppl_include" != x; then ...@@ -1536,12 +1534,10 @@ if test "x$with_ppl_include" != x; then
fi fi
if test "x$with_ppl_lib" != x; then if test "x$with_ppl_lib" != x; then
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx" ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
LIBS="$ppllibs $LIBS"
fi fi
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx ' ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include ' pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
LIBS="$ppllibs $LIBS"
fi fi
AC_ARG_ENABLE(ppl-version-check, AC_ARG_ENABLE(ppl-version-check,
...@@ -1557,7 +1553,7 @@ if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then ...@@ -1557,7 +1553,7 @@ if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
#if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
choke me choke me
#endif #endif
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ]) ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ; with_ppl=no ])
CFLAGS="$saved_CFLAGS" CFLAGS="$saved_CFLAGS"
fi fi
...@@ -1586,12 +1582,10 @@ case $with_cloog in ...@@ -1586,12 +1582,10 @@ case $with_cloog in
clooginc= clooginc=
;; ;;
yes) yes)
LIBS="$clooglibs $LIBS"
;; ;;
*) *)
clooglibs="-L$with_cloog/lib -lcloog" clooglibs="-L$with_cloog/lib -lcloog"
clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND " clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
LIBS="$clooglibs $LIBS"
;; ;;
esac esac
if test "x$with_cloog_include" != x; then if test "x$with_cloog_include" != x; then
...@@ -1599,12 +1593,10 @@ if test "x$with_cloog_include" != x; then ...@@ -1599,12 +1593,10 @@ if test "x$with_cloog_include" != x; then
fi fi
if test "x$with_cloog_lib" != x; then if test "x$with_cloog_lib" != x; then
clooglibs="-L$with_cloog_lib -lcloog" clooglibs="-L$with_cloog_lib -lcloog"
LIBS="$clooglibs $LIBS"
fi fi
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog ' clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND ' clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
LIBS="$clooglibs $LIBS"
fi fi
AC_ARG_ENABLE(cloog-version-check, AC_ARG_ENABLE(cloog-version-check,
...@@ -1644,6 +1636,10 @@ if test x"$enable_lto" = x"yes" ; then ...@@ -1644,6 +1636,10 @@ if test x"$enable_lto" = x"yes" ; then
AC_ARG_WITH(libelf_lib, [ --with-libelf-lib=PATH Specify the directory for the installed libelf library]) AC_ARG_WITH(libelf_lib, [ --with-libelf-lib=PATH Specify the directory for the installed libelf library])
saved_CFLAGS="$CFLAGS"
saved_CPPFLAGS="$CPPFLAGS"
saved_LIBS="$LIBS"
case $with_libelf in case $with_libelf in
"") "")
libelflibs="-lelf" libelflibs="-lelf"
...@@ -1672,10 +1668,6 @@ if test x"$enable_lto" = x"yes" ; then ...@@ -1672,10 +1668,6 @@ if test x"$enable_lto" = x"yes" ; then
LIBS="$libelflibs $LIBS" LIBS="$libelflibs $LIBS"
fi fi
saved_CFLAGS="$CFLAGS"
saved_CPPFLAGS="$CPPFLAGS"
saved_LIBS="$LIBS"
CFLAGS="$CFLAGS $libelfinc" CFLAGS="$CFLAGS $libelfinc"
CPPFLAGS="$CPPFLAGS $libelfinc" CPPFLAGS="$CPPFLAGS $libelfinc"
LIBS="$LIBS $libelflibs" LIBS="$LIBS $libelflibs"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment