Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/satellite4/satellite4-config.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Mar 31 08:15:05 2004 UTC (20 years ago) by orrisroot
Branch: MAIN
Branch point for: satellite4
Initial revision

1 #!/bin/sh
2 # $Id: satellite4-config.in,v 1.1 2003/08/23 11:18:39 okumura Exp $
3
4 # @configure_input@
5 #
6
7 prefix=@prefix@
8 exec_prefix=@exec_prefix@
9 exec_prefix_set=no
10 data_dir=@datadir@/@PACKAGE_NAME@
11
12 project=@PACKAGE_NAME@
13 version=@PACKAGE_VERSION@
14 satellite4_include_dir=@sl4includedir@
15 satellite4_lib_dir=@sl4libdir@
16 satellite4_libexec_dir=@sl4libexecdir@
17 satellite4_doc_dir=@sl4docdir@
18 satellite4_share_dir=@sl4sharedir@
19 satellite4_examples_dir=@examplesdir@
20 satellite4_module_dir=@moduledir@
21 satellite4_systemrc_dir=@systemrcdir@
22 pthread_cflags="@PTHREAD_CFLAGS@"
23 pthread_libs="@PTHREAD_LIBS@"
24
25 usage()
26 {
27 cat <<EOF
28 Usage: satellite-config [OPTIONS]
29 Options:
30 [--prefix[=DIR]]
31 [--exec-prefix[=DIR]]
32 [--version]
33 [--libs]
34 [--cflags]
35 [--include-dir]
36 [--lib-dir]
37 [--module-dir]
38 EOF
39 exit $1
40 }
41
42 if test $# -eq 0; then
43 usage 1 1>&2
44 fi
45
46 lib_satellite=yes
47 lib_pthread=yes
48
49 while test $# -gt 0; do
50 case "$1" in
51 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
52 *) optarg= ;;
53 esac
54
55 case $1 in
56 --prefix=*)
57 prefix=$optarg
58 if test $exec_prefix_set = no ; then
59 exec_prefix=$optarg
60 fi
61 ;;
62 --prefix)
63 echo_prefix=yes
64 ;;
65 --exec-prefix=*)
66 exec_prefix=$optarg
67 exec_prefix_set=yes
68 ;;
69 --exec-prefix)
70 echo_exec_prefix=yes
71 ;;
72 --version)
73 echo $version
74 exit 0
75 ;;
76 --cflags)
77 echo_cflags=yes
78 ;;
79 --libs)
80 echo_libs=yes
81 ;;
82 --include-dir)
83 echo_include_dir=yes
84 ;;
85 --lib-dir)
86 echo_lib_dir=yes
87 ;;
88 --module-dir)
89 echo_module_dir=yes
90 ;;
91 *)
92 usage 1 1>&2
93 ;;
94 esac
95 shift
96 done
97
98 if test "$echo_prefix" = "yes"; then
99 echo $prefix
100 fi
101 if test "$echo_exec_prefix" = "yes"; then
102 echo $exec_prefix
103 fi
104 if test "$echo_cflags" = "yes"; then
105 pthcf=""
106 if test "$lib_pthread" = "yes"; then
107 pthcf=$pthread_cflags
108 fi
109 echo -I$satellite4_include_dir $pthcf
110 fi
111 if test "$echo_libs" = "yes"; then
112 libsp=""
113 if test "$lib_satellite" = "yes"; then
114 libsp="-lsatellite"
115 fi
116 libpth=""
117 if test "$lib_pthread" = "yes"; then
118 libpth=$pthread_libs
119 fi
120 echo -L$satellite4_lib_dir $libsp $libpth
121 fi
122 if test "$echo_include_dir" = "yes"; then
123 echo $satellite4_include_dir
124 fi
125 if test "$echo_lib_dir" = "yes"; then
126 echo $satellite4_lib_dir
127 fi
128 if test "$echo_module_dir" = "yes"; then
129 echo $satellite4_module_dir
130 fi

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26