]> gcc.gnu.org Git - gcc.git/blame - fastjar/configure.in
1aexcept.adb, [...]: Merge header, formatting and other trivial changes from ACT.
[gcc.git] / fastjar / configure.in
CommitLineData
bd8757b3
APB
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(jartool.h)
7a93476d 3AM_INIT_AUTOMAKE(fastjar, 0.92-gcc)
bd8757b3
APB
4AM_CONFIG_HEADER(config.h)
5
6dnl Checks for programs.
7AC_PROG_CC
8AC_PROG_INSTALL
9AC_PATH_PROG(RM, rm, /bin/rm, $PATH:/bin:/usr/bin:/usr/local/bin)
10AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/local/bin)
11AC_PATH_PROG(STRIP, strip, /usr/bin/strip, $PATH:/bin:/usr/bin:/usr/local/bin)
12AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/local/bin)
645ca343 13AC_EXEEXT
bd8757b3 14
7a93476d
TT
15AM_MAINTAINER_MODE
16
37729557
KG
17dnl Add warning flags if we are using gcc.
18if test "$GCC" = yes; then
19 fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
20fi
21AC_SUBST(fastjar_warn_cflags)
22
bd8757b3
APB
23dnl Checks for header files.
24AC_HEADER_DIRENT
25AC_HEADER_STDC
26AC_STRUCT_TM
9d8f417b 27AC_CHECK_HEADERS(fcntl.h unistd.h sys/param.h stdlib.h limits.h)
bd8757b3
APB
28
29dnl Checks for typedefs, structures, and compiler characteristics.
30AC_TYPE_OFF_T
31AC_STRUCT_TM
32
b4258f06
RM
33# mkdir takes a single argument on some systems.
34gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
35
bd8757b3 36dnl Check for type-widths
4977bab6
ZW
37AC_COMPILE_CHECK_SIZEOF(char)
38AC_COMPILE_CHECK_SIZEOF(short)
39AC_COMPILE_CHECK_SIZEOF(int)
40AC_COMPILE_CHECK_SIZEOF(long)
41AC_COMPILE_CHECK_SIZEOF(long long)
bd8757b3
APB
42
43dnl Check byte order
4977bab6 44AC_C_BIGENDIAN_CROSS
bd8757b3 45
d475215a
TT
46AC_ARG_WITH(system-zlib,
47[ --with-system-zlib use installed libz])
48
49ZLIBS=
50ZDEPS=
51ZINCS=
52use_zlib=maybe
53if test "$with_system_zlib" = yes; then
54 AC_CHECK_LIB(z, deflate, ZLIBS=-lz, use_zlib=no)
55else
56 use_zlib=no
57fi
58
59if test "$use_zlib" = no; then
60 # Brain dead way to find tree's zlib.
61 ZDEPS='$(top_builddir)/../zlib/libz.a'
62 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
63 ZINCS='-I$(top_srcdir)/../zlib'
64fi
bd8757b3
APB
65AC_SUBST(ZLIBS)
66AC_SUBST(ZDEPS)
67AC_SUBST(ZINCS)
68
42ac7b6d
MK
69# Get the version trigger filename from the toplevel
70if test "${with_gcc_version_trigger+set}" = set; then
71 gcc_version_trigger=$with_gcc_version_trigger
72else
73 gcc_version_trigger=${srcdir}/version.c
74fi
75changequote(,)dnl
76gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
77gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
78changequote([,])dnl
79AC_SUBST(gcc_version)
80
bd8757b3 81AC_OUTPUT(Makefile install-defs.sh)
This page took 0.186279 seconds and 5 git commands to generate.