fix issue with password changes done via NTLMSSP
[Samba.git] / examples / VFS / configure.in
blob2afa2e1a044e1b57a90e70878708f82af1a77e4d
1 dnl Samba VFS Modules
3 AC_INIT
5 uname=`uname`
7 dnl Check programs needed
8 AC_PROG_CC
10 dnl ensure libtool is installed
11 AC_PATH_PROG(LIBTOOL, libtool,,)
12 if test "$LIBTOOL" = ""; then
13         echo
14         echo 'FATAL ERROR: libtool does not seem to be installed.'
15         echo $pkg_name cannot be built without a working libtool installation.
16         exit 1
20 # Config CFLAGS settings
22 CFLAGS="-Wall"
24 case "$uname" in
25         AIX)
26                 if test "${GCC}" = "yes"; then
27                         CFLAGS="$CFLAGS -I/usr/include -D_LINUX_SOURCE_COMPAT"
28                 else
29                         CFLAGS="-D_LINUX_SOURCE_COMPAT"
30                 fi
31                 ;;
32         SunOS)
33                 if test "${GCC}" = "yes"; then
34                         CFLAGS="$CFLAGS"
35                 else
36                         CFLAGS=""
37                 fi
38                 ;;      
39 #       Linux)
40 #               CFLAGS="-Wall"
41 #               ;;
42 esac
45 # Config LDLAGS settings
47 LDFLAGS="-shared"
49 case "$uname" in
50         AIX)
51                 LDFLAGS="-Wl,-G,-bexpall,-bnoentry"
52                 ;;
53         SunOS)
54                 LDFLAGS="-G"
55                 ;;
56 #       Linux)
57 #               echo "Linux found"
58 #               LDFLAGS="-shared"
59 #               ;;
60 esac
62 #################################################
63 # Check to see if we should use the included popt
65 AC_ARG_WITH(included-popt,
66 [  --with-included-popt    use bundled popt library, not from system],
68   case "$withval" in
69         yes)
70                 INCLUDED_POPT=yes
71                 ;;
72         no)
73                 INCLUDED_POPT=no
74                 ;;
75   esac ],
77 if test x"$INCLUDED_POPT" != x"yes"; then
78     AC_CHECK_LIB(popt, poptGetContext,
79                  INCLUDED_POPT=no, INCLUDED_POPT=yes)
82 AC_MSG_CHECKING(whether to use included popt)
83 if test x"$INCLUDED_POPT" = x"yes"; then
84         AC_MSG_RESULT($srcdir/popt)
85         CFLAGS="$CFLAGS -I../../source/popt"
86 else
87         AC_MSG_RESULT(no)    
90 CFLAGS="$CFLAGS -I../../source -I../../source/include -I../../source/ubiqx -I../../source/smbwrapper"
92 AC_OUTPUT([Makefile])