~ubuntu-branches/ubuntu/precise/arj/precise-security

« back to all changes in this revision

Viewing changes to gnu/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Guillem Jover
  • Date: 2004-06-27 08:07:09 UTC
  • Revision ID: james.westby@ubuntu.com-20040627080709-1gkxm72ex66gkwe4
Tags: upstream-3.10.21
ImportĀ upstreamĀ versionĀ 3.10.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl
 
2
dnl $Id: configure.in,v 1.14 2004/04/17 11:28:07 andrew_belov Exp $
 
3
dnl --------------------------------------------------------------------------
 
4
dnl This file performs setup of GNU-style makefiles.
 
5
dnl
 
6
 
 
7
AC_INIT([arj])
 
8
AC_PREREQ(2.53)
 
9
AC_CONFIG_SRCDIR([../arj.c])
 
10
 
 
11
dnl Installation script (let it be, temporarily...)
 
12
AC_PROG_INSTALL([e:/os2apps/autoconf/install-sh])
 
13
 
 
14
dnl Configuration parameters
 
15
AC_CONFIG_HEADER([../c_defs.h:config.h.in])
 
16
 
 
17
dnl Checks for the canonical system name
 
18
AC_CANONICAL_HOST
 
19
 
 
20
dnl Checks for programs.
 
21
AC_PROG_CC
 
22
 
 
23
dnl Checks for header files.
 
24
AC_HEADER_STDC
 
25
AC_CHECK_HEADERS([fcntl.h limits.h malloc.h])
 
26
 
 
27
dnl Checks for typedefs, structures, and compiler characteristics.
 
28
AC_C_CONST
 
29
AC_STRUCT_TM
 
30
AC_C_BIGENDIAN
 
31
 
 
32
dnl Checks for library functions.
 
33
AC_PROG_GCC_TRADITIONAL
 
34
AC_FUNC_MEMCMP
 
35
AC_FUNC_SETVBUF_REVERSED
 
36
AC_TYPE_SIGNAL
 
37
AC_FUNC_VPRINTF
 
38
AC_CHECK_FUNCS([getcwd min max mkdir mkdtemp rmdir fcloseall strcasecmp setpriority strdup strerror strstr strupr strlwr strtol strtoul])
 
39
 
 
40
dnl Platform-specific tuning
 
41
PROG_EXT=
 
42
DLL_EXT=".so"
 
43
DLL_FLAGS="-shared"
 
44
REQUIRES_DEF=
 
45
OS_ID="UNIX"
 
46
OS_DEF="-D_UNIX"
 
47
DLL_CFLAGS="-fPIC"
 
48
 
 
49
case $host_os in
 
50
linux*)
 
51
        AC_DEFINE(ELF_EXECUTABLES, 1, [Define if executables use ELF format])
 
52
        DYN_LIBS="-ldl"
 
53
        LD_STRIP="gnu/stripgcc.lnk"
 
54
        ;;
 
55
*bsd*)
 
56
        AC_DEFINE(ELF_EXECUTABLES)
 
57
        DLL_FLAGS="-shared -export-dynamic"
 
58
        LD_STRIP="gnu/stripgcc.lnk"
 
59
        ;;
 
60
*qnx*)
 
61
        AC_DEFINE(ELF_EXECUTABLES)
 
62
        DLL_FLAGS="-shared -fPIC"
 
63
        DLL_CFLAGS="-shared -fPIC"
 
64
        LD_STRIP="gnu/stripgcc.lnk"
 
65
        ;;
 
66
*solaris*)
 
67
        AC_DEFINE(ELF_EXECUTABLES)
 
68
        CFLAGS="-DSUNOS -D_UNIX"
 
69
        DLL_FLAGS="-shared -fPIC"
 
70
        DLL_CFLAGS="-shared -fPIC"
 
71
        LD_STRIP="gnu/stripgcc.lnk"
 
72
        ;;
 
73
os2*)
 
74
        PROG_EXT=".exe"
 
75
        DLL_EXT=".dll"
 
76
        LDFLAGS="-s"
 
77
        DLL_FLAGS="-Zdll -s"
 
78
        DLL_CFLAGS=""
 
79
        REQUIRES_DEF=1
 
80
        OS_ID="OS2"
 
81
        OS_DEF="-D_OS2"
 
82
        ;;
 
83
esac
 
84
 
 
85
case $host_cpu in
 
86
alpha*)
 
87
        AC_DEFINE(ALIGN_POINTERS)
 
88
        ;;
 
89
sparc*)
 
90
        AC_DEFINE(ALIGN_POINTERS)
 
91
        ;;
 
92
ia64*)
 
93
        AC_DEFINE(ALIGN_POINTERS)
 
94
        ;;
 
95
arm*)
 
96
        AC_DEFINE(ALIGN_POINTERS)
 
97
        ;;
 
98
hppa*)
 
99
        AC_DEFINE(ALIGN_POINTERS)
 
100
        ;;
 
101
esac
 
102
 
 
103
dnl Registration wizard is named "arj-register" under UNIX-like platforms, to
 
104
dnl give it a unique name
 
105
 
 
106
case $host_os in
 
107
os2*)
 
108
        REGISTER=register
 
109
        ;;
 
110
*)
 
111
        REGISTER=arj-register
 
112
esac
 
113
 
 
114
dnl Initial setup
 
115
 
 
116
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
 
117
AC_SUBST(CONFIG_SHELL)
 
118
 
 
119
AC_MSG_CHECKING([if dynamic C library may be used])
 
120
AC_ARG_ENABLE(libc,
 
121
[  --disable-libc          Disable linking with dynamic C library],
 
122
        [enable_libc=no],
 
123
        [enable_libc=yes
 
124
         case $host_os in
 
125
         os2*)
 
126
                LDFLAGS="-Zcrtdll $LDFLAGS"
 
127
                DLL_FLAGS="-Zcrtdll $DLL_FLAGS"
 
128
         esac
 
129
        ])
 
130
AC_MSG_RESULT($enable_libc)
 
131
test "$enable_libc" != "no" && AC_DEFINE(LIBC, 1, [Define if dynamic C library may be used])
 
132
 
 
133
AC_MSG_CHECKING([if SFX executables may be packed])
 
134
AC_ARG_ENABLE(packsfx,
 
135
[  --disable-packsfx       Force disable packing of SFX modules],
 
136
        [packsfx=no],
 
137
        [packsfx=yes])
 
138
AC_MSG_RESULT($packsfx)
 
139
test "$packsfx" != "yes" && AC_DEFINE(NP_SFX, 1, [Define if SFX executables may be packed])
 
140
 
 
141
AC_MSG_CHECKING([what to use as a dedicated output directory])
 
142
AC_ARG_ENABLE(outdir,
 
143
[  --enable-outdir         Specify a dedicated output directory],
 
144
        [OUT_DIR=$enableval],
 
145
        [OUT_DIR=$host_os])
 
146
AC_MSG_RESULT($OUT_DIR)
 
147
AC_SUBST(OUT_DIR)
 
148
 
 
149
AC_MSG_CHECKING([fnmatch() tolerance to incomplete patterns acting as filenames])
 
150
AC_RUN_IFELSE([
 
151
#include <fnmatch.h>
 
152
int main()
 
153
{
 
154
 return(fnmatch("@<:@", "@<:@", 0)); /* Must return 0 for a valid match */
 
155
}
 
156
], [TOLERANT_FNMATCH=yes], [TOLERANT_FNMATCH=no], [TOLERANT_FNMATCH=cross])
 
157
if test x$TOLERANT_FNMATCH = xyes ; then
 
158
  AC_DEFINE(TOLERANT_FNMATCH, 1, [Trust fnmatch() when supplying incomplete patterns])
 
159
fi
 
160
AC_MSG_RESULT([$TOLERANT_FNMATCH])
 
161
 
 
162
dnl Experimental feature(s)
 
163
AC_MSG_CHECKING([if color output is demanded])
 
164
AC_ARG_ENABLE(color-output,
 
165
[  --enable-color-output   Enable JAR-style color output (EXPERIMENTAL)],
 
166
        [color_output=yes],
 
167
        [color_output=no])
 
168
AC_MSG_RESULT($color_output)
 
169
test "$color_output" = "yes" && AC_DEFINE(USE_COLORS)
 
170
 
 
171
AC_SUBST(HAVE_MKDTEMP)
 
172
AC_SUBST(HAVE_FCLOSEALL)
 
173
AC_SUBST(HAVE_STRCASECMP)
 
174
AC_SUBST(HAVE_SETPRIORITY)
 
175
AC_SUBST(HAVE_STRUPR)
 
176
AC_SUBST(HAVE_STRLWR)
 
177
 
 
178
AC_SUBST(PROG_EXT)
 
179
AC_SUBST(DLL_EXT)
 
180
AC_SUBST(DLL_FLAGS)
 
181
AC_SUBST(DLL_CFLAGS)
 
182
AC_SUBST(REQUIRES_DEF)
 
183
AC_SUBST(OS_ID)
 
184
AC_SUBST(OS_DEF)
 
185
AC_SUBST(LIBS)
 
186
AC_SUBST(DYN_LIBS)
 
187
AC_SUBST(LD_STRIP)
 
188
AC_SUBST(REGISTER)
 
189
AC_SUBST(TOLERANT_FNMATCH)
 
190
 
 
191
AC_CONFIG_FILES([../GNUmakefile:makefile.in])
 
192
AC_OUTPUT