Mercurial > dwindows
comparison configure.in @ 3:67a643a734d9
Import
author | ktk@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 03 Jul 2001 07:50:39 +0000 |
parents | |
children | 5e4730c42014 |
comparison
equal
deleted
inserted
replaced
2:36c5f0ce3fbe | 3:67a643a734d9 |
---|---|
1 AC_INIT(winmain.c) | |
2 AC_CONFIG_HEADER(config.h) | |
3 | |
4 INCLUDES="-I." | |
5 | |
6 AC_PROG_CC | |
7 | |
8 AC_CHECK_PROG(MAKE, gmake, gmake) | |
9 if test x"$MAKE" = x; then | |
10 AC_CHECK_PROG(MAKE, make, make) | |
11 fi | |
12 | |
13 AC_PROG_INSTALL | |
14 | |
15 AC_SUBST(MAKE) | |
16 | |
17 AC_HEADER_STDC | |
18 AC_HEADER_DIRENT | |
19 AC_CHECK_HEADERS(unistd.h) | |
20 AC_CHECK_HEADERS(sys/stat.h) | |
21 | |
22 AC_CHECK_FUNCS(pipe, AC_DEFINE(HAVE_PIPE,1,Determine whether we have the pipe function)) | |
23 | |
24 AC_CHECK_FUNCS(connect) | |
25 if test x"$ac_cv_func_connect" = x"no"; then | |
26 if test -z "$libsocket"; then | |
27 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket",) | |
28 fi | |
29 | |
30 dnl this is for isc. need the nsl_s library as well. | |
31 if test -z "$libinet"; then | |
32 AC_CHECK_LIB(inet, socket, libnsl=1; LIBS="$LIBS -linet -lnsl_s",) | |
33 fi | |
34 | |
35 if test -z "$libnsl"; then | |
36 AC_CHECK_LIB(nsl, gethostname, LIBS="$LIBS -lnsl",) | |
37 fi | |
38 fi | |
39 | |
40 AC_CHECK_LIB(sun, getpwnam, LIBS="$LIBS -lsun",) | |
41 AC_CHECK_LIB(dgc, inet_addr, LIBS="$LIBS -ldgc",) | |
42 AC_CHECK_LIB(resolv, gethostbyname, LIBS="$LIBS -lresolv",) | |
43 | |
44 AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?))) | |
45 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)), gthread) | |
46 | |
47 AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([pthread header not found. Dynamic Windows cannot build without it.])) | |
48 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread", | |
49 AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads", | |
50 AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r", | |
51 AC_MSG_ERROR(pthread library not found. HandyFTP cannot build without it. | |
52 ) | |
53 ) | |
54 ) | |
55 ) | |
56 | |
57 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.)) | |
58 | |
59 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS" | |
60 LIBS="$LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS" | |
61 | |
62 RM="rm -f" | |
63 LN="ln -s" | |
64 CP="cp" | |
65 MV="mv" | |
66 MKDIR="mkdir" | |
67 | |
68 | |
69 AC_SUBST(INCLUDES) | |
70 AC_SUBST(RM) | |
71 AC_SUBST(LN) | |
72 AC_SUBST(CP) | |
73 AC_SUBST(MV) | |
74 AC_SUBST(MKDIR) | |
75 | |
76 AC_OUTPUT(Makefile:Makefile.in) |