VirtualBox

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

最後變更 在這個檔案從70563是 65950,由 vboxsync 提交於 8 年 前

libxml 2.9.4: fix export

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:executable 設為 *
檔案大小: 1.7 KB
 
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
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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