📄 syshacks.m4
字号:
# SYNOPSIS## AMANDA_SYSHACKS## OVERVIEW## This macro encapsulates any system-specific hacks required to make Amanda# compile that don't fit neatly into any other macro. It is implemented as a # big 'case' statement based on the canonical target architecture.## It also serves as a list of the "supported" architectures, represented by # case statements with empty bodies. If no architecture matches, the user# is presented with a warning.#AC_DEFUN([AMANDA_SYSHACKS], [ AC_REQUIRE([AC_CANONICAL_TARGET]) case "$target" in *-dec-osf*) ;; *-dg-*) ;; *-netbsd*) ;; *-freebsd*) ;; *-openbsd*) ;; *-hp-*) case "$CC" in *gcc*) AMANDA_ADD_CPPFLAGS([-D__STDC_EXT__]) ;; *cc*) AMANDA_ADD_CFLAGS([-Ae]) ;; esac ;; *-ibm-aix*) ;; m88k-motorola-sysv4) ;; *-nextstep3) ;; *-pc-bsdi*) ;; *-pc-linux-*) ;; *-redhat-linux-*) ;; *-suse-linux-*) ;; x86_64-*-linux-*) ;; alpha*-*-linux-*) ;; sparc*-*-linux-*) ;; powerpc-*-linux-*) ;; *-sgi-irix3*) # The old cc won't work! if test "x$GCC" != "xyes"; then AC_MSG_ERROR([The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc]) fi ;; *-sgi-irix4*) ;; *-sgi-irix5*) ;; *-sgi-irix6*) ;; *-solaris2*) ;; *-sun-sunos4.1*) ;; *-ultrix*) ;; *-sysv4.2uw2*) ;; *-sco3.2v5*) ;; i386-pc-isc4*) ;; *-sni-sysv4) ;; *-pc-cygwin) AC_DEFINE(IGNORE_TAR_ERRORS,1,[Define on Cygwin. ]) # Cygwin needs PATH to find cygwin1.dll AC_DEFINE(NEED_PATH_ENV,1,[Define on Cygwin. ]) AC_DEFINE(IGNORE_FSTAB,1,[Define on Cygwin. ]) AMANDA_ADD_LDFLAGS([-Wl,-enable-runtime-pseudo-reloc -no-undefined]) ;; *-apple-darwin7*) # MacOS X 10.3.* (Panther) ;; *-apple-darwin8*) # MacOS X 10.4.* (Tiger) ;; *) AMANDA_ADD_WARNING([*****This machine, target type $target, is not known to be fully supportedby this configure script. If the installation of Amanda on this systemsucceeds or needed any patches, please email amanda-hackers@amanda.orgwith the patches or an indication of the sucess or failure of theAmanda installation on your system.*****]) ;; esac])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -