/[packages]/cauldron/yaz/current/SOURCES/yaz-config.diff
ViewVC logotype

Contents of /cauldron/yaz/current/SOURCES/yaz-config.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48368 - (show annotations) (download)
Mon Feb 7 03:13:36 2011 UTC (10 years, 7 months ago) by spuhler
File size: 3833 byte(s)
imported package yaz
1 --- yaz-config.in 2009-05-13 09:19:32.000000000 +0200
2 +++ yaz-config.in.oden 2009-06-10 17:46:59.000000000 +0200
3 @@ -2,23 +2,7 @@
4 # This file is part of the YAZ toolkit.
5 # Copyright (C) 1995-2008 Index Data
6
7 -yazprefix=@prefix@
8 -yaz_echo_cflags=no
9 -yaz_echo_libs=no
10 yaz_echo_help=no
11 -yaz_echo_source=yes
12 -yaz_echo_lalibs=no
13 -yaz_echo_comp=no
14 -yaz_src_root=@YAZ_SRC_ROOT@
15 -yaz_build_root=@YAZ_BUILD_ROOT@
16 -PTHREAD_LIBS="@PTHREAD_LIBS@"
17 -PTHREAD_CFLAGS="@PTHREAD_CFLAGS@"
18 -ICU_LIBS="@ICU_LIBS@"
19 -ICU_CPPFLAGS="@ICU_CPPFLAGS@"
20 -SSL_LIBS="@SSL_LIBS@"
21 -LIBS="@LIBS@"
22 -YAZVERSION=@VERSION@
23 -VERSION_SHA1=@VERSION_SHA1@
24
25 usage()
26 {
27 @@ -44,47 +28,29 @@
28 esac
29
30 case $1 in
31 - --prefix=*)
32 - yazprefix=$optarg
33 - ;;
34 --prefix)
35 - echo $yazprefix
36 + echo "@prefix@"
37 exit 0
38 ;;
39 -V)
40 - echo "$YAZVERSION $VERSION_SHA1"
41 + echo "@VERSION_SHA1@"
42 exit 0
43 ;;
44 --version)
45 - echo $YAZVERSION
46 + echo "@VERSION@"
47 exit 0
48 ;;
49 --cflags)
50 - yaz_echo_cflags=yes
51 + echo "-I@includedir@ @YAZ_CONFIG_CFLAGS@ @PTHREAD_CFLAGS@ @ICU_CPPFLAGS@"
52 ;;
53 --libs)
54 - yaz_echo_libs=yes
55 + echo "-L@libdir@ -lyaz @SSL_LIBS@ @LIBS@ @ICU_LIBS@"
56 ;;
57 --lalibs)
58 - yaz_echo_lalibs=yes
59 + echo "@libdir@/libyaz.la @SSL_LIBS@ @LIBS@ @ICU_LIBS@"
60 ;;
61 --comp)
62 - yaz_echo_comp=yes
63 - ;;
64 - threads)
65 - lib_thread=yes
66 - ;;
67 - icu)
68 - if test "$ICU_CPPFLAGS"; then
69 - lib_icu=yes
70 - fi
71 - ;;
72 - server)
73 - lib_thread=yes
74 - lib_server=yes
75 - ;;
76 - static)
77 - lib_static=yes
78 + echo "@bindir@/yaz-asncomp"
79 ;;
80 -*)
81 yaz_echo_help=yes
82 @@ -92,86 +58,9 @@
83 esac
84 shift
85 done
86 -
87 -lyaz="-lyaz"
88 -if test "$lib_server" = "yes"; then
89 - lyaz="-lyaz_server $lyaz"
90 -fi
91 -
92 -if test "$lib_icu" = "yes"; then
93 - lyaz="-lyaz_icu $lyaz"
94 -fi
95 -
96 -YAZINC="@YAZ_CONFIG_CFLAGS@"
97 -
98 -if test "$yaz_echo_source" = "yes"; then
99 - YAZBIN=${yaz_build_root}/bin
100 -
101 - if test "$lib_static" = "yes"; then
102 - YAZLIB="${yaz_build_root}/src/.libs/libyaz.a"
103 - if test "$lib_server" = "yes"; then
104 - YAZLIB="${yaz_build_root}/src/.libs/libyaz_server.a $YAZLIB"
105 - fi
106 - if test "$lib_icu" = "yes"; then
107 - YAZLIB="${yaz_build_root}/src/.libs/libyaz_icu.a $YAZLIB"
108 - fi
109 - else
110 - YAZLIB="-L${yaz_build_root}/src/.libs $lyaz"
111 - fi
112 - YAZLIB="$YAZLIB ${SSL_LIBS} $LIBS"
113 -
114 - YAZLALIB="${yaz_build_root}/src/libyaz.la"
115 - if test "$lib_server" = "yes"; then
116 - YAZLALIB="${yaz_build_root}/src/libyaz_server.la $YAZLALIB"
117 - fi
118 - if test "$lib_icu" = "yes"; then
119 - YAZLALIB="${yaz_build_root}/src/libyaz_icu.la $YAZLALIB"
120 - fi
121 - YAZLALIB="$YAZLALIB $LIBS"
122 -
123 - YAZINC="-I${yaz_src_root}/include $YAZINC"
124 - YAZCOMP=${yaz_src_root}/util/yaz-asncomp
125 -else
126 - YAZBIN=${yazprefix}/bin
127 - YAZCOMP=${yazprefix}/bin/yaz-asncomp
128 -
129 - if test "$yazprefix" != "/usr"; then
130 - YAZLIB="-L$yazprefix/lib"
131 - fi
132 - YAZLIB="$YAZLIB $lyaz ${SSL_LIBS} $LIBS"
133 - YAZLALIB=$YAZLIB
134 - if test "$yazprefix" != "/usr"; then
135 - YAZINC="-I$yazprefix/include $YAZINC"
136 - fi
137 -fi
138 -
139 -if test "$lib_thread" = "yes"; then
140 - YAZINC="$PTHREAD_CFLAGS $YAZINC"
141 - YAZLIB="$YAZLIB $PTHREAD_LIBS"
142 - YAZLALIB="$YAZLALIB $PTHREAD_LIBS"
143 -fi
144 -
145 -if test "$lib_icu" = "yes"; then
146 - YAZINC="$YAZINC $ICU_CPPFLAGS"
147 - YAZLIB="$YAZLIB $ICU_LIBS"
148 - YAZLALIB="$YAZLALIB $ICU_LIBS"
149 -fi
150 -
151 if test "$yaz_echo_help" = "yes"; then
152 usage 1 1>&2
153 fi
154 -if test "$yaz_echo_cflags" = "yes"; then
155 - echo $YAZINC
156 -fi
157 -if test "$yaz_echo_libs" = "yes"; then
158 - echo $YAZLIB
159 -fi
160 -if test "$yaz_echo_lalibs" = "yes"; then
161 - echo $YAZLALIB
162 -fi
163 -if test "$yaz_echo_comp" = "yes"; then
164 - echo $YAZCOMP
165 -fi
166 # Local Variables:
167 # mode:shell-script
168 # sh-indentation: 2

  ViewVC Help
Powered by ViewVC 1.1.28