File: configure.in

package info (click to toggle)
xplot-xplot.org 0.90.7.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,848 kB
  • sloc: ansic: 4,283; perl: 724; sh: 152; makefile: 133
file content (35 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (2)
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

dnl Checks for library functions.

AC_OUTPUT(Makefile)