[Liboss-commit] CVS: liboss configure.in,1.16,1.17
Brought to you by:
thesin
|
From: Justin <th...@us...> - 2002-10-21 23:18:35
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv6771 Modified Files: configure.in Log Message: added a test for esd.h Index: configure.in =================================================================== RCS file: /cvsroot/liboss/liboss/configure.in,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- configure.in 18 Oct 2002 22:00:23 -0000 1.16 +++ configure.in 21 Oct 2002 23:18:32 -0000 1.17 @@ -166,6 +166,28 @@ AC_CHECK_LIB(dl,dlsym) AC_CHECK_LIB(esd,esd_open_sound) +AC_ARG_WITH(esd-prefix, + [ --with-esd=DIR where the ESound root is (DIR/include DIR/lib) ], + esd_prefix="$withval" + ) + +AC_SUBST(esd_prefix) + +AC_CHECK_HEADERS(esd.h,[esd=true], +[ + esd=false; + for ac_dir in $esd_prefix/include /usr/include /usr/local/include; + do + AC_CHECK_HEADERS( $ac_dir/esd.h, + [ + esd=true; + INCLUDES="$INCLUDES $USER_INCLUDES -I$ac_dir"; + ]) + done +]) + +AM_CONDITIONAL(ESD, test "x$esd" = "xtrue" ) + AC_CONFIG_FILES([ Makefile lib/Makefile |