diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-12-02 14:57:41 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-12-08 17:13:56 +0100 |
commit | 478179316bc815e1ad518ae318f46e94a13b0e1f (patch) | |
tree | 9060f68955b36d82c419a59ba057213403ddb489 /configure.ac | |
parent | d403a41f8e0d6c67a746bd6a1e42fb14de17d352 (diff) | |
download | gnutls-478179316bc815e1ad518ae318f46e94a13b0e1f.tar.gz |
configure.ac: use AC_CONFIG_LINKS to copy autogenerated files
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index 225cd3c200..bc59152693 100644 --- a/configure.ac +++ b/configure.ac @@ -667,22 +667,13 @@ AC_DEFINE_UNQUOTED([TROUSERS_LIB], ["$ac_trousers_lib"], [the location of the tr AC_SUBST(TROUSERS_LIB) included_libopts=no +create_libopts_links=no if test "$enable_tools" != "no" || test "$enable_doc" != "no"; then LIBOPTS_CHECK([src/libopts]) if test "$NEED_LIBOPTS_DIR" = "true";then dnl replace libopts-generated files with distributed backups, if present - missing_baks= - for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do - nam=`echo $i|sed 's/.bak//g'` - if test -f $i;then - cp -f $i $nam - else - missing_baks=true - fi - done - if test -z "$missing_baks"; then - AC_SUBST([AUTOGEN], [/bin/true]) - fi + create_libopts_links=yes + AC_SUBST([AUTOGEN], [/bin/true]) included_libopts=yes fi else @@ -927,6 +918,14 @@ dnl Some variables needed in makefiles YEAR=`date +%Y` 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 + AC_CONFIG_LINKS([src/$nam:$i]) + fi +done + AC_CONFIG_FILES([guile/pre-inst-guile], [chmod +x guile/pre-inst-guile]) AC_CONFIG_FILES([ Makefile |