head 1.1; branch 1.1.1; access ; symbols main:1.1.1.1 glxc:1.1.1; locks ; strict; comment @# @; 1.1 date 2003.11.22.00.06.40; author peter; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2003.11.22.00.06.40; author peter; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @# Process this file with autoconf to produce a configure script. AC_INIT(src/glxc.h) dnl =========================================================================== # Package version number, (as distinct from shared library version) # This must be manually synchronized with the version in src/glxc.h LIBGLXC_VERSION=0.1.0 # libtool shared library version # Increment if the interface has additions, changes, removals. LT_CURRENT=1 # Increment any time the source changes; set to # 0 if you increment CURRENT LT_REVISION=0 # Increment if any interfaces have been added; set to 0 # if any interfaces have been removed. removal has # precedence over adding, so set to 0 if both happened. LT_AGE=0 VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE" AC_SUBST(VERSION_INFO) dnl =========================================================================== SLIM_REQUIRED=0.2.0 RENDER_REQUIRED=0.8 dnl =========================================================================== AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE(libglxc, $LIBGLXC_VERSION) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_ISC_POSIX AC_PROG_CC AC_PROG_CPP AC_PROG_AWK AM_PROG_LIBTOOL AC_STDC_HEADERS if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[[\ \ ]]-Wall[[\ \ ]]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac if test "x$enable_ansi" = "xyes"; then case " $CFLAGS " in *[[\ \ ]]-ansi[[\ \ ]]*) ;; *) CFLAGS="$CFLAGS -ansi" ;; esac case " $CFLAGS " in *[[\ \ ]]-pedantic[[\ \ ]]*) ;; *) CFLAGS="$CFLAGS -pedantic" ;; esac fi fi dnl ========================================================================== # Check for X AC_PATH_XTRA if test "x$no_x" = "xyes" then AC_MSG_ERROR([X is required, but it was either disabled or not found.]) fi # Check for XTHREADS save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS -lX11" AC_MSG_CHECKING([for XTHREADS in Xlib]) AC_TRY_RUN([ #include int main() { return (!(XInitThreads())); }], [xthreads=yes], [xthreads=no], [xthreads=yes]) AC_MSG_RESULT($xthreads) LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" if test "x$xthreads" = "xyes" then AC_DEFINE(XTHREADS, 1) fi dnl =========================================================================== PKG_CHECK_MODULES(LIBGLXC, slim >= $SLIM_REQUIRED render >= $RENDER_REQUIRED) AC_SUBST(LIBGLXC_CFLAGS) AC_SUBST(LIBGLXC_LIBS) dnl =========================================================================== AC_OUTPUT([ libglxc.pc Makefile src/Makefile ]) @ 1.1.1.1 log @First public CVS version @ text @@