1 #! /bin/sh 2 3 set -e 4 5 # Clear the cache to get a clean rebuild. 6 rm -rf autom4te.cache 7 8 # Replace variables here and there to get a consistent tree. 9 ./utils/replace-vars.sh 10 11 # Set up the standard gettext infrastructure. 12 autopoint 13 14 # Set up libtool stuff for use with Automake. 15 if type glibtoolize > /dev/null 2>&1; then 16 # On macOS, this name is used for some reason. 17 glibtoolize --automake 18 else 19 libtoolize --automake 20 fi 21 22 # Update aclocal.m4, using the macros from the m4 directory. 23 aclocal -I m4 24 25 # Run autoheader to generate config.h.in. 26 autoheader 27 28 # Create Makefile.in's. 29 automake --foreign --add-missing 30 31 # Create the configure script. 32 autoconf 33