~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to configure.ac

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl -*- autoconf -*-
2
2
 
3
 
dnl $Id: configure.ac 16658 2008-12-09 15:27:21Z romw $
4
 
 
5
 
dnl NOTE: on milkyway.ssl and jill.ssl , need autoconf/automake et al from quarls
6
 
dnl directory; the _autosetup script does this.
 
3
dnl $Id: configure.ac 22812 2010-12-02 20:41:31Z romw $
7
4
 
8
5
dnl not sure exactly what the minimum version is (but 2.13 wont work)
9
 
AC_PREREQ(2.57)
 
6
AC_PREREQ(2.58)
10
7
 
11
8
dnl Set the BOINC version here.  You can also use the set-version script.
12
 
AC_INIT(BOINC, 6.4.5)
 
9
AC_INIT(BOINC, 6.12.8)
 
10
AC_CONFIG_MACRO_DIR([m4])
13
11
LIBBOINC_VERSION=`echo ${PACKAGE_VERSION} | sed 's/\./:/g'`
14
12
AC_SUBST([LIBBOINC_VERSION])
15
13
 
16
 
 
17
 
AC_ARG_ENABLE(debug, 
18
 
    AS_HELP_STRING([--enable-debug],
19
 
                   [enable tracing and debugging flags for all components]),
20
 
    [enable_debug="$enableval"],
21
 
    [])
22
 
 
23
 
AC_ARG_ENABLE(unicode, 
24
 
    AS_HELP_STRING([--enable-unicode],
25
 
                   [enable building the manager with unicode support]),
26
 
    [enable_unicode="$enableval"],
27
 
    [])
 
14
AC_CANONICAL_TARGET
 
15
 
 
16
dnl generate .tar.gz, .tar.bz2, .zip
 
17
dnl AM_INIT_AUTOMAKE(dist-bzip2 dist-zip)
 
18
AM_INIT_AUTOMAKE(dist-zip)
 
19
 
 
20
AC_CONFIG_SRCDIR(lib/shmem.cpp)
 
21
 
 
22
AC_REVISION([$Revision: 22812 $]) 
 
23
REV=`echo '$Revision: 22812 $' | awk "{print $2}"`
 
24
RDATE=`date '+%Y.%m.%d'`
 
25
if test -d .svn ; then
 
26
  REV=`svn info | grep Revision | awk '{print $2}'`
 
27
  RDATE=`svn info | grep "Last Changed Date:" | awk '{print $4}' | sed 's/-/./g'`
 
28
fi
 
29
AC_SUBST(REV)
 
30
AC_SUBST(RDATE)
 
31
 
 
32
dnl turn dependency tracking on by default
 
33
if test x${enable_dependency_tracking} != xno ; then
 
34
  enable_dependency_tracking=yes
 
35
fi
 
36
 
 
37
dnl Checks for programs.
 
38
AC_PROG_CC
 
39
AC_PROG_CXX
 
40
AC_PROG_F77
 
41
AC_PROG_CPP
 
42
AC_PROG_MAKE_SET
 
43
SAH_LINKS
 
44
AC_LANG_PUSH(C)
 
45
AM_PROG_CC_C_O
 
46
 
 
47
m4_divert_once([HELP_ENABLE],
 
48
  AS_HELP_STRING([BOINC Default enable values], [--enable-server --enable-client --enable-libraries --enable-manager: builds server, client, and libraries]))
 
49
 
 
50
AC_ARG_ENABLE(dynamic-client-linkage, 
 
51
    AS_HELP_STRING([--enable-dynamic-client-linkage],
 
52
                   [dynamically link the client to the boinc libraries]),
 
53
    [dynamic_client=${enableval}],
 
54
    [dynamic_client=no])
28
55
 
29
56
AC_ARG_ENABLE(server, 
30
57
    AS_HELP_STRING([--disable-server],
31
58
                   [disable building the scheduling server]),
32
 
    [],
 
59
    [enable_server=${enableval}],
33
60
    [enable_server=yes])
34
61
 
 
62
AC_ARG_ENABLE(fcgi, 
 
63
    AS_HELP_STRING([--disable-fcgi],
 
64
                   [disable building fcgi libraries or server components]),
 
65
    [enable_fcgi=${enableval}],
 
66
    [enable_fcgi=${enable_server}])
 
67
 
35
68
AC_ARG_ENABLE(client, 
36
69
    AS_HELP_STRING([--disable-client],
37
70
                   [disable building the client]),
38
 
    [],
 
71
    [enable_client=${enableval}],
39
72
    [enable_client=yes])
40
73
 
41
 
m4_divert_once([HELP_ENABLE],
42
 
  AS_HELP_STRING([], [Default: --enable-server --enable-client: 
43
 
                      builds both server and client]))
44
 
 
45
 
if test "${enable_server}" = yes ; then
46
 
    if test "${enable_client}" = yes ; then
47
 
        configured_to_build='server & client'
48
 
    else
49
 
        configured_to_build='server only'
50
 
    fi
51
 
else
52
 
    if test "${enable_client}" = yes ; then
53
 
        configured_to_build='client only'
54
 
    else
55
 
        configured_to_build='libraries only'
56
 
    fi
57
 
fi
 
74
AC_ARG_ENABLE(manager, 
 
75
    AS_HELP_STRING([--disable-manager],
 
76
                   [disable building the boinc manager gui]),
 
77
    [enable_manager=${enableval}],
 
78
    [enable_manager=yes])
 
79
 
 
80
AC_ARG_ENABLE(libraries, 
 
81
    AS_HELP_STRING([--disable-libraries],
 
82
                   [disable building the boinc client and server libraries]),
 
83
    [enable_libraries=${enableval}],
 
84
    [enable_libraries=yes])
 
85
 
 
86
AC_ARG_ENABLE(install-headers, 
 
87
    AS_HELP_STRING([--disable-install-headers],
 
88
                   [if building libraries do not install the boinc library 
 
89
                    header files]),
 
90
    [enable_install_headers=${enableval}],
 
91
    [enable_install_headers=yes])
 
92
 
 
93
AC_ARG_ENABLE(pkg-libs, 
 
94
    AS_HELP_STRING([--enable-pkg-libs],
 
95
                   [Builds and installs components that would be present in a
 
96
                   boinc-libs package.  This is a synonym for --disable-server
 
97
                   --disable-client --enable-libraries --disable-static
 
98
                   --disable-install-headers --disable-manager]),
 
99
    [
 
100
     enable_libraries=yes
 
101
     enable_server=no
 
102
     enable_client=no
 
103
     enable_manager=no
 
104
     enable_install_headers=no
 
105
     enable_static=no
 
106
    ],
 
107
    [])
 
108
 
 
109
AC_ARG_ENABLE(pkg-devel, 
 
110
    AS_HELP_STRING([--enable-pkg-devel],
 
111
                   [Builds and installs components that would be present in a
 
112
                   boinc-devel package.  This is a synonym for --disable-server
 
113
                   --disable-client --enable-libraries --enable-install-headers
 
114
                   --disable-manger]),
 
115
    [
 
116
     enable_libraries=yes
 
117
     enable_server=no
 
118
     enable_client=no
 
119
     enable_manager=no
 
120
     enable_install_headers=yes
 
121
    ],
 
122
    [])
 
123
 
 
124
AC_ARG_ENABLE(pkg-client, 
 
125
    AS_HELP_STRING([--enable-pkg-client],
 
126
                   [Builds and installs components that would be present in a
 
127
                   boinc-client package. This is a synonym for --disable-server
 
128
                   --enable-client --disable-libraries --disable-manager
 
129
    ]),
 
130
    [
 
131
     enable_libraries=no
 
132
     enable_server=no
 
133
     enable_client=yes
 
134
     enable_manager=no
 
135
     enable_install_headers=no
 
136
    ],
 
137
    [])
 
138
 
 
139
AC_ARG_ENABLE(pkg-manager, 
 
140
    AS_HELP_STRING([--enable-pkg-manager],
 
141
                   [Builds and installs components that would be present in a boinc-manager package. This is a synonym for --disable-server --disable-client --disable-libraries --enable-manager
 
142
    ]),
 
143
    [
 
144
     enable_libraries=no
 
145
     enable_server=no
 
146
     enable_client=no
 
147
     enable_manager=yes
 
148
     enable_install_headers=no
 
149
    ],
 
150
    [])
 
151
 
 
152
BOINC_SET_COMPILE_FLAGS
 
153
 
 
154
configured_to_build=
 
155
 
 
156
if test x$enable_client = xyes ; then
 
157
  configured_to_build="client"
 
158
fi
 
159
if test x$enable_manager = xyes ; then
 
160
  configured_to_build="${configured_to_build} manager"
 
161
fi
 
162
if test x$enable_libraries = xyes ; then
 
163
  configured_to_build="${configured_to_build} libraries"
 
164
fi
 
165
if test x$enable_server = xyes ; then
 
166
  configured_to_build="${configured_to_build} server"
 
167
fi
 
168
 
 
169
if test -z "${configured_to_build}" ; then
 
170
        AC_MSG_ERROR([
 
171
================================================================================
 
172
ERROR: I have been told to build nothing.
 
173
 
 
174
    Please remove one of the --disable commands from your
 
175
    configure command line.
 
176
 
 
177
================================================================================
 
178
        ])
 
179
fi
 
180
 
58
181
 
59
182
dnl ======================================================================
60
183
dnl some vodoo required for building portable client-binary (client, clientgui)
66
189
        (On GNU/Linux you might need to use gcc-3.0 for this to produce a 
67
190
        binary that works for glibc <= 2.2 systems. => use CC=gcc-3.0 and CXX=g++-3.0)
68
191
        (Default = no)]),
69
 
    [enable_client_release=yes;disable_static_linkage=no],
 
192
    [
 
193
       enable_client_release=yes
 
194
       disable_static_linkage=no
 
195
       enable_shared=no
 
196
       AC_MSG_WARN([
 
197
================================================================================
 
198
WARNING:  You have requested a statically linked release build.
 
199
 
 
200
    This option is not recommended for personal use or for building
 
201
    an application for distribution via a package management system.
 
202
    It probably wont work unless you have built your own static curl
 
203
    and wxWidgets libraries that have minimal dependencies.  You may
 
204
    also need to edit Makefiles manually in order for linking to work.
 
205
 
 
206
    It is far better to use dynamic linkage, which can resolve most
 
207
    library interdependencies at run time.  
 
208
 
 
209
    When the executable fails to link, and you can identify the missing
 
210
    library, you can edit the Makefile to add it, or if there is a --with
 
211
    option to configure, use it.
 
212
 
 
213
    This is not easy.  It is not supported.  You have been warned.
 
214
================================================================================
 
215
    ])
 
216
    echo Pausing 10 seconds...
 
217
    sleep 10
 
218
    ]
 
219
    ,
70
220
    [enable_client_release=no;disable_static_linkage=yes])
71
221
 
72
222
 
79
229
echo "--- Configuring BOINC AC_PACKAGE_VERSION (${build_state}) ---"
80
230
echo "--- Build Components: (${configured_to_build}) ---"
81
231
 
82
 
AC_CANONICAL_TARGET
83
 
 
84
 
dnl generate .tar.gz, .tar.bz2, .zip
85
 
dnl AM_INIT_AUTOMAKE(dist-bzip2 dist-zip)
86
 
AM_INIT_AUTOMAKE(dist-zip)
87
 
 
88
 
AC_CONFIG_SRCDIR(lib/shmem.cpp)
89
232
 
90
233
AC_COPYRIGHT([
91
234
Berkeley Open Infrastructure for Network Computing
108
251
51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
109
252
])
110
253
 
111
 
AC_REVISION([$Revision: 16658 $])
112
 
 
113
254
AC_DEFUN([KC_STRIP_LEADING_ZEROS],[m4_bregexp([$*],[^0*\(..*\)],\1)])
114
255
 
115
256
AC_DEFUN([BOINC_SET_VERSION],[dnl
135
276
AC_SUBST([BOINC_MINOR_VERSION])
136
277
 
137
278
AC_SUBST([TOP_BUILD_DIR], [`pwd`])
138
 
AC_SUBST([TOP_SOURCE_DIR], [`(cd \`dirname "$0"\` && pwd)`])
139
279
 
140
280
## commented this out to turn all maintainer-mode features ON by default,
141
281
## such as automatic reconfiguring on changes in Makefile.am's and configure.ac
142
282
## AM_MAINTAINER_MODE
143
283
 
144
 
dnl Checks for programs.
145
 
AC_PROG_CC
146
 
AC_PROG_CXX
147
 
AC_PROG_CPP
148
 
AC_PROG_MAKE_SET
149
 
AC_PROG_RANLIB
150
 
SAH_LINKS
151
 
AM_PROG_CC_C_O
152
284
 
153
285
dnl Check for docbook2x-man, which we use to create the manpages in
154
286
dnl doc/manpages, and set the conditional HAVE_DOCBOOK2X_MAN to build
171
303
OBJCFLAGS="-ObjC"
172
304
AC_SUBST(OBJCFLAGS)
173
305
 
 
306
dnl LT_INIT
174
307
AC_LIBTOOL_DLOPEN
175
308
AC_LIBTOOL_WIN32_DLL
176
309
AC_PROG_LIBTOOL
177
310
AC_SUBST(PICFLAGS,${lt_prog_compiler_pic})
178
311
 
179
 
 
180
312
SAH_OPTION_BITNESS
181
313
 
182
314
dnl Determine the BOINC platform given the target arch-platform-os.
195
327
SAH_LIBEXT
196
328
SAH_DLLEXT
197
329
 
 
330
dnl THIS IS UNNECESSARY.  THE COMPILER SHOULD SET THESE
198
331
dnl enable debug mode on all components using standard debug flags
199
 
if test "${enable_debug}" = yes; then
200
 
    CXXFLAGS="$CXXFLAGS -DDEBUG -D_DEBUG"
201
 
    CFLAGS="$CFLAGS -DDEBUG -D_DEBUG"
202
 
 
203
 
    AC_SUBST(CXXFLAGS)
204
 
    AC_SUBST(CFLAGS)
205
 
fi
 
332
dnl if test "${enable_debug}" = yes; then
 
333
    dnl CXXFLAGS="$CXXFLAGS -DDEBUG -D_DEBUG"
 
334
    dnl CFLAGS="$CFLAGS -DDEBUG -D_DEBUG"
 
335
dnl 
 
336
    dnl AC_SUBST(CXXFLAGS)
 
337
    dnl AC_SUBST(CFLAGS)
 
338
dnl fi
206
339
 
207
340
if test "${enable_server}" = yes; then
208
341
   AC_CHECK_MYSQL
229
362
dnl binaries.  Put libraries that should be linked statically on every platform
230
363
dnl in the STATIC_LIB_LIST variable before calling SAH_CHECK_LIB.  (Note: Only 
231
364
dnl the '*' wildcard is supported).
232
 
STATIC_LIB_LIST="stdc++* gcc gcc_s gcc_eh atk* gtk* gdk* gmodule* gthread* gobject* 
233
 
glib* pango* cairo* wx* tiff* jpeg* png* Xi glut socket z expat* krb5support
234
 
freetype fontconfig* resolv* idn"
 
365
STATIC_LIB_LIST="stdc++* gcc gcc_s gcc_eh atk* gtk* gdk* gmodule* gthread* gobject* glib* pango* cairo* wx* tiff* jpeg* png* Xi glut socket z expat* krb5support freetype fontconfig* resolv* idn c_nonshared gpg* gss* gnutls sasl2 sqlite3"
235
366
 
236
367
dnl We'll store these libs in a separate variable BOINC_EXTRA_LIBS for later 
237
368
dnl post-processing instead of the default-action, which would append 
251
382
dnl m4/boinc_getsockopt.m4
252
383
BOINC_GETSOCKOPT_TYPE
253
384
 
 
385
if test "x${enable_fcgi}" = xyes ; then
 
386
dnl m4/boinc_check_fcgi.m4
 
387
BOINC_CHECK_FCGI
 
388
fi
 
389
 
254
390
dnl ---------- libcurl (m4/libcurl.m4) ------------------------------
255
391
 
256
392
if test "${enable_client}" = yes; then
274
410
        ])
275
411
   else
276
412
      ## add libcurl et al. to the list of statically linked libs
277
 
      STATIC_LIB_LIST="${STATIC_LIB_LIST} curl idn crypto ssl krb5 k5crypto gssapi_krb5 com_err resolv"
 
413
      STATIC_LIB_LIST="${STATIC_LIB_LIST} curl idn ssh2 crypto ssl krb5 k5crypto gssapi_krb5 com_err resolv lber ldap socket nsl z rt gcrypt gpg-error"
278
414
      CPPFLAGS="${CPPFLAGS} ${LIBCURL_CPPFLAGS}"
279
415
      CURL_LIB_PATHS=`echo $LIBCURL | sed 's/[^[a-zA-Z]]*-l[^ ]*//g'`
280
 
      LDFLAGS="$CURL_LIB_PATHS $LDFLAGS"
281
416
 
282
417
      if test "${enable_debug}" = yes; then
283
418
         echo "LIBCURL = ${LIBCURL}"
285
420
         echo "CURL_LIB_PATHS = ${CURL_LIB_PATHS}"
286
421
         echo "LDFLAGS = ${LDFLAGS}"
287
422
      fi
 
423
      BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${LIBCURL}"
288
424
 
289
425
   fi   
290
426
 
307
443
SAH_CHECK_LIB([nsl], [gethostbyname], 
308
444
    [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${sah_lib_last}"])
309
445
#SAH_CHECK_LIB([wsock32], [fopen], 
310
 
#    [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${sah_lib_last}"])
 
446
#   [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${sah_lib_last}"])
311
447
#SAH_CHECK_LIB([wsock], [fopen], 
312
 
#    [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${sah_lib_last}"])
 
448
#   [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${sah_lib_last}"])
313
449
SAH_CHECK_LIB([socket], [bind], 
314
450
    [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${sah_lib_last}"])
315
451
SAH_CHECK_LIB([z], [gzopen], 
316
452
    [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${sah_lib_last}"])
317
453
SAH_CHECK_LIB([cups], [md5_finish],
318
454
    [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${sah_lib_last}"])
319
 
SAH_CHECK_LIB([curl], [curl_easy_init],
320
 
    [BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${LIBCURL}"],, [${LIBCURL}])
321
455
 
322
456
LIBS=${SAVELIBS_AAF}
323
457
 
324
458
dnl check for pthread
325
459
ACX_PTHREAD(AC_DEFINE(HAVE_PTHREAD,1, [Have pthread]))
326
 
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
327
 
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
328
 
LIBS="$PTHREAD_LIBS $LIBS"
329
 
 
 
460
dnl There are better ways to do this.
 
461
dnl CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
 
462
dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
463
dnl LIBS="$PTHREAD_LIBS $LIBS"
 
464
 
 
465
# find the install directories in case we need them.
 
466
if test "x${prefix}" = "xNONE" -o -z "${prefix}" ; then
 
467
  prefix="${ac_default_prefix}"
 
468
fi
 
469
if test "x${exec_prefix}" = "xNONE" -o -z "${exec_prefix}" ; then
 
470
  exec_prefix="${prefix}"
 
471
fi
 
472
if test "x${bindir}" = "xNONE" -o -z "${bindir}" ; then
 
473
  bindir="${exec_prefix}/bin"
 
474
fi
 
475
if test "x${libdir}" = "xNONE" -o -z "${libdir}" ; then
 
476
  bindir="${exec_prefix}/lib"
 
477
fi
 
478
 
 
479
AC_DEFINE_UNQUOTED(BOINC_PREFIX,"`eval echo ${prefix}`",[Directory tree where BOINC will be installed])
 
480
AC_DEFINE_UNQUOTED(BOINC_EXECPREFIX,"`eval echo ${bindir}`",[Directory where BOINC executables will be installed])
 
481
AC_DEFINE_UNQUOTED(BOINC_LIBDIR,"`eval echo ${libdir}`",[Directory where BOINC libraries will be installed])
330
482
 
331
483
dnl ---------- decide wether to build the graphical boinc-api libs or not
332
484
dnl check for X11 
338
490
AX_CHECK_GLU
339
491
 
340
492
dnl check for glut and prerequesites to the glut-test: libXmu and libXi
341
 
AC_CHECK_LIB([Xmu], [main], [have_Xmu="yes"], [have_Xmu="no"])
342
 
AC_CHECK_LIB([Xi], [main], [have_Xi="yes"], [have_Xi="no"])
 
493
AC_CHECK_LIB([Xmu], [fopen], [have_Xmu="yes"], [have_Xmu="no"])
 
494
AC_CHECK_LIB([Xi], [fopen], [have_Xi="yes"], [have_Xi="no"])
343
495
 
344
496
AX_CHECK_GLUT
345
497
if test "X${no_x}" != "Xyes" -a "$no_glut" = yes; then
410
562
])
411
563
AH_BOTTOM([
412
564
 
 
565
#ifndef HAVE_RES_INIT
 
566
#define res_init() (0)
 
567
#endif
 
568
 
413
569
/* end double-inclusion protection for config.h */
414
570
#endif /* #ifndef BOINC_CONFIG_H */
415
571
])
421
577
AC_HEADER_SYS_WAIT
422
578
AC_HEADER_TIME
423
579
AC_TYPE_SIGNAL
424
 
AC_CHECK_HEADERS(windows.h arpa/inet.h dirent.h fcntl.h inttypes.h stdint.h malloc.h alloca.h memory.h netdb.h netinet/in.h netinet/tcp.h signal.h strings.h sys/auxv.h sys/file.h sys/ipc.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/shm.h sys/socket.h sys/stat.h sys/statvfs.h sys/statfs.h sys/swap.h sys/sysctl.h sys/systeminfo.h sys/time.h sys/types.h sys/utsname.h sys/vmmeter.h sys/wait.h unistd.h utmp.h errno.h procfs.h ieeefp.h)
 
580
AC_CHECK_HEADERS(windows.h sys/types.h sys/un.h arpa/inet.h dirent.h grp.h fcntl.h inttypes.h stdint.h malloc.h alloca.h memory.h netdb.h netinet/in.h netinet/tcp.h netinet/ether.h net/if.h net/if_arp.h signal.h strings.h sys/auxv.h sys/file.h sys/fcntl.h sys/ipc.h sys/ioctl.h sys/mount.h sys/msg.h sys/param.h sys/resource.h sys/select.h sys/shm.h sys/sockio.h sys/socket.h sys/stat.h sys/statvfs.h sys/statfs.h sys/swap.h sys/sysctl.h sys/systeminfo.h sys/time.h sys/types.h sys/utsname.h sys/vmmeter.h sys/wait.h unistd.h utmp.h errno.h procfs.h ieeefp.h setjmp.h resolv.h)
 
581
AC_CHECK_HEADERS(netinet/if_ether.h,[],[],[[
 
582
#ifdef HAVE_SYS_TYPES_H
 
583
#include <sys/types.h>
 
584
#endif
 
585
#ifdef HAVE_SYS_SOCKET_H
 
586
#include <sys/socket.h>
 
587
#endif
 
588
#ifdef HAVE_NETINET_IN_H
 
589
#include <netinet/in.h>
 
590
#endif
 
591
#ifdef HAVE_ARPA_INET_H
 
592
#include <arpa/inet.h>
 
593
#endif
 
594
#ifdef HAVE_NET_IF_H
 
595
#include <net/if.h>
 
596
#endif
 
597
]])
 
598
AC_CHECK_TYPES([struct lifconf, struct lifreq, struct ifconf, struct ifreq, struct ether_addr],[],[],[[
 
599
#ifdef HAVE_SYS_TYPES_H
 
600
#include <sys/types.h>
 
601
#endif
 
602
#ifdef HAVE_SYS_SOCKET_H
 
603
#include <sys/socket.h>
 
604
#endif
 
605
#ifdef HAVE_NETINET_IN_H
 
606
#include <netinet/in.h>
 
607
#endif
 
608
#ifdef HAVE_ARPA_INET_H
 
609
#include <arpa/inet.h>
 
610
#endif
 
611
#ifdef HAVE_NET_IF_H
 
612
#include <net/if.h>
 
613
#endif
 
614
#ifdef HAVE_NETINET_IF_ETHER_H
 
615
#include <netinet/if_ether.h>
 
616
#endif
 
617
#ifdef HAVE_NETINET_ETHER_H
 
618
#include <netinet/ether.h>
 
619
#endif
 
620
]])
425
621
 
426
622
dnl Unfortunately on some 32 bit systems there is a problem with wx-widgets
427
623
dnl configuring itself for largefile support.  On these systems largefile
448
644
dnl Checks for library functions.
449
645
AC_PROG_GCC_TRADITIONAL
450
646
AC_FUNC_VPRINTF
451
 
AC_CHECK_FUNCS(alloca _alloca setpriority strlcpy strlcat strcasestr sigaction getutent setutent getisax strdup strdupa daemon stat64 putenv setenv)
 
647
AC_FUNC_ALLOCA
 
648
if test "${ac_cv_func_alloca_works}" = "yes" ; then
 
649
  ac_cv_func_alloca="yes"
 
650
fi
 
651
AC_CHECK_FUNCS(alloca _alloca __builtin_alloca ether_ntoa setpriority sched_setscheduler strlcpy strlcat strcasestr strcasecmp sigaction getutent setutent getisax strdup strdupa daemon stat64 putenv setenv unsetenv res_init)
452
652
 
453
653
dnl Checks for typedefs, structures, and compiler characteristics.
454
654
AC_C_CONST
482
682
fi
483
683
 
484
684
dnl ---------- wxWidgets --------------------------------------------------
485
 
 
486
 
AM_OPTIONS_WXCONFIG
487
 
 
488
 
dnl check for wxWidgets
489
 
 
490
 
if test "${enable_client_release}" = yes ; then
491
 
    if test "${enable_debug}" = yes ; then
492
 
        if test "${enable_unicode}" = yes ; then
493
 
            echo 'Portable client-build: checking for debug unicode wx-libs ...'
494
 
            AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --static=yes --unicode=yes --debug=yes)
495
 
        else
496
 
            echo 'Portable client-build: checking for debug wx-libs ...'
497
 
            AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --static=yes --unicode=no --debug=yes)
498
 
        fi
499
 
    else
500
 
        if test "${enable_unicode}" = yes ; then
501
 
            echo 'Portable client-build: checking for unicode wx-libs ...'
502
 
            AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --static=yes --unicode=yes --debug=no)
503
 
        else
504
 
            echo 'Portable client-build: checking for wx-libs ...'
505
 
            AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --static=yes --unicode=no --debug=no)
506
 
        fi
507
 
    fi
508
 
else
509
 
    if test "${enable_debug}" = yes ; then
510
 
        if test "${enable_unicode}" = yes ; then
511
 
            echo 'checking for debug unicode wx-libs ...'
512
 
            AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --unicode=yes --debug=yes)
513
 
        else
514
 
            echo 'checking for debug wx-libs ...'
515
 
            AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --unicode=no --debug=yes)
516
 
        fi
517
 
    else
518
 
        if test "${enable_unicode}" = yes ; then
519
 
            echo 'checking for unicode wx-libs ...'
520
 
            AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --unicode=yes --debug=no)
521
 
        else
522
 
            echo 'checking for wx-libs ...'
523
 
            AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], --unicode=no --debug=no)
524
 
        fi
525
 
    fi
526
 
fi
527
 
 
528
 
 
529
 
if ( test "${enable_client}" = yes ) && ( test "$wxWin" != 1 ); then
530
 
   AC_MSG_WARN([
531
 
================================================================================
532
 
WARNING: A suitable installation of wxWidgets could not be found 
533
 
         ==> building client without clientgui.
534
 
 
535
 
  If you add wxWidgets to your system, then this configure script will also
536
 
  configure your system to build the BOINC graphical client (clientgui).  
537
 
 
538
 
  If wxWidgets is installed on your system, please check that wx-config is 
539
 
  in the path, that the directory where wxWidgets libraries are installed 
540
 
  (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH (or equivalent),
541
 
  and that wxWidgets version is 2.6.0 or above. Currently wxWidgets version
542
 
  2.6.0 (gtk based) is known to work with boinc_gui under Linux. You can
543
 
  use wx-config --version to find what version you have currently installed.
544
 
 
545
 
  NOTE: if building a portable client-release, you need the *static* version
546
 
  of the wx-libs installed!   
547
 
 
548
 
  You can get wxWidgets by following the DOWNLOAD link at:
549
 
  http://www.wxwindows.org/
550
 
================================================================================
551
 
       ])
552
 
fi
553
 
 
554
 
AM_CONDITIONAL(BUILD_CLIENTGUI, [ test "$wxWin" = 1 -a "${enable_client}" = yes ])
555
 
 
556
 
dnl --------------------------------------------------------------------------------
 
685
if test "${enable_manager}" = yes ; then
 
686
  BOINC_OPTIONS_WXWIDGETS([2.8.0])
 
687
fi
 
688
 
 
689
dnl ---------- libNotify --------------------------------------------------
 
690
if test "${enable_manager}" = yes ; then
 
691
  pkg_config_args=libnotify
 
692
  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
693
 
 
694
  LIBNOTIFY_CFLAGS=`$PKG_CONFIG libnotify --cflags`
 
695
  LIBNOTIFY_LIBS=`$PKG_CONFIG libnotify --libs`
 
696
 
 
697
  AC_SUBST(LIBNOTIFY_CFLAGS)
 
698
  AC_SUBST(LIBNOTIFY_LIBS)
 
699
fi
 
700
 
 
701
dnl ---------- Sqlite3 ----------------------------------------------------
 
702
if test "${enable_manager}" = yes ; then
 
703
  AM_PATH_SQLITE3
 
704
fi
 
705
 
 
706
dnl ---------- XCB --------------------------------------------------------
 
707
if test "${enable_manager}" = yes; then
 
708
    PKG_CHECK_MODULES(XCB,xcb,have_Xcb="yes",echo "WARNING: Xcb not found, x11_screensaver will not be built")
 
709
    PKG_CHECK_MODULES(XCBATOM,xcb-atom,have_Xcbatom="yes",echo "WARNING: Xcb-atom not found, x11_screensaver will not be built")
 
710
fi
 
711
AM_CONDITIONAL(BUILD_X11_SCREENSAVER, [ test "$have_Xcb" = yes -a "$have_Xcbatom" = yes ]) 
 
712
dnl -----------------------------------------------------------------------
557
713
 
558
714
dnl Heres another way to set up host-specific stuff
559
715
AM_CONDITIONAL(OS_DARWIN, [echo $host_os | grep '^darwin' > /dev/null])
566
722
AM_CONDITIONAL(OS_LINUX, [echo $host_os | grep '^linux' > /dev/null])
567
723
dnl In case anyone wants to try building the windows code using mingw!
568
724
AM_CONDITIONAL(OS_WIN32_MINGW, [echo $host_os | grep '^mingw' > /dev/null])
 
725
dnl or OS2
 
726
AM_CONDITIONAL(OS_OS2, [echo $host_os | grep '^os2' > /dev/null])
 
727
 
 
728
dnl Whether to build fcgi components
 
729
AM_CONDITIONAL(ENABLE_FCGI,[test "${enable_fcgi}" = yes])
569
730
 
570
731
dnl tell automake about whether to build client and/or server
 
732
AM_CONDITIONAL(DYNAMIC_CLIENT, [test "${dynamic_client}" = yes])
571
733
AM_CONDITIONAL(ENABLE_SERVER, [test "${enable_server}" = yes])
572
734
AM_CONDITIONAL(ENABLE_CLIENT, [test "${enable_client}" = yes])
573
 
 
574
 
 
 
735
AM_CONDITIONAL(ENABLE_MANAGER, [ test "x${ac_cv_have_wxwidgets}" = xyes -a "${enable_manager}" = yes ])
 
736
AM_CONDITIONAL(ENABLE_LIBRARIES, [test "${enable_libraries}" = yes])
 
737
AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes])
 
738
AM_CONDITIONAL(HAVE_CUDA_LIB, [test "${enable_client}" = yes -a -f ./coprocs/CUDA/posix/${boinc_platform}/libcudart.so])
575
739
 
576
740
dnl ======================================================================
577
741
dnl some more vodoo required for building portable client-binary (client, clientgui)
579
743
 
580
744
CLIENTLIBS=
581
745
 
582
 
SAH_CHECK_LIB([c],[atexit], [
583
 
    AC_DEFINE([HAVE_LIBC],[1],[Define to 1 if you have the c library])
584
 
    CLIENTLIBS="${CLIENTLIBS} ${sah_lib_last}"])
 
746
SAH_CHECK_LIB([m],[sin], [
 
747
    AC_DEFINE([HAVE_LIBM],[1],[Define to 1 if you have the math library])
 
748
    CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
585
749
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
586
 
SAH_CHECK_LIB([gcc_eh],[_Unwind_Resume],[ 
 
750
if test "$enable_release_client" = yes -a "$disable_static_linkage" = no ; then
 
751
    SAH_CHECK_LIB([c],[atexit], [
 
752
        AC_DEFINE([HAVE_LIBC],[1],[Define to 1 if you have the c library])
 
753
        CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
 
754
       echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
 
755
fi
 
756
    SAH_CHECK_LIB([pthread],[pthread_join],[
 
757
        AC_DEFINE([HAVE_LIBPTHREAD],[1],[Define to 1 if you have the pthread library])
 
758
        CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
 
759
       echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
 
760
if test "$enable_release_client" = yes -a "$disable_static_linkage" = no ; then
 
761
if test x${ac_cv_cxx_compiler_gnu} != xno ; then
 
762
  SAH_CHECK_LIB([gcc_eh],[_Unwind_Resume],[ 
587
763
    AC_DEFINE([HAVE_LIBGCC_EH],[1],[Define to 1 if you have the gcc_eh library])
588
 
    CLIENTLIBS="${CLIENTLIBS} ${sah_lib_last}"])
589
 
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
590
 
SAH_CHECK_LIB([stdc++],[sscanf],[
 
764
    CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
 
765
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
 
766
  SAH_CHECK_LIB([gcc],[sscanf], [
 
767
    AC_DEFINE([HAVE_LIBGCC],[1],[Define to 1 if you have the gcc library])
 
768
    CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
 
769
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
 
770
  SAH_CHECK_LIB([c_nonshared],[fopen],[ 
 
771
    AC_DEFINE([HAVE_LIBC_NONSHARED],[1],[Define to 1 if you have the c_nonshared library])
 
772
    CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
 
773
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
 
774
  SAH_CHECK_LIB([stdc++],[sscanf],[
591
775
    AC_DEFINE([HAVE_LIBSTDC__],[1],[Define to 1 if you have the stdc++ library])
592
 
    CLIENTLIBS="${CLIENTLIBS} ${sah_lib_last}"])
593
 
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
594
 
SAH_CHECK_LIB([gcc],[sscanf], [
595
 
    AC_DEFINE([HAVE_LIBGCC],[1],[Define to 1 if you have the gcc library])
596
 
    CLIENTLIBS="${CLIENTLIBS} ${sah_lib_last}" ])
597
 
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
598
 
SAH_CHECK_LIB([m],[sin], [
599
 
    AC_DEFINE([HAVE_LIBM],[1],[Define to 1 if you have the math library])
600
 
    CLIENTLIBS="${CLIENTLIBS} ${sah_lib_last}"])
601
 
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
602
 
SAH_CHECK_LIB([pthread],[pthread_join],[
603
 
    AC_DEFINE([HAVE_LIBPTHREAD],[1],[Define to 1 if you have the pthread library])
604
 
    CLIENTLIBS="${CLIENTLIBS} ${sah_lib_last}"])
605
 
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
 
776
    CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
 
777
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
 
778
fi
 
779
fi
606
780
SAH_CHECK_LIB([wsock32],[fopen],[
607
781
    AC_DEFINE([HAVE_LIBWSOCK32],[1],[Define to 1 if you have the wsock32 library])
608
 
    CLIENTLIBS="${CLIENTLIBS} ${sah_lib_last}"])
609
 
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
610
 
    
 
782
    CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
 
783
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
 
784
 
 
785
svlibs=$LIBS
 
786
if test "${ac_cv_func_res_init}" != "yes" ; then 
 
787
  AC_CHECK_LIB([resolv],[res_init],[
 
788
    ac_cv_func_res_init="yes"
 
789
    AC_CHECK_FUNCS([res_init])
 
790
  ])
 
791
fi
 
792
LIBS=$svlibs
 
793
 
 
794
SAH_CHECK_LIB([resolv],[res_query],[
 
795
    AC_DEFINE([HAVE_RESOLV],[1],[Define to 1 if you have the resolv library])
 
796
    CLIENTLIBS="${sah_lib_last} ${CLIENTLIBS}"])
 
797
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
611
798
 
612
799
if ( test "${disable_static_linkage}" != yes ) && ( test "${enable_client_release}" = yes ); then
613
800
 
 
801
   echo "----------"
 
802
   echo "NOTE: Building portable client binaries"
 
803
   echo "----------"
 
804
 
 
805
if test x$ac_cv_cxx_compiler_gnu != xno ; then
614
806
SAH_CHECK_LDFLAG([-nodefaultlibs],[CLIENTLIBS="-nodefaultlibs ${CLIENTLIBS}"])
615
807
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
616
808
 
617
809
SAH_CHECK_LDFLAG([-lSystemStubs],[LIBS="${LIBS} -lSystemStubs"])
618
810
   echo DEBUG: LIBS=${LIBS} >&5
619
 
 
620
 
   echo "----------"
621
 
   echo "NOTE: Building portable client binaries"
622
 
   echo "----------"
623
 
   
624
 
   SAH_CHECK_LDFLAG([-nodefaultlibs],[CLIENTLIBS="-nodefaultlibs ${CLIENTLIBS}"])
625
 
   echo DEBUG: CLIENTLIBS=${CLIENTLIBS} >&5
626
 
        
627
 
   SAH_CHECK_LDFLAG([-lSystemStubs],[LIBS="${LIBS} -lSystemStubs"])
628
 
   echo DEBUG: LIBS=${LIBS} >&5
629
 
 
630
 
fi
631
 
 
 
811
fi
 
812
 
 
813
fi
 
814
 
 
815
AM_CONDITIONAL([ENABLE_CLIENT_RELEASE],[ ( test "${disable_static_linkage}" != yes ) && ( test "${enable_client_release}" = yes ) ])
 
816
AM_CONDITIONAL([BUILD_STATIC_LIBS],[test "x${enable_static}" != xno])
632
817
 
633
818
AC_SUBST(CLIENTLIBS)
634
819
 
639
824
    CLIENTGUIFLAGS="${CLIENTGUIFLAGS} -D_DEBUG -DDEBUG"
640
825
fi
641
826
 
642
 
CLIENTGUILIBS=${WX_LIBS}
 
827
AC_ARG_ENABLE(wx-debug,
 
828
  AS_HELP_STRING([--enable-wx-debug],
 
829
                 [ use wxWidgets debug libraries ]),
 
830
  [enable_wx_debug="yes"
 
831
   AC_DEFINE(USE_WX_DEBUG,[1],[Define to 1 to use the wxWidgets debug libraries])
 
832
   ],
 
833
  [enable_wx_debug="no"])
 
834
 
 
835
CLIENTGUILIBS="${WX_LIBS} ${SQLITE3_LIBS} ${GTK_LIBS}"
643
836
 
644
837
if test "${enable_client_release}" = "yes" ; then
645
 
   SAH_STATICIZE_LDFLAGS([${WX_LIBS_STATIC}],[CLIENTGUILIBS])
 
838
   if test "x${WX_LIBS_STATIC}" = "x" ; then
 
839
     WX_LIBS_STATIC="${WX_LIBS}"
 
840
   fi
 
841
   SAH_STATICIZE_LDFLAGS([${WX_LIBS_STATIC} ${SQLITE3_LIBS} ${GTK_LIBS}],[CLIENTGUILIBS])
646
842
   SAH_STATICIZE_LDFLAGS([${GLUT_LIBS}],[GLUT_LIBS])
647
843
   SAH_STATICIZE_LDFLAGS([${BOINC_EXTRA_LIBS}],[BOINC_EXTRA_LIBS])
648
844
 
653
849
   CPPFLAGS="$CPPFLAGS -D__NO_CTYPE"
654
850
fi
655
851
 
656
 
## prepend BOINC_EXTRA_LIBS (mangled or not) to LIBS for standard linking
657
 
LIBS="${BOINC_EXTRA_LIBS} $LIBS"
658
 
 
 
852
AC_SUBST(BOINC_EXTRA_LIBS)
659
853
AC_SUBST(CLIENTGUIFLAGS)
660
854
AC_SUBST(CLIENTGUILIBS)
661
855
dnl ======================================================================
 
856
dnl Oh! the joys of standards!
 
857
AC_PATH_PROG(WHOAMI,[whoami logname],"not found")
 
858
if test "x${WHOAMI}" = "xnot found" ; then
 
859
  who am i 2>/dev/null && WHOAMI="who am i | awk '{print $1}'"
 
860
fi
 
861
if test "x${WHOAMI}" = "xnot found"  -a -x "/usr/ucb/ps" ; then
 
862
  WHOAMI="/usr/ucb/ps u $$ | tail -1 | awk '{print $1}'"
 
863
fi
 
864
if test  "x${WHOAMI}" = "xnot found" ; then
 
865
  WHOAMI="ps u $$ | tail -1 | awk '{print $1}'"
 
866
fi
 
867
 
 
868
 
 
869
dnl Some info about the person compiling used for making some packages.
 
870
LOGNAME=`${WHOAMI}`
 
871
FULLNAME=`grep ^${LOGNAME}: /etc/passwd | awk -F: '{print $5}'`
 
872
if test -z "${FULLNAME}" ; then
 
873
  FULLNAME=`ypcat passwd 2>/dev/null | grep ^${LOGNAME}: | awk -F: '{print $5}'`
 
874
fi
 
875
if test -z "${FULLNAME}" ; then
 
876
  FULLNAME=`nidump passwd / 2>/dev/null | grep ^${LOGNAME}: | awk -F: '{print $5}'`
 
877
fi
 
878
if test -z "${FULLNAME}" ; then
 
879
  FULLNAME=$LOGNAME
 
880
fi
 
881
AC_SUBST(LOGNAME)
 
882
AC_SUBST(FULLNAME)
662
883
 
663
884
AC_CONFIG_FILES([
664
 
                 ./version.h
 
885
                 version.h
665
886
                 api/Makefile
666
887
                 apps/Makefile
667
888
                 clientgui/Makefile
668
889
                 clientgui/res/Makefile
 
890
                 clientscr/Makefile
669
891
                 client/Makefile
670
 
                 client/win/boinc_path_config.py:py/Boinc/boinc_path_config.py.in
671
 
                 client/scripts/Makefile
672
 
                 client/scripts/boinc-client
 
892
                 client/win/boinc_path_config.py:py/boinc_path_config.py.in
 
893
                 client/scripts/Makefile
 
894
                 client/scripts/boinc-client
673
895
                 db/Makefile
674
896
                 doc/Makefile
675
897
                 doc/manpages/Makefile
676
898
                 lib/Makefile
677
 
                 locale/client/Makefile
 
899
                 locale/Makefile
678
900
                 Makefile
679
 
                 py/Boinc/boinc_path_config.py:py/Boinc/boinc_path_config.py.in
680
 
                 py/Boinc/Makefile
681
 
                 py/boinc_path_config.py:py/Boinc/boinc_path_config.py.in
682
901
                 py/Boinc/version.py
683
902
                 py/Makefile
684
 
                 sched/boinc_path_config.py:py/Boinc/boinc_path_config.py.in
 
903
                 py/boinc_path_config.py:py/boinc_path_config.py.in
 
904
                 py/setup.py
 
905
                 sched/boinc_path_config.py:py/boinc_path_config.py.in
685
906
                 sched/Makefile
686
 
                 sea/Makefile
687
 
                 test/boinc_path_config.py:py/Boinc/boinc_path_config.py.in
 
907
                 packages/generic/sea/Makefile
 
908
                 packages/solaris/CSW/Makefile
 
909
                 packages/solaris/CSW/boincclient/Makefile
 
910
                 packages/solaris/CSW/boincclient/pkginfo
 
911
                 packages/solaris/CSW/boincclient/prototype
 
912
                 packages/solaris/CSW/boincdevel/Makefile
 
913
                 packages/solaris/CSW/boincdevel/pkginfo
 
914
                 packages/solaris/CSW/boincdevel/prototype
 
915
                 packages/solaris/CSW/boinclibs/Makefile
 
916
                 packages/solaris/CSW/boinclibs/pkginfo
 
917
                 packages/solaris/CSW/boinclibs/prototype
 
918
                 packages/solaris/CSW/boincmanager/Makefile
 
919
                 packages/solaris/CSW/boincmanager/pkginfo
 
920
                 packages/solaris/CSW/boincmanager/prototype
 
921
                 test/boinc_path_config.py:py/boinc_path_config.py.in
688
922
                 test/Makefile
689
923
                 test/version.inc
690
 
                 tools/boinc_path_config.py:py/Boinc/boinc_path_config.py.in
 
924
                 tools/boinc_path_config.py:py/boinc_path_config.py.in
691
925
                 tools/Makefile
692
 
                 zip/Makefile
693
 
                 zip/zip/Makefile
694
 
                 zip/unzip/Makefile
695
926
                 m4/Makefile
696
 
                 ])
 
927
                ])
 
928
 
697
929
 
698
930
dnl AC_CONFIG_HEADER([config.h])
699
931
AC_CONFIG_HEADERS([config.h])