"Fossies" - the Fresh Open Source Software Archive 
Member "fusesmb-0.8.7/configure.in" (7 Sep 2007, 3181 Bytes) of package /linux/privat/old/fusesmb-0.8.7.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT(fusesmb.c)
4 dnl Every other copy of the package version number gets its value from here
5 AM_INIT_AUTOMAKE(fusesmb, 0.8.7)
6
7 dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
8 AM_CONFIG_HEADER(config.h)
9
10 AC_SUBST(VERSION)
11 AC_DEFINE(_FILE_OFFSET_BITS,64,[Use 64 bits file offsets])
12 AC_DEFINE(FUSE_USE_VERSION,22,[Fuse API Version])
13
14
15 # $prefix stores the value of the --prefix command line option, or
16 # NONE if the option wasn't set. In the case that it wasn't set, make
17 # it be the default, so that we can use it to expand directories now.
18 if test "x$prefix" = "xNONE"; then
19 prefix=$ac_default_prefix
20 fi
21
22 # and similarly for $exec_prefix
23 if test "x$exec_prefix" = "xNONE"; then
24 exec_prefix=$prefix
25 fi
26
27
28 dnl FUSESMB_CACHE_BINDIR=`eval echo $bindir`
29 dnl AC_SUBST(FUSESMB_CACHE_BINDIR)
30 AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
31 AC_MSG_NOTICE(Storing data files in $SYSCONFDIR)
32 AS_AC_EXPAND(BINDIR, $bindir)
33 AC_DEFINE_UNQUOTED(FUSESMB_SYSCONFDIR, $SYSCONFDIR, [System configuration path])
34 AC_DEFINE_UNQUOTED(FUSESMB_CACHE_BINDIR, "$BINDIR", [Path to fusesmb.cache])
35 dnl AC_DEFINE([FUSESMB_CACHE_BINDIR], [], [Path to fusesmb.cache])
36
37 AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug],
38 [Turn debugging options on]),
39 [])
40
41 if [[ "x$enable_debug" = "xyes" ]]; then
42 CFLAGS="$CFLAGS -Wall -W -g "
43 else
44 CFLAGS="$CFLAGS -Wall -W -g -O2"
45 fi
46
47 ISODATE=`date +%Y-%m-%d`
48 AC_SUBST(ISODATE)
49
50 AC_CANONICAL_HOST
51
52 dnl Checks for programs.
53 AC_PROG_INSTALL
54 AC_PROG_CC
55 AC_CHECK_PROG(NMBLOOKUP,nmblookup,yes,no)
56 test $NMBLOOKUP = no && AC_MSG_ERROR([Please install nmblookup.])
57
58 dnl Checks for libraries.
59
60 dnl Checks for header files.
61 AC_HEADER_STDC
62 AC_CHECK_HEADERS(stdio.h string.h stdlib.h stddef.h errno.h fcntl.h dirent.h sys/param.h sys/vfs.h pthread.h )
63 AC_CHECK_HEADERS(fuse.h,, AC_MSG_ERROR([Please install fuse header files.]))
64 AC_CHECK_HEADERS(libsmbclient.h,, AC_MSG_ERROR([Please install libsmbclient header files.]))
65 AC_CACHE_CHECK([whether libsmbclient has close or close_fn],
66 [ac_cv_libsmbclient_has_close_fn],
67 [AC_TRY_COMPILE([
68 #include <libsmbclient.h>
69 ],[
70 SMBCCTX *ctx;
71 SMBCFILE *file;
72 ctx->close_fn(ctx, file);
73 ],
74 ac_cv_libsmbclient_has_close_fn=yes,
75 ac_cv_libsmbclient_has_close_fn=no)])
76
77 if test $ac_cv_libsmbclient_has_close_fn = yes; then
78 AC_DEFINE(HAVE_LIBSMBCLIENT_CLOSE_FN, [],
79 [New close function for libsmbclient >= 3.0.20])
80 fi
81
82 #jm_CHECK_TYPE_STRUCT_UTIMBUF
83 #AC_HEADER_MAJOR
84 #AC_FUNC_ALLOCA
85 #AC_STRUCT_TM
86 AC_STRUCT_ST_BLOCKS
87 #AC_FUNC_CLOSEDIR_VOID
88 #AC_CHECK_FUNCS(mkfifo)
89 #AC_CHECK_FUNC(mknod)
90
91 dnl Checks for typedefs, structures, and compiler characteristics.
92
93 dnl Checks for library functions.
94 AC_CHECK_LIB(smbclient, smbc_new_context,, AC_MSG_ERROR([Please install libsmbclient >= 3.0.1 first.]))
95 AC_CHECK_LIB(pthread, pthread_create,, AC_MSG_ERROR([Please install pthreads library first.]))
96 AC_CHECK_LIB(fuse, fuse_main,, AC_MSG_ERROR([Please install libfuse >= 1.1 first.]))
97
98 AC_OUTPUT(Makefile fusesmb.lsm fusesmb.spec)