annotate configure.in @ 304:c28c0a804442

Added extra notebook page for a container example. Added "correct" callbacks for events on trees and containers. Added status lines to the tree and container pages to display results of the callback events. Changed the tab name to reflect the widgets in the notebook pages.
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 29 Mar 2003 03:26:50 +0000
parents 18ecaae9cc3b
children a8015e02b590
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
186
4c4e94a63748 Change DW version to 1.0.0.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 121
diff changeset
4 DW_MAJOR_VERSION=1
4c4e94a63748 Change DW version to 1.0.0.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 121
diff changeset
5 DW_MINOR_VERSION=0
80
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)
251
18ecaae9cc3b Changed configure to make sure we find gtk 2.0, and not just pkg-config,
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 186
diff changeset
53 if test x"$PKG_CFG" != x; then
18ecaae9cc3b Changed configure to make sure we find gtk 2.0, and not just pkg-config,
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 186
diff changeset
54 GTK_LIBS=`$PKG_CFG --silence-errors --libs gtk+-2.0 gthread-2.0`
18ecaae9cc3b Changed configure to make sure we find gtk 2.0, and not just pkg-config,
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 186
diff changeset
55 fi
18ecaae9cc3b Changed configure to make sure we find gtk 2.0, and not just pkg-config,
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 186
diff changeset
56
18ecaae9cc3b Changed configure to make sure we find gtk 2.0, and not just pkg-config,
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 186
diff changeset
57 if test x"$GTK_LIBS" = x; then
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
58 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
59 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)), gthread)
121
d8af32b1b1cd Switch back to using pixmaps and bitmaps, only use pixbufs for doing
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 120
diff changeset
60 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.))
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
61 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
62 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
63 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
64 fi
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
65
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
66 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
67 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread",
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
68 AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads",
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
69 AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r",
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
70 AC_MSG_ERROR(pthread library not found. HandyFTP cannot build without it.
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
71 )
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
72 )
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
73 )
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
74 )
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
75
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
76 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
77 LIBS="$LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
78
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
79 RM="rm -f"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
80 LN="ln -s"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
81 CP="cp"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
82 MV="mv"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
83 MKDIR="mkdir"
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
84
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
85
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
86 AC_SUBST(INCLUDES)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
87 AC_SUBST(RM)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
88 AC_SUBST(LN)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
89 AC_SUBST(CP)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
90 AC_SUBST(MV)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
91 AC_SUBST(MKDIR)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
92
80
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
93 AC_CONFIG_FILES([
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
94 Makefile
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
95 dw-config ])
5e4730c42014 Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
96 AC_OUTPUT