File: configure.in

package info (click to toggle)
libieee1284 0.2.11-14
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 3,816 kB
  • sloc: sh: 8,712; ansic: 5,324; xml: 1,897; makefile: 84
file content (80 lines) | stat: -rw-r--r-- 2,142 bytes parent folder | download | duplicates (5)
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(libieee1284, 0.2.11)
AC_CONFIG_SRCDIR(libieee1284.spec.in)
AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.6])
AC_PREREQ(2.53)
AM_CONFIG_HEADER(include/config.h)

AM_MAINTAINER_MODE

dnl Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL

dnl Checks for libraries.

dnl Checks for header files.

AC_CHECK_HEADERS(sys/io.h)

dnl Checks for typedefs, structures, and compiler characteristics.
solaris_io=false
case "{$host}" in
*-*-linux*)
        AC_DEFINE(HAVE_LINUX,1,enable ppdev access)
;;
*86-*-openbsd*)
        AC_DEFINE(HAVE_OBSD_I386,1,enable OpenBSD i386 ioperm access)
	LIBS="-li386"
;;
*86-*-freebsd* | *86-*-kfreebsd* | *x86_64-*-freebsd* | *x86_64-*-kfreebsd* )
        AC_DEFINE(HAVE_FBSD,1,enable FreeBSD /dev/io access)
;;
*86-*-solaris*)
        AC_DEFINE(HAVE_SOLARIS,1,enable solaris iop access)
	solaris_io=true
;;
*-*-cygwin*)
        dnl Strip version number from uname and make sure we're on NT not 9x
        case `uname -s | sed 's/-.*$//'` in
        CYGWIN_NT*)
                AC_CHECK_HEADER(w32api/windows.h, [
      	                AC_DEFINE(HAVE_CYGWIN_NT,1,enable w32api access)
	        ], AC_MSG_ERROR(You need the cygwin w32api files on NT)) 
        ;;
        *)
      	        AC_DEFINE(HAVE_CYGWIN_9X,1,enable win95 access)
        ;;
        esac
;;
*-*-mingw*)
dnl        AC_DEFINE(HAVE_CYGWIN_9X,1,enable win95 access)
        AC_DEFINE(HAVE_CYGWIN_NT,1,enable w32api access)
;;
*)
        AC_MSG_ERROR(Sorry.  $host is not supported yet)
;;
esac

AM_CONDITIONAL(SOLARIS_IO, test x$solaris_io = xtrue)

AC_ARG_WITH([python],
	    AC_HELP_STRING([--with-python],
			   [build python bindings]),
	    [ac_cv_use_python=$withval], [ac_cv_use_python=yes])
AC_CACHE_CHECK([whether to build python bindings],
	       [ac_cv_use_python], [ac_cv_use_python=yes])
AM_CONDITIONAL(PYTHON, test x$ac_cv_use_python = xyes)
if test $ac_cv_use_python = yes; then
AM_PATH_PYTHON
fi

dnl Checks for library functions.

AC_CONFIG_FILES(Makefile libieee1284.spec)
AC_OUTPUT