annotate configure.in @ 120:7d2108cbcd3e

Porting DW to GTK 2.0... and changed the percent value from into to a float so there won't be any rounding.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 19 Oct 2002 11:46:54 +0000
parents 5e4730c42014
children d8af32b1b1cd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
1 AC_INIT(winmain.c)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
2 AC_CONFIG_HEADER(config.h)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
3
80
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
4 DW_MAJOR_VERSION=0
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
5 DW_MINOR_VERSION=5
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
6 DW_SUB_VERSION=0
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
7
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
8 AC_SUBST(DW_MAJOR_VERSION)
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
9 AC_SUBST(DW_MINOR_VERSION)
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
10 AC_SUBST(DW_SUB_VERSION)
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
11
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
12 INCLUDES="-I."
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
13
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
14 AC_PROG_CC
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
15
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
16 AC_CHECK_PROG(MAKE, gmake, gmake)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
17 if test x"$MAKE" = x; then
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
18 AC_CHECK_PROG(MAKE, make, make)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
19 fi
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
20
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
21 AC_PROG_INSTALL
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
22
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
23 AC_SUBST(MAKE)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
24
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
25 AC_HEADER_STDC
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
26 AC_HEADER_DIRENT
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
27 AC_CHECK_HEADERS(unistd.h)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
28 AC_CHECK_HEADERS(sys/stat.h)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
29
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
30 AC_CHECK_FUNCS(pipe, AC_DEFINE(HAVE_PIPE,1,Determine whether we have the pipe function))
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
31
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
32 AC_CHECK_FUNCS(connect)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
33 if test x"$ac_cv_func_connect" = x"no"; then
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
34 if test -z "$libsocket"; then
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
35 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket",)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
36 fi
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
37
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
38 dnl this is for isc. need the nsl_s library as well.
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
39 if test -z "$libinet"; then
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
40 AC_CHECK_LIB(inet, socket, libnsl=1; LIBS="$LIBS -linet -lnsl_s",)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
41 fi
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
42
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
43 if test -z "$libnsl"; then
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
44 AC_CHECK_LIB(nsl, gethostname, LIBS="$LIBS -lnsl",)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
45 fi
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
46 fi
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
47
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
48 AC_CHECK_LIB(sun, getpwnam, LIBS="$LIBS -lsun",)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
49 AC_CHECK_LIB(dgc, inet_addr, LIBS="$LIBS -ldgc",)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
50 AC_CHECK_LIB(resolv, gethostbyname, LIBS="$LIBS -lresolv",)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
51
120
7d2108cbcd3e Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 80
diff changeset
52 AC_CHECK_PROG(PKG_CFG, pkg-config, pkg-config)
7d2108cbcd3e Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 80
diff changeset
53 if test x"$PKG_CFG" = x; then
7d2108cbcd3e Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 80
diff changeset
54 AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?)))
7d2108cbcd3e Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 80
diff changeset
55 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)), gthread)
7d2108cbcd3e Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 80
diff changeset
56 else
7d2108cbcd3e Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 80
diff changeset
57 GTK_CFLAGS=`$PKG_CFG --cflags gtk+-2.0 gthread-2.0`
7d2108cbcd3e Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 80
diff changeset
58 GTK_LIBS=`$PKG_CFG --libs gtk+-2.0 gthread-2.0`
7d2108cbcd3e Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 80
diff changeset
59 fi
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
60
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
61 AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([pthread header not found. Dynamic Windows cannot build without it.]))
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
62 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread",
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
63 AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads",
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
64 AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r",
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
65 AC_MSG_ERROR(pthread library not found. HandyFTP cannot build without it.
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
66 )
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
67 )
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
68 )
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
69 )
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
70
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
71 AM_PATH_GDK_IMLIB(1.9.4, AC_DEFINE(USE_IMLIB), AC_MSG_ERROR(IMLIB not found or too old. Dynamic Windows cannot build without it.))
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
72
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
73 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
74 LIBS="$LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
75
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
76 RM="rm -f"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
77 LN="ln -s"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
78 CP="cp"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
79 MV="mv"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
80 MKDIR="mkdir"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
81
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
82
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
83 AC_SUBST(INCLUDES)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
84 AC_SUBST(RM)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
85 AC_SUBST(LN)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
86 AC_SUBST(CP)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
87 AC_SUBST(MV)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
88 AC_SUBST(MKDIR)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
89
80
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
90 AC_CONFIG_FILES([
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
91 Makefile
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
92 dw-config ])
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
93 AC_OUTPUT