]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
configure.ac: remove autogen'erated files only if necessary
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Tue, 13 Dec 2016 21:46:16 +0000 (00:46 +0300)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 14 Dec 2016 09:20:24 +0000 (10:20 +0100)
Currently autogen'erated files will be removed on each call to
configure. However this would break the build if one of previous
make invocations have created corresponding stamp files.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
configure.ac

index e30ef8bd97cde6b812f447448c88f76b883c6590..e96c75d356a35457d7deb1dd1a52622d97429ab2 100644 (file)
@@ -920,8 +920,8 @@ AC_SUBST([YEAR], $YEAR)
 
 for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
        nam=$(basename $i|sed 's/.bak//g')
-       rm -f "src/$nam"
        if test "$create_libopts_links" = "yes";then
+               rm -f "src/$nam"
                AC_CONFIG_LINKS([src/$nam:$i])
        fi
 done