summaryrefslogtreecommitdiff
path: root/external/bsd/tre/dist/utils/autogen.sh
blob: 95ae3b9ffe8a3687ad458fe1a7544d633a246fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh

set -e

# Clear the cache to get a clean rebuild.
rm -rf autom4te.cache

# Replace variables here and there to get a consistent tree.
./utils/replace-vars.sh

# Set up the standard gettext infrastructure.
autopoint

# Set up libtool stuff for use with Automake.
if type glibtoolize > /dev/null 2>&1; then
   # On macOS, this name is used for some reason.
   glibtoolize --automake
else
   libtoolize --automake
fi

# Update aclocal.m4, using the macros from the m4 directory.
aclocal -I m4

# Run autoheader to generate config.h.in.
autoheader

# Create Makefile.in's.
automake --foreign --add-missing

# Create the configure script.
autoconf