Merge branch 'collectd-4.1' into collectd-4.2
[collectd.git] / configure.in
index 3c632c7..08b56a7 100644 (file)
@@ -1902,6 +1902,9 @@ AC_ARG_WITH(perl-bindings, [AS_HELP_STRING([--with-perl-bindings@<:@=OPTIONS@:>@
        then
                PERL_BINDINGS_OPTIONS="$withval"
                with_perl_bindings="yes"
+       else
+               PERL_BINDINGS_OPTIONS=""
+               with_perl_bindings="$withval"
        fi
 ],
 [
@@ -1936,21 +1939,6 @@ then
        with_perl_bindings="yes ($PERL_BINDINGS_OPTIONS)"
 fi
 
-if test ".." != "$ac_top_srcdir"
-then
-       # we're not building from the source tree
-       for file in \
-                       bindings/perl/Collectd/Makefile.PL \
-                       bindings/perl/Collectd/Unixsock.pm \
-                       bindings/perl/Collectd.pm \
-                       bindings/perl/Makefile.PL
-       do
-               dir=`dirname $file`
-               mkdir -p $dir
-               cp src/$ac_top_srcdir/$file $file
-       done
-fi
-
 cat <<EOF;
 
 Configuration: