Whamcloud - gitweb
LU-17744 ldiskfs: mballoc stats fixes
[fs/lustre-release.git] / autogen.sh
old mode 100644 (file)
new mode 100755 (executable)
index 50b5424..013a265
@@ -1,14 +1,26 @@
-#!/bin/sh
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
 
-# NOTE: Please avoid bashisms (bash specific syntax) in this script
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# autogen.sh
+#
+# Run various autotools, thereby creating the configure
+# script and top-level make files
+#
 
 set -e
-
-for dir in libcfs lnet lustre snmp ; do
-       ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
+pw="$PWD"
+for dir in libcfs lnet lustre ; do
+       ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $pw/$dir/autoconf"
 done
 
-aclocal -I $PWD/config $ACLOCAL_FLAGS
+# avoid the "modules.order: No such file or directory" failure
+touch modules.order
+
+libtoolize -q
+aclocal -I $pw/config $ACLOCAL_FLAGS
 autoheader
 automake -a -c
 autoconf