1*c5535c91SAndrew GeisslerFrom 3be3b9a1345942d1578ec73efa9b2e3c41bd67c5 Mon Sep 17 00:00:00 2001
2*c5535c91SAndrew GeisslerFrom: Yi Zhao <yi.zhao@windriver.com>
3*c5535c91SAndrew GeisslerDate: Fri, 21 Jan 2022 13:22:24 +0800
4*c5535c91SAndrew GeisslerSubject: [PATCH] Add autogen.sh
5*c5535c91SAndrew Geissler
6*c5535c91SAndrew GeisslerThe autogen.sh has been removed since 3.0.22[1]. But we still need it in
7*c5535c91SAndrew Geisslerdo_configure. Add it back.
8*c5535c91SAndrew Geissler
9*c5535c91SAndrew Geissler[1] https://github.com/FreeRADIUS/freeradius-server/commit/2e9b6227efd19e2b0926541aa26874908e7b7314
10*c5535c91SAndrew Geissler
11*c5535c91SAndrew GeisslerUpstream-Status: Inappropriate [embedded specific]
12*c5535c91SAndrew Geissler
13*c5535c91SAndrew GeisslerSigned-off-by: Yi Zhao <yi.zhao@windriver.com>
14*c5535c91SAndrew Geissler---
15*c5535c91SAndrew Geissler autogen.sh | 19 +++++++++++++++++++
16*c5535c91SAndrew Geissler 1 file changed, 19 insertions(+)
17*c5535c91SAndrew Geissler create mode 100755 autogen.sh
18*c5535c91SAndrew Geissler
19*c5535c91SAndrew Geisslerdiff --git a/autogen.sh b/autogen.sh
20*c5535c91SAndrew Geisslernew file mode 100755
21*c5535c91SAndrew Geisslerindex 0000000000..959182b39e
22*c5535c91SAndrew Geissler--- /dev/null
23*c5535c91SAndrew Geissler+++ b/autogen.sh
24*c5535c91SAndrew Geissler@@ -0,0 +1,19 @@
25*c5535c91SAndrew Geissler+#!/bin/sh -e
26*c5535c91SAndrew Geissler+
27*c5535c91SAndrew Geissler+parentdir=`dirname $0`
28*c5535c91SAndrew Geissler+
29*c5535c91SAndrew Geissler+cd $parentdir
30*c5535c91SAndrew Geissler+parentdir=`pwd`
31*c5535c91SAndrew Geissler+m4include="-I$parentdir -I$parentdir/m4 -Im4"
32*c5535c91SAndrew Geissler+
33*c5535c91SAndrew Geissler+autoreconf -Wcross --verbose --install --force
34*c5535c91SAndrew Geissler+
35*c5535c91SAndrew Geissler+mysubdirs="$mysubdirs `find src/modules/ -name configure -print | sed 's%/configure%%'`"
36*c5535c91SAndrew Geissler+mysubdirs=`echo $mysubdirs`
37*c5535c91SAndrew Geissler+
38*c5535c91SAndrew Geissler+for F in $mysubdirs
39*c5535c91SAndrew Geissler+do
40*c5535c91SAndrew Geissler+	echo "Configuring in $F..."
41*c5535c91SAndrew Geissler+	(cd $F && grep "^AC_CONFIG_HEADER" configure.ac > /dev/null || exit 0; autoheader $m4include)
42*c5535c91SAndrew Geissler+	(cd $F && autoconf $m4include)
43*c5535c91SAndrew Geissler+done
44*c5535c91SAndrew Geissler--
45*c5535c91SAndrew Geissler2.25.1
46*c5535c91SAndrew Geissler
47