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 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
---|
19 | ac_help="$ac_help |
---|
20 | --enable-static[=PKGS] build static libraries [default=yes]" |
---|
21 | ac_help="$ac_help |
---|
22 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
---|
23 | ac_help="$ac_help |
---|
24 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
---|
25 | ac_help="$ac_help |
---|
26 | --disable-libtool-lock avoid locking (might break parallel builds)" |
---|
27 | ac_help="$ac_help |
---|
28 | --enable-profiler Enable profiler" |
---|
29 | ac_help="$ac_help |
---|
30 | --with-gnome-includes Specify location of GNOME headers" |
---|
31 | ac_help="$ac_help |
---|
32 | --with-gnome-libs Specify location of GNOME libs" |
---|
33 | ac_help="$ac_help |
---|
34 | --with-gnome Specify prefix for GNOME files" |
---|
35 | ac_help="$ac_help |
---|
36 | --enable-gtk-doc Use gtk-doc to build documentation [default=auto]" |
---|
37 | ac_help="$ac_help |
---|
38 | --enable-gconf Enable GConf access backend" |
---|
39 | ac_help="$ac_help |
---|
40 | --disable-libefs={yes|no} Disable libefs access backend" |
---|
41 | ac_help="$ac_help |
---|
42 | --with-default-backend=(corba|pthread) " |
---|
43 | ac_help="$ac_help |
---|
44 | --with-glib-prefix=PFX Prefix where GLIB is installed (optional)" |
---|
45 | ac_help="$ac_help |
---|
46 | --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)" |
---|
47 | ac_help="$ac_help |
---|
48 | --disable-glibtest Do not try to compile and run a test GLIB program" |
---|
49 | ac_help="$ac_help |
---|
50 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
---|
51 | ac_help="$ac_help |
---|
52 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
---|
53 | ac_help="$ac_help |
---|
54 | --disable-gtktest Do not try to compile and run a test GTK program" |
---|
55 | ac_help="$ac_help |
---|
56 | --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings." |
---|
57 | ac_help="$ac_help |
---|
58 | --enable-iso-c Try to warn if code is not ISO C " |
---|
59 | ac_help="$ac_help |
---|
60 | --disable-nls do not use Native Language Support" |
---|
61 | ac_help="$ac_help |
---|
62 | --with-catgets use catgets functions if available" |
---|
63 | ac_help="$ac_help |
---|
64 | --enable-more-warnings Maximum compiler warnings" |
---|
65 | ac_help="$ac_help |
---|
66 | --with-gconf-prefix=PFX Prefix where GCONF is installed (optional)" |
---|
67 | ac_help="$ac_help |
---|
68 | --with-gconf-exec-prefix=PFX Exec prefix where GCONF is installed (optional)" |
---|
69 | ac_help="$ac_help |
---|
70 | --disable-gconftest Do not try to compile and run a test GCONF program" |
---|
71 | |
---|
72 | # Initialize some variables set by options. |
---|
73 | # The variables have the same names as the options, with |
---|
74 | # dashes changed to underlines. |
---|
75 | build=NONE |
---|
76 | cache_file=./config.cache |
---|
77 | exec_prefix=NONE |
---|
78 | host=NONE |
---|
79 | no_create= |
---|
80 | nonopt=NONE |
---|
81 | no_recursion= |
---|
82 | prefix=NONE |
---|
83 | program_prefix=NONE |
---|
84 | program_suffix=NONE |
---|
85 | program_transform_name=s,x,x, |
---|
86 | silent= |
---|
87 | site= |
---|
88 | srcdir= |
---|
89 | target=NONE |
---|
90 | verbose= |
---|
91 | x_includes=NONE |
---|
92 | x_libraries=NONE |
---|
93 | bindir='${exec_prefix}/bin' |
---|
94 | sbindir='${exec_prefix}/sbin' |
---|
95 | libexecdir='${exec_prefix}/libexec' |
---|
96 | datadir='${prefix}/share' |
---|
97 | sysconfdir='${prefix}/etc' |
---|
98 | sharedstatedir='${prefix}/com' |
---|
99 | localstatedir='${prefix}/var' |
---|
100 | libdir='${exec_prefix}/lib' |
---|
101 | includedir='${prefix}/include' |
---|
102 | oldincludedir='/usr/include' |
---|
103 | infodir='${prefix}/info' |
---|
104 | mandir='${prefix}/man' |
---|
105 | |
---|
106 | # Initialize some other variables. |
---|
107 | subdirs= |
---|
108 | MFLAGS= MAKEFLAGS= |
---|
109 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
110 | # Maximum number of lines to put in a shell here document. |
---|
111 | ac_max_here_lines=12 |
---|
112 | |
---|
113 | ac_prev= |
---|
114 | for ac_option |
---|
115 | do |
---|
116 | |
---|
117 | # If the previous option needs an argument, assign it. |
---|
118 | if test -n "$ac_prev"; then |
---|
119 | eval "$ac_prev=\$ac_option" |
---|
120 | ac_prev= |
---|
121 | continue |
---|
122 | fi |
---|
123 | |
---|
124 | case "$ac_option" in |
---|
125 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
126 | *) ac_optarg= ;; |
---|
127 | esac |
---|
128 | |
---|
129 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
130 | |
---|
131 | case "$ac_option" in |
---|
132 | |
---|
133 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
134 | ac_prev=bindir ;; |
---|
135 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
136 | bindir="$ac_optarg" ;; |
---|
137 | |
---|
138 | -build | --build | --buil | --bui | --bu) |
---|
139 | ac_prev=build ;; |
---|
140 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
141 | build="$ac_optarg" ;; |
---|
142 | |
---|
143 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
144 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
145 | ac_prev=cache_file ;; |
---|
146 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
147 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
148 | cache_file="$ac_optarg" ;; |
---|
149 | |
---|
150 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
151 | ac_prev=datadir ;; |
---|
152 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
153 | | --da=*) |
---|
154 | datadir="$ac_optarg" ;; |
---|
155 | |
---|
156 | -disable-* | --disable-*) |
---|
157 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
158 | # Reject names that are not valid shell variable names. |
---|
159 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
160 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
161 | fi |
---|
162 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
163 | eval "enable_${ac_feature}=no" ;; |
---|
164 | |
---|
165 | -enable-* | --enable-*) |
---|
166 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
167 | # Reject names that are not valid shell variable names. |
---|
168 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
169 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
170 | fi |
---|
171 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
172 | case "$ac_option" in |
---|
173 | *=*) ;; |
---|
174 | *) ac_optarg=yes ;; |
---|
175 | esac |
---|
176 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
177 | |
---|
178 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
179 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
180 | | --exec | --exe | --ex) |
---|
181 | ac_prev=exec_prefix ;; |
---|
182 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
183 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
184 | | --exec=* | --exe=* | --ex=*) |
---|
185 | exec_prefix="$ac_optarg" ;; |
---|
186 | |
---|
187 | -gas | --gas | --ga | --g) |
---|
188 | # Obsolete; use --with-gas. |
---|
189 | with_gas=yes ;; |
---|
190 | |
---|
191 | -help | --help | --hel | --he) |
---|
192 | # Omit some internal or obsolete options to make the list less imposing. |
---|
193 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
194 | cat << EOF |
---|
195 | Usage: configure [options] [host] |
---|
196 | Options: [defaults in brackets after descriptions] |
---|
197 | Configuration: |
---|
198 | --cache-file=FILE cache test results in FILE |
---|
199 | --help print this message |
---|
200 | --no-create do not create output files |
---|
201 | --quiet, --silent do not print \`checking...' messages |
---|
202 | --version print the version of autoconf that created configure |
---|
203 | Directory and file names: |
---|
204 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
205 | [$ac_default_prefix] |
---|
206 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
207 | [same as prefix] |
---|
208 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
209 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
210 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
211 | --datadir=DIR read-only architecture-independent data in DIR |
---|
212 | [PREFIX/share] |
---|
213 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
214 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
215 | [PREFIX/com] |
---|
216 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
217 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
218 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
219 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
220 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
221 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
222 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
223 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
224 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
225 | --program-transform-name=PROGRAM |
---|
226 | run sed PROGRAM on installed program names |
---|
227 | EOF |
---|
228 | cat << EOF |
---|
229 | Host type: |
---|
230 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
231 | --host=HOST configure for HOST [guessed] |
---|
232 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
233 | Features and packages: |
---|
234 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
235 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
236 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
237 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
238 | --x-includes=DIR X include files are in DIR |
---|
239 | --x-libraries=DIR X library files are in DIR |
---|
240 | EOF |
---|
241 | if test -n "$ac_help"; then |
---|
242 | echo "--enable and --with options recognized:$ac_help" |
---|
243 | fi |
---|
244 | exit 0 ;; |
---|
245 | |
---|
246 | -host | --host | --hos | --ho) |
---|
247 | ac_prev=host ;; |
---|
248 | -host=* | --host=* | --hos=* | --ho=*) |
---|
249 | host="$ac_optarg" ;; |
---|
250 | |
---|
251 | -includedir | --includedir | --includedi | --included | --include \ |
---|
252 | | --includ | --inclu | --incl | --inc) |
---|
253 | ac_prev=includedir ;; |
---|
254 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
255 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
256 | includedir="$ac_optarg" ;; |
---|
257 | |
---|
258 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
259 | ac_prev=infodir ;; |
---|
260 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
261 | infodir="$ac_optarg" ;; |
---|
262 | |
---|
263 | -libdir | --libdir | --libdi | --libd) |
---|
264 | ac_prev=libdir ;; |
---|
265 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
266 | libdir="$ac_optarg" ;; |
---|
267 | |
---|
268 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
269 | | --libexe | --libex | --libe) |
---|
270 | ac_prev=libexecdir ;; |
---|
271 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
272 | | --libexe=* | --libex=* | --libe=*) |
---|
273 | libexecdir="$ac_optarg" ;; |
---|
274 | |
---|
275 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
276 | | --localstate | --localstat | --localsta | --localst \ |
---|
277 | | --locals | --local | --loca | --loc | --lo) |
---|
278 | ac_prev=localstatedir ;; |
---|
279 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
280 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
281 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
282 | localstatedir="$ac_optarg" ;; |
---|
283 | |
---|
284 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
285 | ac_prev=mandir ;; |
---|
286 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
287 | mandir="$ac_optarg" ;; |
---|
288 | |
---|
289 | -nfp | --nfp | --nf) |
---|
290 | # Obsolete; use --without-fp. |
---|
291 | with_fp=no ;; |
---|
292 | |
---|
293 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
294 | | --no-cr | --no-c) |
---|
295 | no_create=yes ;; |
---|
296 | |
---|
297 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
298 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
299 | no_recursion=yes ;; |
---|
300 | |
---|
301 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
302 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
303 | | --oldin | --oldi | --old | --ol | --o) |
---|
304 | ac_prev=oldincludedir ;; |
---|
305 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
306 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
307 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
308 | oldincludedir="$ac_optarg" ;; |
---|
309 | |
---|
310 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
311 | ac_prev=prefix ;; |
---|
312 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
313 | prefix="$ac_optarg" ;; |
---|
314 | |
---|
315 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
316 | | --program-pre | --program-pr | --program-p) |
---|
317 | ac_prev=program_prefix ;; |
---|
318 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
319 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
320 | program_prefix="$ac_optarg" ;; |
---|
321 | |
---|
322 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
323 | | --program-suf | --program-su | --program-s) |
---|
324 | ac_prev=program_suffix ;; |
---|
325 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
326 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
327 | program_suffix="$ac_optarg" ;; |
---|
328 | |
---|
329 | -program-transform-name | --program-transform-name \ |
---|
330 | | --program-transform-nam | --program-transform-na \ |
---|
331 | | --program-transform-n | --program-transform- \ |
---|
332 | | --program-transform | --program-transfor \ |
---|
333 | | --program-transfo | --program-transf \ |
---|
334 | | --program-trans | --program-tran \ |
---|
335 | | --progr-tra | --program-tr | --program-t) |
---|
336 | ac_prev=program_transform_name ;; |
---|
337 | -program-transform-name=* | --program-transform-name=* \ |
---|
338 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
339 | | --program-transform-n=* | --program-transform-=* \ |
---|
340 | | --program-transform=* | --program-transfor=* \ |
---|
341 | | --program-transfo=* | --program-transf=* \ |
---|
342 | | --program-trans=* | --program-tran=* \ |
---|
343 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
344 | program_transform_name="$ac_optarg" ;; |
---|
345 | |
---|
346 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
347 | | -silent | --silent | --silen | --sile | --sil) |
---|
348 | silent=yes ;; |
---|
349 | |
---|
350 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
351 | ac_prev=sbindir ;; |
---|
352 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
353 | | --sbi=* | --sb=*) |
---|
354 | sbindir="$ac_optarg" ;; |
---|
355 | |
---|
356 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
357 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
358 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
359 | | --sha | --sh) |
---|
360 | ac_prev=sharedstatedir ;; |
---|
361 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
362 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
363 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
364 | | --sha=* | --sh=*) |
---|
365 | sharedstatedir="$ac_optarg" ;; |
---|
366 | |
---|
367 | -site | --site | --sit) |
---|
368 | ac_prev=site ;; |
---|
369 | -site=* | --site=* | --sit=*) |
---|
370 | site="$ac_optarg" ;; |
---|
371 | |
---|
372 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
373 | ac_prev=srcdir ;; |
---|
374 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
375 | srcdir="$ac_optarg" ;; |
---|
376 | |
---|
377 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
378 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
379 | ac_prev=sysconfdir ;; |
---|
380 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
381 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
382 | sysconfdir="$ac_optarg" ;; |
---|
383 | |
---|
384 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
385 | ac_prev=target ;; |
---|
386 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
387 | target="$ac_optarg" ;; |
---|
388 | |
---|
389 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
390 | verbose=yes ;; |
---|
391 | |
---|
392 | -version | --version | --versio | --versi | --vers) |
---|
393 | echo "configure generated by autoconf version 2.13" |
---|
394 | exit 0 ;; |
---|
395 | |
---|
396 | -with-* | --with-*) |
---|
397 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
398 | # Reject names that are not valid shell variable names. |
---|
399 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
400 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
401 | fi |
---|
402 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
403 | case "$ac_option" in |
---|
404 | *=*) ;; |
---|
405 | *) ac_optarg=yes ;; |
---|
406 | esac |
---|
407 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
408 | |
---|
409 | -without-* | --without-*) |
---|
410 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
411 | # Reject names that are not valid shell variable names. |
---|
412 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
413 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
414 | fi |
---|
415 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
416 | eval "with_${ac_package}=no" ;; |
---|
417 | |
---|
418 | --x) |
---|
419 | # Obsolete; use --with-x. |
---|
420 | with_x=yes ;; |
---|
421 | |
---|
422 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
423 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
424 | ac_prev=x_includes ;; |
---|
425 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
426 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
427 | x_includes="$ac_optarg" ;; |
---|
428 | |
---|
429 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
430 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
431 | ac_prev=x_libraries ;; |
---|
432 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
433 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
434 | x_libraries="$ac_optarg" ;; |
---|
435 | |
---|
436 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
437 | ;; |
---|
438 | |
---|
439 | *) |
---|
440 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
441 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
442 | fi |
---|
443 | if test "x$nonopt" != xNONE; then |
---|
444 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
445 | fi |
---|
446 | nonopt="$ac_option" |
---|
447 | ;; |
---|
448 | |
---|
449 | esac |
---|
450 | done |
---|
451 | |
---|
452 | if test -n "$ac_prev"; then |
---|
453 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
454 | fi |
---|
455 | |
---|
456 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
457 | |
---|
458 | # File descriptor usage: |
---|
459 | # 0 standard input |
---|
460 | # 1 file creation |
---|
461 | # 2 errors and warnings |
---|
462 | # 3 some systems may open it to /dev/tty |
---|
463 | # 4 used on the Kubota Titan |
---|
464 | # 6 checking for... messages and results |
---|
465 | # 5 compiler messages saved in config.log |
---|
466 | if test "$silent" = yes; then |
---|
467 | exec 6>/dev/null |
---|
468 | else |
---|
469 | exec 6>&1 |
---|
470 | fi |
---|
471 | exec 5>./config.log |
---|
472 | |
---|
473 | echo "\ |
---|
474 | This file contains any messages produced by compilers while |
---|
475 | running configure, to aid debugging if configure makes a mistake. |
---|
476 | " 1>&5 |
---|
477 | |
---|
478 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
479 | # Also quote any args containing shell metacharacters. |
---|
480 | ac_configure_args= |
---|
481 | for ac_arg |
---|
482 | do |
---|
483 | case "$ac_arg" in |
---|
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
485 | | --no-cr | --no-c) ;; |
---|
486 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
487 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
488 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
489 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
490 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
491 | esac |
---|
492 | done |
---|
493 | |
---|
494 | # NLS nuisances. |
---|
495 | # Only set these to C if already set. These must not be set unconditionally |
---|
496 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
497 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
498 | # Non-C LC_CTYPE values break the ctype check. |
---|
499 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
500 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
501 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
502 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
503 | |
---|
504 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
505 | rm -rf conftest* confdefs.h |
---|
506 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
507 | echo > confdefs.h |
---|
508 | |
---|
509 | # A filename unique to this package, relative to the directory that |
---|
510 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
511 | ac_unique_file=libgnomevfs/gnome-vfs.h |
---|
512 | |
---|
513 | # Find the source files, if location was not specified. |
---|
514 | if test -z "$srcdir"; then |
---|
515 | ac_srcdir_defaulted=yes |
---|
516 | # Try the directory containing this script, then its parent. |
---|
517 | ac_prog=$0 |
---|
518 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
519 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
520 | srcdir=$ac_confdir |
---|
521 | if test ! -r $srcdir/$ac_unique_file; then |
---|
522 | srcdir=.. |
---|
523 | fi |
---|
524 | else |
---|
525 | ac_srcdir_defaulted=no |
---|
526 | fi |
---|
527 | if test ! -r $srcdir/$ac_unique_file; then |
---|
528 | if test "$ac_srcdir_defaulted" = yes; then |
---|
529 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
530 | else |
---|
531 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
532 | fi |
---|
533 | fi |
---|
534 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
535 | |
---|
536 | # Prefer explicitly selected file to automatically selected ones. |
---|
537 | if test -z "$CONFIG_SITE"; then |
---|
538 | if test "x$prefix" != xNONE; then |
---|
539 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
540 | else |
---|
541 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
542 | fi |
---|
543 | fi |
---|
544 | for ac_site_file in $CONFIG_SITE; do |
---|
545 | if test -r "$ac_site_file"; then |
---|
546 | echo "loading site script $ac_site_file" |
---|
547 | . "$ac_site_file" |
---|
548 | fi |
---|
549 | done |
---|
550 | |
---|
551 | if test -r "$cache_file"; then |
---|
552 | echo "loading cache $cache_file" |
---|
553 | . $cache_file |
---|
554 | else |
---|
555 | echo "creating cache $cache_file" |
---|
556 | > $cache_file |
---|
557 | fi |
---|
558 | |
---|
559 | ac_ext=c |
---|
560 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
561 | ac_cpp='$CPP $CPPFLAGS' |
---|
562 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
563 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
564 | cross_compiling=$ac_cv_prog_cc_cross |
---|
565 | |
---|
566 | ac_exeext= |
---|
567 | ac_objext=o |
---|
568 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
569 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
570 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
571 | ac_n= ac_c=' |
---|
572 | ' ac_t=' ' |
---|
573 | else |
---|
574 | ac_n=-n ac_c= ac_t= |
---|
575 | fi |
---|
576 | else |
---|
577 | ac_n= ac_c='\c' ac_t= |
---|
578 | fi |
---|
579 | |
---|
580 | |
---|
581 | |
---|
582 | |
---|
583 | |
---|
584 | ac_aux_dir= |
---|
585 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
586 | if test -f $ac_dir/install-sh; then |
---|
587 | ac_aux_dir=$ac_dir |
---|
588 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
589 | break |
---|
590 | elif test -f $ac_dir/install.sh; then |
---|
591 | ac_aux_dir=$ac_dir |
---|
592 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
593 | break |
---|
594 | fi |
---|
595 | done |
---|
596 | if test -z "$ac_aux_dir"; then |
---|
597 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
598 | fi |
---|
599 | ac_config_guess=$ac_aux_dir/config.guess |
---|
600 | ac_config_sub=$ac_aux_dir/config.sub |
---|
601 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
602 | |
---|
603 | # Find a good install program. We prefer a C program (faster), |
---|
604 | # so one script is as good as another. But avoid the broken or |
---|
605 | # incompatible versions: |
---|
606 | # SysV /etc/install, /usr/sbin/install |
---|
607 | # SunOS /usr/etc/install |
---|
608 | # IRIX /sbin/install |
---|
609 | # AIX /bin/install |
---|
610 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
611 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
612 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
613 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
614 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
615 | echo "configure:616: checking for a BSD compatible install" >&5 |
---|
616 | if test -z "$INSTALL"; then |
---|
617 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
618 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
619 | else |
---|
620 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
621 | for ac_dir in $PATH; do |
---|
622 | # Account for people who put trailing slashes in PATH elements. |
---|
623 | case "$ac_dir/" in |
---|
624 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
625 | *) |
---|
626 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
627 | # Don't use installbsd from OSF since it installs stuff as root |
---|
628 | # by default. |
---|
629 | for ac_prog in ginstall scoinst install; do |
---|
630 | if test -f $ac_dir/$ac_prog; then |
---|
631 | if test $ac_prog = install && |
---|
632 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
633 | # AIX install. It has an incompatible calling convention. |
---|
634 | : |
---|
635 | else |
---|
636 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
637 | break 2 |
---|
638 | fi |
---|
639 | fi |
---|
640 | done |
---|
641 | ;; |
---|
642 | esac |
---|
643 | done |
---|
644 | IFS="$ac_save_IFS" |
---|
645 | |
---|
646 | fi |
---|
647 | if test "${ac_cv_path_install+set}" = set; then |
---|
648 | INSTALL="$ac_cv_path_install" |
---|
649 | else |
---|
650 | # As a last resort, use the slow shell script. We don't cache a |
---|
651 | # path for INSTALL within a source directory, because that will |
---|
652 | # break other packages using the cache if that directory is |
---|
653 | # removed, or if the path is relative. |
---|
654 | INSTALL="$ac_install_sh" |
---|
655 | fi |
---|
656 | fi |
---|
657 | echo "$ac_t""$INSTALL" 1>&6 |
---|
658 | |
---|
659 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
660 | # It thinks the first close brace ends the variable substitution. |
---|
661 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
662 | |
---|
663 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
664 | |
---|
665 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
666 | |
---|
667 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
668 | echo "configure:669: checking whether build environment is sane" >&5 |
---|
669 | # Just in case |
---|
670 | sleep 1 |
---|
671 | echo timestamp > conftestfile |
---|
672 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
673 | # arguments. Must try -L first in case configure is actually a |
---|
674 | # symlink; some systems play weird games with the mod time of symlinks |
---|
675 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
676 | # directory). |
---|
677 | if ( |
---|
678 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
679 | if test "$*" = "X"; then |
---|
680 | # -L didn't work. |
---|
681 | set X `ls -t $srcdir/configure conftestfile` |
---|
682 | fi |
---|
683 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
684 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
685 | |
---|
686 | # If neither matched, then we have a broken ls. This can happen |
---|
687 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
688 | # broken ls alias from the environment. This has actually |
---|
689 | # happened. Such a system could not be considered "sane". |
---|
690 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
691 | alias in your environment" 1>&2; exit 1; } |
---|
692 | fi |
---|
693 | |
---|
694 | test "$2" = conftestfile |
---|
695 | ) |
---|
696 | then |
---|
697 | # Ok. |
---|
698 | : |
---|
699 | else |
---|
700 | { echo "configure: error: newly created file is older than distributed files! |
---|
701 | Check your system clock" 1>&2; exit 1; } |
---|
702 | fi |
---|
703 | rm -f conftest* |
---|
704 | echo "$ac_t""yes" 1>&6 |
---|
705 | if test "$program_transform_name" = s,x,x,; then |
---|
706 | program_transform_name= |
---|
707 | else |
---|
708 | # Double any \ or $. echo might interpret backslashes. |
---|
709 | cat <<\EOF_SED > conftestsed |
---|
710 | s,\\,\\\\,g; s,\$,$$,g |
---|
711 | EOF_SED |
---|
712 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
713 | rm -f conftestsed |
---|
714 | fi |
---|
715 | test "$program_prefix" != NONE && |
---|
716 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
717 | # Use a double $ so make ignores it. |
---|
718 | test "$program_suffix" != NONE && |
---|
719 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
720 | |
---|
721 | # sed with no file args requires a program. |
---|
722 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
723 | |
---|
724 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
725 | echo "configure:726: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
726 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
727 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
728 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
729 | else |
---|
730 | cat > conftestmake <<\EOF |
---|
731 | all: |
---|
732 | @echo 'ac_maketemp="${MAKE}"' |
---|
733 | EOF |
---|
734 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
735 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
736 | if test -n "$ac_maketemp"; then |
---|
737 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
738 | else |
---|
739 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
740 | fi |
---|
741 | rm -f conftestmake |
---|
742 | fi |
---|
743 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
744 | echo "$ac_t""yes" 1>&6 |
---|
745 | SET_MAKE= |
---|
746 | else |
---|
747 | echo "$ac_t""no" 1>&6 |
---|
748 | SET_MAKE="MAKE=${MAKE-make}" |
---|
749 | fi |
---|
750 | |
---|
751 | |
---|
752 | PACKAGE=gnome-vfs |
---|
753 | |
---|
754 | VERSION=1.0 |
---|
755 | |
---|
756 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
757 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
758 | fi |
---|
759 | cat >> confdefs.h <<EOF |
---|
760 | #define PACKAGE "$PACKAGE" |
---|
761 | EOF |
---|
762 | |
---|
763 | cat >> confdefs.h <<EOF |
---|
764 | #define VERSION "$VERSION" |
---|
765 | EOF |
---|
766 | |
---|
767 | |
---|
768 | |
---|
769 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
770 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
771 | echo "configure:772: checking for working aclocal" >&5 |
---|
772 | # Run test in a subshell; some versions of sh will print an error if |
---|
773 | # an executable is not found, even if stderr is redirected. |
---|
774 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
775 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
776 | ACLOCAL=aclocal |
---|
777 | echo "$ac_t""found" 1>&6 |
---|
778 | else |
---|
779 | ACLOCAL="$missing_dir/missing aclocal" |
---|
780 | echo "$ac_t""missing" 1>&6 |
---|
781 | fi |
---|
782 | |
---|
783 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
784 | echo "configure:785: checking for working autoconf" >&5 |
---|
785 | # Run test in a subshell; some versions of sh will print an error if |
---|
786 | # an executable is not found, even if stderr is redirected. |
---|
787 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
788 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
789 | AUTOCONF=autoconf |
---|
790 | echo "$ac_t""found" 1>&6 |
---|
791 | else |
---|
792 | AUTOCONF="$missing_dir/missing autoconf" |
---|
793 | echo "$ac_t""missing" 1>&6 |
---|
794 | fi |
---|
795 | |
---|
796 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
797 | echo "configure:798: checking for working automake" >&5 |
---|
798 | # Run test in a subshell; some versions of sh will print an error if |
---|
799 | # an executable is not found, even if stderr is redirected. |
---|
800 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
801 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
802 | AUTOMAKE=automake |
---|
803 | echo "$ac_t""found" 1>&6 |
---|
804 | else |
---|
805 | AUTOMAKE="$missing_dir/missing automake" |
---|
806 | echo "$ac_t""missing" 1>&6 |
---|
807 | fi |
---|
808 | |
---|
809 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
810 | echo "configure:811: checking for working autoheader" >&5 |
---|
811 | # Run test in a subshell; some versions of sh will print an error if |
---|
812 | # an executable is not found, even if stderr is redirected. |
---|
813 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
814 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
815 | AUTOHEADER=autoheader |
---|
816 | echo "$ac_t""found" 1>&6 |
---|
817 | else |
---|
818 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
819 | echo "$ac_t""missing" 1>&6 |
---|
820 | fi |
---|
821 | |
---|
822 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
823 | echo "configure:824: checking for working makeinfo" >&5 |
---|
824 | # Run test in a subshell; some versions of sh will print an error if |
---|
825 | # an executable is not found, even if stderr is redirected. |
---|
826 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
827 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
828 | MAKEINFO=makeinfo |
---|
829 | echo "$ac_t""found" 1>&6 |
---|
830 | else |
---|
831 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
832 | echo "$ac_t""missing" 1>&6 |
---|
833 | fi |
---|
834 | |
---|
835 | |
---|
836 | |
---|
837 | |
---|
838 | |
---|
839 | if test x = y; then |
---|
840 | INSIDE_GNOME_COMMON_TRUE= |
---|
841 | INSIDE_GNOME_COMMON_FALSE='#' |
---|
842 | else |
---|
843 | INSIDE_GNOME_COMMON_TRUE='#' |
---|
844 | INSIDE_GNOME_COMMON_FALSE= |
---|
845 | fi |
---|
846 | |
---|
847 | test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" |
---|
848 | |
---|
849 | for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done |
---|
850 | |
---|
851 | |
---|
852 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
853 | echo "configure:854: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
854 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
855 | if test "${enable_maintainer_mode+set}" = set; then |
---|
856 | enableval="$enable_maintainer_mode" |
---|
857 | USE_MAINTAINER_MODE=$enableval |
---|
858 | else |
---|
859 | USE_MAINTAINER_MODE=no |
---|
860 | fi |
---|
861 | |
---|
862 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
863 | |
---|
864 | |
---|
865 | if test $USE_MAINTAINER_MODE = yes; then |
---|
866 | MAINTAINER_MODE_TRUE= |
---|
867 | MAINTAINER_MODE_FALSE='#' |
---|
868 | else |
---|
869 | MAINTAINER_MODE_TRUE='#' |
---|
870 | MAINTAINER_MODE_FALSE= |
---|
871 | fi |
---|
872 | MAINT=$MAINTAINER_MODE_TRUE |
---|
873 | |
---|
874 | |
---|
875 | |
---|
876 | |
---|
877 | |
---|
878 | XML_I18N_MERGE_OAF_RULE='\%.oaf : \%.oaf.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
879 | $(top_builddir)/xml-i18n-merge -o $(top_srcdir)/po $< $*.oaf' |
---|
880 | |
---|
881 | XML_I18N_MERGE_KEYS_RULE='\%.keys : \%.keys.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
882 | $(top_builddir)/xml-i18n-merge -k $(top_srcdir)/po $< $*.keys' |
---|
883 | |
---|
884 | XML_I18N_MERGE_DESKTOP_RULE='\%.desktop : \%.desktop.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
885 | $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.desktop' |
---|
886 | |
---|
887 | # Always use our own xml-i18n-tools. |
---|
888 | XML_I18N_EXTRACT='$(top_builddir)/xml-i18n-extract' |
---|
889 | |
---|
890 | XML_I18N_MERGE='$(top_builddir)/xml-i18n-merge' |
---|
891 | |
---|
892 | XML_I18N_UPDATE='$(top_builddir)/xml-i18n-update' |
---|
893 | |
---|
894 | # Extract the first word of "perl", so it can be a program name with args. |
---|
895 | set dummy perl; ac_word=$2 |
---|
896 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
897 | echo "configure:898: checking for $ac_word" >&5 |
---|
898 | if eval "test \"`echo '$''{'ac_cv_path_XML_I18N_TOOLS_PERL'+set}'`\" = set"; then |
---|
899 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
900 | else |
---|
901 | case "$XML_I18N_TOOLS_PERL" in |
---|
902 | /*) |
---|
903 | ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a path. |
---|
904 | ;; |
---|
905 | ?:/*) |
---|
906 | ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a dos path. |
---|
907 | ;; |
---|
908 | *) |
---|
909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
910 | ac_dummy="$PATH" |
---|
911 | for ac_dir in $ac_dummy; do |
---|
912 | test -z "$ac_dir" && ac_dir=. |
---|
913 | if test -f $ac_dir/$ac_word; then |
---|
914 | ac_cv_path_XML_I18N_TOOLS_PERL="$ac_dir/$ac_word" |
---|
915 | break |
---|
916 | fi |
---|
917 | done |
---|
918 | IFS="$ac_save_ifs" |
---|
919 | ;; |
---|
920 | esac |
---|
921 | fi |
---|
922 | XML_I18N_TOOLS_PERL="$ac_cv_path_XML_I18N_TOOLS_PERL" |
---|
923 | if test -n "$XML_I18N_TOOLS_PERL"; then |
---|
924 | echo "$ac_t""$XML_I18N_TOOLS_PERL" 1>&6 |
---|
925 | else |
---|
926 | echo "$ac_t""no" 1>&6 |
---|
927 | fi |
---|
928 | |
---|
929 | if test -z "$XML_I18N_TOOLS_PERL"; then |
---|
930 | { echo "configure: error: perl not found; required for xml-i18n-tools" 1>&2; exit 1; } |
---|
931 | fi |
---|
932 | if test -z "`$XML_I18N_TOOLS_PERL -v | fgrep '5.' 2> /dev/null`"; then |
---|
933 | { echo "configure: error: perl 5.x required for xml-i18n-tools" 1>&2; exit 1; } |
---|
934 | fi |
---|
935 | |
---|
936 | |
---|
937 | |
---|
938 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
939 | # clobbered by the next message. |
---|
940 | exec 5>>./config.log |
---|
941 | |
---|
942 | |
---|
943 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
944 | set dummy gcc; ac_word=$2 |
---|
945 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
946 | echo "configure:947: checking for $ac_word" >&5 |
---|
947 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
948 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
949 | else |
---|
950 | if test -n "$CC"; then |
---|
951 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
952 | else |
---|
953 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
954 | ac_dummy="$PATH" |
---|
955 | for ac_dir in $ac_dummy; do |
---|
956 | test -z "$ac_dir" && ac_dir=. |
---|
957 | if test -f $ac_dir/$ac_word; then |
---|
958 | ac_cv_prog_CC="gcc" |
---|
959 | break |
---|
960 | fi |
---|
961 | done |
---|
962 | IFS="$ac_save_ifs" |
---|
963 | fi |
---|
964 | fi |
---|
965 | CC="$ac_cv_prog_CC" |
---|
966 | if test -n "$CC"; then |
---|
967 | echo "$ac_t""$CC" 1>&6 |
---|
968 | else |
---|
969 | echo "$ac_t""no" 1>&6 |
---|
970 | fi |
---|
971 | |
---|
972 | if test -z "$CC"; then |
---|
973 | # Extract the first word of "cc", so it can be a program name with args. |
---|
974 | set dummy cc; ac_word=$2 |
---|
975 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
976 | echo "configure:977: checking for $ac_word" >&5 |
---|
977 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
978 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
979 | else |
---|
980 | if test -n "$CC"; then |
---|
981 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
982 | else |
---|
983 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
984 | ac_prog_rejected=no |
---|
985 | ac_dummy="$PATH" |
---|
986 | for ac_dir in $ac_dummy; do |
---|
987 | test -z "$ac_dir" && ac_dir=. |
---|
988 | if test -f $ac_dir/$ac_word; then |
---|
989 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
990 | ac_prog_rejected=yes |
---|
991 | continue |
---|
992 | fi |
---|
993 | ac_cv_prog_CC="cc" |
---|
994 | break |
---|
995 | fi |
---|
996 | done |
---|
997 | IFS="$ac_save_ifs" |
---|
998 | if test $ac_prog_rejected = yes; then |
---|
999 | # We found a bogon in the path, so make sure we never use it. |
---|
1000 | set dummy $ac_cv_prog_CC |
---|
1001 | shift |
---|
1002 | if test $# -gt 0; then |
---|
1003 | # We chose a different compiler from the bogus one. |
---|
1004 | # However, it has the same basename, so the bogon will be chosen |
---|
1005 | # first if we set CC to just the basename; use the full file name. |
---|
1006 | shift |
---|
1007 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1008 | shift |
---|
1009 | ac_cv_prog_CC="$@" |
---|
1010 | fi |
---|
1011 | fi |
---|
1012 | fi |
---|
1013 | fi |
---|
1014 | CC="$ac_cv_prog_CC" |
---|
1015 | if test -n "$CC"; then |
---|
1016 | echo "$ac_t""$CC" 1>&6 |
---|
1017 | else |
---|
1018 | echo "$ac_t""no" 1>&6 |
---|
1019 | fi |
---|
1020 | |
---|
1021 | if test -z "$CC"; then |
---|
1022 | case "`uname -s`" in |
---|
1023 | *win32* | *WIN32*) |
---|
1024 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1025 | set dummy cl; ac_word=$2 |
---|
1026 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1027 | echo "configure:1028: checking for $ac_word" >&5 |
---|
1028 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1029 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1030 | else |
---|
1031 | if test -n "$CC"; then |
---|
1032 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1033 | else |
---|
1034 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1035 | ac_dummy="$PATH" |
---|
1036 | for ac_dir in $ac_dummy; do |
---|
1037 | test -z "$ac_dir" && ac_dir=. |
---|
1038 | if test -f $ac_dir/$ac_word; then |
---|
1039 | ac_cv_prog_CC="cl" |
---|
1040 | break |
---|
1041 | fi |
---|
1042 | done |
---|
1043 | IFS="$ac_save_ifs" |
---|
1044 | fi |
---|
1045 | fi |
---|
1046 | CC="$ac_cv_prog_CC" |
---|
1047 | if test -n "$CC"; then |
---|
1048 | echo "$ac_t""$CC" 1>&6 |
---|
1049 | else |
---|
1050 | echo "$ac_t""no" 1>&6 |
---|
1051 | fi |
---|
1052 | ;; |
---|
1053 | esac |
---|
1054 | fi |
---|
1055 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1056 | fi |
---|
1057 | |
---|
1058 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1059 | echo "configure:1060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1060 | |
---|
1061 | ac_ext=c |
---|
1062 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1063 | ac_cpp='$CPP $CPPFLAGS' |
---|
1064 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1065 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1066 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1067 | |
---|
1068 | cat > conftest.$ac_ext << EOF |
---|
1069 | |
---|
1070 | #line 1071 "configure" |
---|
1071 | #include "confdefs.h" |
---|
1072 | |
---|
1073 | main(){return(0);} |
---|
1074 | EOF |
---|
1075 | if { (eval echo configure:1076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1076 | ac_cv_prog_cc_works=yes |
---|
1077 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1078 | if (./conftest; exit) 2>/dev/null; then |
---|
1079 | ac_cv_prog_cc_cross=no |
---|
1080 | else |
---|
1081 | ac_cv_prog_cc_cross=yes |
---|
1082 | fi |
---|
1083 | else |
---|
1084 | echo "configure: failed program was:" >&5 |
---|
1085 | cat conftest.$ac_ext >&5 |
---|
1086 | ac_cv_prog_cc_works=no |
---|
1087 | fi |
---|
1088 | rm -fr conftest* |
---|
1089 | ac_ext=c |
---|
1090 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1091 | ac_cpp='$CPP $CPPFLAGS' |
---|
1092 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1093 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1094 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1095 | |
---|
1096 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1097 | if test $ac_cv_prog_cc_works = no; then |
---|
1098 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1099 | fi |
---|
1100 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1101 | echo "configure:1102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1102 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1103 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1104 | |
---|
1105 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1106 | echo "configure:1107: checking whether we are using GNU C" >&5 |
---|
1107 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1108 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1109 | else |
---|
1110 | cat > conftest.c <<EOF |
---|
1111 | #ifdef __GNUC__ |
---|
1112 | yes; |
---|
1113 | #endif |
---|
1114 | EOF |
---|
1115 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1116 | ac_cv_prog_gcc=yes |
---|
1117 | else |
---|
1118 | ac_cv_prog_gcc=no |
---|
1119 | fi |
---|
1120 | fi |
---|
1121 | |
---|
1122 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1123 | |
---|
1124 | if test $ac_cv_prog_gcc = yes; then |
---|
1125 | GCC=yes |
---|
1126 | else |
---|
1127 | GCC= |
---|
1128 | fi |
---|
1129 | |
---|
1130 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1131 | ac_save_CFLAGS="$CFLAGS" |
---|
1132 | CFLAGS= |
---|
1133 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1134 | echo "configure:1135: checking whether ${CC-cc} accepts -g" >&5 |
---|
1135 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1136 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1137 | else |
---|
1138 | echo 'void f(){}' > conftest.c |
---|
1139 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1140 | ac_cv_prog_cc_g=yes |
---|
1141 | else |
---|
1142 | ac_cv_prog_cc_g=no |
---|
1143 | fi |
---|
1144 | rm -f conftest* |
---|
1145 | |
---|
1146 | fi |
---|
1147 | |
---|
1148 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1149 | if test "$ac_test_CFLAGS" = set; then |
---|
1150 | CFLAGS="$ac_save_CFLAGS" |
---|
1151 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1152 | if test "$GCC" = yes; then |
---|
1153 | CFLAGS="-g -O2" |
---|
1154 | else |
---|
1155 | CFLAGS="-g" |
---|
1156 | fi |
---|
1157 | else |
---|
1158 | if test "$GCC" = yes; then |
---|
1159 | CFLAGS="-O2" |
---|
1160 | else |
---|
1161 | CFLAGS= |
---|
1162 | fi |
---|
1163 | fi |
---|
1164 | |
---|
1165 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
---|
1166 | echo "configure:1167: checking for POSIXized ISC" >&5 |
---|
1167 | if test -d /etc/conf/kconfig.d && |
---|
1168 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
---|
1169 | then |
---|
1170 | echo "$ac_t""yes" 1>&6 |
---|
1171 | ISC=yes # If later tests want to check for ISC. |
---|
1172 | cat >> confdefs.h <<\EOF |
---|
1173 | #define _POSIX_SOURCE 1 |
---|
1174 | EOF |
---|
1175 | |
---|
1176 | if test "$GCC" = yes; then |
---|
1177 | CC="$CC -posix" |
---|
1178 | else |
---|
1179 | CC="$CC -Xp" |
---|
1180 | fi |
---|
1181 | else |
---|
1182 | echo "$ac_t""no" 1>&6 |
---|
1183 | ISC= |
---|
1184 | fi |
---|
1185 | |
---|
1186 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1187 | set dummy gcc; ac_word=$2 |
---|
1188 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1189 | echo "configure:1190: checking for $ac_word" >&5 |
---|
1190 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1191 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1192 | else |
---|
1193 | if test -n "$CC"; then |
---|
1194 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1195 | else |
---|
1196 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1197 | ac_dummy="$PATH" |
---|
1198 | for ac_dir in $ac_dummy; do |
---|
1199 | test -z "$ac_dir" && ac_dir=. |
---|
1200 | if test -f $ac_dir/$ac_word; then |
---|
1201 | ac_cv_prog_CC="gcc" |
---|
1202 | break |
---|
1203 | fi |
---|
1204 | done |
---|
1205 | IFS="$ac_save_ifs" |
---|
1206 | fi |
---|
1207 | fi |
---|
1208 | CC="$ac_cv_prog_CC" |
---|
1209 | if test -n "$CC"; then |
---|
1210 | echo "$ac_t""$CC" 1>&6 |
---|
1211 | else |
---|
1212 | echo "$ac_t""no" 1>&6 |
---|
1213 | fi |
---|
1214 | |
---|
1215 | if test -z "$CC"; then |
---|
1216 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1217 | set dummy cc; ac_word=$2 |
---|
1218 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1219 | echo "configure:1220: checking for $ac_word" >&5 |
---|
1220 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1221 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1222 | else |
---|
1223 | if test -n "$CC"; then |
---|
1224 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1225 | else |
---|
1226 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1227 | ac_prog_rejected=no |
---|
1228 | ac_dummy="$PATH" |
---|
1229 | for ac_dir in $ac_dummy; do |
---|
1230 | test -z "$ac_dir" && ac_dir=. |
---|
1231 | if test -f $ac_dir/$ac_word; then |
---|
1232 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
1233 | ac_prog_rejected=yes |
---|
1234 | continue |
---|
1235 | fi |
---|
1236 | ac_cv_prog_CC="cc" |
---|
1237 | break |
---|
1238 | fi |
---|
1239 | done |
---|
1240 | IFS="$ac_save_ifs" |
---|
1241 | if test $ac_prog_rejected = yes; then |
---|
1242 | # We found a bogon in the path, so make sure we never use it. |
---|
1243 | set dummy $ac_cv_prog_CC |
---|
1244 | shift |
---|
1245 | if test $# -gt 0; then |
---|
1246 | # We chose a different compiler from the bogus one. |
---|
1247 | # However, it has the same basename, so the bogon will be chosen |
---|
1248 | # first if we set CC to just the basename; use the full file name. |
---|
1249 | shift |
---|
1250 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1251 | shift |
---|
1252 | ac_cv_prog_CC="$@" |
---|
1253 | fi |
---|
1254 | fi |
---|
1255 | fi |
---|
1256 | fi |
---|
1257 | CC="$ac_cv_prog_CC" |
---|
1258 | if test -n "$CC"; then |
---|
1259 | echo "$ac_t""$CC" 1>&6 |
---|
1260 | else |
---|
1261 | echo "$ac_t""no" 1>&6 |
---|
1262 | fi |
---|
1263 | |
---|
1264 | if test -z "$CC"; then |
---|
1265 | case "`uname -s`" in |
---|
1266 | *win32* | *WIN32*) |
---|
1267 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1268 | set dummy cl; ac_word=$2 |
---|
1269 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1270 | echo "configure:1271: checking for $ac_word" >&5 |
---|
1271 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1272 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1273 | else |
---|
1274 | if test -n "$CC"; then |
---|
1275 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1276 | else |
---|
1277 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1278 | ac_dummy="$PATH" |
---|
1279 | for ac_dir in $ac_dummy; do |
---|
1280 | test -z "$ac_dir" && ac_dir=. |
---|
1281 | if test -f $ac_dir/$ac_word; then |
---|
1282 | ac_cv_prog_CC="cl" |
---|
1283 | break |
---|
1284 | fi |
---|
1285 | done |
---|
1286 | IFS="$ac_save_ifs" |
---|
1287 | fi |
---|
1288 | fi |
---|
1289 | CC="$ac_cv_prog_CC" |
---|
1290 | if test -n "$CC"; then |
---|
1291 | echo "$ac_t""$CC" 1>&6 |
---|
1292 | else |
---|
1293 | echo "$ac_t""no" 1>&6 |
---|
1294 | fi |
---|
1295 | ;; |
---|
1296 | esac |
---|
1297 | fi |
---|
1298 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1299 | fi |
---|
1300 | |
---|
1301 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1302 | echo "configure:1303: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1303 | |
---|
1304 | ac_ext=c |
---|
1305 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1306 | ac_cpp='$CPP $CPPFLAGS' |
---|
1307 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1308 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1309 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1310 | |
---|
1311 | cat > conftest.$ac_ext << EOF |
---|
1312 | |
---|
1313 | #line 1314 "configure" |
---|
1314 | #include "confdefs.h" |
---|
1315 | |
---|
1316 | main(){return(0);} |
---|
1317 | EOF |
---|
1318 | if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1319 | ac_cv_prog_cc_works=yes |
---|
1320 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1321 | if (./conftest; exit) 2>/dev/null; then |
---|
1322 | ac_cv_prog_cc_cross=no |
---|
1323 | else |
---|
1324 | ac_cv_prog_cc_cross=yes |
---|
1325 | fi |
---|
1326 | else |
---|
1327 | echo "configure: failed program was:" >&5 |
---|
1328 | cat conftest.$ac_ext >&5 |
---|
1329 | ac_cv_prog_cc_works=no |
---|
1330 | fi |
---|
1331 | rm -fr conftest* |
---|
1332 | ac_ext=c |
---|
1333 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1334 | ac_cpp='$CPP $CPPFLAGS' |
---|
1335 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1336 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1337 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1338 | |
---|
1339 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1340 | if test $ac_cv_prog_cc_works = no; then |
---|
1341 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1342 | fi |
---|
1343 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1344 | echo "configure:1345: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1345 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1346 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1347 | |
---|
1348 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1349 | echo "configure:1350: checking whether we are using GNU C" >&5 |
---|
1350 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1351 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1352 | else |
---|
1353 | cat > conftest.c <<EOF |
---|
1354 | #ifdef __GNUC__ |
---|
1355 | yes; |
---|
1356 | #endif |
---|
1357 | EOF |
---|
1358 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1359 | ac_cv_prog_gcc=yes |
---|
1360 | else |
---|
1361 | ac_cv_prog_gcc=no |
---|
1362 | fi |
---|
1363 | fi |
---|
1364 | |
---|
1365 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1366 | |
---|
1367 | if test $ac_cv_prog_gcc = yes; then |
---|
1368 | GCC=yes |
---|
1369 | else |
---|
1370 | GCC= |
---|
1371 | fi |
---|
1372 | |
---|
1373 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1374 | ac_save_CFLAGS="$CFLAGS" |
---|
1375 | CFLAGS= |
---|
1376 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1377 | echo "configure:1378: checking whether ${CC-cc} accepts -g" >&5 |
---|
1378 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1379 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1380 | else |
---|
1381 | echo 'void f(){}' > conftest.c |
---|
1382 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1383 | ac_cv_prog_cc_g=yes |
---|
1384 | else |
---|
1385 | ac_cv_prog_cc_g=no |
---|
1386 | fi |
---|
1387 | rm -f conftest* |
---|
1388 | |
---|
1389 | fi |
---|
1390 | |
---|
1391 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1392 | if test "$ac_test_CFLAGS" = set; then |
---|
1393 | CFLAGS="$ac_save_CFLAGS" |
---|
1394 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1395 | if test "$GCC" = yes; then |
---|
1396 | CFLAGS="-g -O2" |
---|
1397 | else |
---|
1398 | CFLAGS="-g" |
---|
1399 | fi |
---|
1400 | else |
---|
1401 | if test "$GCC" = yes; then |
---|
1402 | CFLAGS="-O2" |
---|
1403 | else |
---|
1404 | CFLAGS= |
---|
1405 | fi |
---|
1406 | fi |
---|
1407 | |
---|
1408 | for ac_prog in mawk gawk nawk awk |
---|
1409 | do |
---|
1410 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1411 | set dummy $ac_prog; ac_word=$2 |
---|
1412 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1413 | echo "configure:1414: checking for $ac_word" >&5 |
---|
1414 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
---|
1415 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1416 | else |
---|
1417 | if test -n "$AWK"; then |
---|
1418 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1419 | else |
---|
1420 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1421 | ac_dummy="$PATH" |
---|
1422 | for ac_dir in $ac_dummy; do |
---|
1423 | test -z "$ac_dir" && ac_dir=. |
---|
1424 | if test -f $ac_dir/$ac_word; then |
---|
1425 | ac_cv_prog_AWK="$ac_prog" |
---|
1426 | break |
---|
1427 | fi |
---|
1428 | done |
---|
1429 | IFS="$ac_save_ifs" |
---|
1430 | fi |
---|
1431 | fi |
---|
1432 | AWK="$ac_cv_prog_AWK" |
---|
1433 | if test -n "$AWK"; then |
---|
1434 | echo "$ac_t""$AWK" 1>&6 |
---|
1435 | else |
---|
1436 | echo "$ac_t""no" 1>&6 |
---|
1437 | fi |
---|
1438 | |
---|
1439 | test -n "$AWK" && break |
---|
1440 | done |
---|
1441 | |
---|
1442 | # Check whether --enable-shared or --disable-shared was given. |
---|
1443 | if test "${enable_shared+set}" = set; then |
---|
1444 | enableval="$enable_shared" |
---|
1445 | p=${PACKAGE-default} |
---|
1446 | case "$enableval" in |
---|
1447 | yes) enable_shared=yes ;; |
---|
1448 | no) enable_shared=no ;; |
---|
1449 | *) |
---|
1450 | enable_shared=no |
---|
1451 | # Look at the argument we got. We use all the common list separators. |
---|
1452 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1453 | for pkg in $enableval; do |
---|
1454 | if test "X$pkg" = "X$p"; then |
---|
1455 | enable_shared=yes |
---|
1456 | fi |
---|
1457 | done |
---|
1458 | IFS="$ac_save_ifs" |
---|
1459 | ;; |
---|
1460 | esac |
---|
1461 | else |
---|
1462 | enable_shared=yes |
---|
1463 | fi |
---|
1464 | |
---|
1465 | # Check whether --enable-static or --disable-static was given. |
---|
1466 | if test "${enable_static+set}" = set; then |
---|
1467 | enableval="$enable_static" |
---|
1468 | p=${PACKAGE-default} |
---|
1469 | case "$enableval" in |
---|
1470 | yes) enable_static=yes ;; |
---|
1471 | no) enable_static=no ;; |
---|
1472 | *) |
---|
1473 | enable_static=no |
---|
1474 | # Look at the argument we got. We use all the common list separators. |
---|
1475 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1476 | for pkg in $enableval; do |
---|
1477 | if test "X$pkg" = "X$p"; then |
---|
1478 | enable_static=yes |
---|
1479 | fi |
---|
1480 | done |
---|
1481 | IFS="$ac_save_ifs" |
---|
1482 | ;; |
---|
1483 | esac |
---|
1484 | else |
---|
1485 | enable_static=yes |
---|
1486 | fi |
---|
1487 | |
---|
1488 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
1489 | if test "${enable_fast_install+set}" = set; then |
---|
1490 | enableval="$enable_fast_install" |
---|
1491 | p=${PACKAGE-default} |
---|
1492 | case "$enableval" in |
---|
1493 | yes) enable_fast_install=yes ;; |
---|
1494 | no) enable_fast_install=no ;; |
---|
1495 | *) |
---|
1496 | enable_fast_install=no |
---|
1497 | # Look at the argument we got. We use all the common list separators. |
---|
1498 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1499 | for pkg in $enableval; do |
---|
1500 | if test "X$pkg" = "X$p"; then |
---|
1501 | enable_fast_install=yes |
---|
1502 | fi |
---|
1503 | done |
---|
1504 | IFS="$ac_save_ifs" |
---|
1505 | ;; |
---|
1506 | esac |
---|
1507 | else |
---|
1508 | enable_fast_install=yes |
---|
1509 | fi |
---|
1510 | |
---|
1511 | |
---|
1512 | # Make sure we can run config.sub. |
---|
1513 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
1514 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
1515 | fi |
---|
1516 | |
---|
1517 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
1518 | echo "configure:1519: checking host system type" >&5 |
---|
1519 | |
---|
1520 | host_alias=$host |
---|
1521 | case "$host_alias" in |
---|
1522 | NONE) |
---|
1523 | case $nonopt in |
---|
1524 | NONE) |
---|
1525 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
1526 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
1527 | fi ;; |
---|
1528 | *) host_alias=$nonopt ;; |
---|
1529 | esac ;; |
---|
1530 | esac |
---|
1531 | |
---|
1532 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
1533 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1534 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1535 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1536 | echo "$ac_t""$host" 1>&6 |
---|
1537 | |
---|
1538 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
1539 | echo "configure:1540: checking build system type" >&5 |
---|
1540 | |
---|
1541 | build_alias=$build |
---|
1542 | case "$build_alias" in |
---|
1543 | NONE) |
---|
1544 | case $nonopt in |
---|
1545 | NONE) build_alias=$host_alias ;; |
---|
1546 | *) build_alias=$nonopt ;; |
---|
1547 | esac ;; |
---|
1548 | esac |
---|
1549 | |
---|
1550 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
1551 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1552 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1553 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1554 | echo "$ac_t""$build" 1>&6 |
---|
1555 | |
---|
1556 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
1557 | set dummy ranlib; ac_word=$2 |
---|
1558 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1559 | echo "configure:1560: checking for $ac_word" >&5 |
---|
1560 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
1561 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1562 | else |
---|
1563 | if test -n "$RANLIB"; then |
---|
1564 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
1565 | else |
---|
1566 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1567 | ac_dummy="$PATH" |
---|
1568 | for ac_dir in $ac_dummy; do |
---|
1569 | test -z "$ac_dir" && ac_dir=. |
---|
1570 | if test -f $ac_dir/$ac_word; then |
---|
1571 | ac_cv_prog_RANLIB="ranlib" |
---|
1572 | break |
---|
1573 | fi |
---|
1574 | done |
---|
1575 | IFS="$ac_save_ifs" |
---|
1576 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
1577 | fi |
---|
1578 | fi |
---|
1579 | RANLIB="$ac_cv_prog_RANLIB" |
---|
1580 | if test -n "$RANLIB"; then |
---|
1581 | echo "$ac_t""$RANLIB" 1>&6 |
---|
1582 | else |
---|
1583 | echo "$ac_t""no" 1>&6 |
---|
1584 | fi |
---|
1585 | |
---|
1586 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
1587 | if test "${with_gnu_ld+set}" = set; then |
---|
1588 | withval="$with_gnu_ld" |
---|
1589 | test "$withval" = no || with_gnu_ld=yes |
---|
1590 | else |
---|
1591 | with_gnu_ld=no |
---|
1592 | fi |
---|
1593 | |
---|
1594 | ac_prog=ld |
---|
1595 | if test "$ac_cv_prog_gcc" = yes; then |
---|
1596 | # Check if gcc -print-prog-name=ld gives a path. |
---|
1597 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
---|
1598 | echo "configure:1599: checking for ld used by GCC" >&5 |
---|
1599 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
---|
1600 | case "$ac_prog" in |
---|
1601 | # Accept absolute paths. |
---|
1602 | [\\/]* | [A-Za-z]:[\\/]*) |
---|
1603 | re_direlt='/[^/][^/]*/\.\./' |
---|
1604 | # Canonicalize the path of ld |
---|
1605 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
---|
1606 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
1607 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
---|
1608 | done |
---|
1609 | test -z "$LD" && LD="$ac_prog" |
---|
1610 | ;; |
---|
1611 | "") |
---|
1612 | # If it fails, then pretend we aren't using GCC. |
---|
1613 | ac_prog=ld |
---|
1614 | ;; |
---|
1615 | *) |
---|
1616 | # If it is relative, then search for the first ld in PATH. |
---|
1617 | with_gnu_ld=unknown |
---|
1618 | ;; |
---|
1619 | esac |
---|
1620 | elif test "$with_gnu_ld" = yes; then |
---|
1621 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
---|
1622 | echo "configure:1623: checking for GNU ld" >&5 |
---|
1623 | else |
---|
1624 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
---|
1625 | echo "configure:1626: checking for non-GNU ld" >&5 |
---|
1626 | fi |
---|
1627 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
---|
1628 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1629 | else |
---|
1630 | if test -z "$LD"; then |
---|
1631 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
1632 | for ac_dir in $PATH; do |
---|
1633 | test -z "$ac_dir" && ac_dir=. |
---|
1634 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
1635 | ac_cv_path_LD="$ac_dir/$ac_prog" |
---|
1636 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
1637 | # but apparently some GNU ld's only accept -v. |
---|
1638 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
1639 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
---|
1640 | test "$with_gnu_ld" != no && break |
---|
1641 | else |
---|
1642 | test "$with_gnu_ld" != yes && break |
---|
1643 | fi |
---|
1644 | fi |
---|
1645 | done |
---|
1646 | IFS="$ac_save_ifs" |
---|
1647 | else |
---|
1648 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
1649 | fi |
---|
1650 | fi |
---|
1651 | |
---|
1652 | LD="$ac_cv_path_LD" |
---|
1653 | if test -n "$LD"; then |
---|
1654 | echo "$ac_t""$LD" 1>&6 |
---|
1655 | else |
---|
1656 | echo "$ac_t""no" 1>&6 |
---|
1657 | fi |
---|
1658 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
---|
1659 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
---|
1660 | echo "configure:1661: checking if the linker ($LD) is GNU ld" >&5 |
---|
1661 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
---|
1662 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1663 | else |
---|
1664 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
1665 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
---|
1666 | ac_cv_prog_gnu_ld=yes |
---|
1667 | else |
---|
1668 | ac_cv_prog_gnu_ld=no |
---|
1669 | fi |
---|
1670 | fi |
---|
1671 | |
---|
1672 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
---|
1673 | |
---|
1674 | |
---|
1675 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
---|
1676 | echo "configure:1677: checking for BSD-compatible nm" >&5 |
---|
1677 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
---|
1678 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1679 | else |
---|
1680 | if test -n "$NM"; then |
---|
1681 | # Let the user override the test. |
---|
1682 | ac_cv_path_NM="$NM" |
---|
1683 | else |
---|
1684 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
1685 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
1686 | test -z "$ac_dir" && ac_dir=. |
---|
1687 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
---|
1688 | # Check to see if the nm accepts a BSD-compat flag. |
---|
1689 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
1690 | # nm: unknown option "B" ignored |
---|
1691 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
1692 | ac_cv_path_NM="$ac_dir/nm -B" |
---|
1693 | break |
---|
1694 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
1695 | ac_cv_path_NM="$ac_dir/nm -p" |
---|
1696 | break |
---|
1697 | else |
---|
1698 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
---|
1699 | continue # so that we can try to find one that supports BSD flags |
---|
1700 | fi |
---|
1701 | fi |
---|
1702 | done |
---|
1703 | IFS="$ac_save_ifs" |
---|
1704 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
---|
1705 | fi |
---|
1706 | fi |
---|
1707 | |
---|
1708 | NM="$ac_cv_path_NM" |
---|
1709 | echo "$ac_t""$NM" 1>&6 |
---|
1710 | |
---|
1711 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
1712 | echo "configure:1713: checking whether ln -s works" >&5 |
---|
1713 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
1714 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1715 | else |
---|
1716 | rm -f conftestdata |
---|
1717 | if ln -s X conftestdata 2>/dev/null |
---|
1718 | then |
---|
1719 | rm -f conftestdata |
---|
1720 | ac_cv_prog_LN_S="ln -s" |
---|
1721 | else |
---|
1722 | ac_cv_prog_LN_S=ln |
---|
1723 | fi |
---|
1724 | fi |
---|
1725 | LN_S="$ac_cv_prog_LN_S" |
---|
1726 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
1727 | echo "$ac_t""yes" 1>&6 |
---|
1728 | else |
---|
1729 | echo "$ac_t""no" 1>&6 |
---|
1730 | fi |
---|
1731 | |
---|
1732 | |
---|
1733 | case "$target" in |
---|
1734 | NONE) lt_target="$host" ;; |
---|
1735 | *) lt_target="$target" ;; |
---|
1736 | esac |
---|
1737 | |
---|
1738 | # Check for any special flags to pass to ltconfig. |
---|
1739 | # |
---|
1740 | # the following will cause an existing older ltconfig to fail, so |
---|
1741 | # we ignore this at the expense of the cache file... Checking this |
---|
1742 | # will just take longer ... bummer! |
---|
1743 | #libtool_flags="--cache-file=$cache_file" |
---|
1744 | # |
---|
1745 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
---|
1746 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
---|
1747 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
---|
1748 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
---|
1749 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
---|
1750 | |
---|
1751 | |
---|
1752 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
1753 | if test "${enable_libtool_lock+set}" = set; then |
---|
1754 | enableval="$enable_libtool_lock" |
---|
1755 | : |
---|
1756 | fi |
---|
1757 | |
---|
1758 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
---|
1759 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
---|
1760 | |
---|
1761 | # Some flags need to be propagated to the compiler or linker for good |
---|
1762 | # libtool support. |
---|
1763 | case "$lt_target" in |
---|
1764 | *-*-irix6*) |
---|
1765 | # Find out which ABI we are using. |
---|
1766 | echo '#line 1767 "configure"' > conftest.$ac_ext |
---|
1767 | if { (eval echo configure:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1768 | case "`/usr/bin/file conftest.o`" in |
---|
1769 | *32-bit*) |
---|
1770 | LD="${LD-ld} -32" |
---|
1771 | ;; |
---|
1772 | *N32*) |
---|
1773 | LD="${LD-ld} -n32" |
---|
1774 | ;; |
---|
1775 | *64-bit*) |
---|
1776 | LD="${LD-ld} -64" |
---|
1777 | ;; |
---|
1778 | esac |
---|
1779 | fi |
---|
1780 | rm -rf conftest* |
---|
1781 | ;; |
---|
1782 | |
---|
1783 | *-*-sco3.2v5*) |
---|
1784 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
1785 | SAVE_CFLAGS="$CFLAGS" |
---|
1786 | CFLAGS="$CFLAGS -belf" |
---|
1787 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
---|
1788 | echo "configure:1789: checking whether the C compiler needs -belf" >&5 |
---|
1789 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
---|
1790 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1791 | else |
---|
1792 | cat > conftest.$ac_ext <<EOF |
---|
1793 | #line 1794 "configure" |
---|
1794 | #include "confdefs.h" |
---|
1795 | |
---|
1796 | int main() { |
---|
1797 | |
---|
1798 | ; return 0; } |
---|
1799 | EOF |
---|
1800 | if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1801 | rm -rf conftest* |
---|
1802 | lt_cv_cc_needs_belf=yes |
---|
1803 | else |
---|
1804 | echo "configure: failed program was:" >&5 |
---|
1805 | cat conftest.$ac_ext >&5 |
---|
1806 | rm -rf conftest* |
---|
1807 | lt_cv_cc_needs_belf=no |
---|
1808 | fi |
---|
1809 | rm -f conftest* |
---|
1810 | fi |
---|
1811 | |
---|
1812 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
---|
1813 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
1814 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
1815 | CFLAGS="$SAVE_CFLAGS" |
---|
1816 | fi |
---|
1817 | ;; |
---|
1818 | |
---|
1819 | |
---|
1820 | esac |
---|
1821 | |
---|
1822 | |
---|
1823 | # Save cache, so that ltconfig can load it |
---|
1824 | cat > confcache <<\EOF |
---|
1825 | # This file is a shell script that caches the results of configure |
---|
1826 | # tests run on this system so they can be shared between configure |
---|
1827 | # scripts and configure runs. It is not useful on other systems. |
---|
1828 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1829 | # |
---|
1830 | # By default, configure uses ./config.cache as the cache file, |
---|
1831 | # creating it if it does not exist already. You can give configure |
---|
1832 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1833 | # what configure does when it calls configure scripts in |
---|
1834 | # subdirectories, so they share the cache. |
---|
1835 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1836 | # config.status only pays attention to the cache file if you give it the |
---|
1837 | # --recheck option to rerun configure. |
---|
1838 | # |
---|
1839 | EOF |
---|
1840 | # The following way of writing the cache mishandles newlines in values, |
---|
1841 | # but we know of no workaround that is simple, portable, and efficient. |
---|
1842 | # So, don't put newlines in cache variables' values. |
---|
1843 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1844 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1845 | (set) 2>&1 | |
---|
1846 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
1847 | *ac_space=\ *) |
---|
1848 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
1849 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
1850 | sed -n \ |
---|
1851 | -e "s/'/'\\\\''/g" \ |
---|
1852 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
1853 | ;; |
---|
1854 | *) |
---|
1855 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
1856 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
1857 | ;; |
---|
1858 | esac >> confcache |
---|
1859 | if cmp -s $cache_file confcache; then |
---|
1860 | : |
---|
1861 | else |
---|
1862 | if test -w $cache_file; then |
---|
1863 | echo "updating cache $cache_file" |
---|
1864 | cat confcache > $cache_file |
---|
1865 | else |
---|
1866 | echo "not updating unwritable cache $cache_file" |
---|
1867 | fi |
---|
1868 | fi |
---|
1869 | rm -f confcache |
---|
1870 | |
---|
1871 | |
---|
1872 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
---|
1873 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
---|
1874 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
---|
1875 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
---|
1876 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
---|
1877 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
---|
1878 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
---|
1879 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
---|
1880 | |
---|
1881 | # Reload cache, that may have been modified by ltconfig |
---|
1882 | if test -r "$cache_file"; then |
---|
1883 | echo "loading cache $cache_file" |
---|
1884 | . $cache_file |
---|
1885 | else |
---|
1886 | echo "creating cache $cache_file" |
---|
1887 | > $cache_file |
---|
1888 | fi |
---|
1889 | |
---|
1890 | |
---|
1891 | # This can be used to rebuild libtool when needed |
---|
1892 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
---|
1893 | |
---|
1894 | # Always use our own libtool. |
---|
1895 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
1896 | |
---|
1897 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
1898 | # clobbered by the next message. |
---|
1899 | exec 5>>./config.log |
---|
1900 | |
---|
1901 | |
---|
1902 | |
---|
1903 | |
---|
1904 | GLIB_REQUIRED=1.2.4 |
---|
1905 | GCONF_REQUIRED=0.9 |
---|
1906 | OAF_REQUIRED=0.3.0 |
---|
1907 | |
---|
1908 | |
---|
1909 | |
---|
1910 | |
---|
1911 | |
---|
1912 | |
---|
1913 | |
---|
1914 | |
---|
1915 | |
---|
1916 | |
---|
1917 | |
---|
1918 | |
---|
1919 | ENABLE_PROFILER= |
---|
1920 | # Check whether --enable-profiler or --disable-profiler was given. |
---|
1921 | if test "${enable_profiler+set}" = set; then |
---|
1922 | enableval="$enable_profiler" |
---|
1923 | ENABLE_PROFILER=1 |
---|
1924 | cat >> confdefs.h <<\EOF |
---|
1925 | #define ENABLE_PROFILER 1 |
---|
1926 | EOF |
---|
1927 | |
---|
1928 | fi |
---|
1929 | |
---|
1930 | |
---|
1931 | if test "x$ENABLE_PROFILER" = "x1" |
---|
1932 | then |
---|
1933 | CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES" |
---|
1934 | LDFLAGS="/gnome/PROFILE/lib/libprofiler.so -lpthread" |
---|
1935 | fi |
---|
1936 | |
---|
1937 | |
---|
1938 | |
---|
1939 | |
---|
1940 | if test "x$ENABLE_PROFILER" = "x1"; then |
---|
1941 | ENABLE_PROFILER_TRUE= |
---|
1942 | ENABLE_PROFILER_FALSE='#' |
---|
1943 | else |
---|
1944 | ENABLE_PROFILER_TRUE='#' |
---|
1945 | ENABLE_PROFILER_FALSE= |
---|
1946 | fi |
---|
1947 | |
---|
1948 | GNOME_PLATFORM_VERSION=1002000 |
---|
1949 | cat >> confdefs.h <<EOF |
---|
1950 | #define GNOME_PLATFORM_VERSION $GNOME_PLATFORM_VERSION |
---|
1951 | EOF |
---|
1952 | |
---|
1953 | |
---|
1954 | |
---|
1955 | if test $GNOME_PLATFORM_VERSION -ge 1095000; then |
---|
1956 | PLATFORM_GNOME_2_TRUE= |
---|
1957 | PLATFORM_GNOME_2_FALSE='#' |
---|
1958 | else |
---|
1959 | PLATFORM_GNOME_2_TRUE='#' |
---|
1960 | PLATFORM_GNOME_2_FALSE= |
---|
1961 | fi |
---|
1962 | |
---|
1963 | if test $GNOME_PLATFORM_VERSION -lt 1095000 ; then |
---|
1964 | |
---|
1965 | |
---|
1966 | |
---|
1967 | |
---|
1968 | |
---|
1969 | |
---|
1970 | |
---|
1971 | |
---|
1972 | |
---|
1973 | |
---|
1974 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
---|
1975 | if test "${with_gnome_includes+set}" = set; then |
---|
1976 | withval="$with_gnome_includes" |
---|
1977 | |
---|
1978 | CFLAGS="$CFLAGS -I$withval" |
---|
1979 | |
---|
1980 | fi |
---|
1981 | |
---|
1982 | |
---|
1983 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
---|
1984 | if test "${with_gnome_libs+set}" = set; then |
---|
1985 | withval="$with_gnome_libs" |
---|
1986 | |
---|
1987 | LDFLAGS="$LDFLAGS -L$withval" |
---|
1988 | gnome_prefix=$withval |
---|
1989 | |
---|
1990 | fi |
---|
1991 | |
---|
1992 | |
---|
1993 | # Check whether --with-gnome or --without-gnome was given. |
---|
1994 | if test "${with_gnome+set}" = set; then |
---|
1995 | withval="$with_gnome" |
---|
1996 | if test x$withval = xyes; then |
---|
1997 | want_gnome=yes |
---|
1998 | : |
---|
1999 | else |
---|
2000 | if test "x$withval" = xno; then |
---|
2001 | want_gnome=no |
---|
2002 | else |
---|
2003 | want_gnome=yes |
---|
2004 | LDFLAGS="$LDFLAGS -L$withval/lib" |
---|
2005 | CFLAGS="$CFLAGS -I$withval/include" |
---|
2006 | gnome_prefix=$withval/lib |
---|
2007 | fi |
---|
2008 | fi |
---|
2009 | else |
---|
2010 | want_gnome=yes |
---|
2011 | fi |
---|
2012 | |
---|
2013 | |
---|
2014 | if test "x$want_gnome" = xyes; then |
---|
2015 | |
---|
2016 | # Extract the first word of "gnome-config", so it can be a program name with args. |
---|
2017 | set dummy gnome-config; ac_word=$2 |
---|
2018 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2019 | echo "configure:2020: checking for $ac_word" >&5 |
---|
2020 | if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then |
---|
2021 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2022 | else |
---|
2023 | case "$GNOME_CONFIG" in |
---|
2024 | /*) |
---|
2025 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
---|
2026 | ;; |
---|
2027 | ?:/*) |
---|
2028 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. |
---|
2029 | ;; |
---|
2030 | *) |
---|
2031 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2032 | ac_dummy="$PATH" |
---|
2033 | for ac_dir in $ac_dummy; do |
---|
2034 | test -z "$ac_dir" && ac_dir=. |
---|
2035 | if test -f $ac_dir/$ac_word; then |
---|
2036 | ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" |
---|
2037 | break |
---|
2038 | fi |
---|
2039 | done |
---|
2040 | IFS="$ac_save_ifs" |
---|
2041 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
---|
2042 | ;; |
---|
2043 | esac |
---|
2044 | fi |
---|
2045 | GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" |
---|
2046 | if test -n "$GNOME_CONFIG"; then |
---|
2047 | echo "$ac_t""$GNOME_CONFIG" 1>&6 |
---|
2048 | else |
---|
2049 | echo "$ac_t""no" 1>&6 |
---|
2050 | fi |
---|
2051 | |
---|
2052 | if test "$GNOME_CONFIG" = "no"; then |
---|
2053 | no_gnome_config="yes" |
---|
2054 | else |
---|
2055 | echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6 |
---|
2056 | echo "configure:2057: checking if $GNOME_CONFIG works" >&5 |
---|
2057 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
---|
2058 | echo "$ac_t""yes" 1>&6 |
---|
2059 | |
---|
2060 | |
---|
2061 | # Extract the first word of "orbit-config", so it can be a program name with args. |
---|
2062 | set dummy orbit-config; ac_word=$2 |
---|
2063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2064 | echo "configure:2065: checking for $ac_word" >&5 |
---|
2065 | if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then |
---|
2066 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2067 | else |
---|
2068 | case "$ORBIT_CONFIG" in |
---|
2069 | /*) |
---|
2070 | ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path. |
---|
2071 | ;; |
---|
2072 | ?:/*) |
---|
2073 | ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path. |
---|
2074 | ;; |
---|
2075 | *) |
---|
2076 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2077 | ac_dummy="$PATH" |
---|
2078 | for ac_dir in $ac_dummy; do |
---|
2079 | test -z "$ac_dir" && ac_dir=. |
---|
2080 | if test -f $ac_dir/$ac_word; then |
---|
2081 | ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word" |
---|
2082 | break |
---|
2083 | fi |
---|
2084 | done |
---|
2085 | IFS="$ac_save_ifs" |
---|
2086 | test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no" |
---|
2087 | ;; |
---|
2088 | esac |
---|
2089 | fi |
---|
2090 | ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG" |
---|
2091 | if test -n "$ORBIT_CONFIG"; then |
---|
2092 | echo "$ac_t""$ORBIT_CONFIG" 1>&6 |
---|
2093 | else |
---|
2094 | echo "$ac_t""no" 1>&6 |
---|
2095 | fi |
---|
2096 | |
---|
2097 | # Extract the first word of "orbit-idl", so it can be a program name with args. |
---|
2098 | set dummy orbit-idl; ac_word=$2 |
---|
2099 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2100 | echo "configure:2101: checking for $ac_word" >&5 |
---|
2101 | if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then |
---|
2102 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2103 | else |
---|
2104 | case "$ORBIT_IDL" in |
---|
2105 | /*) |
---|
2106 | ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path. |
---|
2107 | ;; |
---|
2108 | ?:/*) |
---|
2109 | ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path. |
---|
2110 | ;; |
---|
2111 | *) |
---|
2112 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2113 | ac_dummy="$PATH" |
---|
2114 | for ac_dir in $ac_dummy; do |
---|
2115 | test -z "$ac_dir" && ac_dir=. |
---|
2116 | if test -f $ac_dir/$ac_word; then |
---|
2117 | ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word" |
---|
2118 | break |
---|
2119 | fi |
---|
2120 | done |
---|
2121 | IFS="$ac_save_ifs" |
---|
2122 | test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no" |
---|
2123 | ;; |
---|
2124 | esac |
---|
2125 | fi |
---|
2126 | ORBIT_IDL="$ac_cv_path_ORBIT_IDL" |
---|
2127 | if test -n "$ORBIT_IDL"; then |
---|
2128 | echo "$ac_t""$ORBIT_IDL" 1>&6 |
---|
2129 | else |
---|
2130 | echo "$ac_t""no" 1>&6 |
---|
2131 | fi |
---|
2132 | |
---|
2133 | echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6 |
---|
2134 | echo "configure:2135: checking for working ORBit environment" >&5 |
---|
2135 | if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then |
---|
2136 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2137 | else |
---|
2138 | |
---|
2139 | if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then |
---|
2140 | gnome_cv_orbit_found=no |
---|
2141 | else |
---|
2142 | gnome_cv_orbit_found=yes |
---|
2143 | fi |
---|
2144 | |
---|
2145 | fi |
---|
2146 | |
---|
2147 | echo "$ac_t""$gnome_cv_orbit_found" 1>&6 |
---|
2148 | |
---|
2149 | |
---|
2150 | if test x$gnome_cv_orbit_found = xyes; then |
---|
2151 | HAVE_ORBIT_TRUE= |
---|
2152 | HAVE_ORBIT_FALSE='#' |
---|
2153 | else |
---|
2154 | HAVE_ORBIT_TRUE='#' |
---|
2155 | HAVE_ORBIT_FALSE= |
---|
2156 | fi |
---|
2157 | if test x$gnome_cv_orbit_found = xyes; then |
---|
2158 | |
---|
2159 | ORBIT_CFLAGS=`orbit-config --cflags client server` |
---|
2160 | ORBIT_LIBS=`orbit-config --use-service=name --libs client server` |
---|
2161 | |
---|
2162 | |
---|
2163 | else |
---|
2164 | if test xfail = xfailure; then |
---|
2165 | { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; } |
---|
2166 | fi |
---|
2167 | fi |
---|
2168 | |
---|
2169 | echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6 |
---|
2170 | echo "configure:2171: checking for gnorba libraries" >&5 |
---|
2171 | if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then |
---|
2172 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2173 | else |
---|
2174 | |
---|
2175 | gnome_cv_gnorba_found=no |
---|
2176 | if test x$gnome_cv_orbit_found = xyes; then |
---|
2177 | GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`" |
---|
2178 | GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`" |
---|
2179 | if test -n "$GNORBA_LIBS"; then |
---|
2180 | gnome_cv_gnorba_found=yes |
---|
2181 | fi |
---|
2182 | fi |
---|
2183 | |
---|
2184 | fi |
---|
2185 | |
---|
2186 | echo "$ac_t""$gnome_cv_gnorba_found" 1>&6 |
---|
2187 | |
---|
2188 | |
---|
2189 | if test x$gnome_cv_gnorba_found = xyes; then |
---|
2190 | HAVE_GNORBA_TRUE= |
---|
2191 | HAVE_GNORBA_FALSE='#' |
---|
2192 | else |
---|
2193 | HAVE_GNORBA_TRUE='#' |
---|
2194 | HAVE_GNORBA_FALSE= |
---|
2195 | fi |
---|
2196 | if test x$gnome_cv_orbit_found = xyes; then |
---|
2197 | |
---|
2198 | GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`" |
---|
2199 | GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`" |
---|
2200 | |
---|
2201 | |
---|
2202 | else |
---|
2203 | if test xfail = xfailure; then |
---|
2204 | { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; } |
---|
2205 | fi |
---|
2206 | fi |
---|
2207 | |
---|
2208 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`" |
---|
2209 | GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`" |
---|
2210 | GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`" |
---|
2211 | GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`" |
---|
2212 | ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`" |
---|
2213 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
---|
2214 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
---|
2215 | |
---|
2216 | else |
---|
2217 | echo "$ac_t""no" 1>&6 |
---|
2218 | no_gnome_config="yes" |
---|
2219 | fi |
---|
2220 | fi |
---|
2221 | |
---|
2222 | if test x$exec_prefix = xNONE; then |
---|
2223 | if test x$prefix = xNONE; then |
---|
2224 | gnome_prefix=$ac_default_prefix/lib |
---|
2225 | else |
---|
2226 | gnome_prefix=$prefix/lib |
---|
2227 | fi |
---|
2228 | else |
---|
2229 | gnome_prefix=`eval echo \`echo $libdir\`` |
---|
2230 | fi |
---|
2231 | |
---|
2232 | if test "$no_gnome_config" = "yes"; then |
---|
2233 | echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6 |
---|
2234 | echo "configure:2235: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
---|
2235 | if test -f $gnome_prefix/gnomeConf.sh; then |
---|
2236 | echo "$ac_t""found" 1>&6 |
---|
2237 | echo "loading gnome configuration from" \ |
---|
2238 | "$gnome_prefix/gnomeConf.sh" |
---|
2239 | . $gnome_prefix/gnomeConf.sh |
---|
2240 | |
---|
2241 | else |
---|
2242 | echo "$ac_t""not found" 1>&6 |
---|
2243 | if test xfail = xfail; then |
---|
2244 | { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; } |
---|
2245 | fi |
---|
2246 | fi |
---|
2247 | fi |
---|
2248 | fi |
---|
2249 | |
---|
2250 | if test -n ""; then |
---|
2251 | n="" |
---|
2252 | for i in $n; do |
---|
2253 | echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6 |
---|
2254 | echo "configure:2255: checking extra library \"$i\"" >&5 |
---|
2255 | case $i in |
---|
2256 | applets) |
---|
2257 | |
---|
2258 | GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets` |
---|
2259 | echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;; |
---|
2260 | docklets) |
---|
2261 | |
---|
2262 | GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets` |
---|
2263 | echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;; |
---|
2264 | capplet) |
---|
2265 | |
---|
2266 | GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet` |
---|
2267 | echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;; |
---|
2268 | *) |
---|
2269 | echo "$ac_t""unknown library" 1>&6 |
---|
2270 | esac |
---|
2271 | done |
---|
2272 | fi |
---|
2273 | |
---|
2274 | |
---|
2275 | VFS_GNOME_CFLAGS="\`gnome-config --cflags gnome\`" |
---|
2276 | VFS_GNOMEUI_CFLAGS="\`gnome-config --cflags gnome gnomeui\`" |
---|
2277 | VFS_CAPPLET_CFLAGS="\`gnome-config --cflags gnome gnomeui capplet\`" |
---|
2278 | VFS_GNOME_LIBS="\`gnome-config --libs gnome\`" |
---|
2279 | VFS_GNOMEUI_LIBS="\`gnome-config --libs gnome gnomeui\`" |
---|
2280 | VFS_CAPPLET_LIBS="\`gnome-config --libs gnome gnomeui capplet\`" |
---|
2281 | VFS_GLIB_CONFIG="glib-config" |
---|
2282 | else |
---|
2283 | VFS_GNOME_CFLAGS="\`glib-config-2.0 --cflags\`" |
---|
2284 | VFS_GNOMEUI_CFLAGS="\`glib-config-2.0 --cflags\`" |
---|
2285 | VFS_CAPPLET_CFLAGS= |
---|
2286 | VFS_GNOME_LIBS="\`glib-config-2.0 --libs\`" |
---|
2287 | VFS_GNOMEUI_LIBS="\`glib-config-2.0 --libs\`" |
---|
2288 | VFS_CAPPLET_LIBS= |
---|
2289 | VFS_GLIB_CONFIG="glib-config-2.0" |
---|
2290 | fi |
---|
2291 | |
---|
2292 | |
---|
2293 | |
---|
2294 | |
---|
2295 | |
---|
2296 | |
---|
2297 | |
---|
2298 | |
---|
2299 | # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args. |
---|
2300 | set dummy gtkdoc-mkdb; ac_word=$2 |
---|
2301 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2302 | echo "configure:2303: checking for $ac_word" >&5 |
---|
2303 | if eval "test \"`echo '$''{'ac_cv_prog_GTKDOC'+set}'`\" = set"; then |
---|
2304 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2305 | else |
---|
2306 | if test -n "$GTKDOC"; then |
---|
2307 | ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test. |
---|
2308 | else |
---|
2309 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2310 | ac_dummy="$PATH" |
---|
2311 | for ac_dir in $ac_dummy; do |
---|
2312 | test -z "$ac_dir" && ac_dir=. |
---|
2313 | if test -f $ac_dir/$ac_word; then |
---|
2314 | ac_cv_prog_GTKDOC="true" |
---|
2315 | break |
---|
2316 | fi |
---|
2317 | done |
---|
2318 | IFS="$ac_save_ifs" |
---|
2319 | test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false" |
---|
2320 | fi |
---|
2321 | fi |
---|
2322 | GTKDOC="$ac_cv_prog_GTKDOC" |
---|
2323 | if test -n "$GTKDOC"; then |
---|
2324 | echo "$ac_t""$GTKDOC" 1>&6 |
---|
2325 | else |
---|
2326 | echo "$ac_t""no" 1>&6 |
---|
2327 | fi |
---|
2328 | |
---|
2329 | |
---|
2330 | |
---|
2331 | if $GTKDOC; then |
---|
2332 | HAVE_GTK_DOC_TRUE= |
---|
2333 | HAVE_GTK_DOC_FALSE='#' |
---|
2334 | else |
---|
2335 | HAVE_GTK_DOC_TRUE='#' |
---|
2336 | HAVE_GTK_DOC_FALSE= |
---|
2337 | fi |
---|
2338 | |
---|
2339 | |
---|
2340 | # Check whether --enable-gtk-doc or --disable-gtk-doc was given. |
---|
2341 | if test "${enable_gtk_doc+set}" = set; then |
---|
2342 | enableval="$enable_gtk_doc" |
---|
2343 | enable_gtk_doc="$enableval" |
---|
2344 | else |
---|
2345 | enable_gtk_doc=auto |
---|
2346 | fi |
---|
2347 | |
---|
2348 | |
---|
2349 | if test x$enable_gtk_doc = xauto ; then |
---|
2350 | if test x$GTKDOC = xtrue ; then |
---|
2351 | enable_gtk_doc=yes |
---|
2352 | else |
---|
2353 | enable_gtk_doc=no |
---|
2354 | fi |
---|
2355 | fi |
---|
2356 | |
---|
2357 | |
---|
2358 | |
---|
2359 | if test x$enable_gtk_doc = xyes; then |
---|
2360 | ENABLE_GTK_DOC_TRUE= |
---|
2361 | ENABLE_GTK_DOC_FALSE='#' |
---|
2362 | else |
---|
2363 | ENABLE_GTK_DOC_TRUE='#' |
---|
2364 | ENABLE_GTK_DOC_FALSE= |
---|
2365 | fi |
---|
2366 | |
---|
2367 | # Check whether --enable-gconf or --disable-gconf was given. |
---|
2368 | if test "${enable_gconf+set}" = set; then |
---|
2369 | enableval="$enable_gconf" |
---|
2370 | gconf_enabled="yes" |
---|
2371 | fi |
---|
2372 | |
---|
2373 | # Check whether --enable-libefs or --disable-libefs was given. |
---|
2374 | if test "${enable_libefs+set}" = set; then |
---|
2375 | enableval="$enable_libefs" |
---|
2376 | libefs_disabled="yes" |
---|
2377 | fi |
---|
2378 | |
---|
2379 | # Check whether --with-default-backend or --without-default-backend was given. |
---|
2380 | if test "${with_default_backend+set}" = set; then |
---|
2381 | withval="$with_default_backend" |
---|
2382 | default_backend="$withval" |
---|
2383 | fi |
---|
2384 | |
---|
2385 | |
---|
2386 | # Check whether --with-glib-prefix or --without-glib-prefix was given. |
---|
2387 | if test "${with_glib_prefix+set}" = set; then |
---|
2388 | withval="$with_glib_prefix" |
---|
2389 | glib_config_prefix="$withval" |
---|
2390 | else |
---|
2391 | glib_config_prefix="" |
---|
2392 | fi |
---|
2393 | |
---|
2394 | # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given. |
---|
2395 | if test "${with_glib_exec_prefix+set}" = set; then |
---|
2396 | withval="$with_glib_exec_prefix" |
---|
2397 | glib_config_exec_prefix="$withval" |
---|
2398 | else |
---|
2399 | glib_config_exec_prefix="" |
---|
2400 | fi |
---|
2401 | |
---|
2402 | # Check whether --enable-glibtest or --disable-glibtest was given. |
---|
2403 | if test "${enable_glibtest+set}" = set; then |
---|
2404 | enableval="$enable_glibtest" |
---|
2405 | : |
---|
2406 | else |
---|
2407 | enable_glibtest=yes |
---|
2408 | fi |
---|
2409 | |
---|
2410 | |
---|
2411 | if test x$glib_config_exec_prefix != x ; then |
---|
2412 | glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" |
---|
2413 | if test x${GLIB_CONFIG+set} != xset ; then |
---|
2414 | GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config |
---|
2415 | fi |
---|
2416 | fi |
---|
2417 | if test x$glib_config_prefix != x ; then |
---|
2418 | glib_config_args="$glib_config_args --prefix=$glib_config_prefix" |
---|
2419 | if test x${GLIB_CONFIG+set} != xset ; then |
---|
2420 | GLIB_CONFIG=$glib_config_prefix/bin/glib-config |
---|
2421 | fi |
---|
2422 | fi |
---|
2423 | |
---|
2424 | for module in . gmodule gthread |
---|
2425 | do |
---|
2426 | case "$module" in |
---|
2427 | gmodule) |
---|
2428 | glib_config_args="$glib_config_args gmodule" |
---|
2429 | ;; |
---|
2430 | gthread) |
---|
2431 | glib_config_args="$glib_config_args gthread" |
---|
2432 | ;; |
---|
2433 | esac |
---|
2434 | done |
---|
2435 | |
---|
2436 | # Extract the first word of "glib-config", so it can be a program name with args. |
---|
2437 | set dummy glib-config; ac_word=$2 |
---|
2438 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2439 | echo "configure:2440: checking for $ac_word" >&5 |
---|
2440 | if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then |
---|
2441 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2442 | else |
---|
2443 | case "$GLIB_CONFIG" in |
---|
2444 | /*) |
---|
2445 | ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path. |
---|
2446 | ;; |
---|
2447 | ?:/*) |
---|
2448 | ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path. |
---|
2449 | ;; |
---|
2450 | *) |
---|
2451 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2452 | ac_dummy="$PATH" |
---|
2453 | for ac_dir in $ac_dummy; do |
---|
2454 | test -z "$ac_dir" && ac_dir=. |
---|
2455 | if test -f $ac_dir/$ac_word; then |
---|
2456 | ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word" |
---|
2457 | break |
---|
2458 | fi |
---|
2459 | done |
---|
2460 | IFS="$ac_save_ifs" |
---|
2461 | test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no" |
---|
2462 | ;; |
---|
2463 | esac |
---|
2464 | fi |
---|
2465 | GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG" |
---|
2466 | if test -n "$GLIB_CONFIG"; then |
---|
2467 | echo "$ac_t""$GLIB_CONFIG" 1>&6 |
---|
2468 | else |
---|
2469 | echo "$ac_t""no" 1>&6 |
---|
2470 | fi |
---|
2471 | |
---|
2472 | min_glib_version=$GLIB_REQUIRED |
---|
2473 | echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6 |
---|
2474 | echo "configure:2475: checking for GLIB - version >= $min_glib_version" >&5 |
---|
2475 | no_glib="" |
---|
2476 | if test "$GLIB_CONFIG" = "no" ; then |
---|
2477 | no_glib=yes |
---|
2478 | else |
---|
2479 | GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` |
---|
2480 | GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` |
---|
2481 | glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ |
---|
2482 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
2483 | glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ |
---|
2484 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
2485 | glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ |
---|
2486 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
2487 | if test "x$enable_glibtest" = "xyes" ; then |
---|
2488 | ac_save_CFLAGS="$CFLAGS" |
---|
2489 | ac_save_LIBS="$LIBS" |
---|
2490 | CFLAGS="$CFLAGS $GLIB_CFLAGS" |
---|
2491 | LIBS="$GLIB_LIBS $LIBS" |
---|
2492 | rm -f conf.glibtest |
---|
2493 | if test "$cross_compiling" = yes; then |
---|
2494 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
2495 | else |
---|
2496 | cat > conftest.$ac_ext <<EOF |
---|
2497 | #line 2498 "configure" |
---|
2498 | #include "confdefs.h" |
---|
2499 | |
---|
2500 | #include <glib.h> |
---|
2501 | #include <stdio.h> |
---|
2502 | #include <stdlib.h> |
---|
2503 | |
---|
2504 | int |
---|
2505 | main () |
---|
2506 | { |
---|
2507 | int major, minor, micro; |
---|
2508 | char *tmp_version; |
---|
2509 | |
---|
2510 | system ("touch conf.glibtest"); |
---|
2511 | |
---|
2512 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
2513 | tmp_version = g_strdup("$min_glib_version"); |
---|
2514 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
2515 | printf("%s, bad version string\n", "$min_glib_version"); |
---|
2516 | exit(1); |
---|
2517 | } |
---|
2518 | |
---|
2519 | if ((glib_major_version != $glib_config_major_version) || |
---|
2520 | (glib_minor_version != $glib_config_minor_version) || |
---|
2521 | (glib_micro_version != $glib_config_micro_version)) |
---|
2522 | { |
---|
2523 | printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", |
---|
2524 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, |
---|
2525 | glib_major_version, glib_minor_version, glib_micro_version); |
---|
2526 | printf ("*** was found! If glib-config was correct, then it is best\n"); |
---|
2527 | printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); |
---|
2528 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
---|
2529 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
---|
2530 | printf("*** required on your system.\n"); |
---|
2531 | printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); |
---|
2532 | printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); |
---|
2533 | printf("*** before re-running configure\n"); |
---|
2534 | } |
---|
2535 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || |
---|
2536 | (glib_minor_version != GLIB_MINOR_VERSION) || |
---|
2537 | (glib_micro_version != GLIB_MICRO_VERSION)) |
---|
2538 | { |
---|
2539 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", |
---|
2540 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); |
---|
2541 | printf("*** library (version %d.%d.%d)\n", |
---|
2542 | glib_major_version, glib_minor_version, glib_micro_version); |
---|
2543 | } |
---|
2544 | else |
---|
2545 | { |
---|
2546 | if ((glib_major_version > major) || |
---|
2547 | ((glib_major_version == major) && (glib_minor_version > minor)) || |
---|
2548 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) |
---|
2549 | { |
---|
2550 | return 0; |
---|
2551 | } |
---|
2552 | else |
---|
2553 | { |
---|
2554 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", |
---|
2555 | glib_major_version, glib_minor_version, glib_micro_version); |
---|
2556 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", |
---|
2557 | major, minor, micro); |
---|
2558 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
---|
2559 | printf("***\n"); |
---|
2560 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
---|
2561 | printf("*** probably means that the wrong copy of the glib-config shell script is\n"); |
---|
2562 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
---|
2563 | printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); |
---|
2564 | printf("*** correct copy of glib-config. (In this case, you will have to\n"); |
---|
2565 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
---|
2566 | printf("*** so that the correct libraries are found at run-time))\n"); |
---|
2567 | } |
---|
2568 | } |
---|
2569 | return 1; |
---|
2570 | } |
---|
2571 | |
---|
2572 | EOF |
---|
2573 | if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2574 | then |
---|
2575 | : |
---|
2576 | else |
---|
2577 | echo "configure: failed program was:" >&5 |
---|
2578 | cat conftest.$ac_ext >&5 |
---|
2579 | rm -fr conftest* |
---|
2580 | no_glib=yes |
---|
2581 | fi |
---|
2582 | rm -fr conftest* |
---|
2583 | fi |
---|
2584 | |
---|
2585 | CFLAGS="$ac_save_CFLAGS" |
---|
2586 | LIBS="$ac_save_LIBS" |
---|
2587 | fi |
---|
2588 | fi |
---|
2589 | if test "x$no_glib" = x ; then |
---|
2590 | echo "$ac_t""yes" 1>&6 |
---|
2591 | : |
---|
2592 | else |
---|
2593 | echo "$ac_t""no" 1>&6 |
---|
2594 | if test "$GLIB_CONFIG" = "no" ; then |
---|
2595 | echo "*** The glib-config script installed by GLIB could not be found" |
---|
2596 | echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" |
---|
2597 | echo "*** your path, or set the GLIB_CONFIG environment variable to the" |
---|
2598 | echo "*** full path to glib-config." |
---|
2599 | else |
---|
2600 | if test -f conf.glibtest ; then |
---|
2601 | : |
---|
2602 | else |
---|
2603 | echo "*** Could not run GLIB test program, checking why..." |
---|
2604 | CFLAGS="$CFLAGS $GLIB_CFLAGS" |
---|
2605 | LIBS="$LIBS $GLIB_LIBS" |
---|
2606 | cat > conftest.$ac_ext <<EOF |
---|
2607 | #line 2608 "configure" |
---|
2608 | #include "confdefs.h" |
---|
2609 | |
---|
2610 | #include <glib.h> |
---|
2611 | #include <stdio.h> |
---|
2612 | |
---|
2613 | int main() { |
---|
2614 | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); |
---|
2615 | ; return 0; } |
---|
2616 | EOF |
---|
2617 | if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2618 | rm -rf conftest* |
---|
2619 | echo "*** The test program compiled, but did not run. This usually means" |
---|
2620 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" |
---|
2621 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" |
---|
2622 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
2623 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
2624 | echo "*** is required on your system" |
---|
2625 | echo "***" |
---|
2626 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
2627 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
2628 | echo "***" |
---|
2629 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
---|
2630 | echo "*** came with the system with the command" |
---|
2631 | echo "***" |
---|
2632 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
---|
2633 | else |
---|
2634 | echo "configure: failed program was:" >&5 |
---|
2635 | cat conftest.$ac_ext >&5 |
---|
2636 | rm -rf conftest* |
---|
2637 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
2638 | echo "*** exact error that occured. This usually means GLIB was incorrectly installed" |
---|
2639 | echo "*** or that you have moved GLIB since it was installed. In the latter case, you" |
---|
2640 | echo "*** may want to edit the glib-config script: $GLIB_CONFIG" |
---|
2641 | fi |
---|
2642 | rm -f conftest* |
---|
2643 | CFLAGS="$ac_save_CFLAGS" |
---|
2644 | LIBS="$ac_save_LIBS" |
---|
2645 | fi |
---|
2646 | fi |
---|
2647 | GLIB_CFLAGS="" |
---|
2648 | GLIB_LIBS="" |
---|
2649 | { echo "configure: error: |
---|
2650 | *** GLIB 1.2.0 or better is required. The latest version of GLIB |
---|
2651 | *** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; } |
---|
2652 | fi |
---|
2653 | |
---|
2654 | |
---|
2655 | rm -f conf.glibtest |
---|
2656 | |
---|
2657 | |
---|
2658 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
---|
2659 | if test "${with_gtk_prefix+set}" = set; then |
---|
2660 | withval="$with_gtk_prefix" |
---|
2661 | gtk_config_prefix="$withval" |
---|
2662 | else |
---|
2663 | gtk_config_prefix="" |
---|
2664 | fi |
---|
2665 | |
---|
2666 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
---|
2667 | if test "${with_gtk_exec_prefix+set}" = set; then |
---|
2668 | withval="$with_gtk_exec_prefix" |
---|
2669 | gtk_config_exec_prefix="$withval" |
---|
2670 | else |
---|
2671 | gtk_config_exec_prefix="" |
---|
2672 | fi |
---|
2673 | |
---|
2674 | # Check whether --enable-gtktest or --disable-gtktest was given. |
---|
2675 | if test "${enable_gtktest+set}" = set; then |
---|
2676 | enableval="$enable_gtktest" |
---|
2677 | : |
---|
2678 | else |
---|
2679 | enable_gtktest=yes |
---|
2680 | fi |
---|
2681 | |
---|
2682 | |
---|
2683 | for module in . gmodule gthread |
---|
2684 | do |
---|
2685 | case "$module" in |
---|
2686 | gthread) |
---|
2687 | gtk_config_args="$gtk_config_args gthread" |
---|
2688 | ;; |
---|
2689 | esac |
---|
2690 | done |
---|
2691 | |
---|
2692 | if test x$gtk_config_exec_prefix != x ; then |
---|
2693 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
---|
2694 | if test x${GTK_CONFIG+set} != xset ; then |
---|
2695 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
---|
2696 | fi |
---|
2697 | fi |
---|
2698 | if test x$gtk_config_prefix != x ; then |
---|
2699 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
---|
2700 | if test x${GTK_CONFIG+set} != xset ; then |
---|
2701 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
---|
2702 | fi |
---|
2703 | fi |
---|
2704 | |
---|
2705 | # Extract the first word of "gtk-config", so it can be a program name with args. |
---|
2706 | set dummy gtk-config; ac_word=$2 |
---|
2707 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2708 | echo "configure:2709: checking for $ac_word" >&5 |
---|
2709 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
---|
2710 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2711 | else |
---|
2712 | case "$GTK_CONFIG" in |
---|
2713 | /*) |
---|
2714 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
---|
2715 | ;; |
---|
2716 | ?:/*) |
---|
2717 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
---|
2718 | ;; |
---|
2719 | *) |
---|
2720 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2721 | ac_dummy="$PATH" |
---|
2722 | for ac_dir in $ac_dummy; do |
---|
2723 | test -z "$ac_dir" && ac_dir=. |
---|
2724 | if test -f $ac_dir/$ac_word; then |
---|
2725 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
---|
2726 | break |
---|
2727 | fi |
---|
2728 | done |
---|
2729 | IFS="$ac_save_ifs" |
---|
2730 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
---|
2731 | ;; |
---|
2732 | esac |
---|
2733 | fi |
---|
2734 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
---|
2735 | if test -n "$GTK_CONFIG"; then |
---|
2736 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
---|
2737 | else |
---|
2738 | echo "$ac_t""no" 1>&6 |
---|
2739 | fi |
---|
2740 | |
---|
2741 | min_gtk_version=1.2.0 |
---|
2742 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
---|
2743 | echo "configure:2744: checking for GTK - version >= $min_gtk_version" >&5 |
---|
2744 | no_gtk="" |
---|
2745 | if test "$GTK_CONFIG" = "no" ; then |
---|
2746 | no_gtk=yes |
---|
2747 | else |
---|
2748 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
---|
2749 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
---|
2750 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2751 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
2752 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2753 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
2754 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2755 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
2756 | if test "x$enable_gtktest" = "xyes" ; then |
---|
2757 | ac_save_CFLAGS="$CFLAGS" |
---|
2758 | ac_save_LIBS="$LIBS" |
---|
2759 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
2760 | LIBS="$GTK_LIBS $LIBS" |
---|
2761 | rm -f conf.gtktest |
---|
2762 | if test "$cross_compiling" = yes; then |
---|
2763 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
2764 | else |
---|
2765 | cat > conftest.$ac_ext <<EOF |
---|
2766 | #line 2767 "configure" |
---|
2767 | #include "confdefs.h" |
---|
2768 | |
---|
2769 | #include <gtk/gtk.h> |
---|
2770 | #include <stdio.h> |
---|
2771 | #include <stdlib.h> |
---|
2772 | |
---|
2773 | int |
---|
2774 | main () |
---|
2775 | { |
---|
2776 | int major, minor, micro; |
---|
2777 | char *tmp_version; |
---|
2778 | |
---|
2779 | system ("touch conf.gtktest"); |
---|
2780 | |
---|
2781 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
2782 | tmp_version = g_strdup("$min_gtk_version"); |
---|
2783 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
2784 | printf("%s, bad version string\n", "$min_gtk_version"); |
---|
2785 | exit(1); |
---|
2786 | } |
---|
2787 | |
---|
2788 | if ((gtk_major_version != $gtk_config_major_version) || |
---|
2789 | (gtk_minor_version != $gtk_config_minor_version) || |
---|
2790 | (gtk_micro_version != $gtk_config_micro_version)) |
---|
2791 | { |
---|
2792 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
---|
2793 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
---|
2794 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
2795 | printf ("*** was found! If gtk-config was correct, then it is best\n"); |
---|
2796 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
---|
2797 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
---|
2798 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
---|
2799 | printf("*** required on your system.\n"); |
---|
2800 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); |
---|
2801 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); |
---|
2802 | printf("*** before re-running configure\n"); |
---|
2803 | } |
---|
2804 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
---|
2805 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
---|
2806 | (gtk_minor_version != GTK_MINOR_VERSION) || |
---|
2807 | (gtk_micro_version != GTK_MICRO_VERSION)) |
---|
2808 | { |
---|
2809 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
---|
2810 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
---|
2811 | printf("*** library (version %d.%d.%d)\n", |
---|
2812 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
2813 | } |
---|
2814 | #endif /* defined (GTK_MAJOR_VERSION) ... */ |
---|
2815 | else |
---|
2816 | { |
---|
2817 | if ((gtk_major_version > major) || |
---|
2818 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
---|
2819 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
---|
2820 | { |
---|
2821 | return 0; |
---|
2822 | } |
---|
2823 | else |
---|
2824 | { |
---|
2825 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
---|
2826 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
2827 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
---|
2828 | major, minor, micro); |
---|
2829 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
---|
2830 | printf("***\n"); |
---|
2831 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
---|
2832 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); |
---|
2833 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
---|
2834 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); |
---|
2835 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); |
---|
2836 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
---|
2837 | printf("*** so that the correct libraries are found at run-time))\n"); |
---|
2838 | } |
---|
2839 | } |
---|
2840 | return 1; |
---|
2841 | } |
---|
2842 | |
---|
2843 | EOF |
---|
2844 | if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2845 | then |
---|
2846 | : |
---|
2847 | else |
---|
2848 | echo "configure: failed program was:" >&5 |
---|
2849 | cat conftest.$ac_ext >&5 |
---|
2850 | rm -fr conftest* |
---|
2851 | no_gtk=yes |
---|
2852 | fi |
---|
2853 | rm -fr conftest* |
---|
2854 | fi |
---|
2855 | |
---|
2856 | CFLAGS="$ac_save_CFLAGS" |
---|
2857 | LIBS="$ac_save_LIBS" |
---|
2858 | fi |
---|
2859 | fi |
---|
2860 | if test "x$no_gtk" = x ; then |
---|
2861 | echo "$ac_t""yes" 1>&6 |
---|
2862 | : |
---|
2863 | else |
---|
2864 | echo "$ac_t""no" 1>&6 |
---|
2865 | if test "$GTK_CONFIG" = "no" ; then |
---|
2866 | echo "*** The gtk-config script installed by GTK could not be found" |
---|
2867 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" |
---|
2868 | echo "*** your path, or set the GTK_CONFIG environment variable to the" |
---|
2869 | echo "*** full path to gtk-config." |
---|
2870 | else |
---|
2871 | if test -f conf.gtktest ; then |
---|
2872 | : |
---|
2873 | else |
---|
2874 | echo "*** Could not run GTK test program, checking why..." |
---|
2875 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
2876 | LIBS="$LIBS $GTK_LIBS" |
---|
2877 | cat > conftest.$ac_ext <<EOF |
---|
2878 | #line 2879 "configure" |
---|
2879 | #include "confdefs.h" |
---|
2880 | |
---|
2881 | #include <gtk/gtk.h> |
---|
2882 | #include <stdio.h> |
---|
2883 | |
---|
2884 | int main() { |
---|
2885 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
---|
2886 | ; return 0; } |
---|
2887 | EOF |
---|
2888 | if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2889 | rm -rf conftest* |
---|
2890 | echo "*** The test program compiled, but did not run. This usually means" |
---|
2891 | echo "*** that the run-time linker is not finding GTK or finding the wrong" |
---|
2892 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" |
---|
2893 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
2894 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
2895 | echo "*** is required on your system" |
---|
2896 | echo "***" |
---|
2897 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
2898 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
2899 | echo "***" |
---|
2900 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
---|
2901 | echo "*** came with the system with the command" |
---|
2902 | echo "***" |
---|
2903 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
---|
2904 | else |
---|
2905 | echo "configure: failed program was:" >&5 |
---|
2906 | cat conftest.$ac_ext >&5 |
---|
2907 | rm -rf conftest* |
---|
2908 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
2909 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
---|
2910 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
---|
2911 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
---|
2912 | fi |
---|
2913 | rm -f conftest* |
---|
2914 | CFLAGS="$ac_save_CFLAGS" |
---|
2915 | LIBS="$ac_save_LIBS" |
---|
2916 | fi |
---|
2917 | fi |
---|
2918 | GTK_CFLAGS="" |
---|
2919 | GTK_LIBS="" |
---|
2920 | { echo "configure: error: |
---|
2921 | *** Gtk+ 1.2.0 or better is required. The latest version of Gtk+ |
---|
2922 | *** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; } |
---|
2923 | fi |
---|
2924 | |
---|
2925 | |
---|
2926 | rm -f conf.gtktest |
---|
2927 | |
---|
2928 | |
---|
2929 | cflags_set=yes |
---|
2930 | |
---|
2931 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
---|
2932 | if test "${enable_compile_warnings+set}" = set; then |
---|
2933 | enableval="$enable_compile_warnings" |
---|
2934 | : |
---|
2935 | else |
---|
2936 | enable_compile_warnings=minimum |
---|
2937 | fi |
---|
2938 | |
---|
2939 | |
---|
2940 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
---|
2941 | echo "configure:2942: checking what warning flags to pass to the C compiler" >&5 |
---|
2942 | warnCFLAGS= |
---|
2943 | if test "x$GCC" != xyes; then |
---|
2944 | enable_compile_warnings=no |
---|
2945 | fi |
---|
2946 | |
---|
2947 | if test "x$enable_compile_warnings" != "xno"; then |
---|
2948 | if test "x$GCC" = "xyes"; then |
---|
2949 | case " $CFLAGS " in |
---|
2950 | *\ \ -Wall\ \ *) ;; |
---|
2951 | *) warnCFLAGS="-Wall -Wunused" ;; |
---|
2952 | esac |
---|
2953 | |
---|
2954 | ## -W is not all that useful. And it cannot be controlled |
---|
2955 | ## with individual -Wno-xxx flags, unlike -Wall |
---|
2956 | if test "x$enable_compile_warnings" = "xyes"; then |
---|
2957 | warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations" |
---|
2958 | fi |
---|
2959 | fi |
---|
2960 | fi |
---|
2961 | echo "$ac_t""$warnCFLAGS" 1>&6 |
---|
2962 | |
---|
2963 | # Check whether --enable-iso-c or --disable-iso-c was given. |
---|
2964 | if test "${enable_iso_c+set}" = set; then |
---|
2965 | enableval="$enable_iso_c" |
---|
2966 | : |
---|
2967 | else |
---|
2968 | enable_iso_c=no |
---|
2969 | fi |
---|
2970 | |
---|
2971 | |
---|
2972 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
---|
2973 | echo "configure:2974: checking what language compliance flags to pass to the C compiler" >&5 |
---|
2974 | complCFLAGS= |
---|
2975 | if test "x$enable_iso_c" != "xno"; then |
---|
2976 | if test "x$GCC" = "xyes"; then |
---|
2977 | case " $CFLAGS " in |
---|
2978 | *\ \ -ansi\ \ *) ;; |
---|
2979 | *) complCFLAGS="$complCFLAGS -ansi" ;; |
---|
2980 | esac |
---|
2981 | |
---|
2982 | case " $CFLAGS " in |
---|
2983 | *\ \ -pedantic\ \ *) ;; |
---|
2984 | *) complCFLAGS="$complCFLAGS -pedantic" ;; |
---|
2985 | esac |
---|
2986 | fi |
---|
2987 | fi |
---|
2988 | echo "$ac_t""$complCFLAGS" 1>&6 |
---|
2989 | if test "x$cflags_set" != "xyes"; then |
---|
2990 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
---|
2991 | cflags_set=yes |
---|
2992 | |
---|
2993 | fi |
---|
2994 | |
---|
2995 | VFS_CFLAGS="$warnCFLAGS $complCFLAGS" |
---|
2996 | |
---|
2997 | if test $GNOME_PLATFORM_VERSION -lt 1095000 ; then |
---|
2998 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
2999 | echo "configure:3000: checking how to run the C preprocessor" >&5 |
---|
3000 | # On Suns, sometimes $CPP names a directory. |
---|
3001 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3002 | CPP= |
---|
3003 | fi |
---|
3004 | if test -z "$CPP"; then |
---|
3005 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
3006 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3007 | else |
---|
3008 | # This must be in double quotes, not single quotes, because CPP may get |
---|
3009 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
3010 | CPP="${CC-cc} -E" |
---|
3011 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3012 | # not just through cpp. |
---|
3013 | cat > conftest.$ac_ext <<EOF |
---|
3014 | #line 3015 "configure" |
---|
3015 | #include "confdefs.h" |
---|
3016 | #include <assert.h> |
---|
3017 | Syntax Error |
---|
3018 | EOF |
---|
3019 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3020 | { (eval echo configure:3021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3021 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3022 | if test -z "$ac_err"; then |
---|
3023 | : |
---|
3024 | else |
---|
3025 | echo "$ac_err" >&5 |
---|
3026 | echo "configure: failed program was:" >&5 |
---|
3027 | cat conftest.$ac_ext >&5 |
---|
3028 | rm -rf conftest* |
---|
3029 | CPP="${CC-cc} -E -traditional-cpp" |
---|
3030 | cat > conftest.$ac_ext <<EOF |
---|
3031 | #line 3032 "configure" |
---|
3032 | #include "confdefs.h" |
---|
3033 | #include <assert.h> |
---|
3034 | Syntax Error |
---|
3035 | EOF |
---|
3036 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3037 | { (eval echo configure:3038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3038 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3039 | if test -z "$ac_err"; then |
---|
3040 | : |
---|
3041 | else |
---|
3042 | echo "$ac_err" >&5 |
---|
3043 | echo "configure: failed program was:" >&5 |
---|
3044 | cat conftest.$ac_ext >&5 |
---|
3045 | rm -rf conftest* |
---|
3046 | CPP="${CC-cc} -nologo -E" |
---|
3047 | cat > conftest.$ac_ext <<EOF |
---|
3048 | #line 3049 "configure" |
---|
3049 | #include "confdefs.h" |
---|
3050 | #include <assert.h> |
---|
3051 | Syntax Error |
---|
3052 | EOF |
---|
3053 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3054 | { (eval echo configure:3055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3055 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3056 | if test -z "$ac_err"; then |
---|
3057 | : |
---|
3058 | else |
---|
3059 | echo "$ac_err" >&5 |
---|
3060 | echo "configure: failed program was:" >&5 |
---|
3061 | cat conftest.$ac_ext >&5 |
---|
3062 | rm -rf conftest* |
---|
3063 | CPP=/lib/cpp |
---|
3064 | fi |
---|
3065 | rm -f conftest* |
---|
3066 | fi |
---|
3067 | rm -f conftest* |
---|
3068 | fi |
---|
3069 | rm -f conftest* |
---|
3070 | ac_cv_prog_CPP="$CPP" |
---|
3071 | fi |
---|
3072 | CPP="$ac_cv_prog_CPP" |
---|
3073 | else |
---|
3074 | ac_cv_prog_CPP="$CPP" |
---|
3075 | fi |
---|
3076 | echo "$ac_t""$CPP" 1>&6 |
---|
3077 | |
---|
3078 | |
---|
3079 | # we need an `awk' to build `gnomesupport.h' |
---|
3080 | |
---|
3081 | |
---|
3082 | # this should go away soon |
---|
3083 | need_gnome_support=yes |
---|
3084 | |
---|
3085 | save_LIBOBJS="$LIBOBJS" |
---|
3086 | LIBOBJS= |
---|
3087 | |
---|
3088 | for ac_func in getopt_long |
---|
3089 | do |
---|
3090 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3091 | echo "configure:3092: checking for $ac_func" >&5 |
---|
3092 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3093 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3094 | else |
---|
3095 | cat > conftest.$ac_ext <<EOF |
---|
3096 | #line 3097 "configure" |
---|
3097 | #include "confdefs.h" |
---|
3098 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3099 | which can conflict with char $ac_func(); below. */ |
---|
3100 | #include <assert.h> |
---|
3101 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3102 | /* We use char because int might match the return type of a gcc2 |
---|
3103 | builtin and then its argument prototype would still apply. */ |
---|
3104 | char $ac_func(); |
---|
3105 | |
---|
3106 | int main() { |
---|
3107 | |
---|
3108 | /* The GNU C library defines this for functions which it implements |
---|
3109 | to always fail with ENOSYS. Some functions are actually named |
---|
3110 | something starting with __ and the normal name is an alias. */ |
---|
3111 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3112 | choke me |
---|
3113 | #else |
---|
3114 | $ac_func(); |
---|
3115 | #endif |
---|
3116 | |
---|
3117 | ; return 0; } |
---|
3118 | EOF |
---|
3119 | if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3120 | rm -rf conftest* |
---|
3121 | eval "ac_cv_func_$ac_func=yes" |
---|
3122 | else |
---|
3123 | echo "configure: failed program was:" >&5 |
---|
3124 | cat conftest.$ac_ext >&5 |
---|
3125 | rm -rf conftest* |
---|
3126 | eval "ac_cv_func_$ac_func=no" |
---|
3127 | fi |
---|
3128 | rm -f conftest* |
---|
3129 | fi |
---|
3130 | |
---|
3131 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3132 | echo "$ac_t""yes" 1>&6 |
---|
3133 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3134 | cat >> confdefs.h <<EOF |
---|
3135 | #define $ac_tr_func 1 |
---|
3136 | EOF |
---|
3137 | |
---|
3138 | else |
---|
3139 | echo "$ac_t""no" 1>&6 |
---|
3140 | LIBOBJS="$LIBOBJS getopt.o getopt1.o" |
---|
3141 | fi |
---|
3142 | done |
---|
3143 | |
---|
3144 | |
---|
3145 | # for `scandir' |
---|
3146 | ac_header_dirent=no |
---|
3147 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
---|
3148 | do |
---|
3149 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3150 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
---|
3151 | echo "configure:3152: checking for $ac_hdr that defines DIR" >&5 |
---|
3152 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
---|
3153 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3154 | else |
---|
3155 | cat > conftest.$ac_ext <<EOF |
---|
3156 | #line 3157 "configure" |
---|
3157 | #include "confdefs.h" |
---|
3158 | #include <sys/types.h> |
---|
3159 | #include <$ac_hdr> |
---|
3160 | int main() { |
---|
3161 | DIR *dirp = 0; |
---|
3162 | ; return 0; } |
---|
3163 | EOF |
---|
3164 | if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3165 | rm -rf conftest* |
---|
3166 | eval "ac_cv_header_dirent_$ac_safe=yes" |
---|
3167 | else |
---|
3168 | echo "configure: failed program was:" >&5 |
---|
3169 | cat conftest.$ac_ext >&5 |
---|
3170 | rm -rf conftest* |
---|
3171 | eval "ac_cv_header_dirent_$ac_safe=no" |
---|
3172 | fi |
---|
3173 | rm -f conftest* |
---|
3174 | fi |
---|
3175 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
---|
3176 | echo "$ac_t""yes" 1>&6 |
---|
3177 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3178 | cat >> confdefs.h <<EOF |
---|
3179 | #define $ac_tr_hdr 1 |
---|
3180 | EOF |
---|
3181 | ac_header_dirent=$ac_hdr; break |
---|
3182 | else |
---|
3183 | echo "$ac_t""no" 1>&6 |
---|
3184 | fi |
---|
3185 | done |
---|
3186 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
3187 | if test $ac_header_dirent = dirent.h; then |
---|
3188 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
---|
3189 | echo "configure:3190: checking for opendir in -ldir" >&5 |
---|
3190 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
---|
3191 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3192 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3193 | else |
---|
3194 | ac_save_LIBS="$LIBS" |
---|
3195 | LIBS="-ldir $LIBS" |
---|
3196 | cat > conftest.$ac_ext <<EOF |
---|
3197 | #line 3198 "configure" |
---|
3198 | #include "confdefs.h" |
---|
3199 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3200 | /* We use char because int might match the return type of a gcc2 |
---|
3201 | builtin and then its argument prototype would still apply. */ |
---|
3202 | char opendir(); |
---|
3203 | |
---|
3204 | int main() { |
---|
3205 | opendir() |
---|
3206 | ; return 0; } |
---|
3207 | EOF |
---|
3208 | if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3209 | rm -rf conftest* |
---|
3210 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3211 | else |
---|
3212 | echo "configure: failed program was:" >&5 |
---|
3213 | cat conftest.$ac_ext >&5 |
---|
3214 | rm -rf conftest* |
---|
3215 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3216 | fi |
---|
3217 | rm -f conftest* |
---|
3218 | LIBS="$ac_save_LIBS" |
---|
3219 | |
---|
3220 | fi |
---|
3221 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3222 | echo "$ac_t""yes" 1>&6 |
---|
3223 | LIBS="$LIBS -ldir" |
---|
3224 | else |
---|
3225 | echo "$ac_t""no" 1>&6 |
---|
3226 | fi |
---|
3227 | |
---|
3228 | else |
---|
3229 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
---|
3230 | echo "configure:3231: checking for opendir in -lx" >&5 |
---|
3231 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
---|
3232 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3233 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3234 | else |
---|
3235 | ac_save_LIBS="$LIBS" |
---|
3236 | LIBS="-lx $LIBS" |
---|
3237 | cat > conftest.$ac_ext <<EOF |
---|
3238 | #line 3239 "configure" |
---|
3239 | #include "confdefs.h" |
---|
3240 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3241 | /* We use char because int might match the return type of a gcc2 |
---|
3242 | builtin and then its argument prototype would still apply. */ |
---|
3243 | char opendir(); |
---|
3244 | |
---|
3245 | int main() { |
---|
3246 | opendir() |
---|
3247 | ; return 0; } |
---|
3248 | EOF |
---|
3249 | if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3250 | rm -rf conftest* |
---|
3251 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3252 | else |
---|
3253 | echo "configure: failed program was:" >&5 |
---|
3254 | cat conftest.$ac_ext >&5 |
---|
3255 | rm -rf conftest* |
---|
3256 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3257 | fi |
---|
3258 | rm -f conftest* |
---|
3259 | LIBS="$ac_save_LIBS" |
---|
3260 | |
---|
3261 | fi |
---|
3262 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3263 | echo "$ac_t""yes" 1>&6 |
---|
3264 | LIBS="$LIBS -lx" |
---|
3265 | else |
---|
3266 | echo "$ac_t""no" 1>&6 |
---|
3267 | fi |
---|
3268 | |
---|
3269 | fi |
---|
3270 | |
---|
3271 | |
---|
3272 | # copied from `configure.in' of `libiberty' |
---|
3273 | vars="program_invocation_short_name program_invocation_name sys_errlist" |
---|
3274 | for v in $vars; do |
---|
3275 | echo $ac_n "checking for $v""... $ac_c" 1>&6 |
---|
3276 | echo "configure:3277: checking for $v" >&5 |
---|
3277 | if eval "test \"`echo '$''{'gnome_cv_var_$v'+set}'`\" = set"; then |
---|
3278 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3279 | else |
---|
3280 | cat > conftest.$ac_ext <<EOF |
---|
3281 | #line 3282 "configure" |
---|
3282 | #include "confdefs.h" |
---|
3283 | int *p; |
---|
3284 | int main() { |
---|
3285 | extern int $v; p = &$v; |
---|
3286 | ; return 0; } |
---|
3287 | EOF |
---|
3288 | if { (eval echo configure:3289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3289 | rm -rf conftest* |
---|
3290 | eval "gnome_cv_var_$v=yes" |
---|
3291 | else |
---|
3292 | echo "configure: failed program was:" >&5 |
---|
3293 | cat conftest.$ac_ext >&5 |
---|
3294 | rm -rf conftest* |
---|
3295 | eval "gnome_cv_var_$v=no" |
---|
3296 | fi |
---|
3297 | rm -f conftest* |
---|
3298 | fi |
---|
3299 | |
---|
3300 | if eval "test \"`echo '$gnome_cv_var_'$v`\" = yes"; then |
---|
3301 | echo "$ac_t""yes" 1>&6 |
---|
3302 | n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3303 | cat >> confdefs.h <<EOF |
---|
3304 | #define $n 1 |
---|
3305 | EOF |
---|
3306 | |
---|
3307 | else |
---|
3308 | echo "$ac_t""no" 1>&6 |
---|
3309 | fi |
---|
3310 | done |
---|
3311 | |
---|
3312 | for ac_func in memmove mkstemp scandir strcasecmp strerror strndup strnlen |
---|
3313 | do |
---|
3314 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3315 | echo "configure:3316: checking for $ac_func" >&5 |
---|
3316 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3317 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3318 | else |
---|
3319 | cat > conftest.$ac_ext <<EOF |
---|
3320 | #line 3321 "configure" |
---|
3321 | #include "confdefs.h" |
---|
3322 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3323 | which can conflict with char $ac_func(); below. */ |
---|
3324 | #include <assert.h> |
---|
3325 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3326 | /* We use char because int might match the return type of a gcc2 |
---|
3327 | builtin and then its argument prototype would still apply. */ |
---|
3328 | char $ac_func(); |
---|
3329 | |
---|
3330 | int main() { |
---|
3331 | |
---|
3332 | /* The GNU C library defines this for functions which it implements |
---|
3333 | to always fail with ENOSYS. Some functions are actually named |
---|
3334 | something starting with __ and the normal name is an alias. */ |
---|
3335 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3336 | choke me |
---|
3337 | #else |
---|
3338 | $ac_func(); |
---|
3339 | #endif |
---|
3340 | |
---|
3341 | ; return 0; } |
---|
3342 | EOF |
---|
3343 | if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3344 | rm -rf conftest* |
---|
3345 | eval "ac_cv_func_$ac_func=yes" |
---|
3346 | else |
---|
3347 | echo "configure: failed program was:" >&5 |
---|
3348 | cat conftest.$ac_ext >&5 |
---|
3349 | rm -rf conftest* |
---|
3350 | eval "ac_cv_func_$ac_func=no" |
---|
3351 | fi |
---|
3352 | rm -f conftest* |
---|
3353 | fi |
---|
3354 | |
---|
3355 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3356 | echo "$ac_t""yes" 1>&6 |
---|
3357 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3358 | cat >> confdefs.h <<EOF |
---|
3359 | #define $ac_tr_func 1 |
---|
3360 | EOF |
---|
3361 | |
---|
3362 | else |
---|
3363 | echo "$ac_t""no" 1>&6 |
---|
3364 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
---|
3365 | fi |
---|
3366 | done |
---|
3367 | |
---|
3368 | |
---|
3369 | for ac_func in strtok_r strtod strtol strtoul vasprintf vsnprintf |
---|
3370 | do |
---|
3371 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3372 | echo "configure:3373: checking for $ac_func" >&5 |
---|
3373 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3374 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3375 | else |
---|
3376 | cat > conftest.$ac_ext <<EOF |
---|
3377 | #line 3378 "configure" |
---|
3378 | #include "confdefs.h" |
---|
3379 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3380 | which can conflict with char $ac_func(); below. */ |
---|
3381 | #include <assert.h> |
---|
3382 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3383 | /* We use char because int might match the return type of a gcc2 |
---|
3384 | builtin and then its argument prototype would still apply. */ |
---|
3385 | char $ac_func(); |
---|
3386 | |
---|
3387 | int main() { |
---|
3388 | |
---|
3389 | /* The GNU C library defines this for functions which it implements |
---|
3390 | to always fail with ENOSYS. Some functions are actually named |
---|
3391 | something starting with __ and the normal name is an alias. */ |
---|
3392 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3393 | choke me |
---|
3394 | #else |
---|
3395 | $ac_func(); |
---|
3396 | #endif |
---|
3397 | |
---|
3398 | ; return 0; } |
---|
3399 | EOF |
---|
3400 | if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3401 | rm -rf conftest* |
---|
3402 | eval "ac_cv_func_$ac_func=yes" |
---|
3403 | else |
---|
3404 | echo "configure: failed program was:" >&5 |
---|
3405 | cat conftest.$ac_ext >&5 |
---|
3406 | rm -rf conftest* |
---|
3407 | eval "ac_cv_func_$ac_func=no" |
---|
3408 | fi |
---|
3409 | rm -f conftest* |
---|
3410 | fi |
---|
3411 | |
---|
3412 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3413 | echo "$ac_t""yes" 1>&6 |
---|
3414 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3415 | cat >> confdefs.h <<EOF |
---|
3416 | #define $ac_tr_func 1 |
---|
3417 | EOF |
---|
3418 | |
---|
3419 | else |
---|
3420 | echo "$ac_t""no" 1>&6 |
---|
3421 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
---|
3422 | fi |
---|
3423 | done |
---|
3424 | |
---|
3425 | |
---|
3426 | |
---|
3427 | for ac_func in realpath |
---|
3428 | do |
---|
3429 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3430 | echo "configure:3431: checking for $ac_func" >&5 |
---|
3431 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3432 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3433 | else |
---|
3434 | cat > conftest.$ac_ext <<EOF |
---|
3435 | #line 3436 "configure" |
---|
3436 | #include "confdefs.h" |
---|
3437 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3438 | which can conflict with char $ac_func(); below. */ |
---|
3439 | #include <assert.h> |
---|
3440 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3441 | /* We use char because int might match the return type of a gcc2 |
---|
3442 | builtin and then its argument prototype would still apply. */ |
---|
3443 | char $ac_func(); |
---|
3444 | |
---|
3445 | int main() { |
---|
3446 | |
---|
3447 | /* The GNU C library defines this for functions which it implements |
---|
3448 | to always fail with ENOSYS. Some functions are actually named |
---|
3449 | something starting with __ and the normal name is an alias. */ |
---|
3450 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3451 | choke me |
---|
3452 | #else |
---|
3453 | $ac_func(); |
---|
3454 | #endif |
---|
3455 | |
---|
3456 | ; return 0; } |
---|
3457 | EOF |
---|
3458 | if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3459 | rm -rf conftest* |
---|
3460 | eval "ac_cv_func_$ac_func=yes" |
---|
3461 | else |
---|
3462 | echo "configure: failed program was:" >&5 |
---|
3463 | cat conftest.$ac_ext >&5 |
---|
3464 | rm -rf conftest* |
---|
3465 | eval "ac_cv_func_$ac_func=no" |
---|
3466 | fi |
---|
3467 | rm -f conftest* |
---|
3468 | fi |
---|
3469 | |
---|
3470 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3471 | echo "$ac_t""yes" 1>&6 |
---|
3472 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3473 | cat >> confdefs.h <<EOF |
---|
3474 | #define $ac_tr_func 1 |
---|
3475 | EOF |
---|
3476 | |
---|
3477 | else |
---|
3478 | echo "$ac_t""no" 1>&6 |
---|
3479 | LIBOBJS="$LIBOBJS canonicalize.o" |
---|
3480 | fi |
---|
3481 | done |
---|
3482 | |
---|
3483 | |
---|
3484 | # to include `error.c' error.c has some HAVE_* checks |
---|
3485 | for ac_func in vprintf doprnt strerror_r |
---|
3486 | do |
---|
3487 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3488 | echo "configure:3489: checking for $ac_func" >&5 |
---|
3489 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3490 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3491 | else |
---|
3492 | cat > conftest.$ac_ext <<EOF |
---|
3493 | #line 3494 "configure" |
---|
3494 | #include "confdefs.h" |
---|
3495 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3496 | which can conflict with char $ac_func(); below. */ |
---|
3497 | #include <assert.h> |
---|
3498 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3499 | /* We use char because int might match the return type of a gcc2 |
---|
3500 | builtin and then its argument prototype would still apply. */ |
---|
3501 | char $ac_func(); |
---|
3502 | |
---|
3503 | int main() { |
---|
3504 | |
---|
3505 | /* The GNU C library defines this for functions which it implements |
---|
3506 | to always fail with ENOSYS. Some functions are actually named |
---|
3507 | something starting with __ and the normal name is an alias. */ |
---|
3508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3509 | choke me |
---|
3510 | #else |
---|
3511 | $ac_func(); |
---|
3512 | #endif |
---|
3513 | |
---|
3514 | ; return 0; } |
---|
3515 | EOF |
---|
3516 | if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3517 | rm -rf conftest* |
---|
3518 | eval "ac_cv_func_$ac_func=yes" |
---|
3519 | else |
---|
3520 | echo "configure: failed program was:" >&5 |
---|
3521 | cat conftest.$ac_ext >&5 |
---|
3522 | rm -rf conftest* |
---|
3523 | eval "ac_cv_func_$ac_func=no" |
---|
3524 | fi |
---|
3525 | rm -f conftest* |
---|
3526 | fi |
---|
3527 | |
---|
3528 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3529 | echo "$ac_t""yes" 1>&6 |
---|
3530 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3531 | cat >> confdefs.h <<EOF |
---|
3532 | #define $ac_tr_func 1 |
---|
3533 | EOF |
---|
3534 | |
---|
3535 | else |
---|
3536 | echo "$ac_t""no" 1>&6 |
---|
3537 | fi |
---|
3538 | done |
---|
3539 | |
---|
3540 | echo $ac_n "checking for error_at_line""... $ac_c" 1>&6 |
---|
3541 | echo "configure:3542: checking for error_at_line" >&5 |
---|
3542 | if eval "test \"`echo '$''{'am_cv_lib_error_at_line'+set}'`\" = set"; then |
---|
3543 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3544 | else |
---|
3545 | cat > conftest.$ac_ext <<EOF |
---|
3546 | #line 3547 "configure" |
---|
3547 | #include "confdefs.h" |
---|
3548 | |
---|
3549 | int main() { |
---|
3550 | error_at_line(0, 0, "", 0, ""); |
---|
3551 | ; return 0; } |
---|
3552 | EOF |
---|
3553 | if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3554 | rm -rf conftest* |
---|
3555 | am_cv_lib_error_at_line=yes |
---|
3556 | else |
---|
3557 | echo "configure: failed program was:" >&5 |
---|
3558 | cat conftest.$ac_ext >&5 |
---|
3559 | rm -rf conftest* |
---|
3560 | am_cv_lib_error_at_line=no |
---|
3561 | fi |
---|
3562 | rm -f conftest* |
---|
3563 | fi |
---|
3564 | |
---|
3565 | echo "$ac_t""$am_cv_lib_error_at_line" 1>&6 |
---|
3566 | if test $am_cv_lib_error_at_line = no; then |
---|
3567 | LIBOBJS="$LIBOBJS error.o" |
---|
3568 | fi |
---|
3569 | |
---|
3570 | |
---|
3571 | # This is required if we declare setreuid () and setregid (). |
---|
3572 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
---|
3573 | echo "configure:3574: checking for uid_t in sys/types.h" >&5 |
---|
3574 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
---|
3575 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3576 | else |
---|
3577 | cat > conftest.$ac_ext <<EOF |
---|
3578 | #line 3579 "configure" |
---|
3579 | #include "confdefs.h" |
---|
3580 | #include <sys/types.h> |
---|
3581 | EOF |
---|
3582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3583 | egrep "uid_t" >/dev/null 2>&1; then |
---|
3584 | rm -rf conftest* |
---|
3585 | ac_cv_type_uid_t=yes |
---|
3586 | else |
---|
3587 | rm -rf conftest* |
---|
3588 | ac_cv_type_uid_t=no |
---|
3589 | fi |
---|
3590 | rm -f conftest* |
---|
3591 | |
---|
3592 | fi |
---|
3593 | |
---|
3594 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
---|
3595 | if test $ac_cv_type_uid_t = no; then |
---|
3596 | cat >> confdefs.h <<\EOF |
---|
3597 | #define uid_t int |
---|
3598 | EOF |
---|
3599 | |
---|
3600 | cat >> confdefs.h <<\EOF |
---|
3601 | #define gid_t int |
---|
3602 | EOF |
---|
3603 | |
---|
3604 | fi |
---|
3605 | |
---|
3606 | |
---|
3607 | # see if we need to declare some functions. Solaris is notorious for |
---|
3608 | # putting functions into the `libc' but not listing them in the headers |
---|
3609 | for ac_hdr in string.h strings.h stdlib.h unistd.h dirent.h |
---|
3610 | do |
---|
3611 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3612 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3613 | echo "configure:3614: checking for $ac_hdr" >&5 |
---|
3614 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3615 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3616 | else |
---|
3617 | cat > conftest.$ac_ext <<EOF |
---|
3618 | #line 3619 "configure" |
---|
3619 | #include "confdefs.h" |
---|
3620 | #include <$ac_hdr> |
---|
3621 | EOF |
---|
3622 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3623 | { (eval echo configure:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3624 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3625 | if test -z "$ac_err"; then |
---|
3626 | rm -rf conftest* |
---|
3627 | eval "ac_cv_header_$ac_safe=yes" |
---|
3628 | else |
---|
3629 | echo "$ac_err" >&5 |
---|
3630 | echo "configure: failed program was:" >&5 |
---|
3631 | cat conftest.$ac_ext >&5 |
---|
3632 | rm -rf conftest* |
---|
3633 | eval "ac_cv_header_$ac_safe=no" |
---|
3634 | fi |
---|
3635 | rm -f conftest* |
---|
3636 | fi |
---|
3637 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3638 | echo "$ac_t""yes" 1>&6 |
---|
3639 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3640 | cat >> confdefs.h <<EOF |
---|
3641 | #define $ac_tr_hdr 1 |
---|
3642 | EOF |
---|
3643 | |
---|
3644 | else |
---|
3645 | echo "$ac_t""no" 1>&6 |
---|
3646 | fi |
---|
3647 | done |
---|
3648 | |
---|
3649 | for ac_func in gethostname setreuid setregid getpagesize |
---|
3650 | do |
---|
3651 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 |
---|
3652 | echo "configure:3653: checking whether $ac_func must be declared" >&5 |
---|
3653 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
---|
3654 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3655 | else |
---|
3656 | cat > conftest.$ac_ext <<EOF |
---|
3657 | #line 3658 "configure" |
---|
3658 | #include "confdefs.h" |
---|
3659 | |
---|
3660 | #include <stdio.h> |
---|
3661 | #ifdef HAVE_STRING_H |
---|
3662 | #include <string.h> |
---|
3663 | #else |
---|
3664 | #ifdef HAVE_STRINGS_H |
---|
3665 | #include <strings.h> |
---|
3666 | #endif |
---|
3667 | #endif |
---|
3668 | #ifdef HAVE_STDLIB_H |
---|
3669 | #include <stdlib.h> |
---|
3670 | #endif |
---|
3671 | #ifdef HAVE_UNISTD_H |
---|
3672 | #include <unistd.h> |
---|
3673 | #endif |
---|
3674 | |
---|
3675 | int main() { |
---|
3676 | char *(*pfn) = (char *(*)) $ac_func |
---|
3677 | ; return 0; } |
---|
3678 | EOF |
---|
3679 | if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3680 | rm -rf conftest* |
---|
3681 | eval "gcc_cv_decl_needed_$ac_func=no" |
---|
3682 | else |
---|
3683 | echo "configure: failed program was:" >&5 |
---|
3684 | cat conftest.$ac_ext >&5 |
---|
3685 | rm -rf conftest* |
---|
3686 | eval "gcc_cv_decl_needed_$ac_func=yes" |
---|
3687 | fi |
---|
3688 | rm -f conftest* |
---|
3689 | fi |
---|
3690 | |
---|
3691 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then |
---|
3692 | echo "$ac_t""yes" 1>&6 |
---|
3693 | gcc_need_declarations="$gcc_need_declarations $ac_func" |
---|
3694 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3695 | cat >> confdefs.h <<EOF |
---|
3696 | #define $gcc_tr_decl 1 |
---|
3697 | EOF |
---|
3698 | |
---|
3699 | else |
---|
3700 | echo "$ac_t""no" 1>&6 |
---|
3701 | fi |
---|
3702 | |
---|
3703 | done |
---|
3704 | |
---|
3705 | |
---|
3706 | echo $ac_n "checking whether scandir must be declared""... $ac_c" 1>&6 |
---|
3707 | echo "configure:3708: checking whether scandir must be declared" >&5 |
---|
3708 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_scandir'+set}'`\" = set"; then |
---|
3709 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3710 | else |
---|
3711 | cat > conftest.$ac_ext <<EOF |
---|
3712 | #line 3713 "configure" |
---|
3713 | #include "confdefs.h" |
---|
3714 | |
---|
3715 | #include <stdio.h> |
---|
3716 | #ifdef HAVE_STRING_H |
---|
3717 | #include <string.h> |
---|
3718 | #else |
---|
3719 | #ifdef HAVE_STRINGS_H |
---|
3720 | #include <strings.h> |
---|
3721 | #endif |
---|
3722 | #endif |
---|
3723 | #ifdef HAVE_STDLIB_H |
---|
3724 | #include <stdlib.h> |
---|
3725 | #endif |
---|
3726 | #ifdef HAVE_UNISTD_H |
---|
3727 | #include <unistd.h> |
---|
3728 | #endif |
---|
3729 | |
---|
3730 | #ifdef HAVE_DIRENT_H |
---|
3731 | #include <dirent.h> |
---|
3732 | #endif |
---|
3733 | |
---|
3734 | int main() { |
---|
3735 | char *(*pfn) = (char *(*)) scandir |
---|
3736 | ; return 0; } |
---|
3737 | EOF |
---|
3738 | if { (eval echo configure:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3739 | rm -rf conftest* |
---|
3740 | eval "gcc_cv_decl_needed_scandir=no" |
---|
3741 | else |
---|
3742 | echo "configure: failed program was:" >&5 |
---|
3743 | cat conftest.$ac_ext >&5 |
---|
3744 | rm -rf conftest* |
---|
3745 | eval "gcc_cv_decl_needed_scandir=yes" |
---|
3746 | fi |
---|
3747 | rm -f conftest* |
---|
3748 | fi |
---|
3749 | |
---|
3750 | if eval "test \"`echo '$gcc_cv_decl_needed_'scandir`\" = yes"; then |
---|
3751 | echo "$ac_t""yes" 1>&6 |
---|
3752 | gcc_need_declarations="$gcc_need_declarations scandir" |
---|
3753 | gcc_tr_decl=NEED_DECLARATION_`echo scandir | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3754 | cat >> confdefs.h <<EOF |
---|
3755 | #define $gcc_tr_decl 1 |
---|
3756 | EOF |
---|
3757 | |
---|
3758 | else |
---|
3759 | echo "$ac_t""no" 1>&6 |
---|
3760 | fi |
---|
3761 | |
---|
3762 | |
---|
3763 | # Turn our LIBOBJS into libtool objects. This is gross, but it |
---|
3764 | # requires changes to autoconf before it goes away. |
---|
3765 | LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'` |
---|
3766 | |
---|
3767 | |
---|
3768 | |
---|
3769 | LIBOBJS="$save_LIBOBJS" |
---|
3770 | |
---|
3771 | |
---|
3772 | if test "$need_gnome_support" = yes; then |
---|
3773 | BUILD_GNOME_SUPPORT_TRUE= |
---|
3774 | BUILD_GNOME_SUPPORT_FALSE='#' |
---|
3775 | else |
---|
3776 | BUILD_GNOME_SUPPORT_TRUE='#' |
---|
3777 | BUILD_GNOME_SUPPORT_FALSE= |
---|
3778 | fi |
---|
3779 | |
---|
3780 | fi |
---|
3781 | |
---|
3782 | PTHREAD_LIB="" |
---|
3783 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
---|
3784 | echo "configure:3785: checking for pthread_create in -lpthread" >&5 |
---|
3785 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
3786 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3787 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3788 | else |
---|
3789 | ac_save_LIBS="$LIBS" |
---|
3790 | LIBS="-lpthread $LIBS" |
---|
3791 | cat > conftest.$ac_ext <<EOF |
---|
3792 | #line 3793 "configure" |
---|
3793 | #include "confdefs.h" |
---|
3794 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3795 | /* We use char because int might match the return type of a gcc2 |
---|
3796 | builtin and then its argument prototype would still apply. */ |
---|
3797 | char pthread_create(); |
---|
3798 | |
---|
3799 | int main() { |
---|
3800 | pthread_create() |
---|
3801 | ; return 0; } |
---|
3802 | EOF |
---|
3803 | if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3804 | rm -rf conftest* |
---|
3805 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3806 | else |
---|
3807 | echo "configure: failed program was:" >&5 |
---|
3808 | cat conftest.$ac_ext >&5 |
---|
3809 | rm -rf conftest* |
---|
3810 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3811 | fi |
---|
3812 | rm -f conftest* |
---|
3813 | LIBS="$ac_save_LIBS" |
---|
3814 | |
---|
3815 | fi |
---|
3816 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3817 | echo "$ac_t""yes" 1>&6 |
---|
3818 | PTHREAD_LIB="-lpthread" |
---|
3819 | else |
---|
3820 | echo "$ac_t""no" 1>&6 |
---|
3821 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
---|
3822 | echo "configure:3823: checking for pthread_create in -lpthreads" >&5 |
---|
3823 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
3824 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3825 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3826 | else |
---|
3827 | ac_save_LIBS="$LIBS" |
---|
3828 | LIBS="-lpthreads $LIBS" |
---|
3829 | cat > conftest.$ac_ext <<EOF |
---|
3830 | #line 3831 "configure" |
---|
3831 | #include "confdefs.h" |
---|
3832 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3833 | /* We use char because int might match the return type of a gcc2 |
---|
3834 | builtin and then its argument prototype would still apply. */ |
---|
3835 | char pthread_create(); |
---|
3836 | |
---|
3837 | int main() { |
---|
3838 | pthread_create() |
---|
3839 | ; return 0; } |
---|
3840 | EOF |
---|
3841 | if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3842 | rm -rf conftest* |
---|
3843 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3844 | else |
---|
3845 | echo "configure: failed program was:" >&5 |
---|
3846 | cat conftest.$ac_ext >&5 |
---|
3847 | rm -rf conftest* |
---|
3848 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3849 | fi |
---|
3850 | rm -f conftest* |
---|
3851 | LIBS="$ac_save_LIBS" |
---|
3852 | |
---|
3853 | fi |
---|
3854 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3855 | echo "$ac_t""yes" 1>&6 |
---|
3856 | PTHREAD_LIB="-lpthreads" |
---|
3857 | else |
---|
3858 | echo "$ac_t""no" 1>&6 |
---|
3859 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
---|
3860 | echo "configure:3861: checking for pthread_create in -lc_r" >&5 |
---|
3861 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
3862 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3863 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3864 | else |
---|
3865 | ac_save_LIBS="$LIBS" |
---|
3866 | LIBS="-lc_r $LIBS" |
---|
3867 | cat > conftest.$ac_ext <<EOF |
---|
3868 | #line 3869 "configure" |
---|
3869 | #include "confdefs.h" |
---|
3870 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3871 | /* We use char because int might match the return type of a gcc2 |
---|
3872 | builtin and then its argument prototype would still apply. */ |
---|
3873 | char pthread_create(); |
---|
3874 | |
---|
3875 | int main() { |
---|
3876 | pthread_create() |
---|
3877 | ; return 0; } |
---|
3878 | EOF |
---|
3879 | if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3880 | rm -rf conftest* |
---|
3881 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3882 | else |
---|
3883 | echo "configure: failed program was:" >&5 |
---|
3884 | cat conftest.$ac_ext >&5 |
---|
3885 | rm -rf conftest* |
---|
3886 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3887 | fi |
---|
3888 | rm -f conftest* |
---|
3889 | LIBS="$ac_save_LIBS" |
---|
3890 | |
---|
3891 | fi |
---|
3892 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3893 | echo "$ac_t""yes" 1>&6 |
---|
3894 | PTHREAD_LIB="-lc_r" |
---|
3895 | else |
---|
3896 | echo "$ac_t""no" 1>&6 |
---|
3897 | echo $ac_n "checking for pthread_create""... $ac_c" 1>&6 |
---|
3898 | echo "configure:3899: checking for pthread_create" >&5 |
---|
3899 | if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then |
---|
3900 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3901 | else |
---|
3902 | cat > conftest.$ac_ext <<EOF |
---|
3903 | #line 3904 "configure" |
---|
3904 | #include "confdefs.h" |
---|
3905 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3906 | which can conflict with char pthread_create(); below. */ |
---|
3907 | #include <assert.h> |
---|
3908 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3909 | /* We use char because int might match the return type of a gcc2 |
---|
3910 | builtin and then its argument prototype would still apply. */ |
---|
3911 | char pthread_create(); |
---|
3912 | |
---|
3913 | int main() { |
---|
3914 | |
---|
3915 | /* The GNU C library defines this for functions which it implements |
---|
3916 | to always fail with ENOSYS. Some functions are actually named |
---|
3917 | something starting with __ and the normal name is an alias. */ |
---|
3918 | #if defined (__stub_pthread_create) || defined (__stub___pthread_create) |
---|
3919 | choke me |
---|
3920 | #else |
---|
3921 | pthread_create(); |
---|
3922 | #endif |
---|
3923 | |
---|
3924 | ; return 0; } |
---|
3925 | EOF |
---|
3926 | if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3927 | rm -rf conftest* |
---|
3928 | eval "ac_cv_func_pthread_create=yes" |
---|
3929 | else |
---|
3930 | echo "configure: failed program was:" >&5 |
---|
3931 | cat conftest.$ac_ext >&5 |
---|
3932 | rm -rf conftest* |
---|
3933 | eval "ac_cv_func_pthread_create=no" |
---|
3934 | fi |
---|
3935 | rm -f conftest* |
---|
3936 | fi |
---|
3937 | |
---|
3938 | if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then |
---|
3939 | echo "$ac_t""yes" 1>&6 |
---|
3940 | : |
---|
3941 | else |
---|
3942 | echo "$ac_t""no" 1>&6 |
---|
3943 | fi |
---|
3944 | |
---|
3945 | |
---|
3946 | fi |
---|
3947 | |
---|
3948 | |
---|
3949 | fi |
---|
3950 | |
---|
3951 | |
---|
3952 | fi |
---|
3953 | |
---|
3954 | |
---|
3955 | |
---|
3956 | |
---|
3957 | |
---|
3958 | echo $ac_n "checking size_t in <sys/types.h>""... $ac_c" 1>&6 |
---|
3959 | echo "configure:3960: checking size_t in <sys/types.h>" >&5 |
---|
3960 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
3961 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3962 | else |
---|
3963 | cat > conftest.$ac_ext <<EOF |
---|
3964 | #line 3965 "configure" |
---|
3965 | #include "confdefs.h" |
---|
3966 | |
---|
3967 | #include <sys/types.h> |
---|
3968 | #if STDC_HEADERS |
---|
3969 | #include <stdlib.h> |
---|
3970 | #include <stddef.h> |
---|
3971 | #endif |
---|
3972 | |
---|
3973 | int main() { |
---|
3974 | size_t foo; |
---|
3975 | ; return 0; } |
---|
3976 | EOF |
---|
3977 | if { (eval echo configure:3978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3978 | rm -rf conftest* |
---|
3979 | ac_cv_type_size_t=yes |
---|
3980 | else |
---|
3981 | echo "configure: failed program was:" >&5 |
---|
3982 | cat conftest.$ac_ext >&5 |
---|
3983 | rm -rf conftest* |
---|
3984 | ac_cv_type_size_t=no |
---|
3985 | fi |
---|
3986 | rm -f conftest* |
---|
3987 | fi |
---|
3988 | |
---|
3989 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
3990 | if test $ac_cv_type_size_t = no; then |
---|
3991 | cat >> confdefs.h <<\EOF |
---|
3992 | #define size_t unsigned |
---|
3993 | EOF |
---|
3994 | |
---|
3995 | fi |
---|
3996 | |
---|
3997 | |
---|
3998 | |
---|
3999 | echo $ac_n "checking off_t in <sys/types.h>""... $ac_c" 1>&6 |
---|
4000 | echo "configure:4001: checking off_t in <sys/types.h>" >&5 |
---|
4001 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
---|
4002 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4003 | else |
---|
4004 | cat > conftest.$ac_ext <<EOF |
---|
4005 | #line 4006 "configure" |
---|
4006 | #include "confdefs.h" |
---|
4007 | |
---|
4008 | #include <sys/types.h> |
---|
4009 | #if STDC_HEADERS |
---|
4010 | #include <stdlib.h> |
---|
4011 | #include <stddef.h> |
---|
4012 | #endif |
---|
4013 | |
---|
4014 | int main() { |
---|
4015 | off_t foo; |
---|
4016 | ; return 0; } |
---|
4017 | EOF |
---|
4018 | if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
4019 | rm -rf conftest* |
---|
4020 | ac_cv_type_off_t=yes |
---|
4021 | else |
---|
4022 | echo "configure: failed program was:" >&5 |
---|
4023 | cat conftest.$ac_ext >&5 |
---|
4024 | rm -rf conftest* |
---|
4025 | ac_cv_type_off_t=no |
---|
4026 | fi |
---|
4027 | rm -f conftest* |
---|
4028 | fi |
---|
4029 | |
---|
4030 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
---|
4031 | if test $ac_cv_type_off_t = no; then |
---|
4032 | cat >> confdefs.h <<\EOF |
---|
4033 | #define off_t long |
---|
4034 | EOF |
---|
4035 | |
---|
4036 | fi |
---|
4037 | |
---|
4038 | |
---|
4039 | |
---|
4040 | |
---|
4041 | ALL_LINGUAS="az ca da de el es fi fr ga gl hu it ja ko lt nl nn no pl pt_BR ro ru sk sl sv tr uk wa" |
---|
4042 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
4043 | echo "configure:4044: checking for ANSI C header files" >&5 |
---|
4044 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
4045 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4046 | else |
---|
4047 | cat > conftest.$ac_ext <<EOF |
---|
4048 | #line 4049 "configure" |
---|
4049 | #include "confdefs.h" |
---|
4050 | #include <stdlib.h> |
---|
4051 | #include <stdarg.h> |
---|
4052 | #include <string.h> |
---|
4053 | #include <float.h> |
---|
4054 | EOF |
---|
4055 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4056 | { (eval echo configure:4057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4057 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4058 | if test -z "$ac_err"; then |
---|
4059 | rm -rf conftest* |
---|
4060 | ac_cv_header_stdc=yes |
---|
4061 | else |
---|
4062 | echo "$ac_err" >&5 |
---|
4063 | echo "configure: failed program was:" >&5 |
---|
4064 | cat conftest.$ac_ext >&5 |
---|
4065 | rm -rf conftest* |
---|
4066 | ac_cv_header_stdc=no |
---|
4067 | fi |
---|
4068 | rm -f conftest* |
---|
4069 | |
---|
4070 | if test $ac_cv_header_stdc = yes; then |
---|
4071 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4072 | cat > conftest.$ac_ext <<EOF |
---|
4073 | #line 4074 "configure" |
---|
4074 | #include "confdefs.h" |
---|
4075 | #include <string.h> |
---|
4076 | EOF |
---|
4077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4078 | egrep "memchr" >/dev/null 2>&1; then |
---|
4079 | : |
---|
4080 | else |
---|
4081 | rm -rf conftest* |
---|
4082 | ac_cv_header_stdc=no |
---|
4083 | fi |
---|
4084 | rm -f conftest* |
---|
4085 | |
---|
4086 | fi |
---|
4087 | |
---|
4088 | if test $ac_cv_header_stdc = yes; then |
---|
4089 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4090 | cat > conftest.$ac_ext <<EOF |
---|
4091 | #line 4092 "configure" |
---|
4092 | #include "confdefs.h" |
---|
4093 | #include <stdlib.h> |
---|
4094 | EOF |
---|
4095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4096 | egrep "free" >/dev/null 2>&1; then |
---|
4097 | : |
---|
4098 | else |
---|
4099 | rm -rf conftest* |
---|
4100 | ac_cv_header_stdc=no |
---|
4101 | fi |
---|
4102 | rm -f conftest* |
---|
4103 | |
---|
4104 | fi |
---|
4105 | |
---|
4106 | if test $ac_cv_header_stdc = yes; then |
---|
4107 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4108 | if test "$cross_compiling" = yes; then |
---|
4109 | : |
---|
4110 | else |
---|
4111 | cat > conftest.$ac_ext <<EOF |
---|
4112 | #line 4113 "configure" |
---|
4113 | #include "confdefs.h" |
---|
4114 | #include <ctype.h> |
---|
4115 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4116 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4117 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4118 | int main () { int i; for (i = 0; i < 256; i++) |
---|
4119 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
4120 | exit (0); } |
---|
4121 | |
---|
4122 | EOF |
---|
4123 | if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
4124 | then |
---|
4125 | : |
---|
4126 | else |
---|
4127 | echo "configure: failed program was:" >&5 |
---|
4128 | cat conftest.$ac_ext >&5 |
---|
4129 | rm -fr conftest* |
---|
4130 | ac_cv_header_stdc=no |
---|
4131 | fi |
---|
4132 | rm -fr conftest* |
---|
4133 | fi |
---|
4134 | |
---|
4135 | fi |
---|
4136 | fi |
---|
4137 | |
---|
4138 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
4139 | if test $ac_cv_header_stdc = yes; then |
---|
4140 | cat >> confdefs.h <<\EOF |
---|
4141 | #define STDC_HEADERS 1 |
---|
4142 | EOF |
---|
4143 | |
---|
4144 | fi |
---|
4145 | |
---|
4146 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
4147 | echo "configure:4148: checking for working const" >&5 |
---|
4148 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
4149 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4150 | else |
---|
4151 | cat > conftest.$ac_ext <<EOF |
---|
4152 | #line 4153 "configure" |
---|
4153 | #include "confdefs.h" |
---|
4154 | |
---|
4155 | int main() { |
---|
4156 | |
---|
4157 | /* Ultrix mips cc rejects this. */ |
---|
4158 | typedef int charset[2]; const charset x; |
---|
4159 | /* SunOS 4.1.1 cc rejects this. */ |
---|
4160 | char const *const *ccp; |
---|
4161 | char **p; |
---|
4162 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
4163 | struct point {int x, y;}; |
---|
4164 | static struct point const zero = {0,0}; |
---|
4165 | /* AIX XL C 1.02.0.0 rejects this. |
---|
4166 | It does not let you subtract one const X* pointer from another in an arm |
---|
4167 | of an if-expression whose if-part is not a constant expression */ |
---|
4168 | const char *g = "string"; |
---|
4169 | ccp = &g + (g ? g-g : 0); |
---|
4170 | /* HPUX 7.0 cc rejects these. */ |
---|
4171 | ++ccp; |
---|
4172 | p = (char**) ccp; |
---|
4173 | ccp = (char const *const *) p; |
---|
4174 | { /* SCO 3.2v4 cc rejects this. */ |
---|
4175 | char *t; |
---|
4176 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
4177 | |
---|
4178 | *t++ = 0; |
---|
4179 | } |
---|
4180 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
4181 | int x[] = {25, 17}; |
---|
4182 | const int *foo = &x[0]; |
---|
4183 | ++foo; |
---|
4184 | } |
---|
4185 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
4186 | typedef const int *iptr; |
---|
4187 | iptr p = 0; |
---|
4188 | ++p; |
---|
4189 | } |
---|
4190 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
4191 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
4192 | struct s { int j; const int *ap[3]; }; |
---|
4193 | struct s *b; b->j = 5; |
---|
4194 | } |
---|
4195 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
4196 | const int foo = 10; |
---|
4197 | } |
---|
4198 | |
---|
4199 | ; return 0; } |
---|
4200 | EOF |
---|
4201 | if { (eval echo configure:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
4202 | rm -rf conftest* |
---|
4203 | ac_cv_c_const=yes |
---|
4204 | else |
---|
4205 | echo "configure: failed program was:" >&5 |
---|
4206 | cat conftest.$ac_ext >&5 |
---|
4207 | rm -rf conftest* |
---|
4208 | ac_cv_c_const=no |
---|
4209 | fi |
---|
4210 | rm -f conftest* |
---|
4211 | fi |
---|
4212 | |
---|
4213 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
4214 | if test $ac_cv_c_const = no; then |
---|
4215 | cat >> confdefs.h <<\EOF |
---|
4216 | #define const |
---|
4217 | EOF |
---|
4218 | |
---|
4219 | fi |
---|
4220 | |
---|
4221 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
4222 | echo "configure:4223: checking for inline" >&5 |
---|
4223 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
4224 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4225 | else |
---|
4226 | ac_cv_c_inline=no |
---|
4227 | for ac_kw in inline __inline__ __inline; do |
---|
4228 | cat > conftest.$ac_ext <<EOF |
---|
4229 | #line 4230 "configure" |
---|
4230 | #include "confdefs.h" |
---|
4231 | |
---|
4232 | int main() { |
---|
4233 | } $ac_kw foo() { |
---|
4234 | ; return 0; } |
---|
4235 | EOF |
---|
4236 | if { (eval echo configure:4237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
4237 | rm -rf conftest* |
---|
4238 | ac_cv_c_inline=$ac_kw; break |
---|
4239 | else |
---|
4240 | echo "configure: failed program was:" >&5 |
---|
4241 | cat conftest.$ac_ext >&5 |
---|
4242 | fi |
---|
4243 | rm -f conftest* |
---|
4244 | done |
---|
4245 | |
---|
4246 | fi |
---|
4247 | |
---|
4248 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
4249 | case "$ac_cv_c_inline" in |
---|
4250 | inline | yes) ;; |
---|
4251 | no) cat >> confdefs.h <<\EOF |
---|
4252 | #define inline |
---|
4253 | EOF |
---|
4254 | ;; |
---|
4255 | *) cat >> confdefs.h <<EOF |
---|
4256 | #define inline $ac_cv_c_inline |
---|
4257 | EOF |
---|
4258 | ;; |
---|
4259 | esac |
---|
4260 | |
---|
4261 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
4262 | # for constant arguments. Useless! |
---|
4263 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
4264 | echo "configure:4265: checking for working alloca.h" >&5 |
---|
4265 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
4266 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4267 | else |
---|
4268 | cat > conftest.$ac_ext <<EOF |
---|
4269 | #line 4270 "configure" |
---|
4270 | #include "confdefs.h" |
---|
4271 | #include <alloca.h> |
---|
4272 | int main() { |
---|
4273 | char *p = alloca(2 * sizeof(int)); |
---|
4274 | ; return 0; } |
---|
4275 | EOF |
---|
4276 | if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4277 | rm -rf conftest* |
---|
4278 | ac_cv_header_alloca_h=yes |
---|
4279 | else |
---|
4280 | echo "configure: failed program was:" >&5 |
---|
4281 | cat conftest.$ac_ext >&5 |
---|
4282 | rm -rf conftest* |
---|
4283 | ac_cv_header_alloca_h=no |
---|
4284 | fi |
---|
4285 | rm -f conftest* |
---|
4286 | fi |
---|
4287 | |
---|
4288 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
4289 | if test $ac_cv_header_alloca_h = yes; then |
---|
4290 | cat >> confdefs.h <<\EOF |
---|
4291 | #define HAVE_ALLOCA_H 1 |
---|
4292 | EOF |
---|
4293 | |
---|
4294 | fi |
---|
4295 | |
---|
4296 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
4297 | echo "configure:4298: checking for alloca" >&5 |
---|
4298 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
4299 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4300 | else |
---|
4301 | cat > conftest.$ac_ext <<EOF |
---|
4302 | #line 4303 "configure" |
---|
4303 | #include "confdefs.h" |
---|
4304 | |
---|
4305 | #ifdef __GNUC__ |
---|
4306 | # define alloca __builtin_alloca |
---|
4307 | #else |
---|
4308 | # ifdef _MSC_VER |
---|
4309 | # include <malloc.h> |
---|
4310 | # define alloca _alloca |
---|
4311 | # else |
---|
4312 | # if HAVE_ALLOCA_H |
---|
4313 | # include <alloca.h> |
---|
4314 | # else |
---|
4315 | # ifdef _AIX |
---|
4316 | #pragma alloca |
---|
4317 | # else |
---|
4318 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
4319 | char *alloca (); |
---|
4320 | # endif |
---|
4321 | # endif |
---|
4322 | # endif |
---|
4323 | # endif |
---|
4324 | #endif |
---|
4325 | |
---|
4326 | int main() { |
---|
4327 | char *p = (char *) alloca(1); |
---|
4328 | ; return 0; } |
---|
4329 | EOF |
---|
4330 | if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4331 | rm -rf conftest* |
---|
4332 | ac_cv_func_alloca_works=yes |
---|
4333 | else |
---|
4334 | echo "configure: failed program was:" >&5 |
---|
4335 | cat conftest.$ac_ext >&5 |
---|
4336 | rm -rf conftest* |
---|
4337 | ac_cv_func_alloca_works=no |
---|
4338 | fi |
---|
4339 | rm -f conftest* |
---|
4340 | fi |
---|
4341 | |
---|
4342 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
4343 | if test $ac_cv_func_alloca_works = yes; then |
---|
4344 | cat >> confdefs.h <<\EOF |
---|
4345 | #define HAVE_ALLOCA 1 |
---|
4346 | EOF |
---|
4347 | |
---|
4348 | fi |
---|
4349 | |
---|
4350 | if test $ac_cv_func_alloca_works = no; then |
---|
4351 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
4352 | # that cause trouble. Some versions do not even contain alloca or |
---|
4353 | # contain a buggy version. If you still want to use their alloca, |
---|
4354 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
4355 | ALLOCA=alloca.${ac_objext} |
---|
4356 | cat >> confdefs.h <<\EOF |
---|
4357 | #define C_ALLOCA 1 |
---|
4358 | EOF |
---|
4359 | |
---|
4360 | |
---|
4361 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
4362 | echo "configure:4363: checking whether alloca needs Cray hooks" >&5 |
---|
4363 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
4364 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4365 | else |
---|
4366 | cat > conftest.$ac_ext <<EOF |
---|
4367 | #line 4368 "configure" |
---|
4368 | #include "confdefs.h" |
---|
4369 | #if defined(CRAY) && ! defined(CRAY2) |
---|
4370 | webecray |
---|
4371 | #else |
---|
4372 | wenotbecray |
---|
4373 | #endif |
---|
4374 | |
---|
4375 | EOF |
---|
4376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4377 | egrep "webecray" >/dev/null 2>&1; then |
---|
4378 | rm -rf conftest* |
---|
4379 | ac_cv_os_cray=yes |
---|
4380 | else |
---|
4381 | rm -rf conftest* |
---|
4382 | ac_cv_os_cray=no |
---|
4383 | fi |
---|
4384 | rm -f conftest* |
---|
4385 | |
---|
4386 | fi |
---|
4387 | |
---|
4388 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
4389 | if test $ac_cv_os_cray = yes; then |
---|
4390 | for ac_func in _getb67 GETB67 getb67; do |
---|
4391 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4392 | echo "configure:4393: checking for $ac_func" >&5 |
---|
4393 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4394 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4395 | else |
---|
4396 | cat > conftest.$ac_ext <<EOF |
---|
4397 | #line 4398 "configure" |
---|
4398 | #include "confdefs.h" |
---|
4399 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4400 | which can conflict with char $ac_func(); below. */ |
---|
4401 | #include <assert.h> |
---|
4402 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4403 | /* We use char because int might match the return type of a gcc2 |
---|
4404 | builtin and then its argument prototype would still apply. */ |
---|
4405 | char $ac_func(); |
---|
4406 | |
---|
4407 | int main() { |
---|
4408 | |
---|
4409 | /* The GNU C library defines this for functions which it implements |
---|
4410 | to always fail with ENOSYS. Some functions are actually named |
---|
4411 | something starting with __ and the normal name is an alias. */ |
---|
4412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4413 | choke me |
---|
4414 | #else |
---|
4415 | $ac_func(); |
---|
4416 | #endif |
---|
4417 | |
---|
4418 | ; return 0; } |
---|
4419 | EOF |
---|
4420 | if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4421 | rm -rf conftest* |
---|
4422 | eval "ac_cv_func_$ac_func=yes" |
---|
4423 | else |
---|
4424 | echo "configure: failed program was:" >&5 |
---|
4425 | cat conftest.$ac_ext >&5 |
---|
4426 | rm -rf conftest* |
---|
4427 | eval "ac_cv_func_$ac_func=no" |
---|
4428 | fi |
---|
4429 | rm -f conftest* |
---|
4430 | fi |
---|
4431 | |
---|
4432 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4433 | echo "$ac_t""yes" 1>&6 |
---|
4434 | cat >> confdefs.h <<EOF |
---|
4435 | #define CRAY_STACKSEG_END $ac_func |
---|
4436 | EOF |
---|
4437 | |
---|
4438 | break |
---|
4439 | else |
---|
4440 | echo "$ac_t""no" 1>&6 |
---|
4441 | fi |
---|
4442 | |
---|
4443 | done |
---|
4444 | fi |
---|
4445 | |
---|
4446 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
4447 | echo "configure:4448: checking stack direction for C alloca" >&5 |
---|
4448 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
4449 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4450 | else |
---|
4451 | if test "$cross_compiling" = yes; then |
---|
4452 | ac_cv_c_stack_direction=0 |
---|
4453 | else |
---|
4454 | cat > conftest.$ac_ext <<EOF |
---|
4455 | #line 4456 "configure" |
---|
4456 | #include "confdefs.h" |
---|
4457 | find_stack_direction () |
---|
4458 | { |
---|
4459 | static char *addr = 0; |
---|
4460 | auto char dummy; |
---|
4461 | if (addr == 0) |
---|
4462 | { |
---|
4463 | addr = &dummy; |
---|
4464 | return find_stack_direction (); |
---|
4465 | } |
---|
4466 | else |
---|
4467 | return (&dummy > addr) ? 1 : -1; |
---|
4468 | } |
---|
4469 | main () |
---|
4470 | { |
---|
4471 | exit (find_stack_direction() < 0); |
---|
4472 | } |
---|
4473 | EOF |
---|
4474 | if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
4475 | then |
---|
4476 | ac_cv_c_stack_direction=1 |
---|
4477 | else |
---|
4478 | echo "configure: failed program was:" >&5 |
---|
4479 | cat conftest.$ac_ext >&5 |
---|
4480 | rm -fr conftest* |
---|
4481 | ac_cv_c_stack_direction=-1 |
---|
4482 | fi |
---|
4483 | rm -fr conftest* |
---|
4484 | fi |
---|
4485 | |
---|
4486 | fi |
---|
4487 | |
---|
4488 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
4489 | cat >> confdefs.h <<EOF |
---|
4490 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
4491 | EOF |
---|
4492 | |
---|
4493 | fi |
---|
4494 | |
---|
4495 | for ac_hdr in unistd.h |
---|
4496 | do |
---|
4497 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4498 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4499 | echo "configure:4500: checking for $ac_hdr" >&5 |
---|
4500 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4501 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4502 | else |
---|
4503 | cat > conftest.$ac_ext <<EOF |
---|
4504 | #line 4505 "configure" |
---|
4505 | #include "confdefs.h" |
---|
4506 | #include <$ac_hdr> |
---|
4507 | EOF |
---|
4508 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4509 | { (eval echo configure:4510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4510 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4511 | if test -z "$ac_err"; then |
---|
4512 | rm -rf conftest* |
---|
4513 | eval "ac_cv_header_$ac_safe=yes" |
---|
4514 | else |
---|
4515 | echo "$ac_err" >&5 |
---|
4516 | echo "configure: failed program was:" >&5 |
---|
4517 | cat conftest.$ac_ext >&5 |
---|
4518 | rm -rf conftest* |
---|
4519 | eval "ac_cv_header_$ac_safe=no" |
---|
4520 | fi |
---|
4521 | rm -f conftest* |
---|
4522 | fi |
---|
4523 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4524 | echo "$ac_t""yes" 1>&6 |
---|
4525 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4526 | cat >> confdefs.h <<EOF |
---|
4527 | #define $ac_tr_hdr 1 |
---|
4528 | EOF |
---|
4529 | |
---|
4530 | else |
---|
4531 | echo "$ac_t""no" 1>&6 |
---|
4532 | fi |
---|
4533 | done |
---|
4534 | |
---|
4535 | for ac_func in getpagesize |
---|
4536 | do |
---|
4537 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4538 | echo "configure:4539: checking for $ac_func" >&5 |
---|
4539 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4540 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4541 | else |
---|
4542 | cat > conftest.$ac_ext <<EOF |
---|
4543 | #line 4544 "configure" |
---|
4544 | #include "confdefs.h" |
---|
4545 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4546 | which can conflict with char $ac_func(); below. */ |
---|
4547 | #include <assert.h> |
---|
4548 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4549 | /* We use char because int might match the return type of a gcc2 |
---|
4550 | builtin and then its argument prototype would still apply. */ |
---|
4551 | char $ac_func(); |
---|
4552 | |
---|
4553 | int main() { |
---|
4554 | |
---|
4555 | /* The GNU C library defines this for functions which it implements |
---|
4556 | to always fail with ENOSYS. Some functions are actually named |
---|
4557 | something starting with __ and the normal name is an alias. */ |
---|
4558 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4559 | choke me |
---|
4560 | #else |
---|
4561 | $ac_func(); |
---|
4562 | #endif |
---|
4563 | |
---|
4564 | ; return 0; } |
---|
4565 | EOF |
---|
4566 | if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4567 | rm -rf conftest* |
---|
4568 | eval "ac_cv_func_$ac_func=yes" |
---|
4569 | else |
---|
4570 | echo "configure: failed program was:" >&5 |
---|
4571 | cat conftest.$ac_ext >&5 |
---|
4572 | rm -rf conftest* |
---|
4573 | eval "ac_cv_func_$ac_func=no" |
---|
4574 | fi |
---|
4575 | rm -f conftest* |
---|
4576 | fi |
---|
4577 | |
---|
4578 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4579 | echo "$ac_t""yes" 1>&6 |
---|
4580 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4581 | cat >> confdefs.h <<EOF |
---|
4582 | #define $ac_tr_func 1 |
---|
4583 | EOF |
---|
4584 | |
---|
4585 | else |
---|
4586 | echo "$ac_t""no" 1>&6 |
---|
4587 | fi |
---|
4588 | done |
---|
4589 | |
---|
4590 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
4591 | echo "configure:4592: checking for working mmap" >&5 |
---|
4592 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
---|
4593 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4594 | else |
---|
4595 | if test "$cross_compiling" = yes; then |
---|
4596 | ac_cv_func_mmap_fixed_mapped=no |
---|
4597 | else |
---|
4598 | cat > conftest.$ac_ext <<EOF |
---|
4599 | #line 4600 "configure" |
---|
4600 | #include "confdefs.h" |
---|
4601 | |
---|
4602 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
4603 | Here is a matrix of mmap possibilities: |
---|
4604 | mmap private not fixed |
---|
4605 | mmap private fixed at somewhere currently unmapped |
---|
4606 | mmap private fixed at somewhere already mapped |
---|
4607 | mmap shared not fixed |
---|
4608 | mmap shared fixed at somewhere currently unmapped |
---|
4609 | mmap shared fixed at somewhere already mapped |
---|
4610 | For private mappings, we should verify that changes cannot be read() |
---|
4611 | back from the file, nor mmap's back from the file at a different |
---|
4612 | address. (There have been systems where private was not correctly |
---|
4613 | implemented like the infamous i386 svr4.0, and systems where the |
---|
4614 | VM page cache was not coherent with the filesystem buffer cache |
---|
4615 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
4616 | For shared mappings, we should conversely verify that changes get |
---|
4617 | propogated back to all the places they're supposed to be. |
---|
4618 | |
---|
4619 | Grep wants private fixed already mapped. |
---|
4620 | The main things grep needs to know about mmap are: |
---|
4621 | * does it exist and is it safe to write into the mmap'd area |
---|
4622 | * how to use it (BSD variants) */ |
---|
4623 | #include <sys/types.h> |
---|
4624 | #include <fcntl.h> |
---|
4625 | #include <sys/mman.h> |
---|
4626 | |
---|
4627 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
4628 | #ifndef HAVE_GETPAGESIZE |
---|
4629 | # ifdef HAVE_UNISTD_H |
---|
4630 | # include <unistd.h> |
---|
4631 | # endif |
---|
4632 | |
---|
4633 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
4634 | # ifndef HAVE_SYS_PARAM_H |
---|
4635 | # define HAVE_SYS_PARAM_H 1 |
---|
4636 | # endif |
---|
4637 | |
---|
4638 | # ifdef _SC_PAGESIZE |
---|
4639 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
4640 | # else /* no _SC_PAGESIZE */ |
---|
4641 | # ifdef HAVE_SYS_PARAM_H |
---|
4642 | # include <sys/param.h> |
---|
4643 | # ifdef EXEC_PAGESIZE |
---|
4644 | # define getpagesize() EXEC_PAGESIZE |
---|
4645 | # else /* no EXEC_PAGESIZE */ |
---|
4646 | # ifdef NBPG |
---|
4647 | # define getpagesize() NBPG * CLSIZE |
---|
4648 | # ifndef CLSIZE |
---|
4649 | # define CLSIZE 1 |
---|
4650 | # endif /* no CLSIZE */ |
---|
4651 | # else /* no NBPG */ |
---|
4652 | # ifdef NBPC |
---|
4653 | # define getpagesize() NBPC |
---|
4654 | # else /* no NBPC */ |
---|
4655 | # ifdef PAGESIZE |
---|
4656 | # define getpagesize() PAGESIZE |
---|
4657 | # endif /* PAGESIZE */ |
---|
4658 | # endif /* no NBPC */ |
---|
4659 | # endif /* no NBPG */ |
---|
4660 | # endif /* no EXEC_PAGESIZE */ |
---|
4661 | # else /* no HAVE_SYS_PARAM_H */ |
---|
4662 | # define getpagesize() 8192 /* punt totally */ |
---|
4663 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
4664 | # endif /* no _SC_PAGESIZE */ |
---|
4665 | |
---|
4666 | #endif /* no HAVE_GETPAGESIZE */ |
---|
4667 | |
---|
4668 | #ifdef __cplusplus |
---|
4669 | extern "C" { void *malloc(unsigned); } |
---|
4670 | #else |
---|
4671 | char *malloc(); |
---|
4672 | #endif |
---|
4673 | |
---|
4674 | int |
---|
4675 | main() |
---|
4676 | { |
---|
4677 | char *data, *data2, *data3; |
---|
4678 | int i, pagesize; |
---|
4679 | int fd; |
---|
4680 | |
---|
4681 | pagesize = getpagesize(); |
---|
4682 | |
---|
4683 | /* |
---|
4684 | * First, make a file with some known garbage in it. |
---|
4685 | */ |
---|
4686 | data = malloc(pagesize); |
---|
4687 | if (!data) |
---|
4688 | exit(1); |
---|
4689 | for (i = 0; i < pagesize; ++i) |
---|
4690 | *(data + i) = rand(); |
---|
4691 | umask(0); |
---|
4692 | fd = creat("conftestmmap", 0600); |
---|
4693 | if (fd < 0) |
---|
4694 | exit(1); |
---|
4695 | if (write(fd, data, pagesize) != pagesize) |
---|
4696 | exit(1); |
---|
4697 | close(fd); |
---|
4698 | |
---|
4699 | /* |
---|
4700 | * Next, try to mmap the file at a fixed address which |
---|
4701 | * already has something else allocated at it. If we can, |
---|
4702 | * also make sure that we see the same garbage. |
---|
4703 | */ |
---|
4704 | fd = open("conftestmmap", O_RDWR); |
---|
4705 | if (fd < 0) |
---|
4706 | exit(1); |
---|
4707 | data2 = malloc(2 * pagesize); |
---|
4708 | if (!data2) |
---|
4709 | exit(1); |
---|
4710 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
4711 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
---|
4712 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
4713 | exit(1); |
---|
4714 | for (i = 0; i < pagesize; ++i) |
---|
4715 | if (*(data + i) != *(data2 + i)) |
---|
4716 | exit(1); |
---|
4717 | |
---|
4718 | /* |
---|
4719 | * Finally, make sure that changes to the mapped area |
---|
4720 | * do not percolate back to the file as seen by read(). |
---|
4721 | * (This is a bug on some variants of i386 svr4.0.) |
---|
4722 | */ |
---|
4723 | for (i = 0; i < pagesize; ++i) |
---|
4724 | *(data2 + i) = *(data2 + i) + 1; |
---|
4725 | data3 = malloc(pagesize); |
---|
4726 | if (!data3) |
---|
4727 | exit(1); |
---|
4728 | if (read(fd, data3, pagesize) != pagesize) |
---|
4729 | exit(1); |
---|
4730 | for (i = 0; i < pagesize; ++i) |
---|
4731 | if (*(data + i) != *(data3 + i)) |
---|
4732 | exit(1); |
---|
4733 | close(fd); |
---|
4734 | unlink("conftestmmap"); |
---|
4735 | exit(0); |
---|
4736 | } |
---|
4737 | |
---|
4738 | EOF |
---|
4739 | if { (eval echo configure:4740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
4740 | then |
---|
4741 | ac_cv_func_mmap_fixed_mapped=yes |
---|
4742 | else |
---|
4743 | echo "configure: failed program was:" >&5 |
---|
4744 | cat conftest.$ac_ext >&5 |
---|
4745 | rm -fr conftest* |
---|
4746 | ac_cv_func_mmap_fixed_mapped=no |
---|
4747 | fi |
---|
4748 | rm -fr conftest* |
---|
4749 | fi |
---|
4750 | |
---|
4751 | fi |
---|
4752 | |
---|
4753 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
---|
4754 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
4755 | cat >> confdefs.h <<\EOF |
---|
4756 | #define HAVE_MMAP 1 |
---|
4757 | EOF |
---|
4758 | |
---|
4759 | fi |
---|
4760 | |
---|
4761 | |
---|
4762 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
---|
4763 | unistd.h sys/param.h |
---|
4764 | do |
---|
4765 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4766 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4767 | echo "configure:4768: checking for $ac_hdr" >&5 |
---|
4768 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4769 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4770 | else |
---|
4771 | cat > conftest.$ac_ext <<EOF |
---|
4772 | #line 4773 "configure" |
---|
4773 | #include "confdefs.h" |
---|
4774 | #include <$ac_hdr> |
---|
4775 | EOF |
---|
4776 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4777 | { (eval echo configure:4778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4778 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4779 | if test -z "$ac_err"; then |
---|
4780 | rm -rf conftest* |
---|
4781 | eval "ac_cv_header_$ac_safe=yes" |
---|
4782 | else |
---|
4783 | echo "$ac_err" >&5 |
---|
4784 | echo "configure: failed program was:" >&5 |
---|
4785 | cat conftest.$ac_ext >&5 |
---|
4786 | rm -rf conftest* |
---|
4787 | eval "ac_cv_header_$ac_safe=no" |
---|
4788 | fi |
---|
4789 | rm -f conftest* |
---|
4790 | fi |
---|
4791 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4792 | echo "$ac_t""yes" 1>&6 |
---|
4793 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4794 | cat >> confdefs.h <<EOF |
---|
4795 | #define $ac_tr_hdr 1 |
---|
4796 | EOF |
---|
4797 | |
---|
4798 | else |
---|
4799 | echo "$ac_t""no" 1>&6 |
---|
4800 | fi |
---|
4801 | done |
---|
4802 | |
---|
4803 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
---|
4804 | strdup __argz_count __argz_stringify __argz_next |
---|
4805 | do |
---|
4806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4807 | echo "configure:4808: checking for $ac_func" >&5 |
---|
4808 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4809 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4810 | else |
---|
4811 | cat > conftest.$ac_ext <<EOF |
---|
4812 | #line 4813 "configure" |
---|
4813 | #include "confdefs.h" |
---|
4814 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4815 | which can conflict with char $ac_func(); below. */ |
---|
4816 | #include <assert.h> |
---|
4817 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4818 | /* We use char because int might match the return type of a gcc2 |
---|
4819 | builtin and then its argument prototype would still apply. */ |
---|
4820 | char $ac_func(); |
---|
4821 | |
---|
4822 | int main() { |
---|
4823 | |
---|
4824 | /* The GNU C library defines this for functions which it implements |
---|
4825 | to always fail with ENOSYS. Some functions are actually named |
---|
4826 | something starting with __ and the normal name is an alias. */ |
---|
4827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4828 | choke me |
---|
4829 | #else |
---|
4830 | $ac_func(); |
---|
4831 | #endif |
---|
4832 | |
---|
4833 | ; return 0; } |
---|
4834 | EOF |
---|
4835 | if { (eval echo configure:4836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4836 | rm -rf conftest* |
---|
4837 | eval "ac_cv_func_$ac_func=yes" |
---|
4838 | else |
---|
4839 | echo "configure: failed program was:" >&5 |
---|
4840 | cat conftest.$ac_ext >&5 |
---|
4841 | rm -rf conftest* |
---|
4842 | eval "ac_cv_func_$ac_func=no" |
---|
4843 | fi |
---|
4844 | rm -f conftest* |
---|
4845 | fi |
---|
4846 | |
---|
4847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4848 | echo "$ac_t""yes" 1>&6 |
---|
4849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4850 | cat >> confdefs.h <<EOF |
---|
4851 | #define $ac_tr_func 1 |
---|
4852 | EOF |
---|
4853 | |
---|
4854 | else |
---|
4855 | echo "$ac_t""no" 1>&6 |
---|
4856 | fi |
---|
4857 | done |
---|
4858 | |
---|
4859 | |
---|
4860 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
---|
4861 | for ac_func in stpcpy |
---|
4862 | do |
---|
4863 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4864 | echo "configure:4865: checking for $ac_func" >&5 |
---|
4865 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4866 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4867 | else |
---|
4868 | cat > conftest.$ac_ext <<EOF |
---|
4869 | #line 4870 "configure" |
---|
4870 | #include "confdefs.h" |
---|
4871 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4872 | which can conflict with char $ac_func(); below. */ |
---|
4873 | #include <assert.h> |
---|
4874 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4875 | /* We use char because int might match the return type of a gcc2 |
---|
4876 | builtin and then its argument prototype would still apply. */ |
---|
4877 | char $ac_func(); |
---|
4878 | |
---|
4879 | int main() { |
---|
4880 | |
---|
4881 | /* The GNU C library defines this for functions which it implements |
---|
4882 | to always fail with ENOSYS. Some functions are actually named |
---|
4883 | something starting with __ and the normal name is an alias. */ |
---|
4884 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4885 | choke me |
---|
4886 | #else |
---|
4887 | $ac_func(); |
---|
4888 | #endif |
---|
4889 | |
---|
4890 | ; return 0; } |
---|
4891 | EOF |
---|
4892 | if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4893 | rm -rf conftest* |
---|
4894 | eval "ac_cv_func_$ac_func=yes" |
---|
4895 | else |
---|
4896 | echo "configure: failed program was:" >&5 |
---|
4897 | cat conftest.$ac_ext >&5 |
---|
4898 | rm -rf conftest* |
---|
4899 | eval "ac_cv_func_$ac_func=no" |
---|
4900 | fi |
---|
4901 | rm -f conftest* |
---|
4902 | fi |
---|
4903 | |
---|
4904 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4905 | echo "$ac_t""yes" 1>&6 |
---|
4906 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4907 | cat >> confdefs.h <<EOF |
---|
4908 | #define $ac_tr_func 1 |
---|
4909 | EOF |
---|
4910 | |
---|
4911 | else |
---|
4912 | echo "$ac_t""no" 1>&6 |
---|
4913 | fi |
---|
4914 | done |
---|
4915 | |
---|
4916 | fi |
---|
4917 | if test "${ac_cv_func_stpcpy}" = "yes"; then |
---|
4918 | cat >> confdefs.h <<\EOF |
---|
4919 | #define HAVE_STPCPY 1 |
---|
4920 | EOF |
---|
4921 | |
---|
4922 | fi |
---|
4923 | |
---|
4924 | if test $ac_cv_header_locale_h = yes; then |
---|
4925 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
---|
4926 | echo "configure:4927: checking for LC_MESSAGES" >&5 |
---|
4927 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
---|
4928 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4929 | else |
---|
4930 | cat > conftest.$ac_ext <<EOF |
---|
4931 | #line 4932 "configure" |
---|
4932 | #include "confdefs.h" |
---|
4933 | #include <locale.h> |
---|
4934 | int main() { |
---|
4935 | return LC_MESSAGES |
---|
4936 | ; return 0; } |
---|
4937 | EOF |
---|
4938 | if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4939 | rm -rf conftest* |
---|
4940 | am_cv_val_LC_MESSAGES=yes |
---|
4941 | else |
---|
4942 | echo "configure: failed program was:" >&5 |
---|
4943 | cat conftest.$ac_ext >&5 |
---|
4944 | rm -rf conftest* |
---|
4945 | am_cv_val_LC_MESSAGES=no |
---|
4946 | fi |
---|
4947 | rm -f conftest* |
---|
4948 | fi |
---|
4949 | |
---|
4950 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
---|
4951 | if test $am_cv_val_LC_MESSAGES = yes; then |
---|
4952 | cat >> confdefs.h <<\EOF |
---|
4953 | #define HAVE_LC_MESSAGES 1 |
---|
4954 | EOF |
---|
4955 | |
---|
4956 | fi |
---|
4957 | fi |
---|
4958 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
---|
4959 | echo "configure:4960: checking whether NLS is requested" >&5 |
---|
4960 | # Check whether --enable-nls or --disable-nls was given. |
---|
4961 | if test "${enable_nls+set}" = set; then |
---|
4962 | enableval="$enable_nls" |
---|
4963 | USE_NLS=$enableval |
---|
4964 | else |
---|
4965 | USE_NLS=yes |
---|
4966 | fi |
---|
4967 | |
---|
4968 | echo "$ac_t""$USE_NLS" 1>&6 |
---|
4969 | |
---|
4970 | |
---|
4971 | USE_INCLUDED_LIBINTL=no |
---|
4972 | |
---|
4973 | if test "$USE_NLS" = "yes"; then |
---|
4974 | # AC_DEFINE(ENABLE_NLS) |
---|
4975 | # AC_MSG_CHECKING([whether included gettext is requested]) |
---|
4976 | # AC_ARG_WITH(included-gettext, |
---|
4977 | # [ --with-included-gettext use the GNU gettext library included here], |
---|
4978 | # nls_cv_force_use_gnu_gettext=$withval, |
---|
4979 | # nls_cv_force_use_gnu_gettext=no) |
---|
4980 | # AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) |
---|
4981 | nls_cv_force_use_gnu_gettext="no" |
---|
4982 | |
---|
4983 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
---|
4984 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
---|
4985 | nls_cv_header_intl= |
---|
4986 | nls_cv_header_libgt= |
---|
4987 | CATOBJEXT=NONE |
---|
4988 | |
---|
4989 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
---|
4990 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
---|
4991 | echo "configure:4992: checking for libintl.h" >&5 |
---|
4992 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4993 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4994 | else |
---|
4995 | cat > conftest.$ac_ext <<EOF |
---|
4996 | #line 4997 "configure" |
---|
4997 | #include "confdefs.h" |
---|
4998 | #include <libintl.h> |
---|
4999 | EOF |
---|
5000 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5001 | { (eval echo configure:5002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5002 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5003 | if test -z "$ac_err"; then |
---|
5004 | rm -rf conftest* |
---|
5005 | eval "ac_cv_header_$ac_safe=yes" |
---|
5006 | else |
---|
5007 | echo "$ac_err" >&5 |
---|
5008 | echo "configure: failed program was:" >&5 |
---|
5009 | cat conftest.$ac_ext >&5 |
---|
5010 | rm -rf conftest* |
---|
5011 | eval "ac_cv_header_$ac_safe=no" |
---|
5012 | fi |
---|
5013 | rm -f conftest* |
---|
5014 | fi |
---|
5015 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5016 | echo "$ac_t""yes" 1>&6 |
---|
5017 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 |
---|
5018 | echo "configure:5019: checking for gettext in libc" >&5 |
---|
5019 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
---|
5020 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5021 | else |
---|
5022 | cat > conftest.$ac_ext <<EOF |
---|
5023 | #line 5024 "configure" |
---|
5024 | #include "confdefs.h" |
---|
5025 | #include <libintl.h> |
---|
5026 | int main() { |
---|
5027 | return (int) gettext ("") |
---|
5028 | ; return 0; } |
---|
5029 | EOF |
---|
5030 | if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5031 | rm -rf conftest* |
---|
5032 | gt_cv_func_gettext_libc=yes |
---|
5033 | else |
---|
5034 | echo "configure: failed program was:" >&5 |
---|
5035 | cat conftest.$ac_ext >&5 |
---|
5036 | rm -rf conftest* |
---|
5037 | gt_cv_func_gettext_libc=no |
---|
5038 | fi |
---|
5039 | rm -f conftest* |
---|
5040 | fi |
---|
5041 | |
---|
5042 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 |
---|
5043 | |
---|
5044 | if test "$gt_cv_func_gettext_libc" != "yes"; then |
---|
5045 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
---|
5046 | echo "configure:5047: checking for bindtextdomain in -lintl" >&5 |
---|
5047 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
---|
5048 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5049 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5050 | else |
---|
5051 | ac_save_LIBS="$LIBS" |
---|
5052 | LIBS="-lintl $LIBS" |
---|
5053 | cat > conftest.$ac_ext <<EOF |
---|
5054 | #line 5055 "configure" |
---|
5055 | #include "confdefs.h" |
---|
5056 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5057 | /* We use char because int might match the return type of a gcc2 |
---|
5058 | builtin and then its argument prototype would still apply. */ |
---|
5059 | char bindtextdomain(); |
---|
5060 | |
---|
5061 | int main() { |
---|
5062 | bindtextdomain() |
---|
5063 | ; return 0; } |
---|
5064 | EOF |
---|
5065 | if { (eval echo configure:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5066 | rm -rf conftest* |
---|
5067 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5068 | else |
---|
5069 | echo "configure: failed program was:" >&5 |
---|
5070 | cat conftest.$ac_ext >&5 |
---|
5071 | rm -rf conftest* |
---|
5072 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5073 | fi |
---|
5074 | rm -f conftest* |
---|
5075 | LIBS="$ac_save_LIBS" |
---|
5076 | |
---|
5077 | fi |
---|
5078 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5079 | echo "$ac_t""yes" 1>&6 |
---|
5080 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 |
---|
5081 | echo "configure:5082: checking for gettext in libintl" >&5 |
---|
5082 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
---|
5083 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5084 | else |
---|
5085 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 |
---|
5086 | echo "configure:5087: checking for gettext in -lintl" >&5 |
---|
5087 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
---|
5088 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5089 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5090 | else |
---|
5091 | ac_save_LIBS="$LIBS" |
---|
5092 | LIBS="-lintl $LIBS" |
---|
5093 | cat > conftest.$ac_ext <<EOF |
---|
5094 | #line 5095 "configure" |
---|
5095 | #include "confdefs.h" |
---|
5096 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5097 | /* We use char because int might match the return type of a gcc2 |
---|
5098 | builtin and then its argument prototype would still apply. */ |
---|
5099 | char gettext(); |
---|
5100 | |
---|
5101 | int main() { |
---|
5102 | gettext() |
---|
5103 | ; return 0; } |
---|
5104 | EOF |
---|
5105 | if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5106 | rm -rf conftest* |
---|
5107 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5108 | else |
---|
5109 | echo "configure: failed program was:" >&5 |
---|
5110 | cat conftest.$ac_ext >&5 |
---|
5111 | rm -rf conftest* |
---|
5112 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5113 | fi |
---|
5114 | rm -f conftest* |
---|
5115 | LIBS="$ac_save_LIBS" |
---|
5116 | |
---|
5117 | fi |
---|
5118 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5119 | echo "$ac_t""yes" 1>&6 |
---|
5120 | gt_cv_func_gettext_libintl=yes |
---|
5121 | else |
---|
5122 | echo "$ac_t""no" 1>&6 |
---|
5123 | gt_cv_func_gettext_libintl=no |
---|
5124 | fi |
---|
5125 | |
---|
5126 | fi |
---|
5127 | |
---|
5128 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 |
---|
5129 | else |
---|
5130 | echo "$ac_t""no" 1>&6 |
---|
5131 | fi |
---|
5132 | |
---|
5133 | fi |
---|
5134 | |
---|
5135 | if test "$gt_cv_func_gettext_libc" = "yes" \ |
---|
5136 | || test "$gt_cv_func_gettext_libintl" = "yes"; then |
---|
5137 | cat >> confdefs.h <<\EOF |
---|
5138 | #define HAVE_GETTEXT 1 |
---|
5139 | EOF |
---|
5140 | |
---|
5141 | # Extract the first word of "msgfmt", so it can be a program name with args. |
---|
5142 | set dummy msgfmt; ac_word=$2 |
---|
5143 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5144 | echo "configure:5145: checking for $ac_word" >&5 |
---|
5145 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
---|
5146 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5147 | else |
---|
5148 | case "$MSGFMT" in |
---|
5149 | /*) |
---|
5150 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
---|
5151 | ;; |
---|
5152 | *) |
---|
5153 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
5154 | for ac_dir in $PATH; do |
---|
5155 | test -z "$ac_dir" && ac_dir=. |
---|
5156 | if test -f $ac_dir/$ac_word; then |
---|
5157 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
---|
5158 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
---|
5159 | break |
---|
5160 | fi |
---|
5161 | fi |
---|
5162 | done |
---|
5163 | IFS="$ac_save_ifs" |
---|
5164 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
---|
5165 | ;; |
---|
5166 | esac |
---|
5167 | fi |
---|
5168 | MSGFMT="$ac_cv_path_MSGFMT" |
---|
5169 | if test -n "$MSGFMT"; then |
---|
5170 | echo "$ac_t""$MSGFMT" 1>&6 |
---|
5171 | else |
---|
5172 | echo "$ac_t""no" 1>&6 |
---|
5173 | fi |
---|
5174 | if test "$MSGFMT" != "no"; then |
---|
5175 | for ac_func in dcgettext |
---|
5176 | do |
---|
5177 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5178 | echo "configure:5179: checking for $ac_func" >&5 |
---|
5179 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5180 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5181 | else |
---|
5182 | cat > conftest.$ac_ext <<EOF |
---|
5183 | #line 5184 "configure" |
---|
5184 | #include "confdefs.h" |
---|
5185 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5186 | which can conflict with char $ac_func(); below. */ |
---|
5187 | #include <assert.h> |
---|
5188 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5189 | /* We use char because int might match the return type of a gcc2 |
---|
5190 | builtin and then its argument prototype would still apply. */ |
---|
5191 | char $ac_func(); |
---|
5192 | |
---|
5193 | int main() { |
---|
5194 | |
---|
5195 | /* The GNU C library defines this for functions which it implements |
---|
5196 | to always fail with ENOSYS. Some functions are actually named |
---|
5197 | something starting with __ and the normal name is an alias. */ |
---|
5198 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5199 | choke me |
---|
5200 | #else |
---|
5201 | $ac_func(); |
---|
5202 | #endif |
---|
5203 | |
---|
5204 | ; return 0; } |
---|
5205 | EOF |
---|
5206 | if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5207 | rm -rf conftest* |
---|
5208 | eval "ac_cv_func_$ac_func=yes" |
---|
5209 | else |
---|
5210 | echo "configure: failed program was:" >&5 |
---|
5211 | cat conftest.$ac_ext >&5 |
---|
5212 | rm -rf conftest* |
---|
5213 | eval "ac_cv_func_$ac_func=no" |
---|
5214 | fi |
---|
5215 | rm -f conftest* |
---|
5216 | fi |
---|
5217 | |
---|
5218 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5219 | echo "$ac_t""yes" 1>&6 |
---|
5220 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
5221 | cat >> confdefs.h <<EOF |
---|
5222 | #define $ac_tr_func 1 |
---|
5223 | EOF |
---|
5224 | |
---|
5225 | else |
---|
5226 | echo "$ac_t""no" 1>&6 |
---|
5227 | fi |
---|
5228 | done |
---|
5229 | |
---|
5230 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
---|
5231 | set dummy gmsgfmt; ac_word=$2 |
---|
5232 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5233 | echo "configure:5234: checking for $ac_word" >&5 |
---|
5234 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
---|
5235 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5236 | else |
---|
5237 | case "$GMSGFMT" in |
---|
5238 | /*) |
---|
5239 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
5240 | ;; |
---|
5241 | ?:/*) |
---|
5242 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
---|
5243 | ;; |
---|
5244 | *) |
---|
5245 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
5246 | ac_dummy="$PATH" |
---|
5247 | for ac_dir in $ac_dummy; do |
---|
5248 | test -z "$ac_dir" && ac_dir=. |
---|
5249 | if test -f $ac_dir/$ac_word; then |
---|
5250 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
---|
5251 | break |
---|
5252 | fi |
---|
5253 | done |
---|
5254 | IFS="$ac_save_ifs" |
---|
5255 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
---|
5256 | ;; |
---|
5257 | esac |
---|
5258 | fi |
---|
5259 | GMSGFMT="$ac_cv_path_GMSGFMT" |
---|
5260 | if test -n "$GMSGFMT"; then |
---|
5261 | echo "$ac_t""$GMSGFMT" 1>&6 |
---|
5262 | else |
---|
5263 | echo "$ac_t""no" 1>&6 |
---|
5264 | fi |
---|
5265 | |
---|
5266 | # Extract the first word of "xgettext", so it can be a program name with args. |
---|
5267 | set dummy xgettext; ac_word=$2 |
---|
5268 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5269 | echo "configure:5270: checking for $ac_word" >&5 |
---|
5270 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
---|
5271 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5272 | else |
---|
5273 | case "$XGETTEXT" in |
---|
5274 | /*) |
---|
5275 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
---|
5276 | ;; |
---|
5277 | *) |
---|
5278 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
5279 | for ac_dir in $PATH; do |
---|
5280 | test -z "$ac_dir" && ac_dir=. |
---|
5281 | if test -f $ac_dir/$ac_word; then |
---|
5282 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
---|
5283 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
---|
5284 | break |
---|
5285 | fi |
---|
5286 | fi |
---|
5287 | done |
---|
5288 | IFS="$ac_save_ifs" |
---|
5289 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
---|
5290 | ;; |
---|
5291 | esac |
---|
5292 | fi |
---|
5293 | XGETTEXT="$ac_cv_path_XGETTEXT" |
---|
5294 | if test -n "$XGETTEXT"; then |
---|
5295 | echo "$ac_t""$XGETTEXT" 1>&6 |
---|
5296 | else |
---|
5297 | echo "$ac_t""no" 1>&6 |
---|
5298 | fi |
---|
5299 | |
---|
5300 | cat > conftest.$ac_ext <<EOF |
---|
5301 | #line 5302 "configure" |
---|
5302 | #include "confdefs.h" |
---|
5303 | |
---|
5304 | int main() { |
---|
5305 | extern int _nl_msg_cat_cntr; |
---|
5306 | return _nl_msg_cat_cntr |
---|
5307 | ; return 0; } |
---|
5308 | EOF |
---|
5309 | if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5310 | rm -rf conftest* |
---|
5311 | CATOBJEXT=.gmo |
---|
5312 | DATADIRNAME=share |
---|
5313 | else |
---|
5314 | echo "configure: failed program was:" >&5 |
---|
5315 | cat conftest.$ac_ext >&5 |
---|
5316 | rm -rf conftest* |
---|
5317 | CATOBJEXT=.mo |
---|
5318 | DATADIRNAME=lib |
---|
5319 | fi |
---|
5320 | rm -f conftest* |
---|
5321 | INSTOBJEXT=.mo |
---|
5322 | fi |
---|
5323 | fi |
---|
5324 | |
---|
5325 | # Added by Martin Baulig 12/15/98 for libc5 systems |
---|
5326 | if test "$gt_cv_func_gettext_libc" != "yes" \ |
---|
5327 | && test "$gt_cv_func_gettext_libintl" = "yes"; then |
---|
5328 | INTLLIBS=-lintl |
---|
5329 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5330 | fi |
---|
5331 | |
---|
5332 | else |
---|
5333 | echo "$ac_t""no" 1>&6 |
---|
5334 | fi |
---|
5335 | |
---|
5336 | |
---|
5337 | if test "$CATOBJEXT" = "NONE"; then |
---|
5338 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 |
---|
5339 | echo "configure:5340: checking whether catgets can be used" >&5 |
---|
5340 | # Check whether --with-catgets or --without-catgets was given. |
---|
5341 | if test "${with_catgets+set}" = set; then |
---|
5342 | withval="$with_catgets" |
---|
5343 | nls_cv_use_catgets=$withval |
---|
5344 | else |
---|
5345 | nls_cv_use_catgets=no |
---|
5346 | fi |
---|
5347 | |
---|
5348 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 |
---|
5349 | |
---|
5350 | if test "$nls_cv_use_catgets" = "yes"; then |
---|
5351 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 |
---|
5352 | echo "configure:5353: checking for main in -li" >&5 |
---|
5353 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
---|
5354 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5355 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5356 | else |
---|
5357 | ac_save_LIBS="$LIBS" |
---|
5358 | LIBS="-li $LIBS" |
---|
5359 | cat > conftest.$ac_ext <<EOF |
---|
5360 | #line 5361 "configure" |
---|
5361 | #include "confdefs.h" |
---|
5362 | |
---|
5363 | int main() { |
---|
5364 | main() |
---|
5365 | ; return 0; } |
---|
5366 | EOF |
---|
5367 | if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5368 | rm -rf conftest* |
---|
5369 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5370 | else |
---|
5371 | echo "configure: failed program was:" >&5 |
---|
5372 | cat conftest.$ac_ext >&5 |
---|
5373 | rm -rf conftest* |
---|
5374 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5375 | fi |
---|
5376 | rm -f conftest* |
---|
5377 | LIBS="$ac_save_LIBS" |
---|
5378 | |
---|
5379 | fi |
---|
5380 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5381 | echo "$ac_t""yes" 1>&6 |
---|
5382 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
5383 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
5384 | cat >> confdefs.h <<EOF |
---|
5385 | #define $ac_tr_lib 1 |
---|
5386 | EOF |
---|
5387 | |
---|
5388 | LIBS="-li $LIBS" |
---|
5389 | |
---|
5390 | else |
---|
5391 | echo "$ac_t""no" 1>&6 |
---|
5392 | fi |
---|
5393 | |
---|
5394 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 |
---|
5395 | echo "configure:5396: checking for catgets" >&5 |
---|
5396 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
---|
5397 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5398 | else |
---|
5399 | cat > conftest.$ac_ext <<EOF |
---|
5400 | #line 5401 "configure" |
---|
5401 | #include "confdefs.h" |
---|
5402 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5403 | which can conflict with char catgets(); below. */ |
---|
5404 | #include <assert.h> |
---|
5405 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5406 | /* We use char because int might match the return type of a gcc2 |
---|
5407 | builtin and then its argument prototype would still apply. */ |
---|
5408 | char catgets(); |
---|
5409 | |
---|
5410 | int main() { |
---|
5411 | |
---|
5412 | /* The GNU C library defines this for functions which it implements |
---|
5413 | to always fail with ENOSYS. Some functions are actually named |
---|
5414 | something starting with __ and the normal name is an alias. */ |
---|
5415 | #if defined (__stub_catgets) || defined (__stub___catgets) |
---|
5416 | choke me |
---|
5417 | #else |
---|
5418 | catgets(); |
---|
5419 | #endif |
---|
5420 | |
---|
5421 | ; return 0; } |
---|
5422 | EOF |
---|
5423 | if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5424 | rm -rf conftest* |
---|
5425 | eval "ac_cv_func_catgets=yes" |
---|
5426 | else |
---|
5427 | echo "configure: failed program was:" >&5 |
---|
5428 | cat conftest.$ac_ext >&5 |
---|
5429 | rm -rf conftest* |
---|
5430 | eval "ac_cv_func_catgets=no" |
---|
5431 | fi |
---|
5432 | rm -f conftest* |
---|
5433 | fi |
---|
5434 | |
---|
5435 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then |
---|
5436 | echo "$ac_t""yes" 1>&6 |
---|
5437 | cat >> confdefs.h <<\EOF |
---|
5438 | #define HAVE_CATGETS 1 |
---|
5439 | EOF |
---|
5440 | |
---|
5441 | INTLOBJS="\$(CATOBJS)" |
---|
5442 | # Extract the first word of "gencat", so it can be a program name with args. |
---|
5443 | set dummy gencat; ac_word=$2 |
---|
5444 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5445 | echo "configure:5446: checking for $ac_word" >&5 |
---|
5446 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
---|
5447 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5448 | else |
---|
5449 | case "$GENCAT" in |
---|
5450 | /*) |
---|
5451 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. |
---|
5452 | ;; |
---|
5453 | ?:/*) |
---|
5454 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. |
---|
5455 | ;; |
---|
5456 | *) |
---|
5457 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
5458 | ac_dummy="$PATH" |
---|
5459 | for ac_dir in $ac_dummy; do |
---|
5460 | test -z "$ac_dir" && ac_dir=. |
---|
5461 | if test -f $ac_dir/$ac_word; then |
---|
5462 | ac_cv_path_GENCAT="$ac_dir/$ac_word" |
---|
5463 | break |
---|
5464 | fi |
---|
5465 | done |
---|
5466 | IFS="$ac_save_ifs" |
---|
5467 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" |
---|
5468 | ;; |
---|
5469 | esac |
---|
5470 | fi |
---|
5471 | GENCAT="$ac_cv_path_GENCAT" |
---|
5472 | if test -n "$GENCAT"; then |
---|
5473 | echo "$ac_t""$GENCAT" 1>&6 |
---|
5474 | else |
---|
5475 | echo "$ac_t""no" 1>&6 |
---|
5476 | fi |
---|
5477 | # if test "$GENCAT" != "no"; then |
---|
5478 | # AC_PATH_PROG(GMSGFMT, gmsgfmt, no) |
---|
5479 | # if test "$GMSGFMT" = "no"; then |
---|
5480 | # AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, |
---|
5481 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) |
---|
5482 | # fi |
---|
5483 | # AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
---|
5484 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
---|
5485 | # USE_INCLUDED_LIBINTL=yes |
---|
5486 | # CATOBJEXT=.cat |
---|
5487 | # INSTOBJEXT=.cat |
---|
5488 | # DATADIRNAME=lib |
---|
5489 | # INTLDEPS='$(top_builddir)/intl/libintl.a' |
---|
5490 | # INTLLIBS=$INTLDEPS |
---|
5491 | # LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5492 | # nls_cv_header_intl=intl/libintl.h |
---|
5493 | # nls_cv_header_libgt=intl/libgettext.h |
---|
5494 | # fi |
---|
5495 | |
---|
5496 | else |
---|
5497 | echo "$ac_t""no" 1>&6 |
---|
5498 | fi |
---|
5499 | |
---|
5500 | fi |
---|
5501 | fi |
---|
5502 | |
---|
5503 | if test "$CATOBJEXT" = "NONE"; then |
---|
5504 | nls_cv_use_gnu_gettext=yes |
---|
5505 | fi |
---|
5506 | fi |
---|
5507 | |
---|
5508 | if test "$nls_cv_use_gnu_gettext" != "yes"; then |
---|
5509 | cat >> confdefs.h <<\EOF |
---|
5510 | #define ENABLE_NLS 1 |
---|
5511 | EOF |
---|
5512 | |
---|
5513 | else |
---|
5514 | # Unset this variable since we use the non-zero value as a flag. |
---|
5515 | CATOBJEXT= |
---|
5516 | # dnl Mark actions used to generate GNU NLS library. |
---|
5517 | # INTLOBJS="\$(GETTOBJS)" |
---|
5518 | # AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
---|
5519 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) |
---|
5520 | # AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
---|
5521 | # AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
---|
5522 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
---|
5523 | # AC_SUBST(MSGFMT) |
---|
5524 | # USE_INCLUDED_LIBINTL=yes |
---|
5525 | # CATOBJEXT=.gmo |
---|
5526 | # INSTOBJEXT=.mo |
---|
5527 | # DATADIRNAME=share |
---|
5528 | # INTLDEPS='$(top_builddir)/intl/libintl.a' |
---|
5529 | # INTLLIBS=$INTLDEPS |
---|
5530 | # LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5531 | # nls_cv_header_intl=intl/libintl.h |
---|
5532 | # nls_cv_header_libgt=intl/libgettext.h |
---|
5533 | fi |
---|
5534 | |
---|
5535 | if test "$XGETTEXT" != ":"; then |
---|
5536 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
---|
5537 | : ; |
---|
5538 | else |
---|
5539 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
---|
5540 | XGETTEXT=":" |
---|
5541 | fi |
---|
5542 | fi |
---|
5543 | |
---|
5544 | # We need to process the po/ directory. |
---|
5545 | POSUB=po |
---|
5546 | else |
---|
5547 | DATADIRNAME=share |
---|
5548 | nls_cv_header_intl=intl/libintl.h |
---|
5549 | nls_cv_header_libgt=intl/libgettext.h |
---|
5550 | fi |
---|
5551 | |
---|
5552 | |
---|
5553 | |
---|
5554 | |
---|
5555 | # # If this is used in GNU gettext we have to set USE_NLS to `yes' |
---|
5556 | # # because some of the sources are only built for this goal. |
---|
5557 | # if test "$PACKAGE" = gettext; then |
---|
5558 | # USE_NLS=yes |
---|
5559 | # USE_INCLUDED_LIBINTL=yes |
---|
5560 | # fi |
---|
5561 | |
---|
5562 | for lang in $ALL_LINGUAS; do |
---|
5563 | GMOFILES="$GMOFILES $lang.gmo" |
---|
5564 | POFILES="$POFILES $lang.po" |
---|
5565 | done |
---|
5566 | |
---|
5567 | |
---|
5568 | |
---|
5569 | |
---|
5570 | |
---|
5571 | |
---|
5572 | |
---|
5573 | |
---|
5574 | |
---|
5575 | |
---|
5576 | |
---|
5577 | |
---|
5578 | |
---|
5579 | |
---|
5580 | if test "x$CATOBJEXT" != "x"; then |
---|
5581 | if test "x$ALL_LINGUAS" = "x"; then |
---|
5582 | LINGUAS= |
---|
5583 | else |
---|
5584 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
---|
5585 | echo "configure:5586: checking for catalogs to be installed" >&5 |
---|
5586 | NEW_LINGUAS= |
---|
5587 | if test "x$LINGUAS" = "x"; then |
---|
5588 | LINGUAS=$ALL_LINGUAS |
---|
5589 | fi |
---|
5590 | for lang in $LINGUAS; do |
---|
5591 | case "$ALL_LINGUAS" in |
---|
5592 | *\ $lang\ *|$lang\ *|*\ $lang) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
---|
5593 | esac |
---|
5594 | done |
---|
5595 | LINGUAS=$NEW_LINGUAS |
---|
5596 | echo "$ac_t""$LINGUAS" 1>&6 |
---|
5597 | fi |
---|
5598 | |
---|
5599 | if test -n "$LINGUAS"; then |
---|
5600 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
---|
5601 | fi |
---|
5602 | fi |
---|
5603 | |
---|
5604 | if test $ac_cv_header_locale_h = yes; then |
---|
5605 | INCLUDE_LOCALE_H="#include <locale.h>" |
---|
5606 | else |
---|
5607 | INCLUDE_LOCALE_H="\ |
---|
5608 | /* The system does not provide the header <locale.h>. Take care yourself. */" |
---|
5609 | fi |
---|
5610 | |
---|
5611 | |
---|
5612 | test -d intl || mkdir intl |
---|
5613 | if test "$CATOBJEXT" = ".cat"; then |
---|
5614 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
---|
5615 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 |
---|
5616 | echo "configure:5617: checking for linux/version.h" >&5 |
---|
5617 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5618 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5619 | else |
---|
5620 | cat > conftest.$ac_ext <<EOF |
---|
5621 | #line 5622 "configure" |
---|
5622 | #include "confdefs.h" |
---|
5623 | #include <linux/version.h> |
---|
5624 | EOF |
---|
5625 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5626 | { (eval echo configure:5627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5627 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5628 | if test -z "$ac_err"; then |
---|
5629 | rm -rf conftest* |
---|
5630 | eval "ac_cv_header_$ac_safe=yes" |
---|
5631 | else |
---|
5632 | echo "$ac_err" >&5 |
---|
5633 | echo "configure: failed program was:" >&5 |
---|
5634 | cat conftest.$ac_ext >&5 |
---|
5635 | rm -rf conftest* |
---|
5636 | eval "ac_cv_header_$ac_safe=no" |
---|
5637 | fi |
---|
5638 | rm -f conftest* |
---|
5639 | fi |
---|
5640 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5641 | echo "$ac_t""yes" 1>&6 |
---|
5642 | msgformat=linux |
---|
5643 | else |
---|
5644 | echo "$ac_t""no" 1>&6 |
---|
5645 | msgformat=xopen |
---|
5646 | fi |
---|
5647 | |
---|
5648 | |
---|
5649 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed |
---|
5650 | fi |
---|
5651 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ |
---|
5652 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed |
---|
5653 | |
---|
5654 | if test "$PACKAGE" = "gettext"; then |
---|
5655 | GT_NO="#NO#" |
---|
5656 | GT_YES= |
---|
5657 | else |
---|
5658 | GT_NO= |
---|
5659 | GT_YES="#YES#" |
---|
5660 | fi |
---|
5661 | |
---|
5662 | |
---|
5663 | |
---|
5664 | MKINSTALLDIRS= |
---|
5665 | if test -n "$ac_aux_dir"; then |
---|
5666 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
---|
5667 | fi |
---|
5668 | if test -z "$MKINSTALLDIRS"; then |
---|
5669 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
---|
5670 | fi |
---|
5671 | |
---|
5672 | |
---|
5673 | l= |
---|
5674 | |
---|
5675 | |
---|
5676 | test -d po || mkdir po |
---|
5677 | if test "x$srcdir" != "x."; then |
---|
5678 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
---|
5679 | posrcprefix="$srcdir/" |
---|
5680 | else |
---|
5681 | posrcprefix="../$srcdir/" |
---|
5682 | fi |
---|
5683 | else |
---|
5684 | posrcprefix="../" |
---|
5685 | fi |
---|
5686 | rm -f po/POTFILES |
---|
5687 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
---|
5688 | < $srcdir/po/POTFILES.in > po/POTFILES |
---|
5689 | |
---|
5690 | |
---|
5691 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
5692 | # for constant arguments. Useless! |
---|
5693 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
5694 | echo "configure:5695: checking for working alloca.h" >&5 |
---|
5695 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
5696 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5697 | else |
---|
5698 | cat > conftest.$ac_ext <<EOF |
---|
5699 | #line 5700 "configure" |
---|
5700 | #include "confdefs.h" |
---|
5701 | #include <alloca.h> |
---|
5702 | int main() { |
---|
5703 | char *p = alloca(2 * sizeof(int)); |
---|
5704 | ; return 0; } |
---|
5705 | EOF |
---|
5706 | if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5707 | rm -rf conftest* |
---|
5708 | ac_cv_header_alloca_h=yes |
---|
5709 | else |
---|
5710 | echo "configure: failed program was:" >&5 |
---|
5711 | cat conftest.$ac_ext >&5 |
---|
5712 | rm -rf conftest* |
---|
5713 | ac_cv_header_alloca_h=no |
---|
5714 | fi |
---|
5715 | rm -f conftest* |
---|
5716 | fi |
---|
5717 | |
---|
5718 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
5719 | if test $ac_cv_header_alloca_h = yes; then |
---|
5720 | cat >> confdefs.h <<\EOF |
---|
5721 | #define HAVE_ALLOCA_H 1 |
---|
5722 | EOF |
---|
5723 | |
---|
5724 | fi |
---|
5725 | |
---|
5726 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
5727 | echo "configure:5728: checking for alloca" >&5 |
---|
5728 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
5729 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5730 | else |
---|
5731 | cat > conftest.$ac_ext <<EOF |
---|
5732 | #line 5733 "configure" |
---|
5733 | #include "confdefs.h" |
---|
5734 | |
---|
5735 | #ifdef __GNUC__ |
---|
5736 | # define alloca __builtin_alloca |
---|
5737 | #else |
---|
5738 | # ifdef _MSC_VER |
---|
5739 | # include <malloc.h> |
---|
5740 | # define alloca _alloca |
---|
5741 | # else |
---|
5742 | # if HAVE_ALLOCA_H |
---|
5743 | # include <alloca.h> |
---|
5744 | # else |
---|
5745 | # ifdef _AIX |
---|
5746 | #pragma alloca |
---|
5747 | # else |
---|
5748 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
5749 | char *alloca (); |
---|
5750 | # endif |
---|
5751 | # endif |
---|
5752 | # endif |
---|
5753 | # endif |
---|
5754 | #endif |
---|
5755 | |
---|
5756 | int main() { |
---|
5757 | char *p = (char *) alloca(1); |
---|
5758 | ; return 0; } |
---|
5759 | EOF |
---|
5760 | if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5761 | rm -rf conftest* |
---|
5762 | ac_cv_func_alloca_works=yes |
---|
5763 | else |
---|
5764 | echo "configure: failed program was:" >&5 |
---|
5765 | cat conftest.$ac_ext >&5 |
---|
5766 | rm -rf conftest* |
---|
5767 | ac_cv_func_alloca_works=no |
---|
5768 | fi |
---|
5769 | rm -f conftest* |
---|
5770 | fi |
---|
5771 | |
---|
5772 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
5773 | if test $ac_cv_func_alloca_works = yes; then |
---|
5774 | cat >> confdefs.h <<\EOF |
---|
5775 | #define HAVE_ALLOCA 1 |
---|
5776 | EOF |
---|
5777 | |
---|
5778 | fi |
---|
5779 | |
---|
5780 | if test $ac_cv_func_alloca_works = no; then |
---|
5781 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
5782 | # that cause trouble. Some versions do not even contain alloca or |
---|
5783 | # contain a buggy version. If you still want to use their alloca, |
---|
5784 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
5785 | ALLOCA=alloca.${ac_objext} |
---|
5786 | cat >> confdefs.h <<\EOF |
---|
5787 | #define C_ALLOCA 1 |
---|
5788 | EOF |
---|
5789 | |
---|
5790 | |
---|
5791 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
5792 | echo "configure:5793: checking whether alloca needs Cray hooks" >&5 |
---|
5793 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
5794 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5795 | else |
---|
5796 | cat > conftest.$ac_ext <<EOF |
---|
5797 | #line 5798 "configure" |
---|
5798 | #include "confdefs.h" |
---|
5799 | #if defined(CRAY) && ! defined(CRAY2) |
---|
5800 | webecray |
---|
5801 | #else |
---|
5802 | wenotbecray |
---|
5803 | #endif |
---|
5804 | |
---|
5805 | EOF |
---|
5806 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5807 | egrep "webecray" >/dev/null 2>&1; then |
---|
5808 | rm -rf conftest* |
---|
5809 | ac_cv_os_cray=yes |
---|
5810 | else |
---|
5811 | rm -rf conftest* |
---|
5812 | ac_cv_os_cray=no |
---|
5813 | fi |
---|
5814 | rm -f conftest* |
---|
5815 | |
---|
5816 | fi |
---|
5817 | |
---|
5818 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
5819 | if test $ac_cv_os_cray = yes; then |
---|
5820 | for ac_func in _getb67 GETB67 getb67; do |
---|
5821 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5822 | echo "configure:5823: checking for $ac_func" >&5 |
---|
5823 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5824 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5825 | else |
---|
5826 | cat > conftest.$ac_ext <<EOF |
---|
5827 | #line 5828 "configure" |
---|
5828 | #include "confdefs.h" |
---|
5829 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5830 | which can conflict with char $ac_func(); below. */ |
---|
5831 | #include <assert.h> |
---|
5832 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5833 | /* We use char because int might match the return type of a gcc2 |
---|
5834 | builtin and then its argument prototype would still apply. */ |
---|
5835 | char $ac_func(); |
---|
5836 | |
---|
5837 | int main() { |
---|
5838 | |
---|
5839 | /* The GNU C library defines this for functions which it implements |
---|
5840 | to always fail with ENOSYS. Some functions are actually named |
---|
5841 | something starting with __ and the normal name is an alias. */ |
---|
5842 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5843 | choke me |
---|
5844 | #else |
---|
5845 | $ac_func(); |
---|
5846 | #endif |
---|
5847 | |
---|
5848 | ; return 0; } |
---|
5849 | EOF |
---|
5850 | if { (eval echo configure:5851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5851 | rm -rf conftest* |
---|
5852 | eval "ac_cv_func_$ac_func=yes" |
---|
5853 | else |
---|
5854 | echo "configure: failed program was:" >&5 |
---|
5855 | cat conftest.$ac_ext >&5 |
---|
5856 | rm -rf conftest* |
---|
5857 | eval "ac_cv_func_$ac_func=no" |
---|
5858 | fi |
---|
5859 | rm -f conftest* |
---|
5860 | fi |
---|
5861 | |
---|
5862 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5863 | echo "$ac_t""yes" 1>&6 |
---|
5864 | cat >> confdefs.h <<EOF |
---|
5865 | #define CRAY_STACKSEG_END $ac_func |
---|
5866 | EOF |
---|
5867 | |
---|
5868 | break |
---|
5869 | else |
---|
5870 | echo "$ac_t""no" 1>&6 |
---|
5871 | fi |
---|
5872 | |
---|
5873 | done |
---|
5874 | fi |
---|
5875 | |
---|
5876 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
5877 | echo "configure:5878: checking stack direction for C alloca" >&5 |
---|
5878 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
5879 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5880 | else |
---|
5881 | if test "$cross_compiling" = yes; then |
---|
5882 | ac_cv_c_stack_direction=0 |
---|
5883 | else |
---|
5884 | cat > conftest.$ac_ext <<EOF |
---|
5885 | #line 5886 "configure" |
---|
5886 | #include "confdefs.h" |
---|
5887 | find_stack_direction () |
---|
5888 | { |
---|
5889 | static char *addr = 0; |
---|
5890 | auto char dummy; |
---|
5891 | if (addr == 0) |
---|
5892 | { |
---|
5893 | addr = &dummy; |
---|
5894 | return find_stack_direction (); |
---|
5895 | } |
---|
5896 | else |
---|
5897 | return (&dummy > addr) ? 1 : -1; |
---|
5898 | } |
---|
5899 | main () |
---|
5900 | { |
---|
5901 | exit (find_stack_direction() < 0); |
---|
5902 | } |
---|
5903 | EOF |
---|
5904 | if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
5905 | then |
---|
5906 | ac_cv_c_stack_direction=1 |
---|
5907 | else |
---|
5908 | echo "configure: failed program was:" >&5 |
---|
5909 | cat conftest.$ac_ext >&5 |
---|
5910 | rm -fr conftest* |
---|
5911 | ac_cv_c_stack_direction=-1 |
---|
5912 | fi |
---|
5913 | rm -fr conftest* |
---|
5914 | fi |
---|
5915 | |
---|
5916 | fi |
---|
5917 | |
---|
5918 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
5919 | cat >> confdefs.h <<EOF |
---|
5920 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5921 | EOF |
---|
5922 | |
---|
5923 | fi |
---|
5924 | |
---|
5925 | for ac_func in getdtablesize open64 lseek64 statvfs |
---|
5926 | do |
---|
5927 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5928 | echo "configure:5929: checking for $ac_func" >&5 |
---|
5929 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5930 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5931 | else |
---|
5932 | cat > conftest.$ac_ext <<EOF |
---|
5933 | #line 5934 "configure" |
---|
5934 | #include "confdefs.h" |
---|
5935 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5936 | which can conflict with char $ac_func(); below. */ |
---|
5937 | #include <assert.h> |
---|
5938 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5939 | /* We use char because int might match the return type of a gcc2 |
---|
5940 | builtin and then its argument prototype would still apply. */ |
---|
5941 | char $ac_func(); |
---|
5942 | |
---|
5943 | int main() { |
---|
5944 | |
---|
5945 | /* The GNU C library defines this for functions which it implements |
---|
5946 | to always fail with ENOSYS. Some functions are actually named |
---|
5947 | something starting with __ and the normal name is an alias. */ |
---|
5948 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5949 | choke me |
---|
5950 | #else |
---|
5951 | $ac_func(); |
---|
5952 | #endif |
---|
5953 | |
---|
5954 | ; return 0; } |
---|
5955 | EOF |
---|
5956 | if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5957 | rm -rf conftest* |
---|
5958 | eval "ac_cv_func_$ac_func=yes" |
---|
5959 | else |
---|
5960 | echo "configure: failed program was:" >&5 |
---|
5961 | cat conftest.$ac_ext >&5 |
---|
5962 | rm -rf conftest* |
---|
5963 | eval "ac_cv_func_$ac_func=no" |
---|
5964 | fi |
---|
5965 | rm -f conftest* |
---|
5966 | fi |
---|
5967 | |
---|
5968 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5969 | echo "$ac_t""yes" 1>&6 |
---|
5970 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
5971 | cat >> confdefs.h <<EOF |
---|
5972 | #define $ac_tr_func 1 |
---|
5973 | EOF |
---|
5974 | |
---|
5975 | else |
---|
5976 | echo "$ac_t""no" 1>&6 |
---|
5977 | fi |
---|
5978 | done |
---|
5979 | |
---|
5980 | for ac_func in getdelim |
---|
5981 | do |
---|
5982 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5983 | echo "configure:5984: checking for $ac_func" >&5 |
---|
5984 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5985 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5986 | else |
---|
5987 | cat > conftest.$ac_ext <<EOF |
---|
5988 | #line 5989 "configure" |
---|
5989 | #include "confdefs.h" |
---|
5990 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5991 | which can conflict with char $ac_func(); below. */ |
---|
5992 | #include <assert.h> |
---|
5993 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5994 | /* We use char because int might match the return type of a gcc2 |
---|
5995 | builtin and then its argument prototype would still apply. */ |
---|
5996 | char $ac_func(); |
---|
5997 | |
---|
5998 | int main() { |
---|
5999 | |
---|
6000 | /* The GNU C library defines this for functions which it implements |
---|
6001 | to always fail with ENOSYS. Some functions are actually named |
---|
6002 | something starting with __ and the normal name is an alias. */ |
---|
6003 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6004 | choke me |
---|
6005 | #else |
---|
6006 | $ac_func(); |
---|
6007 | #endif |
---|
6008 | |
---|
6009 | ; return 0; } |
---|
6010 | EOF |
---|
6011 | if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6012 | rm -rf conftest* |
---|
6013 | eval "ac_cv_func_$ac_func=yes" |
---|
6014 | else |
---|
6015 | echo "configure: failed program was:" >&5 |
---|
6016 | cat conftest.$ac_ext >&5 |
---|
6017 | rm -rf conftest* |
---|
6018 | eval "ac_cv_func_$ac_func=no" |
---|
6019 | fi |
---|
6020 | rm -f conftest* |
---|
6021 | fi |
---|
6022 | |
---|
6023 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6024 | echo "$ac_t""yes" 1>&6 |
---|
6025 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6026 | cat >> confdefs.h <<EOF |
---|
6027 | #define $ac_tr_func 1 |
---|
6028 | EOF |
---|
6029 | |
---|
6030 | else |
---|
6031 | echo "$ac_t""no" 1>&6 |
---|
6032 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
---|
6033 | fi |
---|
6034 | done |
---|
6035 | |
---|
6036 | |
---|
6037 | |
---|
6038 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
---|
6039 | echo "configure:6040: checking size of int" >&5 |
---|
6040 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
---|
6041 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6042 | else |
---|
6043 | if test "$cross_compiling" = yes; then |
---|
6044 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
6045 | else |
---|
6046 | cat > conftest.$ac_ext <<EOF |
---|
6047 | #line 6048 "configure" |
---|
6048 | #include "confdefs.h" |
---|
6049 | #include <stdio.h> |
---|
6050 | main() |
---|
6051 | { |
---|
6052 | FILE *f=fopen("conftestval", "w"); |
---|
6053 | if (!f) exit(1); |
---|
6054 | fprintf(f, "%d\n", sizeof(int)); |
---|
6055 | exit(0); |
---|
6056 | } |
---|
6057 | EOF |
---|
6058 | if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
6059 | then |
---|
6060 | ac_cv_sizeof_int=`cat conftestval` |
---|
6061 | else |
---|
6062 | echo "configure: failed program was:" >&5 |
---|
6063 | cat conftest.$ac_ext >&5 |
---|
6064 | rm -fr conftest* |
---|
6065 | ac_cv_sizeof_int=0 |
---|
6066 | fi |
---|
6067 | rm -fr conftest* |
---|
6068 | fi |
---|
6069 | |
---|
6070 | fi |
---|
6071 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
---|
6072 | cat >> confdefs.h <<EOF |
---|
6073 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
6074 | EOF |
---|
6075 | |
---|
6076 | |
---|
6077 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
---|
6078 | echo "configure:6079: checking size of long" >&5 |
---|
6079 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
---|
6080 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6081 | else |
---|
6082 | if test "$cross_compiling" = yes; then |
---|
6083 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
6084 | else |
---|
6085 | cat > conftest.$ac_ext <<EOF |
---|
6086 | #line 6087 "configure" |
---|
6087 | #include "confdefs.h" |
---|
6088 | #include <stdio.h> |
---|
6089 | main() |
---|
6090 | { |
---|
6091 | FILE *f=fopen("conftestval", "w"); |
---|
6092 | if (!f) exit(1); |
---|
6093 | fprintf(f, "%d\n", sizeof(long)); |
---|
6094 | exit(0); |
---|
6095 | } |
---|
6096 | EOF |
---|
6097 | if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
6098 | then |
---|
6099 | ac_cv_sizeof_long=`cat conftestval` |
---|
6100 | else |
---|
6101 | echo "configure: failed program was:" >&5 |
---|
6102 | cat conftest.$ac_ext >&5 |
---|
6103 | rm -fr conftest* |
---|
6104 | ac_cv_sizeof_long=0 |
---|
6105 | fi |
---|
6106 | rm -fr conftest* |
---|
6107 | fi |
---|
6108 | |
---|
6109 | fi |
---|
6110 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
---|
6111 | cat >> confdefs.h <<EOF |
---|
6112 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
6113 | EOF |
---|
6114 | |
---|
6115 | |
---|
6116 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
---|
6117 | echo "configure:6118: checking size of long long" >&5 |
---|
6118 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
---|
6119 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6120 | else |
---|
6121 | if test "$cross_compiling" = yes; then |
---|
6122 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
6123 | else |
---|
6124 | cat > conftest.$ac_ext <<EOF |
---|
6125 | #line 6126 "configure" |
---|
6126 | #include "confdefs.h" |
---|
6127 | #include <stdio.h> |
---|
6128 | main() |
---|
6129 | { |
---|
6130 | FILE *f=fopen("conftestval", "w"); |
---|
6131 | if (!f) exit(1); |
---|
6132 | fprintf(f, "%d\n", sizeof(long long)); |
---|
6133 | exit(0); |
---|
6134 | } |
---|
6135 | EOF |
---|
6136 | if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
6137 | then |
---|
6138 | ac_cv_sizeof_long_long=`cat conftestval` |
---|
6139 | else |
---|
6140 | echo "configure: failed program was:" >&5 |
---|
6141 | cat conftest.$ac_ext >&5 |
---|
6142 | rm -fr conftest* |
---|
6143 | ac_cv_sizeof_long_long=0 |
---|
6144 | fi |
---|
6145 | rm -fr conftest* |
---|
6146 | fi |
---|
6147 | |
---|
6148 | fi |
---|
6149 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
---|
6150 | cat >> confdefs.h <<EOF |
---|
6151 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
---|
6152 | EOF |
---|
6153 | |
---|
6154 | |
---|
6155 | |
---|
6156 | VFS_SIZE="unsigned long" |
---|
6157 | VFS_OFFSET="long" |
---|
6158 | VFS_SIZE_IS="UNSIGNED_LONG" |
---|
6159 | VFS_OFFSET_IS="LONG" |
---|
6160 | VFS_SIZE_PRINTF="lu" |
---|
6161 | VFS_OFFSET_PRINTF="ld" |
---|
6162 | |
---|
6163 | case 8 in |
---|
6164 | $ac_cv_sizeof_int) |
---|
6165 | VFS_SIZE="unsigned int" |
---|
6166 | VFS_OFFSET="int" |
---|
6167 | VFS_SIZE_IS="UNSIGNED_INT" |
---|
6168 | VFS_OFFSET_IS="INT" |
---|
6169 | VFS_SIZE_PRINTF="u" |
---|
6170 | VFS_OFFSET_PRINTF="d" |
---|
6171 | ;; |
---|
6172 | $ac_cv_sizeof_long) |
---|
6173 | # Nothing happens here, we are already using a long |
---|
6174 | ;; |
---|
6175 | $ac_cv_sizeof_long_long) |
---|
6176 | VFS_SIZE="unsigned long long" |
---|
6177 | VFS_OFFSET="long long" |
---|
6178 | VFS_SIZE_IS="UNSIGNED_LONG_LONG" |
---|
6179 | VFS_OFFSET_IS="LONG_LONG" |
---|
6180 | VFS_SIZE_PRINTF="Lu" |
---|
6181 | VFS_OFFSET_PRINTF="Ld" |
---|
6182 | ;; |
---|
6183 | esac |
---|
6184 | |
---|
6185 | |
---|
6186 | |
---|
6187 | |
---|
6188 | |
---|
6189 | |
---|
6190 | |
---|
6191 | |
---|
6192 | for ac_hdr in sys/resource.h sys/vfs.h sys/mount.h sys/statvfs.h |
---|
6193 | do |
---|
6194 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
6195 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
6196 | echo "configure:6197: checking for $ac_hdr" >&5 |
---|
6197 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
6198 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6199 | else |
---|
6200 | cat > conftest.$ac_ext <<EOF |
---|
6201 | #line 6202 "configure" |
---|
6202 | #include "confdefs.h" |
---|
6203 | #include <$ac_hdr> |
---|
6204 | EOF |
---|
6205 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
6206 | { (eval echo configure:6207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
6207 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
6208 | if test -z "$ac_err"; then |
---|
6209 | rm -rf conftest* |
---|
6210 | eval "ac_cv_header_$ac_safe=yes" |
---|
6211 | else |
---|
6212 | echo "$ac_err" >&5 |
---|
6213 | echo "configure: failed program was:" >&5 |
---|
6214 | cat conftest.$ac_ext >&5 |
---|
6215 | rm -rf conftest* |
---|
6216 | eval "ac_cv_header_$ac_safe=no" |
---|
6217 | fi |
---|
6218 | rm -f conftest* |
---|
6219 | fi |
---|
6220 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
6221 | echo "$ac_t""yes" 1>&6 |
---|
6222 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
6223 | cat >> confdefs.h <<EOF |
---|
6224 | #define $ac_tr_hdr 1 |
---|
6225 | EOF |
---|
6226 | |
---|
6227 | else |
---|
6228 | echo "$ac_t""no" 1>&6 |
---|
6229 | fi |
---|
6230 | done |
---|
6231 | |
---|
6232 | |
---|
6233 | |
---|
6234 | # Check whether --enable-more-warnings or --disable-more-warnings was given. |
---|
6235 | if test "${enable_more_warnings+set}" = set; then |
---|
6236 | enableval="$enable_more_warnings" |
---|
6237 | set_more_warnings="$enableval" |
---|
6238 | else |
---|
6239 | |
---|
6240 | if test -f $srcdir/CVSVERSION; then |
---|
6241 | set_more_warnings=yes |
---|
6242 | else |
---|
6243 | set_more_warnings=no |
---|
6244 | fi |
---|
6245 | |
---|
6246 | fi |
---|
6247 | |
---|
6248 | |
---|
6249 | WERROR="" |
---|
6250 | if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then |
---|
6251 | echo "enable compile warnings = $set_more_warnings" |
---|
6252 | VFS_CFLAGS="-Wall \ |
---|
6253 | -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ |
---|
6254 | -Wnested-externs -Wpointer-arith" |
---|
6255 | WERROR="-Werror" |
---|
6256 | |
---|
6257 | for option in -Wsign-promo -Wno-sign-compare; do |
---|
6258 | SAVE_CFLAGS="$CFLAGS" |
---|
6259 | CFLAGS="$VFS_CFLAGS $option $CFLAGS" |
---|
6260 | echo $ac_n "checking whether gcc understands $option""... $ac_c" 1>&6 |
---|
6261 | echo "configure:6262: checking whether gcc understands $option" >&5 |
---|
6262 | cat > conftest.$ac_ext <<EOF |
---|
6263 | #line 6264 "configure" |
---|
6264 | #include "confdefs.h" |
---|
6265 | |
---|
6266 | int main() { |
---|
6267 | |
---|
6268 | ; return 0; } |
---|
6269 | EOF |
---|
6270 | if { (eval echo configure:6271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
6271 | rm -rf conftest* |
---|
6272 | has_option=yes |
---|
6273 | else |
---|
6274 | echo "configure: failed program was:" >&5 |
---|
6275 | cat conftest.$ac_ext >&5 |
---|
6276 | rm -rf conftest* |
---|
6277 | has_option=no |
---|
6278 | fi |
---|
6279 | rm -f conftest* |
---|
6280 | CFLAGS="$SAVE_CFLAGS" |
---|
6281 | if test $has_option = yes; then |
---|
6282 | VFS_CFLAGS="$VFS_CFLAGS $option" |
---|
6283 | fi |
---|
6284 | echo "$ac_t""$has_option" 1>&6 |
---|
6285 | unset has_option |
---|
6286 | unset SAVE_CFLAGS |
---|
6287 | done |
---|
6288 | unset option |
---|
6289 | fi |
---|
6290 | |
---|
6291 | |
---|
6292 | |
---|
6293 | using_oaf=no |
---|
6294 | # Extract the first word of "oaf-config", so it can be a program name with args. |
---|
6295 | set dummy oaf-config; ac_word=$2 |
---|
6296 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6297 | echo "configure:6298: checking for $ac_word" >&5 |
---|
6298 | if eval "test \"`echo '$''{'ac_cv_path_OAF_CONFIG'+set}'`\" = set"; then |
---|
6299 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6300 | else |
---|
6301 | case "$OAF_CONFIG" in |
---|
6302 | /*) |
---|
6303 | ac_cv_path_OAF_CONFIG="$OAF_CONFIG" # Let the user override the test with a path. |
---|
6304 | ;; |
---|
6305 | ?:/*) |
---|
6306 | ac_cv_path_OAF_CONFIG="$OAF_CONFIG" # Let the user override the test with a dos path. |
---|
6307 | ;; |
---|
6308 | *) |
---|
6309 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6310 | ac_dummy="$PATH" |
---|
6311 | for ac_dir in $ac_dummy; do |
---|
6312 | test -z "$ac_dir" && ac_dir=. |
---|
6313 | if test -f $ac_dir/$ac_word; then |
---|
6314 | ac_cv_path_OAF_CONFIG="$ac_dir/$ac_word" |
---|
6315 | break |
---|
6316 | fi |
---|
6317 | done |
---|
6318 | IFS="$ac_save_ifs" |
---|
6319 | test -z "$ac_cv_path_OAF_CONFIG" && ac_cv_path_OAF_CONFIG="no" |
---|
6320 | ;; |
---|
6321 | esac |
---|
6322 | fi |
---|
6323 | OAF_CONFIG="$ac_cv_path_OAF_CONFIG" |
---|
6324 | if test -n "$OAF_CONFIG"; then |
---|
6325 | echo "$ac_t""$OAF_CONFIG" 1>&6 |
---|
6326 | else |
---|
6327 | echo "$ac_t""no" 1>&6 |
---|
6328 | fi |
---|
6329 | |
---|
6330 | if test x$OAF_CONFIG = xno; then |
---|
6331 | echo "$ac_t"""The program oaf-config was not found"" 1>&6 |
---|
6332 | OAF_LIBS="" |
---|
6333 | OAF_CFLAGS="" |
---|
6334 | else |
---|
6335 | |
---|
6336 | ez_want_version=$OAF_REQUIRED |
---|
6337 | |
---|
6338 | case ">=" in |
---|
6339 | ">") ez_operator=-gt ;; |
---|
6340 | ">=") ez_operator=-ge ;; |
---|
6341 | "<") ez_operator=-lt ;; |
---|
6342 | "<=") ez_operator=-le ;; |
---|
6343 | "=") ez_operator=-eq ;; |
---|
6344 | "!=") ez_operator=-ne ;; |
---|
6345 | *) { echo "configure: error: Unknown operator >= in configure script" 1>&2; exit 1; } ;; |
---|
6346 | esac |
---|
6347 | |
---|
6348 | echo $ac_n "checking for oaf >= $ez_want_version""... $ac_c" 1>&6 |
---|
6349 | echo "configure:6350: checking for oaf >= $ez_want_version" >&5 |
---|
6350 | |
---|
6351 | if ez_installed_version="`$OAF_CONFIG --version`" |
---|
6352 | then |
---|
6353 | echo "$ac_t""$ez_installed_version" 1>&6 |
---|
6354 | else |
---|
6355 | { echo "configure: error: $OAF_CONFIG --version failed" 1>&2; exit 1; } |
---|
6356 | fi |
---|
6357 | |
---|
6358 | if test "` |
---|
6359 | |
---|
6360 | |
---|
6361 | echo "$ez_installed_version" | |
---|
6362 | tr . '\012' | |
---|
6363 | sed -e 's/^/000/' -e 's/^.*\(...\)/\1/' | |
---|
6364 | tr -d '\012' | |
---|
6365 | sed 's/$/000000000/ |
---|
6366 | s/^\(.........\).*/\1/' |
---|
6367 | `" "$ez_operator" \ |
---|
6368 | "` |
---|
6369 | |
---|
6370 | |
---|
6371 | echo "$ez_want_version" | |
---|
6372 | tr . '\012' | |
---|
6373 | sed -e 's/^/000/' -e 's/^.*\(...\)/\1/' | |
---|
6374 | tr -d '\012' | |
---|
6375 | sed 's/$/000000000/ |
---|
6376 | s/^\(.........\).*/\1/' |
---|
6377 | `" |
---|
6378 | then |
---|
6379 | : |
---|
6380 | |
---|
6381 | else |
---|
6382 | { echo "configure: error: oaf version $ez_want_version is required." 1>&2; exit 1; } |
---|
6383 | fi |
---|
6384 | |
---|
6385 | using_oaf=yes |
---|
6386 | cat >> confdefs.h <<\EOF |
---|
6387 | #define USING_OAF 1 |
---|
6388 | EOF |
---|
6389 | |
---|
6390 | OAF_LIBS=`$OAF_CONFIG --libs` |
---|
6391 | OAF_CFLAGS=`$OAF_CONFIG --cflags` |
---|
6392 | fi |
---|
6393 | |
---|
6394 | |
---|
6395 | if test x"$using_oaf" = "xyes"; then |
---|
6396 | USING_OAF_TRUE= |
---|
6397 | USING_OAF_FALSE='#' |
---|
6398 | else |
---|
6399 | USING_OAF_TRUE='#' |
---|
6400 | USING_OAF_FALSE= |
---|
6401 | fi |
---|
6402 | |
---|
6403 | |
---|
6404 | |
---|
6405 | GNOME_VFS_DIR=`(cd $srcdir; pwd)` |
---|
6406 | |
---|
6407 | |
---|
6408 | |
---|
6409 | |
---|
6410 | if false; then |
---|
6411 | INSIDE_GNOME_DOCU_TRUE= |
---|
6412 | INSIDE_GNOME_DOCU_FALSE='#' |
---|
6413 | else |
---|
6414 | INSIDE_GNOME_DOCU_TRUE='#' |
---|
6415 | INSIDE_GNOME_DOCU_FALSE= |
---|
6416 | fi |
---|
6417 | |
---|
6418 | VFSCORBA_LIBDIR='-L$$ATHTOOLROOT${libdir}' |
---|
6419 | VFSCORBA_INCLUDEDIR='-I$$ATHTOOLROOT${includedir} -I$$ATHTOOLROOT${libdir}/vfs/include' |
---|
6420 | VFSCORBA_INCLUDEDIR="$VFSCORBA_INCLUDEDIR $VFS_GNOMEUI_CFLAGS \`orbit-config --cflags server\`" |
---|
6421 | VFSCORBA_LIBS="-lgnomevfs -lgnomevfs-corba $VFS_GNOMEUI_LIBS \`orbit-config --libs server\`" |
---|
6422 | |
---|
6423 | |
---|
6424 | |
---|
6425 | |
---|
6426 | VFSPTHREAD_LIBDIR='-L$$ATHTOOLROOT${libdir}' |
---|
6427 | VFSPTHREAD_INCLUDEDIR='-I$$ATHTOOLROOT${includedir} -I$$ATHTOOLROOT${libdir}/vfs/include' |
---|
6428 | VFSPTHREAD_INCLUDEDIR="$VFSPTHREAD_INCLUDEDIR $VFS_GNOME_CFLAGS" |
---|
6429 | VFSPTHREAD_LIBS="-lgnomevfs -lgnomevfs-pthread $VFS_GNOME_LIBS \`$VFS_GLIB_CONFIG --libs gthread\`" |
---|
6430 | |
---|
6431 | |
---|
6432 | |
---|
6433 | |
---|
6434 | if test -z "$default_backend"; then |
---|
6435 | default_backend="pthread" |
---|
6436 | fi |
---|
6437 | cat >> confdefs.h <<EOF |
---|
6438 | #define GNOME_VFS_DEFAULT_BACKEND "$default_backend" |
---|
6439 | EOF |
---|
6440 | |
---|
6441 | |
---|
6442 | VFS_LIBS="-lgnomevfs \`$VFS_GLIB_CONFIG --libs gthread gmodule\`" |
---|
6443 | VFS_LIBDIR='-L$$ATHTOOLROOT${libdir}' |
---|
6444 | VFS_INCLUDEDIR='-I$$ATHTOOLROOT${includedir} -I$$ATHTOOLROOT${libdir}/vfs/include'" \`$VFS_GLIB_CONFIG --cflags gthread gmodule\`" |
---|
6445 | |
---|
6446 | |
---|
6447 | |
---|
6448 | |
---|
6449 | |
---|
6450 | |
---|
6451 | # Extract the first word of "xml-config", so it can be a program name with args. |
---|
6452 | set dummy xml-config; ac_word=$2 |
---|
6453 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6454 | echo "configure:6455: checking for $ac_word" >&5 |
---|
6455 | if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then |
---|
6456 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6457 | else |
---|
6458 | case "$XML_CONFIG" in |
---|
6459 | /*) |
---|
6460 | ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path. |
---|
6461 | ;; |
---|
6462 | ?:/*) |
---|
6463 | ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path. |
---|
6464 | ;; |
---|
6465 | *) |
---|
6466 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6467 | ac_dummy="$PATH" |
---|
6468 | for ac_dir in $ac_dummy; do |
---|
6469 | test -z "$ac_dir" && ac_dir=. |
---|
6470 | if test -f $ac_dir/$ac_word; then |
---|
6471 | ac_cv_path_XML_CONFIG="$ac_dir/$ac_word" |
---|
6472 | break |
---|
6473 | fi |
---|
6474 | done |
---|
6475 | IFS="$ac_save_ifs" |
---|
6476 | test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no" |
---|
6477 | ;; |
---|
6478 | esac |
---|
6479 | fi |
---|
6480 | XML_CONFIG="$ac_cv_path_XML_CONFIG" |
---|
6481 | if test -n "$XML_CONFIG"; then |
---|
6482 | echo "$ac_t""$XML_CONFIG" 1>&6 |
---|
6483 | else |
---|
6484 | echo "$ac_t""no" 1>&6 |
---|
6485 | fi |
---|
6486 | |
---|
6487 | if test x$XML_CONFIG = "xno"; then |
---|
6488 | { echo "configure: error: Couldn't find xml-config please install the gnome-xml package" 1>&2; exit 1; } |
---|
6489 | fi |
---|
6490 | XML_LIBS=`$XML_CONFIG --libs` |
---|
6491 | XML_CFLAGS=`$XML_CONFIG --cflags` |
---|
6492 | |
---|
6493 | |
---|
6494 | |
---|
6495 | |
---|
6496 | # Check whether --with-gconf-prefix or --without-gconf-prefix was given. |
---|
6497 | if test "${with_gconf_prefix+set}" = set; then |
---|
6498 | withval="$with_gconf_prefix" |
---|
6499 | gconf_config_prefix="$withval" |
---|
6500 | else |
---|
6501 | gconf_config_prefix="" |
---|
6502 | fi |
---|
6503 | |
---|
6504 | # Check whether --with-gconf-exec-prefix or --without-gconf-exec-prefix was given. |
---|
6505 | if test "${with_gconf_exec_prefix+set}" = set; then |
---|
6506 | withval="$with_gconf_exec_prefix" |
---|
6507 | gconf_config_exec_prefix="$withval" |
---|
6508 | else |
---|
6509 | gconf_config_exec_prefix="" |
---|
6510 | fi |
---|
6511 | |
---|
6512 | # Check whether --enable-gconftest or --disable-gconftest was given. |
---|
6513 | if test "${enable_gconftest+set}" = set; then |
---|
6514 | enableval="$enable_gconftest" |
---|
6515 | : |
---|
6516 | else |
---|
6517 | enable_gconftest=yes |
---|
6518 | fi |
---|
6519 | |
---|
6520 | |
---|
6521 | gconf_config_args="$gconf_config_args" |
---|
6522 | |
---|
6523 | if test x$gconf_config_exec_prefix != x ; then |
---|
6524 | gconf_config_args="$gconf_config_args --exec-prefix=$gconf_config_exec_prefix" |
---|
6525 | if test x${GCONF_CONFIG+set} != xset ; then |
---|
6526 | GCONF_CONFIG=$gconf_config_exec_prefix/bin/gconf-config |
---|
6527 | fi |
---|
6528 | fi |
---|
6529 | if test x$gconf_config_prefix != x ; then |
---|
6530 | gconf_config_args="$gconf_config_args --prefix=$gconf_config_prefix" |
---|
6531 | if test x${GCONF_CONFIG+set} != xset ; then |
---|
6532 | GCONF_CONFIG=$gconf_config_prefix/bin/gconf-config |
---|
6533 | fi |
---|
6534 | fi |
---|
6535 | |
---|
6536 | # Extract the first word of "gconf-config", so it can be a program name with args. |
---|
6537 | set dummy gconf-config; ac_word=$2 |
---|
6538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6539 | echo "configure:6540: checking for $ac_word" >&5 |
---|
6540 | if eval "test \"`echo '$''{'ac_cv_path_GCONF_CONFIG'+set}'`\" = set"; then |
---|
6541 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6542 | else |
---|
6543 | case "$GCONF_CONFIG" in |
---|
6544 | /*) |
---|
6545 | ac_cv_path_GCONF_CONFIG="$GCONF_CONFIG" # Let the user override the test with a path. |
---|
6546 | ;; |
---|
6547 | ?:/*) |
---|
6548 | ac_cv_path_GCONF_CONFIG="$GCONF_CONFIG" # Let the user override the test with a dos path. |
---|
6549 | ;; |
---|
6550 | *) |
---|
6551 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6552 | ac_dummy="$PATH" |
---|
6553 | for ac_dir in $ac_dummy; do |
---|
6554 | test -z "$ac_dir" && ac_dir=. |
---|
6555 | if test -f $ac_dir/$ac_word; then |
---|
6556 | ac_cv_path_GCONF_CONFIG="$ac_dir/$ac_word" |
---|
6557 | break |
---|
6558 | fi |
---|
6559 | done |
---|
6560 | IFS="$ac_save_ifs" |
---|
6561 | test -z "$ac_cv_path_GCONF_CONFIG" && ac_cv_path_GCONF_CONFIG="no" |
---|
6562 | ;; |
---|
6563 | esac |
---|
6564 | fi |
---|
6565 | GCONF_CONFIG="$ac_cv_path_GCONF_CONFIG" |
---|
6566 | if test -n "$GCONF_CONFIG"; then |
---|
6567 | echo "$ac_t""$GCONF_CONFIG" 1>&6 |
---|
6568 | else |
---|
6569 | echo "$ac_t""no" 1>&6 |
---|
6570 | fi |
---|
6571 | |
---|
6572 | min_gconf_version=$GCONF_REQUIRED |
---|
6573 | echo $ac_n "checking for GCONF - version >= $min_gconf_version""... $ac_c" 1>&6 |
---|
6574 | echo "configure:6575: checking for GCONF - version >= $min_gconf_version" >&5 |
---|
6575 | no_gconf="" |
---|
6576 | if test "$GCONF_CONFIG" = "no" ; then |
---|
6577 | no_gconf=yes |
---|
6578 | else |
---|
6579 | GCONF_CFLAGS="`$GCONF_CONFIG $gconf_config_args --cflags gconf gconf-gtk`" |
---|
6580 | GCONF_LIBS="`$GCONF_CONFIG $gconf_config_args --libs gconf gconf-gtk`" |
---|
6581 | gconf_config_major_version=`$GCONF_CONFIG $gconf_config_args --version | \ |
---|
6582 | sed -e 's,^[^0-9.]*,,g' -e 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
6583 | gconf_config_minor_version=`$GCONF_CONFIG $gconf_config_args --version | \ |
---|
6584 | sed -e 's,^[^0-9.]*,,g' -e 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
6585 | gconf_config_micro_version=`$GCONF_CONFIG $gconf_config_args --version | \ |
---|
6586 | sed -e 's,^[^0-9\.]*,,g' -e 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
6587 | fi |
---|
6588 | if test "x$no_gconf" = x ; then |
---|
6589 | echo "$ac_t""yes" 1>&6 |
---|
6590 | : |
---|
6591 | else |
---|
6592 | echo "$ac_t""no" 1>&6 |
---|
6593 | if test "$GCONF_CONFIG" = "no" ; then |
---|
6594 | echo "*** The gconf-config script installed by GCONF could not be found" |
---|
6595 | echo "*** If GCONF was installed in PREFIX, make sure PREFIX/bin is in" |
---|
6596 | echo "*** your path, or set the GCONF_CONFIG environment variable to the" |
---|
6597 | echo "*** full path to gconf-config." |
---|
6598 | else |
---|
6599 | : |
---|
6600 | fi |
---|
6601 | GCONF_CFLAGS="" |
---|
6602 | GCONF_LIBS="" |
---|
6603 | : |
---|
6604 | fi |
---|
6605 | |
---|
6606 | |
---|
6607 | rm -f conf.gconftest |
---|
6608 | |
---|
6609 | |
---|
6610 | |
---|
6611 | |
---|
6612 | |
---|
6613 | |
---|
6614 | |
---|
6615 | |
---|
6616 | |
---|
6617 | |
---|
6618 | if false; then |
---|
6619 | HAVE_LIBEFS_TRUE= |
---|
6620 | HAVE_LIBEFS_FALSE='#' |
---|
6621 | else |
---|
6622 | HAVE_LIBEFS_TRUE='#' |
---|
6623 | HAVE_LIBEFS_FALSE= |
---|
6624 | fi |
---|
6625 | LIBEFS_LIBS="" |
---|
6626 | LIBEFS_CFLAGS="" |
---|
6627 | |
---|
6628 | |
---|
6629 | |
---|
6630 | |
---|
6631 | |
---|
6632 | echo $ac_n "checking for t_accept in -lnsl""... $ac_c" 1>&6 |
---|
6633 | echo "configure:6634: checking for t_accept in -lnsl" >&5 |
---|
6634 | ac_lib_var=`echo nsl'_'t_accept | sed 'y%./+-%__p_%'` |
---|
6635 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6636 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6637 | else |
---|
6638 | ac_save_LIBS="$LIBS" |
---|
6639 | LIBS="-lnsl $LIBS" |
---|
6640 | cat > conftest.$ac_ext <<EOF |
---|
6641 | #line 6642 "configure" |
---|
6642 | #include "confdefs.h" |
---|
6643 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6644 | /* We use char because int might match the return type of a gcc2 |
---|
6645 | builtin and then its argument prototype would still apply. */ |
---|
6646 | char t_accept(); |
---|
6647 | |
---|
6648 | int main() { |
---|
6649 | t_accept() |
---|
6650 | ; return 0; } |
---|
6651 | EOF |
---|
6652 | if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6653 | rm -rf conftest* |
---|
6654 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6655 | else |
---|
6656 | echo "configure: failed program was:" >&5 |
---|
6657 | cat conftest.$ac_ext >&5 |
---|
6658 | rm -rf conftest* |
---|
6659 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6660 | fi |
---|
6661 | rm -f conftest* |
---|
6662 | LIBS="$ac_save_LIBS" |
---|
6663 | |
---|
6664 | fi |
---|
6665 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6666 | echo "$ac_t""yes" 1>&6 |
---|
6667 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
6668 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
6669 | cat >> confdefs.h <<EOF |
---|
6670 | #define $ac_tr_lib 1 |
---|
6671 | EOF |
---|
6672 | |
---|
6673 | LIBS="-lnsl $LIBS" |
---|
6674 | |
---|
6675 | else |
---|
6676 | echo "$ac_t""no" 1>&6 |
---|
6677 | fi |
---|
6678 | |
---|
6679 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
---|
6680 | echo "configure:6681: checking for socket in -lsocket" >&5 |
---|
6681 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
---|
6682 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6683 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6684 | else |
---|
6685 | ac_save_LIBS="$LIBS" |
---|
6686 | LIBS="-lsocket $LIBS" |
---|
6687 | cat > conftest.$ac_ext <<EOF |
---|
6688 | #line 6689 "configure" |
---|
6689 | #include "confdefs.h" |
---|
6690 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6691 | /* We use char because int might match the return type of a gcc2 |
---|
6692 | builtin and then its argument prototype would still apply. */ |
---|
6693 | char socket(); |
---|
6694 | |
---|
6695 | int main() { |
---|
6696 | socket() |
---|
6697 | ; return 0; } |
---|
6698 | EOF |
---|
6699 | if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6700 | rm -rf conftest* |
---|
6701 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6702 | else |
---|
6703 | echo "configure: failed program was:" >&5 |
---|
6704 | cat conftest.$ac_ext >&5 |
---|
6705 | rm -rf conftest* |
---|
6706 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6707 | fi |
---|
6708 | rm -f conftest* |
---|
6709 | LIBS="$ac_save_LIBS" |
---|
6710 | |
---|
6711 | fi |
---|
6712 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6713 | echo "$ac_t""yes" 1>&6 |
---|
6714 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
6715 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
6716 | cat >> confdefs.h <<EOF |
---|
6717 | #define $ac_tr_lib 1 |
---|
6718 | EOF |
---|
6719 | |
---|
6720 | LIBS="-lsocket $LIBS" |
---|
6721 | |
---|
6722 | else |
---|
6723 | echo "$ac_t""no" 1>&6 |
---|
6724 | fi |
---|
6725 | |
---|
6726 | echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6 |
---|
6727 | echo "configure:6728: checking for sem_init in -lrt" >&5 |
---|
6728 | ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'` |
---|
6729 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6730 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6731 | else |
---|
6732 | ac_save_LIBS="$LIBS" |
---|
6733 | LIBS="-lrt $LIBS" |
---|
6734 | cat > conftest.$ac_ext <<EOF |
---|
6735 | #line 6736 "configure" |
---|
6736 | #include "confdefs.h" |
---|
6737 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6738 | /* We use char because int might match the return type of a gcc2 |
---|
6739 | builtin and then its argument prototype would still apply. */ |
---|
6740 | char sem_init(); |
---|
6741 | |
---|
6742 | int main() { |
---|
6743 | sem_init() |
---|
6744 | ; return 0; } |
---|
6745 | EOF |
---|
6746 | if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6747 | rm -rf conftest* |
---|
6748 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6749 | else |
---|
6750 | echo "configure: failed program was:" >&5 |
---|
6751 | cat conftest.$ac_ext >&5 |
---|
6752 | rm -rf conftest* |
---|
6753 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6754 | fi |
---|
6755 | rm -f conftest* |
---|
6756 | LIBS="$ac_save_LIBS" |
---|
6757 | |
---|
6758 | fi |
---|
6759 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6760 | echo "$ac_t""yes" 1>&6 |
---|
6761 | ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
6762 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
6763 | cat >> confdefs.h <<EOF |
---|
6764 | #define $ac_tr_lib 1 |
---|
6765 | EOF |
---|
6766 | |
---|
6767 | LIBS="-lrt $LIBS" |
---|
6768 | |
---|
6769 | else |
---|
6770 | echo "$ac_t""no" 1>&6 |
---|
6771 | fi |
---|
6772 | |
---|
6773 | |
---|
6774 | have_socket=no |
---|
6775 | for ac_func in socket |
---|
6776 | do |
---|
6777 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
6778 | echo "configure:6779: checking for $ac_func" >&5 |
---|
6779 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
6780 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6781 | else |
---|
6782 | cat > conftest.$ac_ext <<EOF |
---|
6783 | #line 6784 "configure" |
---|
6784 | #include "confdefs.h" |
---|
6785 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6786 | which can conflict with char $ac_func(); below. */ |
---|
6787 | #include <assert.h> |
---|
6788 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6789 | /* We use char because int might match the return type of a gcc2 |
---|
6790 | builtin and then its argument prototype would still apply. */ |
---|
6791 | char $ac_func(); |
---|
6792 | |
---|
6793 | int main() { |
---|
6794 | |
---|
6795 | /* The GNU C library defines this for functions which it implements |
---|
6796 | to always fail with ENOSYS. Some functions are actually named |
---|
6797 | something starting with __ and the normal name is an alias. */ |
---|
6798 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6799 | choke me |
---|
6800 | #else |
---|
6801 | $ac_func(); |
---|
6802 | #endif |
---|
6803 | |
---|
6804 | ; return 0; } |
---|
6805 | EOF |
---|
6806 | if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6807 | rm -rf conftest* |
---|
6808 | eval "ac_cv_func_$ac_func=yes" |
---|
6809 | else |
---|
6810 | echo "configure: failed program was:" >&5 |
---|
6811 | cat conftest.$ac_ext >&5 |
---|
6812 | rm -rf conftest* |
---|
6813 | eval "ac_cv_func_$ac_func=no" |
---|
6814 | fi |
---|
6815 | rm -f conftest* |
---|
6816 | fi |
---|
6817 | |
---|
6818 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6819 | echo "$ac_t""yes" 1>&6 |
---|
6820 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6821 | cat >> confdefs.h <<EOF |
---|
6822 | #define $ac_tr_func 1 |
---|
6823 | EOF |
---|
6824 | have_socket=yes |
---|
6825 | else |
---|
6826 | echo "$ac_t""no" 1>&6 |
---|
6827 | fi |
---|
6828 | done |
---|
6829 | |
---|
6830 | if test $have_socket = no; then |
---|
6831 | # socket is not in the default libraries. See if it's in some other. |
---|
6832 | for lib in bsd socket inet; do |
---|
6833 | echo $ac_n "checking for socket in -l$lib""... $ac_c" 1>&6 |
---|
6834 | echo "configure:6835: checking for socket in -l$lib" >&5 |
---|
6835 | ac_lib_var=`echo $lib'_'socket | sed 'y%./+-%__p_%'` |
---|
6836 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6837 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6838 | else |
---|
6839 | ac_save_LIBS="$LIBS" |
---|
6840 | LIBS="-l$lib $LIBS" |
---|
6841 | cat > conftest.$ac_ext <<EOF |
---|
6842 | #line 6843 "configure" |
---|
6843 | #include "confdefs.h" |
---|
6844 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6845 | /* We use char because int might match the return type of a gcc2 |
---|
6846 | builtin and then its argument prototype would still apply. */ |
---|
6847 | char socket(); |
---|
6848 | |
---|
6849 | int main() { |
---|
6850 | socket() |
---|
6851 | ; return 0; } |
---|
6852 | EOF |
---|
6853 | if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6854 | rm -rf conftest* |
---|
6855 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6856 | else |
---|
6857 | echo "configure: failed program was:" >&5 |
---|
6858 | cat conftest.$ac_ext >&5 |
---|
6859 | rm -rf conftest* |
---|
6860 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6861 | fi |
---|
6862 | rm -f conftest* |
---|
6863 | LIBS="$ac_save_LIBS" |
---|
6864 | |
---|
6865 | fi |
---|
6866 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6867 | echo "$ac_t""yes" 1>&6 |
---|
6868 | |
---|
6869 | LIBS="$LIBS -l$lib" |
---|
6870 | have_socket=yes |
---|
6871 | cat >> confdefs.h <<\EOF |
---|
6872 | #define HAVE_SOCKET 1 |
---|
6873 | EOF |
---|
6874 | |
---|
6875 | break |
---|
6876 | else |
---|
6877 | echo "$ac_t""no" 1>&6 |
---|
6878 | fi |
---|
6879 | |
---|
6880 | done |
---|
6881 | fi |
---|
6882 | |
---|
6883 | have_gethostbyname=no |
---|
6884 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
6885 | echo "configure:6886: checking for gethostbyname" >&5 |
---|
6886 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
6887 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6888 | else |
---|
6889 | cat > conftest.$ac_ext <<EOF |
---|
6890 | #line 6891 "configure" |
---|
6891 | #include "confdefs.h" |
---|
6892 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6893 | which can conflict with char gethostbyname(); below. */ |
---|
6894 | #include <assert.h> |
---|
6895 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6896 | /* We use char because int might match the return type of a gcc2 |
---|
6897 | builtin and then its argument prototype would still apply. */ |
---|
6898 | char gethostbyname(); |
---|
6899 | |
---|
6900 | int main() { |
---|
6901 | |
---|
6902 | /* The GNU C library defines this for functions which it implements |
---|
6903 | to always fail with ENOSYS. Some functions are actually named |
---|
6904 | something starting with __ and the normal name is an alias. */ |
---|
6905 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
6906 | choke me |
---|
6907 | #else |
---|
6908 | gethostbyname(); |
---|
6909 | #endif |
---|
6910 | |
---|
6911 | ; return 0; } |
---|
6912 | EOF |
---|
6913 | if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6914 | rm -rf conftest* |
---|
6915 | eval "ac_cv_func_gethostbyname=yes" |
---|
6916 | else |
---|
6917 | echo "configure: failed program was:" >&5 |
---|
6918 | cat conftest.$ac_ext >&5 |
---|
6919 | rm -rf conftest* |
---|
6920 | eval "ac_cv_func_gethostbyname=no" |
---|
6921 | fi |
---|
6922 | rm -f conftest* |
---|
6923 | fi |
---|
6924 | |
---|
6925 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
6926 | echo "$ac_t""yes" 1>&6 |
---|
6927 | have_gethostbyname=yes |
---|
6928 | else |
---|
6929 | echo "$ac_t""no" 1>&6 |
---|
6930 | fi |
---|
6931 | |
---|
6932 | if test $have_gethostbyname = no; then |
---|
6933 | # gethostbyname is not in the default libraries. See if it's in some other. |
---|
6934 | for lib in bsd socket inet; do |
---|
6935 | echo $ac_n "checking for gethostbyname in -l$lib""... $ac_c" 1>&6 |
---|
6936 | echo "configure:6937: checking for gethostbyname in -l$lib" >&5 |
---|
6937 | ac_lib_var=`echo $lib'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
6938 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6939 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6940 | else |
---|
6941 | ac_save_LIBS="$LIBS" |
---|
6942 | LIBS="-l$lib $LIBS" |
---|
6943 | cat > conftest.$ac_ext <<EOF |
---|
6944 | #line 6945 "configure" |
---|
6945 | #include "confdefs.h" |
---|
6946 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6947 | /* We use char because int might match the return type of a gcc2 |
---|
6948 | builtin and then its argument prototype would still apply. */ |
---|
6949 | char gethostbyname(); |
---|
6950 | |
---|
6951 | int main() { |
---|
6952 | gethostbyname() |
---|
6953 | ; return 0; } |
---|
6954 | EOF |
---|
6955 | if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6956 | rm -rf conftest* |
---|
6957 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6958 | else |
---|
6959 | echo "configure: failed program was:" >&5 |
---|
6960 | cat conftest.$ac_ext >&5 |
---|
6961 | rm -rf conftest* |
---|
6962 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6963 | fi |
---|
6964 | rm -f conftest* |
---|
6965 | LIBS="$ac_save_LIBS" |
---|
6966 | |
---|
6967 | fi |
---|
6968 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6969 | echo "$ac_t""yes" 1>&6 |
---|
6970 | LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break |
---|
6971 | else |
---|
6972 | echo "$ac_t""no" 1>&6 |
---|
6973 | fi |
---|
6974 | |
---|
6975 | done |
---|
6976 | fi |
---|
6977 | |
---|
6978 | echo $ac_n "checking for bzCompressInit in -lbz2""... $ac_c" 1>&6 |
---|
6979 | echo "configure:6980: checking for bzCompressInit in -lbz2" >&5 |
---|
6980 | ac_lib_var=`echo bz2'_'bzCompressInit | sed 'y%./+-%__p_%'` |
---|
6981 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6982 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6983 | else |
---|
6984 | ac_save_LIBS="$LIBS" |
---|
6985 | LIBS="-lbz2 $LIBS" |
---|
6986 | cat > conftest.$ac_ext <<EOF |
---|
6987 | #line 6988 "configure" |
---|
6988 | #include "confdefs.h" |
---|
6989 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6990 | /* We use char because int might match the return type of a gcc2 |
---|
6991 | builtin and then its argument prototype would still apply. */ |
---|
6992 | char bzCompressInit(); |
---|
6993 | |
---|
6994 | int main() { |
---|
6995 | bzCompressInit() |
---|
6996 | ; return 0; } |
---|
6997 | EOF |
---|
6998 | if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6999 | rm -rf conftest* |
---|
7000 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7001 | else |
---|
7002 | echo "configure: failed program was:" >&5 |
---|
7003 | cat conftest.$ac_ext >&5 |
---|
7004 | rm -rf conftest* |
---|
7005 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7006 | fi |
---|
7007 | rm -f conftest* |
---|
7008 | LIBS="$ac_save_LIBS" |
---|
7009 | |
---|
7010 | fi |
---|
7011 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7012 | echo "$ac_t""yes" 1>&6 |
---|
7013 | cat >> confdefs.h <<\EOF |
---|
7014 | #define HAVE_OLDER_BZIP2 1 |
---|
7015 | EOF |
---|
7016 | |
---|
7017 | else |
---|
7018 | echo "$ac_t""no" 1>&6 |
---|
7019 | fi |
---|
7020 | |
---|
7021 | |
---|
7022 | if test $have_socket = yes; then |
---|
7023 | |
---|
7024 | av_struct_linger=no |
---|
7025 | echo $ac_n "checking struct linger is available""... $ac_c" 1>&6 |
---|
7026 | echo "configure:7027: checking struct linger is available" >&5 |
---|
7027 | if test "$cross_compiling" = yes; then |
---|
7028 | |
---|
7029 | av_struct_linger=no |
---|
7030 | |
---|
7031 | else |
---|
7032 | cat > conftest.$ac_ext <<EOF |
---|
7033 | #line 7034 "configure" |
---|
7034 | #include "confdefs.h" |
---|
7035 | |
---|
7036 | #include <sys/types.h> |
---|
7037 | #include <sys/socket.h> |
---|
7038 | |
---|
7039 | struct linger li; |
---|
7040 | |
---|
7041 | main () |
---|
7042 | { |
---|
7043 | li.l_onoff = 1; |
---|
7044 | li.l_linger = 120; |
---|
7045 | exit (0); |
---|
7046 | } |
---|
7047 | |
---|
7048 | EOF |
---|
7049 | if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
7050 | then |
---|
7051 | |
---|
7052 | cat >> confdefs.h <<\EOF |
---|
7053 | #define HAVE_STRUCT_LINGER 1 |
---|
7054 | EOF |
---|
7055 | |
---|
7056 | av_struct_linger=yes |
---|
7057 | |
---|
7058 | else |
---|
7059 | echo "configure: failed program was:" >&5 |
---|
7060 | cat conftest.$ac_ext >&5 |
---|
7061 | rm -fr conftest* |
---|
7062 | |
---|
7063 | av_struct_linger=no |
---|
7064 | |
---|
7065 | fi |
---|
7066 | rm -fr conftest* |
---|
7067 | fi |
---|
7068 | |
---|
7069 | echo "$ac_t""$av_struct_linger" 1>&6 |
---|
7070 | |
---|
7071 | fi |
---|
7072 | |
---|
7073 | |
---|
7074 | |
---|
7075 | |
---|
7076 | |
---|
7077 | |
---|
7078 | TOP_BUILDDIR="`pwd`" |
---|
7079 | |
---|
7080 | |
---|
7081 | |
---|
7082 | trap '' 1 2 15 |
---|
7083 | cat > confcache <<\EOF |
---|
7084 | # This file is a shell script that caches the results of configure |
---|
7085 | # tests run on this system so they can be shared between configure |
---|
7086 | # scripts and configure runs. It is not useful on other systems. |
---|
7087 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
7088 | # |
---|
7089 | # By default, configure uses ./config.cache as the cache file, |
---|
7090 | # creating it if it does not exist already. You can give configure |
---|
7091 | # the --cache-file=FILE option to use a different cache file; that is |
---|
7092 | # what configure does when it calls configure scripts in |
---|
7093 | # subdirectories, so they share the cache. |
---|
7094 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
7095 | # config.status only pays attention to the cache file if you give it the |
---|
7096 | # --recheck option to rerun configure. |
---|
7097 | # |
---|
7098 | EOF |
---|
7099 | # The following way of writing the cache mishandles newlines in values, |
---|
7100 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7101 | # So, don't put newlines in cache variables' values. |
---|
7102 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7103 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7104 | (set) 2>&1 | |
---|
7105 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7106 | *ac_space=\ *) |
---|
7107 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
7108 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
7109 | sed -n \ |
---|
7110 | -e "s/'/'\\\\''/g" \ |
---|
7111 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
7112 | ;; |
---|
7113 | *) |
---|
7114 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7115 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
7116 | ;; |
---|
7117 | esac >> confcache |
---|
7118 | if cmp -s $cache_file confcache; then |
---|
7119 | : |
---|
7120 | else |
---|
7121 | if test -w $cache_file; then |
---|
7122 | echo "updating cache $cache_file" |
---|
7123 | cat confcache > $cache_file |
---|
7124 | else |
---|
7125 | echo "not updating unwritable cache $cache_file" |
---|
7126 | fi |
---|
7127 | fi |
---|
7128 | rm -f confcache |
---|
7129 | |
---|
7130 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
7131 | |
---|
7132 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7133 | # Let make expand exec_prefix. |
---|
7134 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7135 | |
---|
7136 | # Any assignment to VPATH causes Sun make to only execute |
---|
7137 | # the first set of double-colon rules, so remove it if not needed. |
---|
7138 | # If there is a colon in the path, we need to keep it. |
---|
7139 | if test "x$srcdir" = x.; then |
---|
7140 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
7141 | fi |
---|
7142 | |
---|
7143 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
7144 | |
---|
7145 | DEFS=-DHAVE_CONFIG_H |
---|
7146 | |
---|
7147 | # Without the "./", some shells look in PATH for config.status. |
---|
7148 | : ${CONFIG_STATUS=./config.status} |
---|
7149 | |
---|
7150 | echo creating $CONFIG_STATUS |
---|
7151 | rm -f $CONFIG_STATUS |
---|
7152 | cat > $CONFIG_STATUS <<EOF |
---|
7153 | #! /bin/sh |
---|
7154 | # Generated automatically by configure. |
---|
7155 | # Run this file to recreate the current configuration. |
---|
7156 | # This directory was configured as follows, |
---|
7157 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
7158 | # |
---|
7159 | # $0 $ac_configure_args |
---|
7160 | # |
---|
7161 | # Compiler output produced by configure, useful for debugging |
---|
7162 | # configure, is in ./config.log if it exists. |
---|
7163 | |
---|
7164 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
7165 | for ac_option |
---|
7166 | do |
---|
7167 | case "\$ac_option" in |
---|
7168 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
7169 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
7170 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
7171 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
7172 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
7173 | exit 0 ;; |
---|
7174 | -help | --help | --hel | --he | --h) |
---|
7175 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
7176 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
7177 | esac |
---|
7178 | done |
---|
7179 | |
---|
7180 | ac_given_srcdir=$srcdir |
---|
7181 | ac_given_INSTALL="$INSTALL" |
---|
7182 | |
---|
7183 | trap 'rm -fr `echo " |
---|
7184 | Makefile |
---|
7185 | gnome-vfs.spec |
---|
7186 | libgnomevfs/gnome-vfs-file-size.h |
---|
7187 | data/Makefile |
---|
7188 | data/mime/Makefile |
---|
7189 | idl/Makefile |
---|
7190 | intl/Makefile |
---|
7191 | libgnomevfs-corba/Makefile |
---|
7192 | libgnomevfs-pthread/Makefile |
---|
7193 | libgnomevfs/Makefile |
---|
7194 | modules/Makefile |
---|
7195 | modules/extfs/Makefile |
---|
7196 | modules/extfs/ar |
---|
7197 | modules/extfs/cpio |
---|
7198 | modules/extfs/deb |
---|
7199 | modules/extfs/lha |
---|
7200 | modules/extfs/rar |
---|
7201 | modules/extfs/zip |
---|
7202 | modules/extfs/zoo |
---|
7203 | man/Makefile |
---|
7204 | man/gnome-vfs-mime.5 |
---|
7205 | devel-docs/Makefile |
---|
7206 | devel-docs/gnome-vfs/Makefile |
---|
7207 | devel-docs/gnome-vfs-tutorial/Makefile |
---|
7208 | po/Makefile.in |
---|
7209 | test/Makefile |
---|
7210 | test/gnome-file-selection/Makefile |
---|
7211 | test/vfs-run |
---|
7212 | macros/Makefile |
---|
7213 | config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
7214 | EOF |
---|
7215 | cat >> $CONFIG_STATUS <<EOF |
---|
7216 | |
---|
7217 | # Protect against being on the right side of a sed subst in config.status. |
---|
7218 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
7219 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
7220 | $ac_vpsub |
---|
7221 | $extrasub |
---|
7222 | s%@SHELL@%$SHELL%g |
---|
7223 | s%@CFLAGS@%$CFLAGS%g |
---|
7224 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
7225 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
7226 | s%@FFLAGS@%$FFLAGS%g |
---|
7227 | s%@DEFS@%$DEFS%g |
---|
7228 | s%@LDFLAGS@%$LDFLAGS%g |
---|
7229 | s%@LIBS@%$LIBS%g |
---|
7230 | s%@exec_prefix@%$exec_prefix%g |
---|
7231 | s%@prefix@%$prefix%g |
---|
7232 | s%@program_transform_name@%$program_transform_name%g |
---|
7233 | s%@bindir@%$bindir%g |
---|
7234 | s%@sbindir@%$sbindir%g |
---|
7235 | s%@libexecdir@%$libexecdir%g |
---|
7236 | s%@datadir@%$datadir%g |
---|
7237 | s%@sysconfdir@%$sysconfdir%g |
---|
7238 | s%@sharedstatedir@%$sharedstatedir%g |
---|
7239 | s%@localstatedir@%$localstatedir%g |
---|
7240 | s%@libdir@%$libdir%g |
---|
7241 | s%@includedir@%$includedir%g |
---|
7242 | s%@oldincludedir@%$oldincludedir%g |
---|
7243 | s%@infodir@%$infodir%g |
---|
7244 | s%@mandir@%$mandir%g |
---|
7245 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
7246 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
7247 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
7248 | s%@PACKAGE@%$PACKAGE%g |
---|
7249 | s%@VERSION@%$VERSION%g |
---|
7250 | s%@ACLOCAL@%$ACLOCAL%g |
---|
7251 | s%@AUTOCONF@%$AUTOCONF%g |
---|
7252 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
7253 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
7254 | s%@MAKEINFO@%$MAKEINFO%g |
---|
7255 | s%@SET_MAKE@%$SET_MAKE%g |
---|
7256 | s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g |
---|
7257 | s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g |
---|
7258 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
7259 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
7260 | s%@MAINT@%$MAINT%g |
---|
7261 | s%@XML_I18N_MERGE_OAF_RULE@%$XML_I18N_MERGE_OAF_RULE%g |
---|
7262 | s%@XML_I18N_MERGE_KEYS_RULE@%$XML_I18N_MERGE_KEYS_RULE%g |
---|
7263 | s%@XML_I18N_MERGE_DESKTOP_RULE@%$XML_I18N_MERGE_DESKTOP_RULE%g |
---|
7264 | s%@XML_I18N_EXTRACT@%$XML_I18N_EXTRACT%g |
---|
7265 | s%@XML_I18N_MERGE@%$XML_I18N_MERGE%g |
---|
7266 | s%@XML_I18N_UPDATE@%$XML_I18N_UPDATE%g |
---|
7267 | s%@XML_I18N_TOOLS_PERL@%$XML_I18N_TOOLS_PERL%g |
---|
7268 | s%@CC@%$CC%g |
---|
7269 | s%@AWK@%$AWK%g |
---|
7270 | s%@host@%$host%g |
---|
7271 | s%@host_alias@%$host_alias%g |
---|
7272 | s%@host_cpu@%$host_cpu%g |
---|
7273 | s%@host_vendor@%$host_vendor%g |
---|
7274 | s%@host_os@%$host_os%g |
---|
7275 | s%@build@%$build%g |
---|
7276 | s%@build_alias@%$build_alias%g |
---|
7277 | s%@build_cpu@%$build_cpu%g |
---|
7278 | s%@build_vendor@%$build_vendor%g |
---|
7279 | s%@build_os@%$build_os%g |
---|
7280 | s%@RANLIB@%$RANLIB%g |
---|
7281 | s%@LN_S@%$LN_S%g |
---|
7282 | s%@LIBTOOL@%$LIBTOOL%g |
---|
7283 | s%@GLIB_REQUIRED@%$GLIB_REQUIRED%g |
---|
7284 | s%@GCONF_REQUIRED@%$GCONF_REQUIRED%g |
---|
7285 | s%@ENABLE_PROFILER@%$ENABLE_PROFILER%g |
---|
7286 | s%@ENABLE_PROFILER_TRUE@%$ENABLE_PROFILER_TRUE%g |
---|
7287 | s%@ENABLE_PROFILER_FALSE@%$ENABLE_PROFILER_FALSE%g |
---|
7288 | s%@PLATFORM_GNOME_2_TRUE@%$PLATFORM_GNOME_2_TRUE%g |
---|
7289 | s%@PLATFORM_GNOME_2_FALSE@%$PLATFORM_GNOME_2_FALSE%g |
---|
7290 | s%@GNOME_LIBS@%$GNOME_LIBS%g |
---|
7291 | s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g |
---|
7292 | s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g |
---|
7293 | s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g |
---|
7294 | s%@ZVT_LIBS@%$ZVT_LIBS%g |
---|
7295 | s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g |
---|
7296 | s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g |
---|
7297 | s%@GNOME_CONFIG@%$GNOME_CONFIG%g |
---|
7298 | s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g |
---|
7299 | s%@ORBIT_IDL@%$ORBIT_IDL%g |
---|
7300 | s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g |
---|
7301 | s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g |
---|
7302 | s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g |
---|
7303 | s%@ORBIT_LIBS@%$ORBIT_LIBS%g |
---|
7304 | s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g |
---|
7305 | s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g |
---|
7306 | s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g |
---|
7307 | s%@GNORBA_LIBS@%$GNORBA_LIBS%g |
---|
7308 | s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g |
---|
7309 | s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g |
---|
7310 | s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g |
---|
7311 | s%@VFS_GNOME_CFLAGS@%$VFS_GNOME_CFLAGS%g |
---|
7312 | s%@VFS_GNOMEUI_CFLAGS@%$VFS_GNOMEUI_CFLAGS%g |
---|
7313 | s%@VFS_CAPPLET_CFLAGS@%$VFS_CAPPLET_CFLAGS%g |
---|
7314 | s%@VFS_GNOME_LIBS@%$VFS_GNOME_LIBS%g |
---|
7315 | s%@VFS_GNOMEUI_LIBS@%$VFS_GNOMEUI_LIBS%g |
---|
7316 | s%@VFS_CAPPLET_LIBS@%$VFS_CAPPLET_LIBS%g |
---|
7317 | s%@GTKDOC@%$GTKDOC%g |
---|
7318 | s%@HAVE_GTK_DOC_TRUE@%$HAVE_GTK_DOC_TRUE%g |
---|
7319 | s%@HAVE_GTK_DOC_FALSE@%$HAVE_GTK_DOC_FALSE%g |
---|
7320 | s%@HAVE_GTK_DOC@%$HAVE_GTK_DOC%g |
---|
7321 | s%@ENABLE_GTK_DOC_TRUE@%$ENABLE_GTK_DOC_TRUE%g |
---|
7322 | s%@ENABLE_GTK_DOC_FALSE@%$ENABLE_GTK_DOC_FALSE%g |
---|
7323 | s%@GLIB_CONFIG@%$GLIB_CONFIG%g |
---|
7324 | s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g |
---|
7325 | s%@GLIB_LIBS@%$GLIB_LIBS%g |
---|
7326 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
---|
7327 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
---|
7328 | s%@GTK_LIBS@%$GTK_LIBS%g |
---|
7329 | s%@cflags_set@%$cflags_set%g |
---|
7330 | s%@LIBOBJS@%$LIBOBJS%g |
---|
7331 | s%@CPP@%$CPP%g |
---|
7332 | s%@need_gnome_support@%$need_gnome_support%g |
---|
7333 | s%@LTLIBOBJS@%$LTLIBOBJS%g |
---|
7334 | s%@BUILD_GNOME_SUPPORT_TRUE@%$BUILD_GNOME_SUPPORT_TRUE%g |
---|
7335 | s%@BUILD_GNOME_SUPPORT_FALSE@%$BUILD_GNOME_SUPPORT_FALSE%g |
---|
7336 | s%@PTHREAD_LIB@%$PTHREAD_LIB%g |
---|
7337 | s%@ALLOCA@%$ALLOCA%g |
---|
7338 | s%@USE_NLS@%$USE_NLS%g |
---|
7339 | s%@MSGFMT@%$MSGFMT%g |
---|
7340 | s%@GMSGFMT@%$GMSGFMT%g |
---|
7341 | s%@XGETTEXT@%$XGETTEXT%g |
---|
7342 | s%@GENCAT@%$GENCAT%g |
---|
7343 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
---|
7344 | s%@CATALOGS@%$CATALOGS%g |
---|
7345 | s%@CATOBJEXT@%$CATOBJEXT%g |
---|
7346 | s%@DATADIRNAME@%$DATADIRNAME%g |
---|
7347 | s%@GMOFILES@%$GMOFILES%g |
---|
7348 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
---|
7349 | s%@INTLDEPS@%$INTLDEPS%g |
---|
7350 | s%@INTLLIBS@%$INTLLIBS%g |
---|
7351 | s%@INTLOBJS@%$INTLOBJS%g |
---|
7352 | s%@POFILES@%$POFILES%g |
---|
7353 | s%@POSUB@%$POSUB%g |
---|
7354 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g |
---|
7355 | s%@GT_NO@%$GT_NO%g |
---|
7356 | s%@GT_YES@%$GT_YES%g |
---|
7357 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
---|
7358 | s%@l@%$l%g |
---|
7359 | s%@VFS_SIZE@%$VFS_SIZE%g |
---|
7360 | s%@VFS_OFFSET@%$VFS_OFFSET%g |
---|
7361 | s%@VFS_SIZE_IS@%$VFS_SIZE_IS%g |
---|
7362 | s%@VFS_OFFSET_IS@%$VFS_OFFSET_IS%g |
---|
7363 | s%@VFS_SIZE_PRINTF@%$VFS_SIZE_PRINTF%g |
---|
7364 | s%@VFS_OFFSET_PRINTF@%$VFS_OFFSET_PRINTF%g |
---|
7365 | s%@WERROR@%$WERROR%g |
---|
7366 | s%@VFS_CFLAGS@%$VFS_CFLAGS%g |
---|
7367 | s%@OAF_CONFIG@%$OAF_CONFIG%g |
---|
7368 | s%@OAF_REQUIRED@%$OAF_REQUIRED%g |
---|
7369 | s%@USING_OAF_TRUE@%$USING_OAF_TRUE%g |
---|
7370 | s%@USING_OAF_FALSE@%$USING_OAF_FALSE%g |
---|
7371 | s%@OAF_LIBS@%$OAF_LIBS%g |
---|
7372 | s%@OAF_CFLAGS@%$OAF_CFLAGS%g |
---|
7373 | s%@GNOME_VFS_DIR@%$GNOME_VFS_DIR%g |
---|
7374 | s%@INSIDE_GNOME_DOCU_TRUE@%$INSIDE_GNOME_DOCU_TRUE%g |
---|
7375 | s%@INSIDE_GNOME_DOCU_FALSE@%$INSIDE_GNOME_DOCU_FALSE%g |
---|
7376 | s%@VFSCORBA_LIBDIR@%$VFSCORBA_LIBDIR%g |
---|
7377 | s%@VFSCORBA_INCLUDEDIR@%$VFSCORBA_INCLUDEDIR%g |
---|
7378 | s%@VFSCORBA_LIBS@%$VFSCORBA_LIBS%g |
---|
7379 | s%@VFSPTHREAD_LIBDIR@%$VFSPTHREAD_LIBDIR%g |
---|
7380 | s%@VFSPTHREAD_INCLUDEDIR@%$VFSPTHREAD_INCLUDEDIR%g |
---|
7381 | s%@VFSPTHREAD_LIBS@%$VFSPTHREAD_LIBS%g |
---|
7382 | s%@VFS_LIBDIR@%$VFS_LIBDIR%g |
---|
7383 | s%@VFS_INCLUDEDIR@%$VFS_INCLUDEDIR%g |
---|
7384 | s%@VFS_LIBS@%$VFS_LIBS%g |
---|
7385 | s%@XML_CONFIG@%$XML_CONFIG%g |
---|
7386 | s%@XML_LIBS@%$XML_LIBS%g |
---|
7387 | s%@XML_CFLAGS@%$XML_CFLAGS%g |
---|
7388 | s%@GCONF_CONFIG@%$GCONF_CONFIG%g |
---|
7389 | s%@GCONF_CFLAGS@%$GCONF_CFLAGS%g |
---|
7390 | s%@GCONF_LIBS@%$GCONF_LIBS%g |
---|
7391 | s%@HAVE_LIBEFS_TRUE@%$HAVE_LIBEFS_TRUE%g |
---|
7392 | s%@HAVE_LIBEFS_FALSE@%$HAVE_LIBEFS_FALSE%g |
---|
7393 | s%@LIBEFS_LIBS@%$LIBEFS_LIBS%g |
---|
7394 | s%@LIBEFS_CFLAGS@%$LIBEFS_CFLAGS%g |
---|
7395 | s%@TOP_BUILDDIR@%$TOP_BUILDDIR%g |
---|
7396 | |
---|
7397 | CEOF |
---|
7398 | EOF |
---|
7399 | |
---|
7400 | cat >> $CONFIG_STATUS <<\EOF |
---|
7401 | |
---|
7402 | # Split the substitutions into bite-sized pieces for seds with |
---|
7403 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
7404 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
7405 | ac_file=1 # Number of current file. |
---|
7406 | ac_beg=1 # First line for current file. |
---|
7407 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
7408 | ac_more_lines=: |
---|
7409 | ac_sed_cmds="" |
---|
7410 | while $ac_more_lines; do |
---|
7411 | if test $ac_beg -gt 1; then |
---|
7412 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
7413 | else |
---|
7414 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
7415 | fi |
---|
7416 | if test ! -s conftest.s$ac_file; then |
---|
7417 | ac_more_lines=false |
---|
7418 | rm -f conftest.s$ac_file |
---|
7419 | else |
---|
7420 | if test -z "$ac_sed_cmds"; then |
---|
7421 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
7422 | else |
---|
7423 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
7424 | fi |
---|
7425 | ac_file=`expr $ac_file + 1` |
---|
7426 | ac_beg=$ac_end |
---|
7427 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
7428 | fi |
---|
7429 | done |
---|
7430 | if test -z "$ac_sed_cmds"; then |
---|
7431 | ac_sed_cmds=cat |
---|
7432 | fi |
---|
7433 | EOF |
---|
7434 | |
---|
7435 | cat >> $CONFIG_STATUS <<EOF |
---|
7436 | |
---|
7437 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
7438 | gnome-vfs.spec |
---|
7439 | libgnomevfs/gnome-vfs-file-size.h |
---|
7440 | data/Makefile |
---|
7441 | data/mime/Makefile |
---|
7442 | idl/Makefile |
---|
7443 | intl/Makefile |
---|
7444 | libgnomevfs-corba/Makefile |
---|
7445 | libgnomevfs-pthread/Makefile |
---|
7446 | libgnomevfs/Makefile |
---|
7447 | modules/Makefile |
---|
7448 | modules/extfs/Makefile |
---|
7449 | modules/extfs/ar |
---|
7450 | modules/extfs/cpio |
---|
7451 | modules/extfs/deb |
---|
7452 | modules/extfs/lha |
---|
7453 | modules/extfs/rar |
---|
7454 | modules/extfs/zip |
---|
7455 | modules/extfs/zoo |
---|
7456 | man/Makefile |
---|
7457 | man/gnome-vfs-mime.5 |
---|
7458 | devel-docs/Makefile |
---|
7459 | devel-docs/gnome-vfs/Makefile |
---|
7460 | devel-docs/gnome-vfs-tutorial/Makefile |
---|
7461 | po/Makefile.in |
---|
7462 | test/Makefile |
---|
7463 | test/gnome-file-selection/Makefile |
---|
7464 | test/vfs-run |
---|
7465 | macros/Makefile |
---|
7466 | "} |
---|
7467 | EOF |
---|
7468 | cat >> $CONFIG_STATUS <<\EOF |
---|
7469 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
7470 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7471 | case "$ac_file" in |
---|
7472 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
7473 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
7474 | *) ac_file_in="${ac_file}.in" ;; |
---|
7475 | esac |
---|
7476 | |
---|
7477 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
7478 | |
---|
7479 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7480 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
7481 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
7482 | # The file is in a subdirectory. |
---|
7483 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
7484 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
7485 | # A "../" for each directory in $ac_dir_suffix. |
---|
7486 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
7487 | else |
---|
7488 | ac_dir_suffix= ac_dots= |
---|
7489 | fi |
---|
7490 | |
---|
7491 | case "$ac_given_srcdir" in |
---|
7492 | .) srcdir=. |
---|
7493 | if test -z "$ac_dots"; then top_srcdir=. |
---|
7494 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
7495 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
7496 | *) # Relative path. |
---|
7497 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
7498 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
7499 | esac |
---|
7500 | |
---|
7501 | case "$ac_given_INSTALL" in |
---|
7502 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
7503 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
7504 | esac |
---|
7505 | |
---|
7506 | echo creating "$ac_file" |
---|
7507 | rm -f "$ac_file" |
---|
7508 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
7509 | case "$ac_file" in |
---|
7510 | *Makefile*) ac_comsub="1i\\ |
---|
7511 | # $configure_input" ;; |
---|
7512 | *) ac_comsub= ;; |
---|
7513 | esac |
---|
7514 | |
---|
7515 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
7516 | sed -e "$ac_comsub |
---|
7517 | s%@configure_input@%$configure_input%g |
---|
7518 | s%@srcdir@%$srcdir%g |
---|
7519 | s%@top_srcdir@%$top_srcdir%g |
---|
7520 | s%@INSTALL@%$INSTALL%g |
---|
7521 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
7522 | fi; done |
---|
7523 | rm -f conftest.s* |
---|
7524 | |
---|
7525 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
7526 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
7527 | # |
---|
7528 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
7529 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
7530 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
7531 | ac_dC='\3' |
---|
7532 | ac_dD='%g' |
---|
7533 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
7534 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7535 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
7536 | ac_uC=' ' |
---|
7537 | ac_uD='\4%g' |
---|
7538 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
7539 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7540 | ac_eB='$%\1#\2define\3' |
---|
7541 | ac_eC=' ' |
---|
7542 | ac_eD='%g' |
---|
7543 | |
---|
7544 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
7545 | EOF |
---|
7546 | cat >> $CONFIG_STATUS <<EOF |
---|
7547 | CONFIG_HEADERS="config.h" |
---|
7548 | EOF |
---|
7549 | cat >> $CONFIG_STATUS <<\EOF |
---|
7550 | fi |
---|
7551 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
7552 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7553 | case "$ac_file" in |
---|
7554 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
7555 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
7556 | *) ac_file_in="${ac_file}.in" ;; |
---|
7557 | esac |
---|
7558 | |
---|
7559 | echo creating $ac_file |
---|
7560 | |
---|
7561 | rm -f conftest.frag conftest.in conftest.out |
---|
7562 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
7563 | cat $ac_file_inputs > conftest.in |
---|
7564 | |
---|
7565 | EOF |
---|
7566 | |
---|
7567 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
7568 | # the proper values into config.h.in to produce config.h. And first: |
---|
7569 | # Protect against being on the right side of a sed subst in config.status. |
---|
7570 | # Protect against being in an unquoted here document in config.status. |
---|
7571 | rm -f conftest.vals |
---|
7572 | cat > conftest.hdr <<\EOF |
---|
7573 | s/[\\&%]/\\&/g |
---|
7574 | s%[\\$`]%\\&%g |
---|
7575 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
7576 | s%ac_d%ac_u%gp |
---|
7577 | s%ac_u%ac_e%gp |
---|
7578 | EOF |
---|
7579 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
7580 | rm -f conftest.hdr |
---|
7581 | |
---|
7582 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7583 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7584 | # on some systems where configure will not decide to define it. |
---|
7585 | cat >> conftest.vals <<\EOF |
---|
7586 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
7587 | EOF |
---|
7588 | |
---|
7589 | # Break up conftest.vals because some shells have a limit on |
---|
7590 | # the size of here documents, and old seds have small limits too. |
---|
7591 | |
---|
7592 | rm -f conftest.tail |
---|
7593 | while : |
---|
7594 | do |
---|
7595 | ac_lines=`grep -c . conftest.vals` |
---|
7596 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
7597 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
7598 | # Write a limited-size here document to conftest.frag. |
---|
7599 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
7600 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
7601 | echo 'CEOF |
---|
7602 | sed -f conftest.frag conftest.in > conftest.out |
---|
7603 | rm -f conftest.in |
---|
7604 | mv conftest.out conftest.in |
---|
7605 | ' >> $CONFIG_STATUS |
---|
7606 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
7607 | rm -f conftest.vals |
---|
7608 | mv conftest.tail conftest.vals |
---|
7609 | done |
---|
7610 | rm -f conftest.vals |
---|
7611 | |
---|
7612 | cat >> $CONFIG_STATUS <<\EOF |
---|
7613 | rm -f conftest.frag conftest.h |
---|
7614 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
7615 | cat conftest.in >> conftest.h |
---|
7616 | rm -f conftest.in |
---|
7617 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
7618 | echo "$ac_file is unchanged" |
---|
7619 | rm -f conftest.h |
---|
7620 | else |
---|
7621 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7622 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
7623 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
7624 | # The file is in a subdirectory. |
---|
7625 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
7626 | fi |
---|
7627 | rm -f $ac_file |
---|
7628 | mv conftest.h $ac_file |
---|
7629 | fi |
---|
7630 | fi; done |
---|
7631 | |
---|
7632 | EOF |
---|
7633 | |
---|
7634 | cat >> $CONFIG_STATUS <<EOF |
---|
7635 | ac_sources="$nls_cv_header_libgt" |
---|
7636 | ac_dests="$nls_cv_header_intl" |
---|
7637 | EOF |
---|
7638 | |
---|
7639 | cat >> $CONFIG_STATUS <<\EOF |
---|
7640 | srcdir=$ac_given_srcdir |
---|
7641 | while test -n "$ac_sources"; do |
---|
7642 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
---|
7643 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
---|
7644 | |
---|
7645 | echo "linking $srcdir/$ac_source to $ac_dest" |
---|
7646 | |
---|
7647 | if test ! -r $srcdir/$ac_source; then |
---|
7648 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } |
---|
7649 | fi |
---|
7650 | rm -f $ac_dest |
---|
7651 | |
---|
7652 | # Make relative symlinks. |
---|
7653 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7654 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` |
---|
7655 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then |
---|
7656 | # The dest file is in a subdirectory. |
---|
7657 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" |
---|
7658 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" |
---|
7659 | # A "../" for each directory in $ac_dest_dir_suffix. |
---|
7660 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
7661 | else |
---|
7662 | ac_dest_dir_suffix= ac_dots= |
---|
7663 | fi |
---|
7664 | |
---|
7665 | case "$srcdir" in |
---|
7666 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; |
---|
7667 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; |
---|
7668 | esac |
---|
7669 | |
---|
7670 | # Make a symlink if possible; otherwise try a hard link. |
---|
7671 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || |
---|
7672 | ln $srcdir/$ac_source $ac_dest; then : |
---|
7673 | else |
---|
7674 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } |
---|
7675 | fi |
---|
7676 | done |
---|
7677 | EOF |
---|
7678 | cat >> $CONFIG_STATUS <<EOF |
---|
7679 | |
---|
7680 | XML_I18N_TOOLS_PERL=${XML_I18N_TOOLS_PERL} |
---|
7681 | |
---|
7682 | |
---|
7683 | EOF |
---|
7684 | cat >> $CONFIG_STATUS <<\EOF |
---|
7685 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
7686 | |
---|
7687 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-extract.in > xml-i18n-extract; |
---|
7688 | chmod ugo+x xml-i18n-extract; |
---|
7689 | |
---|
7690 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-merge.in > xml-i18n-merge; |
---|
7691 | chmod ugo+x xml-i18n-merge; |
---|
7692 | |
---|
7693 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-update.in > xml-i18n-update; |
---|
7694 | chmod ugo+x xml-i18n-update; |
---|
7695 | |
---|
7696 | case "$CONFIG_FILES" in *po/Makefile.in*) |
---|
7697 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
---|
7698 | esac |
---|
7699 | |
---|
7700 | exit 0 |
---|
7701 | EOF |
---|
7702 | chmod +x $CONFIG_STATUS |
---|
7703 | rm -fr confdefs* $ac_clean_files |
---|
7704 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
7705 | |
---|
7706 | |
---|
7707 | chmod u+x test/vfs-run |
---|
7708 | |
---|
7709 | |
---|
7710 | echo "<= gnome-vfs configuration summary :" |
---|
7711 | case "X$ENABLE_PROFILER" in |
---|
7712 | X1) |
---|
7713 | echo " |
---|
7714 | Enable profiler : YES" |
---|
7715 | ;; |
---|
7716 | *) |
---|
7717 | echo " |
---|
7718 | Enable profiler : NO" |
---|
7719 | echo |
---|
7720 | ;; |
---|
7721 | esac |
---|
7722 | |
---|
7723 | echo " |
---|
7724 | CFLAGS : $CFLAGS |
---|
7725 | LDFLAGS : $LDFLAGS" |
---|
7726 | echo |
---|