[AC_MSG_WARN([Problems with libblas, also tried lg2c...])
dnl
make_own_blas_lib=libblas.la],
dnl Let the user decide what it wants.
[-lg2c])
dnl
AC_CHECK_LIB(X11, main,,
AC_ARG_WITH(BLASname,
[AC_MSG_ERROR([Exiting...])],
AC_HELP_STRING([--with-BLASname=NAME], [use NAME as the name of the BLAS library (without leading "lib" prefix and trailing suffix). Default: "blas"]),
[${X_LIBS}])
[case "$withval" in
AC_CHECK_LIB(Xext, main,,
yes) AC_MSG_ERROR("option \"--with-BLASname\" requires an argument")
[AC_MSG_ERROR([Exiting...])],
;;
[${X_LIBS}])
no) AC_MSG_ERROR("option \"--with-BLASname\" requires an argument")
AC_CHECK_LIB(GL, main,,
;;
[AC_CHECK_LIB(MesaGL,main)],
*) LIBBLAS=$withval
[${X_LIBS}])
;;
;;
esac],
*)
LIBBLAS=blas)
AC_CHECK_LIB(blas, main,,
AC_SUBST(LIBBLAS)
[AC_MSG_WARN([Problems with libblas, creating our own...])
[if test -f $withval/gltools-2-4/libgltools.a; then
AC_SUBST(X_ALL_LIBS)
AC_MSG_RESULT([Found libgltools.a in specified directory $withval/gltools-2-4.])
gltools_include="-I$withval/gltools-2-4"
dnl
AC_DEFINE(HAVE_LIBGLTOOLS,1,
dnl check for OpenGL (maybe Mesa)
[Define to 1 if you have the `gltools-2-4' library (-lgltools)])
dnl
AC_ARG_WITH(GLname,
LIBGLTOOLS_PRESENT=1
AC_HELP_STRING([--with-GLname=NAME], [use NAME as the name of the OpenGL (tm) library (without leading "lib" prefix and trailing suffix). Default: "GL"]),
LIBS="-L$withval/gltools-2-4 -lgltools $LIBS"
[case "$withval" in
else
yes) AC_MSG_ERROR("option \"--with-GLname\" requires an argument")
AC_MSG_RESULT([*** No libgltools.a found in $withval/gltools-2-4.])
;;
fi],
no) AC_MSG_ERROR("option \"--with-GLname\" requires an argument")
[if test -f ./gltools-2-4/libgltools.a; then
;;
AC_MSG_RESULT([Found libgltools.a in default directory ./gltools-2-4])
*) LIBGL=$withval
gltools_include="-I`pwd`/gltools-2-4"
;;
AC_DEFINE(HAVE_LIBGLTOOLS,1,
esac],
[Define to 1 if you have the `gltools-2-4' library (-lgltools)])