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.
9
AC_CONFIG_SRCDIR([../arj.c])
11
dnl Installation script (let it be, temporarily...)
12
AC_PROG_INSTALL([e:/os2apps/autoconf/install-sh])
14
dnl Configuration parameters
15
AC_CONFIG_HEADER([../c_defs.h:config.h.in])
17
dnl Checks for the canonical system name
20
dnl Checks for programs.
23
dnl Checks for header files.
25
AC_CHECK_HEADERS([fcntl.h limits.h malloc.h])
27
dnl Checks for typedefs, structures, and compiler characteristics.
32
dnl Checks for library functions.
33
AC_PROG_GCC_TRADITIONAL
35
AC_FUNC_SETVBUF_REVERSED
38
AC_CHECK_FUNCS([getcwd min max mkdir mkdtemp rmdir fcloseall strcasecmp setpriority strdup strerror strstr strupr strlwr strtol strtoul])
40
dnl Platform-specific tuning
51
AC_DEFINE(ELF_EXECUTABLES, 1, [Define if executables use ELF format])
53
LD_STRIP="gnu/stripgcc.lnk"
56
AC_DEFINE(ELF_EXECUTABLES)
57
DLL_FLAGS="-shared -export-dynamic"
58
LD_STRIP="gnu/stripgcc.lnk"
61
AC_DEFINE(ELF_EXECUTABLES)
62
DLL_FLAGS="-shared -fPIC"
63
DLL_CFLAGS="-shared -fPIC"
64
LD_STRIP="gnu/stripgcc.lnk"
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"
87
AC_DEFINE(ALIGN_POINTERS)
90
AC_DEFINE(ALIGN_POINTERS)
93
AC_DEFINE(ALIGN_POINTERS)
96
AC_DEFINE(ALIGN_POINTERS)
99
AC_DEFINE(ALIGN_POINTERS)
103
dnl Registration wizard is named "arj-register" under UNIX-like platforms, to
104
dnl give it a unique name
111
REGISTER=arj-register
116
test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
117
AC_SUBST(CONFIG_SHELL)
119
AC_MSG_CHECKING([if dynamic C library may be used])
121
[ --disable-libc Disable linking with dynamic C library],
126
LDFLAGS="-Zcrtdll $LDFLAGS"
127
DLL_FLAGS="-Zcrtdll $DLL_FLAGS"
130
AC_MSG_RESULT($enable_libc)
131
test "$enable_libc" != "no" && AC_DEFINE(LIBC, 1, [Define if dynamic C library may be used])
133
AC_MSG_CHECKING([if SFX executables may be packed])
134
AC_ARG_ENABLE(packsfx,
135
[ --disable-packsfx Force disable packing of SFX modules],
138
AC_MSG_RESULT($packsfx)
139
test "$packsfx" != "yes" && AC_DEFINE(NP_SFX, 1, [Define if SFX executables may be packed])
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],
146
AC_MSG_RESULT($OUT_DIR)
149
AC_MSG_CHECKING([fnmatch() tolerance to incomplete patterns acting as filenames])
154
return(fnmatch("@<:@", "@<:@", 0)); /* Must return 0 for a valid match */
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])
160
AC_MSG_RESULT([$TOLERANT_FNMATCH])
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)],
168
AC_MSG_RESULT($color_output)
169
test "$color_output" = "yes" && AC_DEFINE(USE_COLORS)
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)
182
AC_SUBST(REQUIRES_DEF)
189
AC_SUBST(TOLERANT_FNMATCH)
191
AC_CONFIG_FILES([../GNUmakefile:makefile.in])