Add explicit check for <artsc.h>, in case artsc-config lies to us.

Original commit message from CVS:
Add explicit check for <artsc.h>, in case artsc-config lies to us.
This commit is contained in:
Richard Boulton 2001-04-30 10:22:37 +00:00
parent b61552c33f
commit 29098cb20f

View file

@ -219,7 +219,15 @@ if test x$ARTSC_CONFIG = xno; then
else
ARTSC_LIBS=`artsc-config --libs`
ARTSC_CFLAGS=`artsc-config --cflags`
HAVE_ARTSC=yes
dnl AC_CHECK_HEADER uses CPPFLAGS, but not CFLAGS.
dnl Assume only suitable flags result from artsc-config --cflags
artsc_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $ARTSC_CFLAGS"
AC_CHECK_HEADER(artsc.h,
HAVE_ARTSC=yes,
HAVE_ARTSC=no
)
CPPFLAGS=$artsc_save_CPPFLAGS
fi
AC_SUBST(ARTSC_LIBS)
AC_SUBST(ARTSC_CFLAGS)