File: configure.in

package info (click to toggle)
remind 03.03.01-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,096 kB
  • sloc: ansic: 17,507; sh: 3,962; perl: 828; lisp: 343; makefile: 178
file content (80 lines) | stat: -rw-r--r-- 1,721 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
dnl Process this file with autoconf to produce a configure script.

AC_INIT(src/queue.c)

cat <<'EOF'

**********************
*                    *
* Configuring REMIND *
*                    *
**********************

EOF

AC_CONFIG_HEADER(src/config.h)

if test "`uname -s`" = "Darwin" ; then
   trap 'echo Be patient...' INT TERM
   cat <<'EOF'

Please don't use Apple products.  This script will continue in 30 seconds
if you insist on compiling Remind on Mac OS X.

EOF
    for i in 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ; do
        sleep 1
    done
    trap - INT
    trap - TERM
fi

if uname -s | grep -i -q 'cygwin' ; then
   trap 'echo Be patient...' INT TERM
   cat <<'EOF'

Please don't use Microsoft products.  This script will continue in 30
seconds if you insist on compiling Remind on Cygwin.

EOF
    for i in 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ; do
        sleep 1
    done
    trap - INT
    trap - TERM
fi

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

dnl Checks for libraries.
dnl Replace `main' with a function in -lm:

AC_CHECK_LIB(m, sqrt)

dnl Integer sizes
AC_CHECK_SIZEOF(unsigned short)
AC_CHECK_SIZEOF(unsigned int)
AC_CHECK_SIZEOF(unsigned long)

dnl Checks for header files.
AC_CHECK_HEADERS(sys/file.h glob.h wctype.h locale.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_STRUCT_TM

dnl Checks for library functions.
AC_FUNC_UTIME_NULL
AC_HEADER_TIME

if test "$GCC" = yes; then
	CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes"
fi

AC_CHECK_FUNCS(setenv unsetenv glob mbstowcs setlocale)
VERSION=03.03.01
AC_SUBST(VERSION)
AC_OUTPUT(src/Makefile www/Makefile src/version.h)