d8c1e157ab
git-svn-id: https://crux.nu/svn/tools/prt-get/trunk@9 0b5ae1c7-2405-0410-a7fc-ba219f786e1e
43 lines
932 B
Plaintext
43 lines
932 B
Plaintext
# Process this file with autoconf to produce a configure script.
|
|
AC_INIT
|
|
AC_CONFIG_SRCDIR([src/prtget.cpp])
|
|
AM_INIT_AUTOMAKE(prt-get,0.5.11)
|
|
|
|
|
|
dnl Determine default prefix
|
|
test x$prefix = "xNONE" && prefix="$ac_default_prefix"
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CXX
|
|
AC_PROG_CC
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PREFIX_DEFAULT(/usr)
|
|
|
|
# Checks for libraries.
|
|
|
|
# Checks for header files.
|
|
AC_HEADER_DIRENT
|
|
AC_CHECK_HEADERS(unistd.h stdio.h sys/types.h sys/stat.h fnmatch.h \
|
|
dirent.h fcntl.h signal.h regex.h)
|
|
|
|
CFLAGS="$CFLAGS $X_CFLAGS"
|
|
CXXFLAGS="$CXXFLAGS $X_CFLAGS"
|
|
LIBS="$LIBS $X_LIBS"
|
|
LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_CONST
|
|
|
|
# I hate you autotools
|
|
sysconfdir="/etc"
|
|
localstatedir="/var"
|
|
|
|
# Checks for library functions.
|
|
AM_CONFIG_HEADER(config.h)
|
|
AC_CONFIG_FILES([Makefile
|
|
src/Makefile
|
|
doc/Makefile
|
|
misc/Makefile])
|
|
AC_OUTPUT
|