VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.14/autogen.sh@ 103285

最後變更 在這個檔案從103285是 95312,由 vboxsync 提交於 2 年 前

libs/{curl,libxml2}: OSE export fixes, bugref:8515

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:executable 設為 *
檔案大小: 2.3 KB
 
1#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3
4srcdir=`dirname $0`
5test -z "$srcdir" && srcdir=.
6
7THEDIR=`pwd`
8cd $srcdir
9DIE=0
10
11(autoconf --version) < /dev/null > /dev/null 2>&1 || {
12 echo
13 echo "You must have autoconf installed to compile libxml."
14 echo "Download the appropriate package for your distribution,"
15 echo "or see http://www.gnu.org/software/autoconf"
16 DIE=1
17}
18
19(libtoolize --version) < /dev/null > /dev/null 2>&1 ||
20(glibtoolize --version) < /dev/null > /dev/null 2>&1 || {
21 echo
22 echo "You must have libtool installed to compile libxml."
23 echo "Download the appropriate package for your distribution,"
24 echo "or see http://www.gnu.org/software/libtool"
25 DIE=1
26}
27
28(automake --version) < /dev/null > /dev/null 2>&1 || {
29 echo
30 DIE=1
31 echo "You must have automake installed to compile libxml."
32 echo "Download the appropriate package for your distribution,"
33 echo "or see http://www.gnu.org/software/automake"
34}
35
36if test "$DIE" -eq 1; then
37 exit 1
38fi
39
40test -f entities.c || {
41 echo "You must run this script in the top-level libxml directory"
42 exit 1
43}
44
45EXTRA_ARGS=
46if test "x$1" = "x--system"; then
47 shift
48 prefix=/usr
49 libdir=$prefix/lib
50 sysconfdir=/etc
51 localstatedir=/var
52 if [ -d /usr/lib64 ]; then
53 libdir=$prefix/lib64
54 fi
55 EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
56 echo "Running ./configure with $EXTRA_ARGS $@"
57else
58 if test -z "$NOCONFIGURE" && test -z "$*"; then
59 echo "I am going to run ./configure with no arguments - if you wish "
60 echo "to pass any to it, please specify them on the $0 command line."
61 fi
62fi
63
64if [ ! -d $srcdir/m4 ]; then
65 mkdir $srcdir/m4
66fi
67
68# Replaced by autoreconf below
69autoreconf -if -Wall
70
71if ! grep -q pkg.m4 aclocal.m4; then
72 cat <<EOF
73
74Couldn't find pkg.m4 from pkg-config. Install the appropriate package for
75your distribution or set ACLOCAL_PATH to the directory containing pkg.m4.
76EOF
77 exit 1
78fi
79
80cd $THEDIR
81
82if test x$OBJ_DIR != x; then
83 mkdir -p "$OBJ_DIR"
84 cd "$OBJ_DIR"
85fi
86
87if test -z "$NOCONFIGURE"; then
88 $srcdir/configure $EXTRA_ARGS "$@"
89 if test "$?" -ne 0; then
90 echo
91 echo "Configure script failed, check config.log for more info."
92 else
93 echo
94 echo "Now type 'make' to compile libxml2."
95 fi
96fi
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette