1 AC_PREREQ(2.57) 2 AC_INIT([libwsbm], 1.1.0, [thomas (a] tungstengraphics.com], libwsbm) 3 AC_CONFIG_SRCDIR([Makefile.am]) 4 AM_INIT_AUTOMAKE([dist-bzip2]) 5 6 AM_CONFIG_HEADER([config.h]) 7 8 AC_DISABLE_STATIC 9 AC_PROG_LIBTOOL 10 AC_PROG_CC 11 PKG_PROG_PKG_CONFIG 12 13 PKG_CHECK_MODULES(libdrm, libdrm) 14 AC_SUBST(libdrm_CFLAGS) 15 AC_SUBST(libdrm_LIBS) 16 AC_HEADER_STDC 17 AC_SYS_LARGEFILE 18 19 AC_CHECK_HEADER(pthread.h, [ 20 AC_SEARCH_LIBS(pthread_cond_init, pthread, 21 [AC_DEFINE(HAVE_PTHREADS, 1, "os has pthreads")],,,) 22 ],,,) 23 24 pkgconfigdir=${libdir}/pkgconfig 25 AC_SUBST(pkgconfigdir) 26 27 AC_OUTPUT([ 28 Makefile 29 src/Makefile 30 libwsbm.pc]) 31