Mercurial > dwindows
annotate configure.in @ 140:e0e73b4372a6
GTK 2.0 tree control is now fully functional. I just need to check for
leaks.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 22 Oct 2002 07:09:57 +0000 |
parents | d8af32b1b1cd |
children | 4c4e94a63748 |
rev | line source |
---|---|
3 | 1 AC_INIT(winmain.c) |
2 AC_CONFIG_HEADER(config.h) | |
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 | 12 INCLUDES="-I." |
13 | |
14 AC_PROG_CC | |
15 | |
16 AC_CHECK_PROG(MAKE, gmake, gmake) | |
17 if test x"$MAKE" = x; then | |
18 AC_CHECK_PROG(MAKE, make, make) | |
19 fi | |
20 | |
21 AC_PROG_INSTALL | |
22 | |
23 AC_SUBST(MAKE) | |
24 | |
25 AC_HEADER_STDC | |
26 AC_HEADER_DIRENT | |
27 AC_CHECK_HEADERS(unistd.h) | |
28 AC_CHECK_HEADERS(sys/stat.h) | |
29 | |
30 AC_CHECK_FUNCS(pipe, AC_DEFINE(HAVE_PIPE,1,Determine whether we have the pipe function)) | |
31 | |
32 AC_CHECK_FUNCS(connect) | |
33 if test x"$ac_cv_func_connect" = x"no"; then | |
34 if test -z "$libsocket"; then | |
35 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket",) | |
36 fi | |
37 | |
38 dnl this is for isc. need the nsl_s library as well. | |
39 if test -z "$libinet"; then | |
40 AC_CHECK_LIB(inet, socket, libnsl=1; LIBS="$LIBS -linet -lnsl_s",) | |
41 fi | |
42 | |
43 if test -z "$libnsl"; then | |
44 AC_CHECK_LIB(nsl, gethostname, LIBS="$LIBS -lnsl",) | |
45 fi | |
46 fi | |
47 | |
48 AC_CHECK_LIB(sun, getpwnam, LIBS="$LIBS -lsun",) | |
49 AC_CHECK_LIB(dgc, inet_addr, LIBS="$LIBS -ldgc",) | |
50 AC_CHECK_LIB(resolv, gethostbyname, LIBS="$LIBS -lresolv",) | |
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) |
121
d8af32b1b1cd
Switch back to using pixmaps and bitmaps, only use pixbufs for doing
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
120
diff
changeset
|
56 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
|
57 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
|
58 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
|
59 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
|
60 fi |
3 | 61 |
62 AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([pthread header not found. Dynamic Windows cannot build without it.])) | |
63 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread", | |
64 AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads", | |
65 AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r", | |
66 AC_MSG_ERROR(pthread library not found. HandyFTP cannot build without it. | |
67 ) | |
68 ) | |
69 ) | |
70 ) | |
71 | |
72 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS" | |
73 LIBS="$LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS" | |
74 | |
75 RM="rm -f" | |
76 LN="ln -s" | |
77 CP="cp" | |
78 MV="mv" | |
79 MKDIR="mkdir" | |
80 | |
81 | |
82 AC_SUBST(INCLUDES) | |
83 AC_SUBST(RM) | |
84 AC_SUBST(LN) | |
85 AC_SUBST(CP) | |
86 AC_SUBST(MV) | |
87 AC_SUBST(MKDIR) | |
88 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
89 AC_CONFIG_FILES([ |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
90 Makefile |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
91 dw-config ]) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
92 AC_OUTPUT |