1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
16 | (and sometimes confusing) to the casual installer" |
---|
17 | ac_help="$ac_help |
---|
18 | --with-gnome-includes Specify location of GNOME headers" |
---|
19 | ac_help="$ac_help |
---|
20 | --with-gnome-libs Specify location of GNOME libs" |
---|
21 | ac_help="$ac_help |
---|
22 | --with-gnome Specify prefix for GNOME files" |
---|
23 | ac_help="$ac_help |
---|
24 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
---|
25 | ac_help="$ac_help |
---|
26 | --enable-static[=PKGS] build static libraries [default=yes]" |
---|
27 | ac_help="$ac_help |
---|
28 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
---|
29 | ac_help="$ac_help |
---|
30 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
---|
31 | ac_help="$ac_help |
---|
32 | --disable-libtool-lock avoid locking (might break parallel builds)" |
---|
33 | ac_help="$ac_help |
---|
34 | --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings." |
---|
35 | ac_help="$ac_help |
---|
36 | --enable-iso-c Try to warn if code is not ISO C " |
---|
37 | ac_help="$ac_help |
---|
38 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
---|
39 | ac_help="$ac_help |
---|
40 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
---|
41 | ac_help="$ac_help |
---|
42 | --disable-gtktest Do not try to compile and run a test GTK program" |
---|
43 | ac_help="$ac_help |
---|
44 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
---|
45 | ac_help="$ac_help |
---|
46 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
---|
47 | ac_help="$ac_help |
---|
48 | --disable-gtktest Do not try to compile and run a test GTK program" |
---|
49 | ac_help="$ac_help |
---|
50 | --disable-nls do not use Native Language Support" |
---|
51 | ac_help="$ac_help |
---|
52 | --with-catgets use catgets functions if available" |
---|
53 | ac_help="$ac_help |
---|
54 | --with-window-manager=NAME |
---|
55 | Specify default window manager" |
---|
56 | ac_help="$ac_help |
---|
57 | --with-gtkhtml=PREFIX Specify gtkhtml prefix" |
---|
58 | ac_help="$ac_help |
---|
59 | --with-gnome-print=PREFIX Specify gnome-print prefix" |
---|
60 | ac_help="$ac_help |
---|
61 | --enable-gtkhtml-help Use GtkHTML for the help browser" |
---|
62 | ac_help="$ac_help |
---|
63 | --with-kde-datadir=DIR Location of KDE data" |
---|
64 | ac_help="$ac_help |
---|
65 | --with-kde-docdir=DIR Location of KDE documentation" |
---|
66 | ac_help="$ac_help |
---|
67 | --enable-gtk-doc Use gtk-doc to build documentation [default=auto]" |
---|
68 | |
---|
69 | # Initialize some variables set by options. |
---|
70 | # The variables have the same names as the options, with |
---|
71 | # dashes changed to underlines. |
---|
72 | build=NONE |
---|
73 | cache_file=./config.cache |
---|
74 | exec_prefix=NONE |
---|
75 | host=NONE |
---|
76 | no_create= |
---|
77 | nonopt=NONE |
---|
78 | no_recursion= |
---|
79 | prefix=NONE |
---|
80 | program_prefix=NONE |
---|
81 | program_suffix=NONE |
---|
82 | program_transform_name=s,x,x, |
---|
83 | silent= |
---|
84 | site= |
---|
85 | srcdir= |
---|
86 | target=NONE |
---|
87 | verbose= |
---|
88 | x_includes=NONE |
---|
89 | x_libraries=NONE |
---|
90 | bindir='${exec_prefix}/bin' |
---|
91 | sbindir='${exec_prefix}/sbin' |
---|
92 | libexecdir='${exec_prefix}/libexec' |
---|
93 | datadir='${prefix}/share' |
---|
94 | sysconfdir='${prefix}/etc' |
---|
95 | sharedstatedir='${prefix}/com' |
---|
96 | localstatedir='${prefix}/var' |
---|
97 | libdir='${exec_prefix}/lib' |
---|
98 | includedir='${prefix}/include' |
---|
99 | oldincludedir='/usr/include' |
---|
100 | infodir='${prefix}/info' |
---|
101 | mandir='${prefix}/man' |
---|
102 | |
---|
103 | # Initialize some other variables. |
---|
104 | subdirs= |
---|
105 | MFLAGS= MAKEFLAGS= |
---|
106 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
107 | # Maximum number of lines to put in a shell here document. |
---|
108 | ac_max_here_lines=12 |
---|
109 | |
---|
110 | ac_prev= |
---|
111 | for ac_option |
---|
112 | do |
---|
113 | |
---|
114 | # If the previous option needs an argument, assign it. |
---|
115 | if test -n "$ac_prev"; then |
---|
116 | eval "$ac_prev=\$ac_option" |
---|
117 | ac_prev= |
---|
118 | continue |
---|
119 | fi |
---|
120 | |
---|
121 | case "$ac_option" in |
---|
122 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
123 | *) ac_optarg= ;; |
---|
124 | esac |
---|
125 | |
---|
126 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
127 | |
---|
128 | case "$ac_option" in |
---|
129 | |
---|
130 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
131 | ac_prev=bindir ;; |
---|
132 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
133 | bindir="$ac_optarg" ;; |
---|
134 | |
---|
135 | -build | --build | --buil | --bui | --bu) |
---|
136 | ac_prev=build ;; |
---|
137 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
138 | build="$ac_optarg" ;; |
---|
139 | |
---|
140 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
141 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
142 | ac_prev=cache_file ;; |
---|
143 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
144 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
145 | cache_file="$ac_optarg" ;; |
---|
146 | |
---|
147 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
148 | ac_prev=datadir ;; |
---|
149 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
150 | | --da=*) |
---|
151 | datadir="$ac_optarg" ;; |
---|
152 | |
---|
153 | -disable-* | --disable-*) |
---|
154 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
155 | # Reject names that are not valid shell variable names. |
---|
156 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
157 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
158 | fi |
---|
159 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
160 | eval "enable_${ac_feature}=no" ;; |
---|
161 | |
---|
162 | -enable-* | --enable-*) |
---|
163 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
164 | # Reject names that are not valid shell variable names. |
---|
165 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
166 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
167 | fi |
---|
168 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
169 | case "$ac_option" in |
---|
170 | *=*) ;; |
---|
171 | *) ac_optarg=yes ;; |
---|
172 | esac |
---|
173 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
174 | |
---|
175 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
176 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
177 | | --exec | --exe | --ex) |
---|
178 | ac_prev=exec_prefix ;; |
---|
179 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
180 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
181 | | --exec=* | --exe=* | --ex=*) |
---|
182 | exec_prefix="$ac_optarg" ;; |
---|
183 | |
---|
184 | -gas | --gas | --ga | --g) |
---|
185 | # Obsolete; use --with-gas. |
---|
186 | with_gas=yes ;; |
---|
187 | |
---|
188 | -help | --help | --hel | --he) |
---|
189 | # Omit some internal or obsolete options to make the list less imposing. |
---|
190 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
191 | cat << EOF |
---|
192 | Usage: configure [options] [host] |
---|
193 | Options: [defaults in brackets after descriptions] |
---|
194 | Configuration: |
---|
195 | --cache-file=FILE cache test results in FILE |
---|
196 | --help print this message |
---|
197 | --no-create do not create output files |
---|
198 | --quiet, --silent do not print \`checking...' messages |
---|
199 | --version print the version of autoconf that created configure |
---|
200 | Directory and file names: |
---|
201 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
202 | [$ac_default_prefix] |
---|
203 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
204 | [same as prefix] |
---|
205 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
206 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
207 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
208 | --datadir=DIR read-only architecture-independent data in DIR |
---|
209 | [PREFIX/share] |
---|
210 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
211 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
212 | [PREFIX/com] |
---|
213 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
214 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
215 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
216 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
217 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
218 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
219 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
220 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
221 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
222 | --program-transform-name=PROGRAM |
---|
223 | run sed PROGRAM on installed program names |
---|
224 | EOF |
---|
225 | cat << EOF |
---|
226 | Host type: |
---|
227 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
228 | --host=HOST configure for HOST [guessed] |
---|
229 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
230 | Features and packages: |
---|
231 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
232 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
233 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
234 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
235 | --x-includes=DIR X include files are in DIR |
---|
236 | --x-libraries=DIR X library files are in DIR |
---|
237 | EOF |
---|
238 | if test -n "$ac_help"; then |
---|
239 | echo "--enable and --with options recognized:$ac_help" |
---|
240 | fi |
---|
241 | exit 0 ;; |
---|
242 | |
---|
243 | -host | --host | --hos | --ho) |
---|
244 | ac_prev=host ;; |
---|
245 | -host=* | --host=* | --hos=* | --ho=*) |
---|
246 | host="$ac_optarg" ;; |
---|
247 | |
---|
248 | -includedir | --includedir | --includedi | --included | --include \ |
---|
249 | | --includ | --inclu | --incl | --inc) |
---|
250 | ac_prev=includedir ;; |
---|
251 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
252 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
253 | includedir="$ac_optarg" ;; |
---|
254 | |
---|
255 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
256 | ac_prev=infodir ;; |
---|
257 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
258 | infodir="$ac_optarg" ;; |
---|
259 | |
---|
260 | -libdir | --libdir | --libdi | --libd) |
---|
261 | ac_prev=libdir ;; |
---|
262 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
263 | libdir="$ac_optarg" ;; |
---|
264 | |
---|
265 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
266 | | --libexe | --libex | --libe) |
---|
267 | ac_prev=libexecdir ;; |
---|
268 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
269 | | --libexe=* | --libex=* | --libe=*) |
---|
270 | libexecdir="$ac_optarg" ;; |
---|
271 | |
---|
272 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
273 | | --localstate | --localstat | --localsta | --localst \ |
---|
274 | | --locals | --local | --loca | --loc | --lo) |
---|
275 | ac_prev=localstatedir ;; |
---|
276 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
277 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
278 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
279 | localstatedir="$ac_optarg" ;; |
---|
280 | |
---|
281 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
282 | ac_prev=mandir ;; |
---|
283 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
284 | mandir="$ac_optarg" ;; |
---|
285 | |
---|
286 | -nfp | --nfp | --nf) |
---|
287 | # Obsolete; use --without-fp. |
---|
288 | with_fp=no ;; |
---|
289 | |
---|
290 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
291 | | --no-cr | --no-c) |
---|
292 | no_create=yes ;; |
---|
293 | |
---|
294 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
295 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
296 | no_recursion=yes ;; |
---|
297 | |
---|
298 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
299 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
300 | | --oldin | --oldi | --old | --ol | --o) |
---|
301 | ac_prev=oldincludedir ;; |
---|
302 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
303 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
304 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
305 | oldincludedir="$ac_optarg" ;; |
---|
306 | |
---|
307 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
308 | ac_prev=prefix ;; |
---|
309 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
310 | prefix="$ac_optarg" ;; |
---|
311 | |
---|
312 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
313 | | --program-pre | --program-pr | --program-p) |
---|
314 | ac_prev=program_prefix ;; |
---|
315 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
316 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
317 | program_prefix="$ac_optarg" ;; |
---|
318 | |
---|
319 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
320 | | --program-suf | --program-su | --program-s) |
---|
321 | ac_prev=program_suffix ;; |
---|
322 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
323 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
324 | program_suffix="$ac_optarg" ;; |
---|
325 | |
---|
326 | -program-transform-name | --program-transform-name \ |
---|
327 | | --program-transform-nam | --program-transform-na \ |
---|
328 | | --program-transform-n | --program-transform- \ |
---|
329 | | --program-transform | --program-transfor \ |
---|
330 | | --program-transfo | --program-transf \ |
---|
331 | | --program-trans | --program-tran \ |
---|
332 | | --progr-tra | --program-tr | --program-t) |
---|
333 | ac_prev=program_transform_name ;; |
---|
334 | -program-transform-name=* | --program-transform-name=* \ |
---|
335 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
336 | | --program-transform-n=* | --program-transform-=* \ |
---|
337 | | --program-transform=* | --program-transfor=* \ |
---|
338 | | --program-transfo=* | --program-transf=* \ |
---|
339 | | --program-trans=* | --program-tran=* \ |
---|
340 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
341 | program_transform_name="$ac_optarg" ;; |
---|
342 | |
---|
343 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
344 | | -silent | --silent | --silen | --sile | --sil) |
---|
345 | silent=yes ;; |
---|
346 | |
---|
347 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
348 | ac_prev=sbindir ;; |
---|
349 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
350 | | --sbi=* | --sb=*) |
---|
351 | sbindir="$ac_optarg" ;; |
---|
352 | |
---|
353 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
354 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
355 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
356 | | --sha | --sh) |
---|
357 | ac_prev=sharedstatedir ;; |
---|
358 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
359 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
360 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
361 | | --sha=* | --sh=*) |
---|
362 | sharedstatedir="$ac_optarg" ;; |
---|
363 | |
---|
364 | -site | --site | --sit) |
---|
365 | ac_prev=site ;; |
---|
366 | -site=* | --site=* | --sit=*) |
---|
367 | site="$ac_optarg" ;; |
---|
368 | |
---|
369 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
370 | ac_prev=srcdir ;; |
---|
371 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
372 | srcdir="$ac_optarg" ;; |
---|
373 | |
---|
374 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
375 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
376 | ac_prev=sysconfdir ;; |
---|
377 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
378 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
379 | sysconfdir="$ac_optarg" ;; |
---|
380 | |
---|
381 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
382 | ac_prev=target ;; |
---|
383 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
384 | target="$ac_optarg" ;; |
---|
385 | |
---|
386 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
387 | verbose=yes ;; |
---|
388 | |
---|
389 | -version | --version | --versio | --versi | --vers) |
---|
390 | echo "configure generated by autoconf version 2.13" |
---|
391 | exit 0 ;; |
---|
392 | |
---|
393 | -with-* | --with-*) |
---|
394 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
395 | # Reject names that are not valid shell variable names. |
---|
396 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
397 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
398 | fi |
---|
399 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
400 | case "$ac_option" in |
---|
401 | *=*) ;; |
---|
402 | *) ac_optarg=yes ;; |
---|
403 | esac |
---|
404 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
405 | |
---|
406 | -without-* | --without-*) |
---|
407 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
408 | # Reject names that are not valid shell variable names. |
---|
409 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
410 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
411 | fi |
---|
412 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
413 | eval "with_${ac_package}=no" ;; |
---|
414 | |
---|
415 | --x) |
---|
416 | # Obsolete; use --with-x. |
---|
417 | with_x=yes ;; |
---|
418 | |
---|
419 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
420 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
421 | ac_prev=x_includes ;; |
---|
422 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
423 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
424 | x_includes="$ac_optarg" ;; |
---|
425 | |
---|
426 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
427 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
428 | ac_prev=x_libraries ;; |
---|
429 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
430 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
431 | x_libraries="$ac_optarg" ;; |
---|
432 | |
---|
433 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
434 | ;; |
---|
435 | |
---|
436 | *) |
---|
437 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
438 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
439 | fi |
---|
440 | if test "x$nonopt" != xNONE; then |
---|
441 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
442 | fi |
---|
443 | nonopt="$ac_option" |
---|
444 | ;; |
---|
445 | |
---|
446 | esac |
---|
447 | done |
---|
448 | |
---|
449 | if test -n "$ac_prev"; then |
---|
450 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
451 | fi |
---|
452 | |
---|
453 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
454 | |
---|
455 | # File descriptor usage: |
---|
456 | # 0 standard input |
---|
457 | # 1 file creation |
---|
458 | # 2 errors and warnings |
---|
459 | # 3 some systems may open it to /dev/tty |
---|
460 | # 4 used on the Kubota Titan |
---|
461 | # 6 checking for... messages and results |
---|
462 | # 5 compiler messages saved in config.log |
---|
463 | if test "$silent" = yes; then |
---|
464 | exec 6>/dev/null |
---|
465 | else |
---|
466 | exec 6>&1 |
---|
467 | fi |
---|
468 | exec 5>./config.log |
---|
469 | |
---|
470 | echo "\ |
---|
471 | This file contains any messages produced by compilers while |
---|
472 | running configure, to aid debugging if configure makes a mistake. |
---|
473 | " 1>&5 |
---|
474 | |
---|
475 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
476 | # Also quote any args containing shell metacharacters. |
---|
477 | ac_configure_args= |
---|
478 | for ac_arg |
---|
479 | do |
---|
480 | case "$ac_arg" in |
---|
481 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
482 | | --no-cr | --no-c) ;; |
---|
483 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
484 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
485 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
486 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
487 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
488 | esac |
---|
489 | done |
---|
490 | |
---|
491 | # NLS nuisances. |
---|
492 | # Only set these to C if already set. These must not be set unconditionally |
---|
493 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
494 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
495 | # Non-C LC_CTYPE values break the ctype check. |
---|
496 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
497 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
498 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
499 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
500 | |
---|
501 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
502 | rm -rf conftest* confdefs.h |
---|
503 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
504 | echo > confdefs.h |
---|
505 | |
---|
506 | # A filename unique to this package, relative to the directory that |
---|
507 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
508 | ac_unique_file=panel |
---|
509 | |
---|
510 | # Find the source files, if location was not specified. |
---|
511 | if test -z "$srcdir"; then |
---|
512 | ac_srcdir_defaulted=yes |
---|
513 | # Try the directory containing this script, then its parent. |
---|
514 | ac_prog=$0 |
---|
515 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
516 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
517 | srcdir=$ac_confdir |
---|
518 | if test ! -r $srcdir/$ac_unique_file; then |
---|
519 | srcdir=.. |
---|
520 | fi |
---|
521 | else |
---|
522 | ac_srcdir_defaulted=no |
---|
523 | fi |
---|
524 | if test ! -r $srcdir/$ac_unique_file; then |
---|
525 | if test "$ac_srcdir_defaulted" = yes; then |
---|
526 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
527 | else |
---|
528 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
529 | fi |
---|
530 | fi |
---|
531 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
532 | |
---|
533 | # Prefer explicitly selected file to automatically selected ones. |
---|
534 | if test -z "$CONFIG_SITE"; then |
---|
535 | if test "x$prefix" != xNONE; then |
---|
536 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
537 | else |
---|
538 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
539 | fi |
---|
540 | fi |
---|
541 | for ac_site_file in $CONFIG_SITE; do |
---|
542 | if test -r "$ac_site_file"; then |
---|
543 | echo "loading site script $ac_site_file" |
---|
544 | . "$ac_site_file" |
---|
545 | fi |
---|
546 | done |
---|
547 | |
---|
548 | if test -r "$cache_file"; then |
---|
549 | echo "loading cache $cache_file" |
---|
550 | . $cache_file |
---|
551 | else |
---|
552 | echo "creating cache $cache_file" |
---|
553 | > $cache_file |
---|
554 | fi |
---|
555 | |
---|
556 | ac_ext=c |
---|
557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
558 | ac_cpp='$CPP $CPPFLAGS' |
---|
559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
561 | cross_compiling=$ac_cv_prog_cc_cross |
---|
562 | |
---|
563 | ac_exeext= |
---|
564 | ac_objext=o |
---|
565 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
566 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
567 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
568 | ac_n= ac_c=' |
---|
569 | ' ac_t=' ' |
---|
570 | else |
---|
571 | ac_n=-n ac_c= ac_t= |
---|
572 | fi |
---|
573 | else |
---|
574 | ac_n= ac_c='\c' ac_t= |
---|
575 | fi |
---|
576 | |
---|
577 | |
---|
578 | |
---|
579 | |
---|
580 | |
---|
581 | |
---|
582 | ac_aux_dir= |
---|
583 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
584 | if test -f $ac_dir/install-sh; then |
---|
585 | ac_aux_dir=$ac_dir |
---|
586 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
587 | break |
---|
588 | elif test -f $ac_dir/install.sh; then |
---|
589 | ac_aux_dir=$ac_dir |
---|
590 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
591 | break |
---|
592 | fi |
---|
593 | done |
---|
594 | if test -z "$ac_aux_dir"; then |
---|
595 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
596 | fi |
---|
597 | ac_config_guess=$ac_aux_dir/config.guess |
---|
598 | ac_config_sub=$ac_aux_dir/config.sub |
---|
599 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
600 | |
---|
601 | # Find a good install program. We prefer a C program (faster), |
---|
602 | # so one script is as good as another. But avoid the broken or |
---|
603 | # incompatible versions: |
---|
604 | # SysV /etc/install, /usr/sbin/install |
---|
605 | # SunOS /usr/etc/install |
---|
606 | # IRIX /sbin/install |
---|
607 | # AIX /bin/install |
---|
608 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
609 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
610 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
611 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
612 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
613 | echo "configure:614: checking for a BSD compatible install" >&5 |
---|
614 | if test -z "$INSTALL"; then |
---|
615 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
616 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
617 | else |
---|
618 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
619 | for ac_dir in $PATH; do |
---|
620 | # Account for people who put trailing slashes in PATH elements. |
---|
621 | case "$ac_dir/" in |
---|
622 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
623 | *) |
---|
624 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
625 | # Don't use installbsd from OSF since it installs stuff as root |
---|
626 | # by default. |
---|
627 | for ac_prog in ginstall scoinst install; do |
---|
628 | if test -f $ac_dir/$ac_prog; then |
---|
629 | if test $ac_prog = install && |
---|
630 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
631 | # AIX install. It has an incompatible calling convention. |
---|
632 | : |
---|
633 | else |
---|
634 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
635 | break 2 |
---|
636 | fi |
---|
637 | fi |
---|
638 | done |
---|
639 | ;; |
---|
640 | esac |
---|
641 | done |
---|
642 | IFS="$ac_save_IFS" |
---|
643 | |
---|
644 | fi |
---|
645 | if test "${ac_cv_path_install+set}" = set; then |
---|
646 | INSTALL="$ac_cv_path_install" |
---|
647 | else |
---|
648 | # As a last resort, use the slow shell script. We don't cache a |
---|
649 | # path for INSTALL within a source directory, because that will |
---|
650 | # break other packages using the cache if that directory is |
---|
651 | # removed, or if the path is relative. |
---|
652 | INSTALL="$ac_install_sh" |
---|
653 | fi |
---|
654 | fi |
---|
655 | echo "$ac_t""$INSTALL" 1>&6 |
---|
656 | |
---|
657 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
658 | # It thinks the first close brace ends the variable substitution. |
---|
659 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
660 | |
---|
661 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
662 | |
---|
663 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
664 | |
---|
665 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
666 | echo "configure:667: checking whether build environment is sane" >&5 |
---|
667 | # Just in case |
---|
668 | sleep 1 |
---|
669 | echo timestamp > conftestfile |
---|
670 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
671 | # arguments. Must try -L first in case configure is actually a |
---|
672 | # symlink; some systems play weird games with the mod time of symlinks |
---|
673 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
674 | # directory). |
---|
675 | if ( |
---|
676 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
677 | if test "$*" = "X"; then |
---|
678 | # -L didn't work. |
---|
679 | set X `ls -t $srcdir/configure conftestfile` |
---|
680 | fi |
---|
681 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
682 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
683 | |
---|
684 | # If neither matched, then we have a broken ls. This can happen |
---|
685 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
686 | # broken ls alias from the environment. This has actually |
---|
687 | # happened. Such a system could not be considered "sane". |
---|
688 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
689 | alias in your environment" 1>&2; exit 1; } |
---|
690 | fi |
---|
691 | |
---|
692 | test "$2" = conftestfile |
---|
693 | ) |
---|
694 | then |
---|
695 | # Ok. |
---|
696 | : |
---|
697 | else |
---|
698 | { echo "configure: error: newly created file is older than distributed files! |
---|
699 | Check your system clock" 1>&2; exit 1; } |
---|
700 | fi |
---|
701 | rm -f conftest* |
---|
702 | echo "$ac_t""yes" 1>&6 |
---|
703 | if test "$program_transform_name" = s,x,x,; then |
---|
704 | program_transform_name= |
---|
705 | else |
---|
706 | # Double any \ or $. echo might interpret backslashes. |
---|
707 | cat <<\EOF_SED > conftestsed |
---|
708 | s,\\,\\\\,g; s,\$,$$,g |
---|
709 | EOF_SED |
---|
710 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
711 | rm -f conftestsed |
---|
712 | fi |
---|
713 | test "$program_prefix" != NONE && |
---|
714 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
715 | # Use a double $ so make ignores it. |
---|
716 | test "$program_suffix" != NONE && |
---|
717 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
718 | |
---|
719 | # sed with no file args requires a program. |
---|
720 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
721 | |
---|
722 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
723 | echo "configure:724: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
724 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
725 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
726 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
727 | else |
---|
728 | cat > conftestmake <<\EOF |
---|
729 | all: |
---|
730 | @echo 'ac_maketemp="${MAKE}"' |
---|
731 | EOF |
---|
732 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
733 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
734 | if test -n "$ac_maketemp"; then |
---|
735 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
736 | else |
---|
737 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
738 | fi |
---|
739 | rm -f conftestmake |
---|
740 | fi |
---|
741 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
742 | echo "$ac_t""yes" 1>&6 |
---|
743 | SET_MAKE= |
---|
744 | else |
---|
745 | echo "$ac_t""no" 1>&6 |
---|
746 | SET_MAKE="MAKE=${MAKE-make}" |
---|
747 | fi |
---|
748 | |
---|
749 | |
---|
750 | PACKAGE=gnome-core |
---|
751 | |
---|
752 | VERSION=1.4.0 |
---|
753 | |
---|
754 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
755 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
756 | fi |
---|
757 | cat >> confdefs.h <<EOF |
---|
758 | #define PACKAGE "$PACKAGE" |
---|
759 | EOF |
---|
760 | |
---|
761 | cat >> confdefs.h <<EOF |
---|
762 | #define VERSION "$VERSION" |
---|
763 | EOF |
---|
764 | |
---|
765 | |
---|
766 | |
---|
767 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
768 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
769 | echo "configure:770: checking for working aclocal" >&5 |
---|
770 | # Run test in a subshell; some versions of sh will print an error if |
---|
771 | # an executable is not found, even if stderr is redirected. |
---|
772 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
773 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
774 | ACLOCAL=aclocal |
---|
775 | echo "$ac_t""found" 1>&6 |
---|
776 | else |
---|
777 | ACLOCAL="$missing_dir/missing aclocal" |
---|
778 | echo "$ac_t""missing" 1>&6 |
---|
779 | fi |
---|
780 | |
---|
781 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
782 | echo "configure:783: checking for working autoconf" >&5 |
---|
783 | # Run test in a subshell; some versions of sh will print an error if |
---|
784 | # an executable is not found, even if stderr is redirected. |
---|
785 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
786 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
787 | AUTOCONF=autoconf |
---|
788 | echo "$ac_t""found" 1>&6 |
---|
789 | else |
---|
790 | AUTOCONF="$missing_dir/missing autoconf" |
---|
791 | echo "$ac_t""missing" 1>&6 |
---|
792 | fi |
---|
793 | |
---|
794 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
795 | echo "configure:796: checking for working automake" >&5 |
---|
796 | # Run test in a subshell; some versions of sh will print an error if |
---|
797 | # an executable is not found, even if stderr is redirected. |
---|
798 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
799 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
800 | AUTOMAKE=automake |
---|
801 | echo "$ac_t""found" 1>&6 |
---|
802 | else |
---|
803 | AUTOMAKE="$missing_dir/missing automake" |
---|
804 | echo "$ac_t""missing" 1>&6 |
---|
805 | fi |
---|
806 | |
---|
807 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
808 | echo "configure:809: checking for working autoheader" >&5 |
---|
809 | # Run test in a subshell; some versions of sh will print an error if |
---|
810 | # an executable is not found, even if stderr is redirected. |
---|
811 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
812 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
813 | AUTOHEADER=autoheader |
---|
814 | echo "$ac_t""found" 1>&6 |
---|
815 | else |
---|
816 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
817 | echo "$ac_t""missing" 1>&6 |
---|
818 | fi |
---|
819 | |
---|
820 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
821 | echo "configure:822: checking for working makeinfo" >&5 |
---|
822 | # Run test in a subshell; some versions of sh will print an error if |
---|
823 | # an executable is not found, even if stderr is redirected. |
---|
824 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
825 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
826 | MAKEINFO=makeinfo |
---|
827 | echo "$ac_t""found" 1>&6 |
---|
828 | else |
---|
829 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
830 | echo "$ac_t""missing" 1>&6 |
---|
831 | fi |
---|
832 | |
---|
833 | |
---|
834 | |
---|
835 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
836 | echo "configure:837: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
837 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
838 | if test "${enable_maintainer_mode+set}" = set; then |
---|
839 | enableval="$enable_maintainer_mode" |
---|
840 | USE_MAINTAINER_MODE=$enableval |
---|
841 | else |
---|
842 | USE_MAINTAINER_MODE=no |
---|
843 | fi |
---|
844 | |
---|
845 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
846 | |
---|
847 | |
---|
848 | if test $USE_MAINTAINER_MODE = yes; then |
---|
849 | MAINTAINER_MODE_TRUE= |
---|
850 | MAINTAINER_MODE_FALSE='#' |
---|
851 | else |
---|
852 | MAINTAINER_MODE_TRUE='#' |
---|
853 | MAINTAINER_MODE_FALSE= |
---|
854 | fi |
---|
855 | MAINT=$MAINTAINER_MODE_TRUE |
---|
856 | |
---|
857 | |
---|
858 | |
---|
859 | |
---|
860 | |
---|
861 | |
---|
862 | if test x = y; then |
---|
863 | INSIDE_GNOME_COMMON_TRUE= |
---|
864 | INSIDE_GNOME_COMMON_FALSE='#' |
---|
865 | else |
---|
866 | INSIDE_GNOME_COMMON_TRUE='#' |
---|
867 | INSIDE_GNOME_COMMON_FALSE= |
---|
868 | fi |
---|
869 | |
---|
870 | test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" |
---|
871 | |
---|
872 | for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done |
---|
873 | |
---|
874 | |
---|
875 | |
---|
876 | |
---|
877 | XML_I18N_MERGE_OAF_RULE='\%.oaf : \%.oaf.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
878 | $(top_builddir)/xml-i18n-merge -o $(top_srcdir)/po $< $*.oaf' |
---|
879 | |
---|
880 | XML_I18N_MERGE_KEYS_RULE='\%.keys : \%.keys.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
881 | $(top_builddir)/xml-i18n-merge -k $(top_srcdir)/po $< $*.keys' |
---|
882 | |
---|
883 | XML_I18N_MERGE_DESKTOP_RULE='\%.desktop : \%.desktop.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
884 | $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.desktop' |
---|
885 | |
---|
886 | XML_I18N_MERGE_DIRECTORY_RULE='\%.directory : \%.directory.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
887 | $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.directory' |
---|
888 | |
---|
889 | # Always use our own xml-i18n-tools. |
---|
890 | XML_I18N_EXTRACT='$(top_builddir)/xml-i18n-extract' |
---|
891 | |
---|
892 | XML_I18N_MERGE='$(top_builddir)/xml-i18n-merge' |
---|
893 | |
---|
894 | XML_I18N_UPDATE='$(top_builddir)/xml-i18n-update' |
---|
895 | |
---|
896 | XML_I18N_MERGE_SOUNDLIST_RULE='\%.soundlist : \%.soundlist.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
897 | $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.soundlist' |
---|
898 | |
---|
899 | # Extract the first word of "perl", so it can be a program name with args. |
---|
900 | set dummy perl; ac_word=$2 |
---|
901 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
902 | echo "configure:903: checking for $ac_word" >&5 |
---|
903 | if eval "test \"`echo '$''{'ac_cv_path_XML_I18N_TOOLS_PERL'+set}'`\" = set"; then |
---|
904 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
905 | else |
---|
906 | case "$XML_I18N_TOOLS_PERL" in |
---|
907 | /*) |
---|
908 | ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a path. |
---|
909 | ;; |
---|
910 | ?:/*) |
---|
911 | ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a dos path. |
---|
912 | ;; |
---|
913 | *) |
---|
914 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
915 | ac_dummy="$PATH" |
---|
916 | for ac_dir in $ac_dummy; do |
---|
917 | test -z "$ac_dir" && ac_dir=. |
---|
918 | if test -f $ac_dir/$ac_word; then |
---|
919 | ac_cv_path_XML_I18N_TOOLS_PERL="$ac_dir/$ac_word" |
---|
920 | break |
---|
921 | fi |
---|
922 | done |
---|
923 | IFS="$ac_save_ifs" |
---|
924 | ;; |
---|
925 | esac |
---|
926 | fi |
---|
927 | XML_I18N_TOOLS_PERL="$ac_cv_path_XML_I18N_TOOLS_PERL" |
---|
928 | if test -n "$XML_I18N_TOOLS_PERL"; then |
---|
929 | echo "$ac_t""$XML_I18N_TOOLS_PERL" 1>&6 |
---|
930 | else |
---|
931 | echo "$ac_t""no" 1>&6 |
---|
932 | fi |
---|
933 | |
---|
934 | if test -z "$XML_I18N_TOOLS_PERL"; then |
---|
935 | { echo "configure: error: perl not found; required for xml-i18n-tools" 1>&2; exit 1; } |
---|
936 | fi |
---|
937 | if test -z "`$XML_I18N_TOOLS_PERL -v | fgrep '5.' 2> /dev/null`"; then |
---|
938 | { echo "configure: error: perl 5.x required for xml-i18n-tools" 1>&2; exit 1; } |
---|
939 | fi |
---|
940 | |
---|
941 | |
---|
942 | |
---|
943 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
944 | # clobbered by the next message. |
---|
945 | exec 5>>./config.log |
---|
946 | |
---|
947 | |
---|
948 | gnome_cv_use_gnome=yes |
---|
949 | |
---|
950 | |
---|
951 | |
---|
952 | |
---|
953 | |
---|
954 | |
---|
955 | |
---|
956 | |
---|
957 | |
---|
958 | |
---|
959 | |
---|
960 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
---|
961 | if test "${with_gnome_includes+set}" = set; then |
---|
962 | withval="$with_gnome_includes" |
---|
963 | |
---|
964 | CFLAGS="$CFLAGS -I$withval" |
---|
965 | |
---|
966 | fi |
---|
967 | |
---|
968 | |
---|
969 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
---|
970 | if test "${with_gnome_libs+set}" = set; then |
---|
971 | withval="$with_gnome_libs" |
---|
972 | |
---|
973 | LDFLAGS="$LDFLAGS -L$withval" |
---|
974 | gnome_prefix=$withval |
---|
975 | |
---|
976 | fi |
---|
977 | |
---|
978 | |
---|
979 | # Check whether --with-gnome or --without-gnome was given. |
---|
980 | if test "${with_gnome+set}" = set; then |
---|
981 | withval="$with_gnome" |
---|
982 | if test x$withval = xyes; then |
---|
983 | want_gnome=yes |
---|
984 | : |
---|
985 | else |
---|
986 | if test "x$withval" = xno; then |
---|
987 | want_gnome=no |
---|
988 | else |
---|
989 | want_gnome=yes |
---|
990 | LDFLAGS="$LDFLAGS -L$withval/lib" |
---|
991 | CFLAGS="$CFLAGS -I$withval/include" |
---|
992 | gnome_prefix=$withval/lib |
---|
993 | fi |
---|
994 | fi |
---|
995 | else |
---|
996 | want_gnome=yes |
---|
997 | fi |
---|
998 | |
---|
999 | |
---|
1000 | if test "x$want_gnome" = xyes; then |
---|
1001 | |
---|
1002 | # Extract the first word of "gnome-config", so it can be a program name with args. |
---|
1003 | set dummy gnome-config; ac_word=$2 |
---|
1004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1005 | echo "configure:1006: checking for $ac_word" >&5 |
---|
1006 | if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then |
---|
1007 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1008 | else |
---|
1009 | case "$GNOME_CONFIG" in |
---|
1010 | /*) |
---|
1011 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
---|
1012 | ;; |
---|
1013 | ?:/*) |
---|
1014 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. |
---|
1015 | ;; |
---|
1016 | *) |
---|
1017 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1018 | ac_dummy="$PATH" |
---|
1019 | for ac_dir in $ac_dummy; do |
---|
1020 | test -z "$ac_dir" && ac_dir=. |
---|
1021 | if test -f $ac_dir/$ac_word; then |
---|
1022 | ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" |
---|
1023 | break |
---|
1024 | fi |
---|
1025 | done |
---|
1026 | IFS="$ac_save_ifs" |
---|
1027 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
---|
1028 | ;; |
---|
1029 | esac |
---|
1030 | fi |
---|
1031 | GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" |
---|
1032 | if test -n "$GNOME_CONFIG"; then |
---|
1033 | echo "$ac_t""$GNOME_CONFIG" 1>&6 |
---|
1034 | else |
---|
1035 | echo "$ac_t""no" 1>&6 |
---|
1036 | fi |
---|
1037 | |
---|
1038 | if test "$GNOME_CONFIG" = "no"; then |
---|
1039 | no_gnome_config="yes" |
---|
1040 | else |
---|
1041 | echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6 |
---|
1042 | echo "configure:1043: checking if $GNOME_CONFIG works" >&5 |
---|
1043 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
---|
1044 | echo "$ac_t""yes" 1>&6 |
---|
1045 | |
---|
1046 | |
---|
1047 | # Extract the first word of "orbit-config", so it can be a program name with args. |
---|
1048 | set dummy orbit-config; ac_word=$2 |
---|
1049 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1050 | echo "configure:1051: checking for $ac_word" >&5 |
---|
1051 | if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then |
---|
1052 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1053 | else |
---|
1054 | case "$ORBIT_CONFIG" in |
---|
1055 | /*) |
---|
1056 | ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path. |
---|
1057 | ;; |
---|
1058 | ?:/*) |
---|
1059 | ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path. |
---|
1060 | ;; |
---|
1061 | *) |
---|
1062 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1063 | ac_dummy="$PATH" |
---|
1064 | for ac_dir in $ac_dummy; do |
---|
1065 | test -z "$ac_dir" && ac_dir=. |
---|
1066 | if test -f $ac_dir/$ac_word; then |
---|
1067 | ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word" |
---|
1068 | break |
---|
1069 | fi |
---|
1070 | done |
---|
1071 | IFS="$ac_save_ifs" |
---|
1072 | test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no" |
---|
1073 | ;; |
---|
1074 | esac |
---|
1075 | fi |
---|
1076 | ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG" |
---|
1077 | if test -n "$ORBIT_CONFIG"; then |
---|
1078 | echo "$ac_t""$ORBIT_CONFIG" 1>&6 |
---|
1079 | else |
---|
1080 | echo "$ac_t""no" 1>&6 |
---|
1081 | fi |
---|
1082 | |
---|
1083 | # Extract the first word of "orbit-idl", so it can be a program name with args. |
---|
1084 | set dummy orbit-idl; ac_word=$2 |
---|
1085 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1086 | echo "configure:1087: checking for $ac_word" >&5 |
---|
1087 | if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then |
---|
1088 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1089 | else |
---|
1090 | case "$ORBIT_IDL" in |
---|
1091 | /*) |
---|
1092 | ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path. |
---|
1093 | ;; |
---|
1094 | ?:/*) |
---|
1095 | ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path. |
---|
1096 | ;; |
---|
1097 | *) |
---|
1098 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1099 | ac_dummy="$PATH" |
---|
1100 | for ac_dir in $ac_dummy; do |
---|
1101 | test -z "$ac_dir" && ac_dir=. |
---|
1102 | if test -f $ac_dir/$ac_word; then |
---|
1103 | ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word" |
---|
1104 | break |
---|
1105 | fi |
---|
1106 | done |
---|
1107 | IFS="$ac_save_ifs" |
---|
1108 | test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no" |
---|
1109 | ;; |
---|
1110 | esac |
---|
1111 | fi |
---|
1112 | ORBIT_IDL="$ac_cv_path_ORBIT_IDL" |
---|
1113 | if test -n "$ORBIT_IDL"; then |
---|
1114 | echo "$ac_t""$ORBIT_IDL" 1>&6 |
---|
1115 | else |
---|
1116 | echo "$ac_t""no" 1>&6 |
---|
1117 | fi |
---|
1118 | |
---|
1119 | echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6 |
---|
1120 | echo "configure:1121: checking for working ORBit environment" >&5 |
---|
1121 | if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then |
---|
1122 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1123 | else |
---|
1124 | |
---|
1125 | if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then |
---|
1126 | gnome_cv_orbit_found=no |
---|
1127 | else |
---|
1128 | gnome_cv_orbit_found=yes |
---|
1129 | fi |
---|
1130 | |
---|
1131 | fi |
---|
1132 | |
---|
1133 | echo "$ac_t""$gnome_cv_orbit_found" 1>&6 |
---|
1134 | |
---|
1135 | |
---|
1136 | if test x$gnome_cv_orbit_found = xyes; then |
---|
1137 | HAVE_ORBIT_TRUE= |
---|
1138 | HAVE_ORBIT_FALSE='#' |
---|
1139 | else |
---|
1140 | HAVE_ORBIT_TRUE='#' |
---|
1141 | HAVE_ORBIT_FALSE= |
---|
1142 | fi |
---|
1143 | if test x$gnome_cv_orbit_found = xyes; then |
---|
1144 | |
---|
1145 | ORBIT_CFLAGS=`orbit-config --cflags client server` |
---|
1146 | ORBIT_LIBS=`orbit-config --use-service=name --libs client server` |
---|
1147 | |
---|
1148 | |
---|
1149 | else |
---|
1150 | if test xfail = xfailure; then |
---|
1151 | { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; } |
---|
1152 | fi |
---|
1153 | fi |
---|
1154 | |
---|
1155 | echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6 |
---|
1156 | echo "configure:1157: checking for gnorba libraries" >&5 |
---|
1157 | if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then |
---|
1158 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1159 | else |
---|
1160 | |
---|
1161 | gnome_cv_gnorba_found=no |
---|
1162 | if test x$gnome_cv_orbit_found = xyes; then |
---|
1163 | GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`" |
---|
1164 | GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`" |
---|
1165 | if test -n "$GNORBA_LIBS"; then |
---|
1166 | gnome_cv_gnorba_found=yes |
---|
1167 | fi |
---|
1168 | fi |
---|
1169 | |
---|
1170 | fi |
---|
1171 | |
---|
1172 | echo "$ac_t""$gnome_cv_gnorba_found" 1>&6 |
---|
1173 | |
---|
1174 | |
---|
1175 | if test x$gnome_cv_gnorba_found = xyes; then |
---|
1176 | HAVE_GNORBA_TRUE= |
---|
1177 | HAVE_GNORBA_FALSE='#' |
---|
1178 | else |
---|
1179 | HAVE_GNORBA_TRUE='#' |
---|
1180 | HAVE_GNORBA_FALSE= |
---|
1181 | fi |
---|
1182 | if test x$gnome_cv_orbit_found = xyes; then |
---|
1183 | |
---|
1184 | GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`" |
---|
1185 | GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`" |
---|
1186 | |
---|
1187 | |
---|
1188 | else |
---|
1189 | if test xfail = xfailure; then |
---|
1190 | { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; } |
---|
1191 | fi |
---|
1192 | fi |
---|
1193 | |
---|
1194 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`" |
---|
1195 | GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`" |
---|
1196 | GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`" |
---|
1197 | GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`" |
---|
1198 | ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`" |
---|
1199 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
---|
1200 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
---|
1201 | |
---|
1202 | else |
---|
1203 | echo "$ac_t""no" 1>&6 |
---|
1204 | no_gnome_config="yes" |
---|
1205 | fi |
---|
1206 | fi |
---|
1207 | |
---|
1208 | if test x$exec_prefix = xNONE; then |
---|
1209 | if test x$prefix = xNONE; then |
---|
1210 | gnome_prefix=$ac_default_prefix/lib |
---|
1211 | else |
---|
1212 | gnome_prefix=$prefix/lib |
---|
1213 | fi |
---|
1214 | else |
---|
1215 | gnome_prefix=`eval echo \`echo $libdir\`` |
---|
1216 | fi |
---|
1217 | |
---|
1218 | if test "$no_gnome_config" = "yes"; then |
---|
1219 | echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6 |
---|
1220 | echo "configure:1221: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
---|
1221 | if test -f $gnome_prefix/gnomeConf.sh; then |
---|
1222 | echo "$ac_t""found" 1>&6 |
---|
1223 | echo "loading gnome configuration from" \ |
---|
1224 | "$gnome_prefix/gnomeConf.sh" |
---|
1225 | . $gnome_prefix/gnomeConf.sh |
---|
1226 | |
---|
1227 | else |
---|
1228 | echo "$ac_t""not found" 1>&6 |
---|
1229 | if test xfail = xfail; then |
---|
1230 | { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; } |
---|
1231 | fi |
---|
1232 | fi |
---|
1233 | fi |
---|
1234 | fi |
---|
1235 | |
---|
1236 | if test -n "capplet"; then |
---|
1237 | n="capplet" |
---|
1238 | for i in $n; do |
---|
1239 | echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6 |
---|
1240 | echo "configure:1241: checking extra library \"$i\"" >&5 |
---|
1241 | case $i in |
---|
1242 | applets) |
---|
1243 | |
---|
1244 | GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets` |
---|
1245 | echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;; |
---|
1246 | docklets) |
---|
1247 | |
---|
1248 | GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets` |
---|
1249 | echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;; |
---|
1250 | capplet) |
---|
1251 | |
---|
1252 | GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet` |
---|
1253 | echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;; |
---|
1254 | *) |
---|
1255 | echo "$ac_t""unknown library" 1>&6 |
---|
1256 | esac |
---|
1257 | done |
---|
1258 | fi |
---|
1259 | |
---|
1260 | |
---|
1261 | |
---|
1262 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1263 | set dummy gcc; ac_word=$2 |
---|
1264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1265 | echo "configure:1266: checking for $ac_word" >&5 |
---|
1266 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1267 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1268 | else |
---|
1269 | if test -n "$CC"; then |
---|
1270 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1271 | else |
---|
1272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1273 | ac_dummy="$PATH" |
---|
1274 | for ac_dir in $ac_dummy; do |
---|
1275 | test -z "$ac_dir" && ac_dir=. |
---|
1276 | if test -f $ac_dir/$ac_word; then |
---|
1277 | ac_cv_prog_CC="gcc" |
---|
1278 | break |
---|
1279 | fi |
---|
1280 | done |
---|
1281 | IFS="$ac_save_ifs" |
---|
1282 | fi |
---|
1283 | fi |
---|
1284 | CC="$ac_cv_prog_CC" |
---|
1285 | if test -n "$CC"; then |
---|
1286 | echo "$ac_t""$CC" 1>&6 |
---|
1287 | else |
---|
1288 | echo "$ac_t""no" 1>&6 |
---|
1289 | fi |
---|
1290 | |
---|
1291 | if test -z "$CC"; then |
---|
1292 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1293 | set dummy cc; ac_word=$2 |
---|
1294 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1295 | echo "configure:1296: checking for $ac_word" >&5 |
---|
1296 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1297 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1298 | else |
---|
1299 | if test -n "$CC"; then |
---|
1300 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1301 | else |
---|
1302 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1303 | ac_prog_rejected=no |
---|
1304 | ac_dummy="$PATH" |
---|
1305 | for ac_dir in $ac_dummy; do |
---|
1306 | test -z "$ac_dir" && ac_dir=. |
---|
1307 | if test -f $ac_dir/$ac_word; then |
---|
1308 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
1309 | ac_prog_rejected=yes |
---|
1310 | continue |
---|
1311 | fi |
---|
1312 | ac_cv_prog_CC="cc" |
---|
1313 | break |
---|
1314 | fi |
---|
1315 | done |
---|
1316 | IFS="$ac_save_ifs" |
---|
1317 | if test $ac_prog_rejected = yes; then |
---|
1318 | # We found a bogon in the path, so make sure we never use it. |
---|
1319 | set dummy $ac_cv_prog_CC |
---|
1320 | shift |
---|
1321 | if test $# -gt 0; then |
---|
1322 | # We chose a different compiler from the bogus one. |
---|
1323 | # However, it has the same basename, so the bogon will be chosen |
---|
1324 | # first if we set CC to just the basename; use the full file name. |
---|
1325 | shift |
---|
1326 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1327 | shift |
---|
1328 | ac_cv_prog_CC="$@" |
---|
1329 | fi |
---|
1330 | fi |
---|
1331 | fi |
---|
1332 | fi |
---|
1333 | CC="$ac_cv_prog_CC" |
---|
1334 | if test -n "$CC"; then |
---|
1335 | echo "$ac_t""$CC" 1>&6 |
---|
1336 | else |
---|
1337 | echo "$ac_t""no" 1>&6 |
---|
1338 | fi |
---|
1339 | |
---|
1340 | if test -z "$CC"; then |
---|
1341 | case "`uname -s`" in |
---|
1342 | *win32* | *WIN32*) |
---|
1343 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1344 | set dummy cl; ac_word=$2 |
---|
1345 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1346 | echo "configure:1347: checking for $ac_word" >&5 |
---|
1347 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1348 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1349 | else |
---|
1350 | if test -n "$CC"; then |
---|
1351 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1352 | else |
---|
1353 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1354 | ac_dummy="$PATH" |
---|
1355 | for ac_dir in $ac_dummy; do |
---|
1356 | test -z "$ac_dir" && ac_dir=. |
---|
1357 | if test -f $ac_dir/$ac_word; then |
---|
1358 | ac_cv_prog_CC="cl" |
---|
1359 | break |
---|
1360 | fi |
---|
1361 | done |
---|
1362 | IFS="$ac_save_ifs" |
---|
1363 | fi |
---|
1364 | fi |
---|
1365 | CC="$ac_cv_prog_CC" |
---|
1366 | if test -n "$CC"; then |
---|
1367 | echo "$ac_t""$CC" 1>&6 |
---|
1368 | else |
---|
1369 | echo "$ac_t""no" 1>&6 |
---|
1370 | fi |
---|
1371 | ;; |
---|
1372 | esac |
---|
1373 | fi |
---|
1374 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1375 | fi |
---|
1376 | |
---|
1377 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1378 | echo "configure:1379: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1379 | |
---|
1380 | ac_ext=c |
---|
1381 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1382 | ac_cpp='$CPP $CPPFLAGS' |
---|
1383 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1384 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1385 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1386 | |
---|
1387 | cat > conftest.$ac_ext << EOF |
---|
1388 | |
---|
1389 | #line 1390 "configure" |
---|
1390 | #include "confdefs.h" |
---|
1391 | |
---|
1392 | main(){return(0);} |
---|
1393 | EOF |
---|
1394 | if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1395 | ac_cv_prog_cc_works=yes |
---|
1396 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1397 | if (./conftest; exit) 2>/dev/null; then |
---|
1398 | ac_cv_prog_cc_cross=no |
---|
1399 | else |
---|
1400 | ac_cv_prog_cc_cross=yes |
---|
1401 | fi |
---|
1402 | else |
---|
1403 | echo "configure: failed program was:" >&5 |
---|
1404 | cat conftest.$ac_ext >&5 |
---|
1405 | ac_cv_prog_cc_works=no |
---|
1406 | fi |
---|
1407 | rm -fr conftest* |
---|
1408 | ac_ext=c |
---|
1409 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1410 | ac_cpp='$CPP $CPPFLAGS' |
---|
1411 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1412 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1413 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1414 | |
---|
1415 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1416 | if test $ac_cv_prog_cc_works = no; then |
---|
1417 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1418 | fi |
---|
1419 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1420 | echo "configure:1421: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1421 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1422 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1423 | |
---|
1424 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1425 | echo "configure:1426: checking whether we are using GNU C" >&5 |
---|
1426 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1427 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1428 | else |
---|
1429 | cat > conftest.c <<EOF |
---|
1430 | #ifdef __GNUC__ |
---|
1431 | yes; |
---|
1432 | #endif |
---|
1433 | EOF |
---|
1434 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1435 | ac_cv_prog_gcc=yes |
---|
1436 | else |
---|
1437 | ac_cv_prog_gcc=no |
---|
1438 | fi |
---|
1439 | fi |
---|
1440 | |
---|
1441 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1442 | |
---|
1443 | if test $ac_cv_prog_gcc = yes; then |
---|
1444 | GCC=yes |
---|
1445 | else |
---|
1446 | GCC= |
---|
1447 | fi |
---|
1448 | |
---|
1449 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1450 | ac_save_CFLAGS="$CFLAGS" |
---|
1451 | CFLAGS= |
---|
1452 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1453 | echo "configure:1454: checking whether ${CC-cc} accepts -g" >&5 |
---|
1454 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1455 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1456 | else |
---|
1457 | echo 'void f(){}' > conftest.c |
---|
1458 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1459 | ac_cv_prog_cc_g=yes |
---|
1460 | else |
---|
1461 | ac_cv_prog_cc_g=no |
---|
1462 | fi |
---|
1463 | rm -f conftest* |
---|
1464 | |
---|
1465 | fi |
---|
1466 | |
---|
1467 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1468 | if test "$ac_test_CFLAGS" = set; then |
---|
1469 | CFLAGS="$ac_save_CFLAGS" |
---|
1470 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1471 | if test "$GCC" = yes; then |
---|
1472 | CFLAGS="-g -O2" |
---|
1473 | else |
---|
1474 | CFLAGS="-g" |
---|
1475 | fi |
---|
1476 | else |
---|
1477 | if test "$GCC" = yes; then |
---|
1478 | CFLAGS="-O2" |
---|
1479 | else |
---|
1480 | CFLAGS= |
---|
1481 | fi |
---|
1482 | fi |
---|
1483 | |
---|
1484 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
---|
1485 | echo "configure:1486: checking for POSIXized ISC" >&5 |
---|
1486 | if test -d /etc/conf/kconfig.d && |
---|
1487 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
---|
1488 | then |
---|
1489 | echo "$ac_t""yes" 1>&6 |
---|
1490 | ISC=yes # If later tests want to check for ISC. |
---|
1491 | cat >> confdefs.h <<\EOF |
---|
1492 | #define _POSIX_SOURCE 1 |
---|
1493 | EOF |
---|
1494 | |
---|
1495 | if test "$GCC" = yes; then |
---|
1496 | CC="$CC -posix" |
---|
1497 | else |
---|
1498 | CC="$CC -Xp" |
---|
1499 | fi |
---|
1500 | else |
---|
1501 | echo "$ac_t""no" 1>&6 |
---|
1502 | ISC= |
---|
1503 | fi |
---|
1504 | |
---|
1505 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1506 | set dummy gcc; ac_word=$2 |
---|
1507 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1508 | echo "configure:1509: checking for $ac_word" >&5 |
---|
1509 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1510 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1511 | else |
---|
1512 | if test -n "$CC"; then |
---|
1513 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1514 | else |
---|
1515 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1516 | ac_dummy="$PATH" |
---|
1517 | for ac_dir in $ac_dummy; do |
---|
1518 | test -z "$ac_dir" && ac_dir=. |
---|
1519 | if test -f $ac_dir/$ac_word; then |
---|
1520 | ac_cv_prog_CC="gcc" |
---|
1521 | break |
---|
1522 | fi |
---|
1523 | done |
---|
1524 | IFS="$ac_save_ifs" |
---|
1525 | fi |
---|
1526 | fi |
---|
1527 | CC="$ac_cv_prog_CC" |
---|
1528 | if test -n "$CC"; then |
---|
1529 | echo "$ac_t""$CC" 1>&6 |
---|
1530 | else |
---|
1531 | echo "$ac_t""no" 1>&6 |
---|
1532 | fi |
---|
1533 | |
---|
1534 | if test -z "$CC"; then |
---|
1535 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1536 | set dummy cc; ac_word=$2 |
---|
1537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1538 | echo "configure:1539: checking for $ac_word" >&5 |
---|
1539 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1540 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1541 | else |
---|
1542 | if test -n "$CC"; then |
---|
1543 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1544 | else |
---|
1545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1546 | ac_prog_rejected=no |
---|
1547 | ac_dummy="$PATH" |
---|
1548 | for ac_dir in $ac_dummy; do |
---|
1549 | test -z "$ac_dir" && ac_dir=. |
---|
1550 | if test -f $ac_dir/$ac_word; then |
---|
1551 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
1552 | ac_prog_rejected=yes |
---|
1553 | continue |
---|
1554 | fi |
---|
1555 | ac_cv_prog_CC="cc" |
---|
1556 | break |
---|
1557 | fi |
---|
1558 | done |
---|
1559 | IFS="$ac_save_ifs" |
---|
1560 | if test $ac_prog_rejected = yes; then |
---|
1561 | # We found a bogon in the path, so make sure we never use it. |
---|
1562 | set dummy $ac_cv_prog_CC |
---|
1563 | shift |
---|
1564 | if test $# -gt 0; then |
---|
1565 | # We chose a different compiler from the bogus one. |
---|
1566 | # However, it has the same basename, so the bogon will be chosen |
---|
1567 | # first if we set CC to just the basename; use the full file name. |
---|
1568 | shift |
---|
1569 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1570 | shift |
---|
1571 | ac_cv_prog_CC="$@" |
---|
1572 | fi |
---|
1573 | fi |
---|
1574 | fi |
---|
1575 | fi |
---|
1576 | CC="$ac_cv_prog_CC" |
---|
1577 | if test -n "$CC"; then |
---|
1578 | echo "$ac_t""$CC" 1>&6 |
---|
1579 | else |
---|
1580 | echo "$ac_t""no" 1>&6 |
---|
1581 | fi |
---|
1582 | |
---|
1583 | if test -z "$CC"; then |
---|
1584 | case "`uname -s`" in |
---|
1585 | *win32* | *WIN32*) |
---|
1586 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1587 | set dummy cl; ac_word=$2 |
---|
1588 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1589 | echo "configure:1590: checking for $ac_word" >&5 |
---|
1590 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1591 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1592 | else |
---|
1593 | if test -n "$CC"; then |
---|
1594 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1595 | else |
---|
1596 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1597 | ac_dummy="$PATH" |
---|
1598 | for ac_dir in $ac_dummy; do |
---|
1599 | test -z "$ac_dir" && ac_dir=. |
---|
1600 | if test -f $ac_dir/$ac_word; then |
---|
1601 | ac_cv_prog_CC="cl" |
---|
1602 | break |
---|
1603 | fi |
---|
1604 | done |
---|
1605 | IFS="$ac_save_ifs" |
---|
1606 | fi |
---|
1607 | fi |
---|
1608 | CC="$ac_cv_prog_CC" |
---|
1609 | if test -n "$CC"; then |
---|
1610 | echo "$ac_t""$CC" 1>&6 |
---|
1611 | else |
---|
1612 | echo "$ac_t""no" 1>&6 |
---|
1613 | fi |
---|
1614 | ;; |
---|
1615 | esac |
---|
1616 | fi |
---|
1617 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1618 | fi |
---|
1619 | |
---|
1620 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1621 | echo "configure:1622: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1622 | |
---|
1623 | ac_ext=c |
---|
1624 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1625 | ac_cpp='$CPP $CPPFLAGS' |
---|
1626 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1627 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1628 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1629 | |
---|
1630 | cat > conftest.$ac_ext << EOF |
---|
1631 | |
---|
1632 | #line 1633 "configure" |
---|
1633 | #include "confdefs.h" |
---|
1634 | |
---|
1635 | main(){return(0);} |
---|
1636 | EOF |
---|
1637 | if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1638 | ac_cv_prog_cc_works=yes |
---|
1639 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1640 | if (./conftest; exit) 2>/dev/null; then |
---|
1641 | ac_cv_prog_cc_cross=no |
---|
1642 | else |
---|
1643 | ac_cv_prog_cc_cross=yes |
---|
1644 | fi |
---|
1645 | else |
---|
1646 | echo "configure: failed program was:" >&5 |
---|
1647 | cat conftest.$ac_ext >&5 |
---|
1648 | ac_cv_prog_cc_works=no |
---|
1649 | fi |
---|
1650 | rm -fr conftest* |
---|
1651 | ac_ext=c |
---|
1652 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1653 | ac_cpp='$CPP $CPPFLAGS' |
---|
1654 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1655 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1656 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1657 | |
---|
1658 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1659 | if test $ac_cv_prog_cc_works = no; then |
---|
1660 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1661 | fi |
---|
1662 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1663 | echo "configure:1664: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1664 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1665 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1666 | |
---|
1667 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1668 | echo "configure:1669: checking whether we are using GNU C" >&5 |
---|
1669 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1670 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1671 | else |
---|
1672 | cat > conftest.c <<EOF |
---|
1673 | #ifdef __GNUC__ |
---|
1674 | yes; |
---|
1675 | #endif |
---|
1676 | EOF |
---|
1677 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1678 | ac_cv_prog_gcc=yes |
---|
1679 | else |
---|
1680 | ac_cv_prog_gcc=no |
---|
1681 | fi |
---|
1682 | fi |
---|
1683 | |
---|
1684 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1685 | |
---|
1686 | if test $ac_cv_prog_gcc = yes; then |
---|
1687 | GCC=yes |
---|
1688 | else |
---|
1689 | GCC= |
---|
1690 | fi |
---|
1691 | |
---|
1692 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1693 | ac_save_CFLAGS="$CFLAGS" |
---|
1694 | CFLAGS= |
---|
1695 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1696 | echo "configure:1697: checking whether ${CC-cc} accepts -g" >&5 |
---|
1697 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1698 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1699 | else |
---|
1700 | echo 'void f(){}' > conftest.c |
---|
1701 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1702 | ac_cv_prog_cc_g=yes |
---|
1703 | else |
---|
1704 | ac_cv_prog_cc_g=no |
---|
1705 | fi |
---|
1706 | rm -f conftest* |
---|
1707 | |
---|
1708 | fi |
---|
1709 | |
---|
1710 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1711 | if test "$ac_test_CFLAGS" = set; then |
---|
1712 | CFLAGS="$ac_save_CFLAGS" |
---|
1713 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1714 | if test "$GCC" = yes; then |
---|
1715 | CFLAGS="-g -O2" |
---|
1716 | else |
---|
1717 | CFLAGS="-g" |
---|
1718 | fi |
---|
1719 | else |
---|
1720 | if test "$GCC" = yes; then |
---|
1721 | CFLAGS="-O2" |
---|
1722 | else |
---|
1723 | CFLAGS= |
---|
1724 | fi |
---|
1725 | fi |
---|
1726 | |
---|
1727 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
1728 | echo "configure:1729: checking how to run the C preprocessor" >&5 |
---|
1729 | # On Suns, sometimes $CPP names a directory. |
---|
1730 | if test -n "$CPP" && test -d "$CPP"; then |
---|
1731 | CPP= |
---|
1732 | fi |
---|
1733 | if test -z "$CPP"; then |
---|
1734 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
1735 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1736 | else |
---|
1737 | # This must be in double quotes, not single quotes, because CPP may get |
---|
1738 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
1739 | CPP="${CC-cc} -E" |
---|
1740 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
1741 | # not just through cpp. |
---|
1742 | cat > conftest.$ac_ext <<EOF |
---|
1743 | #line 1744 "configure" |
---|
1744 | #include "confdefs.h" |
---|
1745 | #include <assert.h> |
---|
1746 | Syntax Error |
---|
1747 | EOF |
---|
1748 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1749 | { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1750 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1751 | if test -z "$ac_err"; then |
---|
1752 | : |
---|
1753 | else |
---|
1754 | echo "$ac_err" >&5 |
---|
1755 | echo "configure: failed program was:" >&5 |
---|
1756 | cat conftest.$ac_ext >&5 |
---|
1757 | rm -rf conftest* |
---|
1758 | CPP="${CC-cc} -E -traditional-cpp" |
---|
1759 | cat > conftest.$ac_ext <<EOF |
---|
1760 | #line 1761 "configure" |
---|
1761 | #include "confdefs.h" |
---|
1762 | #include <assert.h> |
---|
1763 | Syntax Error |
---|
1764 | EOF |
---|
1765 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1766 | { (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1767 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1768 | if test -z "$ac_err"; then |
---|
1769 | : |
---|
1770 | else |
---|
1771 | echo "$ac_err" >&5 |
---|
1772 | echo "configure: failed program was:" >&5 |
---|
1773 | cat conftest.$ac_ext >&5 |
---|
1774 | rm -rf conftest* |
---|
1775 | CPP="${CC-cc} -nologo -E" |
---|
1776 | cat > conftest.$ac_ext <<EOF |
---|
1777 | #line 1778 "configure" |
---|
1778 | #include "confdefs.h" |
---|
1779 | #include <assert.h> |
---|
1780 | Syntax Error |
---|
1781 | EOF |
---|
1782 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1783 | { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1784 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1785 | if test -z "$ac_err"; then |
---|
1786 | : |
---|
1787 | else |
---|
1788 | echo "$ac_err" >&5 |
---|
1789 | echo "configure: failed program was:" >&5 |
---|
1790 | cat conftest.$ac_ext >&5 |
---|
1791 | rm -rf conftest* |
---|
1792 | CPP=/lib/cpp |
---|
1793 | fi |
---|
1794 | rm -f conftest* |
---|
1795 | fi |
---|
1796 | rm -f conftest* |
---|
1797 | fi |
---|
1798 | rm -f conftest* |
---|
1799 | ac_cv_prog_CPP="$CPP" |
---|
1800 | fi |
---|
1801 | CPP="$ac_cv_prog_CPP" |
---|
1802 | else |
---|
1803 | ac_cv_prog_CPP="$CPP" |
---|
1804 | fi |
---|
1805 | echo "$ac_t""$CPP" 1>&6 |
---|
1806 | |
---|
1807 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
1808 | echo "configure:1809: checking for ANSI C header files" >&5 |
---|
1809 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
1810 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1811 | else |
---|
1812 | cat > conftest.$ac_ext <<EOF |
---|
1813 | #line 1814 "configure" |
---|
1814 | #include "confdefs.h" |
---|
1815 | #include <stdlib.h> |
---|
1816 | #include <stdarg.h> |
---|
1817 | #include <string.h> |
---|
1818 | #include <float.h> |
---|
1819 | EOF |
---|
1820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1821 | { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1822 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1823 | if test -z "$ac_err"; then |
---|
1824 | rm -rf conftest* |
---|
1825 | ac_cv_header_stdc=yes |
---|
1826 | else |
---|
1827 | echo "$ac_err" >&5 |
---|
1828 | echo "configure: failed program was:" >&5 |
---|
1829 | cat conftest.$ac_ext >&5 |
---|
1830 | rm -rf conftest* |
---|
1831 | ac_cv_header_stdc=no |
---|
1832 | fi |
---|
1833 | rm -f conftest* |
---|
1834 | |
---|
1835 | if test $ac_cv_header_stdc = yes; then |
---|
1836 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
1837 | cat > conftest.$ac_ext <<EOF |
---|
1838 | #line 1839 "configure" |
---|
1839 | #include "confdefs.h" |
---|
1840 | #include <string.h> |
---|
1841 | EOF |
---|
1842 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1843 | egrep "memchr" >/dev/null 2>&1; then |
---|
1844 | : |
---|
1845 | else |
---|
1846 | rm -rf conftest* |
---|
1847 | ac_cv_header_stdc=no |
---|
1848 | fi |
---|
1849 | rm -f conftest* |
---|
1850 | |
---|
1851 | fi |
---|
1852 | |
---|
1853 | if test $ac_cv_header_stdc = yes; then |
---|
1854 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
1855 | cat > conftest.$ac_ext <<EOF |
---|
1856 | #line 1857 "configure" |
---|
1857 | #include "confdefs.h" |
---|
1858 | #include <stdlib.h> |
---|
1859 | EOF |
---|
1860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1861 | egrep "free" >/dev/null 2>&1; then |
---|
1862 | : |
---|
1863 | else |
---|
1864 | rm -rf conftest* |
---|
1865 | ac_cv_header_stdc=no |
---|
1866 | fi |
---|
1867 | rm -f conftest* |
---|
1868 | |
---|
1869 | fi |
---|
1870 | |
---|
1871 | if test $ac_cv_header_stdc = yes; then |
---|
1872 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
1873 | if test "$cross_compiling" = yes; then |
---|
1874 | : |
---|
1875 | else |
---|
1876 | cat > conftest.$ac_ext <<EOF |
---|
1877 | #line 1878 "configure" |
---|
1878 | #include "confdefs.h" |
---|
1879 | #include <ctype.h> |
---|
1880 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
1881 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
1882 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
1883 | int main () { int i; for (i = 0; i < 256; i++) |
---|
1884 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
1885 | exit (0); } |
---|
1886 | |
---|
1887 | EOF |
---|
1888 | if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
1889 | then |
---|
1890 | : |
---|
1891 | else |
---|
1892 | echo "configure: failed program was:" >&5 |
---|
1893 | cat conftest.$ac_ext >&5 |
---|
1894 | rm -fr conftest* |
---|
1895 | ac_cv_header_stdc=no |
---|
1896 | fi |
---|
1897 | rm -fr conftest* |
---|
1898 | fi |
---|
1899 | |
---|
1900 | fi |
---|
1901 | fi |
---|
1902 | |
---|
1903 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
1904 | if test $ac_cv_header_stdc = yes; then |
---|
1905 | cat >> confdefs.h <<\EOF |
---|
1906 | #define STDC_HEADERS 1 |
---|
1907 | EOF |
---|
1908 | |
---|
1909 | fi |
---|
1910 | |
---|
1911 | if test "$program_transform_name" = s,x,x,; then |
---|
1912 | program_transform_name= |
---|
1913 | else |
---|
1914 | # Double any \ or $. echo might interpret backslashes. |
---|
1915 | cat <<\EOF_SED > conftestsed |
---|
1916 | s,\\,\\\\,g; s,\$,$$,g |
---|
1917 | EOF_SED |
---|
1918 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
1919 | rm -f conftestsed |
---|
1920 | fi |
---|
1921 | test "$program_prefix" != NONE && |
---|
1922 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
1923 | # Use a double $ so make ignores it. |
---|
1924 | test "$program_suffix" != NONE && |
---|
1925 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
1926 | |
---|
1927 | # sed with no file args requires a program. |
---|
1928 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
1929 | |
---|
1930 | # Check whether --enable-shared or --disable-shared was given. |
---|
1931 | if test "${enable_shared+set}" = set; then |
---|
1932 | enableval="$enable_shared" |
---|
1933 | p=${PACKAGE-default} |
---|
1934 | case "$enableval" in |
---|
1935 | yes) enable_shared=yes ;; |
---|
1936 | no) enable_shared=no ;; |
---|
1937 | *) |
---|
1938 | enable_shared=no |
---|
1939 | # Look at the argument we got. We use all the common list separators. |
---|
1940 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1941 | for pkg in $enableval; do |
---|
1942 | if test "X$pkg" = "X$p"; then |
---|
1943 | enable_shared=yes |
---|
1944 | fi |
---|
1945 | done |
---|
1946 | IFS="$ac_save_ifs" |
---|
1947 | ;; |
---|
1948 | esac |
---|
1949 | else |
---|
1950 | enable_shared=yes |
---|
1951 | fi |
---|
1952 | |
---|
1953 | # Check whether --enable-static or --disable-static was given. |
---|
1954 | if test "${enable_static+set}" = set; then |
---|
1955 | enableval="$enable_static" |
---|
1956 | p=${PACKAGE-default} |
---|
1957 | case "$enableval" in |
---|
1958 | yes) enable_static=yes ;; |
---|
1959 | no) enable_static=no ;; |
---|
1960 | *) |
---|
1961 | enable_static=no |
---|
1962 | # Look at the argument we got. We use all the common list separators. |
---|
1963 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1964 | for pkg in $enableval; do |
---|
1965 | if test "X$pkg" = "X$p"; then |
---|
1966 | enable_static=yes |
---|
1967 | fi |
---|
1968 | done |
---|
1969 | IFS="$ac_save_ifs" |
---|
1970 | ;; |
---|
1971 | esac |
---|
1972 | else |
---|
1973 | enable_static=yes |
---|
1974 | fi |
---|
1975 | |
---|
1976 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
1977 | if test "${enable_fast_install+set}" = set; then |
---|
1978 | enableval="$enable_fast_install" |
---|
1979 | p=${PACKAGE-default} |
---|
1980 | case "$enableval" in |
---|
1981 | yes) enable_fast_install=yes ;; |
---|
1982 | no) enable_fast_install=no ;; |
---|
1983 | *) |
---|
1984 | enable_fast_install=no |
---|
1985 | # Look at the argument we got. We use all the common list separators. |
---|
1986 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1987 | for pkg in $enableval; do |
---|
1988 | if test "X$pkg" = "X$p"; then |
---|
1989 | enable_fast_install=yes |
---|
1990 | fi |
---|
1991 | done |
---|
1992 | IFS="$ac_save_ifs" |
---|
1993 | ;; |
---|
1994 | esac |
---|
1995 | else |
---|
1996 | enable_fast_install=yes |
---|
1997 | fi |
---|
1998 | |
---|
1999 | |
---|
2000 | # Make sure we can run config.sub. |
---|
2001 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
2002 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
2003 | fi |
---|
2004 | |
---|
2005 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
2006 | echo "configure:2007: checking host system type" >&5 |
---|
2007 | |
---|
2008 | host_alias=$host |
---|
2009 | case "$host_alias" in |
---|
2010 | NONE) |
---|
2011 | case $nonopt in |
---|
2012 | NONE) |
---|
2013 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
2014 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
2015 | fi ;; |
---|
2016 | *) host_alias=$nonopt ;; |
---|
2017 | esac ;; |
---|
2018 | esac |
---|
2019 | |
---|
2020 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
2021 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
2022 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
2023 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
2024 | echo "$ac_t""$host" 1>&6 |
---|
2025 | |
---|
2026 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
2027 | echo "configure:2028: checking build system type" >&5 |
---|
2028 | |
---|
2029 | build_alias=$build |
---|
2030 | case "$build_alias" in |
---|
2031 | NONE) |
---|
2032 | case $nonopt in |
---|
2033 | NONE) build_alias=$host_alias ;; |
---|
2034 | *) build_alias=$nonopt ;; |
---|
2035 | esac ;; |
---|
2036 | esac |
---|
2037 | |
---|
2038 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
2039 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
2040 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
2041 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
2042 | echo "$ac_t""$build" 1>&6 |
---|
2043 | |
---|
2044 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2045 | set dummy ranlib; ac_word=$2 |
---|
2046 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2047 | echo "configure:2048: checking for $ac_word" >&5 |
---|
2048 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
2049 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2050 | else |
---|
2051 | if test -n "$RANLIB"; then |
---|
2052 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2053 | else |
---|
2054 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2055 | ac_dummy="$PATH" |
---|
2056 | for ac_dir in $ac_dummy; do |
---|
2057 | test -z "$ac_dir" && ac_dir=. |
---|
2058 | if test -f $ac_dir/$ac_word; then |
---|
2059 | ac_cv_prog_RANLIB="ranlib" |
---|
2060 | break |
---|
2061 | fi |
---|
2062 | done |
---|
2063 | IFS="$ac_save_ifs" |
---|
2064 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
2065 | fi |
---|
2066 | fi |
---|
2067 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2068 | if test -n "$RANLIB"; then |
---|
2069 | echo "$ac_t""$RANLIB" 1>&6 |
---|
2070 | else |
---|
2071 | echo "$ac_t""no" 1>&6 |
---|
2072 | fi |
---|
2073 | |
---|
2074 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
2075 | if test "${with_gnu_ld+set}" = set; then |
---|
2076 | withval="$with_gnu_ld" |
---|
2077 | test "$withval" = no || with_gnu_ld=yes |
---|
2078 | else |
---|
2079 | with_gnu_ld=no |
---|
2080 | fi |
---|
2081 | |
---|
2082 | ac_prog=ld |
---|
2083 | if test "$ac_cv_prog_gcc" = yes; then |
---|
2084 | # Check if gcc -print-prog-name=ld gives a path. |
---|
2085 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
---|
2086 | echo "configure:2087: checking for ld used by GCC" >&5 |
---|
2087 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
---|
2088 | case "$ac_prog" in |
---|
2089 | # Accept absolute paths. |
---|
2090 | [\\/]* | [A-Za-z]:[\\/]*) |
---|
2091 | re_direlt='/[^/][^/]*/\.\./' |
---|
2092 | # Canonicalize the path of ld |
---|
2093 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
---|
2094 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
2095 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
---|
2096 | done |
---|
2097 | test -z "$LD" && LD="$ac_prog" |
---|
2098 | ;; |
---|
2099 | "") |
---|
2100 | # If it fails, then pretend we aren't using GCC. |
---|
2101 | ac_prog=ld |
---|
2102 | ;; |
---|
2103 | *) |
---|
2104 | # If it is relative, then search for the first ld in PATH. |
---|
2105 | with_gnu_ld=unknown |
---|
2106 | ;; |
---|
2107 | esac |
---|
2108 | elif test "$with_gnu_ld" = yes; then |
---|
2109 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
---|
2110 | echo "configure:2111: checking for GNU ld" >&5 |
---|
2111 | else |
---|
2112 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
---|
2113 | echo "configure:2114: checking for non-GNU ld" >&5 |
---|
2114 | fi |
---|
2115 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
---|
2116 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2117 | else |
---|
2118 | if test -z "$LD"; then |
---|
2119 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
2120 | for ac_dir in $PATH; do |
---|
2121 | test -z "$ac_dir" && ac_dir=. |
---|
2122 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
2123 | ac_cv_path_LD="$ac_dir/$ac_prog" |
---|
2124 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
2125 | # but apparently some GNU ld's only accept -v. |
---|
2126 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
2127 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
---|
2128 | test "$with_gnu_ld" != no && break |
---|
2129 | else |
---|
2130 | test "$with_gnu_ld" != yes && break |
---|
2131 | fi |
---|
2132 | fi |
---|
2133 | done |
---|
2134 | IFS="$ac_save_ifs" |
---|
2135 | else |
---|
2136 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
2137 | fi |
---|
2138 | fi |
---|
2139 | |
---|
2140 | LD="$ac_cv_path_LD" |
---|
2141 | if test -n "$LD"; then |
---|
2142 | echo "$ac_t""$LD" 1>&6 |
---|
2143 | else |
---|
2144 | echo "$ac_t""no" 1>&6 |
---|
2145 | fi |
---|
2146 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
---|
2147 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
---|
2148 | echo "configure:2149: checking if the linker ($LD) is GNU ld" >&5 |
---|
2149 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
---|
2150 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2151 | else |
---|
2152 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
2153 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
---|
2154 | ac_cv_prog_gnu_ld=yes |
---|
2155 | else |
---|
2156 | ac_cv_prog_gnu_ld=no |
---|
2157 | fi |
---|
2158 | fi |
---|
2159 | |
---|
2160 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
---|
2161 | |
---|
2162 | |
---|
2163 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
---|
2164 | echo "configure:2165: checking for BSD-compatible nm" >&5 |
---|
2165 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
---|
2166 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2167 | else |
---|
2168 | if test -n "$NM"; then |
---|
2169 | # Let the user override the test. |
---|
2170 | ac_cv_path_NM="$NM" |
---|
2171 | else |
---|
2172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
2173 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
2174 | test -z "$ac_dir" && ac_dir=. |
---|
2175 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
---|
2176 | # Check to see if the nm accepts a BSD-compat flag. |
---|
2177 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
2178 | # nm: unknown option "B" ignored |
---|
2179 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
2180 | ac_cv_path_NM="$ac_dir/nm -B" |
---|
2181 | break |
---|
2182 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
2183 | ac_cv_path_NM="$ac_dir/nm -p" |
---|
2184 | break |
---|
2185 | else |
---|
2186 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
---|
2187 | continue # so that we can try to find one that supports BSD flags |
---|
2188 | fi |
---|
2189 | fi |
---|
2190 | done |
---|
2191 | IFS="$ac_save_ifs" |
---|
2192 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
---|
2193 | fi |
---|
2194 | fi |
---|
2195 | |
---|
2196 | NM="$ac_cv_path_NM" |
---|
2197 | echo "$ac_t""$NM" 1>&6 |
---|
2198 | |
---|
2199 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
2200 | echo "configure:2201: checking whether ln -s works" >&5 |
---|
2201 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
2202 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2203 | else |
---|
2204 | rm -f conftestdata |
---|
2205 | if ln -s X conftestdata 2>/dev/null |
---|
2206 | then |
---|
2207 | rm -f conftestdata |
---|
2208 | ac_cv_prog_LN_S="ln -s" |
---|
2209 | else |
---|
2210 | ac_cv_prog_LN_S=ln |
---|
2211 | fi |
---|
2212 | fi |
---|
2213 | LN_S="$ac_cv_prog_LN_S" |
---|
2214 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
2215 | echo "$ac_t""yes" 1>&6 |
---|
2216 | else |
---|
2217 | echo "$ac_t""no" 1>&6 |
---|
2218 | fi |
---|
2219 | |
---|
2220 | |
---|
2221 | case "$target" in |
---|
2222 | NONE) lt_target="$host" ;; |
---|
2223 | *) lt_target="$target" ;; |
---|
2224 | esac |
---|
2225 | |
---|
2226 | # Check for any special flags to pass to ltconfig. |
---|
2227 | libtool_flags="--cache-file=$cache_file" |
---|
2228 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
---|
2229 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
---|
2230 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
---|
2231 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
---|
2232 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
---|
2233 | |
---|
2234 | |
---|
2235 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
2236 | if test "${enable_libtool_lock+set}" = set; then |
---|
2237 | enableval="$enable_libtool_lock" |
---|
2238 | : |
---|
2239 | fi |
---|
2240 | |
---|
2241 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
---|
2242 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
---|
2243 | |
---|
2244 | # Some flags need to be propagated to the compiler or linker for good |
---|
2245 | # libtool support. |
---|
2246 | case "$lt_target" in |
---|
2247 | *-*-irix6*) |
---|
2248 | # Find out which ABI we are using. |
---|
2249 | echo '#line 2250 "configure"' > conftest.$ac_ext |
---|
2250 | if { (eval echo configure:2251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2251 | case "`/usr/bin/file conftest.o`" in |
---|
2252 | *32-bit*) |
---|
2253 | LD="${LD-ld} -32" |
---|
2254 | ;; |
---|
2255 | *N32*) |
---|
2256 | LD="${LD-ld} -n32" |
---|
2257 | ;; |
---|
2258 | *64-bit*) |
---|
2259 | LD="${LD-ld} -64" |
---|
2260 | ;; |
---|
2261 | esac |
---|
2262 | fi |
---|
2263 | rm -rf conftest* |
---|
2264 | ;; |
---|
2265 | |
---|
2266 | *-*-sco3.2v5*) |
---|
2267 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
2268 | SAVE_CFLAGS="$CFLAGS" |
---|
2269 | CFLAGS="$CFLAGS -belf" |
---|
2270 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
---|
2271 | echo "configure:2272: checking whether the C compiler needs -belf" >&5 |
---|
2272 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
---|
2273 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2274 | else |
---|
2275 | cat > conftest.$ac_ext <<EOF |
---|
2276 | #line 2277 "configure" |
---|
2277 | #include "confdefs.h" |
---|
2278 | |
---|
2279 | int main() { |
---|
2280 | |
---|
2281 | ; return 0; } |
---|
2282 | EOF |
---|
2283 | if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2284 | rm -rf conftest* |
---|
2285 | lt_cv_cc_needs_belf=yes |
---|
2286 | else |
---|
2287 | echo "configure: failed program was:" >&5 |
---|
2288 | cat conftest.$ac_ext >&5 |
---|
2289 | rm -rf conftest* |
---|
2290 | lt_cv_cc_needs_belf=no |
---|
2291 | fi |
---|
2292 | rm -f conftest* |
---|
2293 | fi |
---|
2294 | |
---|
2295 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
---|
2296 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
2297 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
2298 | CFLAGS="$SAVE_CFLAGS" |
---|
2299 | fi |
---|
2300 | ;; |
---|
2301 | |
---|
2302 | |
---|
2303 | esac |
---|
2304 | |
---|
2305 | |
---|
2306 | # Save cache, so that ltconfig can load it |
---|
2307 | cat > confcache <<\EOF |
---|
2308 | # This file is a shell script that caches the results of configure |
---|
2309 | # tests run on this system so they can be shared between configure |
---|
2310 | # scripts and configure runs. It is not useful on other systems. |
---|
2311 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
2312 | # |
---|
2313 | # By default, configure uses ./config.cache as the cache file, |
---|
2314 | # creating it if it does not exist already. You can give configure |
---|
2315 | # the --cache-file=FILE option to use a different cache file; that is |
---|
2316 | # what configure does when it calls configure scripts in |
---|
2317 | # subdirectories, so they share the cache. |
---|
2318 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
2319 | # config.status only pays attention to the cache file if you give it the |
---|
2320 | # --recheck option to rerun configure. |
---|
2321 | # |
---|
2322 | EOF |
---|
2323 | # The following way of writing the cache mishandles newlines in values, |
---|
2324 | # but we know of no workaround that is simple, portable, and efficient. |
---|
2325 | # So, don't put newlines in cache variables' values. |
---|
2326 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
2327 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
2328 | (set) 2>&1 | |
---|
2329 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
2330 | *ac_space=\ *) |
---|
2331 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
2332 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
2333 | sed -n \ |
---|
2334 | -e "s/'/'\\\\''/g" \ |
---|
2335 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
2336 | ;; |
---|
2337 | *) |
---|
2338 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
2339 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
2340 | ;; |
---|
2341 | esac >> confcache |
---|
2342 | if cmp -s $cache_file confcache; then |
---|
2343 | : |
---|
2344 | else |
---|
2345 | if test -w $cache_file; then |
---|
2346 | echo "updating cache $cache_file" |
---|
2347 | cat confcache > $cache_file |
---|
2348 | else |
---|
2349 | echo "not updating unwritable cache $cache_file" |
---|
2350 | fi |
---|
2351 | fi |
---|
2352 | rm -f confcache |
---|
2353 | |
---|
2354 | |
---|
2355 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
---|
2356 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
---|
2357 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
---|
2358 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
---|
2359 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
---|
2360 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
---|
2361 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
---|
2362 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
---|
2363 | |
---|
2364 | # Reload cache, that may have been modified by ltconfig |
---|
2365 | if test -r "$cache_file"; then |
---|
2366 | echo "loading cache $cache_file" |
---|
2367 | . $cache_file |
---|
2368 | else |
---|
2369 | echo "creating cache $cache_file" |
---|
2370 | > $cache_file |
---|
2371 | fi |
---|
2372 | |
---|
2373 | |
---|
2374 | # This can be used to rebuild libtool when needed |
---|
2375 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
---|
2376 | |
---|
2377 | # Always use our own libtool. |
---|
2378 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
2379 | |
---|
2380 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
2381 | # clobbered by the next message. |
---|
2382 | exec 5>>./config.log |
---|
2383 | |
---|
2384 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
2385 | for ac_prog in flex lex |
---|
2386 | do |
---|
2387 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2388 | set dummy $ac_prog; ac_word=$2 |
---|
2389 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2390 | echo "configure:2391: checking for $ac_word" >&5 |
---|
2391 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
2392 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2393 | else |
---|
2394 | if test -n "$LEX"; then |
---|
2395 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
2396 | else |
---|
2397 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2398 | ac_dummy="$PATH" |
---|
2399 | for ac_dir in $ac_dummy; do |
---|
2400 | test -z "$ac_dir" && ac_dir=. |
---|
2401 | if test -f $ac_dir/$ac_word; then |
---|
2402 | ac_cv_prog_LEX="$ac_prog" |
---|
2403 | break |
---|
2404 | fi |
---|
2405 | done |
---|
2406 | IFS="$ac_save_ifs" |
---|
2407 | fi |
---|
2408 | fi |
---|
2409 | LEX="$ac_cv_prog_LEX" |
---|
2410 | if test -n "$LEX"; then |
---|
2411 | echo "$ac_t""$LEX" 1>&6 |
---|
2412 | else |
---|
2413 | echo "$ac_t""no" 1>&6 |
---|
2414 | fi |
---|
2415 | |
---|
2416 | test -n "$LEX" && break |
---|
2417 | done |
---|
2418 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" |
---|
2419 | |
---|
2420 | # Extract the first word of "flex", so it can be a program name with args. |
---|
2421 | set dummy flex; ac_word=$2 |
---|
2422 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2423 | echo "configure:2424: checking for $ac_word" >&5 |
---|
2424 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
2425 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2426 | else |
---|
2427 | if test -n "$LEX"; then |
---|
2428 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
2429 | else |
---|
2430 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2431 | ac_dummy="$PATH" |
---|
2432 | for ac_dir in $ac_dummy; do |
---|
2433 | test -z "$ac_dir" && ac_dir=. |
---|
2434 | if test -f $ac_dir/$ac_word; then |
---|
2435 | ac_cv_prog_LEX="flex" |
---|
2436 | break |
---|
2437 | fi |
---|
2438 | done |
---|
2439 | IFS="$ac_save_ifs" |
---|
2440 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
---|
2441 | fi |
---|
2442 | fi |
---|
2443 | LEX="$ac_cv_prog_LEX" |
---|
2444 | if test -n "$LEX"; then |
---|
2445 | echo "$ac_t""$LEX" 1>&6 |
---|
2446 | else |
---|
2447 | echo "$ac_t""no" 1>&6 |
---|
2448 | fi |
---|
2449 | |
---|
2450 | if test -z "$LEXLIB" |
---|
2451 | then |
---|
2452 | case "$LEX" in |
---|
2453 | flex*) ac_lib=fl ;; |
---|
2454 | *) ac_lib=l ;; |
---|
2455 | esac |
---|
2456 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
---|
2457 | echo "configure:2458: checking for yywrap in -l$ac_lib" >&5 |
---|
2458 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
---|
2459 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2460 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2461 | else |
---|
2462 | ac_save_LIBS="$LIBS" |
---|
2463 | LIBS="-l$ac_lib $LIBS" |
---|
2464 | cat > conftest.$ac_ext <<EOF |
---|
2465 | #line 2466 "configure" |
---|
2466 | #include "confdefs.h" |
---|
2467 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2468 | /* We use char because int might match the return type of a gcc2 |
---|
2469 | builtin and then its argument prototype would still apply. */ |
---|
2470 | char yywrap(); |
---|
2471 | |
---|
2472 | int main() { |
---|
2473 | yywrap() |
---|
2474 | ; return 0; } |
---|
2475 | EOF |
---|
2476 | if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2477 | rm -rf conftest* |
---|
2478 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2479 | else |
---|
2480 | echo "configure: failed program was:" >&5 |
---|
2481 | cat conftest.$ac_ext >&5 |
---|
2482 | rm -rf conftest* |
---|
2483 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2484 | fi |
---|
2485 | rm -f conftest* |
---|
2486 | LIBS="$ac_save_LIBS" |
---|
2487 | |
---|
2488 | fi |
---|
2489 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2490 | echo "$ac_t""yes" 1>&6 |
---|
2491 | LEXLIB="-l$ac_lib" |
---|
2492 | else |
---|
2493 | echo "$ac_t""no" 1>&6 |
---|
2494 | fi |
---|
2495 | |
---|
2496 | fi |
---|
2497 | |
---|
2498 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 |
---|
2499 | echo "configure:2500: checking lex output file root" >&5 |
---|
2500 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
---|
2501 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2502 | else |
---|
2503 | # The minimal lex program is just a single line: %%. But some broken lexes |
---|
2504 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
---|
2505 | echo '%% |
---|
2506 | %%' | $LEX |
---|
2507 | if test -f lex.yy.c; then |
---|
2508 | ac_cv_prog_lex_root=lex.yy |
---|
2509 | elif test -f lexyy.c; then |
---|
2510 | ac_cv_prog_lex_root=lexyy |
---|
2511 | else |
---|
2512 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } |
---|
2513 | fi |
---|
2514 | fi |
---|
2515 | |
---|
2516 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 |
---|
2517 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
2518 | |
---|
2519 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 |
---|
2520 | echo "configure:2521: checking whether yytext is a pointer" >&5 |
---|
2521 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
---|
2522 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2523 | else |
---|
2524 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
2525 | # default is implementation-dependent. Figure out which it is, since |
---|
2526 | # not all implementations provide the %pointer and %array declarations. |
---|
2527 | ac_cv_prog_lex_yytext_pointer=no |
---|
2528 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
---|
2529 | ac_save_LIBS="$LIBS" |
---|
2530 | LIBS="$LIBS $LEXLIB" |
---|
2531 | cat > conftest.$ac_ext <<EOF |
---|
2532 | #line 2533 "configure" |
---|
2533 | #include "confdefs.h" |
---|
2534 | `cat $LEX_OUTPUT_ROOT.c` |
---|
2535 | int main() { |
---|
2536 | |
---|
2537 | ; return 0; } |
---|
2538 | EOF |
---|
2539 | if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2540 | rm -rf conftest* |
---|
2541 | ac_cv_prog_lex_yytext_pointer=yes |
---|
2542 | else |
---|
2543 | echo "configure: failed program was:" >&5 |
---|
2544 | cat conftest.$ac_ext >&5 |
---|
2545 | fi |
---|
2546 | rm -f conftest* |
---|
2547 | LIBS="$ac_save_LIBS" |
---|
2548 | rm -f "${LEX_OUTPUT_ROOT}.c" |
---|
2549 | |
---|
2550 | fi |
---|
2551 | |
---|
2552 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 |
---|
2553 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
2554 | cat >> confdefs.h <<\EOF |
---|
2555 | #define YYTEXT_POINTER 1 |
---|
2556 | EOF |
---|
2557 | |
---|
2558 | fi |
---|
2559 | |
---|
2560 | for ac_prog in 'bison -y' byacc |
---|
2561 | do |
---|
2562 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2563 | set dummy $ac_prog; ac_word=$2 |
---|
2564 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2565 | echo "configure:2566: checking for $ac_word" >&5 |
---|
2566 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
---|
2567 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2568 | else |
---|
2569 | if test -n "$YACC"; then |
---|
2570 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
2571 | else |
---|
2572 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2573 | ac_dummy="$PATH" |
---|
2574 | for ac_dir in $ac_dummy; do |
---|
2575 | test -z "$ac_dir" && ac_dir=. |
---|
2576 | if test -f $ac_dir/$ac_word; then |
---|
2577 | ac_cv_prog_YACC="$ac_prog" |
---|
2578 | break |
---|
2579 | fi |
---|
2580 | done |
---|
2581 | IFS="$ac_save_ifs" |
---|
2582 | fi |
---|
2583 | fi |
---|
2584 | YACC="$ac_cv_prog_YACC" |
---|
2585 | if test -n "$YACC"; then |
---|
2586 | echo "$ac_t""$YACC" 1>&6 |
---|
2587 | else |
---|
2588 | echo "$ac_t""no" 1>&6 |
---|
2589 | fi |
---|
2590 | |
---|
2591 | test -n "$YACC" && break |
---|
2592 | done |
---|
2593 | test -n "$YACC" || YACC="yacc" |
---|
2594 | |
---|
2595 | for ac_prog in "xrdb" |
---|
2596 | do |
---|
2597 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2598 | set dummy $ac_prog; ac_word=$2 |
---|
2599 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2600 | echo "configure:2601: checking for $ac_word" >&5 |
---|
2601 | if eval "test \"`echo '$''{'ac_cv_path_PATH_TO_XRDB'+set}'`\" = set"; then |
---|
2602 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2603 | else |
---|
2604 | case "$PATH_TO_XRDB" in |
---|
2605 | /*) |
---|
2606 | ac_cv_path_PATH_TO_XRDB="$PATH_TO_XRDB" # Let the user override the test with a path. |
---|
2607 | ;; |
---|
2608 | ?:/*) |
---|
2609 | ac_cv_path_PATH_TO_XRDB="$PATH_TO_XRDB" # Let the user override the test with a dos path. |
---|
2610 | ;; |
---|
2611 | *) |
---|
2612 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2613 | ac_dummy="$PATH" |
---|
2614 | for ac_dir in $ac_dummy; do |
---|
2615 | test -z "$ac_dir" && ac_dir=. |
---|
2616 | if test -f $ac_dir/$ac_word; then |
---|
2617 | ac_cv_path_PATH_TO_XRDB="$ac_dir/$ac_word" |
---|
2618 | break |
---|
2619 | fi |
---|
2620 | done |
---|
2621 | IFS="$ac_save_ifs" |
---|
2622 | ;; |
---|
2623 | esac |
---|
2624 | fi |
---|
2625 | PATH_TO_XRDB="$ac_cv_path_PATH_TO_XRDB" |
---|
2626 | if test -n "$PATH_TO_XRDB"; then |
---|
2627 | echo "$ac_t""$PATH_TO_XRDB" 1>&6 |
---|
2628 | else |
---|
2629 | echo "$ac_t""no" 1>&6 |
---|
2630 | fi |
---|
2631 | |
---|
2632 | test -n "$PATH_TO_XRDB" && break |
---|
2633 | done |
---|
2634 | |
---|
2635 | |
---|
2636 | |
---|
2637 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
---|
2638 | if test "${enable_compile_warnings+set}" = set; then |
---|
2639 | enableval="$enable_compile_warnings" |
---|
2640 | : |
---|
2641 | else |
---|
2642 | enable_compile_warnings=minimum |
---|
2643 | fi |
---|
2644 | |
---|
2645 | |
---|
2646 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
---|
2647 | echo "configure:2648: checking what warning flags to pass to the C compiler" >&5 |
---|
2648 | warnCFLAGS= |
---|
2649 | if test "x$GCC" != xyes; then |
---|
2650 | enable_compile_warnings=no |
---|
2651 | fi |
---|
2652 | |
---|
2653 | if test "x$enable_compile_warnings" != "xno"; then |
---|
2654 | if test "x$GCC" = "xyes"; then |
---|
2655 | case " $CFLAGS " in |
---|
2656 | *\ \ -Wall\ \ *) ;; |
---|
2657 | *) warnCFLAGS="-Wall -Wunused" ;; |
---|
2658 | esac |
---|
2659 | |
---|
2660 | ## -W is not all that useful. And it cannot be controlled |
---|
2661 | ## with individual -Wno-xxx flags, unlike -Wall |
---|
2662 | if test "x$enable_compile_warnings" = "xyes"; then |
---|
2663 | warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations" |
---|
2664 | fi |
---|
2665 | fi |
---|
2666 | fi |
---|
2667 | echo "$ac_t""$warnCFLAGS" 1>&6 |
---|
2668 | |
---|
2669 | # Check whether --enable-iso-c or --disable-iso-c was given. |
---|
2670 | if test "${enable_iso_c+set}" = set; then |
---|
2671 | enableval="$enable_iso_c" |
---|
2672 | : |
---|
2673 | else |
---|
2674 | enable_iso_c=no |
---|
2675 | fi |
---|
2676 | |
---|
2677 | |
---|
2678 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
---|
2679 | echo "configure:2680: checking what language compliance flags to pass to the C compiler" >&5 |
---|
2680 | complCFLAGS= |
---|
2681 | if test "x$enable_iso_c" != "xno"; then |
---|
2682 | if test "x$GCC" = "xyes"; then |
---|
2683 | case " $CFLAGS " in |
---|
2684 | *\ \ -ansi\ \ *) ;; |
---|
2685 | *) complCFLAGS="$complCFLAGS -ansi" ;; |
---|
2686 | esac |
---|
2687 | |
---|
2688 | case " $CFLAGS " in |
---|
2689 | *\ \ -pedantic\ \ *) ;; |
---|
2690 | *) complCFLAGS="$complCFLAGS -pedantic" ;; |
---|
2691 | esac |
---|
2692 | fi |
---|
2693 | fi |
---|
2694 | echo "$ac_t""$complCFLAGS" 1>&6 |
---|
2695 | if test "x$cflags_set" != "xyes"; then |
---|
2696 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
---|
2697 | cflags_set=yes |
---|
2698 | |
---|
2699 | fi |
---|
2700 | |
---|
2701 | |
---|
2702 | |
---|
2703 | PTHREAD_LIB="" |
---|
2704 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
---|
2705 | echo "configure:2706: checking for pthread_create in -lpthread" >&5 |
---|
2706 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
2707 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2708 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2709 | else |
---|
2710 | ac_save_LIBS="$LIBS" |
---|
2711 | LIBS="-lpthread $LIBS" |
---|
2712 | cat > conftest.$ac_ext <<EOF |
---|
2713 | #line 2714 "configure" |
---|
2714 | #include "confdefs.h" |
---|
2715 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2716 | /* We use char because int might match the return type of a gcc2 |
---|
2717 | builtin and then its argument prototype would still apply. */ |
---|
2718 | char pthread_create(); |
---|
2719 | |
---|
2720 | int main() { |
---|
2721 | pthread_create() |
---|
2722 | ; return 0; } |
---|
2723 | EOF |
---|
2724 | if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2725 | rm -rf conftest* |
---|
2726 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2727 | else |
---|
2728 | echo "configure: failed program was:" >&5 |
---|
2729 | cat conftest.$ac_ext >&5 |
---|
2730 | rm -rf conftest* |
---|
2731 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2732 | fi |
---|
2733 | rm -f conftest* |
---|
2734 | LIBS="$ac_save_LIBS" |
---|
2735 | |
---|
2736 | fi |
---|
2737 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2738 | echo "$ac_t""yes" 1>&6 |
---|
2739 | PTHREAD_LIB="-lpthread" |
---|
2740 | else |
---|
2741 | echo "$ac_t""no" 1>&6 |
---|
2742 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
---|
2743 | echo "configure:2744: checking for pthread_create in -lpthreads" >&5 |
---|
2744 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
2745 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2746 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2747 | else |
---|
2748 | ac_save_LIBS="$LIBS" |
---|
2749 | LIBS="-lpthreads $LIBS" |
---|
2750 | cat > conftest.$ac_ext <<EOF |
---|
2751 | #line 2752 "configure" |
---|
2752 | #include "confdefs.h" |
---|
2753 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2754 | /* We use char because int might match the return type of a gcc2 |
---|
2755 | builtin and then its argument prototype would still apply. */ |
---|
2756 | char pthread_create(); |
---|
2757 | |
---|
2758 | int main() { |
---|
2759 | pthread_create() |
---|
2760 | ; return 0; } |
---|
2761 | EOF |
---|
2762 | if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2763 | rm -rf conftest* |
---|
2764 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2765 | else |
---|
2766 | echo "configure: failed program was:" >&5 |
---|
2767 | cat conftest.$ac_ext >&5 |
---|
2768 | rm -rf conftest* |
---|
2769 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2770 | fi |
---|
2771 | rm -f conftest* |
---|
2772 | LIBS="$ac_save_LIBS" |
---|
2773 | |
---|
2774 | fi |
---|
2775 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2776 | echo "$ac_t""yes" 1>&6 |
---|
2777 | PTHREAD_LIB="-lpthreads" |
---|
2778 | else |
---|
2779 | echo "$ac_t""no" 1>&6 |
---|
2780 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
---|
2781 | echo "configure:2782: checking for pthread_create in -lc_r" >&5 |
---|
2782 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
2783 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2784 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2785 | else |
---|
2786 | ac_save_LIBS="$LIBS" |
---|
2787 | LIBS="-lc_r $LIBS" |
---|
2788 | cat > conftest.$ac_ext <<EOF |
---|
2789 | #line 2790 "configure" |
---|
2790 | #include "confdefs.h" |
---|
2791 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2792 | /* We use char because int might match the return type of a gcc2 |
---|
2793 | builtin and then its argument prototype would still apply. */ |
---|
2794 | char pthread_create(); |
---|
2795 | |
---|
2796 | int main() { |
---|
2797 | pthread_create() |
---|
2798 | ; return 0; } |
---|
2799 | EOF |
---|
2800 | if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2801 | rm -rf conftest* |
---|
2802 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2803 | else |
---|
2804 | echo "configure: failed program was:" >&5 |
---|
2805 | cat conftest.$ac_ext >&5 |
---|
2806 | rm -rf conftest* |
---|
2807 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2808 | fi |
---|
2809 | rm -f conftest* |
---|
2810 | LIBS="$ac_save_LIBS" |
---|
2811 | |
---|
2812 | fi |
---|
2813 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2814 | echo "$ac_t""yes" 1>&6 |
---|
2815 | PTHREAD_LIB="-lc_r" |
---|
2816 | else |
---|
2817 | echo "$ac_t""no" 1>&6 |
---|
2818 | echo $ac_n "checking for pthread_create""... $ac_c" 1>&6 |
---|
2819 | echo "configure:2820: checking for pthread_create" >&5 |
---|
2820 | if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then |
---|
2821 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2822 | else |
---|
2823 | cat > conftest.$ac_ext <<EOF |
---|
2824 | #line 2825 "configure" |
---|
2825 | #include "confdefs.h" |
---|
2826 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2827 | which can conflict with char pthread_create(); below. */ |
---|
2828 | #include <assert.h> |
---|
2829 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2830 | /* We use char because int might match the return type of a gcc2 |
---|
2831 | builtin and then its argument prototype would still apply. */ |
---|
2832 | char pthread_create(); |
---|
2833 | |
---|
2834 | int main() { |
---|
2835 | |
---|
2836 | /* The GNU C library defines this for functions which it implements |
---|
2837 | to always fail with ENOSYS. Some functions are actually named |
---|
2838 | something starting with __ and the normal name is an alias. */ |
---|
2839 | #if defined (__stub_pthread_create) || defined (__stub___pthread_create) |
---|
2840 | choke me |
---|
2841 | #else |
---|
2842 | pthread_create(); |
---|
2843 | #endif |
---|
2844 | |
---|
2845 | ; return 0; } |
---|
2846 | EOF |
---|
2847 | if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2848 | rm -rf conftest* |
---|
2849 | eval "ac_cv_func_pthread_create=yes" |
---|
2850 | else |
---|
2851 | echo "configure: failed program was:" >&5 |
---|
2852 | cat conftest.$ac_ext >&5 |
---|
2853 | rm -rf conftest* |
---|
2854 | eval "ac_cv_func_pthread_create=no" |
---|
2855 | fi |
---|
2856 | rm -f conftest* |
---|
2857 | fi |
---|
2858 | |
---|
2859 | if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then |
---|
2860 | echo "$ac_t""yes" 1>&6 |
---|
2861 | : |
---|
2862 | else |
---|
2863 | echo "$ac_t""no" 1>&6 |
---|
2864 | fi |
---|
2865 | |
---|
2866 | |
---|
2867 | fi |
---|
2868 | |
---|
2869 | |
---|
2870 | fi |
---|
2871 | |
---|
2872 | |
---|
2873 | fi |
---|
2874 | |
---|
2875 | |
---|
2876 | |
---|
2877 | |
---|
2878 | |
---|
2879 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
---|
2880 | if test "${with_gtk_prefix+set}" = set; then |
---|
2881 | withval="$with_gtk_prefix" |
---|
2882 | gtk_config_prefix="$withval" |
---|
2883 | else |
---|
2884 | gtk_config_prefix="" |
---|
2885 | fi |
---|
2886 | |
---|
2887 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
---|
2888 | if test "${with_gtk_exec_prefix+set}" = set; then |
---|
2889 | withval="$with_gtk_exec_prefix" |
---|
2890 | gtk_config_exec_prefix="$withval" |
---|
2891 | else |
---|
2892 | gtk_config_exec_prefix="" |
---|
2893 | fi |
---|
2894 | |
---|
2895 | # Check whether --enable-gtktest or --disable-gtktest was given. |
---|
2896 | if test "${enable_gtktest+set}" = set; then |
---|
2897 | enableval="$enable_gtktest" |
---|
2898 | : |
---|
2899 | else |
---|
2900 | enable_gtktest=yes |
---|
2901 | fi |
---|
2902 | |
---|
2903 | |
---|
2904 | for module in . |
---|
2905 | do |
---|
2906 | case "$module" in |
---|
2907 | gthread) |
---|
2908 | gtk_config_args="$gtk_config_args gthread" |
---|
2909 | ;; |
---|
2910 | esac |
---|
2911 | done |
---|
2912 | |
---|
2913 | if test x$gtk_config_exec_prefix != x ; then |
---|
2914 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
---|
2915 | if test x${GTK_CONFIG+set} != xset ; then |
---|
2916 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
---|
2917 | fi |
---|
2918 | fi |
---|
2919 | if test x$gtk_config_prefix != x ; then |
---|
2920 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
---|
2921 | if test x${GTK_CONFIG+set} != xset ; then |
---|
2922 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
---|
2923 | fi |
---|
2924 | fi |
---|
2925 | |
---|
2926 | # Extract the first word of "gtk-config", so it can be a program name with args. |
---|
2927 | set dummy gtk-config; ac_word=$2 |
---|
2928 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2929 | echo "configure:2930: checking for $ac_word" >&5 |
---|
2930 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
---|
2931 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2932 | else |
---|
2933 | case "$GTK_CONFIG" in |
---|
2934 | /*) |
---|
2935 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
---|
2936 | ;; |
---|
2937 | ?:/*) |
---|
2938 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
---|
2939 | ;; |
---|
2940 | *) |
---|
2941 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2942 | ac_dummy="$PATH" |
---|
2943 | for ac_dir in $ac_dummy; do |
---|
2944 | test -z "$ac_dir" && ac_dir=. |
---|
2945 | if test -f $ac_dir/$ac_word; then |
---|
2946 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
---|
2947 | break |
---|
2948 | fi |
---|
2949 | done |
---|
2950 | IFS="$ac_save_ifs" |
---|
2951 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
---|
2952 | ;; |
---|
2953 | esac |
---|
2954 | fi |
---|
2955 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
---|
2956 | if test -n "$GTK_CONFIG"; then |
---|
2957 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
---|
2958 | else |
---|
2959 | echo "$ac_t""no" 1>&6 |
---|
2960 | fi |
---|
2961 | |
---|
2962 | min_gtk_version=1.2.0 |
---|
2963 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
---|
2964 | echo "configure:2965: checking for GTK - version >= $min_gtk_version" >&5 |
---|
2965 | no_gtk="" |
---|
2966 | if test "$GTK_CONFIG" = "no" ; then |
---|
2967 | no_gtk=yes |
---|
2968 | else |
---|
2969 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
---|
2970 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
---|
2971 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2972 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
2973 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2974 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
2975 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2976 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
2977 | if test "x$enable_gtktest" = "xyes" ; then |
---|
2978 | ac_save_CFLAGS="$CFLAGS" |
---|
2979 | ac_save_LIBS="$LIBS" |
---|
2980 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
2981 | LIBS="$GTK_LIBS $LIBS" |
---|
2982 | rm -f conf.gtktest |
---|
2983 | if test "$cross_compiling" = yes; then |
---|
2984 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
2985 | else |
---|
2986 | cat > conftest.$ac_ext <<EOF |
---|
2987 | #line 2988 "configure" |
---|
2988 | #include "confdefs.h" |
---|
2989 | |
---|
2990 | #include <gtk/gtk.h> |
---|
2991 | #include <stdio.h> |
---|
2992 | #include <stdlib.h> |
---|
2993 | |
---|
2994 | int |
---|
2995 | main () |
---|
2996 | { |
---|
2997 | int major, minor, micro; |
---|
2998 | char *tmp_version; |
---|
2999 | |
---|
3000 | system ("touch conf.gtktest"); |
---|
3001 | |
---|
3002 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
3003 | tmp_version = g_strdup("$min_gtk_version"); |
---|
3004 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
3005 | printf("%s, bad version string\n", "$min_gtk_version"); |
---|
3006 | exit(1); |
---|
3007 | } |
---|
3008 | |
---|
3009 | if ((gtk_major_version != $gtk_config_major_version) || |
---|
3010 | (gtk_minor_version != $gtk_config_minor_version) || |
---|
3011 | (gtk_micro_version != $gtk_config_micro_version)) |
---|
3012 | { |
---|
3013 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
---|
3014 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
---|
3015 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3016 | printf ("*** was found! If gtk-config was correct, then it is best\n"); |
---|
3017 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
---|
3018 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
---|
3019 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
---|
3020 | printf("*** required on your system.\n"); |
---|
3021 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); |
---|
3022 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); |
---|
3023 | printf("*** before re-running configure\n"); |
---|
3024 | } |
---|
3025 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
---|
3026 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
---|
3027 | (gtk_minor_version != GTK_MINOR_VERSION) || |
---|
3028 | (gtk_micro_version != GTK_MICRO_VERSION)) |
---|
3029 | { |
---|
3030 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
---|
3031 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
---|
3032 | printf("*** library (version %d.%d.%d)\n", |
---|
3033 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3034 | } |
---|
3035 | #endif /* defined (GTK_MAJOR_VERSION) ... */ |
---|
3036 | else |
---|
3037 | { |
---|
3038 | if ((gtk_major_version > major) || |
---|
3039 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
---|
3040 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
---|
3041 | { |
---|
3042 | return 0; |
---|
3043 | } |
---|
3044 | else |
---|
3045 | { |
---|
3046 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
---|
3047 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3048 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
---|
3049 | major, minor, micro); |
---|
3050 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
---|
3051 | printf("***\n"); |
---|
3052 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
---|
3053 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); |
---|
3054 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
---|
3055 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); |
---|
3056 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); |
---|
3057 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
---|
3058 | printf("*** so that the correct libraries are found at run-time))\n"); |
---|
3059 | } |
---|
3060 | } |
---|
3061 | return 1; |
---|
3062 | } |
---|
3063 | |
---|
3064 | EOF |
---|
3065 | if { (eval echo configure:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3066 | then |
---|
3067 | : |
---|
3068 | else |
---|
3069 | echo "configure: failed program was:" >&5 |
---|
3070 | cat conftest.$ac_ext >&5 |
---|
3071 | rm -fr conftest* |
---|
3072 | no_gtk=yes |
---|
3073 | fi |
---|
3074 | rm -fr conftest* |
---|
3075 | fi |
---|
3076 | |
---|
3077 | CFLAGS="$ac_save_CFLAGS" |
---|
3078 | LIBS="$ac_save_LIBS" |
---|
3079 | fi |
---|
3080 | fi |
---|
3081 | if test "x$no_gtk" = x ; then |
---|
3082 | echo "$ac_t""yes" 1>&6 |
---|
3083 | : |
---|
3084 | else |
---|
3085 | echo "$ac_t""no" 1>&6 |
---|
3086 | if test "$GTK_CONFIG" = "no" ; then |
---|
3087 | echo "*** The gtk-config script installed by GTK could not be found" |
---|
3088 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" |
---|
3089 | echo "*** your path, or set the GTK_CONFIG environment variable to the" |
---|
3090 | echo "*** full path to gtk-config." |
---|
3091 | else |
---|
3092 | if test -f conf.gtktest ; then |
---|
3093 | : |
---|
3094 | else |
---|
3095 | echo "*** Could not run GTK test program, checking why..." |
---|
3096 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
3097 | LIBS="$LIBS $GTK_LIBS" |
---|
3098 | cat > conftest.$ac_ext <<EOF |
---|
3099 | #line 3100 "configure" |
---|
3100 | #include "confdefs.h" |
---|
3101 | |
---|
3102 | #include <gtk/gtk.h> |
---|
3103 | #include <stdio.h> |
---|
3104 | |
---|
3105 | int main() { |
---|
3106 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
---|
3107 | ; return 0; } |
---|
3108 | EOF |
---|
3109 | if { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3110 | rm -rf conftest* |
---|
3111 | echo "*** The test program compiled, but did not run. This usually means" |
---|
3112 | echo "*** that the run-time linker is not finding GTK or finding the wrong" |
---|
3113 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" |
---|
3114 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
3115 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
3116 | echo "*** is required on your system" |
---|
3117 | echo "***" |
---|
3118 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
3119 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
3120 | echo "***" |
---|
3121 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
---|
3122 | echo "*** came with the system with the command" |
---|
3123 | echo "***" |
---|
3124 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
---|
3125 | else |
---|
3126 | echo "configure: failed program was:" >&5 |
---|
3127 | cat conftest.$ac_ext >&5 |
---|
3128 | rm -rf conftest* |
---|
3129 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
3130 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
---|
3131 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
---|
3132 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
---|
3133 | fi |
---|
3134 | rm -f conftest* |
---|
3135 | CFLAGS="$ac_save_CFLAGS" |
---|
3136 | LIBS="$ac_save_LIBS" |
---|
3137 | fi |
---|
3138 | fi |
---|
3139 | GTK_CFLAGS="" |
---|
3140 | GTK_LIBS="" |
---|
3141 | { echo "configure: error: GTK not installed" 1>&2; exit 1; } |
---|
3142 | fi |
---|
3143 | |
---|
3144 | |
---|
3145 | rm -f conf.gtktest |
---|
3146 | |
---|
3147 | CPPFLAGS="$CPPFLAGS $GTK_CFLAGS" |
---|
3148 | |
---|
3149 | saved_ldflags="$LDFLAGS" |
---|
3150 | LDFLAGS="$LDFLAGS $GTK_LIBS" |
---|
3151 | |
---|
3152 | gnome_cv_passdown_x_libs="$GTK_LIBS" |
---|
3153 | gnome_cv_passdown_X_LIBS="$GTK_LIBS" |
---|
3154 | gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS" |
---|
3155 | gnome_cv_passdown_GTK_LIBS="$GTK_LIBS" |
---|
3156 | |
---|
3157 | LDFLAGS="$saved_ldflags $GTK_LIBS" |
---|
3158 | |
---|
3159 | USE_DEVGTK=true |
---|
3160 | |
---|
3161 | |
---|
3162 | GNOME_HAVE_SM=true |
---|
3163 | case "$GTK_LIBS" in |
---|
3164 | *-lSM*) |
---|
3165 | ;; |
---|
3166 | *) |
---|
3167 | echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6 |
---|
3168 | echo "configure:3169: checking for SmcSaveYourselfDone in -lSM" >&5 |
---|
3169 | ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'` |
---|
3170 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3171 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3172 | else |
---|
3173 | ac_save_LIBS="$LIBS" |
---|
3174 | LIBS="-lSM $x_libs -lICE $LIBS" |
---|
3175 | cat > conftest.$ac_ext <<EOF |
---|
3176 | #line 3177 "configure" |
---|
3177 | #include "confdefs.h" |
---|
3178 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3179 | /* We use char because int might match the return type of a gcc2 |
---|
3180 | builtin and then its argument prototype would still apply. */ |
---|
3181 | char SmcSaveYourselfDone(); |
---|
3182 | |
---|
3183 | int main() { |
---|
3184 | SmcSaveYourselfDone() |
---|
3185 | ; return 0; } |
---|
3186 | EOF |
---|
3187 | if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3188 | rm -rf conftest* |
---|
3189 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3190 | else |
---|
3191 | echo "configure: failed program was:" >&5 |
---|
3192 | cat conftest.$ac_ext >&5 |
---|
3193 | rm -rf conftest* |
---|
3194 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3195 | fi |
---|
3196 | rm -f conftest* |
---|
3197 | LIBS="$ac_save_LIBS" |
---|
3198 | |
---|
3199 | fi |
---|
3200 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3201 | echo "$ac_t""yes" 1>&6 |
---|
3202 | GTK_LIBS="-lSM -lICE $GTK_LIBS" |
---|
3203 | else |
---|
3204 | echo "$ac_t""no" 1>&6 |
---|
3205 | GNOME_HAVE_SM=false |
---|
3206 | fi |
---|
3207 | |
---|
3208 | ;; |
---|
3209 | esac |
---|
3210 | |
---|
3211 | if test "$GNOME_HAVE_SM" = true; then |
---|
3212 | for ac_hdr in X11/SM/SMlib.h |
---|
3213 | do |
---|
3214 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3215 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3216 | echo "configure:3217: checking for $ac_hdr" >&5 |
---|
3217 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3218 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3219 | else |
---|
3220 | cat > conftest.$ac_ext <<EOF |
---|
3221 | #line 3222 "configure" |
---|
3222 | #include "confdefs.h" |
---|
3223 | #include <$ac_hdr> |
---|
3224 | EOF |
---|
3225 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3226 | { (eval echo configure:3227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3227 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3228 | if test -z "$ac_err"; then |
---|
3229 | rm -rf conftest* |
---|
3230 | eval "ac_cv_header_$ac_safe=yes" |
---|
3231 | else |
---|
3232 | echo "$ac_err" >&5 |
---|
3233 | echo "configure: failed program was:" >&5 |
---|
3234 | cat conftest.$ac_ext >&5 |
---|
3235 | rm -rf conftest* |
---|
3236 | eval "ac_cv_header_$ac_safe=no" |
---|
3237 | fi |
---|
3238 | rm -f conftest* |
---|
3239 | fi |
---|
3240 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3241 | echo "$ac_t""yes" 1>&6 |
---|
3242 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3243 | cat >> confdefs.h <<EOF |
---|
3244 | #define $ac_tr_hdr 1 |
---|
3245 | EOF |
---|
3246 | |
---|
3247 | else |
---|
3248 | echo "$ac_t""no" 1>&6 |
---|
3249 | GNOME_HAVE_SM=false |
---|
3250 | fi |
---|
3251 | done |
---|
3252 | |
---|
3253 | fi |
---|
3254 | |
---|
3255 | if test "$GNOME_HAVE_SM" = true; then |
---|
3256 | cat >> confdefs.h <<\EOF |
---|
3257 | #define HAVE_LIBSM 1 |
---|
3258 | EOF |
---|
3259 | |
---|
3260 | fi |
---|
3261 | |
---|
3262 | XPM_LIBS="" |
---|
3263 | echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6 |
---|
3264 | echo "configure:3265: checking for XpmFreeXpmImage in -lXpm" >&5 |
---|
3265 | ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'` |
---|
3266 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3267 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3268 | else |
---|
3269 | ac_save_LIBS="$LIBS" |
---|
3270 | LIBS="-lXpm $x_libs $LIBS" |
---|
3271 | cat > conftest.$ac_ext <<EOF |
---|
3272 | #line 3273 "configure" |
---|
3273 | #include "confdefs.h" |
---|
3274 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3275 | /* We use char because int might match the return type of a gcc2 |
---|
3276 | builtin and then its argument prototype would still apply. */ |
---|
3277 | char XpmFreeXpmImage(); |
---|
3278 | |
---|
3279 | int main() { |
---|
3280 | XpmFreeXpmImage() |
---|
3281 | ; return 0; } |
---|
3282 | EOF |
---|
3283 | if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3284 | rm -rf conftest* |
---|
3285 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3286 | else |
---|
3287 | echo "configure: failed program was:" >&5 |
---|
3288 | cat conftest.$ac_ext >&5 |
---|
3289 | rm -rf conftest* |
---|
3290 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3291 | fi |
---|
3292 | rm -f conftest* |
---|
3293 | LIBS="$ac_save_LIBS" |
---|
3294 | |
---|
3295 | fi |
---|
3296 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3297 | echo "$ac_t""yes" 1>&6 |
---|
3298 | XPM_LIBS="-lXpm" |
---|
3299 | else |
---|
3300 | echo "$ac_t""no" 1>&6 |
---|
3301 | fi |
---|
3302 | |
---|
3303 | |
---|
3304 | |
---|
3305 | |
---|
3306 | LDFLAGS="$saved_ldflags" |
---|
3307 | |
---|
3308 | |
---|
3309 | |
---|
3310 | |
---|
3311 | |
---|
3312 | # Extract the first word of "gnome-config", so it can be a program name with args. |
---|
3313 | set dummy gnome-config; ac_word=$2 |
---|
3314 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3315 | echo "configure:3316: checking for $ac_word" >&5 |
---|
3316 | if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then |
---|
3317 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3318 | else |
---|
3319 | case "$GNOME_CONFIG" in |
---|
3320 | /*) |
---|
3321 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
---|
3322 | ;; |
---|
3323 | ?:/*) |
---|
3324 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. |
---|
3325 | ;; |
---|
3326 | *) |
---|
3327 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3328 | ac_dummy="$PATH" |
---|
3329 | for ac_dir in $ac_dummy; do |
---|
3330 | test -z "$ac_dir" && ac_dir=. |
---|
3331 | if test -f $ac_dir/$ac_word; then |
---|
3332 | ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" |
---|
3333 | break |
---|
3334 | fi |
---|
3335 | done |
---|
3336 | IFS="$ac_save_ifs" |
---|
3337 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
---|
3338 | ;; |
---|
3339 | esac |
---|
3340 | fi |
---|
3341 | GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" |
---|
3342 | if test -n "$GNOME_CONFIG"; then |
---|
3343 | echo "$ac_t""$GNOME_CONFIG" 1>&6 |
---|
3344 | else |
---|
3345 | echo "$ac_t""no" 1>&6 |
---|
3346 | fi |
---|
3347 | |
---|
3348 | if test "$GNOME_CONFIG" = no; then |
---|
3349 | if test xfailure = xfailure; then |
---|
3350 | { echo "configure: error: Could not find gnome-config" 1>&2; exit 1; } |
---|
3351 | fi |
---|
3352 | fi |
---|
3353 | GNOME_XML_CFLAGS=`$GNOME_CONFIG --cflags xml` |
---|
3354 | |
---|
3355 | echo $ac_n "checking for xmlNewDoc in -lxml""... $ac_c" 1>&6 |
---|
3356 | echo "configure:3357: checking for xmlNewDoc in -lxml" >&5 |
---|
3357 | ac_lib_var=`echo xml'_'xmlNewDoc | sed 'y%./+-%__p_%'` |
---|
3358 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3359 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3360 | else |
---|
3361 | ac_save_LIBS="$LIBS" |
---|
3362 | LIBS="-lxml `$GNOME_CONFIG --libs xml` $LIBS" |
---|
3363 | cat > conftest.$ac_ext <<EOF |
---|
3364 | #line 3365 "configure" |
---|
3365 | #include "confdefs.h" |
---|
3366 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3367 | /* We use char because int might match the return type of a gcc2 |
---|
3368 | builtin and then its argument prototype would still apply. */ |
---|
3369 | char xmlNewDoc(); |
---|
3370 | |
---|
3371 | int main() { |
---|
3372 | xmlNewDoc() |
---|
3373 | ; return 0; } |
---|
3374 | EOF |
---|
3375 | if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3376 | rm -rf conftest* |
---|
3377 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3378 | else |
---|
3379 | echo "configure: failed program was:" >&5 |
---|
3380 | cat conftest.$ac_ext >&5 |
---|
3381 | rm -rf conftest* |
---|
3382 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3383 | fi |
---|
3384 | rm -f conftest* |
---|
3385 | LIBS="$ac_save_LIBS" |
---|
3386 | |
---|
3387 | fi |
---|
3388 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3389 | echo "$ac_t""yes" 1>&6 |
---|
3390 | |
---|
3391 | |
---|
3392 | GNOME_XML_LIB=`$GNOME_CONFIG --libs xml` |
---|
3393 | |
---|
3394 | else |
---|
3395 | echo "$ac_t""no" 1>&6 |
---|
3396 | |
---|
3397 | if test xfailure = xfailure; then |
---|
3398 | { echo "configure: error: Could not link sample xml program" 1>&2; exit 1; } |
---|
3399 | fi |
---|
3400 | |
---|
3401 | fi |
---|
3402 | |
---|
3403 | |
---|
3404 | |
---|
3405 | |
---|
3406 | |
---|
3407 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
---|
3408 | if test "${with_gtk_prefix+set}" = set; then |
---|
3409 | withval="$with_gtk_prefix" |
---|
3410 | gtk_config_prefix="$withval" |
---|
3411 | else |
---|
3412 | gtk_config_prefix="" |
---|
3413 | fi |
---|
3414 | |
---|
3415 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
---|
3416 | if test "${with_gtk_exec_prefix+set}" = set; then |
---|
3417 | withval="$with_gtk_exec_prefix" |
---|
3418 | gtk_config_exec_prefix="$withval" |
---|
3419 | else |
---|
3420 | gtk_config_exec_prefix="" |
---|
3421 | fi |
---|
3422 | |
---|
3423 | # Check whether --enable-gtktest or --disable-gtktest was given. |
---|
3424 | if test "${enable_gtktest+set}" = set; then |
---|
3425 | enableval="$enable_gtktest" |
---|
3426 | : |
---|
3427 | else |
---|
3428 | enable_gtktest=yes |
---|
3429 | fi |
---|
3430 | |
---|
3431 | |
---|
3432 | for module in . |
---|
3433 | do |
---|
3434 | case "$module" in |
---|
3435 | gthread) |
---|
3436 | gtk_config_args="$gtk_config_args gthread" |
---|
3437 | ;; |
---|
3438 | esac |
---|
3439 | done |
---|
3440 | |
---|
3441 | if test x$gtk_config_exec_prefix != x ; then |
---|
3442 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
---|
3443 | if test x${GTK_CONFIG+set} != xset ; then |
---|
3444 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
---|
3445 | fi |
---|
3446 | fi |
---|
3447 | if test x$gtk_config_prefix != x ; then |
---|
3448 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
---|
3449 | if test x${GTK_CONFIG+set} != xset ; then |
---|
3450 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
---|
3451 | fi |
---|
3452 | fi |
---|
3453 | |
---|
3454 | # Extract the first word of "gtk-config", so it can be a program name with args. |
---|
3455 | set dummy gtk-config; ac_word=$2 |
---|
3456 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3457 | echo "configure:3458: checking for $ac_word" >&5 |
---|
3458 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
---|
3459 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3460 | else |
---|
3461 | case "$GTK_CONFIG" in |
---|
3462 | /*) |
---|
3463 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
---|
3464 | ;; |
---|
3465 | ?:/*) |
---|
3466 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
---|
3467 | ;; |
---|
3468 | *) |
---|
3469 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3470 | ac_dummy="$PATH" |
---|
3471 | for ac_dir in $ac_dummy; do |
---|
3472 | test -z "$ac_dir" && ac_dir=. |
---|
3473 | if test -f $ac_dir/$ac_word; then |
---|
3474 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
---|
3475 | break |
---|
3476 | fi |
---|
3477 | done |
---|
3478 | IFS="$ac_save_ifs" |
---|
3479 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
---|
3480 | ;; |
---|
3481 | esac |
---|
3482 | fi |
---|
3483 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
---|
3484 | if test -n "$GTK_CONFIG"; then |
---|
3485 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
---|
3486 | else |
---|
3487 | echo "$ac_t""no" 1>&6 |
---|
3488 | fi |
---|
3489 | |
---|
3490 | min_gtk_version=1.2.5 |
---|
3491 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
---|
3492 | echo "configure:3493: checking for GTK - version >= $min_gtk_version" >&5 |
---|
3493 | no_gtk="" |
---|
3494 | if test "$GTK_CONFIG" = "no" ; then |
---|
3495 | no_gtk=yes |
---|
3496 | else |
---|
3497 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
---|
3498 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
---|
3499 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
3500 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
3501 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
3502 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
3503 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
3504 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
3505 | if test "x$enable_gtktest" = "xyes" ; then |
---|
3506 | ac_save_CFLAGS="$CFLAGS" |
---|
3507 | ac_save_LIBS="$LIBS" |
---|
3508 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
3509 | LIBS="$GTK_LIBS $LIBS" |
---|
3510 | rm -f conf.gtktest |
---|
3511 | if test "$cross_compiling" = yes; then |
---|
3512 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
3513 | else |
---|
3514 | cat > conftest.$ac_ext <<EOF |
---|
3515 | #line 3516 "configure" |
---|
3516 | #include "confdefs.h" |
---|
3517 | |
---|
3518 | #include <gtk/gtk.h> |
---|
3519 | #include <stdio.h> |
---|
3520 | #include <stdlib.h> |
---|
3521 | |
---|
3522 | int |
---|
3523 | main () |
---|
3524 | { |
---|
3525 | int major, minor, micro; |
---|
3526 | char *tmp_version; |
---|
3527 | |
---|
3528 | system ("touch conf.gtktest"); |
---|
3529 | |
---|
3530 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
3531 | tmp_version = g_strdup("$min_gtk_version"); |
---|
3532 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
3533 | printf("%s, bad version string\n", "$min_gtk_version"); |
---|
3534 | exit(1); |
---|
3535 | } |
---|
3536 | |
---|
3537 | if ((gtk_major_version != $gtk_config_major_version) || |
---|
3538 | (gtk_minor_version != $gtk_config_minor_version) || |
---|
3539 | (gtk_micro_version != $gtk_config_micro_version)) |
---|
3540 | { |
---|
3541 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
---|
3542 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
---|
3543 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3544 | printf ("*** was found! If gtk-config was correct, then it is best\n"); |
---|
3545 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
---|
3546 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
---|
3547 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
---|
3548 | printf("*** required on your system.\n"); |
---|
3549 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); |
---|
3550 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); |
---|
3551 | printf("*** before re-running configure\n"); |
---|
3552 | } |
---|
3553 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
---|
3554 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
---|
3555 | (gtk_minor_version != GTK_MINOR_VERSION) || |
---|
3556 | (gtk_micro_version != GTK_MICRO_VERSION)) |
---|
3557 | { |
---|
3558 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
---|
3559 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
---|
3560 | printf("*** library (version %d.%d.%d)\n", |
---|
3561 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3562 | } |
---|
3563 | #endif /* defined (GTK_MAJOR_VERSION) ... */ |
---|
3564 | else |
---|
3565 | { |
---|
3566 | if ((gtk_major_version > major) || |
---|
3567 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
---|
3568 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
---|
3569 | { |
---|
3570 | return 0; |
---|
3571 | } |
---|
3572 | else |
---|
3573 | { |
---|
3574 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
---|
3575 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3576 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
---|
3577 | major, minor, micro); |
---|
3578 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
---|
3579 | printf("***\n"); |
---|
3580 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
---|
3581 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); |
---|
3582 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
---|
3583 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); |
---|
3584 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); |
---|
3585 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
---|
3586 | printf("*** so that the correct libraries are found at run-time))\n"); |
---|
3587 | } |
---|
3588 | } |
---|
3589 | return 1; |
---|
3590 | } |
---|
3591 | |
---|
3592 | EOF |
---|
3593 | if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3594 | then |
---|
3595 | : |
---|
3596 | else |
---|
3597 | echo "configure: failed program was:" >&5 |
---|
3598 | cat conftest.$ac_ext >&5 |
---|
3599 | rm -fr conftest* |
---|
3600 | no_gtk=yes |
---|
3601 | fi |
---|
3602 | rm -fr conftest* |
---|
3603 | fi |
---|
3604 | |
---|
3605 | CFLAGS="$ac_save_CFLAGS" |
---|
3606 | LIBS="$ac_save_LIBS" |
---|
3607 | fi |
---|
3608 | fi |
---|
3609 | if test "x$no_gtk" = x ; then |
---|
3610 | echo "$ac_t""yes" 1>&6 |
---|
3611 | : |
---|
3612 | else |
---|
3613 | echo "$ac_t""no" 1>&6 |
---|
3614 | if test "$GTK_CONFIG" = "no" ; then |
---|
3615 | echo "*** The gtk-config script installed by GTK could not be found" |
---|
3616 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" |
---|
3617 | echo "*** your path, or set the GTK_CONFIG environment variable to the" |
---|
3618 | echo "*** full path to gtk-config." |
---|
3619 | else |
---|
3620 | if test -f conf.gtktest ; then |
---|
3621 | : |
---|
3622 | else |
---|
3623 | echo "*** Could not run GTK test program, checking why..." |
---|
3624 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
3625 | LIBS="$LIBS $GTK_LIBS" |
---|
3626 | cat > conftest.$ac_ext <<EOF |
---|
3627 | #line 3628 "configure" |
---|
3628 | #include "confdefs.h" |
---|
3629 | |
---|
3630 | #include <gtk/gtk.h> |
---|
3631 | #include <stdio.h> |
---|
3632 | |
---|
3633 | int main() { |
---|
3634 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
---|
3635 | ; return 0; } |
---|
3636 | EOF |
---|
3637 | if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3638 | rm -rf conftest* |
---|
3639 | echo "*** The test program compiled, but did not run. This usually means" |
---|
3640 | echo "*** that the run-time linker is not finding GTK or finding the wrong" |
---|
3641 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" |
---|
3642 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
3643 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
3644 | echo "*** is required on your system" |
---|
3645 | echo "***" |
---|
3646 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
3647 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
3648 | echo "***" |
---|
3649 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
---|
3650 | echo "*** came with the system with the command" |
---|
3651 | echo "***" |
---|
3652 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
---|
3653 | else |
---|
3654 | echo "configure: failed program was:" >&5 |
---|
3655 | cat conftest.$ac_ext >&5 |
---|
3656 | rm -rf conftest* |
---|
3657 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
3658 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
---|
3659 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
---|
3660 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
---|
3661 | fi |
---|
3662 | rm -f conftest* |
---|
3663 | CFLAGS="$ac_save_CFLAGS" |
---|
3664 | LIBS="$ac_save_LIBS" |
---|
3665 | fi |
---|
3666 | fi |
---|
3667 | GTK_CFLAGS="" |
---|
3668 | GTK_LIBS="" |
---|
3669 | |
---|
3670 | { echo "configure: error: Please upgrade your GTK+" 1>&2; exit 1; } |
---|
3671 | fi |
---|
3672 | |
---|
3673 | |
---|
3674 | rm -f conf.gtktest |
---|
3675 | |
---|
3676 | |
---|
3677 | CFLAGS_save=$CFLAGS |
---|
3678 | LIBS_save=$LIBS |
---|
3679 | CFLAGS=`gnome-config --cflags gnomeui` |
---|
3680 | LIBS=`gnome-config --libs gnomeui` |
---|
3681 | |
---|
3682 | echo $ac_n "checking for gnome_window_icon_set_default_from_file in -lgnomeui""... $ac_c" 1>&6 |
---|
3683 | echo "configure:3684: checking for gnome_window_icon_set_default_from_file in -lgnomeui" >&5 |
---|
3684 | ac_lib_var=`echo gnomeui'_'gnome_window_icon_set_default_from_file | sed 'y%./+-%__p_%'` |
---|
3685 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3686 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3687 | else |
---|
3688 | ac_save_LIBS="$LIBS" |
---|
3689 | LIBS="-lgnomeui $LIBS" |
---|
3690 | cat > conftest.$ac_ext <<EOF |
---|
3691 | #line 3692 "configure" |
---|
3692 | #include "confdefs.h" |
---|
3693 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3694 | /* We use char because int might match the return type of a gcc2 |
---|
3695 | builtin and then its argument prototype would still apply. */ |
---|
3696 | char gnome_window_icon_set_default_from_file(); |
---|
3697 | |
---|
3698 | int main() { |
---|
3699 | gnome_window_icon_set_default_from_file() |
---|
3700 | ; return 0; } |
---|
3701 | EOF |
---|
3702 | if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3703 | rm -rf conftest* |
---|
3704 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3705 | else |
---|
3706 | echo "configure: failed program was:" >&5 |
---|
3707 | cat conftest.$ac_ext >&5 |
---|
3708 | rm -rf conftest* |
---|
3709 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3710 | fi |
---|
3711 | rm -f conftest* |
---|
3712 | LIBS="$ac_save_LIBS" |
---|
3713 | |
---|
3714 | fi |
---|
3715 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3716 | echo "$ac_t""yes" 1>&6 |
---|
3717 | ac_tr_lib=HAVE_LIB`echo gnomeui | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3718 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3719 | cat >> confdefs.h <<EOF |
---|
3720 | #define $ac_tr_lib 1 |
---|
3721 | EOF |
---|
3722 | |
---|
3723 | LIBS="-lgnomeui $LIBS" |
---|
3724 | |
---|
3725 | else |
---|
3726 | echo "$ac_t""no" 1>&6 |
---|
3727 | |
---|
3728 | { echo "configure: error: gnome-libs 1.0.59 or higher is required." 1>&2; exit 1; } |
---|
3729 | fi |
---|
3730 | |
---|
3731 | |
---|
3732 | CFLAGS=$CFLAGS_save |
---|
3733 | LIBS=$LIBS_save |
---|
3734 | |
---|
3735 | |
---|
3736 | |
---|
3737 | if test "x" = "y"; then |
---|
3738 | FALSE_TRUE= |
---|
3739 | FALSE_FALSE='#' |
---|
3740 | else |
---|
3741 | FALSE_TRUE='#' |
---|
3742 | FALSE_FALSE= |
---|
3743 | fi |
---|
3744 | |
---|
3745 | ALL_LINGUAS="az bg_BG.cp1251 ca cs da de el en_GB es et eu fi fr ga gl hu it ja ko lt nl nn no pl pt pt_BR ro ru sk sl sp sr sv ta tr uk wa zh_TW.Big5 zh_CN.GB2312" |
---|
3746 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
3747 | echo "configure:3748: checking for working const" >&5 |
---|
3748 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
3749 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3750 | else |
---|
3751 | cat > conftest.$ac_ext <<EOF |
---|
3752 | #line 3753 "configure" |
---|
3753 | #include "confdefs.h" |
---|
3754 | |
---|
3755 | int main() { |
---|
3756 | |
---|
3757 | /* Ultrix mips cc rejects this. */ |
---|
3758 | typedef int charset[2]; const charset x; |
---|
3759 | /* SunOS 4.1.1 cc rejects this. */ |
---|
3760 | char const *const *ccp; |
---|
3761 | char **p; |
---|
3762 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
3763 | struct point {int x, y;}; |
---|
3764 | static struct point const zero = {0,0}; |
---|
3765 | /* AIX XL C 1.02.0.0 rejects this. |
---|
3766 | It does not let you subtract one const X* pointer from another in an arm |
---|
3767 | of an if-expression whose if-part is not a constant expression */ |
---|
3768 | const char *g = "string"; |
---|
3769 | ccp = &g + (g ? g-g : 0); |
---|
3770 | /* HPUX 7.0 cc rejects these. */ |
---|
3771 | ++ccp; |
---|
3772 | p = (char**) ccp; |
---|
3773 | ccp = (char const *const *) p; |
---|
3774 | { /* SCO 3.2v4 cc rejects this. */ |
---|
3775 | char *t; |
---|
3776 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
3777 | |
---|
3778 | *t++ = 0; |
---|
3779 | } |
---|
3780 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
3781 | int x[] = {25, 17}; |
---|
3782 | const int *foo = &x[0]; |
---|
3783 | ++foo; |
---|
3784 | } |
---|
3785 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
3786 | typedef const int *iptr; |
---|
3787 | iptr p = 0; |
---|
3788 | ++p; |
---|
3789 | } |
---|
3790 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
3791 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
3792 | struct s { int j; const int *ap[3]; }; |
---|
3793 | struct s *b; b->j = 5; |
---|
3794 | } |
---|
3795 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
3796 | const int foo = 10; |
---|
3797 | } |
---|
3798 | |
---|
3799 | ; return 0; } |
---|
3800 | EOF |
---|
3801 | if { (eval echo configure:3802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3802 | rm -rf conftest* |
---|
3803 | ac_cv_c_const=yes |
---|
3804 | else |
---|
3805 | echo "configure: failed program was:" >&5 |
---|
3806 | cat conftest.$ac_ext >&5 |
---|
3807 | rm -rf conftest* |
---|
3808 | ac_cv_c_const=no |
---|
3809 | fi |
---|
3810 | rm -f conftest* |
---|
3811 | fi |
---|
3812 | |
---|
3813 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
3814 | if test $ac_cv_c_const = no; then |
---|
3815 | cat >> confdefs.h <<\EOF |
---|
3816 | #define const |
---|
3817 | EOF |
---|
3818 | |
---|
3819 | fi |
---|
3820 | |
---|
3821 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
3822 | echo "configure:3823: checking for inline" >&5 |
---|
3823 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
3824 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3825 | else |
---|
3826 | ac_cv_c_inline=no |
---|
3827 | for ac_kw in inline __inline__ __inline; do |
---|
3828 | cat > conftest.$ac_ext <<EOF |
---|
3829 | #line 3830 "configure" |
---|
3830 | #include "confdefs.h" |
---|
3831 | |
---|
3832 | int main() { |
---|
3833 | } $ac_kw foo() { |
---|
3834 | ; return 0; } |
---|
3835 | EOF |
---|
3836 | if { (eval echo configure:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3837 | rm -rf conftest* |
---|
3838 | ac_cv_c_inline=$ac_kw; break |
---|
3839 | else |
---|
3840 | echo "configure: failed program was:" >&5 |
---|
3841 | cat conftest.$ac_ext >&5 |
---|
3842 | fi |
---|
3843 | rm -f conftest* |
---|
3844 | done |
---|
3845 | |
---|
3846 | fi |
---|
3847 | |
---|
3848 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
3849 | case "$ac_cv_c_inline" in |
---|
3850 | inline | yes) ;; |
---|
3851 | no) cat >> confdefs.h <<\EOF |
---|
3852 | #define inline |
---|
3853 | EOF |
---|
3854 | ;; |
---|
3855 | *) cat >> confdefs.h <<EOF |
---|
3856 | #define inline $ac_cv_c_inline |
---|
3857 | EOF |
---|
3858 | ;; |
---|
3859 | esac |
---|
3860 | |
---|
3861 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
---|
3862 | echo "configure:3863: checking for off_t" >&5 |
---|
3863 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
---|
3864 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3865 | else |
---|
3866 | cat > conftest.$ac_ext <<EOF |
---|
3867 | #line 3868 "configure" |
---|
3868 | #include "confdefs.h" |
---|
3869 | #include <sys/types.h> |
---|
3870 | #if STDC_HEADERS |
---|
3871 | #include <stdlib.h> |
---|
3872 | #include <stddef.h> |
---|
3873 | #endif |
---|
3874 | EOF |
---|
3875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3876 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
3877 | rm -rf conftest* |
---|
3878 | ac_cv_type_off_t=yes |
---|
3879 | else |
---|
3880 | rm -rf conftest* |
---|
3881 | ac_cv_type_off_t=no |
---|
3882 | fi |
---|
3883 | rm -f conftest* |
---|
3884 | |
---|
3885 | fi |
---|
3886 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
---|
3887 | if test $ac_cv_type_off_t = no; then |
---|
3888 | cat >> confdefs.h <<\EOF |
---|
3889 | #define off_t long |
---|
3890 | EOF |
---|
3891 | |
---|
3892 | fi |
---|
3893 | |
---|
3894 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
3895 | echo "configure:3896: checking for size_t" >&5 |
---|
3896 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
3897 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3898 | else |
---|
3899 | cat > conftest.$ac_ext <<EOF |
---|
3900 | #line 3901 "configure" |
---|
3901 | #include "confdefs.h" |
---|
3902 | #include <sys/types.h> |
---|
3903 | #if STDC_HEADERS |
---|
3904 | #include <stdlib.h> |
---|
3905 | #include <stddef.h> |
---|
3906 | #endif |
---|
3907 | EOF |
---|
3908 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3909 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
3910 | rm -rf conftest* |
---|
3911 | ac_cv_type_size_t=yes |
---|
3912 | else |
---|
3913 | rm -rf conftest* |
---|
3914 | ac_cv_type_size_t=no |
---|
3915 | fi |
---|
3916 | rm -f conftest* |
---|
3917 | |
---|
3918 | fi |
---|
3919 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
3920 | if test $ac_cv_type_size_t = no; then |
---|
3921 | cat >> confdefs.h <<\EOF |
---|
3922 | #define size_t unsigned |
---|
3923 | EOF |
---|
3924 | |
---|
3925 | fi |
---|
3926 | |
---|
3927 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
3928 | # for constant arguments. Useless! |
---|
3929 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
3930 | echo "configure:3931: checking for working alloca.h" >&5 |
---|
3931 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
3932 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3933 | else |
---|
3934 | cat > conftest.$ac_ext <<EOF |
---|
3935 | #line 3936 "configure" |
---|
3936 | #include "confdefs.h" |
---|
3937 | #include <alloca.h> |
---|
3938 | int main() { |
---|
3939 | char *p = alloca(2 * sizeof(int)); |
---|
3940 | ; return 0; } |
---|
3941 | EOF |
---|
3942 | if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3943 | rm -rf conftest* |
---|
3944 | ac_cv_header_alloca_h=yes |
---|
3945 | else |
---|
3946 | echo "configure: failed program was:" >&5 |
---|
3947 | cat conftest.$ac_ext >&5 |
---|
3948 | rm -rf conftest* |
---|
3949 | ac_cv_header_alloca_h=no |
---|
3950 | fi |
---|
3951 | rm -f conftest* |
---|
3952 | fi |
---|
3953 | |
---|
3954 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
3955 | if test $ac_cv_header_alloca_h = yes; then |
---|
3956 | cat >> confdefs.h <<\EOF |
---|
3957 | #define HAVE_ALLOCA_H 1 |
---|
3958 | EOF |
---|
3959 | |
---|
3960 | fi |
---|
3961 | |
---|
3962 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
3963 | echo "configure:3964: checking for alloca" >&5 |
---|
3964 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
3965 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3966 | else |
---|
3967 | cat > conftest.$ac_ext <<EOF |
---|
3968 | #line 3969 "configure" |
---|
3969 | #include "confdefs.h" |
---|
3970 | |
---|
3971 | #ifdef __GNUC__ |
---|
3972 | # define alloca __builtin_alloca |
---|
3973 | #else |
---|
3974 | # ifdef _MSC_VER |
---|
3975 | # include <malloc.h> |
---|
3976 | # define alloca _alloca |
---|
3977 | # else |
---|
3978 | # if HAVE_ALLOCA_H |
---|
3979 | # include <alloca.h> |
---|
3980 | # else |
---|
3981 | # ifdef _AIX |
---|
3982 | #pragma alloca |
---|
3983 | # else |
---|
3984 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
3985 | char *alloca (); |
---|
3986 | # endif |
---|
3987 | # endif |
---|
3988 | # endif |
---|
3989 | # endif |
---|
3990 | #endif |
---|
3991 | |
---|
3992 | int main() { |
---|
3993 | char *p = (char *) alloca(1); |
---|
3994 | ; return 0; } |
---|
3995 | EOF |
---|
3996 | if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3997 | rm -rf conftest* |
---|
3998 | ac_cv_func_alloca_works=yes |
---|
3999 | else |
---|
4000 | echo "configure: failed program was:" >&5 |
---|
4001 | cat conftest.$ac_ext >&5 |
---|
4002 | rm -rf conftest* |
---|
4003 | ac_cv_func_alloca_works=no |
---|
4004 | fi |
---|
4005 | rm -f conftest* |
---|
4006 | fi |
---|
4007 | |
---|
4008 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
4009 | if test $ac_cv_func_alloca_works = yes; then |
---|
4010 | cat >> confdefs.h <<\EOF |
---|
4011 | #define HAVE_ALLOCA 1 |
---|
4012 | EOF |
---|
4013 | |
---|
4014 | fi |
---|
4015 | |
---|
4016 | if test $ac_cv_func_alloca_works = no; then |
---|
4017 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
4018 | # that cause trouble. Some versions do not even contain alloca or |
---|
4019 | # contain a buggy version. If you still want to use their alloca, |
---|
4020 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
4021 | ALLOCA=alloca.${ac_objext} |
---|
4022 | cat >> confdefs.h <<\EOF |
---|
4023 | #define C_ALLOCA 1 |
---|
4024 | EOF |
---|
4025 | |
---|
4026 | |
---|
4027 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
4028 | echo "configure:4029: checking whether alloca needs Cray hooks" >&5 |
---|
4029 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
4030 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4031 | else |
---|
4032 | cat > conftest.$ac_ext <<EOF |
---|
4033 | #line 4034 "configure" |
---|
4034 | #include "confdefs.h" |
---|
4035 | #if defined(CRAY) && ! defined(CRAY2) |
---|
4036 | webecray |
---|
4037 | #else |
---|
4038 | wenotbecray |
---|
4039 | #endif |
---|
4040 | |
---|
4041 | EOF |
---|
4042 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4043 | egrep "webecray" >/dev/null 2>&1; then |
---|
4044 | rm -rf conftest* |
---|
4045 | ac_cv_os_cray=yes |
---|
4046 | else |
---|
4047 | rm -rf conftest* |
---|
4048 | ac_cv_os_cray=no |
---|
4049 | fi |
---|
4050 | rm -f conftest* |
---|
4051 | |
---|
4052 | fi |
---|
4053 | |
---|
4054 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
4055 | if test $ac_cv_os_cray = yes; then |
---|
4056 | for ac_func in _getb67 GETB67 getb67; do |
---|
4057 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4058 | echo "configure:4059: checking for $ac_func" >&5 |
---|
4059 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4060 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4061 | else |
---|
4062 | cat > conftest.$ac_ext <<EOF |
---|
4063 | #line 4064 "configure" |
---|
4064 | #include "confdefs.h" |
---|
4065 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4066 | which can conflict with char $ac_func(); below. */ |
---|
4067 | #include <assert.h> |
---|
4068 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4069 | /* We use char because int might match the return type of a gcc2 |
---|
4070 | builtin and then its argument prototype would still apply. */ |
---|
4071 | char $ac_func(); |
---|
4072 | |
---|
4073 | int main() { |
---|
4074 | |
---|
4075 | /* The GNU C library defines this for functions which it implements |
---|
4076 | to always fail with ENOSYS. Some functions are actually named |
---|
4077 | something starting with __ and the normal name is an alias. */ |
---|
4078 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4079 | choke me |
---|
4080 | #else |
---|
4081 | $ac_func(); |
---|
4082 | #endif |
---|
4083 | |
---|
4084 | ; return 0; } |
---|
4085 | EOF |
---|
4086 | if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4087 | rm -rf conftest* |
---|
4088 | eval "ac_cv_func_$ac_func=yes" |
---|
4089 | else |
---|
4090 | echo "configure: failed program was:" >&5 |
---|
4091 | cat conftest.$ac_ext >&5 |
---|
4092 | rm -rf conftest* |
---|
4093 | eval "ac_cv_func_$ac_func=no" |
---|
4094 | fi |
---|
4095 | rm -f conftest* |
---|
4096 | fi |
---|
4097 | |
---|
4098 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4099 | echo "$ac_t""yes" 1>&6 |
---|
4100 | cat >> confdefs.h <<EOF |
---|
4101 | #define CRAY_STACKSEG_END $ac_func |
---|
4102 | EOF |
---|
4103 | |
---|
4104 | break |
---|
4105 | else |
---|
4106 | echo "$ac_t""no" 1>&6 |
---|
4107 | fi |
---|
4108 | |
---|
4109 | done |
---|
4110 | fi |
---|
4111 | |
---|
4112 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
4113 | echo "configure:4114: checking stack direction for C alloca" >&5 |
---|
4114 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
4115 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4116 | else |
---|
4117 | if test "$cross_compiling" = yes; then |
---|
4118 | ac_cv_c_stack_direction=0 |
---|
4119 | else |
---|
4120 | cat > conftest.$ac_ext <<EOF |
---|
4121 | #line 4122 "configure" |
---|
4122 | #include "confdefs.h" |
---|
4123 | find_stack_direction () |
---|
4124 | { |
---|
4125 | static char *addr = 0; |
---|
4126 | auto char dummy; |
---|
4127 | if (addr == 0) |
---|
4128 | { |
---|
4129 | addr = &dummy; |
---|
4130 | return find_stack_direction (); |
---|
4131 | } |
---|
4132 | else |
---|
4133 | return (&dummy > addr) ? 1 : -1; |
---|
4134 | } |
---|
4135 | main () |
---|
4136 | { |
---|
4137 | exit (find_stack_direction() < 0); |
---|
4138 | } |
---|
4139 | EOF |
---|
4140 | if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
4141 | then |
---|
4142 | ac_cv_c_stack_direction=1 |
---|
4143 | else |
---|
4144 | echo "configure: failed program was:" >&5 |
---|
4145 | cat conftest.$ac_ext >&5 |
---|
4146 | rm -fr conftest* |
---|
4147 | ac_cv_c_stack_direction=-1 |
---|
4148 | fi |
---|
4149 | rm -fr conftest* |
---|
4150 | fi |
---|
4151 | |
---|
4152 | fi |
---|
4153 | |
---|
4154 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
4155 | cat >> confdefs.h <<EOF |
---|
4156 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
4157 | EOF |
---|
4158 | |
---|
4159 | fi |
---|
4160 | |
---|
4161 | for ac_hdr in unistd.h |
---|
4162 | do |
---|
4163 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4164 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4165 | echo "configure:4166: checking for $ac_hdr" >&5 |
---|
4166 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4167 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4168 | else |
---|
4169 | cat > conftest.$ac_ext <<EOF |
---|
4170 | #line 4171 "configure" |
---|
4171 | #include "confdefs.h" |
---|
4172 | #include <$ac_hdr> |
---|
4173 | EOF |
---|
4174 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4175 | { (eval echo configure:4176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4176 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4177 | if test -z "$ac_err"; then |
---|
4178 | rm -rf conftest* |
---|
4179 | eval "ac_cv_header_$ac_safe=yes" |
---|
4180 | else |
---|
4181 | echo "$ac_err" >&5 |
---|
4182 | echo "configure: failed program was:" >&5 |
---|
4183 | cat conftest.$ac_ext >&5 |
---|
4184 | rm -rf conftest* |
---|
4185 | eval "ac_cv_header_$ac_safe=no" |
---|
4186 | fi |
---|
4187 | rm -f conftest* |
---|
4188 | fi |
---|
4189 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4190 | echo "$ac_t""yes" 1>&6 |
---|
4191 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4192 | cat >> confdefs.h <<EOF |
---|
4193 | #define $ac_tr_hdr 1 |
---|
4194 | EOF |
---|
4195 | |
---|
4196 | else |
---|
4197 | echo "$ac_t""no" 1>&6 |
---|
4198 | fi |
---|
4199 | done |
---|
4200 | |
---|
4201 | for ac_func in getpagesize |
---|
4202 | do |
---|
4203 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4204 | echo "configure:4205: checking for $ac_func" >&5 |
---|
4205 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4206 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4207 | else |
---|
4208 | cat > conftest.$ac_ext <<EOF |
---|
4209 | #line 4210 "configure" |
---|
4210 | #include "confdefs.h" |
---|
4211 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4212 | which can conflict with char $ac_func(); below. */ |
---|
4213 | #include <assert.h> |
---|
4214 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4215 | /* We use char because int might match the return type of a gcc2 |
---|
4216 | builtin and then its argument prototype would still apply. */ |
---|
4217 | char $ac_func(); |
---|
4218 | |
---|
4219 | int main() { |
---|
4220 | |
---|
4221 | /* The GNU C library defines this for functions which it implements |
---|
4222 | to always fail with ENOSYS. Some functions are actually named |
---|
4223 | something starting with __ and the normal name is an alias. */ |
---|
4224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4225 | choke me |
---|
4226 | #else |
---|
4227 | $ac_func(); |
---|
4228 | #endif |
---|
4229 | |
---|
4230 | ; return 0; } |
---|
4231 | EOF |
---|
4232 | if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4233 | rm -rf conftest* |
---|
4234 | eval "ac_cv_func_$ac_func=yes" |
---|
4235 | else |
---|
4236 | echo "configure: failed program was:" >&5 |
---|
4237 | cat conftest.$ac_ext >&5 |
---|
4238 | rm -rf conftest* |
---|
4239 | eval "ac_cv_func_$ac_func=no" |
---|
4240 | fi |
---|
4241 | rm -f conftest* |
---|
4242 | fi |
---|
4243 | |
---|
4244 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4245 | echo "$ac_t""yes" 1>&6 |
---|
4246 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4247 | cat >> confdefs.h <<EOF |
---|
4248 | #define $ac_tr_func 1 |
---|
4249 | EOF |
---|
4250 | |
---|
4251 | else |
---|
4252 | echo "$ac_t""no" 1>&6 |
---|
4253 | fi |
---|
4254 | done |
---|
4255 | |
---|
4256 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
4257 | echo "configure:4258: checking for working mmap" >&5 |
---|
4258 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
---|
4259 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4260 | else |
---|
4261 | if test "$cross_compiling" = yes; then |
---|
4262 | ac_cv_func_mmap_fixed_mapped=no |
---|
4263 | else |
---|
4264 | cat > conftest.$ac_ext <<EOF |
---|
4265 | #line 4266 "configure" |
---|
4266 | #include "confdefs.h" |
---|
4267 | |
---|
4268 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
4269 | Here is a matrix of mmap possibilities: |
---|
4270 | mmap private not fixed |
---|
4271 | mmap private fixed at somewhere currently unmapped |
---|
4272 | mmap private fixed at somewhere already mapped |
---|
4273 | mmap shared not fixed |
---|
4274 | mmap shared fixed at somewhere currently unmapped |
---|
4275 | mmap shared fixed at somewhere already mapped |
---|
4276 | For private mappings, we should verify that changes cannot be read() |
---|
4277 | back from the file, nor mmap's back from the file at a different |
---|
4278 | address. (There have been systems where private was not correctly |
---|
4279 | implemented like the infamous i386 svr4.0, and systems where the |
---|
4280 | VM page cache was not coherent with the filesystem buffer cache |
---|
4281 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
4282 | For shared mappings, we should conversely verify that changes get |
---|
4283 | propogated back to all the places they're supposed to be. |
---|
4284 | |
---|
4285 | Grep wants private fixed already mapped. |
---|
4286 | The main things grep needs to know about mmap are: |
---|
4287 | * does it exist and is it safe to write into the mmap'd area |
---|
4288 | * how to use it (BSD variants) */ |
---|
4289 | #include <sys/types.h> |
---|
4290 | #include <fcntl.h> |
---|
4291 | #include <sys/mman.h> |
---|
4292 | |
---|
4293 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
4294 | #ifndef HAVE_GETPAGESIZE |
---|
4295 | # ifdef HAVE_UNISTD_H |
---|
4296 | # include <unistd.h> |
---|
4297 | # endif |
---|
4298 | |
---|
4299 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
4300 | # ifndef HAVE_SYS_PARAM_H |
---|
4301 | # define HAVE_SYS_PARAM_H 1 |
---|
4302 | # endif |
---|
4303 | |
---|
4304 | # ifdef _SC_PAGESIZE |
---|
4305 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
4306 | # else /* no _SC_PAGESIZE */ |
---|
4307 | # ifdef HAVE_SYS_PARAM_H |
---|
4308 | # include <sys/param.h> |
---|
4309 | # ifdef EXEC_PAGESIZE |
---|
4310 | # define getpagesize() EXEC_PAGESIZE |
---|
4311 | # else /* no EXEC_PAGESIZE */ |
---|
4312 | # ifdef NBPG |
---|
4313 | # define getpagesize() NBPG * CLSIZE |
---|
4314 | # ifndef CLSIZE |
---|
4315 | # define CLSIZE 1 |
---|
4316 | # endif /* no CLSIZE */ |
---|
4317 | # else /* no NBPG */ |
---|
4318 | # ifdef NBPC |
---|
4319 | # define getpagesize() NBPC |
---|
4320 | # else /* no NBPC */ |
---|
4321 | # ifdef PAGESIZE |
---|
4322 | # define getpagesize() PAGESIZE |
---|
4323 | # endif /* PAGESIZE */ |
---|
4324 | # endif /* no NBPC */ |
---|
4325 | # endif /* no NBPG */ |
---|
4326 | # endif /* no EXEC_PAGESIZE */ |
---|
4327 | # else /* no HAVE_SYS_PARAM_H */ |
---|
4328 | # define getpagesize() 8192 /* punt totally */ |
---|
4329 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
4330 | # endif /* no _SC_PAGESIZE */ |
---|
4331 | |
---|
4332 | #endif /* no HAVE_GETPAGESIZE */ |
---|
4333 | |
---|
4334 | #ifdef __cplusplus |
---|
4335 | extern "C" { void *malloc(unsigned); } |
---|
4336 | #else |
---|
4337 | char *malloc(); |
---|
4338 | #endif |
---|
4339 | |
---|
4340 | int |
---|
4341 | main() |
---|
4342 | { |
---|
4343 | char *data, *data2, *data3; |
---|
4344 | int i, pagesize; |
---|
4345 | int fd; |
---|
4346 | |
---|
4347 | pagesize = getpagesize(); |
---|
4348 | |
---|
4349 | /* |
---|
4350 | * First, make a file with some known garbage in it. |
---|
4351 | */ |
---|
4352 | data = malloc(pagesize); |
---|
4353 | if (!data) |
---|
4354 | exit(1); |
---|
4355 | for (i = 0; i < pagesize; ++i) |
---|
4356 | *(data + i) = rand(); |
---|
4357 | umask(0); |
---|
4358 | fd = creat("conftestmmap", 0600); |
---|
4359 | if (fd < 0) |
---|
4360 | exit(1); |
---|
4361 | if (write(fd, data, pagesize) != pagesize) |
---|
4362 | exit(1); |
---|
4363 | close(fd); |
---|
4364 | |
---|
4365 | /* |
---|
4366 | * Next, try to mmap the file at a fixed address which |
---|
4367 | * already has something else allocated at it. If we can, |
---|
4368 | * also make sure that we see the same garbage. |
---|
4369 | */ |
---|
4370 | fd = open("conftestmmap", O_RDWR); |
---|
4371 | if (fd < 0) |
---|
4372 | exit(1); |
---|
4373 | data2 = malloc(2 * pagesize); |
---|
4374 | if (!data2) |
---|
4375 | exit(1); |
---|
4376 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
4377 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
---|
4378 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
4379 | exit(1); |
---|
4380 | for (i = 0; i < pagesize; ++i) |
---|
4381 | if (*(data + i) != *(data2 + i)) |
---|
4382 | exit(1); |
---|
4383 | |
---|
4384 | /* |
---|
4385 | * Finally, make sure that changes to the mapped area |
---|
4386 | * do not percolate back to the file as seen by read(). |
---|
4387 | * (This is a bug on some variants of i386 svr4.0.) |
---|
4388 | */ |
---|
4389 | for (i = 0; i < pagesize; ++i) |
---|
4390 | *(data2 + i) = *(data2 + i) + 1; |
---|
4391 | data3 = malloc(pagesize); |
---|
4392 | if (!data3) |
---|
4393 | exit(1); |
---|
4394 | if (read(fd, data3, pagesize) != pagesize) |
---|
4395 | exit(1); |
---|
4396 | for (i = 0; i < pagesize; ++i) |
---|
4397 | if (*(data + i) != *(data3 + i)) |
---|
4398 | exit(1); |
---|
4399 | close(fd); |
---|
4400 | unlink("conftestmmap"); |
---|
4401 | exit(0); |
---|
4402 | } |
---|
4403 | |
---|
4404 | EOF |
---|
4405 | if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
4406 | then |
---|
4407 | ac_cv_func_mmap_fixed_mapped=yes |
---|
4408 | else |
---|
4409 | echo "configure: failed program was:" >&5 |
---|
4410 | cat conftest.$ac_ext >&5 |
---|
4411 | rm -fr conftest* |
---|
4412 | ac_cv_func_mmap_fixed_mapped=no |
---|
4413 | fi |
---|
4414 | rm -fr conftest* |
---|
4415 | fi |
---|
4416 | |
---|
4417 | fi |
---|
4418 | |
---|
4419 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
---|
4420 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
4421 | cat >> confdefs.h <<\EOF |
---|
4422 | #define HAVE_MMAP 1 |
---|
4423 | EOF |
---|
4424 | |
---|
4425 | fi |
---|
4426 | |
---|
4427 | |
---|
4428 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
---|
4429 | unistd.h sys/param.h |
---|
4430 | do |
---|
4431 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4432 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4433 | echo "configure:4434: checking for $ac_hdr" >&5 |
---|
4434 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4435 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4436 | else |
---|
4437 | cat > conftest.$ac_ext <<EOF |
---|
4438 | #line 4439 "configure" |
---|
4439 | #include "confdefs.h" |
---|
4440 | #include <$ac_hdr> |
---|
4441 | EOF |
---|
4442 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4443 | { (eval echo configure:4444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4444 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4445 | if test -z "$ac_err"; then |
---|
4446 | rm -rf conftest* |
---|
4447 | eval "ac_cv_header_$ac_safe=yes" |
---|
4448 | else |
---|
4449 | echo "$ac_err" >&5 |
---|
4450 | echo "configure: failed program was:" >&5 |
---|
4451 | cat conftest.$ac_ext >&5 |
---|
4452 | rm -rf conftest* |
---|
4453 | eval "ac_cv_header_$ac_safe=no" |
---|
4454 | fi |
---|
4455 | rm -f conftest* |
---|
4456 | fi |
---|
4457 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4458 | echo "$ac_t""yes" 1>&6 |
---|
4459 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4460 | cat >> confdefs.h <<EOF |
---|
4461 | #define $ac_tr_hdr 1 |
---|
4462 | EOF |
---|
4463 | |
---|
4464 | else |
---|
4465 | echo "$ac_t""no" 1>&6 |
---|
4466 | fi |
---|
4467 | done |
---|
4468 | |
---|
4469 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
---|
4470 | strdup __argz_count __argz_stringify __argz_next |
---|
4471 | do |
---|
4472 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4473 | echo "configure:4474: checking for $ac_func" >&5 |
---|
4474 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4475 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4476 | else |
---|
4477 | cat > conftest.$ac_ext <<EOF |
---|
4478 | #line 4479 "configure" |
---|
4479 | #include "confdefs.h" |
---|
4480 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4481 | which can conflict with char $ac_func(); below. */ |
---|
4482 | #include <assert.h> |
---|
4483 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4484 | /* We use char because int might match the return type of a gcc2 |
---|
4485 | builtin and then its argument prototype would still apply. */ |
---|
4486 | char $ac_func(); |
---|
4487 | |
---|
4488 | int main() { |
---|
4489 | |
---|
4490 | /* The GNU C library defines this for functions which it implements |
---|
4491 | to always fail with ENOSYS. Some functions are actually named |
---|
4492 | something starting with __ and the normal name is an alias. */ |
---|
4493 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4494 | choke me |
---|
4495 | #else |
---|
4496 | $ac_func(); |
---|
4497 | #endif |
---|
4498 | |
---|
4499 | ; return 0; } |
---|
4500 | EOF |
---|
4501 | if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4502 | rm -rf conftest* |
---|
4503 | eval "ac_cv_func_$ac_func=yes" |
---|
4504 | else |
---|
4505 | echo "configure: failed program was:" >&5 |
---|
4506 | cat conftest.$ac_ext >&5 |
---|
4507 | rm -rf conftest* |
---|
4508 | eval "ac_cv_func_$ac_func=no" |
---|
4509 | fi |
---|
4510 | rm -f conftest* |
---|
4511 | fi |
---|
4512 | |
---|
4513 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4514 | echo "$ac_t""yes" 1>&6 |
---|
4515 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4516 | cat >> confdefs.h <<EOF |
---|
4517 | #define $ac_tr_func 1 |
---|
4518 | EOF |
---|
4519 | |
---|
4520 | else |
---|
4521 | echo "$ac_t""no" 1>&6 |
---|
4522 | fi |
---|
4523 | done |
---|
4524 | |
---|
4525 | |
---|
4526 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
---|
4527 | for ac_func in stpcpy |
---|
4528 | do |
---|
4529 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4530 | echo "configure:4531: checking for $ac_func" >&5 |
---|
4531 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4532 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4533 | else |
---|
4534 | cat > conftest.$ac_ext <<EOF |
---|
4535 | #line 4536 "configure" |
---|
4536 | #include "confdefs.h" |
---|
4537 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4538 | which can conflict with char $ac_func(); below. */ |
---|
4539 | #include <assert.h> |
---|
4540 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4541 | /* We use char because int might match the return type of a gcc2 |
---|
4542 | builtin and then its argument prototype would still apply. */ |
---|
4543 | char $ac_func(); |
---|
4544 | |
---|
4545 | int main() { |
---|
4546 | |
---|
4547 | /* The GNU C library defines this for functions which it implements |
---|
4548 | to always fail with ENOSYS. Some functions are actually named |
---|
4549 | something starting with __ and the normal name is an alias. */ |
---|
4550 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4551 | choke me |
---|
4552 | #else |
---|
4553 | $ac_func(); |
---|
4554 | #endif |
---|
4555 | |
---|
4556 | ; return 0; } |
---|
4557 | EOF |
---|
4558 | if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4559 | rm -rf conftest* |
---|
4560 | eval "ac_cv_func_$ac_func=yes" |
---|
4561 | else |
---|
4562 | echo "configure: failed program was:" >&5 |
---|
4563 | cat conftest.$ac_ext >&5 |
---|
4564 | rm -rf conftest* |
---|
4565 | eval "ac_cv_func_$ac_func=no" |
---|
4566 | fi |
---|
4567 | rm -f conftest* |
---|
4568 | fi |
---|
4569 | |
---|
4570 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4571 | echo "$ac_t""yes" 1>&6 |
---|
4572 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4573 | cat >> confdefs.h <<EOF |
---|
4574 | #define $ac_tr_func 1 |
---|
4575 | EOF |
---|
4576 | |
---|
4577 | else |
---|
4578 | echo "$ac_t""no" 1>&6 |
---|
4579 | fi |
---|
4580 | done |
---|
4581 | |
---|
4582 | fi |
---|
4583 | if test "${ac_cv_func_stpcpy}" = "yes"; then |
---|
4584 | cat >> confdefs.h <<\EOF |
---|
4585 | #define HAVE_STPCPY 1 |
---|
4586 | EOF |
---|
4587 | |
---|
4588 | fi |
---|
4589 | |
---|
4590 | if test $ac_cv_header_locale_h = yes; then |
---|
4591 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
---|
4592 | echo "configure:4593: checking for LC_MESSAGES" >&5 |
---|
4593 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
---|
4594 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4595 | else |
---|
4596 | cat > conftest.$ac_ext <<EOF |
---|
4597 | #line 4598 "configure" |
---|
4598 | #include "confdefs.h" |
---|
4599 | #include <locale.h> |
---|
4600 | int main() { |
---|
4601 | return LC_MESSAGES |
---|
4602 | ; return 0; } |
---|
4603 | EOF |
---|
4604 | if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4605 | rm -rf conftest* |
---|
4606 | am_cv_val_LC_MESSAGES=yes |
---|
4607 | else |
---|
4608 | echo "configure: failed program was:" >&5 |
---|
4609 | cat conftest.$ac_ext >&5 |
---|
4610 | rm -rf conftest* |
---|
4611 | am_cv_val_LC_MESSAGES=no |
---|
4612 | fi |
---|
4613 | rm -f conftest* |
---|
4614 | fi |
---|
4615 | |
---|
4616 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
---|
4617 | if test $am_cv_val_LC_MESSAGES = yes; then |
---|
4618 | cat >> confdefs.h <<\EOF |
---|
4619 | #define HAVE_LC_MESSAGES 1 |
---|
4620 | EOF |
---|
4621 | |
---|
4622 | fi |
---|
4623 | fi |
---|
4624 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
---|
4625 | echo "configure:4626: checking whether NLS is requested" >&5 |
---|
4626 | # Check whether --enable-nls or --disable-nls was given. |
---|
4627 | if test "${enable_nls+set}" = set; then |
---|
4628 | enableval="$enable_nls" |
---|
4629 | USE_NLS=$enableval |
---|
4630 | else |
---|
4631 | USE_NLS=yes |
---|
4632 | fi |
---|
4633 | |
---|
4634 | echo "$ac_t""$USE_NLS" 1>&6 |
---|
4635 | |
---|
4636 | |
---|
4637 | USE_INCLUDED_LIBINTL=no |
---|
4638 | |
---|
4639 | if test "$USE_NLS" = "yes"; then |
---|
4640 | # AC_DEFINE(ENABLE_NLS) |
---|
4641 | # AC_MSG_CHECKING([whether included gettext is requested]) |
---|
4642 | # AC_ARG_WITH(included-gettext, |
---|
4643 | # [ --with-included-gettext use the GNU gettext library included here], |
---|
4644 | # nls_cv_force_use_gnu_gettext=$withval, |
---|
4645 | # nls_cv_force_use_gnu_gettext=no) |
---|
4646 | # AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) |
---|
4647 | nls_cv_force_use_gnu_gettext="no" |
---|
4648 | |
---|
4649 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
---|
4650 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
---|
4651 | nls_cv_header_intl= |
---|
4652 | nls_cv_header_libgt= |
---|
4653 | CATOBJEXT=NONE |
---|
4654 | |
---|
4655 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
---|
4656 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
---|
4657 | echo "configure:4658: checking for libintl.h" >&5 |
---|
4658 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4659 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4660 | else |
---|
4661 | cat > conftest.$ac_ext <<EOF |
---|
4662 | #line 4663 "configure" |
---|
4663 | #include "confdefs.h" |
---|
4664 | #include <libintl.h> |
---|
4665 | EOF |
---|
4666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4667 | { (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4669 | if test -z "$ac_err"; then |
---|
4670 | rm -rf conftest* |
---|
4671 | eval "ac_cv_header_$ac_safe=yes" |
---|
4672 | else |
---|
4673 | echo "$ac_err" >&5 |
---|
4674 | echo "configure: failed program was:" >&5 |
---|
4675 | cat conftest.$ac_ext >&5 |
---|
4676 | rm -rf conftest* |
---|
4677 | eval "ac_cv_header_$ac_safe=no" |
---|
4678 | fi |
---|
4679 | rm -f conftest* |
---|
4680 | fi |
---|
4681 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4682 | echo "$ac_t""yes" 1>&6 |
---|
4683 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 |
---|
4684 | echo "configure:4685: checking for gettext in libc" >&5 |
---|
4685 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
---|
4686 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4687 | else |
---|
4688 | cat > conftest.$ac_ext <<EOF |
---|
4689 | #line 4690 "configure" |
---|
4690 | #include "confdefs.h" |
---|
4691 | #include <libintl.h> |
---|
4692 | int main() { |
---|
4693 | return (int) gettext ("") |
---|
4694 | ; return 0; } |
---|
4695 | EOF |
---|
4696 | if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4697 | rm -rf conftest* |
---|
4698 | gt_cv_func_gettext_libc=yes |
---|
4699 | else |
---|
4700 | echo "configure: failed program was:" >&5 |
---|
4701 | cat conftest.$ac_ext >&5 |
---|
4702 | rm -rf conftest* |
---|
4703 | gt_cv_func_gettext_libc=no |
---|
4704 | fi |
---|
4705 | rm -f conftest* |
---|
4706 | fi |
---|
4707 | |
---|
4708 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 |
---|
4709 | |
---|
4710 | if test "$gt_cv_func_gettext_libc" != "yes"; then |
---|
4711 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
---|
4712 | echo "configure:4713: checking for bindtextdomain in -lintl" >&5 |
---|
4713 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
---|
4714 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4715 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4716 | else |
---|
4717 | ac_save_LIBS="$LIBS" |
---|
4718 | LIBS="-lintl $LIBS" |
---|
4719 | cat > conftest.$ac_ext <<EOF |
---|
4720 | #line 4721 "configure" |
---|
4721 | #include "confdefs.h" |
---|
4722 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4723 | /* We use char because int might match the return type of a gcc2 |
---|
4724 | builtin and then its argument prototype would still apply. */ |
---|
4725 | char bindtextdomain(); |
---|
4726 | |
---|
4727 | int main() { |
---|
4728 | bindtextdomain() |
---|
4729 | ; return 0; } |
---|
4730 | EOF |
---|
4731 | if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4732 | rm -rf conftest* |
---|
4733 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4734 | else |
---|
4735 | echo "configure: failed program was:" >&5 |
---|
4736 | cat conftest.$ac_ext >&5 |
---|
4737 | rm -rf conftest* |
---|
4738 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4739 | fi |
---|
4740 | rm -f conftest* |
---|
4741 | LIBS="$ac_save_LIBS" |
---|
4742 | |
---|
4743 | fi |
---|
4744 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4745 | echo "$ac_t""yes" 1>&6 |
---|
4746 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 |
---|
4747 | echo "configure:4748: checking for gettext in libintl" >&5 |
---|
4748 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
---|
4749 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4750 | else |
---|
4751 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 |
---|
4752 | echo "configure:4753: checking for gettext in -lintl" >&5 |
---|
4753 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
---|
4754 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4755 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4756 | else |
---|
4757 | ac_save_LIBS="$LIBS" |
---|
4758 | LIBS="-lintl $LIBS" |
---|
4759 | cat > conftest.$ac_ext <<EOF |
---|
4760 | #line 4761 "configure" |
---|
4761 | #include "confdefs.h" |
---|
4762 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4763 | /* We use char because int might match the return type of a gcc2 |
---|
4764 | builtin and then its argument prototype would still apply. */ |
---|
4765 | char gettext(); |
---|
4766 | |
---|
4767 | int main() { |
---|
4768 | gettext() |
---|
4769 | ; return 0; } |
---|
4770 | EOF |
---|
4771 | if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4772 | rm -rf conftest* |
---|
4773 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4774 | else |
---|
4775 | echo "configure: failed program was:" >&5 |
---|
4776 | cat conftest.$ac_ext >&5 |
---|
4777 | rm -rf conftest* |
---|
4778 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4779 | fi |
---|
4780 | rm -f conftest* |
---|
4781 | LIBS="$ac_save_LIBS" |
---|
4782 | |
---|
4783 | fi |
---|
4784 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4785 | echo "$ac_t""yes" 1>&6 |
---|
4786 | gt_cv_func_gettext_libintl=yes |
---|
4787 | else |
---|
4788 | echo "$ac_t""no" 1>&6 |
---|
4789 | gt_cv_func_gettext_libintl=no |
---|
4790 | fi |
---|
4791 | |
---|
4792 | fi |
---|
4793 | |
---|
4794 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 |
---|
4795 | else |
---|
4796 | echo "$ac_t""no" 1>&6 |
---|
4797 | fi |
---|
4798 | |
---|
4799 | fi |
---|
4800 | |
---|
4801 | if test "$gt_cv_func_gettext_libc" = "yes" \ |
---|
4802 | || test "$gt_cv_func_gettext_libintl" = "yes"; then |
---|
4803 | cat >> confdefs.h <<\EOF |
---|
4804 | #define HAVE_GETTEXT 1 |
---|
4805 | EOF |
---|
4806 | |
---|
4807 | # Extract the first word of "msgfmt", so it can be a program name with args. |
---|
4808 | set dummy msgfmt; ac_word=$2 |
---|
4809 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4810 | echo "configure:4811: checking for $ac_word" >&5 |
---|
4811 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
---|
4812 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4813 | else |
---|
4814 | case "$MSGFMT" in |
---|
4815 | /*) |
---|
4816 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
---|
4817 | ;; |
---|
4818 | *) |
---|
4819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4820 | for ac_dir in $PATH; do |
---|
4821 | test -z "$ac_dir" && ac_dir=. |
---|
4822 | if test -f $ac_dir/$ac_word; then |
---|
4823 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
---|
4824 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
---|
4825 | break |
---|
4826 | fi |
---|
4827 | fi |
---|
4828 | done |
---|
4829 | IFS="$ac_save_ifs" |
---|
4830 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
---|
4831 | ;; |
---|
4832 | esac |
---|
4833 | fi |
---|
4834 | MSGFMT="$ac_cv_path_MSGFMT" |
---|
4835 | if test -n "$MSGFMT"; then |
---|
4836 | echo "$ac_t""$MSGFMT" 1>&6 |
---|
4837 | else |
---|
4838 | echo "$ac_t""no" 1>&6 |
---|
4839 | fi |
---|
4840 | if test "$MSGFMT" != "no"; then |
---|
4841 | for ac_func in dcgettext |
---|
4842 | do |
---|
4843 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4844 | echo "configure:4845: checking for $ac_func" >&5 |
---|
4845 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4846 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4847 | else |
---|
4848 | cat > conftest.$ac_ext <<EOF |
---|
4849 | #line 4850 "configure" |
---|
4850 | #include "confdefs.h" |
---|
4851 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4852 | which can conflict with char $ac_func(); below. */ |
---|
4853 | #include <assert.h> |
---|
4854 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4855 | /* We use char because int might match the return type of a gcc2 |
---|
4856 | builtin and then its argument prototype would still apply. */ |
---|
4857 | char $ac_func(); |
---|
4858 | |
---|
4859 | int main() { |
---|
4860 | |
---|
4861 | /* The GNU C library defines this for functions which it implements |
---|
4862 | to always fail with ENOSYS. Some functions are actually named |
---|
4863 | something starting with __ and the normal name is an alias. */ |
---|
4864 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4865 | choke me |
---|
4866 | #else |
---|
4867 | $ac_func(); |
---|
4868 | #endif |
---|
4869 | |
---|
4870 | ; return 0; } |
---|
4871 | EOF |
---|
4872 | if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4873 | rm -rf conftest* |
---|
4874 | eval "ac_cv_func_$ac_func=yes" |
---|
4875 | else |
---|
4876 | echo "configure: failed program was:" >&5 |
---|
4877 | cat conftest.$ac_ext >&5 |
---|
4878 | rm -rf conftest* |
---|
4879 | eval "ac_cv_func_$ac_func=no" |
---|
4880 | fi |
---|
4881 | rm -f conftest* |
---|
4882 | fi |
---|
4883 | |
---|
4884 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4885 | echo "$ac_t""yes" 1>&6 |
---|
4886 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4887 | cat >> confdefs.h <<EOF |
---|
4888 | #define $ac_tr_func 1 |
---|
4889 | EOF |
---|
4890 | |
---|
4891 | else |
---|
4892 | echo "$ac_t""no" 1>&6 |
---|
4893 | fi |
---|
4894 | done |
---|
4895 | |
---|
4896 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
---|
4897 | set dummy gmsgfmt; ac_word=$2 |
---|
4898 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4899 | echo "configure:4900: checking for $ac_word" >&5 |
---|
4900 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
---|
4901 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4902 | else |
---|
4903 | case "$GMSGFMT" in |
---|
4904 | /*) |
---|
4905 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
4906 | ;; |
---|
4907 | ?:/*) |
---|
4908 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
---|
4909 | ;; |
---|
4910 | *) |
---|
4911 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
4912 | ac_dummy="$PATH" |
---|
4913 | for ac_dir in $ac_dummy; do |
---|
4914 | test -z "$ac_dir" && ac_dir=. |
---|
4915 | if test -f $ac_dir/$ac_word; then |
---|
4916 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
---|
4917 | break |
---|
4918 | fi |
---|
4919 | done |
---|
4920 | IFS="$ac_save_ifs" |
---|
4921 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
---|
4922 | ;; |
---|
4923 | esac |
---|
4924 | fi |
---|
4925 | GMSGFMT="$ac_cv_path_GMSGFMT" |
---|
4926 | if test -n "$GMSGFMT"; then |
---|
4927 | echo "$ac_t""$GMSGFMT" 1>&6 |
---|
4928 | else |
---|
4929 | echo "$ac_t""no" 1>&6 |
---|
4930 | fi |
---|
4931 | |
---|
4932 | # Extract the first word of "xgettext", so it can be a program name with args. |
---|
4933 | set dummy xgettext; ac_word=$2 |
---|
4934 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4935 | echo "configure:4936: checking for $ac_word" >&5 |
---|
4936 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
---|
4937 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4938 | else |
---|
4939 | case "$XGETTEXT" in |
---|
4940 | /*) |
---|
4941 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
---|
4942 | ;; |
---|
4943 | *) |
---|
4944 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4945 | for ac_dir in $PATH; do |
---|
4946 | test -z "$ac_dir" && ac_dir=. |
---|
4947 | if test -f $ac_dir/$ac_word; then |
---|
4948 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
---|
4949 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
---|
4950 | break |
---|
4951 | fi |
---|
4952 | fi |
---|
4953 | done |
---|
4954 | IFS="$ac_save_ifs" |
---|
4955 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
---|
4956 | ;; |
---|
4957 | esac |
---|
4958 | fi |
---|
4959 | XGETTEXT="$ac_cv_path_XGETTEXT" |
---|
4960 | if test -n "$XGETTEXT"; then |
---|
4961 | echo "$ac_t""$XGETTEXT" 1>&6 |
---|
4962 | else |
---|
4963 | echo "$ac_t""no" 1>&6 |
---|
4964 | fi |
---|
4965 | |
---|
4966 | cat > conftest.$ac_ext <<EOF |
---|
4967 | #line 4968 "configure" |
---|
4968 | #include "confdefs.h" |
---|
4969 | |
---|
4970 | int main() { |
---|
4971 | extern int _nl_msg_cat_cntr; |
---|
4972 | return _nl_msg_cat_cntr |
---|
4973 | ; return 0; } |
---|
4974 | EOF |
---|
4975 | if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4976 | rm -rf conftest* |
---|
4977 | CATOBJEXT=.gmo |
---|
4978 | DATADIRNAME=share |
---|
4979 | else |
---|
4980 | echo "configure: failed program was:" >&5 |
---|
4981 | cat conftest.$ac_ext >&5 |
---|
4982 | rm -rf conftest* |
---|
4983 | CATOBJEXT=.mo |
---|
4984 | DATADIRNAME=lib |
---|
4985 | fi |
---|
4986 | rm -f conftest* |
---|
4987 | INSTOBJEXT=.mo |
---|
4988 | fi |
---|
4989 | fi |
---|
4990 | |
---|
4991 | # Added by Martin Baulig 12/15/98 for libc5 systems |
---|
4992 | if test "$gt_cv_func_gettext_libc" != "yes" \ |
---|
4993 | && test "$gt_cv_func_gettext_libintl" = "yes"; then |
---|
4994 | INTLLIBS=-lintl |
---|
4995 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
4996 | fi |
---|
4997 | |
---|
4998 | else |
---|
4999 | echo "$ac_t""no" 1>&6 |
---|
5000 | fi |
---|
5001 | |
---|
5002 | |
---|
5003 | if test "$CATOBJEXT" = "NONE"; then |
---|
5004 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 |
---|
5005 | echo "configure:5006: checking whether catgets can be used" >&5 |
---|
5006 | # Check whether --with-catgets or --without-catgets was given. |
---|
5007 | if test "${with_catgets+set}" = set; then |
---|
5008 | withval="$with_catgets" |
---|
5009 | nls_cv_use_catgets=$withval |
---|
5010 | else |
---|
5011 | nls_cv_use_catgets=no |
---|
5012 | fi |
---|
5013 | |
---|
5014 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 |
---|
5015 | |
---|
5016 | if test "$nls_cv_use_catgets" = "yes"; then |
---|
5017 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 |
---|
5018 | echo "configure:5019: checking for main in -li" >&5 |
---|
5019 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
---|
5020 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5021 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5022 | else |
---|
5023 | ac_save_LIBS="$LIBS" |
---|
5024 | LIBS="-li $LIBS" |
---|
5025 | cat > conftest.$ac_ext <<EOF |
---|
5026 | #line 5027 "configure" |
---|
5027 | #include "confdefs.h" |
---|
5028 | |
---|
5029 | int main() { |
---|
5030 | main() |
---|
5031 | ; return 0; } |
---|
5032 | EOF |
---|
5033 | if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5034 | rm -rf conftest* |
---|
5035 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5036 | else |
---|
5037 | echo "configure: failed program was:" >&5 |
---|
5038 | cat conftest.$ac_ext >&5 |
---|
5039 | rm -rf conftest* |
---|
5040 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5041 | fi |
---|
5042 | rm -f conftest* |
---|
5043 | LIBS="$ac_save_LIBS" |
---|
5044 | |
---|
5045 | fi |
---|
5046 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5047 | echo "$ac_t""yes" 1>&6 |
---|
5048 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
5049 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
5050 | cat >> confdefs.h <<EOF |
---|
5051 | #define $ac_tr_lib 1 |
---|
5052 | EOF |
---|
5053 | |
---|
5054 | LIBS="-li $LIBS" |
---|
5055 | |
---|
5056 | else |
---|
5057 | echo "$ac_t""no" 1>&6 |
---|
5058 | fi |
---|
5059 | |
---|
5060 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 |
---|
5061 | echo "configure:5062: checking for catgets" >&5 |
---|
5062 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
---|
5063 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5064 | else |
---|
5065 | cat > conftest.$ac_ext <<EOF |
---|
5066 | #line 5067 "configure" |
---|
5067 | #include "confdefs.h" |
---|
5068 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5069 | which can conflict with char catgets(); below. */ |
---|
5070 | #include <assert.h> |
---|
5071 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5072 | /* We use char because int might match the return type of a gcc2 |
---|
5073 | builtin and then its argument prototype would still apply. */ |
---|
5074 | char catgets(); |
---|
5075 | |
---|
5076 | int main() { |
---|
5077 | |
---|
5078 | /* The GNU C library defines this for functions which it implements |
---|
5079 | to always fail with ENOSYS. Some functions are actually named |
---|
5080 | something starting with __ and the normal name is an alias. */ |
---|
5081 | #if defined (__stub_catgets) || defined (__stub___catgets) |
---|
5082 | choke me |
---|
5083 | #else |
---|
5084 | catgets(); |
---|
5085 | #endif |
---|
5086 | |
---|
5087 | ; return 0; } |
---|
5088 | EOF |
---|
5089 | if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5090 | rm -rf conftest* |
---|
5091 | eval "ac_cv_func_catgets=yes" |
---|
5092 | else |
---|
5093 | echo "configure: failed program was:" >&5 |
---|
5094 | cat conftest.$ac_ext >&5 |
---|
5095 | rm -rf conftest* |
---|
5096 | eval "ac_cv_func_catgets=no" |
---|
5097 | fi |
---|
5098 | rm -f conftest* |
---|
5099 | fi |
---|
5100 | |
---|
5101 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then |
---|
5102 | echo "$ac_t""yes" 1>&6 |
---|
5103 | cat >> confdefs.h <<\EOF |
---|
5104 | #define HAVE_CATGETS 1 |
---|
5105 | EOF |
---|
5106 | |
---|
5107 | INTLOBJS="\$(CATOBJS)" |
---|
5108 | # Extract the first word of "gencat", so it can be a program name with args. |
---|
5109 | set dummy gencat; ac_word=$2 |
---|
5110 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5111 | echo "configure:5112: checking for $ac_word" >&5 |
---|
5112 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
---|
5113 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5114 | else |
---|
5115 | case "$GENCAT" in |
---|
5116 | /*) |
---|
5117 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. |
---|
5118 | ;; |
---|
5119 | ?:/*) |
---|
5120 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. |
---|
5121 | ;; |
---|
5122 | *) |
---|
5123 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
5124 | ac_dummy="$PATH" |
---|
5125 | for ac_dir in $ac_dummy; do |
---|
5126 | test -z "$ac_dir" && ac_dir=. |
---|
5127 | if test -f $ac_dir/$ac_word; then |
---|
5128 | ac_cv_path_GENCAT="$ac_dir/$ac_word" |
---|
5129 | break |
---|
5130 | fi |
---|
5131 | done |
---|
5132 | IFS="$ac_save_ifs" |
---|
5133 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" |
---|
5134 | ;; |
---|
5135 | esac |
---|
5136 | fi |
---|
5137 | GENCAT="$ac_cv_path_GENCAT" |
---|
5138 | if test -n "$GENCAT"; then |
---|
5139 | echo "$ac_t""$GENCAT" 1>&6 |
---|
5140 | else |
---|
5141 | echo "$ac_t""no" 1>&6 |
---|
5142 | fi |
---|
5143 | # if test "$GENCAT" != "no"; then |
---|
5144 | # AC_PATH_PROG(GMSGFMT, gmsgfmt, no) |
---|
5145 | # if test "$GMSGFMT" = "no"; then |
---|
5146 | # AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, |
---|
5147 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) |
---|
5148 | # fi |
---|
5149 | # AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
---|
5150 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
---|
5151 | # USE_INCLUDED_LIBINTL=yes |
---|
5152 | # CATOBJEXT=.cat |
---|
5153 | # INSTOBJEXT=.cat |
---|
5154 | # DATADIRNAME=lib |
---|
5155 | # INTLDEPS='$(top_builddir)/intl/libintl.a' |
---|
5156 | # INTLLIBS=$INTLDEPS |
---|
5157 | # LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5158 | # nls_cv_header_intl=intl/libintl.h |
---|
5159 | # nls_cv_header_libgt=intl/libgettext.h |
---|
5160 | # fi |
---|
5161 | |
---|
5162 | else |
---|
5163 | echo "$ac_t""no" 1>&6 |
---|
5164 | fi |
---|
5165 | |
---|
5166 | fi |
---|
5167 | fi |
---|
5168 | |
---|
5169 | if test "$CATOBJEXT" = "NONE"; then |
---|
5170 | nls_cv_use_gnu_gettext=yes |
---|
5171 | fi |
---|
5172 | fi |
---|
5173 | |
---|
5174 | if test "$nls_cv_use_gnu_gettext" != "yes"; then |
---|
5175 | cat >> confdefs.h <<\EOF |
---|
5176 | #define ENABLE_NLS 1 |
---|
5177 | EOF |
---|
5178 | |
---|
5179 | else |
---|
5180 | # Unset this variable since we use the non-zero value as a flag. |
---|
5181 | CATOBJEXT= |
---|
5182 | # dnl Mark actions used to generate GNU NLS library. |
---|
5183 | # INTLOBJS="\$(GETTOBJS)" |
---|
5184 | # AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
---|
5185 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) |
---|
5186 | # AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
---|
5187 | # AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
---|
5188 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
---|
5189 | # AC_SUBST(MSGFMT) |
---|
5190 | # USE_INCLUDED_LIBINTL=yes |
---|
5191 | # CATOBJEXT=.gmo |
---|
5192 | # INSTOBJEXT=.mo |
---|
5193 | # DATADIRNAME=share |
---|
5194 | # INTLDEPS='$(top_builddir)/intl/libintl.a' |
---|
5195 | # INTLLIBS=$INTLDEPS |
---|
5196 | # LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5197 | # nls_cv_header_intl=intl/libintl.h |
---|
5198 | # nls_cv_header_libgt=intl/libgettext.h |
---|
5199 | fi |
---|
5200 | |
---|
5201 | if test "$XGETTEXT" != ":"; then |
---|
5202 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
---|
5203 | : ; |
---|
5204 | else |
---|
5205 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
---|
5206 | XGETTEXT=":" |
---|
5207 | fi |
---|
5208 | fi |
---|
5209 | |
---|
5210 | # We need to process the po/ directory. |
---|
5211 | POSUB=po |
---|
5212 | else |
---|
5213 | DATADIRNAME=share |
---|
5214 | nls_cv_header_intl=intl/libintl.h |
---|
5215 | nls_cv_header_libgt=intl/libgettext.h |
---|
5216 | fi |
---|
5217 | |
---|
5218 | |
---|
5219 | |
---|
5220 | |
---|
5221 | # # If this is used in GNU gettext we have to set USE_NLS to `yes' |
---|
5222 | # # because some of the sources are only built for this goal. |
---|
5223 | # if test "$PACKAGE" = gettext; then |
---|
5224 | # USE_NLS=yes |
---|
5225 | # USE_INCLUDED_LIBINTL=yes |
---|
5226 | # fi |
---|
5227 | |
---|
5228 | for lang in $ALL_LINGUAS; do |
---|
5229 | GMOFILES="$GMOFILES $lang.gmo" |
---|
5230 | POFILES="$POFILES $lang.po" |
---|
5231 | done |
---|
5232 | |
---|
5233 | |
---|
5234 | |
---|
5235 | |
---|
5236 | |
---|
5237 | |
---|
5238 | |
---|
5239 | |
---|
5240 | |
---|
5241 | |
---|
5242 | |
---|
5243 | |
---|
5244 | |
---|
5245 | |
---|
5246 | if test "x$CATOBJEXT" != "x"; then |
---|
5247 | if test "x$ALL_LINGUAS" = "x"; then |
---|
5248 | LINGUAS= |
---|
5249 | else |
---|
5250 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
---|
5251 | echo "configure:5252: checking for catalogs to be installed" >&5 |
---|
5252 | NEW_LINGUAS= |
---|
5253 | if test "x$LINGUAS" = "x"; then |
---|
5254 | LINGUAS=$ALL_LINGUAS |
---|
5255 | fi |
---|
5256 | for lang in $LINGUAS; do |
---|
5257 | case "$ALL_LINGUAS" in |
---|
5258 | *\ $lang\ *|$lang\ *|*\ $lang) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
---|
5259 | esac |
---|
5260 | done |
---|
5261 | LINGUAS=$NEW_LINGUAS |
---|
5262 | echo "$ac_t""$LINGUAS" 1>&6 |
---|
5263 | fi |
---|
5264 | |
---|
5265 | if test -n "$LINGUAS"; then |
---|
5266 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
---|
5267 | fi |
---|
5268 | fi |
---|
5269 | |
---|
5270 | if test $ac_cv_header_locale_h = yes; then |
---|
5271 | INCLUDE_LOCALE_H="#include <locale.h>" |
---|
5272 | else |
---|
5273 | INCLUDE_LOCALE_H="\ |
---|
5274 | /* The system does not provide the header <locale.h>. Take care yourself. */" |
---|
5275 | fi |
---|
5276 | |
---|
5277 | |
---|
5278 | test -d intl || mkdir intl |
---|
5279 | if test "$CATOBJEXT" = ".cat"; then |
---|
5280 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
---|
5281 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 |
---|
5282 | echo "configure:5283: checking for linux/version.h" >&5 |
---|
5283 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5284 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5285 | else |
---|
5286 | cat > conftest.$ac_ext <<EOF |
---|
5287 | #line 5288 "configure" |
---|
5288 | #include "confdefs.h" |
---|
5289 | #include <linux/version.h> |
---|
5290 | EOF |
---|
5291 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5292 | { (eval echo configure:5293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5293 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5294 | if test -z "$ac_err"; then |
---|
5295 | rm -rf conftest* |
---|
5296 | eval "ac_cv_header_$ac_safe=yes" |
---|
5297 | else |
---|
5298 | echo "$ac_err" >&5 |
---|
5299 | echo "configure: failed program was:" >&5 |
---|
5300 | cat conftest.$ac_ext >&5 |
---|
5301 | rm -rf conftest* |
---|
5302 | eval "ac_cv_header_$ac_safe=no" |
---|
5303 | fi |
---|
5304 | rm -f conftest* |
---|
5305 | fi |
---|
5306 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5307 | echo "$ac_t""yes" 1>&6 |
---|
5308 | msgformat=linux |
---|
5309 | else |
---|
5310 | echo "$ac_t""no" 1>&6 |
---|
5311 | msgformat=xopen |
---|
5312 | fi |
---|
5313 | |
---|
5314 | |
---|
5315 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed |
---|
5316 | fi |
---|
5317 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ |
---|
5318 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed |
---|
5319 | |
---|
5320 | if test "$PACKAGE" = "gettext"; then |
---|
5321 | GT_NO="#NO#" |
---|
5322 | GT_YES= |
---|
5323 | else |
---|
5324 | GT_NO= |
---|
5325 | GT_YES="#YES#" |
---|
5326 | fi |
---|
5327 | |
---|
5328 | |
---|
5329 | |
---|
5330 | MKINSTALLDIRS= |
---|
5331 | if test -n "$ac_aux_dir"; then |
---|
5332 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
---|
5333 | fi |
---|
5334 | if test -z "$MKINSTALLDIRS"; then |
---|
5335 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
---|
5336 | fi |
---|
5337 | |
---|
5338 | |
---|
5339 | l= |
---|
5340 | |
---|
5341 | |
---|
5342 | test -d po || mkdir po |
---|
5343 | if test "x$srcdir" != "x."; then |
---|
5344 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
---|
5345 | posrcprefix="$srcdir/" |
---|
5346 | else |
---|
5347 | posrcprefix="../$srcdir/" |
---|
5348 | fi |
---|
5349 | else |
---|
5350 | posrcprefix="../" |
---|
5351 | fi |
---|
5352 | rm -f po/POTFILES |
---|
5353 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
---|
5354 | < $srcdir/po/POTFILES.in > po/POTFILES |
---|
5355 | |
---|
5356 | # AM_GNOME_GETTEXT above substs $DATADIRNAME |
---|
5357 | # this is the directory where the *.{mo,gmo} files are installed |
---|
5358 | gnomelocaledir='${prefix}/share/locale' |
---|
5359 | |
---|
5360 | |
---|
5361 | |
---|
5362 | |
---|
5363 | |
---|
5364 | |
---|
5365 | for ac_hdr in dlfcn.h dl.h syslog.h tcpd.h |
---|
5366 | do |
---|
5367 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5368 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
5369 | echo "configure:5370: checking for $ac_hdr" >&5 |
---|
5370 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5371 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5372 | else |
---|
5373 | cat > conftest.$ac_ext <<EOF |
---|
5374 | #line 5375 "configure" |
---|
5375 | #include "confdefs.h" |
---|
5376 | #include <$ac_hdr> |
---|
5377 | EOF |
---|
5378 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5379 | { (eval echo configure:5380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5380 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5381 | if test -z "$ac_err"; then |
---|
5382 | rm -rf conftest* |
---|
5383 | eval "ac_cv_header_$ac_safe=yes" |
---|
5384 | else |
---|
5385 | echo "$ac_err" >&5 |
---|
5386 | echo "configure: failed program was:" >&5 |
---|
5387 | cat conftest.$ac_ext >&5 |
---|
5388 | rm -rf conftest* |
---|
5389 | eval "ac_cv_header_$ac_safe=no" |
---|
5390 | fi |
---|
5391 | rm -f conftest* |
---|
5392 | fi |
---|
5393 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5394 | echo "$ac_t""yes" 1>&6 |
---|
5395 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5396 | cat >> confdefs.h <<EOF |
---|
5397 | #define $ac_tr_hdr 1 |
---|
5398 | EOF |
---|
5399 | |
---|
5400 | else |
---|
5401 | echo "$ac_t""no" 1>&6 |
---|
5402 | fi |
---|
5403 | done |
---|
5404 | |
---|
5405 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
---|
5406 | echo "configure:5407: checking for dlopen in -ldl" >&5 |
---|
5407 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
---|
5408 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5409 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5410 | else |
---|
5411 | ac_save_LIBS="$LIBS" |
---|
5412 | LIBS="-ldl $LIBS" |
---|
5413 | cat > conftest.$ac_ext <<EOF |
---|
5414 | #line 5415 "configure" |
---|
5415 | #include "confdefs.h" |
---|
5416 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5417 | /* We use char because int might match the return type of a gcc2 |
---|
5418 | builtin and then its argument prototype would still apply. */ |
---|
5419 | char dlopen(); |
---|
5420 | |
---|
5421 | int main() { |
---|
5422 | dlopen() |
---|
5423 | ; return 0; } |
---|
5424 | EOF |
---|
5425 | if { (eval echo configure:5426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5426 | rm -rf conftest* |
---|
5427 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5428 | else |
---|
5429 | echo "configure: failed program was:" >&5 |
---|
5430 | cat conftest.$ac_ext >&5 |
---|
5431 | rm -rf conftest* |
---|
5432 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5433 | fi |
---|
5434 | rm -f conftest* |
---|
5435 | LIBS="$ac_save_LIBS" |
---|
5436 | |
---|
5437 | fi |
---|
5438 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5439 | echo "$ac_t""yes" 1>&6 |
---|
5440 | DL_LIB="-ldl" |
---|
5441 | else |
---|
5442 | echo "$ac_t""no" 1>&6 |
---|
5443 | |
---|
5444 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
---|
5445 | echo "configure:5446: checking for shl_load in -ldld" >&5 |
---|
5446 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
---|
5447 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5448 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5449 | else |
---|
5450 | ac_save_LIBS="$LIBS" |
---|
5451 | LIBS="-ldld $LIBS" |
---|
5452 | cat > conftest.$ac_ext <<EOF |
---|
5453 | #line 5454 "configure" |
---|
5454 | #include "confdefs.h" |
---|
5455 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5456 | /* We use char because int might match the return type of a gcc2 |
---|
5457 | builtin and then its argument prototype would still apply. */ |
---|
5458 | char shl_load(); |
---|
5459 | |
---|
5460 | int main() { |
---|
5461 | shl_load() |
---|
5462 | ; return 0; } |
---|
5463 | EOF |
---|
5464 | if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5465 | rm -rf conftest* |
---|
5466 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5467 | else |
---|
5468 | echo "configure: failed program was:" >&5 |
---|
5469 | cat conftest.$ac_ext >&5 |
---|
5470 | rm -rf conftest* |
---|
5471 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5472 | fi |
---|
5473 | rm -f conftest* |
---|
5474 | LIBS="$ac_save_LIBS" |
---|
5475 | |
---|
5476 | fi |
---|
5477 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5478 | echo "$ac_t""yes" 1>&6 |
---|
5479 | DL_LIB="-ldld" |
---|
5480 | else |
---|
5481 | echo "$ac_t""no" 1>&6 |
---|
5482 | |
---|
5483 | for ac_func in dlopen |
---|
5484 | do |
---|
5485 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5486 | echo "configure:5487: checking for $ac_func" >&5 |
---|
5487 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5488 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5489 | else |
---|
5490 | cat > conftest.$ac_ext <<EOF |
---|
5491 | #line 5492 "configure" |
---|
5492 | #include "confdefs.h" |
---|
5493 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5494 | which can conflict with char $ac_func(); below. */ |
---|
5495 | #include <assert.h> |
---|
5496 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5497 | /* We use char because int might match the return type of a gcc2 |
---|
5498 | builtin and then its argument prototype would still apply. */ |
---|
5499 | char $ac_func(); |
---|
5500 | |
---|
5501 | int main() { |
---|
5502 | |
---|
5503 | /* The GNU C library defines this for functions which it implements |
---|
5504 | to always fail with ENOSYS. Some functions are actually named |
---|
5505 | something starting with __ and the normal name is an alias. */ |
---|
5506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5507 | choke me |
---|
5508 | #else |
---|
5509 | $ac_func(); |
---|
5510 | #endif |
---|
5511 | |
---|
5512 | ; return 0; } |
---|
5513 | EOF |
---|
5514 | if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5515 | rm -rf conftest* |
---|
5516 | eval "ac_cv_func_$ac_func=yes" |
---|
5517 | else |
---|
5518 | echo "configure: failed program was:" >&5 |
---|
5519 | cat conftest.$ac_ext >&5 |
---|
5520 | rm -rf conftest* |
---|
5521 | eval "ac_cv_func_$ac_func=no" |
---|
5522 | fi |
---|
5523 | rm -f conftest* |
---|
5524 | fi |
---|
5525 | |
---|
5526 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5527 | echo "$ac_t""yes" 1>&6 |
---|
5528 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
5529 | cat >> confdefs.h <<EOF |
---|
5530 | #define $ac_tr_func 1 |
---|
5531 | EOF |
---|
5532 | DL_LIB="" |
---|
5533 | else |
---|
5534 | echo "$ac_t""no" 1>&6 |
---|
5535 | { echo "configure: error: Dynamic linking is not available on this platform. Some |
---|
5536 | apps" 1>&2; exit 1; } |
---|
5537 | fi |
---|
5538 | done |
---|
5539 | |
---|
5540 | |
---|
5541 | fi |
---|
5542 | |
---|
5543 | fi |
---|
5544 | |
---|
5545 | |
---|
5546 | |
---|
5547 | for dir in `(IFS=:; for i in $PATH; do echo $i ; done)` ; do |
---|
5548 | if test -f $dir/orbit-idl ; then |
---|
5549 | orbit_prefix=`echo $dir | sed 's%/bin$%%' |sed 's%/bin/$%%'` |
---|
5550 | break |
---|
5551 | fi |
---|
5552 | done |
---|
5553 | |
---|
5554 | ORB_LIBS="$ORBIT_LIBS" |
---|
5555 | ORB_CFLAGS="$ORBIT_CFLAGS" |
---|
5556 | |
---|
5557 | |
---|
5558 | |
---|
5559 | |
---|
5560 | echo $ac_n "checking for CApplet library""... $ac_c" 1>&6 |
---|
5561 | echo "configure:5562: checking for CApplet library" >&5 |
---|
5562 | vers=`$GNOME_CONFIG --modversion capplet` |
---|
5563 | case "x$vers" in |
---|
5564 | xcapplet-*) |
---|
5565 | echo "$ac_t""found" 1>&6 |
---|
5566 | ;; |
---|
5567 | *) |
---|
5568 | { echo "configure: error: Did not find CApplet library" 1>&2; exit 1; } |
---|
5569 | ;; |
---|
5570 | esac |
---|
5571 | |
---|
5572 | echo $ac_n "checking for Configure Easter Egg version >= 3.14""... $ac_c" 1>&6 |
---|
5573 | echo "configure:5574: checking for Configure Easter Egg version >= 3.14" >&5 |
---|
5574 | echo "$ac_t""found" 1>&6 |
---|
5575 | |
---|
5576 | echo $ac_n "checking for GdkPixbuf library >= 0.7.0""... $ac_c" 1>&6 |
---|
5577 | echo "configure:5578: checking for GdkPixbuf library >= 0.7.0" >&5 |
---|
5578 | PIXBUF_CFLAGS=`$GNOME_CONFIG --cflags gdk_pixbuf` |
---|
5579 | PIXBUF_LIBS=`$GNOME_CONFIG --libs gdk_pixbuf` |
---|
5580 | if test "x$PIXBUF_CFLAGS" != x ; then |
---|
5581 | vers=`gdk-pixbuf-config --version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` |
---|
5582 | if test "$vers" -ge 0007000; then |
---|
5583 | echo "$ac_t""found" 1>&6 |
---|
5584 | else |
---|
5585 | { echo "configure: error: You need at least GdkPixbuf version 0.7.0 for the panel" 1>&2; exit 1; } |
---|
5586 | fi |
---|
5587 | else |
---|
5588 | { echo "configure: error: Did not find GdkPixbuf installed" 1>&2; exit 1; } |
---|
5589 | fi |
---|
5590 | |
---|
5591 | |
---|
5592 | |
---|
5593 | CANVAS_PIXBUF_CFLAGS=`$GNOME_CONFIG --cflags gnomecanvaspixbuf` |
---|
5594 | CANVAS_PIXBUF_LIBS=`$GNOME_CONFIG --libs gnomecanvaspixbuf` |
---|
5595 | |
---|
5596 | |
---|
5597 | if test "x$CANVAS_PIXBUF_CFLAGS" = x ; then |
---|
5598 | { echo "configure: error: GnomeCanvasPixbuf is required for gnome-about. |
---|
5599 | This is contained in the gdk-pixbuf module" 1>&2; exit 1; } |
---|
5600 | fi |
---|
5601 | |
---|
5602 | ZVT_LIBS=`$GNOME_CONFIG --libs zvt` |
---|
5603 | |
---|
5604 | |
---|
5605 | echo $ac_n "checking for Glade libraries >= 0.14""... $ac_c" 1>&6 |
---|
5606 | echo "configure:5607: checking for Glade libraries >= 0.14" >&5 |
---|
5607 | libglade_ok=no |
---|
5608 | if gnome-config --libs libglade > /dev/null 2>&1; then |
---|
5609 | verstxt=`gnome-config --modversion libglade` |
---|
5610 | vers=`echo "$verstxt" | awk -F. '{ printf "%d", $1 * 1000 + $2;}'` |
---|
5611 | if test "$vers" -ge 14; then |
---|
5612 | echo "$ac_t""$marker_ok found $verstxt" 1>&6 |
---|
5613 | libglade_ok=yes |
---|
5614 | else |
---|
5615 | echo "$ac_t""$marker_fail found only $verstxt" 1>&6 |
---|
5616 | fi |
---|
5617 | else |
---|
5618 | echo "$ac_t""$marker_fail not found" 1>&6 |
---|
5619 | fi |
---|
5620 | if test "$libglade_ok" = no; then |
---|
5621 | { echo "configure: error: You need at least libglade 0.14 for this version of gnome-core" 1>&2; exit 1; } |
---|
5622 | fi |
---|
5623 | unset libglade_ok |
---|
5624 | GT_LIBS="libglade zvt gnorba gnomeui" |
---|
5625 | GNOME_TERMINAL_LIBS=`gnome-config --libs $GT_LIBS` |
---|
5626 | GNOME_TERMINAL_CFLAGS=`gnome-config --cflags $GT_LIBS` |
---|
5627 | |
---|
5628 | |
---|
5629 | |
---|
5630 | |
---|
5631 | |
---|
5632 | if test "$GNOME_HAVE_SM" = true; then |
---|
5633 | SESSION_TRUE= |
---|
5634 | SESSION_FALSE='#' |
---|
5635 | else |
---|
5636 | SESSION_TRUE='#' |
---|
5637 | SESSION_FALSE= |
---|
5638 | fi |
---|
5639 | |
---|
5640 | echo $ac_n "checking "whether to use TCP wrappers"""... $ac_c" 1>&6 |
---|
5641 | echo "configure:5642: checking "whether to use TCP wrappers"" >&5 |
---|
5642 | LIBWRAP_PATH="" |
---|
5643 | for I in $LDFLAGS $LIBS -L/usr/lib -L/usr/local/lib; do |
---|
5644 | case "$I" in |
---|
5645 | -L*) |
---|
5646 | THEFILE="`echo $I | sed -e 's,^-L,,'`" |
---|
5647 | echo "From $I, checking in dir $THEFILE for libwrap.a" 1>&5 |
---|
5648 | if test -f $THEFILE/libwrap.a; then |
---|
5649 | LIBWRAP_PATH="$THEFILE" |
---|
5650 | echo "Found in $LIBWRAP_PATH" 1>&5 |
---|
5651 | break |
---|
5652 | fi |
---|
5653 | esac |
---|
5654 | done |
---|
5655 | if test -n "$LIBWRAP_PATH"; then |
---|
5656 | echo "$ac_t""yes" 1>&6 |
---|
5657 | else |
---|
5658 | echo "$ac_t""no" 1>&6 |
---|
5659 | fi |
---|
5660 | |
---|
5661 | if test -n "$LIBWRAP_PATH"; then |
---|
5662 | nm $LIBWRAP_PATH/libwrap.* | grep 'T setenv' && LIBWRAP_PATH="" |
---|
5663 | if test -z "$LIBWRAP_PATH"; then |
---|
5664 | echo "*********************************************************" |
---|
5665 | echo " You have a broken TCP wrappers library (setenv included)" |
---|
5666 | echo " Please get the latest TCP wrappers package from your OS" |
---|
5667 | echo " vendor, or recompile TCP wrappers to not include a" |
---|
5668 | echo " setenv() implementation." |
---|
5669 | echo |
---|
5670 | echo "Not using TCP wrappers after all." |
---|
5671 | echo "*********************************************************" |
---|
5672 | fi |
---|
5673 | fi |
---|
5674 | if test "$ac_cv_header_syslog_h" != yes || test "$ac_cv_header_tcpd_h" != yes; then |
---|
5675 | echo "Resetting $LIBWRAP_PATH because syslog is $ac_cv_header_syslog_h and tcpd is $ac_cv_header_tcpd_h" 1>&5 |
---|
5676 | LIBWRAP_PATH="" |
---|
5677 | fi |
---|
5678 | |
---|
5679 | LIBWRAP_NSL= |
---|
5680 | if test -n "$LIBWRAP_PATH"; then |
---|
5681 | echo $ac_n "checking whether -lwrap requires -lnsl""... $ac_c" 1>&6 |
---|
5682 | echo "configure:5683: checking whether -lwrap requires -lnsl" >&5 |
---|
5683 | ORIG_LIBS="$LIBS" |
---|
5684 | LIBS="-L$LIBWRAP_PATH -lwrap $LIBS" |
---|
5685 | cat > conftest.$ac_ext <<EOF |
---|
5686 | #line 5687 "configure" |
---|
5687 | #include "confdefs.h" |
---|
5688 | |
---|
5689 | extern int hosts_access; |
---|
5690 | int allow_severity, deny_severity; |
---|
5691 | |
---|
5692 | int main() { |
---|
5693 | return hosts_access; |
---|
5694 | ; return 0; } |
---|
5695 | EOF |
---|
5696 | if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5697 | : |
---|
5698 | else |
---|
5699 | echo "configure: failed program was:" >&5 |
---|
5700 | cat conftest.$ac_ext >&5 |
---|
5701 | rm -rf conftest* |
---|
5702 | |
---|
5703 | OLD_LIBS="$LIBS" |
---|
5704 | LIBS="$LIBS -lnsl" |
---|
5705 | cat > conftest.$ac_ext <<EOF |
---|
5706 | #line 5707 "configure" |
---|
5707 | #include "confdefs.h" |
---|
5708 | |
---|
5709 | extern int hosts_access; |
---|
5710 | int allow_severity, deny_severity; |
---|
5711 | |
---|
5712 | int main() { |
---|
5713 | return hosts_access; |
---|
5714 | ; return 0; } |
---|
5715 | EOF |
---|
5716 | if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5717 | rm -rf conftest* |
---|
5718 | LIBWRAP_NSL="-lnsl" |
---|
5719 | else |
---|
5720 | echo "configure: failed program was:" >&5 |
---|
5721 | cat conftest.$ac_ext >&5 |
---|
5722 | rm -rf conftest* |
---|
5723 | LIBWRAP_PATH="" |
---|
5724 | fi |
---|
5725 | rm -f conftest* |
---|
5726 | LIBS="$OLD_LIBS" |
---|
5727 | |
---|
5728 | fi |
---|
5729 | rm -f conftest* |
---|
5730 | LIBS="$ORIG_LIBS" |
---|
5731 | if test -n "$LIB_NSL"; then |
---|
5732 | echo "$ac_t""yes" 1>&6 |
---|
5733 | LIBS="$LIBS $LIB_NSL" |
---|
5734 | else |
---|
5735 | echo "$ac_t""no" 1>&6 |
---|
5736 | fi |
---|
5737 | fi |
---|
5738 | LIBWRAP_LIBS= |
---|
5739 | if test -n "$LIBWRAP_PATH"; then |
---|
5740 | LIBWRAP_LIBS="-L$LIBWRAP_PATH -lwrap $LIBWRAP_NSL" |
---|
5741 | cat >> confdefs.h <<\EOF |
---|
5742 | #define HAVE_HOSTS_ACCESS 1 |
---|
5743 | EOF |
---|
5744 | |
---|
5745 | fi |
---|
5746 | |
---|
5747 | |
---|
5748 | # Check whether --with-window-manager or --without-window-manager was given. |
---|
5749 | if test "${with_window_manager+set}" = set; then |
---|
5750 | withval="$with_window_manager" |
---|
5751 | |
---|
5752 | WINDOW_MANAGER="$with_window_manager" |
---|
5753 | else |
---|
5754 | |
---|
5755 | WINDOW_MANAGER=gnome-wm |
---|
5756 | fi |
---|
5757 | |
---|
5758 | |
---|
5759 | |
---|
5760 | |
---|
5761 | |
---|
5762 | # Check whether --with-gtkhtml or --without-gtkhtml was given. |
---|
5763 | if test "${with_gtkhtml+set}" = set; then |
---|
5764 | withval="$with_gtkhtml" |
---|
5765 | |
---|
5766 | GTK_HTML_PREFIX="$with_gtkhtml" |
---|
5767 | else |
---|
5768 | |
---|
5769 | GTK_HTML_PREFIX=`$GNOME_CONFIG --prefix` |
---|
5770 | fi |
---|
5771 | |
---|
5772 | |
---|
5773 | |
---|
5774 | # Check whether --with-gnome-print or --without-gnome-print was given. |
---|
5775 | if test "${with_gnome_print+set}" = set; then |
---|
5776 | withval="$with_gnome_print" |
---|
5777 | |
---|
5778 | GNOME_PRINT_PREFIX="$with_gnome_print" |
---|
5779 | else |
---|
5780 | |
---|
5781 | GNOME_PRINT_PREFIX=`$GNOME_CONFIG --prefix` |
---|
5782 | fi |
---|
5783 | |
---|
5784 | |
---|
5785 | |
---|
5786 | help_use_gtkhtml=false |
---|
5787 | |
---|
5788 | CPPFLAGS_save=$CPPFLAGS |
---|
5789 | LDFLAGS_save=$LDFLAGS |
---|
5790 | CPPFLAGS=`$GNOME_CONFIG --cflags gtkhtml` |
---|
5791 | LDFLAGS=`$GNOME_CONFIG --libs gtkhtml` |
---|
5792 | |
---|
5793 | lib_gtkhtml=false |
---|
5794 | echo $ac_n "checking for gtk_html_construct in -lgtkhtml""... $ac_c" 1>&6 |
---|
5795 | echo "configure:5796: checking for gtk_html_construct in -lgtkhtml" >&5 |
---|
5796 | ac_lib_var=`echo gtkhtml'_'gtk_html_construct | sed 'y%./+-%__p_%'` |
---|
5797 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5798 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5799 | else |
---|
5800 | ac_save_LIBS="$LIBS" |
---|
5801 | LIBS="-lgtkhtml $LIBS" |
---|
5802 | cat > conftest.$ac_ext <<EOF |
---|
5803 | #line 5804 "configure" |
---|
5804 | #include "confdefs.h" |
---|
5805 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5806 | /* We use char because int might match the return type of a gcc2 |
---|
5807 | builtin and then its argument prototype would still apply. */ |
---|
5808 | char gtk_html_construct(); |
---|
5809 | |
---|
5810 | int main() { |
---|
5811 | gtk_html_construct() |
---|
5812 | ; return 0; } |
---|
5813 | EOF |
---|
5814 | if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5815 | rm -rf conftest* |
---|
5816 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5817 | else |
---|
5818 | echo "configure: failed program was:" >&5 |
---|
5819 | cat conftest.$ac_ext >&5 |
---|
5820 | rm -rf conftest* |
---|
5821 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5822 | fi |
---|
5823 | rm -f conftest* |
---|
5824 | LIBS="$ac_save_LIBS" |
---|
5825 | |
---|
5826 | fi |
---|
5827 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5828 | echo "$ac_t""yes" 1>&6 |
---|
5829 | lib_gtkhtml=true |
---|
5830 | else |
---|
5831 | echo "$ac_t""no" 1>&6 |
---|
5832 | |
---|
5833 | echo "configure: warning: Recent enough GtkHTML library not found (using GtkXmHTML) |
---|
5834 | " 1>&2 |
---|
5835 | |
---|
5836 | fi |
---|
5837 | |
---|
5838 | |
---|
5839 | CPPFLAGS=$CPPFLAGS_save |
---|
5840 | LDFLAGS=$LDFLAGS_save |
---|
5841 | |
---|
5842 | # Check whether --enable-gtkhtml-help or --disable-gtkhtml-help was given. |
---|
5843 | if test "${enable_gtkhtml_help+set}" = set; then |
---|
5844 | enableval="$enable_gtkhtml_help" |
---|
5845 | gtkhtml_enabled="$enableval" |
---|
5846 | else |
---|
5847 | gtkhtml_enabled=no |
---|
5848 | fi |
---|
5849 | |
---|
5850 | |
---|
5851 | if test "x$gtkhtml_enabled" = "xyes" ; then |
---|
5852 | if test "x$lib_gtkhtml" = "xtrue" ; then |
---|
5853 | echo $ac_n "checking for static libgtkhtml""... $ac_c" 1>&6 |
---|
5854 | echo "configure:5855: checking for static libgtkhtml" >&5 |
---|
5855 | if test -e $GTK_HTML_PREFIX/lib/libgtkhtml.a ; then |
---|
5856 | echo "$ac_t""yes" 1>&6 |
---|
5857 | echo $ac_n "checking for static libgnomeprint""... $ac_c" 1>&6 |
---|
5858 | echo "configure:5859: checking for static libgnomeprint" >&5 |
---|
5859 | if test -e $GNOME_PRINT_PREFIX/lib/libgnomeprint.a ; then |
---|
5860 | echo "$ac_t""yes" 1>&6 |
---|
5861 | help_use_gtkhtml=true |
---|
5862 | else |
---|
5863 | echo "$ac_t""no" 1>&6 |
---|
5864 | fi |
---|
5865 | else |
---|
5866 | echo "$ac_t""no" 1>&6 |
---|
5867 | fi |
---|
5868 | fi |
---|
5869 | fi |
---|
5870 | |
---|
5871 | echo $ac_n "checking which HTML widget to use""... $ac_c" 1>&6 |
---|
5872 | echo "configure:5873: checking which HTML widget to use" >&5 |
---|
5873 | if test "x$help_use_gtkhtml" = "xtrue" ; then |
---|
5874 | echo "$ac_t""GtkHTML" 1>&6 |
---|
5875 | else |
---|
5876 | echo "$ac_t""GtkXmHTML" 1>&6 |
---|
5877 | fi |
---|
5878 | |
---|
5879 | |
---|
5880 | |
---|
5881 | if test x$help_use_gtkhtml = xtrue; then |
---|
5882 | HELP_USE_GTKHTML_TRUE= |
---|
5883 | HELP_USE_GTKHTML_FALSE='#' |
---|
5884 | else |
---|
5885 | HELP_USE_GTKHTML_TRUE='#' |
---|
5886 | HELP_USE_GTKHTML_FALSE= |
---|
5887 | fi |
---|
5888 | |
---|
5889 | oLIBS="$LIBS" |
---|
5890 | RES_LIBS= |
---|
5891 | # the following two are covered by X11 too. If inet_aton is found in |
---|
5892 | # plain libc, -lsocket or -lnsl, RES_LIBS will be empty. |
---|
5893 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
---|
5894 | echo "configure:5895: checking for connect" >&5 |
---|
5895 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
---|
5896 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5897 | else |
---|
5898 | cat > conftest.$ac_ext <<EOF |
---|
5899 | #line 5900 "configure" |
---|
5900 | #include "confdefs.h" |
---|
5901 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5902 | which can conflict with char connect(); below. */ |
---|
5903 | #include <assert.h> |
---|
5904 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5905 | /* We use char because int might match the return type of a gcc2 |
---|
5906 | builtin and then its argument prototype would still apply. */ |
---|
5907 | char connect(); |
---|
5908 | |
---|
5909 | int main() { |
---|
5910 | |
---|
5911 | /* The GNU C library defines this for functions which it implements |
---|
5912 | to always fail with ENOSYS. Some functions are actually named |
---|
5913 | something starting with __ and the normal name is an alias. */ |
---|
5914 | #if defined (__stub_connect) || defined (__stub___connect) |
---|
5915 | choke me |
---|
5916 | #else |
---|
5917 | connect(); |
---|
5918 | #endif |
---|
5919 | |
---|
5920 | ; return 0; } |
---|
5921 | EOF |
---|
5922 | if { (eval echo configure:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5923 | rm -rf conftest* |
---|
5924 | eval "ac_cv_func_connect=yes" |
---|
5925 | else |
---|
5926 | echo "configure: failed program was:" >&5 |
---|
5927 | cat conftest.$ac_ext >&5 |
---|
5928 | rm -rf conftest* |
---|
5929 | eval "ac_cv_func_connect=no" |
---|
5930 | fi |
---|
5931 | rm -f conftest* |
---|
5932 | fi |
---|
5933 | |
---|
5934 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
---|
5935 | echo "$ac_t""yes" 1>&6 |
---|
5936 | : |
---|
5937 | else |
---|
5938 | echo "$ac_t""no" 1>&6 |
---|
5939 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
---|
5940 | echo "configure:5941: checking for connect in -lsocket" >&5 |
---|
5941 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
---|
5942 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5943 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5944 | else |
---|
5945 | ac_save_LIBS="$LIBS" |
---|
5946 | LIBS="-lsocket $LIBS" |
---|
5947 | cat > conftest.$ac_ext <<EOF |
---|
5948 | #line 5949 "configure" |
---|
5949 | #include "confdefs.h" |
---|
5950 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5951 | /* We use char because int might match the return type of a gcc2 |
---|
5952 | builtin and then its argument prototype would still apply. */ |
---|
5953 | char connect(); |
---|
5954 | |
---|
5955 | int main() { |
---|
5956 | connect() |
---|
5957 | ; return 0; } |
---|
5958 | EOF |
---|
5959 | if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5960 | rm -rf conftest* |
---|
5961 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5962 | else |
---|
5963 | echo "configure: failed program was:" >&5 |
---|
5964 | cat conftest.$ac_ext >&5 |
---|
5965 | rm -rf conftest* |
---|
5966 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5967 | fi |
---|
5968 | rm -f conftest* |
---|
5969 | LIBS="$ac_save_LIBS" |
---|
5970 | |
---|
5971 | fi |
---|
5972 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5973 | echo "$ac_t""yes" 1>&6 |
---|
5974 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
5975 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
5976 | cat >> confdefs.h <<EOF |
---|
5977 | #define $ac_tr_lib 1 |
---|
5978 | EOF |
---|
5979 | |
---|
5980 | LIBS="-lsocket $LIBS" |
---|
5981 | |
---|
5982 | else |
---|
5983 | echo "$ac_t""no" 1>&6 |
---|
5984 | fi |
---|
5985 | |
---|
5986 | fi |
---|
5987 | |
---|
5988 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
5989 | echo "configure:5990: checking for gethostbyname" >&5 |
---|
5990 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
5991 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5992 | else |
---|
5993 | cat > conftest.$ac_ext <<EOF |
---|
5994 | #line 5995 "configure" |
---|
5995 | #include "confdefs.h" |
---|
5996 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5997 | which can conflict with char gethostbyname(); below. */ |
---|
5998 | #include <assert.h> |
---|
5999 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6000 | /* We use char because int might match the return type of a gcc2 |
---|
6001 | builtin and then its argument prototype would still apply. */ |
---|
6002 | char gethostbyname(); |
---|
6003 | |
---|
6004 | int main() { |
---|
6005 | |
---|
6006 | /* The GNU C library defines this for functions which it implements |
---|
6007 | to always fail with ENOSYS. Some functions are actually named |
---|
6008 | something starting with __ and the normal name is an alias. */ |
---|
6009 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
6010 | choke me |
---|
6011 | #else |
---|
6012 | gethostbyname(); |
---|
6013 | #endif |
---|
6014 | |
---|
6015 | ; return 0; } |
---|
6016 | EOF |
---|
6017 | if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6018 | rm -rf conftest* |
---|
6019 | eval "ac_cv_func_gethostbyname=yes" |
---|
6020 | else |
---|
6021 | echo "configure: failed program was:" >&5 |
---|
6022 | cat conftest.$ac_ext >&5 |
---|
6023 | rm -rf conftest* |
---|
6024 | eval "ac_cv_func_gethostbyname=no" |
---|
6025 | fi |
---|
6026 | rm -f conftest* |
---|
6027 | fi |
---|
6028 | |
---|
6029 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
6030 | echo "$ac_t""yes" 1>&6 |
---|
6031 | : |
---|
6032 | else |
---|
6033 | echo "$ac_t""no" 1>&6 |
---|
6034 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
6035 | echo "configure:6036: checking for gethostbyname in -lnsl" >&5 |
---|
6036 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
6037 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6038 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6039 | else |
---|
6040 | ac_save_LIBS="$LIBS" |
---|
6041 | LIBS="-lnsl $LIBS" |
---|
6042 | cat > conftest.$ac_ext <<EOF |
---|
6043 | #line 6044 "configure" |
---|
6044 | #include "confdefs.h" |
---|
6045 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6046 | /* We use char because int might match the return type of a gcc2 |
---|
6047 | builtin and then its argument prototype would still apply. */ |
---|
6048 | char gethostbyname(); |
---|
6049 | |
---|
6050 | int main() { |
---|
6051 | gethostbyname() |
---|
6052 | ; return 0; } |
---|
6053 | EOF |
---|
6054 | if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6055 | rm -rf conftest* |
---|
6056 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6057 | else |
---|
6058 | echo "configure: failed program was:" >&5 |
---|
6059 | cat conftest.$ac_ext >&5 |
---|
6060 | rm -rf conftest* |
---|
6061 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6062 | fi |
---|
6063 | rm -f conftest* |
---|
6064 | LIBS="$ac_save_LIBS" |
---|
6065 | |
---|
6066 | fi |
---|
6067 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6068 | echo "$ac_t""yes" 1>&6 |
---|
6069 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
6070 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
6071 | cat >> confdefs.h <<EOF |
---|
6072 | #define $ac_tr_lib 1 |
---|
6073 | EOF |
---|
6074 | |
---|
6075 | LIBS="-lnsl $LIBS" |
---|
6076 | |
---|
6077 | else |
---|
6078 | echo "$ac_t""no" 1>&6 |
---|
6079 | fi |
---|
6080 | |
---|
6081 | fi |
---|
6082 | |
---|
6083 | echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 |
---|
6084 | echo "configure:6085: checking for inet_aton" >&5 |
---|
6085 | if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then |
---|
6086 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6087 | else |
---|
6088 | cat > conftest.$ac_ext <<EOF |
---|
6089 | #line 6090 "configure" |
---|
6090 | #include "confdefs.h" |
---|
6091 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6092 | which can conflict with char inet_aton(); below. */ |
---|
6093 | #include <assert.h> |
---|
6094 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6095 | /* We use char because int might match the return type of a gcc2 |
---|
6096 | builtin and then its argument prototype would still apply. */ |
---|
6097 | char inet_aton(); |
---|
6098 | |
---|
6099 | int main() { |
---|
6100 | |
---|
6101 | /* The GNU C library defines this for functions which it implements |
---|
6102 | to always fail with ENOSYS. Some functions are actually named |
---|
6103 | something starting with __ and the normal name is an alias. */ |
---|
6104 | #if defined (__stub_inet_aton) || defined (__stub___inet_aton) |
---|
6105 | choke me |
---|
6106 | #else |
---|
6107 | inet_aton(); |
---|
6108 | #endif |
---|
6109 | |
---|
6110 | ; return 0; } |
---|
6111 | EOF |
---|
6112 | if { (eval echo configure:6113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6113 | rm -rf conftest* |
---|
6114 | eval "ac_cv_func_inet_aton=yes" |
---|
6115 | else |
---|
6116 | echo "configure: failed program was:" >&5 |
---|
6117 | cat conftest.$ac_ext >&5 |
---|
6118 | rm -rf conftest* |
---|
6119 | eval "ac_cv_func_inet_aton=no" |
---|
6120 | fi |
---|
6121 | rm -f conftest* |
---|
6122 | fi |
---|
6123 | |
---|
6124 | if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then |
---|
6125 | echo "$ac_t""yes" 1>&6 |
---|
6126 | : |
---|
6127 | else |
---|
6128 | echo "$ac_t""no" 1>&6 |
---|
6129 | echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 |
---|
6130 | echo "configure:6131: checking for inet_aton in -lresolv" >&5 |
---|
6131 | ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` |
---|
6132 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6133 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6134 | else |
---|
6135 | ac_save_LIBS="$LIBS" |
---|
6136 | LIBS="-lresolv $LIBS" |
---|
6137 | cat > conftest.$ac_ext <<EOF |
---|
6138 | #line 6139 "configure" |
---|
6139 | #include "confdefs.h" |
---|
6140 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6141 | /* We use char because int might match the return type of a gcc2 |
---|
6142 | builtin and then its argument prototype would still apply. */ |
---|
6143 | char inet_aton(); |
---|
6144 | |
---|
6145 | int main() { |
---|
6146 | inet_aton() |
---|
6147 | ; return 0; } |
---|
6148 | EOF |
---|
6149 | if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6150 | rm -rf conftest* |
---|
6151 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6152 | else |
---|
6153 | echo "configure: failed program was:" >&5 |
---|
6154 | cat conftest.$ac_ext >&5 |
---|
6155 | rm -rf conftest* |
---|
6156 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6157 | fi |
---|
6158 | rm -f conftest* |
---|
6159 | LIBS="$ac_save_LIBS" |
---|
6160 | |
---|
6161 | fi |
---|
6162 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6163 | echo "$ac_t""yes" 1>&6 |
---|
6164 | RES_LIBS="-lresolv" |
---|
6165 | else |
---|
6166 | echo "$ac_t""no" 1>&6 |
---|
6167 | fi |
---|
6168 | |
---|
6169 | fi |
---|
6170 | |
---|
6171 | |
---|
6172 | LIBS="$oLIBS" |
---|
6173 | |
---|
6174 | oLIBS="$LIBS" |
---|
6175 | LIBS="$GNOMEUI_LIBS $GNOME_LIBDIR $ZVT_LIBS" |
---|
6176 | echo $ac_n "checking for zvt_term_reset""... $ac_c" 1>&6 |
---|
6177 | echo "configure:6178: checking for zvt_term_reset" >&5 |
---|
6178 | if eval "test \"`echo '$''{'ac_cv_func_zvt_term_reset'+set}'`\" = set"; then |
---|
6179 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6180 | else |
---|
6181 | cat > conftest.$ac_ext <<EOF |
---|
6182 | #line 6183 "configure" |
---|
6183 | #include "confdefs.h" |
---|
6184 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6185 | which can conflict with char zvt_term_reset(); below. */ |
---|
6186 | #include <assert.h> |
---|
6187 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6188 | /* We use char because int might match the return type of a gcc2 |
---|
6189 | builtin and then its argument prototype would still apply. */ |
---|
6190 | char zvt_term_reset(); |
---|
6191 | |
---|
6192 | int main() { |
---|
6193 | |
---|
6194 | /* The GNU C library defines this for functions which it implements |
---|
6195 | to always fail with ENOSYS. Some functions are actually named |
---|
6196 | something starting with __ and the normal name is an alias. */ |
---|
6197 | #if defined (__stub_zvt_term_reset) || defined (__stub___zvt_term_reset) |
---|
6198 | choke me |
---|
6199 | #else |
---|
6200 | zvt_term_reset(); |
---|
6201 | #endif |
---|
6202 | |
---|
6203 | ; return 0; } |
---|
6204 | EOF |
---|
6205 | if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6206 | rm -rf conftest* |
---|
6207 | eval "ac_cv_func_zvt_term_reset=yes" |
---|
6208 | else |
---|
6209 | echo "configure: failed program was:" >&5 |
---|
6210 | cat conftest.$ac_ext >&5 |
---|
6211 | rm -rf conftest* |
---|
6212 | eval "ac_cv_func_zvt_term_reset=no" |
---|
6213 | fi |
---|
6214 | rm -f conftest* |
---|
6215 | fi |
---|
6216 | |
---|
6217 | if eval "test \"`echo '$ac_cv_func_'zvt_term_reset`\" = yes"; then |
---|
6218 | echo "$ac_t""yes" 1>&6 |
---|
6219 | cat >> confdefs.h <<\EOF |
---|
6220 | #define HAVE_ZVT_TERM_RESET 1 |
---|
6221 | EOF |
---|
6222 | |
---|
6223 | else |
---|
6224 | echo "$ac_t""no" 1>&6 |
---|
6225 | fi |
---|
6226 | |
---|
6227 | LIBS="$oLIBS" |
---|
6228 | |
---|
6229 | oLIBS="$LIBS" |
---|
6230 | BZ_LIBS="" |
---|
6231 | echo $ac_n "checking for bzopen in -lbz2""... $ac_c" 1>&6 |
---|
6232 | echo "configure:6233: checking for bzopen in -lbz2" >&5 |
---|
6233 | ac_lib_var=`echo bz2'_'bzopen | sed 'y%./+-%__p_%'` |
---|
6234 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6235 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6236 | else |
---|
6237 | ac_save_LIBS="$LIBS" |
---|
6238 | LIBS="-lbz2 $LIBS" |
---|
6239 | cat > conftest.$ac_ext <<EOF |
---|
6240 | #line 6241 "configure" |
---|
6241 | #include "confdefs.h" |
---|
6242 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6243 | /* We use char because int might match the return type of a gcc2 |
---|
6244 | builtin and then its argument prototype would still apply. */ |
---|
6245 | char bzopen(); |
---|
6246 | |
---|
6247 | int main() { |
---|
6248 | bzopen() |
---|
6249 | ; return 0; } |
---|
6250 | EOF |
---|
6251 | if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6252 | rm -rf conftest* |
---|
6253 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6254 | else |
---|
6255 | echo "configure: failed program was:" >&5 |
---|
6256 | cat conftest.$ac_ext >&5 |
---|
6257 | rm -rf conftest* |
---|
6258 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6259 | fi |
---|
6260 | rm -f conftest* |
---|
6261 | LIBS="$ac_save_LIBS" |
---|
6262 | |
---|
6263 | fi |
---|
6264 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6265 | echo "$ac_t""yes" 1>&6 |
---|
6266 | |
---|
6267 | cat >> confdefs.h <<\EOF |
---|
6268 | #define HAVE_LIBBZ2 1 |
---|
6269 | EOF |
---|
6270 | |
---|
6271 | LIBS=$oLIBS |
---|
6272 | BZ_LIBS="-lbz2" |
---|
6273 | |
---|
6274 | else |
---|
6275 | echo "$ac_t""no" 1>&6 |
---|
6276 | echo $ac_n "checking for BZ2_bzopen in -lbz2""... $ac_c" 1>&6 |
---|
6277 | echo "configure:6278: checking for BZ2_bzopen in -lbz2" >&5 |
---|
6278 | ac_lib_var=`echo bz2'_'BZ2_bzopen | sed 'y%./+-%__p_%'` |
---|
6279 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6280 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6281 | else |
---|
6282 | ac_save_LIBS="$LIBS" |
---|
6283 | LIBS="-lbz2 $LIBS" |
---|
6284 | cat > conftest.$ac_ext <<EOF |
---|
6285 | #line 6286 "configure" |
---|
6286 | #include "confdefs.h" |
---|
6287 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6288 | /* We use char because int might match the return type of a gcc2 |
---|
6289 | builtin and then its argument prototype would still apply. */ |
---|
6290 | char BZ2_bzopen(); |
---|
6291 | |
---|
6292 | int main() { |
---|
6293 | BZ2_bzopen() |
---|
6294 | ; return 0; } |
---|
6295 | EOF |
---|
6296 | if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6297 | rm -rf conftest* |
---|
6298 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6299 | else |
---|
6300 | echo "configure: failed program was:" >&5 |
---|
6301 | cat conftest.$ac_ext >&5 |
---|
6302 | rm -rf conftest* |
---|
6303 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6304 | fi |
---|
6305 | rm -f conftest* |
---|
6306 | LIBS="$ac_save_LIBS" |
---|
6307 | |
---|
6308 | fi |
---|
6309 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6310 | echo "$ac_t""yes" 1>&6 |
---|
6311 | |
---|
6312 | cat >> confdefs.h <<\EOF |
---|
6313 | #define HAVE_LIBBZ2 1 |
---|
6314 | EOF |
---|
6315 | |
---|
6316 | cat >> confdefs.h <<\EOF |
---|
6317 | #define HAVE_LIBBZ2_1_0 1 |
---|
6318 | EOF |
---|
6319 | |
---|
6320 | LIBS=$oLIBS |
---|
6321 | BZ_LIBS="-lbz2" |
---|
6322 | |
---|
6323 | else |
---|
6324 | echo "$ac_t""no" 1>&6 |
---|
6325 | echo "configure: warning: Recent enough BZ2 library not found. Help-Browser will not be able to read bzipped man/info pages" 1>&2 |
---|
6326 | |
---|
6327 | fi |
---|
6328 | |
---|
6329 | fi |
---|
6330 | |
---|
6331 | |
---|
6332 | |
---|
6333 | # Check whether --with-kde-datadir or --without-kde-datadir was given. |
---|
6334 | if test "${with_kde_datadir+set}" = set; then |
---|
6335 | withval="$with_kde_datadir" |
---|
6336 | : |
---|
6337 | fi |
---|
6338 | |
---|
6339 | |
---|
6340 | if test "x$with_kde_datadir" = x ; then |
---|
6341 | kde_datadir=/usr/share |
---|
6342 | else |
---|
6343 | kde_datadir=$with_kde_datadir |
---|
6344 | fi |
---|
6345 | |
---|
6346 | cat >> confdefs.h <<EOF |
---|
6347 | #define KDE_MENUDIR "$kde_datadir/applnk" |
---|
6348 | EOF |
---|
6349 | |
---|
6350 | cat >> confdefs.h <<EOF |
---|
6351 | #define KDE_ICONDIR "$kde_datadir/icons" |
---|
6352 | EOF |
---|
6353 | |
---|
6354 | cat >> confdefs.h <<EOF |
---|
6355 | #define KDE_MINI_ICONDIR "$kde_datadir/icons/mini" |
---|
6356 | EOF |
---|
6357 | |
---|
6358 | |
---|
6359 | # Check whether --with-kde-docdir or --without-kde-docdir was given. |
---|
6360 | if test "${with_kde_docdir+set}" = set; then |
---|
6361 | withval="$with_kde_docdir" |
---|
6362 | : |
---|
6363 | fi |
---|
6364 | |
---|
6365 | |
---|
6366 | if test "x$with_kde_docdir" = x ; then |
---|
6367 | kde_docdir=/usr/doc/kde |
---|
6368 | else |
---|
6369 | kde_docdir=$with_kde_docdir |
---|
6370 | fi |
---|
6371 | |
---|
6372 | cat >> confdefs.h <<EOF |
---|
6373 | #define KDE_DOCDIR "$kde_docdir" |
---|
6374 | EOF |
---|
6375 | |
---|
6376 | |
---|
6377 | |
---|
6378 | |
---|
6379 | |
---|
6380 | |
---|
6381 | # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args. |
---|
6382 | set dummy gtkdoc-mkdb; ac_word=$2 |
---|
6383 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6384 | echo "configure:6385: checking for $ac_word" >&5 |
---|
6385 | if eval "test \"`echo '$''{'ac_cv_prog_GTKDOC'+set}'`\" = set"; then |
---|
6386 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6387 | else |
---|
6388 | if test -n "$GTKDOC"; then |
---|
6389 | ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test. |
---|
6390 | else |
---|
6391 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6392 | ac_dummy="$PATH" |
---|
6393 | for ac_dir in $ac_dummy; do |
---|
6394 | test -z "$ac_dir" && ac_dir=. |
---|
6395 | if test -f $ac_dir/$ac_word; then |
---|
6396 | ac_cv_prog_GTKDOC="true" |
---|
6397 | break |
---|
6398 | fi |
---|
6399 | done |
---|
6400 | IFS="$ac_save_ifs" |
---|
6401 | test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false" |
---|
6402 | fi |
---|
6403 | fi |
---|
6404 | GTKDOC="$ac_cv_prog_GTKDOC" |
---|
6405 | if test -n "$GTKDOC"; then |
---|
6406 | echo "$ac_t""$GTKDOC" 1>&6 |
---|
6407 | else |
---|
6408 | echo "$ac_t""no" 1>&6 |
---|
6409 | fi |
---|
6410 | |
---|
6411 | |
---|
6412 | |
---|
6413 | if $GTKDOC; then |
---|
6414 | HAVE_GTK_DOC_TRUE= |
---|
6415 | HAVE_GTK_DOC_FALSE='#' |
---|
6416 | else |
---|
6417 | HAVE_GTK_DOC_TRUE='#' |
---|
6418 | HAVE_GTK_DOC_FALSE= |
---|
6419 | fi |
---|
6420 | |
---|
6421 | |
---|
6422 | # Check whether --enable-gtk-doc or --disable-gtk-doc was given. |
---|
6423 | if test "${enable_gtk_doc+set}" = set; then |
---|
6424 | enableval="$enable_gtk_doc" |
---|
6425 | enable_gtk_doc="$enableval" |
---|
6426 | else |
---|
6427 | enable_gtk_doc=auto |
---|
6428 | fi |
---|
6429 | |
---|
6430 | |
---|
6431 | if test x$enable_gtk_doc = xauto ; then |
---|
6432 | if test x$GTKDOC = xtrue ; then |
---|
6433 | enable_gtk_doc=yes |
---|
6434 | else |
---|
6435 | enable_gtk_doc=no |
---|
6436 | fi |
---|
6437 | fi |
---|
6438 | |
---|
6439 | oLIBS="$LIBS" |
---|
6440 | LIBS="$GNOMEUI_LIBS $GNOME_LIBDIR" |
---|
6441 | for ac_func in _IceTransNoListen |
---|
6442 | do |
---|
6443 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
6444 | echo "configure:6445: checking for $ac_func" >&5 |
---|
6445 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
6446 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6447 | else |
---|
6448 | cat > conftest.$ac_ext <<EOF |
---|
6449 | #line 6450 "configure" |
---|
6450 | #include "confdefs.h" |
---|
6451 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6452 | which can conflict with char $ac_func(); below. */ |
---|
6453 | #include <assert.h> |
---|
6454 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6455 | /* We use char because int might match the return type of a gcc2 |
---|
6456 | builtin and then its argument prototype would still apply. */ |
---|
6457 | char $ac_func(); |
---|
6458 | |
---|
6459 | int main() { |
---|
6460 | |
---|
6461 | /* The GNU C library defines this for functions which it implements |
---|
6462 | to always fail with ENOSYS. Some functions are actually named |
---|
6463 | something starting with __ and the normal name is an alias. */ |
---|
6464 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6465 | choke me |
---|
6466 | #else |
---|
6467 | $ac_func(); |
---|
6468 | #endif |
---|
6469 | |
---|
6470 | ; return 0; } |
---|
6471 | EOF |
---|
6472 | if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6473 | rm -rf conftest* |
---|
6474 | eval "ac_cv_func_$ac_func=yes" |
---|
6475 | else |
---|
6476 | echo "configure: failed program was:" >&5 |
---|
6477 | cat conftest.$ac_ext >&5 |
---|
6478 | rm -rf conftest* |
---|
6479 | eval "ac_cv_func_$ac_func=no" |
---|
6480 | fi |
---|
6481 | rm -f conftest* |
---|
6482 | fi |
---|
6483 | |
---|
6484 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6485 | echo "$ac_t""yes" 1>&6 |
---|
6486 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6487 | cat >> confdefs.h <<EOF |
---|
6488 | #define $ac_tr_func 1 |
---|
6489 | EOF |
---|
6490 | |
---|
6491 | else |
---|
6492 | echo "$ac_t""no" 1>&6 |
---|
6493 | fi |
---|
6494 | done |
---|
6495 | |
---|
6496 | LIBS="$oLIBS" |
---|
6497 | |
---|
6498 | uname_s=`uname -s` |
---|
6499 | if test "x$uname_s" = xSunOS; then |
---|
6500 | cat >> confdefs.h <<\EOF |
---|
6501 | #define DO_LIBICE_CHECK 1 |
---|
6502 | EOF |
---|
6503 | |
---|
6504 | fi |
---|
6505 | |
---|
6506 | |
---|
6507 | |
---|
6508 | if test x$enable_gtk_doc = xyes; then |
---|
6509 | ENABLE_GTK_DOC_TRUE= |
---|
6510 | ENABLE_GTK_DOC_FALSE='#' |
---|
6511 | else |
---|
6512 | ENABLE_GTK_DOC_TRUE='#' |
---|
6513 | ENABLE_GTK_DOC_FALSE= |
---|
6514 | fi |
---|
6515 | |
---|
6516 | ICONDIR=`eval echo "${datadir}/pixmaps"` |
---|
6517 | cat >> confdefs.h <<EOF |
---|
6518 | #define GNOME_ICONDIR "${ICONDIR}" |
---|
6519 | EOF |
---|
6520 | |
---|
6521 | |
---|
6522 | trap '' 1 2 15 |
---|
6523 | cat > confcache <<\EOF |
---|
6524 | # This file is a shell script that caches the results of configure |
---|
6525 | # tests run on this system so they can be shared between configure |
---|
6526 | # scripts and configure runs. It is not useful on other systems. |
---|
6527 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
6528 | # |
---|
6529 | # By default, configure uses ./config.cache as the cache file, |
---|
6530 | # creating it if it does not exist already. You can give configure |
---|
6531 | # the --cache-file=FILE option to use a different cache file; that is |
---|
6532 | # what configure does when it calls configure scripts in |
---|
6533 | # subdirectories, so they share the cache. |
---|
6534 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
6535 | # config.status only pays attention to the cache file if you give it the |
---|
6536 | # --recheck option to rerun configure. |
---|
6537 | # |
---|
6538 | EOF |
---|
6539 | # The following way of writing the cache mishandles newlines in values, |
---|
6540 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6541 | # So, don't put newlines in cache variables' values. |
---|
6542 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6543 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6544 | (set) 2>&1 | |
---|
6545 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6546 | *ac_space=\ *) |
---|
6547 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
6548 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
6549 | sed -n \ |
---|
6550 | -e "s/'/'\\\\''/g" \ |
---|
6551 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
6552 | ;; |
---|
6553 | *) |
---|
6554 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6555 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
6556 | ;; |
---|
6557 | esac >> confcache |
---|
6558 | if cmp -s $cache_file confcache; then |
---|
6559 | : |
---|
6560 | else |
---|
6561 | if test -w $cache_file; then |
---|
6562 | echo "updating cache $cache_file" |
---|
6563 | cat confcache > $cache_file |
---|
6564 | else |
---|
6565 | echo "not updating unwritable cache $cache_file" |
---|
6566 | fi |
---|
6567 | fi |
---|
6568 | rm -f confcache |
---|
6569 | |
---|
6570 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
6571 | |
---|
6572 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6573 | # Let make expand exec_prefix. |
---|
6574 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6575 | |
---|
6576 | # Any assignment to VPATH causes Sun make to only execute |
---|
6577 | # the first set of double-colon rules, so remove it if not needed. |
---|
6578 | # If there is a colon in the path, we need to keep it. |
---|
6579 | if test "x$srcdir" = x.; then |
---|
6580 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
6581 | fi |
---|
6582 | |
---|
6583 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
6584 | |
---|
6585 | DEFS=-DHAVE_CONFIG_H |
---|
6586 | |
---|
6587 | # Without the "./", some shells look in PATH for config.status. |
---|
6588 | : ${CONFIG_STATUS=./config.status} |
---|
6589 | |
---|
6590 | echo creating $CONFIG_STATUS |
---|
6591 | rm -f $CONFIG_STATUS |
---|
6592 | cat > $CONFIG_STATUS <<EOF |
---|
6593 | #! /bin/sh |
---|
6594 | # Generated automatically by configure. |
---|
6595 | # Run this file to recreate the current configuration. |
---|
6596 | # This directory was configured as follows, |
---|
6597 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
6598 | # |
---|
6599 | # $0 $ac_configure_args |
---|
6600 | # |
---|
6601 | # Compiler output produced by configure, useful for debugging |
---|
6602 | # configure, is in ./config.log if it exists. |
---|
6603 | |
---|
6604 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
6605 | for ac_option |
---|
6606 | do |
---|
6607 | case "\$ac_option" in |
---|
6608 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6609 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
6610 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
6611 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
6612 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
6613 | exit 0 ;; |
---|
6614 | -help | --help | --hel | --he | --h) |
---|
6615 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
6616 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
6617 | esac |
---|
6618 | done |
---|
6619 | |
---|
6620 | ac_given_srcdir=$srcdir |
---|
6621 | ac_given_INSTALL="$INSTALL" |
---|
6622 | |
---|
6623 | trap 'rm -fr `echo " |
---|
6624 | Makefile |
---|
6625 | gnome-core.spec |
---|
6626 | po/Makefile.in |
---|
6627 | macros/Makefile |
---|
6628 | panel/Makefile |
---|
6629 | panel/doc/Makefile |
---|
6630 | panel/help/Makefile |
---|
6631 | panel/help/C/Makefile |
---|
6632 | panel/help/de/Makefile |
---|
6633 | panel/help/it/Makefile |
---|
6634 | panel/help/ja/Makefile |
---|
6635 | applets/Makefile |
---|
6636 | applets/applet-dirs/Makefile |
---|
6637 | applets/gen_util/Makefile |
---|
6638 | applets/gen_util/help/Makefile |
---|
6639 | applets/gen_util/help/C/Makefile |
---|
6640 | applets/gen_util/help/C/clock/Makefile |
---|
6641 | applets/gen_util/help/C/mailcheck/Makefile |
---|
6642 | applets/gen_util/help/C/printer/Makefile |
---|
6643 | applets/gen_util/help/de/Makefile |
---|
6644 | applets/gen_util/help/no/Makefile |
---|
6645 | applets/gen_util/help/da/Makefile |
---|
6646 | applets/gen_util/help/da/clock/Makefile |
---|
6647 | applets/gen_util/help/da/mailcheck/Makefile |
---|
6648 | applets/gen_util/help/da/printer/Makefile |
---|
6649 | applets/gen_util/help/es/Makefile |
---|
6650 | applets/gen_util/help/es/printer/Makefile |
---|
6651 | applets/fish/Makefile |
---|
6652 | applets/fish/help/Makefile |
---|
6653 | applets/fish/help/C/Makefile |
---|
6654 | applets/fish/help/no/Makefile |
---|
6655 | applets/fish/help/da/Makefile |
---|
6656 | applets/desk-guide/Makefile |
---|
6657 | applets/desk-guide/help/Makefile |
---|
6658 | applets/desk-guide/help/C/Makefile |
---|
6659 | applets/desk-guide/help/de/Makefile |
---|
6660 | applets/tasklist/Makefile |
---|
6661 | applets/tasklist/help/Makefile |
---|
6662 | applets/tasklist/help/C/Makefile |
---|
6663 | core-docs/Makefile |
---|
6664 | core-docs/fdl/Makefile |
---|
6665 | core-docs/fdl/C/Makefile |
---|
6666 | core-docs/gpl/Makefile |
---|
6667 | core-docs/gpl/C/Makefile |
---|
6668 | core-docs/lgpl/Makefile |
---|
6669 | core-docs/lgpl/C/Makefile |
---|
6670 | desktop-links/Makefile |
---|
6671 | gnome-terminal/Makefile |
---|
6672 | gnome-terminal/C/Makefile |
---|
6673 | gnome-terminal/de/Makefile |
---|
6674 | gnome-terminal/da/Makefile |
---|
6675 | gnome-terminal/es/Makefile |
---|
6676 | gnome-terminal/it/Makefile |
---|
6677 | gnome-terminal/no/Makefile |
---|
6678 | help-browser/Makefile |
---|
6679 | help-browser/gnome-man2html/Makefile |
---|
6680 | help-browser/gnome-info2html/Makefile |
---|
6681 | help-browser/help/Makefile |
---|
6682 | help-browser/help/C/Makefile |
---|
6683 | help-browser/help/ca/Makefile |
---|
6684 | help-browser/help/da/Makefile |
---|
6685 | help-browser/help/el/Makefile |
---|
6686 | help-browser/help/es/Makefile |
---|
6687 | help-browser/help/et/Makefile |
---|
6688 | help-browser/help/eu/Makefile |
---|
6689 | help-browser/help/hu/Makefile |
---|
6690 | help-browser/help/fr/Makefile |
---|
6691 | help-browser/help/gl/Makefile |
---|
6692 | help-browser/help/it/Makefile |
---|
6693 | help-browser/help/ja/Makefile |
---|
6694 | help-browser/help/ko/Makefile |
---|
6695 | help-browser/help/lt/Makefile |
---|
6696 | help-browser/help/no/Makefile |
---|
6697 | help-browser/help/uk/Makefile |
---|
6698 | help-browser/help/wa/Makefile |
---|
6699 | gnome-hint/Makefile |
---|
6700 | gnome-about/Makefile |
---|
6701 | gmenu/Makefile |
---|
6702 | gnome-edit/Makefile |
---|
6703 | idl/Makefile |
---|
6704 | pixmaps/Makefile |
---|
6705 | gsm/Makefile |
---|
6706 | gsm/help/Makefile |
---|
6707 | gsm/help/C/Makefile |
---|
6708 | gsm/default.session.5 |
---|
6709 | gsm/gnome-session.1 |
---|
6710 | smproxy/Makefile |
---|
6711 | intl/Makefile |
---|
6712 | omf-install/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
6713 | EOF |
---|
6714 | cat >> $CONFIG_STATUS <<EOF |
---|
6715 | |
---|
6716 | # Protect against being on the right side of a sed subst in config.status. |
---|
6717 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
6718 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
6719 | $ac_vpsub |
---|
6720 | $extrasub |
---|
6721 | s%@SHELL@%$SHELL%g |
---|
6722 | s%@CFLAGS@%$CFLAGS%g |
---|
6723 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
6724 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
6725 | s%@FFLAGS@%$FFLAGS%g |
---|
6726 | s%@DEFS@%$DEFS%g |
---|
6727 | s%@LDFLAGS@%$LDFLAGS%g |
---|
6728 | s%@LIBS@%$LIBS%g |
---|
6729 | s%@exec_prefix@%$exec_prefix%g |
---|
6730 | s%@prefix@%$prefix%g |
---|
6731 | s%@program_transform_name@%$program_transform_name%g |
---|
6732 | s%@bindir@%$bindir%g |
---|
6733 | s%@sbindir@%$sbindir%g |
---|
6734 | s%@libexecdir@%$libexecdir%g |
---|
6735 | s%@datadir@%$datadir%g |
---|
6736 | s%@sysconfdir@%$sysconfdir%g |
---|
6737 | s%@sharedstatedir@%$sharedstatedir%g |
---|
6738 | s%@localstatedir@%$localstatedir%g |
---|
6739 | s%@libdir@%$libdir%g |
---|
6740 | s%@includedir@%$includedir%g |
---|
6741 | s%@oldincludedir@%$oldincludedir%g |
---|
6742 | s%@infodir@%$infodir%g |
---|
6743 | s%@mandir@%$mandir%g |
---|
6744 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
6745 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
6746 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
6747 | s%@PACKAGE@%$PACKAGE%g |
---|
6748 | s%@VERSION@%$VERSION%g |
---|
6749 | s%@ACLOCAL@%$ACLOCAL%g |
---|
6750 | s%@AUTOCONF@%$AUTOCONF%g |
---|
6751 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
6752 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
6753 | s%@MAKEINFO@%$MAKEINFO%g |
---|
6754 | s%@SET_MAKE@%$SET_MAKE%g |
---|
6755 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
6756 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
6757 | s%@MAINT@%$MAINT%g |
---|
6758 | s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g |
---|
6759 | s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g |
---|
6760 | s%@XML_I18N_MERGE_OAF_RULE@%$XML_I18N_MERGE_OAF_RULE%g |
---|
6761 | s%@XML_I18N_MERGE_KEYS_RULE@%$XML_I18N_MERGE_KEYS_RULE%g |
---|
6762 | s%@XML_I18N_MERGE_DESKTOP_RULE@%$XML_I18N_MERGE_DESKTOP_RULE%g |
---|
6763 | s%@XML_I18N_MERGE_DIRECTORY_RULE@%$XML_I18N_MERGE_DIRECTORY_RULE%g |
---|
6764 | s%@XML_I18N_EXTRACT@%$XML_I18N_EXTRACT%g |
---|
6765 | s%@XML_I18N_MERGE@%$XML_I18N_MERGE%g |
---|
6766 | s%@XML_I18N_UPDATE@%$XML_I18N_UPDATE%g |
---|
6767 | s%@XML_I18N_MERGE_SOUNDLIST_RULE@%$XML_I18N_MERGE_SOUNDLIST_RULE%g |
---|
6768 | s%@XML_I18N_TOOLS_PERL@%$XML_I18N_TOOLS_PERL%g |
---|
6769 | s%@GNOME_LIBS@%$GNOME_LIBS%g |
---|
6770 | s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g |
---|
6771 | s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g |
---|
6772 | s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g |
---|
6773 | s%@ZVT_LIBS@%$ZVT_LIBS%g |
---|
6774 | s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g |
---|
6775 | s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g |
---|
6776 | s%@GNOME_CONFIG@%$GNOME_CONFIG%g |
---|
6777 | s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g |
---|
6778 | s%@ORBIT_IDL@%$ORBIT_IDL%g |
---|
6779 | s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g |
---|
6780 | s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g |
---|
6781 | s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g |
---|
6782 | s%@ORBIT_LIBS@%$ORBIT_LIBS%g |
---|
6783 | s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g |
---|
6784 | s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g |
---|
6785 | s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g |
---|
6786 | s%@GNORBA_LIBS@%$GNORBA_LIBS%g |
---|
6787 | s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g |
---|
6788 | s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g |
---|
6789 | s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g |
---|
6790 | s%@CC@%$CC%g |
---|
6791 | s%@CPP@%$CPP%g |
---|
6792 | s%@host@%$host%g |
---|
6793 | s%@host_alias@%$host_alias%g |
---|
6794 | s%@host_cpu@%$host_cpu%g |
---|
6795 | s%@host_vendor@%$host_vendor%g |
---|
6796 | s%@host_os@%$host_os%g |
---|
6797 | s%@build@%$build%g |
---|
6798 | s%@build_alias@%$build_alias%g |
---|
6799 | s%@build_cpu@%$build_cpu%g |
---|
6800 | s%@build_vendor@%$build_vendor%g |
---|
6801 | s%@build_os@%$build_os%g |
---|
6802 | s%@RANLIB@%$RANLIB%g |
---|
6803 | s%@LN_S@%$LN_S%g |
---|
6804 | s%@LIBTOOL@%$LIBTOOL%g |
---|
6805 | s%@LEX@%$LEX%g |
---|
6806 | s%@LEXLIB@%$LEXLIB%g |
---|
6807 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g |
---|
6808 | s%@YACC@%$YACC%g |
---|
6809 | s%@PATH_TO_XRDB@%$PATH_TO_XRDB%g |
---|
6810 | s%@cflags_set@%$cflags_set%g |
---|
6811 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
---|
6812 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
---|
6813 | s%@GTK_LIBS@%$GTK_LIBS%g |
---|
6814 | s%@XPM_LIBS@%$XPM_LIBS%g |
---|
6815 | s%@PTHREAD_LIB@%$PTHREAD_LIB%g |
---|
6816 | s%@GNOME_XML_CFLAGS@%$GNOME_XML_CFLAGS%g |
---|
6817 | s%@GNOME_XML_LIB@%$GNOME_XML_LIB%g |
---|
6818 | s%@FALSE_TRUE@%$FALSE_TRUE%g |
---|
6819 | s%@FALSE_FALSE@%$FALSE_FALSE%g |
---|
6820 | s%@ALLOCA@%$ALLOCA%g |
---|
6821 | s%@USE_NLS@%$USE_NLS%g |
---|
6822 | s%@MSGFMT@%$MSGFMT%g |
---|
6823 | s%@GMSGFMT@%$GMSGFMT%g |
---|
6824 | s%@XGETTEXT@%$XGETTEXT%g |
---|
6825 | s%@GENCAT@%$GENCAT%g |
---|
6826 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
---|
6827 | s%@CATALOGS@%$CATALOGS%g |
---|
6828 | s%@CATOBJEXT@%$CATOBJEXT%g |
---|
6829 | s%@DATADIRNAME@%$DATADIRNAME%g |
---|
6830 | s%@GMOFILES@%$GMOFILES%g |
---|
6831 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
---|
6832 | s%@INTLDEPS@%$INTLDEPS%g |
---|
6833 | s%@INTLLIBS@%$INTLLIBS%g |
---|
6834 | s%@INTLOBJS@%$INTLOBJS%g |
---|
6835 | s%@POFILES@%$POFILES%g |
---|
6836 | s%@POSUB@%$POSUB%g |
---|
6837 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g |
---|
6838 | s%@GT_NO@%$GT_NO%g |
---|
6839 | s%@GT_YES@%$GT_YES%g |
---|
6840 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
---|
6841 | s%@l@%$l%g |
---|
6842 | s%@gnomelocaledir@%$gnomelocaledir%g |
---|
6843 | s%@DL_LIB@%$DL_LIB%g |
---|
6844 | s%@ORB_LIBS@%$ORB_LIBS%g |
---|
6845 | s%@ORB_CFLAGS@%$ORB_CFLAGS%g |
---|
6846 | s%@PIXBUF_CFLAGS@%$PIXBUF_CFLAGS%g |
---|
6847 | s%@PIXBUF_LIBS@%$PIXBUF_LIBS%g |
---|
6848 | s%@CANVAS_PIXBUF_CFLAGS@%$CANVAS_PIXBUF_CFLAGS%g |
---|
6849 | s%@CANVAS_PIXBUF_LIBS@%$CANVAS_PIXBUF_LIBS%g |
---|
6850 | s%@GNOME_TERMINAL_LIBS@%$GNOME_TERMINAL_LIBS%g |
---|
6851 | s%@GNOME_TERMINAL_CFLAGS@%$GNOME_TERMINAL_CFLAGS%g |
---|
6852 | s%@SESSION_TRUE@%$SESSION_TRUE%g |
---|
6853 | s%@SESSION_FALSE@%$SESSION_FALSE%g |
---|
6854 | s%@LIBWRAP_LIBS@%$LIBWRAP_LIBS%g |
---|
6855 | s%@WINDOW_MANAGER@%$WINDOW_MANAGER%g |
---|
6856 | s%@GTK_HTML_PREFIX@%$GTK_HTML_PREFIX%g |
---|
6857 | s%@GNOME_PRINT_PREFIX@%$GNOME_PRINT_PREFIX%g |
---|
6858 | s%@HELP_USE_GTKHTML_TRUE@%$HELP_USE_GTKHTML_TRUE%g |
---|
6859 | s%@HELP_USE_GTKHTML_FALSE@%$HELP_USE_GTKHTML_FALSE%g |
---|
6860 | s%@RES_LIBS@%$RES_LIBS%g |
---|
6861 | s%@BZ_LIBS@%$BZ_LIBS%g |
---|
6862 | s%@GTKDOC@%$GTKDOC%g |
---|
6863 | s%@HAVE_GTK_DOC_TRUE@%$HAVE_GTK_DOC_TRUE%g |
---|
6864 | s%@HAVE_GTK_DOC_FALSE@%$HAVE_GTK_DOC_FALSE%g |
---|
6865 | s%@HAVE_GTK_DOC@%$HAVE_GTK_DOC%g |
---|
6866 | s%@ENABLE_GTK_DOC_TRUE@%$ENABLE_GTK_DOC_TRUE%g |
---|
6867 | s%@ENABLE_GTK_DOC_FALSE@%$ENABLE_GTK_DOC_FALSE%g |
---|
6868 | |
---|
6869 | CEOF |
---|
6870 | EOF |
---|
6871 | |
---|
6872 | cat >> $CONFIG_STATUS <<\EOF |
---|
6873 | |
---|
6874 | # Split the substitutions into bite-sized pieces for seds with |
---|
6875 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6876 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
6877 | ac_file=1 # Number of current file. |
---|
6878 | ac_beg=1 # First line for current file. |
---|
6879 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
6880 | ac_more_lines=: |
---|
6881 | ac_sed_cmds="" |
---|
6882 | while $ac_more_lines; do |
---|
6883 | if test $ac_beg -gt 1; then |
---|
6884 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
6885 | else |
---|
6886 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
6887 | fi |
---|
6888 | if test ! -s conftest.s$ac_file; then |
---|
6889 | ac_more_lines=false |
---|
6890 | rm -f conftest.s$ac_file |
---|
6891 | else |
---|
6892 | if test -z "$ac_sed_cmds"; then |
---|
6893 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
6894 | else |
---|
6895 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
6896 | fi |
---|
6897 | ac_file=`expr $ac_file + 1` |
---|
6898 | ac_beg=$ac_end |
---|
6899 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
6900 | fi |
---|
6901 | done |
---|
6902 | if test -z "$ac_sed_cmds"; then |
---|
6903 | ac_sed_cmds=cat |
---|
6904 | fi |
---|
6905 | EOF |
---|
6906 | |
---|
6907 | cat >> $CONFIG_STATUS <<EOF |
---|
6908 | |
---|
6909 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
6910 | gnome-core.spec |
---|
6911 | po/Makefile.in |
---|
6912 | macros/Makefile |
---|
6913 | panel/Makefile |
---|
6914 | panel/doc/Makefile |
---|
6915 | panel/help/Makefile |
---|
6916 | panel/help/C/Makefile |
---|
6917 | panel/help/de/Makefile |
---|
6918 | panel/help/it/Makefile |
---|
6919 | panel/help/ja/Makefile |
---|
6920 | applets/Makefile |
---|
6921 | applets/applet-dirs/Makefile |
---|
6922 | applets/gen_util/Makefile |
---|
6923 | applets/gen_util/help/Makefile |
---|
6924 | applets/gen_util/help/C/Makefile |
---|
6925 | applets/gen_util/help/C/clock/Makefile |
---|
6926 | applets/gen_util/help/C/mailcheck/Makefile |
---|
6927 | applets/gen_util/help/C/printer/Makefile |
---|
6928 | applets/gen_util/help/de/Makefile |
---|
6929 | applets/gen_util/help/no/Makefile |
---|
6930 | applets/gen_util/help/da/Makefile |
---|
6931 | applets/gen_util/help/da/clock/Makefile |
---|
6932 | applets/gen_util/help/da/mailcheck/Makefile |
---|
6933 | applets/gen_util/help/da/printer/Makefile |
---|
6934 | applets/gen_util/help/es/Makefile |
---|
6935 | applets/gen_util/help/es/printer/Makefile |
---|
6936 | applets/fish/Makefile |
---|
6937 | applets/fish/help/Makefile |
---|
6938 | applets/fish/help/C/Makefile |
---|
6939 | applets/fish/help/no/Makefile |
---|
6940 | applets/fish/help/da/Makefile |
---|
6941 | applets/desk-guide/Makefile |
---|
6942 | applets/desk-guide/help/Makefile |
---|
6943 | applets/desk-guide/help/C/Makefile |
---|
6944 | applets/desk-guide/help/de/Makefile |
---|
6945 | applets/tasklist/Makefile |
---|
6946 | applets/tasklist/help/Makefile |
---|
6947 | applets/tasklist/help/C/Makefile |
---|
6948 | core-docs/Makefile |
---|
6949 | core-docs/fdl/Makefile |
---|
6950 | core-docs/fdl/C/Makefile |
---|
6951 | core-docs/gpl/Makefile |
---|
6952 | core-docs/gpl/C/Makefile |
---|
6953 | core-docs/lgpl/Makefile |
---|
6954 | core-docs/lgpl/C/Makefile |
---|
6955 | desktop-links/Makefile |
---|
6956 | gnome-terminal/Makefile |
---|
6957 | gnome-terminal/C/Makefile |
---|
6958 | gnome-terminal/de/Makefile |
---|
6959 | gnome-terminal/da/Makefile |
---|
6960 | gnome-terminal/es/Makefile |
---|
6961 | gnome-terminal/it/Makefile |
---|
6962 | gnome-terminal/no/Makefile |
---|
6963 | help-browser/Makefile |
---|
6964 | help-browser/gnome-man2html/Makefile |
---|
6965 | help-browser/gnome-info2html/Makefile |
---|
6966 | help-browser/help/Makefile |
---|
6967 | help-browser/help/C/Makefile |
---|
6968 | help-browser/help/ca/Makefile |
---|
6969 | help-browser/help/da/Makefile |
---|
6970 | help-browser/help/el/Makefile |
---|
6971 | help-browser/help/es/Makefile |
---|
6972 | help-browser/help/et/Makefile |
---|
6973 | help-browser/help/eu/Makefile |
---|
6974 | help-browser/help/hu/Makefile |
---|
6975 | help-browser/help/fr/Makefile |
---|
6976 | help-browser/help/gl/Makefile |
---|
6977 | help-browser/help/it/Makefile |
---|
6978 | help-browser/help/ja/Makefile |
---|
6979 | help-browser/help/ko/Makefile |
---|
6980 | help-browser/help/lt/Makefile |
---|
6981 | help-browser/help/no/Makefile |
---|
6982 | help-browser/help/uk/Makefile |
---|
6983 | help-browser/help/wa/Makefile |
---|
6984 | gnome-hint/Makefile |
---|
6985 | gnome-about/Makefile |
---|
6986 | gmenu/Makefile |
---|
6987 | gnome-edit/Makefile |
---|
6988 | idl/Makefile |
---|
6989 | pixmaps/Makefile |
---|
6990 | gsm/Makefile |
---|
6991 | gsm/help/Makefile |
---|
6992 | gsm/help/C/Makefile |
---|
6993 | gsm/default.session.5 |
---|
6994 | gsm/gnome-session.1 |
---|
6995 | smproxy/Makefile |
---|
6996 | intl/Makefile |
---|
6997 | omf-install/Makefile"} |
---|
6998 | EOF |
---|
6999 | cat >> $CONFIG_STATUS <<\EOF |
---|
7000 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
7001 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7002 | case "$ac_file" in |
---|
7003 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
7004 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
7005 | *) ac_file_in="${ac_file}.in" ;; |
---|
7006 | esac |
---|
7007 | |
---|
7008 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
7009 | |
---|
7010 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7011 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
7012 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
7013 | # The file is in a subdirectory. |
---|
7014 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
7015 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
7016 | # A "../" for each directory in $ac_dir_suffix. |
---|
7017 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
7018 | else |
---|
7019 | ac_dir_suffix= ac_dots= |
---|
7020 | fi |
---|
7021 | |
---|
7022 | case "$ac_given_srcdir" in |
---|
7023 | .) srcdir=. |
---|
7024 | if test -z "$ac_dots"; then top_srcdir=. |
---|
7025 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
7026 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
7027 | *) # Relative path. |
---|
7028 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
7029 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
7030 | esac |
---|
7031 | |
---|
7032 | case "$ac_given_INSTALL" in |
---|
7033 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
7034 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
7035 | esac |
---|
7036 | |
---|
7037 | echo creating "$ac_file" |
---|
7038 | rm -f "$ac_file" |
---|
7039 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
7040 | case "$ac_file" in |
---|
7041 | *Makefile*) ac_comsub="1i\\ |
---|
7042 | # $configure_input" ;; |
---|
7043 | *) ac_comsub= ;; |
---|
7044 | esac |
---|
7045 | |
---|
7046 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
7047 | sed -e "$ac_comsub |
---|
7048 | s%@configure_input@%$configure_input%g |
---|
7049 | s%@srcdir@%$srcdir%g |
---|
7050 | s%@top_srcdir@%$top_srcdir%g |
---|
7051 | s%@INSTALL@%$INSTALL%g |
---|
7052 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
7053 | fi; done |
---|
7054 | rm -f conftest.s* |
---|
7055 | |
---|
7056 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
7057 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
7058 | # |
---|
7059 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
7060 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
7061 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
7062 | ac_dC='\3' |
---|
7063 | ac_dD='%g' |
---|
7064 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
7065 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7066 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
7067 | ac_uC=' ' |
---|
7068 | ac_uD='\4%g' |
---|
7069 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
7070 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7071 | ac_eB='$%\1#\2define\3' |
---|
7072 | ac_eC=' ' |
---|
7073 | ac_eD='%g' |
---|
7074 | |
---|
7075 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
7076 | EOF |
---|
7077 | cat >> $CONFIG_STATUS <<EOF |
---|
7078 | CONFIG_HEADERS="config.h" |
---|
7079 | EOF |
---|
7080 | cat >> $CONFIG_STATUS <<\EOF |
---|
7081 | fi |
---|
7082 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
7083 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7084 | case "$ac_file" in |
---|
7085 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
7086 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
7087 | *) ac_file_in="${ac_file}.in" ;; |
---|
7088 | esac |
---|
7089 | |
---|
7090 | echo creating $ac_file |
---|
7091 | |
---|
7092 | rm -f conftest.frag conftest.in conftest.out |
---|
7093 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
7094 | cat $ac_file_inputs > conftest.in |
---|
7095 | |
---|
7096 | EOF |
---|
7097 | |
---|
7098 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
7099 | # the proper values into config.h.in to produce config.h. And first: |
---|
7100 | # Protect against being on the right side of a sed subst in config.status. |
---|
7101 | # Protect against being in an unquoted here document in config.status. |
---|
7102 | rm -f conftest.vals |
---|
7103 | cat > conftest.hdr <<\EOF |
---|
7104 | s/[\\&%]/\\&/g |
---|
7105 | s%[\\$`]%\\&%g |
---|
7106 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
7107 | s%ac_d%ac_u%gp |
---|
7108 | s%ac_u%ac_e%gp |
---|
7109 | EOF |
---|
7110 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
7111 | rm -f conftest.hdr |
---|
7112 | |
---|
7113 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7114 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7115 | # on some systems where configure will not decide to define it. |
---|
7116 | cat >> conftest.vals <<\EOF |
---|
7117 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
7118 | EOF |
---|
7119 | |
---|
7120 | # Break up conftest.vals because some shells have a limit on |
---|
7121 | # the size of here documents, and old seds have small limits too. |
---|
7122 | |
---|
7123 | rm -f conftest.tail |
---|
7124 | while : |
---|
7125 | do |
---|
7126 | ac_lines=`grep -c . conftest.vals` |
---|
7127 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
7128 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
7129 | # Write a limited-size here document to conftest.frag. |
---|
7130 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
7131 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
7132 | echo 'CEOF |
---|
7133 | sed -f conftest.frag conftest.in > conftest.out |
---|
7134 | rm -f conftest.in |
---|
7135 | mv conftest.out conftest.in |
---|
7136 | ' >> $CONFIG_STATUS |
---|
7137 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
7138 | rm -f conftest.vals |
---|
7139 | mv conftest.tail conftest.vals |
---|
7140 | done |
---|
7141 | rm -f conftest.vals |
---|
7142 | |
---|
7143 | cat >> $CONFIG_STATUS <<\EOF |
---|
7144 | rm -f conftest.frag conftest.h |
---|
7145 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
7146 | cat conftest.in >> conftest.h |
---|
7147 | rm -f conftest.in |
---|
7148 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
7149 | echo "$ac_file is unchanged" |
---|
7150 | rm -f conftest.h |
---|
7151 | else |
---|
7152 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7153 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
7154 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
7155 | # The file is in a subdirectory. |
---|
7156 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
7157 | fi |
---|
7158 | rm -f $ac_file |
---|
7159 | mv conftest.h $ac_file |
---|
7160 | fi |
---|
7161 | fi; done |
---|
7162 | |
---|
7163 | EOF |
---|
7164 | |
---|
7165 | cat >> $CONFIG_STATUS <<EOF |
---|
7166 | ac_sources="$nls_cv_header_libgt" |
---|
7167 | ac_dests="$nls_cv_header_intl" |
---|
7168 | EOF |
---|
7169 | |
---|
7170 | cat >> $CONFIG_STATUS <<\EOF |
---|
7171 | srcdir=$ac_given_srcdir |
---|
7172 | while test -n "$ac_sources"; do |
---|
7173 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
---|
7174 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
---|
7175 | |
---|
7176 | echo "linking $srcdir/$ac_source to $ac_dest" |
---|
7177 | |
---|
7178 | if test ! -r $srcdir/$ac_source; then |
---|
7179 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } |
---|
7180 | fi |
---|
7181 | rm -f $ac_dest |
---|
7182 | |
---|
7183 | # Make relative symlinks. |
---|
7184 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7185 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` |
---|
7186 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then |
---|
7187 | # The dest file is in a subdirectory. |
---|
7188 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" |
---|
7189 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" |
---|
7190 | # A "../" for each directory in $ac_dest_dir_suffix. |
---|
7191 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
7192 | else |
---|
7193 | ac_dest_dir_suffix= ac_dots= |
---|
7194 | fi |
---|
7195 | |
---|
7196 | case "$srcdir" in |
---|
7197 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; |
---|
7198 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; |
---|
7199 | esac |
---|
7200 | |
---|
7201 | # Make a symlink if possible; otherwise try a hard link. |
---|
7202 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || |
---|
7203 | ln $srcdir/$ac_source $ac_dest; then : |
---|
7204 | else |
---|
7205 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } |
---|
7206 | fi |
---|
7207 | done |
---|
7208 | EOF |
---|
7209 | cat >> $CONFIG_STATUS <<EOF |
---|
7210 | |
---|
7211 | XML_I18N_TOOLS_PERL=${XML_I18N_TOOLS_PERL} |
---|
7212 | |
---|
7213 | |
---|
7214 | EOF |
---|
7215 | cat >> $CONFIG_STATUS <<\EOF |
---|
7216 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
7217 | |
---|
7218 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-extract.in > xml-i18n-extract; |
---|
7219 | chmod ugo+x xml-i18n-extract; |
---|
7220 | |
---|
7221 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-merge.in > xml-i18n-merge; |
---|
7222 | chmod ugo+x xml-i18n-merge; |
---|
7223 | |
---|
7224 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-update.in > xml-i18n-update; |
---|
7225 | chmod ugo+x xml-i18n-update; |
---|
7226 | |
---|
7227 | case "$CONFIG_FILES" in *po/Makefile.in*) |
---|
7228 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
---|
7229 | esac |
---|
7230 | |
---|
7231 | exit 0 |
---|
7232 | EOF |
---|
7233 | chmod +x $CONFIG_STATUS |
---|
7234 | rm -fr confdefs* $ac_clean_files |
---|
7235 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
7236 | |
---|