]> git.saurik.com Git - wxWidgets.git/blame_incremental - wx-config.in
Had to #ifdef out wxGetFullHostName for Cygwin b20
[wxWidgets.git] / wx-config.in
... / ...
CommitLineData
1#!/bin/sh
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5exec_prefix_set=no
6CC="@CC@"
7CXX="@CXX@"
8LD="@SHARED_LD@"
9
10usage="\
11Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--cc] [--cxx] [--ld]"
12
13if test $# -eq 0; then
14 echo "${usage}" 1>&2
15 exit 1
16fi
17
18while test $# -gt 0; do
19 case "$1" in
20 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
21 *) optarg= ;;
22 esac
23
24 case $1 in
25 --prefix=*)
26 prefix=$optarg
27 if test $exec_prefix_set = no ; then
28 exec_prefix=$optarg
29 fi
30 ;;
31 --prefix)
32 echo $prefix
33 ;;
34 --exec-prefix=*)
35 exec_prefix=$optarg
36 exec_prefix_set=yes
37 ;;
38 --exec-prefix)
39 echo $exec_prefix
40 ;;
41 --version)
42 echo @WX_MAJOR_VERSION_NUMBER@.@WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
43 ;;
44 --cflags)
45 if test @includedir@ != /usr/include ; then
46 if test @includedir@ != /usr/include/c++ ; then
47 includes=-I@includedir@
48 fi
49 fi
50 includes="$includes -I@libdir@/wx/include"
51 echo $includes @CODE_GEN_FLAGS@ @WXDEBUG_DEFINE@ @TOOLKIT_DEF@ @TOOLKIT_INCLUDE@
52 ;;
53 --libs)
54 if test @libdir@ != /usr/lib ; then
55 libs="-L@libdir@"
56 fi
57 echo $libs -l@WX_LIBRARY@ @EXTRA_LIBS@
58 ;;
59 --cc)
60 echo $CC
61 ;;
62 --cxx)
63 echo $CXX
64 ;;
65 --ld)
66 echo $LD
67 ;;
68 *)
69 echo "${usage}" 1>&2
70 exit 1
71 ;;
72 esac
73 shift
74done
75