10df01b61c66e67d4b6b5c0dbadacf1159306318
[samba.git] / source3 / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(byteorder.h)
3 AC_CONFIG_HEADER(config.h)
4
5 dnl Checks for programs.
6 AC_PROG_CC
7 AC_PROG_INSTALL
8 AC_SUBST(SHELL)
9 AC_PROG_AWK
10
11 AC_CANONICAL_SYSTEM
12 case "$host_os" in
13         *linux*)   AC_DEFINE(LINUX);;
14         *solaris*) AC_DEFINE(SUNOS5);;
15         *sunos*) AC_DEFINE(SUNOS4);;
16         *irix*) AC_DEFINE(IRIX);;
17         *aix*) AC_DEFINE(AIX);;
18         *hpux*) AC_DEFINE(HPUX);;
19         *qnx*) AC_DEFINE(QNX);;
20         *osf1*) AC_DEFINE(OSF1);;
21         *sco*) AC_DEFINE(SCO);;
22         *next2*) AC_DEFINE(NEXT2);;
23 esac
24
25 AC_INLINE
26 AC_HEADER_STDC
27 AC_HEADER_DIRENT
28 AC_HEADER_TIME
29 AC_HEADER_SYS_WAIT
30 AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h)
31 AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h net/if.h)
32 AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h)
33 AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h)
34 AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h)
35 AC_CHECK_HEADERS(sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
36 AC_CHECK_HEADERS(shadow.h netinet/tcp.h sys/security.h security/pam_appl.h)
37
38 AC_CHECK_SIZEOF(int)
39 AC_CHECK_SIZEOF(long)
40 AC_CHECK_SIZEOF(short)
41
42 AC_C_CONST
43 AC_C_INLINE
44 AC_C_BIGENDIAN
45 AC_C_CHAR_UNSIGNED
46
47 AC_TYPE_SIGNAL
48 AC_TYPE_UID_T
49 AC_TYPE_MODE_T
50 AC_TYPE_OFF_T
51 AC_TYPE_SIZE_T
52 AC_TYPE_PID_T
53 AC_STRUCT_ST_RDEV
54 AC_CHECK_TYPE(ino_t,unsigned)
55
56 echo $ac_n "checking for errno in errno.h... $ac_c"
57 AC_TRY_COMPILE([#include <errno.h>],[int i = errno],
58 echo yes; AC_DEFINE(HAVE_ERRNO_DECL),
59 echo no)
60
61 AC_FUNC_MEMCMP
62
63 ###############################################
64 # test for where we get crypt() from
65 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
66   AC_CHECK_LIB(crypt, crypt)
67   AC_DEFINE(HAVE_CRYPT)
68 fi
69 if test "$ac_cv_lib_crypt_crypt" = "no" || 
70    test "$ac_cv_lib_crypt_crypt" = ""; then
71 # look for crypt 
72 AC_CHECK_FUNC(crypt, AC_DEFINE(HAVE_CRYPT), 
73 [case "$LIBS" in
74 *-lcrypt*) ;;
75 *) AC_CHECK_LIB(crypt, crypt) ;;
76 esac
77 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
78   ac_cv_func_crypt=yes
79   AC_DEFINE(HAVE_CRYPT)
80 fi])
81 fi
82
83
84 ###############################################
85 # test for where we get pam_authenticate() from
86 # might need libdl for this to work
87 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
88   AC_HAVE_LIBRARY(dl)
89 fi
90 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
91   AC_CHECK_LIB(pam, pam_authenticate)
92   AC_DEFINE(HAVE_PAM_AUTHENTICATE)
93 fi
94 if test "$ac_cv_lib_pam_pam_authenticate" = "no" || 
95    test "$ac_cv_lib_pam_pam_authenticate" = ""; then
96 # look for pam_authenticate
97 AC_CHECK_FUNC(pam_authenticate, AC_DEFINE(HAVE_PAM_AUTHENTICATE), 
98 [case "$LIBS" in
99 *-lpam*) ;;
100 *) AC_CHECK_LIB(pam, pam_authenticate) ;;
101 esac
102 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
103   ac_cv_func_pam_authenticate=yes
104   AC_DEFINE(HAVE_PAM_AUTHENTICATE)
105 fi])
106 fi
107
108
109 AC_CHECK_FUNCS(waitpid getcwd strdup strerror chown chmod chroot)
110 AC_CHECK_FUNCS(fstat strchr utime utimes getrlimit fsync execl)
111 AC_CHECK_FUNCS(memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid)
112 AC_CHECK_FUNCS(strftime sigprocmask sigblock sigaction innetgr)
113 AC_CHECK_FUNCS(initgroups select rdchk getgrnam pathconf putprpwnam)
114 AC_CHECK_FUNCS(setresuid setuidx setgroups mktime rename ftruncate)
115 AC_CHECK_FUNCS(set_auth_parameters atexit grantpt getspnam dup2)
116 AC_CHECK_FUNCS(bigcrypt getprpwnam setluid yp_get_default_domain)
117
118 echo $ac_n "checking for long long ... $ac_c"
119 AC_TRY_RUN([#include <stdio.h>
120 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }],
121 echo yes;AC_DEFINE(HAVE_LONGLONG), 
122 echo no)
123
124 echo $ac_n "checking for off64_t ... $ac_c"
125 AC_TRY_RUN([#include <stdio.h>
126 #include <sys/stat.h>
127 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }],
128 echo yes;AC_DEFINE(HAVE_OFF64_T), 
129 echo no)
130
131 echo $ac_n "checking for union semun ... $ac_c"
132 AC_TRY_RUN([
133 #include <sys/types.h>
134 #include <sys/ipc.h>
135 #include <sys/sem.h>
136 main() { union semun ss; exit(0); }],
137 echo yes;AC_DEFINE(HAVE_UNION_SEMUN), 
138 echo no)
139
140 echo $ac_n "checking for unsigned char ... $ac_c"
141 AC_TRY_RUN([#include <stdio.h>
142 main() { char c; c=250; exit((c > 0)?0:1); }],
143 echo yes;AC_DEFINE(HAVE_UNSIGNED_CHAR), 
144 echo no)
145
146 echo $ac_n "checking for sin_len in sock ... $ac_c"
147 AC_TRY_COMPILE([#include <sys/types.h>
148 #include <sys/socket.h>
149 #include <netinet/in.h>],
150 [struct sockaddr_in sock; sock.sin_len = sizeof(sock);],
151 echo yes;AC_DEFINE(HAVE_SOCK_SIN_LEN), 
152 echo no)
153
154 echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
155 AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FUNCTION__);],
156 echo yes;AC_DEFINE(HAVE_FUNCTION_MACRO), 
157 echo no)
158
159 echo $ac_n "checking if gettimeofday takes tz argument ... $ac_c"
160 AC_TRY_RUN([
161 #include <sys/time.h>
162 #include <unistd.h>
163 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
164            echo yes;AC_DEFINE(HAVE_GETTIMEOFDAY_TZ),
165            echo no)
166
167
168 echo $ac_n "checking for broken readdir ... $ac_c"
169 AC_TRY_RUN([#include <sys/types.h>
170 #include <dirent.h>
171 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
172 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
173 di->d_name[0] == 0) exit(0); exit(1);} ],
174 echo yes - you are using the broken /usr/ucb/cc;AC_DEFINE(HAVE_BROKEN_READDIR), 
175 echo no)
176
177 echo $ac_n "checking for utimbuf ... $ac_c"
178 AC_TRY_COMPILE([#include <sys/types.h>
179 #include <utime.h>],
180 [struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));],
181 echo yes;AC_DEFINE(HAVE_UTIMBUF), 
182 echo no)
183
184 echo $ac_n "checking for ftruncate extend ... $ac_c"
185 AC_TRY_RUN([#include "tests/ftruncate.c"],
186            echo yes;AC_DEFINE(HAVE_FTRUNCATE_EXTEND), 
187            echo no)
188
189 # The following test taken from the cvs sources
190 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
191 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
192 # libsocket.so which has a bad implementation of gethostbyname (it
193 # only looks in /etc/hosts), so we only look for -lsocket if we need
194 # it.
195 AC_CHECK_FUNC(connect, :, 
196 [case "$LIBS" in
197 *-lnsl*) ;;
198 *) AC_CHECK_LIB(nsl_s, printf) ;;
199 esac
200 case "$LIBS" in
201 *-lnsl*) ;;
202 *) AC_CHECK_LIB(nsl, printf) ;;
203 esac
204 case "$LIBS" in
205 *-lsocket*) ;;
206 *) AC_CHECK_LIB(socket, connect) ;;
207 esac
208 case "$LIBS" in
209 *-linet*) ;;
210 *) AC_CHECK_LIB(inet, connect) ;;
211 esac
212 dnl We can't just call AC_CHECK_FUNCS(connect) here, because the value
213 dnl has been cached.
214 if test "$ac_cv_lib_socket_connect" = "yes" || 
215    test "$ac_cv_lib_inet_connect" = "yes"; then
216   ac_cv_func_connect=yes
217   AC_DEFINE(HAVE_CONNECT)
218 fi])
219
220 echo $ac_n "checking for broken getgroups ... $ac_c"
221 AC_TRY_RUN([#include "tests/getgroups.c"],
222            echo yes;AC_DEFINE(HAVE_BROKEN_GETGROUPS), 
223            echo no)
224
225
226 echo $ac_n "checking for broken inet_ntoa ... $ac_c"
227 AC_TRY_RUN([
228 #include <stdio.h>
229 #include <sys/types.h>
230 #include <netinet/in.h>
231 #include <arpa/inet.h>
232 main() { struct in_addr ip; ip.s_addr = 0x12345678;
233 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
234     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); } 
235 exit(1);}],
236            echo yes;AC_DEFINE(REPLACE_INET_NTOA), 
237            echo no)
238
239 echo $ac_n "checking for root ... $ac_c"
240 AC_TRY_RUN([main() { exit(getuid() != 0); }],
241            echo yes;AC_DEFINE(HAVE_ROOT), 
242            echo WARNING: running as non-root will disable some tests;)
243
244 netmask=no;
245 echo $ac_n "checking for netmask ifconf ... $ac_c"
246 AC_TRY_RUN([
247 #define HAVE_NETMASK_IFCONF 1
248 #define AUTOCONF 1
249 #include "netmask.c"],
250            echo yes;netmask=yes;AC_DEFINE(HAVE_NETMASK_IFCONF),
251            echo no)
252
253 if test $netmask = no; then
254 echo $ac_n "checking for netmask ifreq ... $ac_c"
255 AC_TRY_RUN([
256 #define HAVE_NETMASK_IFREQ 1
257 #define AUTOCONF 1
258 #include "netmask.c"],
259            echo yes;netmask=yes;AC_DEFINE(HAVE_NETMASK_IFREQ),
260            echo no)
261 fi
262
263 if test $netmask = no; then
264 echo $ac_n "checking for netmask AIX ... $ac_c"
265 AC_TRY_RUN([
266 #define HAVE_NETMASK_AIX 1
267 #define AUTOCONF 1
268 #include "netmask.c"],
269            echo yes;netmask=yes;AC_DEFINE(HAVE_NETMASK_AIX),
270            echo no)
271 fi
272
273 echo $ac_n "checking for trapdoor seteuid ... $ac_c"
274 AC_TRY_RUN([#include "tests/trapdoor.c"],
275            echo no,
276            echo yes;AC_DEFINE(HAVE_TRAPDOOR_UID))
277
278 echo $ac_n "checking for shared mmap ... $ac_c"
279 AC_TRY_RUN([#include "tests/shared_mmap.c"],
280            echo yes;AC_DEFINE(HAVE_SHARED_MMAP), 
281            echo no)
282
283 echo $ac_n "checking for fcntl locking ... $ac_c"
284 AC_TRY_RUN([#include "tests/fcntl_lock.c"],
285            echo yes;AC_DEFINE(HAVE_FCNTL_LOCK), 
286            echo no)
287
288 echo $ac_n "checking for sysv ipc ... $ac_c"
289 AC_TRY_RUN([#include "tests/sysv_ipc.c"],
290            echo yes;AC_DEFINE(HAVE_SYSV_IPC), 
291            echo no)
292
293 #################################################
294 # check for the AFS filesystem
295 AC_MSG_CHECKING(whether to use AFS)
296 AC_ARG_WITH(afs,
297 [  --with-afs     Include AFS support
298   --without-afs  Don't include AFS support (default)],
299 [ case "$withval" in
300   yes)
301     AC_MSG_RESULT(yes)
302     AC_DEFINE(WITH_AFS)
303     ;;
304   *)
305     AC_MSG_RESULT(no)
306     ;;
307   esac ],
308   AC_MSG_RESULT(no)
309 )
310
311
312 #################################################
313 # check for the DFS auth system
314 AC_MSG_CHECKING(whether to use DFS auth)
315 AC_ARG_WITH(dfs,
316 [  --with-dfs     Include DFS support
317   --without-dfs  Don't include DFS support (default)],
318 [ case "$withval" in
319   yes)
320     AC_MSG_RESULT(yes)
321     AC_DEFINE(WITH_DFS)
322     ;;
323   *)
324     AC_MSG_RESULT(no)
325     ;;
326   esac ],
327   AC_MSG_RESULT(no)
328 )
329
330 #################################################
331 # check for automount support
332 AC_MSG_CHECKING(whether to use AUTOMOUNT)
333 AC_ARG_WITH(automount,
334 [  --with-automount     Include AUTOMOUNT support
335   --without-automount  Don't include AUTOMOUNT support (default)],
336 [ case "$withval" in
337   yes)
338     AC_MSG_RESULT(yes)
339     AC_DEFINE(WITH_AUTOMOUNT)
340     ;;
341   *)
342     AC_MSG_RESULT(no)
343     ;;
344   esac ],
345   AC_MSG_RESULT(no)
346 )
347
348 #################################################
349 # check for a LDAP password database
350 AC_MSG_CHECKING(whether to use LDAP password database)
351 AC_ARG_WITH(ldap,
352 [  --with-ldap     Include LDAP support
353   --without-ldap  Don't include LDAP support (default)],
354 [ case "$withval" in
355   yes)
356     AC_MSG_RESULT(yes)
357     AC_DEFINE(WITH_LDAP)
358     ;;
359   *)
360     AC_MSG_RESULT(no)
361     ;;
362   esac ],
363   AC_MSG_RESULT(no)
364 )
365
366 #################################################
367 # check for a NISPLUS password database
368 AC_MSG_CHECKING(whether to use NISPLUS password database)
369 AC_ARG_WITH(nisplus,
370 [  --with-nisplus     Include NISPLUS password database support
371   --without-nisplus  Don't include NISPLUS password database support (default)],
372 [ case "$withval" in
373   yes)
374     AC_MSG_RESULT(yes)
375     AC_DEFINE(WITH_NISPLUS)
376     ;;
377   *)
378     AC_MSG_RESULT(no)
379     ;;
380   esac ],
381   AC_MSG_RESULT(no)
382 )
383
384 #################################################
385 # check for the secure socket layer
386 AC_MSG_CHECKING(whether to use SSL)
387 AC_ARG_WITH(ssl,
388 [  --with-ssl     Include SSL support
389   --without-ssl  Don't include SSL support (default)],
390 [ case "$withval" in
391   yes)
392     AC_MSG_RESULT(yes)
393     AC_DEFINE(WITH_SSL)
394     ;;
395   *)
396     AC_MSG_RESULT(no)
397     ;;
398   esac ],
399   AC_MSG_RESULT(no)
400 )
401
402 #################################################
403 # check for experimental mmap support
404 AC_MSG_CHECKING(whether to use MMAP)
405 AC_ARG_WITH(mmap,
406 [  --with-mmap     Include experimental MMAP support
407   --without-mmap  Don't include MMAP support (default)],
408 [ case "$withval" in
409   yes)
410     AC_MSG_RESULT(yes)
411     AC_DEFINE(WITH_MMAP)
412     ;;
413   *)
414     AC_MSG_RESULT(no)
415     ;;
416   esac ],
417   AC_MSG_RESULT(no)
418 )
419
420 #################################################
421 # check for syslog logging
422 AC_MSG_CHECKING(whether to use syslog logging)
423 AC_ARG_WITH(syslog,
424 [  --with-syslog     Include experimental SYSLOG support
425   --without-syslog  Don't include SYSLOG support (default)],
426 [ case "$withval" in
427   yes)
428     AC_MSG_RESULT(yes)
429     AC_DEFINE(WITH_SYSLOG)
430     ;;
431   *)
432     AC_MSG_RESULT(no)
433     ;;
434   esac ],
435   AC_MSG_RESULT(no)
436 )
437
438
439 #################################################
440 # these tests are taken from the GNU fileutils package
441 AC_CHECKING(how to get filesystem space usage)
442 space=no
443
444 # Perform only the link test since it seems there are no variants of the
445 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
446 # because that got a false positive on SCO OSR5.  Adding the declaration
447 # of a `struct statvfs' causes this test to fail (as it should) on such
448 # systems.  That system is reported to work fine with STAT_STATFS4 which
449 # is what it gets when this test fails.
450 if test $space = no; then
451   # SVR4
452   AC_CACHE_CHECK([statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
453                  [AC_TRY_LINK([#include <sys/types.h>
454 #include <sys/statvfs.h>],
455                               [struct statvfs fsd; statvfs (0, &fsd);],
456                               fu_cv_sys_stat_statvfs=yes,
457                               fu_cv_sys_stat_statvfs=no)])
458   if test $fu_cv_sys_stat_statvfs = yes; then
459     space=yes
460     AC_DEFINE(STAT_STATVFS)
461   fi
462 fi
463
464 if test $space = no; then
465   # DEC Alpha running OSF/1
466   AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)])
467   AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1,
468   [AC_TRY_RUN([
469 #include <sys/param.h>
470 #include <sys/types.h>
471 #include <sys/mount.h>
472   main ()
473   {
474     struct statfs fsd;
475     fsd.f_fsize = 0;
476     exit (statfs (".", &fsd, sizeof (struct statfs)));
477   }],
478   fu_cv_sys_stat_statfs3_osf1=yes,
479   fu_cv_sys_stat_statfs3_osf1=no,
480   fu_cv_sys_stat_statfs3_osf1=no)])
481   AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
482   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
483     space=yes
484     AC_DEFINE(STAT_STATFS3_OSF1)
485   fi
486 fi
487
488 if test $space = no; then
489 # AIX
490   AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl
491 member (AIX, 4.3BSD)])
492   AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize,
493   [AC_TRY_RUN([
494 #ifdef HAVE_SYS_PARAM_H
495 #include <sys/param.h>
496 #endif
497 #ifdef HAVE_SYS_MOUNT_H
498 #include <sys/mount.h>
499 #endif
500 #ifdef HAVE_SYS_VFS_H
501 #include <sys/vfs.h>
502 #endif
503   main ()
504   {
505   struct statfs fsd;
506   fsd.f_bsize = 0;
507   exit (statfs (".", &fsd));
508   }],
509   fu_cv_sys_stat_statfs2_bsize=yes,
510   fu_cv_sys_stat_statfs2_bsize=no,
511   fu_cv_sys_stat_statfs2_bsize=no)])
512   AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize)
513   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
514     space=yes
515     AC_DEFINE(STAT_STATFS2_BSIZE)
516   fi
517 fi
518
519 if test $space = no; then
520 # SVR3
521   AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)])
522   AC_CACHE_VAL(fu_cv_sys_stat_statfs4,
523   [AC_TRY_RUN([#include <sys/types.h>
524 #include <sys/statfs.h>
525   main ()
526   {
527   struct statfs fsd;
528   exit (statfs (".", &fsd, sizeof fsd, 0));
529   }],
530     fu_cv_sys_stat_statfs4=yes,
531     fu_cv_sys_stat_statfs4=no,
532     fu_cv_sys_stat_statfs4=no)])
533   AC_MSG_RESULT($fu_cv_sys_stat_statfs4)
534   if test $fu_cv_sys_stat_statfs4 = yes; then
535     space=yes
536     AC_DEFINE(STAT_STATFS4)
537   fi
538 fi
539
540 if test $space = no; then
541 # 4.4BSD and NetBSD
542   AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl
543 member (4.4BSD and NetBSD)])
544   AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize,
545   [AC_TRY_RUN([#include <sys/types.h>
546 #ifdef HAVE_SYS_PARAM_H
547 #include <sys/param.h>
548 #endif
549 #ifdef HAVE_SYS_MOUNT_H
550 #include <sys/mount.h>
551 #endif
552   main ()
553   {
554   struct statfs fsd;
555   fsd.f_fsize = 0;
556   exit (statfs (".", &fsd));
557   }],
558   fu_cv_sys_stat_statfs2_fsize=yes,
559   fu_cv_sys_stat_statfs2_fsize=no,
560   fu_cv_sys_stat_statfs2_fsize=no)])
561   AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize)
562   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
563     space=yes
564     AC_DEFINE(STAT_STATFS2_FSIZE)
565   fi
566 fi
567
568 if test $space = no; then
569   # Ultrix
570   AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)])
571   AC_CACHE_VAL(fu_cv_sys_stat_fs_data,
572   [AC_TRY_RUN([#include <sys/types.h>
573 #ifdef HAVE_SYS_PARAM_H
574 #include <sys/param.h>
575 #endif
576 #ifdef HAVE_SYS_MOUNT_H
577 #include <sys/mount.h>
578 #endif
579 #ifdef HAVE_SYS_FS_TYPES_H
580 #include <sys/fs_types.h>
581 #endif
582   main ()
583   {
584   struct fs_data fsd;
585   /* Ultrix's statfs returns 1 for success,
586      0 for not mounted, -1 for failure.  */
587   exit (statfs (".", &fsd) != 1);
588   }],
589   fu_cv_sys_stat_fs_data=yes,
590   fu_cv_sys_stat_fs_data=no,
591   fu_cv_sys_stat_fs_data=no)])
592   AC_MSG_RESULT($fu_cv_sys_stat_fs_data)
593   if test $fu_cv_sys_stat_fs_data = yes; then
594     space=yes
595     AC_DEFINE(STAT_STATFS2_FS_DATA)
596   fi
597 fi
598
599
600 AC_OUTPUT(Makefile tests/dummy client/dummy lib/dummy lib/rpc/dummy
601 lib/rpc/client/dummy lib/rpc/include/dummy lib/rpc/parse/dummy
602 lib/rpc/server/dummy lib/smb/dummy ubiqx/dummy web/dummy)