-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.in
More file actions
36 lines (27 loc) · 761 Bytes
/
configure.in
File metadata and controls
36 lines (27 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
dnl Process this file with autoconf to produce a configure script.
AC_INIT(xplot.c)
AC_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_PROG_CC
if test $ac_cv_prog_gcc = yes; then
CFLAGS="$CFLAGS -Wall"
fi
AC_PROG_INSTALL
dnl Find X11, and add the include/libs to the c/ld flags
dnl This must be done BEFORE checking for the X libraries
AC_PATH_XTRA
LIBS="$LIBS $X_LIBS"
CFLAGS="$CFLAGS $X_CFLAGS"
dnl Checks for libraries.
dnl Replace `main' with a function in -lX11:
AC_CHECK_LIB(X11, main)
dnl Replace `main' with a function in -lm:
AC_CHECK_LIB(m, main)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_HEADER_STDC
AC_HEADER_TIME
AC_STRUCT_TM
AC_TM_GMTOFF
dnl Checks for library functions.
AC_OUTPUT(Makefile)