xref: /minix3/crypto/external/bsd/openssl/dist/demos/tunala/autogunk.sh (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc#!/bin/sh
2*ebfedea0SLionel Sambuc
3*ebfedea0SLionel Sambuc# This script tries to follow the "GNU way" w.r.t. the autobits.
4*ebfedea0SLionel Sambuc# This does of course generate a number of irritating files.
5*ebfedea0SLionel Sambuc# Try to get over it (I am getting there myself).
6*ebfedea0SLionel Sambuc
7*ebfedea0SLionel Sambuc# This should generate any missing crud, and then run autoconf which should turn
8*ebfedea0SLionel Sambuc# configure.in into a "./configure" script and "Makefile.am" into a
9*ebfedea0SLionel Sambuc# "Makefile.in". Then running "./configure" should turn "Makefile.in" into
10*ebfedea0SLionel Sambuc# "Makefile" and should generate the config.h containing your systems various
11*ebfedea0SLionel Sambuc# settings. I know ... what a hassle ...
12*ebfedea0SLionel Sambuc
13*ebfedea0SLionel Sambuc# Also, sometimes these autobits things generate bizarre output (looking like
14*ebfedea0SLionel Sambuc# errors). So I direct everything "elsewhere" ...
15*ebfedea0SLionel Sambuc
16*ebfedea0SLionel Sambuc(aclocal
17*ebfedea0SLionel Sambucautoheader
18*ebfedea0SLionel Sambuclibtoolize --copy --force
19*ebfedea0SLionel Sambucautomake --foreign --add-missing --copy
20*ebfedea0SLionel Sambucautoconf) 1> /dev/null 2>&1
21*ebfedea0SLionel Sambuc
22*ebfedea0SLionel Sambuc# Move the "no-autotools" Makefile out of the way
23*ebfedea0SLionel Sambucif test ! -f Makefile.plain; then
24*ebfedea0SLionel Sambuc	mv Makefile Makefile.plain
25*ebfedea0SLionel Sambucfi
26