comparison mupdf-source/thirdparty/lcms2/autogen.sh @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 DIE=0
8 ACLOCAL_FLAGS="-I m4"
9
10 if [ "$1" = "--distclean" ];
11 then
12 make distclean
13 rm configure config.guess config.sub depcomp install-sh missing
14 rm aclocal.m4 compile ltmain.sh m4/libtool.m4 m4/ltoptions.m4
15 rm m4/ltsugar.m4 m4/lt~obsolete.m4 m4/ltversion.m4
16 echo done cleaning!
17 exit 0
18 fi
19
20 (test -f $srcdir/configure.ac) || {
21 echo -n "**Error**: Directory $srcdir does not look like the"
22 echo " top-level package directory"
23 exit 1
24 }
25
26 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
27 echo
28 echo "**Error**: You must have autoconf installed."
29 echo "Download the appropriate package for your distribution,"
30 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
31 DIE=1
32 }
33
34 (grep "^LT_INIT" $srcdir/configure.ac >/dev/null) && {
35 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
36 echo
37 echo "**Error**: You must have libtool installed."
38 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
39 DIE=1
40 }
41 }
42
43 (automake --version) < /dev/null > /dev/null 2>&1 || {
44 echo
45 echo "**Error**: You must have automake installed."
46 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
47 DIE=1
48 NO_AUTOMAKE=yes
49 }
50
51 # if no automake, don't bother testing for aclocal
52 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
53 echo
54 echo "**Error**: Missing aclocal. The version of automake"
55 echo "installed doesn't appear recent enough."
56 echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
57 DIE=1
58 }
59
60 if test "$DIE" -eq 1; then
61 exit 1
62 fi
63
64 if test -z "$*"; then
65 echo "**Warning**: I am going to run configure with no arguments."
66 echo "If you wish to pass any to it, please specify them on the"
67 echo $0 " command line."
68 echo
69 fi
70
71 case $CC in
72 xlc )
73 am_opt=--include-deps;;
74 esac
75
76 aclocalinclude="$ACLOCAL_FLAGS"
77
78 if grep "^LT_INIT" configure.ac >/dev/null; then
79 if test -z "$NO_LIBTOOLIZE" ; then
80 echo "Running libtoolize..."
81 libtoolize --force --copy
82 fi
83 fi
84 echo "Running aclocal $aclocalinclude ..."
85 aclocal $aclocalinclude
86 if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
87 echo "Running autoheader..."
88 autoheader
89 fi
90 echo "Running automake --add-missing -copy --gnu -Wno-portability $am_opt ..."
91 automake --add-missing --copy --gnu -Wno-portability $am_opt
92 echo "Running autoconf ..."
93 autoconf
94
95 conf_flags="--enable-maintainer-mode"
96
97 if test x$NOCONFIGURE = x; then
98 echo "Running $srcdir/configure $conf_flags $@ ..."
99 $srcdir/configure $conf_flags "$@" \
100 && echo "Now type make to compile." || exit 1
101 else
102 echo "Skipping configure process."
103 fi