Commit ad0abd3c by Richard Guenther Committed by Richard Biener

configure.ac: Adjust the ppl and cloog configure to work as documented.

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

	* configure.ac: Adjust the ppl and cloog configure to work as
	documented.  Disable cloog if ppl was disabled.  Omit the version
	checks if they were disabled.
	* configure: Re-generate.

From-SVN: r153055
parent 3c28a5f4
2009-10-21 Richard Guenther <rguenther@suse.de>
* configure.ac: Adjust the ppl and cloog configure to work as
documented. Disable cloog if ppl was disabled. Omit the version
checks if they were disabled.
* configure: Re-generate.
2009-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2009-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Add 'lto' to enable_languages, not * configure.ac: Add 'lto' to enable_languages, not
......
...@@ -5750,7 +5750,7 @@ pplinc= ...@@ -5750,7 +5750,7 @@ pplinc=
if test "${with_ppl+set}" = set; then : if test "${with_ppl+set}" = set; then :
withval=$with_ppl; withval=$with_ppl;
else else
with_ppl=no with_ppl=yes
fi fi
...@@ -5770,6 +5770,9 @@ case $with_ppl in ...@@ -5770,6 +5770,9 @@ case $with_ppl in
no) no)
ppllibs= ppllibs=
;; ;;
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"
...@@ -5797,7 +5800,7 @@ else ...@@ -5797,7 +5800,7 @@ else
fi fi
if test "${ENABLE_PPL_CHECK}" = "yes"; then if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
saved_CFLAGS="$CFLAGS" saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $pplinc $gmpinc" CFLAGS="$CFLAGS $pplinc $gmpinc"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
...@@ -5842,7 +5845,7 @@ clooginc=" -DCLOOG_PPL_BACKEND " ...@@ -5842,7 +5845,7 @@ clooginc=" -DCLOOG_PPL_BACKEND "
if test "${with_cloog+set}" = set; then : if test "${with_cloog+set}" = set; then :
withval=$with_cloog; withval=$with_cloog;
else else
with_cloog=no with_cloog=yes
fi fi
...@@ -5858,11 +5861,18 @@ if test "${with_cloog_lib+set}" = set; then : ...@@ -5858,11 +5861,18 @@ if test "${with_cloog_lib+set}" = set; then :
fi fi
if test "x$with_ppl" == "xno"; then
with_cloog=no
fi
case $with_cloog in case $with_cloog in
no) no)
clooglibs= clooglibs=
clooginc= clooginc=
;; ;;
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 "
...@@ -5890,7 +5900,7 @@ else ...@@ -5890,7 +5900,7 @@ else
fi fi
if test "${ENABLE_CLOOG_CHECK}" = "yes"; then if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
saved_CFLAGS="$CFLAGS" saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc" CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
......
...@@ -1514,7 +1514,7 @@ pplinc= ...@@ -1514,7 +1514,7 @@ pplinc=
AC_ARG_WITH(ppl, [ --with-ppl=PATH Specify prefix directory for the installed PPL package AC_ARG_WITH(ppl, [ --with-ppl=PATH Specify prefix directory for the installed PPL package
Equivalent to --with-ppl-include=PATH/include Equivalent to --with-ppl-include=PATH/include
plus --with-ppl-lib=PATH/lib],, with_ppl=no) plus --with-ppl-lib=PATH/lib],, with_ppl=yes)
AC_ARG_WITH(ppl_include, [ --with-ppl-include=PATH Specify directory for installed PPL include files]) AC_ARG_WITH(ppl_include, [ --with-ppl-include=PATH Specify directory for installed PPL include files])
AC_ARG_WITH(ppl_lib, [ --with-ppl-lib=PATH Specify the directory for the installed PPL library]) AC_ARG_WITH(ppl_lib, [ --with-ppl-lib=PATH Specify the directory for the installed PPL library])
...@@ -1522,6 +1522,9 @@ case $with_ppl in ...@@ -1522,6 +1522,9 @@ case $with_ppl in
no) no)
ppllibs= ppllibs=
;; ;;
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"
...@@ -1546,7 +1549,7 @@ AC_ARG_ENABLE(ppl-version-check, ...@@ -1546,7 +1549,7 @@ AC_ARG_ENABLE(ppl-version-check,
ENABLE_PPL_CHECK=$enableval, ENABLE_PPL_CHECK=$enableval,
ENABLE_PPL_CHECK=yes) ENABLE_PPL_CHECK=yes)
if test "${ENABLE_PPL_CHECK}" = "yes"; then if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
saved_CFLAGS="$CFLAGS" saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $pplinc $gmpinc" CFLAGS="$CFLAGS $pplinc $gmpinc"
AC_MSG_CHECKING([for version $ppl_major_version.$ppl_minor_version of PPL]) AC_MSG_CHECKING([for version $ppl_major_version.$ppl_minor_version of PPL])
...@@ -1569,15 +1572,22 @@ clooginc=" -DCLOOG_PPL_BACKEND " ...@@ -1569,15 +1572,22 @@ clooginc=" -DCLOOG_PPL_BACKEND "
AC_ARG_WITH(cloog, [ --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package AC_ARG_WITH(cloog, [ --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
Equivalent to --with-cloog-include=PATH/include Equivalent to --with-cloog-include=PATH/include
plus --with-cloog-lib=PATH/lib],, with_cloog=no) plus --with-cloog-lib=PATH/lib],, with_cloog=yes)
AC_ARG_WITH(cloog_include, [ --with-cloog-include=PATH Specify directory for installed CLooG include files]) AC_ARG_WITH(cloog_include, [ --with-cloog-include=PATH Specify directory for installed CLooG include files])
AC_ARG_WITH(cloog_lib, [ --with-cloog-lib=PATH Specify the directory for the installed CLooG library]) AC_ARG_WITH(cloog_lib, [ --with-cloog-lib=PATH Specify the directory for the installed CLooG library])
if test "x$with_ppl" == "xno"; then
with_cloog=no
fi
case $with_cloog in case $with_cloog in
no) no)
clooglibs= clooglibs=
clooginc= clooginc=
;; ;;
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 "
...@@ -1602,7 +1612,7 @@ AC_ARG_ENABLE(cloog-version-check, ...@@ -1602,7 +1612,7 @@ AC_ARG_ENABLE(cloog-version-check,
ENABLE_CLOOG_CHECK=$enableval, ENABLE_CLOOG_CHECK=$enableval,
ENABLE_CLOOG_CHECK=yes) ENABLE_CLOOG_CHECK=yes)
if test "${ENABLE_CLOOG_CHECK}" = "yes"; then if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
saved_CFLAGS="$CFLAGS" saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc" CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
AC_MSG_CHECKING([for correct version of CLooG]) AC_MSG_CHECKING([for correct version of CLooG])
......
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