Imported Upstream version 3.2.0
[debian/amanda] / config / amanda / syshacks.m4
1 # SYNOPSIS
2 #
3 #   AMANDA_SYSHACKS
4 #
5 # OVERVIEW
6 #
7 #   This macro encapsulates any system-specific hacks required to make Amanda
8 #   compile that don't fit neatly into any other macro.  It is implemented as a 
9 #   big 'case' statement based on the canonical target architecture.
10 #
11 #   It also serves as a list of the "supported" architectures, represented by 
12 #   case statements with empty bodies.  If no architecture matches, the user
13 #   is presented with a warning.
14 #
15 AC_DEFUN([AMANDA_SYSHACKS], [
16     case "$host" in
17         *-dec-osf*)
18                     ;;
19         *-dg-*)
20                     ;;
21         *-netbsd*)
22                     ;;
23         *-freebsd*)
24                     ;;
25         *-openbsd*)
26                     ;;
27         *-hp-*)
28                     case "$CC" in
29                         *gcc*)
30                             AMANDA_ADD_CPPFLAGS([-D__STDC_EXT__])
31                             ;;
32                         *cc*)
33                             AMANDA_ADD_CFLAGS([-Ae])
34                             ;;
35                     esac
36                     ;;
37         *-ibm-aix*)
38                     ;;
39         m88k-motorola-sysv4)
40                     ;;
41         *-nextstep3)
42                     ;;
43         *-pc-bsdi*)
44                     ;;
45         *-pc-linux-*)
46                     ;;
47         *-redhat-linux-*)
48                     ;;
49         *-suse-linux-*)
50                     ;;
51         x86_64-*-linux-*)
52                     ;;
53         alpha*-*-linux-*)
54                     ;;
55         sparc*-*-linux-*)
56                     ;;
57         powerpc-*-linux-*)
58                     ;;
59         *-sgi-irix3*)
60                     # The old cc won't work!
61                     if test "x$GCC" != "xyes"; then
62                         AC_MSG_ERROR([The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc])
63                     fi
64                     ;;
65         *-sgi-irix4*)
66                     ;;
67         *-sgi-irix5*)
68                     ;;
69         *-sgi-irix6*)
70                     ;;
71         *-solaris2*)
72                     ;;
73         *-sun-sunos4.1*)
74                     ;;
75         *-ultrix*)
76                     ;;
77         *-sysv4.2uw2*)
78                     ;;
79         *-sco3.2v5*)
80                     ;;
81         i386-pc-isc4*)
82                     ;;
83         *-sni-sysv4)
84                     ;;
85         *-pc-cygwin)
86                     AC_DEFINE(IGNORE_TAR_ERRORS,1,[Define on Cygwin. ])
87                     # Cygwin needs PATH to find cygwin1.dll
88                     AC_DEFINE(NEED_PATH_ENV,1,[Define on Cygwin. ])
89                     AC_DEFINE(IGNORE_FSTAB,1,[Define on Cygwin. ])
90                     AMANDA_ADD_LDFLAGS([-Wl,-enable-runtime-pseudo-reloc -no-undefined])
91                     ;;
92         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
93                     ;;
94         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
95                     ;;
96         *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
97                     ;;
98         *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
99                     ;;
100       *)
101                 AMANDA_ADD_WARNING(
102 [*****
103 This machine, target type $host, is not known to be fully supported
104 by this configure script.  If the installation of Amanda on this system
105 succeeds or needed any patches, please email amanda-hackers@amanda.org
106 with the patches or an indication of the sucess or failure of the
107 Amanda installation on your system.
108 *****])
109                     ;;
110     esac
111 ])