#MIN_CONFIG dnl These are common macros that you might or might not want to use dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_TIME AC_CHECK_HEADERS(fcntl.h sys/param.h sys/time.h unistd.h stdlib.h paths.h) AC_CHECK_FUNCS(usleep) AC_HAVE_DPMS dnl Checks for ogle. ogledir="" AC_ARG_WITH(ogle-dir, [ --with-ogle-dir=DIR where the ogle base directory is @<:@default=/usr@:>@ ], [ ogledir="$withval" ], [ ogledir="/usr" ], ) oglebin="" AC_ARG_WITH(ogle-bin, [ --with-ogle-bin=DIR where the ogle_gui executable is installed @<:@default=$ogle-dir/lib/ogle@:>@ ], [ oglebin="$withval" ], [ oglebin="$ogledir/lib/ogle" ], ) ogleinc="" AC_ARG_WITH(ogle-includes, [ --with-ogle-includes=DIR where the ogle headers are installed @<:@default=$ogle-dir/include/ogle@:>@ ], [ ogleinc="$withval" ], [ ogleinc="$ogledir/include/ogle" ] ) oglelib="" AC_ARG_WITH(ogle-libs, [ --with-ogle-libs=DIR where the ogle libraries are installed @<:@default=$ogle-dir/lib/ogle@:>@ ], [ oglelib="$withval" ], [ oglelib="$ogledir/lib/ogle" ] ) AC_SUBST(ogledir) AC_SUBST(oglebin) AC_SUBST(ogleinc) AC_SUBST(oglelib) OLDLIBS="$OLDLIBS" LIBS="-L$oglelib -ldvdcontrol" OLDCC="$CC" CC="g++" OLDCPPF="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$ogleinc" echo -n "checking if ogle >= 0.9.2 is installed... " AC_TRY_LINK( extern "C" { #include } , DVDNav_t* nav = 0; DVDSaveScreenshot(nav,ScreenshotModeWithSPU,"test.jpg"); , echo "yes" , echo "no" echo "*******************************************************" echo "*** ERROR: You need to install ogle >= 0.9.2 from ***" echo "*** http://www.dtek.chalmers.se/groups/dvd/ ***" echo "*** If you use a package based distribution ***" echo "*** a package like ogle-devel or ogle-dev should ***" echo "*** exist which contains the necessary header ***" echo "*** files to build oKle so you MUST install that ***" echo "*** package. If you installed ogle in some unusual ***" echo "*** location please see ./configure --help! ***" echo "*** If it still doesn't work you can send a copy ***" echo "*** of config.log to martin.piskernig@univie.ac.at! ***" echo "*******************************************************" exit 1 ) LIBS="$OLDLIBS" CPPFLAGS="$OLDCPPF" CC="$OLDCC" if test ! -e "$prefix/bin/kdeinit"; then echo "*** NOTE: You are trying to install okle in another directory than other KDE apps." echo "*** If okle looks strange on execution (e.g. not all icons/menus are there)" echo "*** please set your KDEDIRS variable so that it contains the path where you" echo "*** installed okle. Or run ./configure with --prefix=/path/to/kde/base/dir" fi AC_OUTPUT(scripts/okle)