Mercurial > dwindows
annotate configure.in @ 97:24cf41bb75ff
Fixed a problem with the ESC key in comboboxes on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 19 Jul 2002 14:17:02 +0000 |
parents | 5e4730c42014 |
children | 7d2108cbcd3e |
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 | |
52 AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?))) | |
53 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)), gthread) | |
54 | |
55 AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([pthread header not found. Dynamic Windows cannot build without it.])) | |
56 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread", | |
57 AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads", | |
58 AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r", | |
59 AC_MSG_ERROR(pthread library not found. HandyFTP cannot build without it. | |
60 ) | |
61 ) | |
62 ) | |
63 ) | |
64 | |
65 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.)) | |
66 | |
67 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS" | |
68 LIBS="$LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS" | |
69 | |
70 RM="rm -f" | |
71 LN="ln -s" | |
72 CP="cp" | |
73 MV="mv" | |
74 MKDIR="mkdir" | |
75 | |
76 | |
77 AC_SUBST(INCLUDES) | |
78 AC_SUBST(RM) | |
79 AC_SUBST(LN) | |
80 AC_SUBST(CP) | |
81 AC_SUBST(MV) | |
82 AC_SUBST(MKDIR) | |
83 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
84 AC_CONFIG_FILES([ |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
85 Makefile |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
86 dw-config ]) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
87 AC_OUTPUT |