VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.4/xml2-config.in@ 93943

Last change on this file since 93943 was 65950, checked in by vboxsync, 8 years ago

libxml 2.9.4: fix export

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#! /bin/sh
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5includedir=@includedir@
6libdir=@libdir@
7
8usage()
9{
10 cat <<EOF
11Usage: xml2-config [OPTION]
12
13Known values for OPTION are:
14
15 --prefix=DIR change libxml prefix [default $prefix]
16 --exec-prefix=DIR change libxml exec prefix [default $exec_prefix]
17 --libs print library linking information
18 add --static to print static library linking
19 information
20 --cflags print pre-processor and compiler flags
21 --modules module support enabled
22 --help display this help and exit
23 --version output version information
24EOF
25
26 exit $1
27}
28
29if test $# -eq 0; then
30 usage 1
31fi
32
33cflags=false
34libs=false
35
36while test $# -gt 0; do
37 case "$1" in
38 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
39 *) optarg= ;;
40 esac
41
42 case "$1" in
43 --prefix=*)
44 prefix=$optarg
45 includedir=$prefix/include
46 libdir=$prefix/lib
47 ;;
48
49 --prefix)
50 echo $prefix
51 ;;
52
53 --exec-prefix=*)
54 exec_prefix=$optarg
55 libdir=$exec_prefix/lib
56 ;;
57
58 --exec-prefix)
59 echo $exec_prefix
60 ;;
61
62 --version)
63 echo @VERSION@
64 exit 0
65 ;;
66
67 --help)
68 usage 0
69 ;;
70
71 --cflags)
72 echo @XML_INCLUDEDIR@ @XML_CFLAGS@
73 ;;
74
75 --libtool-libs)
76 if [ -r ${libdir}/@XML_LIBTOOLLIBS@ ]
77 then
78 echo ${libdir}/@XML_LIBTOOLLIBS@
79 fi
80 ;;
81
82 --modules)
83 echo @WITH_MODULES@
84 ;;
85
86 --libs)
87 LIBS="@XML_LIBS@ @WIN32_EXTRA_LIBADD@"
88 if [ "$2" = "--static" ]
89 then
90 shift
91 LIBS="${LIBS} @Z_LIBS@ @BASE_THREAD_LIBS@@THREAD_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@"
92 fi
93 echo ${LIBS}
94 ;;
95
96 *)
97 usage
98 exit 1
99 ;;
100 esac
101 shift
102done
103
104exit 0
Note: See TracBrowser for help on using the repository browser.

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