File: configure.ac

package info (click to toggle)
dicomnifti 2.33.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 344 kB
  • sloc: sh: 2,514; cpp: 2,113; makefile: 160; ansic: 17
file content (55 lines) | stat: -rw-r--r-- 897 bytes parent folder | download | duplicates (3)
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
#	$Id: configure.ac,v 1.4 2005-12-12 22:19:14 valerio Exp $
AC_INIT(DICOMNIfTI, 1.0)

dnl Checks the host. For now just Gnu-Linux and OSX-Darwin

AC_CANONICAL_HOST 
system=$host
case $system in
     sparc-sun-solaris2.*)
	OS_TYPE = "SOLARIS"
	OS_DBGF = "-g"
	;;
     *-linux*)
	OS_TYPE="LINUX"
	OS_DBGF="-ggdb"
	;;
     powerpc-apple-darwin*)
	OS_TYPE="OSX"
	LIBS="-lz"
	OS_DBGF="-g"
	PROC_TYPE="POWERPC"
	;;
     i*-apple-darwin*)
	OS_TYPE="OSX"
	LIBS="-lz"
	OS_DBGF="-g"
	PROC_TYPE="INTEL"
	;;
esac
AC_SUBST(OS_TYPE)
AC_SUBST(OS_DBGF)
AC_SUBST(PROC_TYPE)

dnl this is to define where matlab lives

AC_SUBST(TMW_ROOT)

dnl Checks for programs.

AC_PROG_CXX
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_INSTALL

dnl Checks for header files.

AC_HEADER_STDC

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

dnl Checks for library functions.

AC_OUTPUT(Makefile src/Makefile)