configure.ac (1018B)
1# Process this file with autoconf to produce a configure script. 2AC_INIT([xsel],[1.2.1]) 3AM_INIT_AUTOMAKE([1.14 foreign dist-xz subdir-objects]) 4AC_CONFIG_SRCDIR([xsel.c]) 5AC_CONFIG_HEADERS([config.h]) 6 7# Checks for programs. 8AC_PROG_CC 9AC_PROG_CPP 10AC_PROG_INSTALL 11AC_PROG_MAKE_SET 12 13# Checks for libraries. 14PKG_CHECK_MODULES([X], [x11]) 15 16# Error out on compile warnings 17dnl Add some useful warnings if we have gcc. 18dnl changequote(,)dnl 19AS_IF([test "x$ac_cv_c_compiler_gnu" = xyes], [ 20 CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wdeclaration-after-statement -Wno-unused" 21]) 22dnl changequote([,])dnl 23 24# Checks for header files. 25AC_CHECK_HEADERS([errno.h fcntl.h stdlib.h string.h sys/time.h unistd.h]) 26 27# Checks for typedefs, structures, and compiler characteristics. 28AC_C_CONST 29AC_TYPE_PID_T 30AC_TYPE_SIZE_T 31AC_CHECK_MEMBERS([struct stat.st_blksize]) 32AC_TYPE_UID_T 33 34# Checks for library functions. 35AC_FUNC_FORK 36AC_FUNC_MALLOC 37AC_CHECK_FUNCS([dup2 select strdup strerror strtol]) 38 39AC_CONFIG_FILES([Makefile]) 40AC_OUTPUT