summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-06 20:41:51 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-06 20:41:51 +0100
commitc9835bcd86cf13a933c3c78112307b1863baee2d (patch)
tree5d60fbd708d1a0a81c7c21e8f2193d202b9b2d45 /configure.ac
parentf91850c0c1fc345bb4dfaa0266141d85ddfd7b07 (diff)
downloadgnutls-c9835bcd86cf13a933c3c78112307b1863baee2d.tar.gz
delete libopts generated files if system libopts is being used
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4459b94fee..d7215d1b10 100644
--- a/configure.ac
+++ b/configure.ac
@@ -345,6 +345,10 @@ fi
AM_CONDITIONAL(ENABLE_TROUSERS, test "$with_tpm" != "no")
LIBOPTS_CHECK([src/libopts])
+if [ test "$NEED_LIBOPTS_DIR" != "true" ];then
+ dnl delete libopts-generated files
+ rm -f src/*-args.c src/*-args.h
+fi
AC_CHECK_TYPE(ssize_t,
[