passdb-machine_account_secrets: Remove #if SAMBA_BUILD_ == 4 now we only have the...
[obnox/samba/samba-obnox.git] / examples / VFS / configure.in
index b8e10d482b820773c6f1e277cf173f632997d9b0..1c61853769ff7877ea22676ceebab548cd5e4189 100644 (file)
@@ -27,11 +27,11 @@ AC_ARG_WITH(fhs,
 
 AC_SUBST(libdir)
 
-SAMBA_SOURCE="../../source"
+SAMBA_SOURCE="../../source3"
 ####################################################
 # set the location location of the samba source tree
 AC_ARG_WITH(samba-source,
-[  --with-samba-source=DIR Where is the samba source tree (../../source)],
+[  --with-samba-source=DIR Where is the samba source tree (../../source3)],
 [ case "$withval" in
   yes|no)
   #
@@ -164,9 +164,6 @@ fi
 #LD=ld
 #AC_PROG_LD_GNU
 
-#dnl look for executable suffix
-#AC_EXEEXT
-
 builddir=`pwd`
 AC_SUBST(builddir)
 
@@ -337,11 +334,11 @@ AC_CACHE_CHECK([whether building shared libraries actually works],
    ac_cv_shlib_works=no
    # try building a trivial shared library
    if test "$PICSUFFIX" = "po"; then
-     $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.po ${srcdir-.}/../../source/tests/shlib.c &&
+     $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.po ${SAMBA_SOURCE}/../tests/shlib.c &&
        $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" shlib.po &&
        ac_cv_shlib_works=yes
    else
-     $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
+     $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.$PICSUFFIX ${SAMBA_SOURCE}/../tests/shlib.c &&
        mv shlib.$PICSUFFIX shlib.po &&
        $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" shlib.po &&
        ac_cv_shlib_works=yes
@@ -350,6 +347,7 @@ AC_CACHE_CHECK([whether building shared libraries actually works],
 ])
 if test $ac_cv_shlib_works = no; then
    BLDSHARED=false
+   AC_MSG_WARN([[Did you forget to specify --with-samba-source=/path/to/samba?]])
 fi
 fi