Blame SOURCES/0001-configure-add-with-without-doxygen-switch.patch

cd870c
From b9986739f0ec0ffc2bf37951fc8308fbfb433d0c Mon Sep 17 00:00:00 2001
cd870c
From: Florian Westphal <fw@strlen.de>
cd870c
Date: Sat, 6 Jun 2020 16:14:44 +0200
cd870c
Subject: [PATCH] configure: add --with/without-doxygen switch
cd870c
cd870c
Allows to turn off doxygen even if its installed, via
cd870c
--without-doxygen.
cd870c
cd870c
Default is to probe for doxygen presence (--with-doxygen).
cd870c
cd870c
Signed-off-by: Florian Westphal <fw@strlen.de>
cd870c
(cherry picked from commit 3622e6061d5cc34db70cef7b8516217e27ffa57c)
cd870c
cd870c
Conflicts:
cd870c
- Change configure script itself instead of configure.ac as original patch
cd870c
  does.
cd870c
---
cd870c
cd870c
--- a/configure
cd870c
+++ b/configure
cd870c
@@ -770,6 +770,7 @@
cd870c
 with_gnu_ld
cd870c
 with_sysroot
cd870c
 enable_libtool_lock
cd870c
+with_doxygen
cd870c
 '
cd870c
       ac_precious_vars='build_alias
cd870c
 host_alias
cd870c
@@ -1441,6 +1442,7 @@
cd870c
   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
cd870c
   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
cd870c
                           compiler's sysroot if not specified).
cd870c
+  --with-doxygen          create doxygen documentation
cd870c
 
cd870c
 Some influential environment variables:
cd870c
   CC          C compiler command
cd870c
@@ -13278,7 +13280,17 @@
cd870c
 
cd870c
 
cd870c
 
cd870c
-for ac_prog in doxygen
cd870c
+# Check whether --with-doxygen was given.
cd870c
+if test "${with_doxygen+set}" = set; then :
cd870c
+  withval=$with_doxygen; with_doxygen="$withval"
cd870c
+else
cd870c
+  with_doxygen=yes
cd870c
+fi
cd870c
+
cd870c
+
cd870c
+if test "x$with_doxygen" != xno; then :
cd870c
+
cd870c
+	for ac_prog in doxygen
cd870c
 do
cd870c
   # Extract the first word of "$ac_prog", so it can be a program name with args.
cd870c
 set dummy $ac_prog; ac_word=$2
cd870c
@@ -13320,9 +13332,7 @@
cd870c
   test -n "$DOXYGEN" && break
cd870c
 done
cd870c
 
cd870c
-if test -z "$DOXYGEN";
cd870c
-	then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - continuing without Doxygen support" >&5
cd870c
-$as_echo "$as_me: WARNING: Doxygen not found - continuing without Doxygen support" >&2;}
cd870c
+
cd870c
 fi
cd870c
 
cd870c
  if test -n "$DOXYGEN"; then
cd870c
@@ -13333,6 +13343,10 @@
cd870c
   HAVE_DOXYGEN_FALSE=
cd870c
 fi
cd870c
 
cd870c
+if test -z "$DOXYGEN"; then
cd870c
+		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - continuing without Doxygen support" >&5
cd870c
+$as_echo "$as_me: WARNING: Doxygen not found - continuing without Doxygen support" >&2;}
cd870c
+fi
cd870c
 cat >confcache <<\_ACEOF
cd870c
 # This file is a shell script that caches the results of configure
cd870c
 # tests run on this system so they can be shared between configure