1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.54. |
---|
4 | # |
---|
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
6 | # Free Software Foundation, Inc. |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | ## --------------------- ## |
---|
10 | ## M4sh Initialization. ## |
---|
11 | ## --------------------- ## |
---|
12 | |
---|
13 | # Be Bourne compatible |
---|
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
15 | emulate sh |
---|
16 | NULLCMD=: |
---|
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
18 | # is contrary to our usage. Disable this feature. |
---|
19 | alias -g '${1+"$@"}'='"$@"' |
---|
20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
21 | set -o posix |
---|
22 | fi |
---|
23 | |
---|
24 | # Support unset when possible. |
---|
25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
26 | as_unset=unset |
---|
27 | else |
---|
28 | as_unset=false |
---|
29 | fi |
---|
30 | |
---|
31 | |
---|
32 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
33 | $as_unset ENV MAIL MAILPATH |
---|
34 | PS1='$ ' |
---|
35 | PS2='> ' |
---|
36 | PS4='+ ' |
---|
37 | |
---|
38 | # NLS nuisances. |
---|
39 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
---|
40 | do |
---|
41 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
42 | eval $as_var=C; export $as_var |
---|
43 | else |
---|
44 | $as_unset $as_var |
---|
45 | fi |
---|
46 | done |
---|
47 | |
---|
48 | # Required to use basename. |
---|
49 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
50 | as_expr=expr |
---|
51 | else |
---|
52 | as_expr=false |
---|
53 | fi |
---|
54 | |
---|
55 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
56 | as_basename=basename |
---|
57 | else |
---|
58 | as_basename=false |
---|
59 | fi |
---|
60 | |
---|
61 | |
---|
62 | # Name of the executable. |
---|
63 | as_me=`$as_basename "$0" || |
---|
64 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
65 | X"$0" : 'X\(//\)$' \| \ |
---|
66 | X"$0" : 'X\(/\)$' \| \ |
---|
67 | . : '\(.\)' 2>/dev/null || |
---|
68 | echo X/"$0" | |
---|
69 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
70 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
71 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
72 | s/.*/./; q'` |
---|
73 | |
---|
74 | |
---|
75 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
76 | # Avoid depending upon Character Ranges. |
---|
77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
80 | as_cr_digits='0123456789' |
---|
81 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
82 | |
---|
83 | # The user is always right. |
---|
84 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
85 | echo "#! /bin/sh" >conftest.sh |
---|
86 | echo "exit 0" >>conftest.sh |
---|
87 | chmod +x conftest.sh |
---|
88 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
---|
89 | PATH_SEPARATOR=';' |
---|
90 | else |
---|
91 | PATH_SEPARATOR=: |
---|
92 | fi |
---|
93 | rm -f conftest.sh |
---|
94 | fi |
---|
95 | |
---|
96 | |
---|
97 | as_lineno_1=$LINENO |
---|
98 | as_lineno_2=$LINENO |
---|
99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
100 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
101 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
102 | # Find who we are. Look in the path if we contain no path at all |
---|
103 | # relative or not. |
---|
104 | case $0 in |
---|
105 | *[\\/]* ) as_myself=$0 ;; |
---|
106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
107 | for as_dir in $PATH |
---|
108 | do |
---|
109 | IFS=$as_save_IFS |
---|
110 | test -z "$as_dir" && as_dir=. |
---|
111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
112 | done |
---|
113 | |
---|
114 | ;; |
---|
115 | esac |
---|
116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
117 | # in which case we are not to be found in the path. |
---|
118 | if test "x$as_myself" = x; then |
---|
119 | as_myself=$0 |
---|
120 | fi |
---|
121 | if test ! -f "$as_myself"; then |
---|
122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
123 | { (exit 1); exit 1; }; } |
---|
124 | fi |
---|
125 | case $CONFIG_SHELL in |
---|
126 | '') |
---|
127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
129 | do |
---|
130 | IFS=$as_save_IFS |
---|
131 | test -z "$as_dir" && as_dir=. |
---|
132 | for as_base in sh bash ksh sh5; do |
---|
133 | case $as_dir in |
---|
134 | /*) |
---|
135 | if ("$as_dir/$as_base" -c ' |
---|
136 | as_lineno_1=$LINENO |
---|
137 | as_lineno_2=$LINENO |
---|
138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
139 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
141 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
142 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
143 | CONFIG_SHELL=$as_dir/$as_base |
---|
144 | export CONFIG_SHELL |
---|
145 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
146 | fi;; |
---|
147 | esac |
---|
148 | done |
---|
149 | done |
---|
150 | ;; |
---|
151 | esac |
---|
152 | |
---|
153 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
154 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
155 | # line-number line before each line; the second 'sed' does the real |
---|
156 | # work. The second script uses 'N' to pair each line-number line |
---|
157 | # with the numbered line, and appends trailing '-' during |
---|
158 | # substitution so that $LINENO is not a special case at line end. |
---|
159 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
160 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
161 | sed '=' <$as_myself | |
---|
162 | sed ' |
---|
163 | N |
---|
164 | s,$,-, |
---|
165 | : loop |
---|
166 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
167 | t loop |
---|
168 | s,-$,, |
---|
169 | s,^['$as_cr_digits']*\n,, |
---|
170 | ' >$as_me.lineno && |
---|
171 | chmod +x $as_me.lineno || |
---|
172 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
173 | { (exit 1); exit 1; }; } |
---|
174 | |
---|
175 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
176 | # (the dirname of $[0] is not the place where we might find the |
---|
177 | # original and so on. Autoconf is especially sensible to this). |
---|
178 | . ./$as_me.lineno |
---|
179 | # Exit status is that of the last command. |
---|
180 | exit |
---|
181 | } |
---|
182 | |
---|
183 | |
---|
184 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
185 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
186 | ' ECHO_T=' ' ;; |
---|
187 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
188 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
189 | esac |
---|
190 | |
---|
191 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
192 | as_expr=expr |
---|
193 | else |
---|
194 | as_expr=false |
---|
195 | fi |
---|
196 | |
---|
197 | rm -f conf$$ conf$$.exe conf$$.file |
---|
198 | echo >conf$$.file |
---|
199 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
200 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
201 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
202 | if test -f conf$$.exe; then |
---|
203 | # Don't use ln at all; we don't have any links |
---|
204 | as_ln_s='cp -p' |
---|
205 | else |
---|
206 | as_ln_s='ln -s' |
---|
207 | fi |
---|
208 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
209 | as_ln_s=ln |
---|
210 | else |
---|
211 | as_ln_s='cp -p' |
---|
212 | fi |
---|
213 | rm -f conf$$ conf$$.exe conf$$.file |
---|
214 | |
---|
215 | if mkdir -p . 2>/dev/null; then |
---|
216 | as_mkdir_p=: |
---|
217 | else |
---|
218 | as_mkdir_p=false |
---|
219 | fi |
---|
220 | |
---|
221 | as_executable_p="test -f" |
---|
222 | |
---|
223 | # Sed expression to map a string onto a valid CPP name. |
---|
224 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
225 | |
---|
226 | # Sed expression to map a string onto a valid variable name. |
---|
227 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
228 | |
---|
229 | |
---|
230 | # IFS |
---|
231 | # We need space, tab and new line, in precisely that order. |
---|
232 | as_nl=' |
---|
233 | ' |
---|
234 | IFS=" $as_nl" |
---|
235 | |
---|
236 | # CDPATH. |
---|
237 | $as_unset CDPATH |
---|
238 | |
---|
239 | |
---|
240 | # Name of the host. |
---|
241 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
242 | # so uname gets run too. |
---|
243 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
244 | |
---|
245 | exec 6>&1 |
---|
246 | |
---|
247 | # |
---|
248 | # Initializations. |
---|
249 | # |
---|
250 | ac_default_prefix=/usr/local |
---|
251 | ac_config_libobj_dir=. |
---|
252 | cross_compiling=no |
---|
253 | subdirs= |
---|
254 | MFLAGS= |
---|
255 | MAKEFLAGS= |
---|
256 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
257 | |
---|
258 | # Maximum number of lines to put in a shell here document. |
---|
259 | # This variable seems obsolete. It should probably be removed, and |
---|
260 | # only ac_max_sed_lines should be used. |
---|
261 | : ${ac_max_here_lines=38} |
---|
262 | |
---|
263 | # Identity of this package. |
---|
264 | PACKAGE_NAME= |
---|
265 | PACKAGE_TARNAME= |
---|
266 | PACKAGE_VERSION= |
---|
267 | PACKAGE_STRING= |
---|
268 | PACKAGE_BUGREPORT= |
---|
269 | |
---|
270 | ac_unique_file="index.theme.in" |
---|
271 | # Factoring default headers for most tests. |
---|
272 | ac_includes_default="\ |
---|
273 | #include <stdio.h> |
---|
274 | #if HAVE_SYS_TYPES_H |
---|
275 | # include <sys/types.h> |
---|
276 | #endif |
---|
277 | #if HAVE_SYS_STAT_H |
---|
278 | # include <sys/stat.h> |
---|
279 | #endif |
---|
280 | #if STDC_HEADERS |
---|
281 | # include <stdlib.h> |
---|
282 | # include <stddef.h> |
---|
283 | #else |
---|
284 | # if HAVE_STDLIB_H |
---|
285 | # include <stdlib.h> |
---|
286 | # endif |
---|
287 | #endif |
---|
288 | #if HAVE_STRING_H |
---|
289 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
290 | # include <memory.h> |
---|
291 | # endif |
---|
292 | # include <string.h> |
---|
293 | #endif |
---|
294 | #if HAVE_STRINGS_H |
---|
295 | # include <strings.h> |
---|
296 | #endif |
---|
297 | #if HAVE_INTTYPES_H |
---|
298 | # include <inttypes.h> |
---|
299 | #else |
---|
300 | # if HAVE_STDINT_H |
---|
301 | # include <stdint.h> |
---|
302 | # endif |
---|
303 | #endif |
---|
304 | #if HAVE_UNISTD_H |
---|
305 | # include <unistd.h> |
---|
306 | #endif" |
---|
307 | |
---|
308 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XML_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL GETTEXT_PACKAGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB MKINSTALLDIRS LIBOBJS LTLIBOBJS' |
---|
309 | ac_subst_files='' |
---|
310 | |
---|
311 | # Initialize some variables set by options. |
---|
312 | ac_init_help= |
---|
313 | ac_init_version=false |
---|
314 | # The variables have the same names as the options, with |
---|
315 | # dashes changed to underlines. |
---|
316 | cache_file=/dev/null |
---|
317 | exec_prefix=NONE |
---|
318 | no_create= |
---|
319 | no_recursion= |
---|
320 | prefix=NONE |
---|
321 | program_prefix=NONE |
---|
322 | program_suffix=NONE |
---|
323 | program_transform_name=s,x,x, |
---|
324 | silent= |
---|
325 | site= |
---|
326 | srcdir= |
---|
327 | verbose= |
---|
328 | x_includes=NONE |
---|
329 | x_libraries=NONE |
---|
330 | |
---|
331 | # Installation directory options. |
---|
332 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
333 | # and all the variables that are supposed to be based on exec_prefix |
---|
334 | # by default will actually change. |
---|
335 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
336 | bindir='${exec_prefix}/bin' |
---|
337 | sbindir='${exec_prefix}/sbin' |
---|
338 | libexecdir='${exec_prefix}/libexec' |
---|
339 | datadir='${prefix}/share' |
---|
340 | sysconfdir='${prefix}/etc' |
---|
341 | sharedstatedir='${prefix}/com' |
---|
342 | localstatedir='${prefix}/var' |
---|
343 | libdir='${exec_prefix}/lib' |
---|
344 | includedir='${prefix}/include' |
---|
345 | oldincludedir='/usr/include' |
---|
346 | infodir='${prefix}/info' |
---|
347 | mandir='${prefix}/man' |
---|
348 | |
---|
349 | ac_prev= |
---|
350 | for ac_option |
---|
351 | do |
---|
352 | # If the previous option needs an argument, assign it. |
---|
353 | if test -n "$ac_prev"; then |
---|
354 | eval "$ac_prev=\$ac_option" |
---|
355 | ac_prev= |
---|
356 | continue |
---|
357 | fi |
---|
358 | |
---|
359 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
360 | |
---|
361 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
362 | |
---|
363 | case $ac_option in |
---|
364 | |
---|
365 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
366 | ac_prev=bindir ;; |
---|
367 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
368 | bindir=$ac_optarg ;; |
---|
369 | |
---|
370 | -build | --build | --buil | --bui | --bu) |
---|
371 | ac_prev=build_alias ;; |
---|
372 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
373 | build_alias=$ac_optarg ;; |
---|
374 | |
---|
375 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
376 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
377 | ac_prev=cache_file ;; |
---|
378 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
379 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
380 | cache_file=$ac_optarg ;; |
---|
381 | |
---|
382 | --config-cache | -C) |
---|
383 | cache_file=config.cache ;; |
---|
384 | |
---|
385 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
386 | ac_prev=datadir ;; |
---|
387 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
388 | | --da=*) |
---|
389 | datadir=$ac_optarg ;; |
---|
390 | |
---|
391 | -disable-* | --disable-*) |
---|
392 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
393 | # Reject names that are not valid shell variable names. |
---|
394 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
395 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
396 | { (exit 1); exit 1; }; } |
---|
397 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
398 | eval "enable_$ac_feature=no" ;; |
---|
399 | |
---|
400 | -enable-* | --enable-*) |
---|
401 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
402 | # Reject names that are not valid shell variable names. |
---|
403 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
404 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
405 | { (exit 1); exit 1; }; } |
---|
406 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
407 | case $ac_option in |
---|
408 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
409 | *) ac_optarg=yes ;; |
---|
410 | esac |
---|
411 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
412 | |
---|
413 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
414 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
415 | | --exec | --exe | --ex) |
---|
416 | ac_prev=exec_prefix ;; |
---|
417 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
418 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
419 | | --exec=* | --exe=* | --ex=*) |
---|
420 | exec_prefix=$ac_optarg ;; |
---|
421 | |
---|
422 | -gas | --gas | --ga | --g) |
---|
423 | # Obsolete; use --with-gas. |
---|
424 | with_gas=yes ;; |
---|
425 | |
---|
426 | -help | --help | --hel | --he | -h) |
---|
427 | ac_init_help=long ;; |
---|
428 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
429 | ac_init_help=recursive ;; |
---|
430 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
431 | ac_init_help=short ;; |
---|
432 | |
---|
433 | -host | --host | --hos | --ho) |
---|
434 | ac_prev=host_alias ;; |
---|
435 | -host=* | --host=* | --hos=* | --ho=*) |
---|
436 | host_alias=$ac_optarg ;; |
---|
437 | |
---|
438 | -includedir | --includedir | --includedi | --included | --include \ |
---|
439 | | --includ | --inclu | --incl | --inc) |
---|
440 | ac_prev=includedir ;; |
---|
441 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
442 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
443 | includedir=$ac_optarg ;; |
---|
444 | |
---|
445 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
446 | ac_prev=infodir ;; |
---|
447 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
448 | infodir=$ac_optarg ;; |
---|
449 | |
---|
450 | -libdir | --libdir | --libdi | --libd) |
---|
451 | ac_prev=libdir ;; |
---|
452 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
453 | libdir=$ac_optarg ;; |
---|
454 | |
---|
455 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
456 | | --libexe | --libex | --libe) |
---|
457 | ac_prev=libexecdir ;; |
---|
458 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
459 | | --libexe=* | --libex=* | --libe=*) |
---|
460 | libexecdir=$ac_optarg ;; |
---|
461 | |
---|
462 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
463 | | --localstate | --localstat | --localsta | --localst \ |
---|
464 | | --locals | --local | --loca | --loc | --lo) |
---|
465 | ac_prev=localstatedir ;; |
---|
466 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
467 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
468 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
469 | localstatedir=$ac_optarg ;; |
---|
470 | |
---|
471 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
472 | ac_prev=mandir ;; |
---|
473 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
474 | mandir=$ac_optarg ;; |
---|
475 | |
---|
476 | -nfp | --nfp | --nf) |
---|
477 | # Obsolete; use --without-fp. |
---|
478 | with_fp=no ;; |
---|
479 | |
---|
480 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
481 | | --no-cr | --no-c | -n) |
---|
482 | no_create=yes ;; |
---|
483 | |
---|
484 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
485 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
486 | no_recursion=yes ;; |
---|
487 | |
---|
488 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
489 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
490 | | --oldin | --oldi | --old | --ol | --o) |
---|
491 | ac_prev=oldincludedir ;; |
---|
492 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
493 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
494 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
495 | oldincludedir=$ac_optarg ;; |
---|
496 | |
---|
497 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
498 | ac_prev=prefix ;; |
---|
499 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
500 | prefix=$ac_optarg ;; |
---|
501 | |
---|
502 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
503 | | --program-pre | --program-pr | --program-p) |
---|
504 | ac_prev=program_prefix ;; |
---|
505 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
506 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
507 | program_prefix=$ac_optarg ;; |
---|
508 | |
---|
509 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
510 | | --program-suf | --program-su | --program-s) |
---|
511 | ac_prev=program_suffix ;; |
---|
512 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
513 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
514 | program_suffix=$ac_optarg ;; |
---|
515 | |
---|
516 | -program-transform-name | --program-transform-name \ |
---|
517 | | --program-transform-nam | --program-transform-na \ |
---|
518 | | --program-transform-n | --program-transform- \ |
---|
519 | | --program-transform | --program-transfor \ |
---|
520 | | --program-transfo | --program-transf \ |
---|
521 | | --program-trans | --program-tran \ |
---|
522 | | --progr-tra | --program-tr | --program-t) |
---|
523 | ac_prev=program_transform_name ;; |
---|
524 | -program-transform-name=* | --program-transform-name=* \ |
---|
525 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
526 | | --program-transform-n=* | --program-transform-=* \ |
---|
527 | | --program-transform=* | --program-transfor=* \ |
---|
528 | | --program-transfo=* | --program-transf=* \ |
---|
529 | | --program-trans=* | --program-tran=* \ |
---|
530 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
531 | program_transform_name=$ac_optarg ;; |
---|
532 | |
---|
533 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
534 | | -silent | --silent | --silen | --sile | --sil) |
---|
535 | silent=yes ;; |
---|
536 | |
---|
537 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
538 | ac_prev=sbindir ;; |
---|
539 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
540 | | --sbi=* | --sb=*) |
---|
541 | sbindir=$ac_optarg ;; |
---|
542 | |
---|
543 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
544 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
545 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
546 | | --sha | --sh) |
---|
547 | ac_prev=sharedstatedir ;; |
---|
548 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
549 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
550 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
551 | | --sha=* | --sh=*) |
---|
552 | sharedstatedir=$ac_optarg ;; |
---|
553 | |
---|
554 | -site | --site | --sit) |
---|
555 | ac_prev=site ;; |
---|
556 | -site=* | --site=* | --sit=*) |
---|
557 | site=$ac_optarg ;; |
---|
558 | |
---|
559 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
560 | ac_prev=srcdir ;; |
---|
561 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
562 | srcdir=$ac_optarg ;; |
---|
563 | |
---|
564 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
565 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
566 | ac_prev=sysconfdir ;; |
---|
567 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
568 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
569 | sysconfdir=$ac_optarg ;; |
---|
570 | |
---|
571 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
572 | ac_prev=target_alias ;; |
---|
573 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
574 | target_alias=$ac_optarg ;; |
---|
575 | |
---|
576 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
577 | verbose=yes ;; |
---|
578 | |
---|
579 | -version | --version | --versio | --versi | --vers | -V) |
---|
580 | ac_init_version=: ;; |
---|
581 | |
---|
582 | -with-* | --with-*) |
---|
583 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
584 | # Reject names that are not valid shell variable names. |
---|
585 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
586 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
587 | { (exit 1); exit 1; }; } |
---|
588 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
589 | case $ac_option in |
---|
590 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
591 | *) ac_optarg=yes ;; |
---|
592 | esac |
---|
593 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
594 | |
---|
595 | -without-* | --without-*) |
---|
596 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
597 | # Reject names that are not valid shell variable names. |
---|
598 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
599 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
600 | { (exit 1); exit 1; }; } |
---|
601 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
602 | eval "with_$ac_package=no" ;; |
---|
603 | |
---|
604 | --x) |
---|
605 | # Obsolete; use --with-x. |
---|
606 | with_x=yes ;; |
---|
607 | |
---|
608 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
609 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
610 | ac_prev=x_includes ;; |
---|
611 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
612 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
613 | x_includes=$ac_optarg ;; |
---|
614 | |
---|
615 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
616 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
617 | ac_prev=x_libraries ;; |
---|
618 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
619 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
620 | x_libraries=$ac_optarg ;; |
---|
621 | |
---|
622 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
623 | Try \`$0 --help' for more information." >&2 |
---|
624 | { (exit 1); exit 1; }; } |
---|
625 | ;; |
---|
626 | |
---|
627 | *=*) |
---|
628 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
629 | # Reject names that are not valid shell variable names. |
---|
630 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
631 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
632 | { (exit 1); exit 1; }; } |
---|
633 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
634 | eval "$ac_envvar='$ac_optarg'" |
---|
635 | export $ac_envvar ;; |
---|
636 | |
---|
637 | *) |
---|
638 | # FIXME: should be removed in autoconf 3.0. |
---|
639 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
640 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
641 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
642 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
643 | ;; |
---|
644 | |
---|
645 | esac |
---|
646 | done |
---|
647 | |
---|
648 | if test -n "$ac_prev"; then |
---|
649 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
650 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
651 | { (exit 1); exit 1; }; } |
---|
652 | fi |
---|
653 | |
---|
654 | # Be sure to have absolute paths. |
---|
655 | for ac_var in exec_prefix prefix |
---|
656 | do |
---|
657 | eval ac_val=$`echo $ac_var` |
---|
658 | case $ac_val in |
---|
659 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
660 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
661 | { (exit 1); exit 1; }; };; |
---|
662 | esac |
---|
663 | done |
---|
664 | |
---|
665 | # Be sure to have absolute paths. |
---|
666 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
667 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
668 | do |
---|
669 | eval ac_val=$`echo $ac_var` |
---|
670 | case $ac_val in |
---|
671 | [\\/$]* | ?:[\\/]* ) ;; |
---|
672 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
673 | { (exit 1); exit 1; }; };; |
---|
674 | esac |
---|
675 | done |
---|
676 | |
---|
677 | # There might be people who depend on the old broken behavior: `$host' |
---|
678 | # used to hold the argument of --host etc. |
---|
679 | # FIXME: To remove some day. |
---|
680 | build=$build_alias |
---|
681 | host=$host_alias |
---|
682 | target=$target_alias |
---|
683 | |
---|
684 | # FIXME: To remove some day. |
---|
685 | if test "x$host_alias" != x; then |
---|
686 | if test "x$build_alias" = x; then |
---|
687 | cross_compiling=maybe |
---|
688 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
689 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
690 | elif test "x$build_alias" != "x$host_alias"; then |
---|
691 | cross_compiling=yes |
---|
692 | fi |
---|
693 | fi |
---|
694 | |
---|
695 | ac_tool_prefix= |
---|
696 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
697 | |
---|
698 | test "$silent" = yes && exec 6>/dev/null |
---|
699 | |
---|
700 | |
---|
701 | # Find the source files, if location was not specified. |
---|
702 | if test -z "$srcdir"; then |
---|
703 | ac_srcdir_defaulted=yes |
---|
704 | # Try the directory containing this script, then its parent. |
---|
705 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
706 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
707 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
708 | X"$0" : 'X\(//\)$' \| \ |
---|
709 | X"$0" : 'X\(/\)' \| \ |
---|
710 | . : '\(.\)' 2>/dev/null || |
---|
711 | echo X"$0" | |
---|
712 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
713 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
714 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
715 | /^X\(\/\).*/{ s//\1/; q; } |
---|
716 | s/.*/./; q'` |
---|
717 | srcdir=$ac_confdir |
---|
718 | if test ! -r $srcdir/$ac_unique_file; then |
---|
719 | srcdir=.. |
---|
720 | fi |
---|
721 | else |
---|
722 | ac_srcdir_defaulted=no |
---|
723 | fi |
---|
724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
725 | if test "$ac_srcdir_defaulted" = yes; then |
---|
726 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
727 | { (exit 1); exit 1; }; } |
---|
728 | else |
---|
729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
730 | { (exit 1); exit 1; }; } |
---|
731 | fi |
---|
732 | fi |
---|
733 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
734 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
735 | { (exit 1); exit 1; }; } |
---|
736 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
737 | ac_env_build_alias_set=${build_alias+set} |
---|
738 | ac_env_build_alias_value=$build_alias |
---|
739 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
740 | ac_cv_env_build_alias_value=$build_alias |
---|
741 | ac_env_host_alias_set=${host_alias+set} |
---|
742 | ac_env_host_alias_value=$host_alias |
---|
743 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
744 | ac_cv_env_host_alias_value=$host_alias |
---|
745 | ac_env_target_alias_set=${target_alias+set} |
---|
746 | ac_env_target_alias_value=$target_alias |
---|
747 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
748 | ac_cv_env_target_alias_value=$target_alias |
---|
749 | ac_env_CC_set=${CC+set} |
---|
750 | ac_env_CC_value=$CC |
---|
751 | ac_cv_env_CC_set=${CC+set} |
---|
752 | ac_cv_env_CC_value=$CC |
---|
753 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
754 | ac_env_CFLAGS_value=$CFLAGS |
---|
755 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
756 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
757 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
758 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
759 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
760 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
761 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
762 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
763 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
764 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
765 | ac_env_CPP_set=${CPP+set} |
---|
766 | ac_env_CPP_value=$CPP |
---|
767 | ac_cv_env_CPP_set=${CPP+set} |
---|
768 | ac_cv_env_CPP_value=$CPP |
---|
769 | |
---|
770 | # |
---|
771 | # Report the --help message. |
---|
772 | # |
---|
773 | if test "$ac_init_help" = "long"; then |
---|
774 | # Omit some internal or obsolete options to make the list less imposing. |
---|
775 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
776 | cat <<_ACEOF |
---|
777 | \`configure' configures this package to adapt to many kinds of systems. |
---|
778 | |
---|
779 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
780 | |
---|
781 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
782 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
783 | |
---|
784 | Defaults for the options are specified in brackets. |
---|
785 | |
---|
786 | Configuration: |
---|
787 | -h, --help display this help and exit |
---|
788 | --help=short display options specific to this package |
---|
789 | --help=recursive display the short help of all the included packages |
---|
790 | -V, --version display version information and exit |
---|
791 | -q, --quiet, --silent do not print \`checking...' messages |
---|
792 | --cache-file=FILE cache test results in FILE [disabled] |
---|
793 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
794 | -n, --no-create do not create output files |
---|
795 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
796 | |
---|
797 | _ACEOF |
---|
798 | |
---|
799 | cat <<_ACEOF |
---|
800 | Installation directories: |
---|
801 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
802 | [$ac_default_prefix] |
---|
803 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
804 | [PREFIX] |
---|
805 | |
---|
806 | By default, \`make install' will install all the files in |
---|
807 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
808 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
809 | for instance \`--prefix=\$HOME'. |
---|
810 | |
---|
811 | For better control, use the options below. |
---|
812 | |
---|
813 | Fine tuning of the installation directories: |
---|
814 | --bindir=DIR user executables [EPREFIX/bin] |
---|
815 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
816 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
817 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
818 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
819 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
820 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
821 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
822 | --includedir=DIR C header files [PREFIX/include] |
---|
823 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
824 | --infodir=DIR info documentation [PREFIX/info] |
---|
825 | --mandir=DIR man documentation [PREFIX/man] |
---|
826 | _ACEOF |
---|
827 | |
---|
828 | cat <<\_ACEOF |
---|
829 | |
---|
830 | Program names: |
---|
831 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
832 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
833 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
834 | _ACEOF |
---|
835 | fi |
---|
836 | |
---|
837 | if test -n "$ac_init_help"; then |
---|
838 | |
---|
839 | cat <<\_ACEOF |
---|
840 | |
---|
841 | Optional Features: |
---|
842 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
843 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
844 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
845 | (and sometimes confusing) to the casual installer |
---|
846 | |
---|
847 | Some influential environment variables: |
---|
848 | CC C compiler command |
---|
849 | CFLAGS C compiler flags |
---|
850 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
851 | nonstandard directory <lib dir> |
---|
852 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
853 | headers in a nonstandard directory <include dir> |
---|
854 | CPP C preprocessor |
---|
855 | |
---|
856 | Use these variables to override the choices made by `configure' or to help |
---|
857 | it to find libraries and programs with nonstandard names/locations. |
---|
858 | |
---|
859 | _ACEOF |
---|
860 | fi |
---|
861 | |
---|
862 | if test "$ac_init_help" = "recursive"; then |
---|
863 | # If there are subdirs, report their specific --help. |
---|
864 | ac_popdir=`pwd` |
---|
865 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
866 | test -d $ac_dir || continue |
---|
867 | ac_builddir=. |
---|
868 | |
---|
869 | if test "$ac_dir" != .; then |
---|
870 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
871 | # A "../" for each directory in $ac_dir_suffix. |
---|
872 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
873 | else |
---|
874 | ac_dir_suffix= ac_top_builddir= |
---|
875 | fi |
---|
876 | |
---|
877 | case $srcdir in |
---|
878 | .) # No --srcdir option. We are building in place. |
---|
879 | ac_srcdir=. |
---|
880 | if test -z "$ac_top_builddir"; then |
---|
881 | ac_top_srcdir=. |
---|
882 | else |
---|
883 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
884 | fi ;; |
---|
885 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
886 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
887 | ac_top_srcdir=$srcdir ;; |
---|
888 | *) # Relative path. |
---|
889 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
890 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
891 | esac |
---|
892 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
893 | # absolute. |
---|
894 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
895 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
896 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
897 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
898 | |
---|
899 | cd $ac_dir |
---|
900 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
901 | if test -f $ac_srcdir/configure.gnu; then |
---|
902 | echo |
---|
903 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
904 | elif test -f $ac_srcdir/configure; then |
---|
905 | echo |
---|
906 | $SHELL $ac_srcdir/configure --help=recursive |
---|
907 | elif test -f $ac_srcdir/configure.ac || |
---|
908 | test -f $ac_srcdir/configure.in; then |
---|
909 | echo |
---|
910 | $ac_configure --help |
---|
911 | else |
---|
912 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
913 | fi |
---|
914 | cd $ac_popdir |
---|
915 | done |
---|
916 | fi |
---|
917 | |
---|
918 | test -n "$ac_init_help" && exit 0 |
---|
919 | if $ac_init_version; then |
---|
920 | cat <<\_ACEOF |
---|
921 | |
---|
922 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
923 | Free Software Foundation, Inc. |
---|
924 | This configure script is free software; the Free Software Foundation |
---|
925 | gives unlimited permission to copy, distribute and modify it. |
---|
926 | _ACEOF |
---|
927 | exit 0 |
---|
928 | fi |
---|
929 | exec 5>config.log |
---|
930 | cat >&5 <<_ACEOF |
---|
931 | This file contains any messages produced by compilers while |
---|
932 | running configure, to aid debugging if configure makes a mistake. |
---|
933 | |
---|
934 | It was created by $as_me, which was |
---|
935 | generated by GNU Autoconf 2.54. Invocation command line was |
---|
936 | |
---|
937 | $ $0 $@ |
---|
938 | |
---|
939 | _ACEOF |
---|
940 | { |
---|
941 | cat <<_ASUNAME |
---|
942 | ## --------- ## |
---|
943 | ## Platform. ## |
---|
944 | ## --------- ## |
---|
945 | |
---|
946 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
947 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
948 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
949 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
950 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
951 | |
---|
952 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
953 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
954 | |
---|
955 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
956 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
957 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
958 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
959 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
960 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
961 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
962 | |
---|
963 | _ASUNAME |
---|
964 | |
---|
965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
966 | for as_dir in $PATH |
---|
967 | do |
---|
968 | IFS=$as_save_IFS |
---|
969 | test -z "$as_dir" && as_dir=. |
---|
970 | echo "PATH: $as_dir" |
---|
971 | done |
---|
972 | |
---|
973 | } >&5 |
---|
974 | |
---|
975 | cat >&5 <<_ACEOF |
---|
976 | |
---|
977 | |
---|
978 | ## ----------- ## |
---|
979 | ## Core tests. ## |
---|
980 | ## ----------- ## |
---|
981 | |
---|
982 | _ACEOF |
---|
983 | |
---|
984 | |
---|
985 | # Keep a trace of the command line. |
---|
986 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
987 | # Also quote any args containing shell meta-characters. |
---|
988 | ac_configure_args= |
---|
989 | ac_sep= |
---|
990 | for ac_arg |
---|
991 | do |
---|
992 | case $ac_arg in |
---|
993 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
994 | | --no-cr | --no-c | -n ) continue ;; |
---|
995 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
996 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
997 | continue ;; |
---|
998 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
999 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1000 | esac |
---|
1001 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1002 | # Get rid of the leading space. |
---|
1003 | ac_sep=" " |
---|
1004 | done |
---|
1005 | |
---|
1006 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1007 | # config.log. We remove comments because anyway the quotes in there |
---|
1008 | # would cause problems or look ugly. |
---|
1009 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1010 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1011 | trap 'exit_status=$? |
---|
1012 | # Save into config.log some information that might help in debugging. |
---|
1013 | { |
---|
1014 | echo |
---|
1015 | |
---|
1016 | cat <<\_ASBOX |
---|
1017 | ## ---------------- ## |
---|
1018 | ## Cache variables. ## |
---|
1019 | ## ---------------- ## |
---|
1020 | _ASBOX |
---|
1021 | echo |
---|
1022 | # The following way of writing the cache mishandles newlines in values, |
---|
1023 | { |
---|
1024 | (set) 2>&1 | |
---|
1025 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1026 | *ac_space=\ *) |
---|
1027 | sed -n \ |
---|
1028 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1029 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1030 | ;; |
---|
1031 | *) |
---|
1032 | sed -n \ |
---|
1033 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1034 | ;; |
---|
1035 | esac; |
---|
1036 | } |
---|
1037 | echo |
---|
1038 | |
---|
1039 | cat <<\_ASBOX |
---|
1040 | ## ----------------- ## |
---|
1041 | ## Output variables. ## |
---|
1042 | ## ----------------- ## |
---|
1043 | _ASBOX |
---|
1044 | echo |
---|
1045 | for ac_var in $ac_subst_vars |
---|
1046 | do |
---|
1047 | eval ac_val=$`echo $ac_var` |
---|
1048 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1049 | done | sort |
---|
1050 | echo |
---|
1051 | |
---|
1052 | if test -n "$ac_subst_files"; then |
---|
1053 | cat <<\_ASBOX |
---|
1054 | ## ------------- ## |
---|
1055 | ## Output files. ## |
---|
1056 | ## ------------- ## |
---|
1057 | _ASBOX |
---|
1058 | echo |
---|
1059 | for ac_var in $ac_subst_files |
---|
1060 | do |
---|
1061 | eval ac_val=$`echo $ac_var` |
---|
1062 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1063 | done | sort |
---|
1064 | echo |
---|
1065 | fi |
---|
1066 | |
---|
1067 | if test -s confdefs.h; then |
---|
1068 | cat <<\_ASBOX |
---|
1069 | ## ----------- ## |
---|
1070 | ## confdefs.h. ## |
---|
1071 | ## ----------- ## |
---|
1072 | _ASBOX |
---|
1073 | echo |
---|
1074 | sed "/^$/d" confdefs.h | sort |
---|
1075 | echo |
---|
1076 | fi |
---|
1077 | test "$ac_signal" != 0 && |
---|
1078 | echo "$as_me: caught signal $ac_signal" |
---|
1079 | echo "$as_me: exit $exit_status" |
---|
1080 | } >&5 |
---|
1081 | rm -f core core.* *.core && |
---|
1082 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1083 | exit $exit_status |
---|
1084 | ' 0 |
---|
1085 | for ac_signal in 1 2 13 15; do |
---|
1086 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1087 | done |
---|
1088 | ac_signal=0 |
---|
1089 | |
---|
1090 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1091 | rm -rf conftest* confdefs.h |
---|
1092 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1093 | echo >confdefs.h |
---|
1094 | |
---|
1095 | # Predefined preprocessor variables. |
---|
1096 | |
---|
1097 | cat >>confdefs.h <<_ACEOF |
---|
1098 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1099 | _ACEOF |
---|
1100 | |
---|
1101 | |
---|
1102 | cat >>confdefs.h <<_ACEOF |
---|
1103 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1104 | _ACEOF |
---|
1105 | |
---|
1106 | |
---|
1107 | cat >>confdefs.h <<_ACEOF |
---|
1108 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1109 | _ACEOF |
---|
1110 | |
---|
1111 | |
---|
1112 | cat >>confdefs.h <<_ACEOF |
---|
1113 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1114 | _ACEOF |
---|
1115 | |
---|
1116 | |
---|
1117 | cat >>confdefs.h <<_ACEOF |
---|
1118 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1119 | _ACEOF |
---|
1120 | |
---|
1121 | |
---|
1122 | # Let the site file select an alternate cache file if it wants to. |
---|
1123 | # Prefer explicitly selected file to automatically selected ones. |
---|
1124 | if test -z "$CONFIG_SITE"; then |
---|
1125 | if test "x$prefix" != xNONE; then |
---|
1126 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1127 | else |
---|
1128 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1129 | fi |
---|
1130 | fi |
---|
1131 | for ac_site_file in $CONFIG_SITE; do |
---|
1132 | if test -r "$ac_site_file"; then |
---|
1133 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1134 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1135 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1136 | . "$ac_site_file" |
---|
1137 | fi |
---|
1138 | done |
---|
1139 | |
---|
1140 | if test -r "$cache_file"; then |
---|
1141 | # Some versions of bash will fail to source /dev/null (special |
---|
1142 | # files actually), so we avoid doing that. |
---|
1143 | if test -f "$cache_file"; then |
---|
1144 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1145 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1146 | case $cache_file in |
---|
1147 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1148 | *) . ./$cache_file;; |
---|
1149 | esac |
---|
1150 | fi |
---|
1151 | else |
---|
1152 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1153 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1154 | >$cache_file |
---|
1155 | fi |
---|
1156 | |
---|
1157 | # Check that the precious variables saved in the cache have kept the same |
---|
1158 | # value. |
---|
1159 | ac_cache_corrupted=false |
---|
1160 | for ac_var in `(set) 2>&1 | |
---|
1161 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1162 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1163 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1164 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1165 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1166 | case $ac_old_set,$ac_new_set in |
---|
1167 | set,) |
---|
1168 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1169 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1170 | ac_cache_corrupted=: ;; |
---|
1171 | ,set) |
---|
1172 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1173 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1174 | ac_cache_corrupted=: ;; |
---|
1175 | ,);; |
---|
1176 | *) |
---|
1177 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1178 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1179 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1180 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1181 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1182 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1183 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1184 | ac_cache_corrupted=: |
---|
1185 | fi;; |
---|
1186 | esac |
---|
1187 | # Pass precious variables to config.status. |
---|
1188 | if test "$ac_new_set" = set; then |
---|
1189 | case $ac_new_val in |
---|
1190 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1191 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1192 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1193 | esac |
---|
1194 | case " $ac_configure_args " in |
---|
1195 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1196 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1197 | esac |
---|
1198 | fi |
---|
1199 | done |
---|
1200 | if $ac_cache_corrupted; then |
---|
1201 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1202 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1203 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1204 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1205 | { (exit 1); exit 1; }; } |
---|
1206 | fi |
---|
1207 | |
---|
1208 | ac_ext=c |
---|
1209 | ac_cpp='$CPP $CPPFLAGS' |
---|
1210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1213 | |
---|
1214 | |
---|
1215 | |
---|
1216 | |
---|
1217 | |
---|
1218 | |
---|
1219 | |
---|
1220 | |
---|
1221 | |
---|
1222 | |
---|
1223 | |
---|
1224 | |
---|
1225 | |
---|
1226 | |
---|
1227 | |
---|
1228 | |
---|
1229 | |
---|
1230 | |
---|
1231 | |
---|
1232 | am__api_version="1.4" |
---|
1233 | ac_aux_dir= |
---|
1234 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1235 | if test -f $ac_dir/install-sh; then |
---|
1236 | ac_aux_dir=$ac_dir |
---|
1237 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1238 | break |
---|
1239 | elif test -f $ac_dir/install.sh; then |
---|
1240 | ac_aux_dir=$ac_dir |
---|
1241 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1242 | break |
---|
1243 | elif test -f $ac_dir/shtool; then |
---|
1244 | ac_aux_dir=$ac_dir |
---|
1245 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1246 | break |
---|
1247 | fi |
---|
1248 | done |
---|
1249 | if test -z "$ac_aux_dir"; then |
---|
1250 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1251 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1252 | { (exit 1); exit 1; }; } |
---|
1253 | fi |
---|
1254 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1255 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1256 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1257 | |
---|
1258 | # Find a good install program. We prefer a C program (faster), |
---|
1259 | # so one script is as good as another. But avoid the broken or |
---|
1260 | # incompatible versions: |
---|
1261 | # SysV /etc/install, /usr/sbin/install |
---|
1262 | # SunOS /usr/etc/install |
---|
1263 | # IRIX /sbin/install |
---|
1264 | # AIX /bin/install |
---|
1265 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1266 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1267 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1268 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1269 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1270 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1271 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1272 | if test -z "$INSTALL"; then |
---|
1273 | if test "${ac_cv_path_install+set}" = set; then |
---|
1274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1275 | else |
---|
1276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1277 | for as_dir in $PATH |
---|
1278 | do |
---|
1279 | IFS=$as_save_IFS |
---|
1280 | test -z "$as_dir" && as_dir=. |
---|
1281 | # Account for people who put trailing slashes in PATH elements. |
---|
1282 | case $as_dir/ in |
---|
1283 | ./ | .// | /cC/* | \ |
---|
1284 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1285 | /usr/ucb/* ) ;; |
---|
1286 | *) |
---|
1287 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1288 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1289 | # by default. |
---|
1290 | for ac_prog in ginstall scoinst install; do |
---|
1291 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1292 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1293 | if test $ac_prog = install && |
---|
1294 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1295 | # AIX install. It has an incompatible calling convention. |
---|
1296 | : |
---|
1297 | elif test $ac_prog = install && |
---|
1298 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1299 | # program-specific install script used by HP pwplus--don't use. |
---|
1300 | : |
---|
1301 | else |
---|
1302 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1303 | break 3 |
---|
1304 | fi |
---|
1305 | fi |
---|
1306 | done |
---|
1307 | done |
---|
1308 | ;; |
---|
1309 | esac |
---|
1310 | done |
---|
1311 | |
---|
1312 | |
---|
1313 | fi |
---|
1314 | if test "${ac_cv_path_install+set}" = set; then |
---|
1315 | INSTALL=$ac_cv_path_install |
---|
1316 | else |
---|
1317 | # As a last resort, use the slow shell script. We don't cache a |
---|
1318 | # path for INSTALL within a source directory, because that will |
---|
1319 | # break other packages using the cache if that directory is |
---|
1320 | # removed, or if the path is relative. |
---|
1321 | INSTALL=$ac_install_sh |
---|
1322 | fi |
---|
1323 | fi |
---|
1324 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1325 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1326 | |
---|
1327 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1328 | # It thinks the first close brace ends the variable substitution. |
---|
1329 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1330 | |
---|
1331 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1332 | |
---|
1333 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1334 | |
---|
1335 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1336 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1337 | # Just in case |
---|
1338 | sleep 1 |
---|
1339 | echo timestamp > conftestfile |
---|
1340 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1341 | # arguments. Must try -L first in case configure is actually a |
---|
1342 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1343 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1344 | # directory). |
---|
1345 | if ( |
---|
1346 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
1347 | if test "$*" = "X"; then |
---|
1348 | # -L didn't work. |
---|
1349 | set X `ls -t $srcdir/configure conftestfile` |
---|
1350 | fi |
---|
1351 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
1352 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
1353 | |
---|
1354 | # If neither matched, then we have a broken ls. This can happen |
---|
1355 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1356 | # broken ls alias from the environment. This has actually |
---|
1357 | # happened. Such a system could not be considered "sane". |
---|
1358 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1359 | alias in your environment" >&5 |
---|
1360 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1361 | alias in your environment" >&2;} |
---|
1362 | { (exit 1); exit 1; }; } |
---|
1363 | fi |
---|
1364 | |
---|
1365 | test "$2" = conftestfile |
---|
1366 | ) |
---|
1367 | then |
---|
1368 | # Ok. |
---|
1369 | : |
---|
1370 | else |
---|
1371 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1372 | Check your system clock" >&5 |
---|
1373 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1374 | Check your system clock" >&2;} |
---|
1375 | { (exit 1); exit 1; }; } |
---|
1376 | fi |
---|
1377 | rm -f conftest* |
---|
1378 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1379 | echo "${ECHO_T}yes" >&6 |
---|
1380 | test "$program_prefix" != NONE && |
---|
1381 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1382 | # Use a double $ so make ignores it. |
---|
1383 | test "$program_suffix" != NONE && |
---|
1384 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1385 | # Double any \ or $. echo might interpret backslashes. |
---|
1386 | # By default was `s,x,x', remove it if useless. |
---|
1387 | cat <<\_ACEOF >conftest.sed |
---|
1388 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1389 | _ACEOF |
---|
1390 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1391 | rm conftest.sed |
---|
1392 | |
---|
1393 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
1394 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
---|
1395 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
---|
1396 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1398 | else |
---|
1399 | cat >conftest.make <<\_ACEOF |
---|
1400 | all: |
---|
1401 | @echo 'ac_maketemp="${MAKE}"' |
---|
1402 | _ACEOF |
---|
1403 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1404 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1405 | if test -n "$ac_maketemp"; then |
---|
1406 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1407 | else |
---|
1408 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1409 | fi |
---|
1410 | rm -f conftest.make |
---|
1411 | fi |
---|
1412 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1413 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1414 | echo "${ECHO_T}yes" >&6 |
---|
1415 | SET_MAKE= |
---|
1416 | else |
---|
1417 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1418 | echo "${ECHO_T}no" >&6 |
---|
1419 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1420 | fi |
---|
1421 | |
---|
1422 | |
---|
1423 | PACKAGE=gnome-icon-theme |
---|
1424 | |
---|
1425 | VERSION=1.0.0 |
---|
1426 | |
---|
1427 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
1428 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1429 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1430 | { (exit 1); exit 1; }; } |
---|
1431 | fi |
---|
1432 | |
---|
1433 | cat >>confdefs.h <<_ACEOF |
---|
1434 | #define PACKAGE "$PACKAGE" |
---|
1435 | _ACEOF |
---|
1436 | |
---|
1437 | |
---|
1438 | cat >>confdefs.h <<_ACEOF |
---|
1439 | #define VERSION "$VERSION" |
---|
1440 | _ACEOF |
---|
1441 | |
---|
1442 | |
---|
1443 | |
---|
1444 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
1445 | echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 |
---|
1446 | echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 |
---|
1447 | # Run test in a subshell; some versions of sh will print an error if |
---|
1448 | # an executable is not found, even if stderr is redirected. |
---|
1449 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1450 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
---|
1451 | ACLOCAL=aclocal-${am__api_version} |
---|
1452 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1453 | echo "${ECHO_T}found" >&6 |
---|
1454 | else |
---|
1455 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
---|
1456 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1457 | echo "${ECHO_T}missing" >&6 |
---|
1458 | fi |
---|
1459 | |
---|
1460 | echo "$as_me:$LINENO: checking for working autoconf" >&5 |
---|
1461 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
---|
1462 | # Run test in a subshell; some versions of sh will print an error if |
---|
1463 | # an executable is not found, even if stderr is redirected. |
---|
1464 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1465 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
1466 | AUTOCONF=autoconf |
---|
1467 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1468 | echo "${ECHO_T}found" >&6 |
---|
1469 | else |
---|
1470 | AUTOCONF="$missing_dir/missing autoconf" |
---|
1471 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1472 | echo "${ECHO_T}missing" >&6 |
---|
1473 | fi |
---|
1474 | |
---|
1475 | echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 |
---|
1476 | echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 |
---|
1477 | # Run test in a subshell; some versions of sh will print an error if |
---|
1478 | # an executable is not found, even if stderr is redirected. |
---|
1479 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1480 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
---|
1481 | AUTOMAKE=automake-${am__api_version} |
---|
1482 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1483 | echo "${ECHO_T}found" >&6 |
---|
1484 | else |
---|
1485 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
---|
1486 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1487 | echo "${ECHO_T}missing" >&6 |
---|
1488 | fi |
---|
1489 | |
---|
1490 | echo "$as_me:$LINENO: checking for working autoheader" >&5 |
---|
1491 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
---|
1492 | # Run test in a subshell; some versions of sh will print an error if |
---|
1493 | # an executable is not found, even if stderr is redirected. |
---|
1494 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1495 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
1496 | AUTOHEADER=autoheader |
---|
1497 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1498 | echo "${ECHO_T}found" >&6 |
---|
1499 | else |
---|
1500 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
1501 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1502 | echo "${ECHO_T}missing" >&6 |
---|
1503 | fi |
---|
1504 | |
---|
1505 | echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
---|
1506 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
---|
1507 | # Run test in a subshell; some versions of sh will print an error if |
---|
1508 | # an executable is not found, even if stderr is redirected. |
---|
1509 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
1510 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
1511 | MAKEINFO=makeinfo |
---|
1512 | echo "$as_me:$LINENO: result: found" >&5 |
---|
1513 | echo "${ECHO_T}found" >&6 |
---|
1514 | else |
---|
1515 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
1516 | echo "$as_me:$LINENO: result: missing" >&5 |
---|
1517 | echo "${ECHO_T}missing" >&6 |
---|
1518 | fi |
---|
1519 | |
---|
1520 | |
---|
1521 | |
---|
1522 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
1523 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
---|
1524 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
1525 | if test "${enable_maintainer_mode+set}" = set; then |
---|
1526 | enableval="$enable_maintainer_mode" |
---|
1527 | USE_MAINTAINER_MODE=$enableval |
---|
1528 | else |
---|
1529 | USE_MAINTAINER_MODE=no |
---|
1530 | fi; |
---|
1531 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
---|
1532 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
---|
1533 | |
---|
1534 | |
---|
1535 | if test $USE_MAINTAINER_MODE = yes; then |
---|
1536 | MAINTAINER_MODE_TRUE= |
---|
1537 | MAINTAINER_MODE_FALSE='#' |
---|
1538 | else |
---|
1539 | MAINTAINER_MODE_TRUE='#' |
---|
1540 | MAINTAINER_MODE_FALSE= |
---|
1541 | fi |
---|
1542 | MAINT=$MAINTAINER_MODE_TRUE |
---|
1543 | |
---|
1544 | |
---|
1545 | |
---|
1546 | |
---|
1547 | |
---|
1548 | if test -n ""; then |
---|
1549 | echo "$as_me:$LINENO: checking for intltool >= " >&5 |
---|
1550 | echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6 |
---|
1551 | |
---|
1552 | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'` |
---|
1553 | INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < ${srcdir}/intltool-update.in` |
---|
1554 | |
---|
1555 | INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${srcdir}/intltool-update.in` |
---|
1556 | |
---|
1557 | |
---|
1558 | if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then |
---|
1559 | echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 |
---|
1560 | echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6 |
---|
1561 | else |
---|
1562 | echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5 |
---|
1563 | echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6 |
---|
1564 | exit 1 |
---|
1565 | fi |
---|
1566 | fi |
---|
1567 | |
---|
1568 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1569 | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1570 | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1571 | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p' |
---|
1572 | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1573 | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1574 | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1575 | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1576 | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1577 | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1578 | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1579 | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -s -u -c $(top_builddir)/po/.intltool-merge-cache' |
---|
1580 | |
---|
1581 | |
---|
1582 | |
---|
1583 | |
---|
1584 | |
---|
1585 | |
---|
1586 | |
---|
1587 | |
---|
1588 | |
---|
1589 | |
---|
1590 | |
---|
1591 | |
---|
1592 | |
---|
1593 | |
---|
1594 | # Use the tools built into the package, not the ones that are installed. |
---|
1595 | |
---|
1596 | INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' |
---|
1597 | INTLTOOL_MERGE='$(top_builddir)/intltool-merge' |
---|
1598 | INTLTOOL_UPDATE='$(top_builddir)/intltool-update' |
---|
1599 | |
---|
1600 | |
---|
1601 | |
---|
1602 | |
---|
1603 | |
---|
1604 | # Extract the first word of "perl", so it can be a program name with args. |
---|
1605 | set dummy perl; ac_word=$2 |
---|
1606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1608 | if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then |
---|
1609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1610 | else |
---|
1611 | case $INTLTOOL_PERL in |
---|
1612 | [\\/]* | ?:[\\/]*) |
---|
1613 | ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. |
---|
1614 | ;; |
---|
1615 | *) |
---|
1616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1617 | for as_dir in $PATH |
---|
1618 | do |
---|
1619 | IFS=$as_save_IFS |
---|
1620 | test -z "$as_dir" && as_dir=. |
---|
1621 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1623 | ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" |
---|
1624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1625 | break 2 |
---|
1626 | fi |
---|
1627 | done |
---|
1628 | done |
---|
1629 | |
---|
1630 | ;; |
---|
1631 | esac |
---|
1632 | fi |
---|
1633 | INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL |
---|
1634 | |
---|
1635 | if test -n "$INTLTOOL_PERL"; then |
---|
1636 | echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 |
---|
1637 | echo "${ECHO_T}$INTLTOOL_PERL" >&6 |
---|
1638 | else |
---|
1639 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1640 | echo "${ECHO_T}no" >&6 |
---|
1641 | fi |
---|
1642 | |
---|
1643 | if test -z "$INTLTOOL_PERL"; then |
---|
1644 | { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 |
---|
1645 | echo "$as_me: error: perl not found; required for intltool" >&2;} |
---|
1646 | { (exit 1); exit 1; }; } |
---|
1647 | fi |
---|
1648 | if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then |
---|
1649 | { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 |
---|
1650 | echo "$as_me: error: perl 5.x required for intltool" >&2;} |
---|
1651 | { (exit 1); exit 1; }; } |
---|
1652 | fi |
---|
1653 | |
---|
1654 | # Remove file type tags (using []) from po/POTFILES. |
---|
1655 | |
---|
1656 | |
---|
1657 | |
---|
1658 | |
---|
1659 | |
---|
1660 | |
---|
1661 | |
---|
1662 | # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT. |
---|
1663 | |
---|
1664 | ac_config_commands="$ac_config_commands default-1" |
---|
1665 | |
---|
1666 | |
---|
1667 | |
---|
1668 | |
---|
1669 | ALL_LINGUAS="am bg ca cs da de el es fi fr he hu it ko lv mk ms nl no pl pt_BR ro ru sl sq sv tr vi zh_CN zh_TW" |
---|
1670 | GETTEXT_PACKAGE=gnome-icon-theme |
---|
1671 | |
---|
1672 | ac_ext=c |
---|
1673 | ac_cpp='$CPP $CPPFLAGS' |
---|
1674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1677 | if test -n "$ac_tool_prefix"; then |
---|
1678 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1679 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1682 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1684 | else |
---|
1685 | if test -n "$CC"; then |
---|
1686 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1687 | else |
---|
1688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1689 | for as_dir in $PATH |
---|
1690 | do |
---|
1691 | IFS=$as_save_IFS |
---|
1692 | test -z "$as_dir" && as_dir=. |
---|
1693 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1695 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1697 | break 2 |
---|
1698 | fi |
---|
1699 | done |
---|
1700 | done |
---|
1701 | |
---|
1702 | fi |
---|
1703 | fi |
---|
1704 | CC=$ac_cv_prog_CC |
---|
1705 | if test -n "$CC"; then |
---|
1706 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1707 | echo "${ECHO_T}$CC" >&6 |
---|
1708 | else |
---|
1709 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1710 | echo "${ECHO_T}no" >&6 |
---|
1711 | fi |
---|
1712 | |
---|
1713 | fi |
---|
1714 | if test -z "$ac_cv_prog_CC"; then |
---|
1715 | ac_ct_CC=$CC |
---|
1716 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1717 | set dummy gcc; ac_word=$2 |
---|
1718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1720 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1722 | else |
---|
1723 | if test -n "$ac_ct_CC"; then |
---|
1724 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1725 | else |
---|
1726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1727 | for as_dir in $PATH |
---|
1728 | do |
---|
1729 | IFS=$as_save_IFS |
---|
1730 | test -z "$as_dir" && as_dir=. |
---|
1731 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1733 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1735 | break 2 |
---|
1736 | fi |
---|
1737 | done |
---|
1738 | done |
---|
1739 | |
---|
1740 | fi |
---|
1741 | fi |
---|
1742 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1743 | if test -n "$ac_ct_CC"; then |
---|
1744 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1745 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1746 | else |
---|
1747 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1748 | echo "${ECHO_T}no" >&6 |
---|
1749 | fi |
---|
1750 | |
---|
1751 | CC=$ac_ct_CC |
---|
1752 | else |
---|
1753 | CC="$ac_cv_prog_CC" |
---|
1754 | fi |
---|
1755 | |
---|
1756 | if test -z "$CC"; then |
---|
1757 | if test -n "$ac_tool_prefix"; then |
---|
1758 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1759 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1762 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1764 | else |
---|
1765 | if test -n "$CC"; then |
---|
1766 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1767 | else |
---|
1768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1769 | for as_dir in $PATH |
---|
1770 | do |
---|
1771 | IFS=$as_save_IFS |
---|
1772 | test -z "$as_dir" && as_dir=. |
---|
1773 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1775 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1777 | break 2 |
---|
1778 | fi |
---|
1779 | done |
---|
1780 | done |
---|
1781 | |
---|
1782 | fi |
---|
1783 | fi |
---|
1784 | CC=$ac_cv_prog_CC |
---|
1785 | if test -n "$CC"; then |
---|
1786 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1787 | echo "${ECHO_T}$CC" >&6 |
---|
1788 | else |
---|
1789 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1790 | echo "${ECHO_T}no" >&6 |
---|
1791 | fi |
---|
1792 | |
---|
1793 | fi |
---|
1794 | if test -z "$ac_cv_prog_CC"; then |
---|
1795 | ac_ct_CC=$CC |
---|
1796 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1797 | set dummy cc; ac_word=$2 |
---|
1798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1800 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1802 | else |
---|
1803 | if test -n "$ac_ct_CC"; then |
---|
1804 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1805 | else |
---|
1806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1807 | for as_dir in $PATH |
---|
1808 | do |
---|
1809 | IFS=$as_save_IFS |
---|
1810 | test -z "$as_dir" && as_dir=. |
---|
1811 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1813 | ac_cv_prog_ac_ct_CC="cc" |
---|
1814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1815 | break 2 |
---|
1816 | fi |
---|
1817 | done |
---|
1818 | done |
---|
1819 | |
---|
1820 | fi |
---|
1821 | fi |
---|
1822 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1823 | if test -n "$ac_ct_CC"; then |
---|
1824 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1825 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1826 | else |
---|
1827 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1828 | echo "${ECHO_T}no" >&6 |
---|
1829 | fi |
---|
1830 | |
---|
1831 | CC=$ac_ct_CC |
---|
1832 | else |
---|
1833 | CC="$ac_cv_prog_CC" |
---|
1834 | fi |
---|
1835 | |
---|
1836 | fi |
---|
1837 | if test -z "$CC"; then |
---|
1838 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1839 | set dummy cc; ac_word=$2 |
---|
1840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1842 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1844 | else |
---|
1845 | if test -n "$CC"; then |
---|
1846 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1847 | else |
---|
1848 | ac_prog_rejected=no |
---|
1849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1850 | for as_dir in $PATH |
---|
1851 | do |
---|
1852 | IFS=$as_save_IFS |
---|
1853 | test -z "$as_dir" && as_dir=. |
---|
1854 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1855 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1856 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1857 | ac_prog_rejected=yes |
---|
1858 | continue |
---|
1859 | fi |
---|
1860 | ac_cv_prog_CC="cc" |
---|
1861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1862 | break 2 |
---|
1863 | fi |
---|
1864 | done |
---|
1865 | done |
---|
1866 | |
---|
1867 | if test $ac_prog_rejected = yes; then |
---|
1868 | # We found a bogon in the path, so make sure we never use it. |
---|
1869 | set dummy $ac_cv_prog_CC |
---|
1870 | shift |
---|
1871 | if test $# != 0; then |
---|
1872 | # We chose a different compiler from the bogus one. |
---|
1873 | # However, it has the same basename, so the bogon will be chosen |
---|
1874 | # first if we set CC to just the basename; use the full file name. |
---|
1875 | shift |
---|
1876 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
1877 | fi |
---|
1878 | fi |
---|
1879 | fi |
---|
1880 | fi |
---|
1881 | CC=$ac_cv_prog_CC |
---|
1882 | if test -n "$CC"; then |
---|
1883 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1884 | echo "${ECHO_T}$CC" >&6 |
---|
1885 | else |
---|
1886 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1887 | echo "${ECHO_T}no" >&6 |
---|
1888 | fi |
---|
1889 | |
---|
1890 | fi |
---|
1891 | if test -z "$CC"; then |
---|
1892 | if test -n "$ac_tool_prefix"; then |
---|
1893 | for ac_prog in cl |
---|
1894 | do |
---|
1895 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1896 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1899 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1901 | else |
---|
1902 | if test -n "$CC"; then |
---|
1903 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1904 | else |
---|
1905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1906 | for as_dir in $PATH |
---|
1907 | do |
---|
1908 | IFS=$as_save_IFS |
---|
1909 | test -z "$as_dir" && as_dir=. |
---|
1910 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1912 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1914 | break 2 |
---|
1915 | fi |
---|
1916 | done |
---|
1917 | done |
---|
1918 | |
---|
1919 | fi |
---|
1920 | fi |
---|
1921 | CC=$ac_cv_prog_CC |
---|
1922 | if test -n "$CC"; then |
---|
1923 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1924 | echo "${ECHO_T}$CC" >&6 |
---|
1925 | else |
---|
1926 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1927 | echo "${ECHO_T}no" >&6 |
---|
1928 | fi |
---|
1929 | |
---|
1930 | test -n "$CC" && break |
---|
1931 | done |
---|
1932 | fi |
---|
1933 | if test -z "$CC"; then |
---|
1934 | ac_ct_CC=$CC |
---|
1935 | for ac_prog in cl |
---|
1936 | do |
---|
1937 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1938 | set dummy $ac_prog; ac_word=$2 |
---|
1939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1941 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1943 | else |
---|
1944 | if test -n "$ac_ct_CC"; then |
---|
1945 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1946 | else |
---|
1947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1948 | for as_dir in $PATH |
---|
1949 | do |
---|
1950 | IFS=$as_save_IFS |
---|
1951 | test -z "$as_dir" && as_dir=. |
---|
1952 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1953 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1954 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1955 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1956 | break 2 |
---|
1957 | fi |
---|
1958 | done |
---|
1959 | done |
---|
1960 | |
---|
1961 | fi |
---|
1962 | fi |
---|
1963 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1964 | if test -n "$ac_ct_CC"; then |
---|
1965 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1966 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1967 | else |
---|
1968 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1969 | echo "${ECHO_T}no" >&6 |
---|
1970 | fi |
---|
1971 | |
---|
1972 | test -n "$ac_ct_CC" && break |
---|
1973 | done |
---|
1974 | |
---|
1975 | CC=$ac_ct_CC |
---|
1976 | fi |
---|
1977 | |
---|
1978 | fi |
---|
1979 | |
---|
1980 | |
---|
1981 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
---|
1982 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
---|
1983 | { (exit 1); exit 1; }; } |
---|
1984 | |
---|
1985 | # Provide some information about the compiler. |
---|
1986 | echo "$as_me:$LINENO:" \ |
---|
1987 | "checking for C compiler version" >&5 |
---|
1988 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1989 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1990 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1991 | ac_status=$? |
---|
1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1993 | (exit $ac_status); } |
---|
1994 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1995 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1996 | ac_status=$? |
---|
1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1998 | (exit $ac_status); } |
---|
1999 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2000 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2001 | ac_status=$? |
---|
2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2003 | (exit $ac_status); } |
---|
2004 | |
---|
2005 | cat >conftest.$ac_ext <<_ACEOF |
---|
2006 | #line $LINENO "configure" |
---|
2007 | #include "confdefs.h" |
---|
2008 | |
---|
2009 | int |
---|
2010 | main () |
---|
2011 | { |
---|
2012 | |
---|
2013 | ; |
---|
2014 | return 0; |
---|
2015 | } |
---|
2016 | _ACEOF |
---|
2017 | ac_clean_files_save=$ac_clean_files |
---|
2018 | ac_clean_files="$ac_clean_files a.out a.exe" |
---|
2019 | # Try to create an executable without -o first, disregard a.out. |
---|
2020 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2021 | # of exeext. |
---|
2022 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
---|
2023 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
---|
2024 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2025 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2026 | (eval $ac_link_default) 2>&5 |
---|
2027 | ac_status=$? |
---|
2028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2029 | (exit $ac_status); }; then |
---|
2030 | # Find the output, starting from the most likely. This scheme is |
---|
2031 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2032 | # resort. |
---|
2033 | |
---|
2034 | # Be careful to initialize this variable, since it used to be cached. |
---|
2035 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2036 | ac_cv_exeext= |
---|
2037 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do |
---|
2038 | test -f "$ac_file" || continue |
---|
2039 | case $ac_file in |
---|
2040 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2041 | a.out ) # We found the default executable, but exeext='' is most |
---|
2042 | # certainly right. |
---|
2043 | break;; |
---|
2044 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2045 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
---|
2046 | export ac_cv_exeext |
---|
2047 | break;; |
---|
2048 | * ) break;; |
---|
2049 | esac |
---|
2050 | done |
---|
2051 | else |
---|
2052 | echo "$as_me: failed program was:" >&5 |
---|
2053 | cat conftest.$ac_ext >&5 |
---|
2054 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2055 | check \`config.log' for details." >&5 |
---|
2056 | echo "$as_me: error: C compiler cannot create executables |
---|
2057 | check \`config.log' for details." >&2;} |
---|
2058 | { (exit 77); exit 77; }; } |
---|
2059 | fi |
---|
2060 | |
---|
2061 | ac_exeext=$ac_cv_exeext |
---|
2062 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2063 | echo "${ECHO_T}$ac_file" >&6 |
---|
2064 | |
---|
2065 | # Check the compiler produces executables we can run. If not, either |
---|
2066 | # the compiler is broken, or we cross compile. |
---|
2067 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2068 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2069 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2070 | # If not cross compiling, check that we can run a simple program. |
---|
2071 | if test "$cross_compiling" != yes; then |
---|
2072 | if { ac_try='./$ac_file' |
---|
2073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2074 | (eval $ac_try) 2>&5 |
---|
2075 | ac_status=$? |
---|
2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2077 | (exit $ac_status); }; }; then |
---|
2078 | cross_compiling=no |
---|
2079 | else |
---|
2080 | if test "$cross_compiling" = maybe; then |
---|
2081 | cross_compiling=yes |
---|
2082 | else |
---|
2083 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2084 | If you meant to cross compile, use \`--host'." >&5 |
---|
2085 | echo "$as_me: error: cannot run C compiled programs. |
---|
2086 | If you meant to cross compile, use \`--host'." >&2;} |
---|
2087 | { (exit 1); exit 1; }; } |
---|
2088 | fi |
---|
2089 | fi |
---|
2090 | fi |
---|
2091 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2092 | echo "${ECHO_T}yes" >&6 |
---|
2093 | |
---|
2094 | rm -f a.out a.exe conftest$ac_cv_exeext |
---|
2095 | ac_clean_files=$ac_clean_files_save |
---|
2096 | # Check the compiler produces executables we can run. If not, either |
---|
2097 | # the compiler is broken, or we cross compile. |
---|
2098 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2099 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2100 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2101 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2102 | |
---|
2103 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2104 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2106 | (eval $ac_link) 2>&5 |
---|
2107 | ac_status=$? |
---|
2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2109 | (exit $ac_status); }; then |
---|
2110 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2111 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2112 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2113 | # `rm'. |
---|
2114 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2115 | test -f "$ac_file" || continue |
---|
2116 | case $ac_file in |
---|
2117 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2118 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2119 | export ac_cv_exeext |
---|
2120 | break;; |
---|
2121 | * ) break;; |
---|
2122 | esac |
---|
2123 | done |
---|
2124 | else |
---|
2125 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
---|
2126 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
---|
2127 | { (exit 1); exit 1; }; } |
---|
2128 | fi |
---|
2129 | |
---|
2130 | rm -f conftest$ac_cv_exeext |
---|
2131 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2132 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2133 | |
---|
2134 | rm -f conftest.$ac_ext |
---|
2135 | EXEEXT=$ac_cv_exeext |
---|
2136 | ac_exeext=$EXEEXT |
---|
2137 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2138 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2139 | if test "${ac_cv_objext+set}" = set; then |
---|
2140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2141 | else |
---|
2142 | cat >conftest.$ac_ext <<_ACEOF |
---|
2143 | #line $LINENO "configure" |
---|
2144 | #include "confdefs.h" |
---|
2145 | |
---|
2146 | int |
---|
2147 | main () |
---|
2148 | { |
---|
2149 | |
---|
2150 | ; |
---|
2151 | return 0; |
---|
2152 | } |
---|
2153 | _ACEOF |
---|
2154 | rm -f conftest.o conftest.obj |
---|
2155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2156 | (eval $ac_compile) 2>&5 |
---|
2157 | ac_status=$? |
---|
2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2159 | (exit $ac_status); }; then |
---|
2160 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2161 | case $ac_file in |
---|
2162 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2163 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2164 | break;; |
---|
2165 | esac |
---|
2166 | done |
---|
2167 | else |
---|
2168 | echo "$as_me: failed program was:" >&5 |
---|
2169 | cat conftest.$ac_ext >&5 |
---|
2170 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
---|
2171 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
---|
2172 | { (exit 1); exit 1; }; } |
---|
2173 | fi |
---|
2174 | |
---|
2175 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2176 | fi |
---|
2177 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2178 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2179 | OBJEXT=$ac_cv_objext |
---|
2180 | ac_objext=$OBJEXT |
---|
2181 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2182 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2183 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2185 | else |
---|
2186 | cat >conftest.$ac_ext <<_ACEOF |
---|
2187 | #line $LINENO "configure" |
---|
2188 | #include "confdefs.h" |
---|
2189 | |
---|
2190 | int |
---|
2191 | main () |
---|
2192 | { |
---|
2193 | #ifndef __GNUC__ |
---|
2194 | choke me |
---|
2195 | #endif |
---|
2196 | |
---|
2197 | ; |
---|
2198 | return 0; |
---|
2199 | } |
---|
2200 | _ACEOF |
---|
2201 | rm -f conftest.$ac_objext |
---|
2202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2203 | (eval $ac_compile) 2>&5 |
---|
2204 | ac_status=$? |
---|
2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2206 | (exit $ac_status); } && |
---|
2207 | { ac_try='test -s conftest.$ac_objext' |
---|
2208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2209 | (eval $ac_try) 2>&5 |
---|
2210 | ac_status=$? |
---|
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2212 | (exit $ac_status); }; }; then |
---|
2213 | ac_compiler_gnu=yes |
---|
2214 | else |
---|
2215 | echo "$as_me: failed program was:" >&5 |
---|
2216 | cat conftest.$ac_ext >&5 |
---|
2217 | ac_compiler_gnu=no |
---|
2218 | fi |
---|
2219 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2220 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2221 | |
---|
2222 | fi |
---|
2223 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2224 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2225 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2226 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2227 | ac_save_CFLAGS=$CFLAGS |
---|
2228 | CFLAGS="-g" |
---|
2229 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2230 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2231 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2233 | else |
---|
2234 | cat >conftest.$ac_ext <<_ACEOF |
---|
2235 | #line $LINENO "configure" |
---|
2236 | #include "confdefs.h" |
---|
2237 | |
---|
2238 | int |
---|
2239 | main () |
---|
2240 | { |
---|
2241 | |
---|
2242 | ; |
---|
2243 | return 0; |
---|
2244 | } |
---|
2245 | _ACEOF |
---|
2246 | rm -f conftest.$ac_objext |
---|
2247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2248 | (eval $ac_compile) 2>&5 |
---|
2249 | ac_status=$? |
---|
2250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2251 | (exit $ac_status); } && |
---|
2252 | { ac_try='test -s conftest.$ac_objext' |
---|
2253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2254 | (eval $ac_try) 2>&5 |
---|
2255 | ac_status=$? |
---|
2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2257 | (exit $ac_status); }; }; then |
---|
2258 | ac_cv_prog_cc_g=yes |
---|
2259 | else |
---|
2260 | echo "$as_me: failed program was:" >&5 |
---|
2261 | cat conftest.$ac_ext >&5 |
---|
2262 | ac_cv_prog_cc_g=no |
---|
2263 | fi |
---|
2264 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2265 | fi |
---|
2266 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2267 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2268 | if test "$ac_test_CFLAGS" = set; then |
---|
2269 | CFLAGS=$ac_save_CFLAGS |
---|
2270 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2271 | if test "$GCC" = yes; then |
---|
2272 | CFLAGS="-g -O2" |
---|
2273 | else |
---|
2274 | CFLAGS="-g" |
---|
2275 | fi |
---|
2276 | else |
---|
2277 | if test "$GCC" = yes; then |
---|
2278 | CFLAGS="-O2" |
---|
2279 | else |
---|
2280 | CFLAGS= |
---|
2281 | fi |
---|
2282 | fi |
---|
2283 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2284 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2285 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2287 | else |
---|
2288 | ac_cv_prog_cc_stdc=no |
---|
2289 | ac_save_CC=$CC |
---|
2290 | cat >conftest.$ac_ext <<_ACEOF |
---|
2291 | #line $LINENO "configure" |
---|
2292 | #include "confdefs.h" |
---|
2293 | #include <stdarg.h> |
---|
2294 | #include <stdio.h> |
---|
2295 | #include <sys/types.h> |
---|
2296 | #include <sys/stat.h> |
---|
2297 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2298 | struct buf { int x; }; |
---|
2299 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2300 | static char *e (p, i) |
---|
2301 | char **p; |
---|
2302 | int i; |
---|
2303 | { |
---|
2304 | return p[i]; |
---|
2305 | } |
---|
2306 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2307 | { |
---|
2308 | char *s; |
---|
2309 | va_list v; |
---|
2310 | va_start (v,p); |
---|
2311 | s = g (p, va_arg (v,int)); |
---|
2312 | va_end (v); |
---|
2313 | return s; |
---|
2314 | } |
---|
2315 | int test (int i, double x); |
---|
2316 | struct s1 {int (*f) (int a);}; |
---|
2317 | struct s2 {int (*f) (double a);}; |
---|
2318 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2319 | int argc; |
---|
2320 | char **argv; |
---|
2321 | int |
---|
2322 | main () |
---|
2323 | { |
---|
2324 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2325 | ; |
---|
2326 | return 0; |
---|
2327 | } |
---|
2328 | _ACEOF |
---|
2329 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2330 | # breaks some systems' header files. |
---|
2331 | # AIX -qlanglvl=ansi |
---|
2332 | # Ultrix and OSF/1 -std1 |
---|
2333 | # HP-UX 10.20 and later -Ae |
---|
2334 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2335 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2336 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2337 | do |
---|
2338 | CC="$ac_save_CC $ac_arg" |
---|
2339 | rm -f conftest.$ac_objext |
---|
2340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2341 | (eval $ac_compile) 2>&5 |
---|
2342 | ac_status=$? |
---|
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2344 | (exit $ac_status); } && |
---|
2345 | { ac_try='test -s conftest.$ac_objext' |
---|
2346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2347 | (eval $ac_try) 2>&5 |
---|
2348 | ac_status=$? |
---|
2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2350 | (exit $ac_status); }; }; then |
---|
2351 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2352 | break |
---|
2353 | else |
---|
2354 | echo "$as_me: failed program was:" >&5 |
---|
2355 | cat conftest.$ac_ext >&5 |
---|
2356 | fi |
---|
2357 | rm -f conftest.$ac_objext |
---|
2358 | done |
---|
2359 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2360 | CC=$ac_save_CC |
---|
2361 | |
---|
2362 | fi |
---|
2363 | |
---|
2364 | case "x$ac_cv_prog_cc_stdc" in |
---|
2365 | x|xno) |
---|
2366 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2367 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2368 | *) |
---|
2369 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2370 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2371 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2372 | esac |
---|
2373 | |
---|
2374 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2375 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2376 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2377 | # the declaration of exit, since it's the most demanding environment. |
---|
2378 | cat >conftest.$ac_ext <<_ACEOF |
---|
2379 | #ifndef __cplusplus |
---|
2380 | choke me |
---|
2381 | #endif |
---|
2382 | _ACEOF |
---|
2383 | rm -f conftest.$ac_objext |
---|
2384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2385 | (eval $ac_compile) 2>&5 |
---|
2386 | ac_status=$? |
---|
2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2388 | (exit $ac_status); } && |
---|
2389 | { ac_try='test -s conftest.$ac_objext' |
---|
2390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2391 | (eval $ac_try) 2>&5 |
---|
2392 | ac_status=$? |
---|
2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2394 | (exit $ac_status); }; }; then |
---|
2395 | for ac_declaration in \ |
---|
2396 | ''\ |
---|
2397 | '#include <stdlib.h>' \ |
---|
2398 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2399 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2400 | 'extern "C" void exit (int) throw ();' \ |
---|
2401 | 'extern "C" void exit (int);' \ |
---|
2402 | 'void exit (int);' |
---|
2403 | do |
---|
2404 | cat >conftest.$ac_ext <<_ACEOF |
---|
2405 | #line $LINENO "configure" |
---|
2406 | #include "confdefs.h" |
---|
2407 | #include <stdlib.h> |
---|
2408 | $ac_declaration |
---|
2409 | int |
---|
2410 | main () |
---|
2411 | { |
---|
2412 | exit (42); |
---|
2413 | ; |
---|
2414 | return 0; |
---|
2415 | } |
---|
2416 | _ACEOF |
---|
2417 | rm -f conftest.$ac_objext |
---|
2418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2419 | (eval $ac_compile) 2>&5 |
---|
2420 | ac_status=$? |
---|
2421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2422 | (exit $ac_status); } && |
---|
2423 | { ac_try='test -s conftest.$ac_objext' |
---|
2424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2425 | (eval $ac_try) 2>&5 |
---|
2426 | ac_status=$? |
---|
2427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2428 | (exit $ac_status); }; }; then |
---|
2429 | : |
---|
2430 | else |
---|
2431 | echo "$as_me: failed program was:" >&5 |
---|
2432 | cat conftest.$ac_ext >&5 |
---|
2433 | continue |
---|
2434 | fi |
---|
2435 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2436 | cat >conftest.$ac_ext <<_ACEOF |
---|
2437 | #line $LINENO "configure" |
---|
2438 | #include "confdefs.h" |
---|
2439 | $ac_declaration |
---|
2440 | int |
---|
2441 | main () |
---|
2442 | { |
---|
2443 | exit (42); |
---|
2444 | ; |
---|
2445 | return 0; |
---|
2446 | } |
---|
2447 | _ACEOF |
---|
2448 | rm -f conftest.$ac_objext |
---|
2449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2450 | (eval $ac_compile) 2>&5 |
---|
2451 | ac_status=$? |
---|
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2453 | (exit $ac_status); } && |
---|
2454 | { ac_try='test -s conftest.$ac_objext' |
---|
2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2456 | (eval $ac_try) 2>&5 |
---|
2457 | ac_status=$? |
---|
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2459 | (exit $ac_status); }; }; then |
---|
2460 | break |
---|
2461 | else |
---|
2462 | echo "$as_me: failed program was:" >&5 |
---|
2463 | cat conftest.$ac_ext >&5 |
---|
2464 | fi |
---|
2465 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2466 | done |
---|
2467 | rm -f conftest* |
---|
2468 | if test -n "$ac_declaration"; then |
---|
2469 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2470 | echo $ac_declaration >>confdefs.h |
---|
2471 | echo '#endif' >>confdefs.h |
---|
2472 | fi |
---|
2473 | |
---|
2474 | else |
---|
2475 | echo "$as_me: failed program was:" >&5 |
---|
2476 | cat conftest.$ac_ext >&5 |
---|
2477 | fi |
---|
2478 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2479 | ac_ext=c |
---|
2480 | ac_cpp='$CPP $CPPFLAGS' |
---|
2481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2484 | |
---|
2485 | if test -n "$ac_tool_prefix"; then |
---|
2486 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2487 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2490 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2492 | else |
---|
2493 | if test -n "$RANLIB"; then |
---|
2494 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2495 | else |
---|
2496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2497 | for as_dir in $PATH |
---|
2498 | do |
---|
2499 | IFS=$as_save_IFS |
---|
2500 | test -z "$as_dir" && as_dir=. |
---|
2501 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2502 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2503 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2505 | break 2 |
---|
2506 | fi |
---|
2507 | done |
---|
2508 | done |
---|
2509 | |
---|
2510 | fi |
---|
2511 | fi |
---|
2512 | RANLIB=$ac_cv_prog_RANLIB |
---|
2513 | if test -n "$RANLIB"; then |
---|
2514 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
2515 | echo "${ECHO_T}$RANLIB" >&6 |
---|
2516 | else |
---|
2517 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2518 | echo "${ECHO_T}no" >&6 |
---|
2519 | fi |
---|
2520 | |
---|
2521 | fi |
---|
2522 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2523 | ac_ct_RANLIB=$RANLIB |
---|
2524 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2525 | set dummy ranlib; ac_word=$2 |
---|
2526 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2528 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
2529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2530 | else |
---|
2531 | if test -n "$ac_ct_RANLIB"; then |
---|
2532 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2533 | else |
---|
2534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2535 | for as_dir in $PATH |
---|
2536 | do |
---|
2537 | IFS=$as_save_IFS |
---|
2538 | test -z "$as_dir" && as_dir=. |
---|
2539 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2540 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2541 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2543 | break 2 |
---|
2544 | fi |
---|
2545 | done |
---|
2546 | done |
---|
2547 | |
---|
2548 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
2549 | fi |
---|
2550 | fi |
---|
2551 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2552 | if test -n "$ac_ct_RANLIB"; then |
---|
2553 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2554 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
2555 | else |
---|
2556 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2557 | echo "${ECHO_T}no" >&6 |
---|
2558 | fi |
---|
2559 | |
---|
2560 | RANLIB=$ac_ct_RANLIB |
---|
2561 | else |
---|
2562 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2563 | fi |
---|
2564 | |
---|
2565 | |
---|
2566 | ac_ext=c |
---|
2567 | ac_cpp='$CPP $CPPFLAGS' |
---|
2568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2571 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
2572 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
2573 | # On Suns, sometimes $CPP names a directory. |
---|
2574 | if test -n "$CPP" && test -d "$CPP"; then |
---|
2575 | CPP= |
---|
2576 | fi |
---|
2577 | if test -z "$CPP"; then |
---|
2578 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2580 | else |
---|
2581 | # Double quotes because CPP needs to be expanded |
---|
2582 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
2583 | do |
---|
2584 | ac_preproc_ok=false |
---|
2585 | for ac_c_preproc_warn_flag in '' yes |
---|
2586 | do |
---|
2587 | # Use a header file that comes with gcc, so configuring glibc |
---|
2588 | # with a fresh cross-compiler works. |
---|
2589 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2590 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2591 | cat >conftest.$ac_ext <<_ACEOF |
---|
2592 | #line $LINENO "configure" |
---|
2593 | #include "confdefs.h" |
---|
2594 | #include <assert.h> |
---|
2595 | Syntax error |
---|
2596 | _ACEOF |
---|
2597 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2598 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2599 | ac_status=$? |
---|
2600 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2601 | rm -f conftest.er1 |
---|
2602 | cat conftest.err >&5 |
---|
2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2604 | (exit $ac_status); } >/dev/null; then |
---|
2605 | if test -s conftest.err; then |
---|
2606 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2607 | else |
---|
2608 | ac_cpp_err= |
---|
2609 | fi |
---|
2610 | else |
---|
2611 | ac_cpp_err=yes |
---|
2612 | fi |
---|
2613 | if test -z "$ac_cpp_err"; then |
---|
2614 | : |
---|
2615 | else |
---|
2616 | echo "$as_me: failed program was:" >&5 |
---|
2617 | cat conftest.$ac_ext >&5 |
---|
2618 | # Broken: fails on valid input. |
---|
2619 | continue |
---|
2620 | fi |
---|
2621 | rm -f conftest.err conftest.$ac_ext |
---|
2622 | |
---|
2623 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2624 | # can be detected and how. |
---|
2625 | cat >conftest.$ac_ext <<_ACEOF |
---|
2626 | #line $LINENO "configure" |
---|
2627 | #include "confdefs.h" |
---|
2628 | #include <ac_nonexistent.h> |
---|
2629 | _ACEOF |
---|
2630 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2631 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2632 | ac_status=$? |
---|
2633 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2634 | rm -f conftest.er1 |
---|
2635 | cat conftest.err >&5 |
---|
2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2637 | (exit $ac_status); } >/dev/null; then |
---|
2638 | if test -s conftest.err; then |
---|
2639 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2640 | else |
---|
2641 | ac_cpp_err= |
---|
2642 | fi |
---|
2643 | else |
---|
2644 | ac_cpp_err=yes |
---|
2645 | fi |
---|
2646 | if test -z "$ac_cpp_err"; then |
---|
2647 | # Broken: success on invalid input. |
---|
2648 | continue |
---|
2649 | else |
---|
2650 | echo "$as_me: failed program was:" >&5 |
---|
2651 | cat conftest.$ac_ext >&5 |
---|
2652 | # Passes both tests. |
---|
2653 | ac_preproc_ok=: |
---|
2654 | break |
---|
2655 | fi |
---|
2656 | rm -f conftest.err conftest.$ac_ext |
---|
2657 | |
---|
2658 | done |
---|
2659 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2660 | rm -f conftest.err conftest.$ac_ext |
---|
2661 | if $ac_preproc_ok; then |
---|
2662 | break |
---|
2663 | fi |
---|
2664 | |
---|
2665 | done |
---|
2666 | ac_cv_prog_CPP=$CPP |
---|
2667 | |
---|
2668 | fi |
---|
2669 | CPP=$ac_cv_prog_CPP |
---|
2670 | else |
---|
2671 | ac_cv_prog_CPP=$CPP |
---|
2672 | fi |
---|
2673 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
2674 | echo "${ECHO_T}$CPP" >&6 |
---|
2675 | ac_preproc_ok=false |
---|
2676 | for ac_c_preproc_warn_flag in '' yes |
---|
2677 | do |
---|
2678 | # Use a header file that comes with gcc, so configuring glibc |
---|
2679 | # with a fresh cross-compiler works. |
---|
2680 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2681 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2682 | cat >conftest.$ac_ext <<_ACEOF |
---|
2683 | #line $LINENO "configure" |
---|
2684 | #include "confdefs.h" |
---|
2685 | #include <assert.h> |
---|
2686 | Syntax error |
---|
2687 | _ACEOF |
---|
2688 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2689 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2690 | ac_status=$? |
---|
2691 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2692 | rm -f conftest.er1 |
---|
2693 | cat conftest.err >&5 |
---|
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2695 | (exit $ac_status); } >/dev/null; then |
---|
2696 | if test -s conftest.err; then |
---|
2697 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2698 | else |
---|
2699 | ac_cpp_err= |
---|
2700 | fi |
---|
2701 | else |
---|
2702 | ac_cpp_err=yes |
---|
2703 | fi |
---|
2704 | if test -z "$ac_cpp_err"; then |
---|
2705 | : |
---|
2706 | else |
---|
2707 | echo "$as_me: failed program was:" >&5 |
---|
2708 | cat conftest.$ac_ext >&5 |
---|
2709 | # Broken: fails on valid input. |
---|
2710 | continue |
---|
2711 | fi |
---|
2712 | rm -f conftest.err conftest.$ac_ext |
---|
2713 | |
---|
2714 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2715 | # can be detected and how. |
---|
2716 | cat >conftest.$ac_ext <<_ACEOF |
---|
2717 | #line $LINENO "configure" |
---|
2718 | #include "confdefs.h" |
---|
2719 | #include <ac_nonexistent.h> |
---|
2720 | _ACEOF |
---|
2721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2723 | ac_status=$? |
---|
2724 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2725 | rm -f conftest.er1 |
---|
2726 | cat conftest.err >&5 |
---|
2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2728 | (exit $ac_status); } >/dev/null; then |
---|
2729 | if test -s conftest.err; then |
---|
2730 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2731 | else |
---|
2732 | ac_cpp_err= |
---|
2733 | fi |
---|
2734 | else |
---|
2735 | ac_cpp_err=yes |
---|
2736 | fi |
---|
2737 | if test -z "$ac_cpp_err"; then |
---|
2738 | # Broken: success on invalid input. |
---|
2739 | continue |
---|
2740 | else |
---|
2741 | echo "$as_me: failed program was:" >&5 |
---|
2742 | cat conftest.$ac_ext >&5 |
---|
2743 | # Passes both tests. |
---|
2744 | ac_preproc_ok=: |
---|
2745 | break |
---|
2746 | fi |
---|
2747 | rm -f conftest.err conftest.$ac_ext |
---|
2748 | |
---|
2749 | done |
---|
2750 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2751 | rm -f conftest.err conftest.$ac_ext |
---|
2752 | if $ac_preproc_ok; then |
---|
2753 | : |
---|
2754 | else |
---|
2755 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
---|
2756 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
---|
2757 | { (exit 1); exit 1; }; } |
---|
2758 | fi |
---|
2759 | |
---|
2760 | ac_ext=c |
---|
2761 | ac_cpp='$CPP $CPPFLAGS' |
---|
2762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2765 | |
---|
2766 | |
---|
2767 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
2768 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
2769 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
2770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2771 | else |
---|
2772 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
2773 | then ac_cv_prog_egrep='grep -E' |
---|
2774 | else ac_cv_prog_egrep='egrep' |
---|
2775 | fi |
---|
2776 | fi |
---|
2777 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
2778 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
2779 | EGREP=$ac_cv_prog_egrep |
---|
2780 | |
---|
2781 | |
---|
2782 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
2783 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
2784 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
2785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2786 | else |
---|
2787 | cat >conftest.$ac_ext <<_ACEOF |
---|
2788 | #line $LINENO "configure" |
---|
2789 | #include "confdefs.h" |
---|
2790 | #include <stdlib.h> |
---|
2791 | #include <stdarg.h> |
---|
2792 | #include <string.h> |
---|
2793 | #include <float.h> |
---|
2794 | |
---|
2795 | _ACEOF |
---|
2796 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2797 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2798 | ac_status=$? |
---|
2799 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2800 | rm -f conftest.er1 |
---|
2801 | cat conftest.err >&5 |
---|
2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2803 | (exit $ac_status); } >/dev/null; then |
---|
2804 | if test -s conftest.err; then |
---|
2805 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2806 | else |
---|
2807 | ac_cpp_err= |
---|
2808 | fi |
---|
2809 | else |
---|
2810 | ac_cpp_err=yes |
---|
2811 | fi |
---|
2812 | if test -z "$ac_cpp_err"; then |
---|
2813 | ac_cv_header_stdc=yes |
---|
2814 | else |
---|
2815 | echo "$as_me: failed program was:" >&5 |
---|
2816 | cat conftest.$ac_ext >&5 |
---|
2817 | ac_cv_header_stdc=no |
---|
2818 | fi |
---|
2819 | rm -f conftest.err conftest.$ac_ext |
---|
2820 | |
---|
2821 | if test $ac_cv_header_stdc = yes; then |
---|
2822 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
2823 | cat >conftest.$ac_ext <<_ACEOF |
---|
2824 | #line $LINENO "configure" |
---|
2825 | #include "confdefs.h" |
---|
2826 | #include <string.h> |
---|
2827 | |
---|
2828 | _ACEOF |
---|
2829 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2830 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
2831 | : |
---|
2832 | else |
---|
2833 | ac_cv_header_stdc=no |
---|
2834 | fi |
---|
2835 | rm -f conftest* |
---|
2836 | |
---|
2837 | fi |
---|
2838 | |
---|
2839 | if test $ac_cv_header_stdc = yes; then |
---|
2840 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
2841 | cat >conftest.$ac_ext <<_ACEOF |
---|
2842 | #line $LINENO "configure" |
---|
2843 | #include "confdefs.h" |
---|
2844 | #include <stdlib.h> |
---|
2845 | |
---|
2846 | _ACEOF |
---|
2847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2848 | $EGREP "free" >/dev/null 2>&1; then |
---|
2849 | : |
---|
2850 | else |
---|
2851 | ac_cv_header_stdc=no |
---|
2852 | fi |
---|
2853 | rm -f conftest* |
---|
2854 | |
---|
2855 | fi |
---|
2856 | |
---|
2857 | if test $ac_cv_header_stdc = yes; then |
---|
2858 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
2859 | if test "$cross_compiling" = yes; then |
---|
2860 | : |
---|
2861 | else |
---|
2862 | cat >conftest.$ac_ext <<_ACEOF |
---|
2863 | #line $LINENO "configure" |
---|
2864 | #include "confdefs.h" |
---|
2865 | #include <ctype.h> |
---|
2866 | #if ((' ' & 0x0FF) == 0x020) |
---|
2867 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
2868 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
2869 | #else |
---|
2870 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
---|
2871 | || ('j' <= (c) && (c) <= 'r') \ |
---|
2872 | || ('s' <= (c) && (c) <= 'z')) |
---|
2873 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
2874 | #endif |
---|
2875 | |
---|
2876 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
2877 | int |
---|
2878 | main () |
---|
2879 | { |
---|
2880 | int i; |
---|
2881 | for (i = 0; i < 256; i++) |
---|
2882 | if (XOR (islower (i), ISLOWER (i)) |
---|
2883 | || toupper (i) != TOUPPER (i)) |
---|
2884 | exit(2); |
---|
2885 | exit (0); |
---|
2886 | } |
---|
2887 | _ACEOF |
---|
2888 | rm -f conftest$ac_exeext |
---|
2889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2890 | (eval $ac_link) 2>&5 |
---|
2891 | ac_status=$? |
---|
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
2894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2895 | (eval $ac_try) 2>&5 |
---|
2896 | ac_status=$? |
---|
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2898 | (exit $ac_status); }; }; then |
---|
2899 | : |
---|
2900 | else |
---|
2901 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
2902 | echo "$as_me: failed program was:" >&5 |
---|
2903 | cat conftest.$ac_ext >&5 |
---|
2904 | ( exit $ac_status ) |
---|
2905 | ac_cv_header_stdc=no |
---|
2906 | fi |
---|
2907 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
2908 | fi |
---|
2909 | fi |
---|
2910 | fi |
---|
2911 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
2912 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
2913 | if test $ac_cv_header_stdc = yes; then |
---|
2914 | |
---|
2915 | cat >>confdefs.h <<\_ACEOF |
---|
2916 | #define STDC_HEADERS 1 |
---|
2917 | _ACEOF |
---|
2918 | |
---|
2919 | fi |
---|
2920 | |
---|
2921 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
2922 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
2923 | if test "${ac_cv_c_const+set}" = set; then |
---|
2924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2925 | else |
---|
2926 | cat >conftest.$ac_ext <<_ACEOF |
---|
2927 | #line $LINENO "configure" |
---|
2928 | #include "confdefs.h" |
---|
2929 | |
---|
2930 | int |
---|
2931 | main () |
---|
2932 | { |
---|
2933 | /* FIXME: Include the comments suggested by Paul. */ |
---|
2934 | #ifndef __cplusplus |
---|
2935 | /* Ultrix mips cc rejects this. */ |
---|
2936 | typedef int charset[2]; |
---|
2937 | const charset x; |
---|
2938 | /* SunOS 4.1.1 cc rejects this. */ |
---|
2939 | char const *const *ccp; |
---|
2940 | char **p; |
---|
2941 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
2942 | struct point {int x, y;}; |
---|
2943 | static struct point const zero = {0,0}; |
---|
2944 | /* AIX XL C 1.02.0.0 rejects this. |
---|
2945 | It does not let you subtract one const X* pointer from another in |
---|
2946 | an arm of an if-expression whose if-part is not a constant |
---|
2947 | expression */ |
---|
2948 | const char *g = "string"; |
---|
2949 | ccp = &g + (g ? g-g : 0); |
---|
2950 | /* HPUX 7.0 cc rejects these. */ |
---|
2951 | ++ccp; |
---|
2952 | p = (char**) ccp; |
---|
2953 | ccp = (char const *const *) p; |
---|
2954 | { /* SCO 3.2v4 cc rejects this. */ |
---|
2955 | char *t; |
---|
2956 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
2957 | |
---|
2958 | *t++ = 0; |
---|
2959 | } |
---|
2960 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
2961 | int x[] = {25, 17}; |
---|
2962 | const int *foo = &x[0]; |
---|
2963 | ++foo; |
---|
2964 | } |
---|
2965 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
2966 | typedef const int *iptr; |
---|
2967 | iptr p = 0; |
---|
2968 | ++p; |
---|
2969 | } |
---|
2970 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
2971 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
2972 | struct s { int j; const int *ap[3]; }; |
---|
2973 | struct s *b; b->j = 5; |
---|
2974 | } |
---|
2975 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
2976 | const int foo = 10; |
---|
2977 | } |
---|
2978 | #endif |
---|
2979 | |
---|
2980 | ; |
---|
2981 | return 0; |
---|
2982 | } |
---|
2983 | _ACEOF |
---|
2984 | rm -f conftest.$ac_objext |
---|
2985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2986 | (eval $ac_compile) 2>&5 |
---|
2987 | ac_status=$? |
---|
2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2989 | (exit $ac_status); } && |
---|
2990 | { ac_try='test -s conftest.$ac_objext' |
---|
2991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2992 | (eval $ac_try) 2>&5 |
---|
2993 | ac_status=$? |
---|
2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2995 | (exit $ac_status); }; }; then |
---|
2996 | ac_cv_c_const=yes |
---|
2997 | else |
---|
2998 | echo "$as_me: failed program was:" >&5 |
---|
2999 | cat conftest.$ac_ext >&5 |
---|
3000 | ac_cv_c_const=no |
---|
3001 | fi |
---|
3002 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3003 | fi |
---|
3004 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
3005 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
3006 | if test $ac_cv_c_const = no; then |
---|
3007 | |
---|
3008 | cat >>confdefs.h <<\_ACEOF |
---|
3009 | #define const |
---|
3010 | _ACEOF |
---|
3011 | |
---|
3012 | fi |
---|
3013 | |
---|
3014 | echo "$as_me:$LINENO: checking for inline" >&5 |
---|
3015 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
---|
3016 | if test "${ac_cv_c_inline+set}" = set; then |
---|
3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3018 | else |
---|
3019 | ac_cv_c_inline=no |
---|
3020 | for ac_kw in inline __inline__ __inline; do |
---|
3021 | cat >conftest.$ac_ext <<_ACEOF |
---|
3022 | #line $LINENO "configure" |
---|
3023 | #include "confdefs.h" |
---|
3024 | #ifndef __cplusplus |
---|
3025 | typedef int foo_t; |
---|
3026 | static $ac_kw foo_t static_foo () {return 0; } |
---|
3027 | $ac_kw foo_t foo () {return 0; } |
---|
3028 | #endif |
---|
3029 | |
---|
3030 | _ACEOF |
---|
3031 | rm -f conftest.$ac_objext |
---|
3032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3033 | (eval $ac_compile) 2>&5 |
---|
3034 | ac_status=$? |
---|
3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3036 | (exit $ac_status); } && |
---|
3037 | { ac_try='test -s conftest.$ac_objext' |
---|
3038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3039 | (eval $ac_try) 2>&5 |
---|
3040 | ac_status=$? |
---|
3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3042 | (exit $ac_status); }; }; then |
---|
3043 | ac_cv_c_inline=$ac_kw; break |
---|
3044 | else |
---|
3045 | echo "$as_me: failed program was:" >&5 |
---|
3046 | cat conftest.$ac_ext >&5 |
---|
3047 | fi |
---|
3048 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3049 | done |
---|
3050 | |
---|
3051 | fi |
---|
3052 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
---|
3053 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
---|
3054 | case $ac_cv_c_inline in |
---|
3055 | inline | yes) ;; |
---|
3056 | no) |
---|
3057 | cat >>confdefs.h <<\_ACEOF |
---|
3058 | #define inline |
---|
3059 | _ACEOF |
---|
3060 | ;; |
---|
3061 | *) cat >>confdefs.h <<_ACEOF |
---|
3062 | #define inline $ac_cv_c_inline |
---|
3063 | _ACEOF |
---|
3064 | ;; |
---|
3065 | esac |
---|
3066 | |
---|
3067 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3068 | |
---|
3069 | |
---|
3070 | |
---|
3071 | |
---|
3072 | |
---|
3073 | |
---|
3074 | |
---|
3075 | |
---|
3076 | |
---|
3077 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3078 | inttypes.h stdint.h unistd.h |
---|
3079 | do |
---|
3080 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3081 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3082 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3085 | else |
---|
3086 | cat >conftest.$ac_ext <<_ACEOF |
---|
3087 | #line $LINENO "configure" |
---|
3088 | #include "confdefs.h" |
---|
3089 | $ac_includes_default |
---|
3090 | |
---|
3091 | #include <$ac_header> |
---|
3092 | _ACEOF |
---|
3093 | rm -f conftest.$ac_objext |
---|
3094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3095 | (eval $ac_compile) 2>&5 |
---|
3096 | ac_status=$? |
---|
3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3098 | (exit $ac_status); } && |
---|
3099 | { ac_try='test -s conftest.$ac_objext' |
---|
3100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3101 | (eval $ac_try) 2>&5 |
---|
3102 | ac_status=$? |
---|
3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3104 | (exit $ac_status); }; }; then |
---|
3105 | eval "$as_ac_Header=yes" |
---|
3106 | else |
---|
3107 | echo "$as_me: failed program was:" >&5 |
---|
3108 | cat conftest.$ac_ext >&5 |
---|
3109 | eval "$as_ac_Header=no" |
---|
3110 | fi |
---|
3111 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3112 | fi |
---|
3113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3115 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3116 | cat >>confdefs.h <<_ACEOF |
---|
3117 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3118 | _ACEOF |
---|
3119 | |
---|
3120 | fi |
---|
3121 | |
---|
3122 | done |
---|
3123 | |
---|
3124 | |
---|
3125 | echo "$as_me:$LINENO: checking for off_t" >&5 |
---|
3126 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
---|
3127 | if test "${ac_cv_type_off_t+set}" = set; then |
---|
3128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3129 | else |
---|
3130 | cat >conftest.$ac_ext <<_ACEOF |
---|
3131 | #line $LINENO "configure" |
---|
3132 | #include "confdefs.h" |
---|
3133 | $ac_includes_default |
---|
3134 | int |
---|
3135 | main () |
---|
3136 | { |
---|
3137 | if ((off_t *) 0) |
---|
3138 | return 0; |
---|
3139 | if (sizeof (off_t)) |
---|
3140 | return 0; |
---|
3141 | ; |
---|
3142 | return 0; |
---|
3143 | } |
---|
3144 | _ACEOF |
---|
3145 | rm -f conftest.$ac_objext |
---|
3146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3147 | (eval $ac_compile) 2>&5 |
---|
3148 | ac_status=$? |
---|
3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3150 | (exit $ac_status); } && |
---|
3151 | { ac_try='test -s conftest.$ac_objext' |
---|
3152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3153 | (eval $ac_try) 2>&5 |
---|
3154 | ac_status=$? |
---|
3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3156 | (exit $ac_status); }; }; then |
---|
3157 | ac_cv_type_off_t=yes |
---|
3158 | else |
---|
3159 | echo "$as_me: failed program was:" >&5 |
---|
3160 | cat conftest.$ac_ext >&5 |
---|
3161 | ac_cv_type_off_t=no |
---|
3162 | fi |
---|
3163 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3164 | fi |
---|
3165 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
---|
3166 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
---|
3167 | if test $ac_cv_type_off_t = yes; then |
---|
3168 | : |
---|
3169 | else |
---|
3170 | |
---|
3171 | cat >>confdefs.h <<_ACEOF |
---|
3172 | #define off_t long |
---|
3173 | _ACEOF |
---|
3174 | |
---|
3175 | fi |
---|
3176 | |
---|
3177 | echo "$as_me:$LINENO: checking for size_t" >&5 |
---|
3178 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
---|
3179 | if test "${ac_cv_type_size_t+set}" = set; then |
---|
3180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3181 | else |
---|
3182 | cat >conftest.$ac_ext <<_ACEOF |
---|
3183 | #line $LINENO "configure" |
---|
3184 | #include "confdefs.h" |
---|
3185 | $ac_includes_default |
---|
3186 | int |
---|
3187 | main () |
---|
3188 | { |
---|
3189 | if ((size_t *) 0) |
---|
3190 | return 0; |
---|
3191 | if (sizeof (size_t)) |
---|
3192 | return 0; |
---|
3193 | ; |
---|
3194 | return 0; |
---|
3195 | } |
---|
3196 | _ACEOF |
---|
3197 | rm -f conftest.$ac_objext |
---|
3198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3199 | (eval $ac_compile) 2>&5 |
---|
3200 | ac_status=$? |
---|
3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3202 | (exit $ac_status); } && |
---|
3203 | { ac_try='test -s conftest.$ac_objext' |
---|
3204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3205 | (eval $ac_try) 2>&5 |
---|
3206 | ac_status=$? |
---|
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3208 | (exit $ac_status); }; }; then |
---|
3209 | ac_cv_type_size_t=yes |
---|
3210 | else |
---|
3211 | echo "$as_me: failed program was:" >&5 |
---|
3212 | cat conftest.$ac_ext >&5 |
---|
3213 | ac_cv_type_size_t=no |
---|
3214 | fi |
---|
3215 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3216 | fi |
---|
3217 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
---|
3218 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
---|
3219 | if test $ac_cv_type_size_t = yes; then |
---|
3220 | : |
---|
3221 | else |
---|
3222 | |
---|
3223 | cat >>confdefs.h <<_ACEOF |
---|
3224 | #define size_t unsigned |
---|
3225 | _ACEOF |
---|
3226 | |
---|
3227 | fi |
---|
3228 | |
---|
3229 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
3230 | # for constant arguments. Useless! |
---|
3231 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
---|
3232 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
---|
3233 | if test "${ac_cv_working_alloca_h+set}" = set; then |
---|
3234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3235 | else |
---|
3236 | cat >conftest.$ac_ext <<_ACEOF |
---|
3237 | #line $LINENO "configure" |
---|
3238 | #include "confdefs.h" |
---|
3239 | #include <alloca.h> |
---|
3240 | int |
---|
3241 | main () |
---|
3242 | { |
---|
3243 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
3244 | ; |
---|
3245 | return 0; |
---|
3246 | } |
---|
3247 | _ACEOF |
---|
3248 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3250 | (eval $ac_link) 2>&5 |
---|
3251 | ac_status=$? |
---|
3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3253 | (exit $ac_status); } && |
---|
3254 | { ac_try='test -s conftest$ac_exeext' |
---|
3255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3256 | (eval $ac_try) 2>&5 |
---|
3257 | ac_status=$? |
---|
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3259 | (exit $ac_status); }; }; then |
---|
3260 | ac_cv_working_alloca_h=yes |
---|
3261 | else |
---|
3262 | echo "$as_me: failed program was:" >&5 |
---|
3263 | cat conftest.$ac_ext >&5 |
---|
3264 | ac_cv_working_alloca_h=no |
---|
3265 | fi |
---|
3266 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3267 | fi |
---|
3268 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
---|
3269 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
---|
3270 | if test $ac_cv_working_alloca_h = yes; then |
---|
3271 | |
---|
3272 | cat >>confdefs.h <<\_ACEOF |
---|
3273 | #define HAVE_ALLOCA_H 1 |
---|
3274 | _ACEOF |
---|
3275 | |
---|
3276 | fi |
---|
3277 | |
---|
3278 | echo "$as_me:$LINENO: checking for alloca" >&5 |
---|
3279 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
---|
3280 | if test "${ac_cv_func_alloca_works+set}" = set; then |
---|
3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3282 | else |
---|
3283 | cat >conftest.$ac_ext <<_ACEOF |
---|
3284 | #line $LINENO "configure" |
---|
3285 | #include "confdefs.h" |
---|
3286 | #ifdef __GNUC__ |
---|
3287 | # define alloca __builtin_alloca |
---|
3288 | #else |
---|
3289 | # ifdef _MSC_VER |
---|
3290 | # include <malloc.h> |
---|
3291 | # define alloca _alloca |
---|
3292 | # else |
---|
3293 | # if HAVE_ALLOCA_H |
---|
3294 | # include <alloca.h> |
---|
3295 | # else |
---|
3296 | # ifdef _AIX |
---|
3297 | #pragma alloca |
---|
3298 | # else |
---|
3299 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
3300 | char *alloca (); |
---|
3301 | # endif |
---|
3302 | # endif |
---|
3303 | # endif |
---|
3304 | # endif |
---|
3305 | #endif |
---|
3306 | |
---|
3307 | int |
---|
3308 | main () |
---|
3309 | { |
---|
3310 | char *p = (char *) alloca (1); |
---|
3311 | ; |
---|
3312 | return 0; |
---|
3313 | } |
---|
3314 | _ACEOF |
---|
3315 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3317 | (eval $ac_link) 2>&5 |
---|
3318 | ac_status=$? |
---|
3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3320 | (exit $ac_status); } && |
---|
3321 | { ac_try='test -s conftest$ac_exeext' |
---|
3322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3323 | (eval $ac_try) 2>&5 |
---|
3324 | ac_status=$? |
---|
3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3326 | (exit $ac_status); }; }; then |
---|
3327 | ac_cv_func_alloca_works=yes |
---|
3328 | else |
---|
3329 | echo "$as_me: failed program was:" >&5 |
---|
3330 | cat conftest.$ac_ext >&5 |
---|
3331 | ac_cv_func_alloca_works=no |
---|
3332 | fi |
---|
3333 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3334 | fi |
---|
3335 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
---|
3336 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
---|
3337 | |
---|
3338 | if test $ac_cv_func_alloca_works = yes; then |
---|
3339 | |
---|
3340 | cat >>confdefs.h <<\_ACEOF |
---|
3341 | #define HAVE_ALLOCA 1 |
---|
3342 | _ACEOF |
---|
3343 | |
---|
3344 | else |
---|
3345 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
3346 | # that cause trouble. Some versions do not even contain alloca or |
---|
3347 | # contain a buggy version. If you still want to use their alloca, |
---|
3348 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
3349 | |
---|
3350 | ALLOCA=alloca.$ac_objext |
---|
3351 | |
---|
3352 | cat >>confdefs.h <<\_ACEOF |
---|
3353 | #define C_ALLOCA 1 |
---|
3354 | _ACEOF |
---|
3355 | |
---|
3356 | |
---|
3357 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
3358 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
---|
3359 | if test "${ac_cv_os_cray+set}" = set; then |
---|
3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3361 | else |
---|
3362 | cat >conftest.$ac_ext <<_ACEOF |
---|
3363 | #line $LINENO "configure" |
---|
3364 | #include "confdefs.h" |
---|
3365 | #if defined(CRAY) && ! defined(CRAY2) |
---|
3366 | webecray |
---|
3367 | #else |
---|
3368 | wenotbecray |
---|
3369 | #endif |
---|
3370 | |
---|
3371 | _ACEOF |
---|
3372 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3373 | $EGREP "webecray" >/dev/null 2>&1; then |
---|
3374 | ac_cv_os_cray=yes |
---|
3375 | else |
---|
3376 | ac_cv_os_cray=no |
---|
3377 | fi |
---|
3378 | rm -f conftest* |
---|
3379 | |
---|
3380 | fi |
---|
3381 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
---|
3382 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
---|
3383 | if test $ac_cv_os_cray = yes; then |
---|
3384 | for ac_func in _getb67 GETB67 getb67; do |
---|
3385 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
3386 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
3387 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
3388 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
3389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3390 | else |
---|
3391 | cat >conftest.$ac_ext <<_ACEOF |
---|
3392 | #line $LINENO "configure" |
---|
3393 | #include "confdefs.h" |
---|
3394 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3395 | which can conflict with char $ac_func (); below. */ |
---|
3396 | #include <assert.h> |
---|
3397 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3398 | #ifdef __cplusplus |
---|
3399 | extern "C" |
---|
3400 | #endif |
---|
3401 | /* We use char because int might match the return type of a gcc2 |
---|
3402 | builtin and then its argument prototype would still apply. */ |
---|
3403 | char $ac_func (); |
---|
3404 | char (*f) (); |
---|
3405 | |
---|
3406 | int |
---|
3407 | main () |
---|
3408 | { |
---|
3409 | /* The GNU C library defines this for functions which it implements |
---|
3410 | to always fail with ENOSYS. Some functions are actually named |
---|
3411 | something starting with __ and the normal name is an alias. */ |
---|
3412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3413 | choke me |
---|
3414 | #else |
---|
3415 | f = $ac_func; |
---|
3416 | #endif |
---|
3417 | |
---|
3418 | ; |
---|
3419 | return 0; |
---|
3420 | } |
---|
3421 | _ACEOF |
---|
3422 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3424 | (eval $ac_link) 2>&5 |
---|
3425 | ac_status=$? |
---|
3426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3427 | (exit $ac_status); } && |
---|
3428 | { ac_try='test -s conftest$ac_exeext' |
---|
3429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3430 | (eval $ac_try) 2>&5 |
---|
3431 | ac_status=$? |
---|
3432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3433 | (exit $ac_status); }; }; then |
---|
3434 | eval "$as_ac_var=yes" |
---|
3435 | else |
---|
3436 | echo "$as_me: failed program was:" >&5 |
---|
3437 | cat conftest.$ac_ext >&5 |
---|
3438 | eval "$as_ac_var=no" |
---|
3439 | fi |
---|
3440 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3441 | fi |
---|
3442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
3443 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
3444 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
3445 | |
---|
3446 | cat >>confdefs.h <<_ACEOF |
---|
3447 | #define CRAY_STACKSEG_END $ac_func |
---|
3448 | _ACEOF |
---|
3449 | |
---|
3450 | break |
---|
3451 | fi |
---|
3452 | |
---|
3453 | done |
---|
3454 | fi |
---|
3455 | |
---|
3456 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
---|
3457 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
---|
3458 | if test "${ac_cv_c_stack_direction+set}" = set; then |
---|
3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3460 | else |
---|
3461 | if test "$cross_compiling" = yes; then |
---|
3462 | ac_cv_c_stack_direction=0 |
---|
3463 | else |
---|
3464 | cat >conftest.$ac_ext <<_ACEOF |
---|
3465 | #line $LINENO "configure" |
---|
3466 | #include "confdefs.h" |
---|
3467 | int |
---|
3468 | find_stack_direction () |
---|
3469 | { |
---|
3470 | static char *addr = 0; |
---|
3471 | auto char dummy; |
---|
3472 | if (addr == 0) |
---|
3473 | { |
---|
3474 | addr = &dummy; |
---|
3475 | return find_stack_direction (); |
---|
3476 | } |
---|
3477 | else |
---|
3478 | return (&dummy > addr) ? 1 : -1; |
---|
3479 | } |
---|
3480 | |
---|
3481 | int |
---|
3482 | main () |
---|
3483 | { |
---|
3484 | exit (find_stack_direction () < 0); |
---|
3485 | } |
---|
3486 | _ACEOF |
---|
3487 | rm -f conftest$ac_exeext |
---|
3488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3489 | (eval $ac_link) 2>&5 |
---|
3490 | ac_status=$? |
---|
3491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3494 | (eval $ac_try) 2>&5 |
---|
3495 | ac_status=$? |
---|
3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3497 | (exit $ac_status); }; }; then |
---|
3498 | ac_cv_c_stack_direction=1 |
---|
3499 | else |
---|
3500 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3501 | echo "$as_me: failed program was:" >&5 |
---|
3502 | cat conftest.$ac_ext >&5 |
---|
3503 | ( exit $ac_status ) |
---|
3504 | ac_cv_c_stack_direction=-1 |
---|
3505 | fi |
---|
3506 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3507 | fi |
---|
3508 | fi |
---|
3509 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
---|
3510 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
---|
3511 | |
---|
3512 | cat >>confdefs.h <<_ACEOF |
---|
3513 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
3514 | _ACEOF |
---|
3515 | |
---|
3516 | |
---|
3517 | fi |
---|
3518 | |
---|
3519 | |
---|
3520 | |
---|
3521 | for ac_header in stdlib.h unistd.h |
---|
3522 | do |
---|
3523 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3525 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3529 | fi |
---|
3530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3531 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3532 | else |
---|
3533 | # Is the header compilable? |
---|
3534 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3535 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3536 | cat >conftest.$ac_ext <<_ACEOF |
---|
3537 | #line $LINENO "configure" |
---|
3538 | #include "confdefs.h" |
---|
3539 | $ac_includes_default |
---|
3540 | #include <$ac_header> |
---|
3541 | _ACEOF |
---|
3542 | rm -f conftest.$ac_objext |
---|
3543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3544 | (eval $ac_compile) 2>&5 |
---|
3545 | ac_status=$? |
---|
3546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3547 | (exit $ac_status); } && |
---|
3548 | { ac_try='test -s conftest.$ac_objext' |
---|
3549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3550 | (eval $ac_try) 2>&5 |
---|
3551 | ac_status=$? |
---|
3552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3553 | (exit $ac_status); }; }; then |
---|
3554 | ac_header_compiler=yes |
---|
3555 | else |
---|
3556 | echo "$as_me: failed program was:" >&5 |
---|
3557 | cat conftest.$ac_ext >&5 |
---|
3558 | ac_header_compiler=no |
---|
3559 | fi |
---|
3560 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3561 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3562 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3563 | |
---|
3564 | # Is the header present? |
---|
3565 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3566 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3567 | cat >conftest.$ac_ext <<_ACEOF |
---|
3568 | #line $LINENO "configure" |
---|
3569 | #include "confdefs.h" |
---|
3570 | #include <$ac_header> |
---|
3571 | _ACEOF |
---|
3572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3574 | ac_status=$? |
---|
3575 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3576 | rm -f conftest.er1 |
---|
3577 | cat conftest.err >&5 |
---|
3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3579 | (exit $ac_status); } >/dev/null; then |
---|
3580 | if test -s conftest.err; then |
---|
3581 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3582 | else |
---|
3583 | ac_cpp_err= |
---|
3584 | fi |
---|
3585 | else |
---|
3586 | ac_cpp_err=yes |
---|
3587 | fi |
---|
3588 | if test -z "$ac_cpp_err"; then |
---|
3589 | ac_header_preproc=yes |
---|
3590 | else |
---|
3591 | echo "$as_me: failed program was:" >&5 |
---|
3592 | cat conftest.$ac_ext >&5 |
---|
3593 | ac_header_preproc=no |
---|
3594 | fi |
---|
3595 | rm -f conftest.err conftest.$ac_ext |
---|
3596 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3597 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3598 | |
---|
3599 | # So? What about this header? |
---|
3600 | case $ac_header_compiler:$ac_header_preproc in |
---|
3601 | yes:no ) |
---|
3602 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3603 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
3606 | no:yes ) |
---|
3607 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3608 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3609 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3610 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3612 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
3613 | esac |
---|
3614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3618 | else |
---|
3619 | eval "$as_ac_Header=$ac_header_preproc" |
---|
3620 | fi |
---|
3621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3623 | |
---|
3624 | fi |
---|
3625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3626 | cat >>confdefs.h <<_ACEOF |
---|
3627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3628 | _ACEOF |
---|
3629 | |
---|
3630 | fi |
---|
3631 | |
---|
3632 | done |
---|
3633 | |
---|
3634 | |
---|
3635 | for ac_func in getpagesize |
---|
3636 | do |
---|
3637 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
3638 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
3639 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
3640 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
3641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3642 | else |
---|
3643 | cat >conftest.$ac_ext <<_ACEOF |
---|
3644 | #line $LINENO "configure" |
---|
3645 | #include "confdefs.h" |
---|
3646 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3647 | which can conflict with char $ac_func (); below. */ |
---|
3648 | #include <assert.h> |
---|
3649 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3650 | #ifdef __cplusplus |
---|
3651 | extern "C" |
---|
3652 | #endif |
---|
3653 | /* We use char because int might match the return type of a gcc2 |
---|
3654 | builtin and then its argument prototype would still apply. */ |
---|
3655 | char $ac_func (); |
---|
3656 | char (*f) (); |
---|
3657 | |
---|
3658 | int |
---|
3659 | main () |
---|
3660 | { |
---|
3661 | /* The GNU C library defines this for functions which it implements |
---|
3662 | to always fail with ENOSYS. Some functions are actually named |
---|
3663 | something starting with __ and the normal name is an alias. */ |
---|
3664 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3665 | choke me |
---|
3666 | #else |
---|
3667 | f = $ac_func; |
---|
3668 | #endif |
---|
3669 | |
---|
3670 | ; |
---|
3671 | return 0; |
---|
3672 | } |
---|
3673 | _ACEOF |
---|
3674 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3676 | (eval $ac_link) 2>&5 |
---|
3677 | ac_status=$? |
---|
3678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3679 | (exit $ac_status); } && |
---|
3680 | { ac_try='test -s conftest$ac_exeext' |
---|
3681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3682 | (eval $ac_try) 2>&5 |
---|
3683 | ac_status=$? |
---|
3684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3685 | (exit $ac_status); }; }; then |
---|
3686 | eval "$as_ac_var=yes" |
---|
3687 | else |
---|
3688 | echo "$as_me: failed program was:" >&5 |
---|
3689 | cat conftest.$ac_ext >&5 |
---|
3690 | eval "$as_ac_var=no" |
---|
3691 | fi |
---|
3692 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3693 | fi |
---|
3694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
3695 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
3696 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
3697 | cat >>confdefs.h <<_ACEOF |
---|
3698 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
3699 | _ACEOF |
---|
3700 | |
---|
3701 | fi |
---|
3702 | done |
---|
3703 | |
---|
3704 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
---|
3705 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
---|
3706 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
---|
3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3708 | else |
---|
3709 | if test "$cross_compiling" = yes; then |
---|
3710 | ac_cv_func_mmap_fixed_mapped=no |
---|
3711 | else |
---|
3712 | cat >conftest.$ac_ext <<_ACEOF |
---|
3713 | #line $LINENO "configure" |
---|
3714 | #include "confdefs.h" |
---|
3715 | $ac_includes_default |
---|
3716 | /* malloc might have been renamed as rpl_malloc. */ |
---|
3717 | #undef malloc |
---|
3718 | |
---|
3719 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
3720 | Here is a matrix of mmap possibilities: |
---|
3721 | mmap private not fixed |
---|
3722 | mmap private fixed at somewhere currently unmapped |
---|
3723 | mmap private fixed at somewhere already mapped |
---|
3724 | mmap shared not fixed |
---|
3725 | mmap shared fixed at somewhere currently unmapped |
---|
3726 | mmap shared fixed at somewhere already mapped |
---|
3727 | For private mappings, we should verify that changes cannot be read() |
---|
3728 | back from the file, nor mmap's back from the file at a different |
---|
3729 | address. (There have been systems where private was not correctly |
---|
3730 | implemented like the infamous i386 svr4.0, and systems where the |
---|
3731 | VM page cache was not coherent with the file system buffer cache |
---|
3732 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
3733 | For shared mappings, we should conversely verify that changes get |
---|
3734 | propagated back to all the places they're supposed to be. |
---|
3735 | |
---|
3736 | Grep wants private fixed already mapped. |
---|
3737 | The main things grep needs to know about mmap are: |
---|
3738 | * does it exist and is it safe to write into the mmap'd area |
---|
3739 | * how to use it (BSD variants) */ |
---|
3740 | |
---|
3741 | #include <fcntl.h> |
---|
3742 | #include <sys/mman.h> |
---|
3743 | |
---|
3744 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
---|
3745 | char *malloc (); |
---|
3746 | #endif |
---|
3747 | |
---|
3748 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
3749 | #if !HAVE_GETPAGESIZE |
---|
3750 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
3751 | # if !HAVE_SYS_PARAM_H |
---|
3752 | # define HAVE_SYS_PARAM_H 1 |
---|
3753 | # endif |
---|
3754 | |
---|
3755 | # ifdef _SC_PAGESIZE |
---|
3756 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
3757 | # else /* no _SC_PAGESIZE */ |
---|
3758 | # if HAVE_SYS_PARAM_H |
---|
3759 | # include <sys/param.h> |
---|
3760 | # ifdef EXEC_PAGESIZE |
---|
3761 | # define getpagesize() EXEC_PAGESIZE |
---|
3762 | # else /* no EXEC_PAGESIZE */ |
---|
3763 | # ifdef NBPG |
---|
3764 | # define getpagesize() NBPG * CLSIZE |
---|
3765 | # ifndef CLSIZE |
---|
3766 | # define CLSIZE 1 |
---|
3767 | # endif /* no CLSIZE */ |
---|
3768 | # else /* no NBPG */ |
---|
3769 | # ifdef NBPC |
---|
3770 | # define getpagesize() NBPC |
---|
3771 | # else /* no NBPC */ |
---|
3772 | # ifdef PAGESIZE |
---|
3773 | # define getpagesize() PAGESIZE |
---|
3774 | # endif /* PAGESIZE */ |
---|
3775 | # endif /* no NBPC */ |
---|
3776 | # endif /* no NBPG */ |
---|
3777 | # endif /* no EXEC_PAGESIZE */ |
---|
3778 | # else /* no HAVE_SYS_PARAM_H */ |
---|
3779 | # define getpagesize() 8192 /* punt totally */ |
---|
3780 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
3781 | # endif /* no _SC_PAGESIZE */ |
---|
3782 | |
---|
3783 | #endif /* no HAVE_GETPAGESIZE */ |
---|
3784 | |
---|
3785 | int |
---|
3786 | main () |
---|
3787 | { |
---|
3788 | char *data, *data2, *data3; |
---|
3789 | int i, pagesize; |
---|
3790 | int fd; |
---|
3791 | |
---|
3792 | pagesize = getpagesize (); |
---|
3793 | |
---|
3794 | /* First, make a file with some known garbage in it. */ |
---|
3795 | data = (char *) malloc (pagesize); |
---|
3796 | if (!data) |
---|
3797 | exit (1); |
---|
3798 | for (i = 0; i < pagesize; ++i) |
---|
3799 | *(data + i) = rand (); |
---|
3800 | umask (0); |
---|
3801 | fd = creat ("conftest.mmap", 0600); |
---|
3802 | if (fd < 0) |
---|
3803 | exit (1); |
---|
3804 | if (write (fd, data, pagesize) != pagesize) |
---|
3805 | exit (1); |
---|
3806 | close (fd); |
---|
3807 | |
---|
3808 | /* Next, try to mmap the file at a fixed address which already has |
---|
3809 | something else allocated at it. If we can, also make sure that |
---|
3810 | we see the same garbage. */ |
---|
3811 | fd = open ("conftest.mmap", O_RDWR); |
---|
3812 | if (fd < 0) |
---|
3813 | exit (1); |
---|
3814 | data2 = (char *) malloc (2 * pagesize); |
---|
3815 | if (!data2) |
---|
3816 | exit (1); |
---|
3817 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
3818 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
---|
3819 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
3820 | exit (1); |
---|
3821 | for (i = 0; i < pagesize; ++i) |
---|
3822 | if (*(data + i) != *(data2 + i)) |
---|
3823 | exit (1); |
---|
3824 | |
---|
3825 | /* Finally, make sure that changes to the mapped area do not |
---|
3826 | percolate back to the file as seen by read(). (This is a bug on |
---|
3827 | some variants of i386 svr4.0.) */ |
---|
3828 | for (i = 0; i < pagesize; ++i) |
---|
3829 | *(data2 + i) = *(data2 + i) + 1; |
---|
3830 | data3 = (char *) malloc (pagesize); |
---|
3831 | if (!data3) |
---|
3832 | exit (1); |
---|
3833 | if (read (fd, data3, pagesize) != pagesize) |
---|
3834 | exit (1); |
---|
3835 | for (i = 0; i < pagesize; ++i) |
---|
3836 | if (*(data + i) != *(data3 + i)) |
---|
3837 | exit (1); |
---|
3838 | close (fd); |
---|
3839 | exit (0); |
---|
3840 | } |
---|
3841 | _ACEOF |
---|
3842 | rm -f conftest$ac_exeext |
---|
3843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3844 | (eval $ac_link) 2>&5 |
---|
3845 | ac_status=$? |
---|
3846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3849 | (eval $ac_try) 2>&5 |
---|
3850 | ac_status=$? |
---|
3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3852 | (exit $ac_status); }; }; then |
---|
3853 | ac_cv_func_mmap_fixed_mapped=yes |
---|
3854 | else |
---|
3855 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3856 | echo "$as_me: failed program was:" >&5 |
---|
3857 | cat conftest.$ac_ext >&5 |
---|
3858 | ( exit $ac_status ) |
---|
3859 | ac_cv_func_mmap_fixed_mapped=no |
---|
3860 | fi |
---|
3861 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3862 | fi |
---|
3863 | fi |
---|
3864 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
---|
3865 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
---|
3866 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
3867 | |
---|
3868 | cat >>confdefs.h <<\_ACEOF |
---|
3869 | #define HAVE_MMAP 1 |
---|
3870 | _ACEOF |
---|
3871 | |
---|
3872 | fi |
---|
3873 | rm -f conftest.mmap |
---|
3874 | |
---|
3875 | |
---|
3876 | |
---|
3877 | |
---|
3878 | |
---|
3879 | |
---|
3880 | |
---|
3881 | |
---|
3882 | |
---|
3883 | |
---|
3884 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
---|
3885 | unistd.h sys/param.h |
---|
3886 | do |
---|
3887 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3889 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3893 | fi |
---|
3894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3896 | else |
---|
3897 | # Is the header compilable? |
---|
3898 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3899 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3900 | cat >conftest.$ac_ext <<_ACEOF |
---|
3901 | #line $LINENO "configure" |
---|
3902 | #include "confdefs.h" |
---|
3903 | $ac_includes_default |
---|
3904 | #include <$ac_header> |
---|
3905 | _ACEOF |
---|
3906 | rm -f conftest.$ac_objext |
---|
3907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3908 | (eval $ac_compile) 2>&5 |
---|
3909 | ac_status=$? |
---|
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3911 | (exit $ac_status); } && |
---|
3912 | { ac_try='test -s conftest.$ac_objext' |
---|
3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3914 | (eval $ac_try) 2>&5 |
---|
3915 | ac_status=$? |
---|
3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3917 | (exit $ac_status); }; }; then |
---|
3918 | ac_header_compiler=yes |
---|
3919 | else |
---|
3920 | echo "$as_me: failed program was:" >&5 |
---|
3921 | cat conftest.$ac_ext >&5 |
---|
3922 | ac_header_compiler=no |
---|
3923 | fi |
---|
3924 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3925 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3926 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3927 | |
---|
3928 | # Is the header present? |
---|
3929 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3930 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3931 | cat >conftest.$ac_ext <<_ACEOF |
---|
3932 | #line $LINENO "configure" |
---|
3933 | #include "confdefs.h" |
---|
3934 | #include <$ac_header> |
---|
3935 | _ACEOF |
---|
3936 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3937 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3938 | ac_status=$? |
---|
3939 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3940 | rm -f conftest.er1 |
---|
3941 | cat conftest.err >&5 |
---|
3942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3943 | (exit $ac_status); } >/dev/null; then |
---|
3944 | if test -s conftest.err; then |
---|
3945 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3946 | else |
---|
3947 | ac_cpp_err= |
---|
3948 | fi |
---|
3949 | else |
---|
3950 | ac_cpp_err=yes |
---|
3951 | fi |
---|
3952 | if test -z "$ac_cpp_err"; then |
---|
3953 | ac_header_preproc=yes |
---|
3954 | else |
---|
3955 | echo "$as_me: failed program was:" >&5 |
---|
3956 | cat conftest.$ac_ext >&5 |
---|
3957 | ac_header_preproc=no |
---|
3958 | fi |
---|
3959 | rm -f conftest.err conftest.$ac_ext |
---|
3960 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3961 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3962 | |
---|
3963 | # So? What about this header? |
---|
3964 | case $ac_header_compiler:$ac_header_preproc in |
---|
3965 | yes:no ) |
---|
3966 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3967 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3968 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3969 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
3970 | no:yes ) |
---|
3971 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3972 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3973 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3974 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3976 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
---|
3977 | esac |
---|
3978 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3979 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3982 | else |
---|
3983 | eval "$as_ac_Header=$ac_header_preproc" |
---|
3984 | fi |
---|
3985 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3986 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3987 | |
---|
3988 | fi |
---|
3989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3990 | cat >>confdefs.h <<_ACEOF |
---|
3991 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3992 | _ACEOF |
---|
3993 | |
---|
3994 | fi |
---|
3995 | |
---|
3996 | done |
---|
3997 | |
---|
3998 | |
---|
3999 | |
---|
4000 | |
---|
4001 | |
---|
4002 | |
---|
4003 | |
---|
4004 | |
---|
4005 | |
---|
4006 | |
---|
4007 | |
---|
4008 | |
---|
4009 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
---|
4010 | strdup __argz_count __argz_stringify __argz_next |
---|
4011 | do |
---|
4012 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4013 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
4014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
4015 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
4016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4017 | else |
---|
4018 | cat >conftest.$ac_ext <<_ACEOF |
---|
4019 | #line $LINENO "configure" |
---|
4020 | #include "confdefs.h" |
---|
4021 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4022 | which can conflict with char $ac_func (); below. */ |
---|
4023 | #include <assert.h> |
---|
4024 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4025 | #ifdef __cplusplus |
---|
4026 | extern "C" |
---|
4027 | #endif |
---|
4028 | /* We use char because int might match the return type of a gcc2 |
---|
4029 | builtin and then its argument prototype would still apply. */ |
---|
4030 | char $ac_func (); |
---|
4031 | char (*f) (); |
---|
4032 | |
---|
4033 | int |
---|
4034 | main () |
---|
4035 | { |
---|
4036 | /* The GNU C library defines this for functions which it implements |
---|
4037 | to always fail with ENOSYS. Some functions are actually named |
---|
4038 | something starting with __ and the normal name is an alias. */ |
---|
4039 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4040 | choke me |
---|
4041 | #else |
---|
4042 | f = $ac_func; |
---|
4043 | #endif |
---|
4044 | |
---|
4045 | ; |
---|
4046 | return 0; |
---|
4047 | } |
---|
4048 | _ACEOF |
---|
4049 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4051 | (eval $ac_link) 2>&5 |
---|
4052 | ac_status=$? |
---|
4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4054 | (exit $ac_status); } && |
---|
4055 | { ac_try='test -s conftest$ac_exeext' |
---|
4056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4057 | (eval $ac_try) 2>&5 |
---|
4058 | ac_status=$? |
---|
4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4060 | (exit $ac_status); }; }; then |
---|
4061 | eval "$as_ac_var=yes" |
---|
4062 | else |
---|
4063 | echo "$as_me: failed program was:" >&5 |
---|
4064 | cat conftest.$ac_ext >&5 |
---|
4065 | eval "$as_ac_var=no" |
---|
4066 | fi |
---|
4067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4068 | fi |
---|
4069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
4070 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
4071 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
4072 | cat >>confdefs.h <<_ACEOF |
---|
4073 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
4074 | _ACEOF |
---|
4075 | |
---|
4076 | fi |
---|
4077 | done |
---|
4078 | |
---|
4079 | |
---|
4080 | if test $ac_cv_header_locale_h = yes; then |
---|
4081 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
---|
4082 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
---|
4083 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
---|
4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4085 | else |
---|
4086 | cat >conftest.$ac_ext <<_ACEOF |
---|
4087 | #line $LINENO "configure" |
---|
4088 | #include "confdefs.h" |
---|
4089 | #include <locale.h> |
---|
4090 | int |
---|
4091 | main () |
---|
4092 | { |
---|
4093 | return LC_MESSAGES |
---|
4094 | ; |
---|
4095 | return 0; |
---|
4096 | } |
---|
4097 | _ACEOF |
---|
4098 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4100 | (eval $ac_link) 2>&5 |
---|
4101 | ac_status=$? |
---|
4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4103 | (exit $ac_status); } && |
---|
4104 | { ac_try='test -s conftest$ac_exeext' |
---|
4105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4106 | (eval $ac_try) 2>&5 |
---|
4107 | ac_status=$? |
---|
4108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4109 | (exit $ac_status); }; }; then |
---|
4110 | am_cv_val_LC_MESSAGES=yes |
---|
4111 | else |
---|
4112 | echo "$as_me: failed program was:" >&5 |
---|
4113 | cat conftest.$ac_ext >&5 |
---|
4114 | am_cv_val_LC_MESSAGES=no |
---|
4115 | fi |
---|
4116 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4117 | fi |
---|
4118 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
---|
4119 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
---|
4120 | if test $am_cv_val_LC_MESSAGES = yes; then |
---|
4121 | |
---|
4122 | cat >>confdefs.h <<\_ACEOF |
---|
4123 | #define HAVE_LC_MESSAGES 1 |
---|
4124 | _ACEOF |
---|
4125 | |
---|
4126 | fi |
---|
4127 | fi |
---|
4128 | USE_NLS=yes |
---|
4129 | |
---|
4130 | |
---|
4131 | nls_cv_force_use_gnu_gettext="no" |
---|
4132 | |
---|
4133 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
---|
4134 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
---|
4135 | nls_cv_header_intl= |
---|
4136 | nls_cv_header_libgt= |
---|
4137 | CATOBJEXT=NONE |
---|
4138 | XGETTEXT=: |
---|
4139 | |
---|
4140 | if test "${ac_cv_header_libintl_h+set}" = set; then |
---|
4141 | echo "$as_me:$LINENO: checking for libintl.h" >&5 |
---|
4142 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
---|
4143 | if test "${ac_cv_header_libintl_h+set}" = set; then |
---|
4144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4145 | fi |
---|
4146 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
---|
4147 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
---|
4148 | else |
---|
4149 | # Is the header compilable? |
---|
4150 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 |
---|
4151 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 |
---|
4152 | cat >conftest.$ac_ext <<_ACEOF |
---|
4153 | #line $LINENO "configure" |
---|
4154 | #include "confdefs.h" |
---|
4155 | $ac_includes_default |
---|
4156 | #include <libintl.h> |
---|
4157 | _ACEOF |
---|
4158 | rm -f conftest.$ac_objext |
---|
4159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4160 | (eval $ac_compile) 2>&5 |
---|
4161 | ac_status=$? |
---|
4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4163 | (exit $ac_status); } && |
---|
4164 | { ac_try='test -s conftest.$ac_objext' |
---|
4165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4166 | (eval $ac_try) 2>&5 |
---|
4167 | ac_status=$? |
---|
4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4169 | (exit $ac_status); }; }; then |
---|
4170 | ac_header_compiler=yes |
---|
4171 | else |
---|
4172 | echo "$as_me: failed program was:" >&5 |
---|
4173 | cat conftest.$ac_ext >&5 |
---|
4174 | ac_header_compiler=no |
---|
4175 | fi |
---|
4176 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4177 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4178 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4179 | |
---|
4180 | # Is the header present? |
---|
4181 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 |
---|
4182 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 |
---|
4183 | cat >conftest.$ac_ext <<_ACEOF |
---|
4184 | #line $LINENO "configure" |
---|
4185 | #include "confdefs.h" |
---|
4186 | #include <libintl.h> |
---|
4187 | _ACEOF |
---|
4188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4190 | ac_status=$? |
---|
4191 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4192 | rm -f conftest.er1 |
---|
4193 | cat conftest.err >&5 |
---|
4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4195 | (exit $ac_status); } >/dev/null; then |
---|
4196 | if test -s conftest.err; then |
---|
4197 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4198 | else |
---|
4199 | ac_cpp_err= |
---|
4200 | fi |
---|
4201 | else |
---|
4202 | ac_cpp_err=yes |
---|
4203 | fi |
---|
4204 | if test -z "$ac_cpp_err"; then |
---|
4205 | ac_header_preproc=yes |
---|
4206 | else |
---|
4207 | echo "$as_me: failed program was:" >&5 |
---|
4208 | cat conftest.$ac_ext >&5 |
---|
4209 | ac_header_preproc=no |
---|
4210 | fi |
---|
4211 | rm -f conftest.err conftest.$ac_ext |
---|
4212 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4213 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4214 | |
---|
4215 | # So? What about this header? |
---|
4216 | case $ac_header_compiler:$ac_header_preproc in |
---|
4217 | yes:no ) |
---|
4218 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4219 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4220 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 |
---|
4221 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};; |
---|
4222 | no:yes ) |
---|
4223 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 |
---|
4224 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} |
---|
4225 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 |
---|
4226 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} |
---|
4227 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 |
---|
4228 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};; |
---|
4229 | esac |
---|
4230 | echo "$as_me:$LINENO: checking for libintl.h" >&5 |
---|
4231 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
---|
4232 | if test "${ac_cv_header_libintl_h+set}" = set; then |
---|
4233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4234 | else |
---|
4235 | ac_cv_header_libintl_h=$ac_header_preproc |
---|
4236 | fi |
---|
4237 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
---|
4238 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
---|
4239 | |
---|
4240 | fi |
---|
4241 | if test $ac_cv_header_libintl_h = yes; then |
---|
4242 | echo "$as_me:$LINENO: checking for dgettext in libc" >&5 |
---|
4243 | echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6 |
---|
4244 | if test "${gt_cv_func_dgettext_libc+set}" = set; then |
---|
4245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4246 | else |
---|
4247 | cat >conftest.$ac_ext <<_ACEOF |
---|
4248 | #line $LINENO "configure" |
---|
4249 | #include "confdefs.h" |
---|
4250 | #include <libintl.h> |
---|
4251 | int |
---|
4252 | main () |
---|
4253 | { |
---|
4254 | return (int) dgettext ("","") |
---|
4255 | ; |
---|
4256 | return 0; |
---|
4257 | } |
---|
4258 | _ACEOF |
---|
4259 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4261 | (eval $ac_link) 2>&5 |
---|
4262 | ac_status=$? |
---|
4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4264 | (exit $ac_status); } && |
---|
4265 | { ac_try='test -s conftest$ac_exeext' |
---|
4266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4267 | (eval $ac_try) 2>&5 |
---|
4268 | ac_status=$? |
---|
4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4270 | (exit $ac_status); }; }; then |
---|
4271 | gt_cv_func_dgettext_libc=yes |
---|
4272 | else |
---|
4273 | echo "$as_me: failed program was:" >&5 |
---|
4274 | cat conftest.$ac_ext >&5 |
---|
4275 | gt_cv_func_dgettext_libc=no |
---|
4276 | fi |
---|
4277 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4278 | fi |
---|
4279 | echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 |
---|
4280 | echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6 |
---|
4281 | |
---|
4282 | gt_cv_func_dgettext_libintl="no" |
---|
4283 | libintl_extra_libs="" |
---|
4284 | |
---|
4285 | if test "$gt_cv_func_dgettext_libc" != "yes" ; then |
---|
4286 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
---|
4287 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 |
---|
4288 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then |
---|
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4290 | else |
---|
4291 | ac_check_lib_save_LIBS=$LIBS |
---|
4292 | LIBS="-lintl $LIBS" |
---|
4293 | cat >conftest.$ac_ext <<_ACEOF |
---|
4294 | #line $LINENO "configure" |
---|
4295 | #include "confdefs.h" |
---|
4296 | |
---|
4297 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4298 | #ifdef __cplusplus |
---|
4299 | extern "C" |
---|
4300 | #endif |
---|
4301 | /* We use char because int might match the return type of a gcc2 |
---|
4302 | builtin and then its argument prototype would still apply. */ |
---|
4303 | char bindtextdomain (); |
---|
4304 | int |
---|
4305 | main () |
---|
4306 | { |
---|
4307 | bindtextdomain (); |
---|
4308 | ; |
---|
4309 | return 0; |
---|
4310 | } |
---|
4311 | _ACEOF |
---|
4312 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4314 | (eval $ac_link) 2>&5 |
---|
4315 | ac_status=$? |
---|
4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4317 | (exit $ac_status); } && |
---|
4318 | { ac_try='test -s conftest$ac_exeext' |
---|
4319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4320 | (eval $ac_try) 2>&5 |
---|
4321 | ac_status=$? |
---|
4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4323 | (exit $ac_status); }; }; then |
---|
4324 | ac_cv_lib_intl_bindtextdomain=yes |
---|
4325 | else |
---|
4326 | echo "$as_me: failed program was:" >&5 |
---|
4327 | cat conftest.$ac_ext >&5 |
---|
4328 | ac_cv_lib_intl_bindtextdomain=no |
---|
4329 | fi |
---|
4330 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4331 | LIBS=$ac_check_lib_save_LIBS |
---|
4332 | fi |
---|
4333 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 |
---|
4334 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 |
---|
4335 | if test $ac_cv_lib_intl_bindtextdomain = yes; then |
---|
4336 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
---|
4337 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
---|
4338 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then |
---|
4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4340 | else |
---|
4341 | ac_check_lib_save_LIBS=$LIBS |
---|
4342 | LIBS="-lintl $LIBS" |
---|
4343 | cat >conftest.$ac_ext <<_ACEOF |
---|
4344 | #line $LINENO "configure" |
---|
4345 | #include "confdefs.h" |
---|
4346 | |
---|
4347 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4348 | #ifdef __cplusplus |
---|
4349 | extern "C" |
---|
4350 | #endif |
---|
4351 | /* We use char because int might match the return type of a gcc2 |
---|
4352 | builtin and then its argument prototype would still apply. */ |
---|
4353 | char dgettext (); |
---|
4354 | int |
---|
4355 | main () |
---|
4356 | { |
---|
4357 | dgettext (); |
---|
4358 | ; |
---|
4359 | return 0; |
---|
4360 | } |
---|
4361 | _ACEOF |
---|
4362 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4364 | (eval $ac_link) 2>&5 |
---|
4365 | ac_status=$? |
---|
4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4367 | (exit $ac_status); } && |
---|
4368 | { ac_try='test -s conftest$ac_exeext' |
---|
4369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4370 | (eval $ac_try) 2>&5 |
---|
4371 | ac_status=$? |
---|
4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4373 | (exit $ac_status); }; }; then |
---|
4374 | ac_cv_lib_intl_dgettext=yes |
---|
4375 | else |
---|
4376 | echo "$as_me: failed program was:" >&5 |
---|
4377 | cat conftest.$ac_ext >&5 |
---|
4378 | ac_cv_lib_intl_dgettext=no |
---|
4379 | fi |
---|
4380 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4381 | LIBS=$ac_check_lib_save_LIBS |
---|
4382 | fi |
---|
4383 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
---|
4384 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
---|
4385 | if test $ac_cv_lib_intl_dgettext = yes; then |
---|
4386 | gt_cv_func_dgettext_libintl=yes |
---|
4387 | fi |
---|
4388 | |
---|
4389 | fi |
---|
4390 | |
---|
4391 | |
---|
4392 | if test "$gt_cv_func_dgettext_libc" != "yes" ; then |
---|
4393 | echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 |
---|
4394 | echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6 |
---|
4395 | echo "$as_me:$LINENO: result: " >&5 |
---|
4396 | echo "${ECHO_T}" >&6 |
---|
4397 | echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 |
---|
4398 | echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6 |
---|
4399 | if test "${ac_cv_lib_intl_dcgettext+set}" = set; then |
---|
4400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4401 | else |
---|
4402 | ac_check_lib_save_LIBS=$LIBS |
---|
4403 | LIBS="-lintl -liconv $LIBS" |
---|
4404 | cat >conftest.$ac_ext <<_ACEOF |
---|
4405 | #line $LINENO "configure" |
---|
4406 | #include "confdefs.h" |
---|
4407 | |
---|
4408 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4409 | #ifdef __cplusplus |
---|
4410 | extern "C" |
---|
4411 | #endif |
---|
4412 | /* We use char because int might match the return type of a gcc2 |
---|
4413 | builtin and then its argument prototype would still apply. */ |
---|
4414 | char dcgettext (); |
---|
4415 | int |
---|
4416 | main () |
---|
4417 | { |
---|
4418 | dcgettext (); |
---|
4419 | ; |
---|
4420 | return 0; |
---|
4421 | } |
---|
4422 | _ACEOF |
---|
4423 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4425 | (eval $ac_link) 2>&5 |
---|
4426 | ac_status=$? |
---|
4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4428 | (exit $ac_status); } && |
---|
4429 | { ac_try='test -s conftest$ac_exeext' |
---|
4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4431 | (eval $ac_try) 2>&5 |
---|
4432 | ac_status=$? |
---|
4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4434 | (exit $ac_status); }; }; then |
---|
4435 | ac_cv_lib_intl_dcgettext=yes |
---|
4436 | else |
---|
4437 | echo "$as_me: failed program was:" >&5 |
---|
4438 | cat conftest.$ac_ext >&5 |
---|
4439 | ac_cv_lib_intl_dcgettext=no |
---|
4440 | fi |
---|
4441 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4442 | LIBS=$ac_check_lib_save_LIBS |
---|
4443 | fi |
---|
4444 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 |
---|
4445 | echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6 |
---|
4446 | if test $ac_cv_lib_intl_dcgettext = yes; then |
---|
4447 | gt_cv_func_dgettext_libintl=yes |
---|
4448 | libintl_extra_libs=-liconv |
---|
4449 | else |
---|
4450 | : |
---|
4451 | fi |
---|
4452 | |
---|
4453 | fi |
---|
4454 | fi |
---|
4455 | |
---|
4456 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
---|
4457 | LIBS="$LIBS -lintl $libintl_extra_libs"; |
---|
4458 | fi |
---|
4459 | |
---|
4460 | if test "$gt_cv_func_dgettext_libc" = "yes" \ |
---|
4461 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
---|
4462 | |
---|
4463 | cat >>confdefs.h <<\_ACEOF |
---|
4464 | #define HAVE_GETTEXT 1 |
---|
4465 | _ACEOF |
---|
4466 | |
---|
4467 | # Extract the first word of "msgfmt", so it can be a program name with args. |
---|
4468 | set dummy msgfmt; ac_word=$2 |
---|
4469 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4471 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
---|
4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4473 | else |
---|
4474 | case "$MSGFMT" in |
---|
4475 | /*) |
---|
4476 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
---|
4477 | ;; |
---|
4478 | *) |
---|
4479 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4480 | for ac_dir in $PATH; do |
---|
4481 | test -z "$ac_dir" && ac_dir=. |
---|
4482 | if test -f $ac_dir/$ac_word; then |
---|
4483 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
---|
4484 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
---|
4485 | break |
---|
4486 | fi |
---|
4487 | fi |
---|
4488 | done |
---|
4489 | IFS="$ac_save_ifs" |
---|
4490 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
---|
4491 | ;; |
---|
4492 | esac |
---|
4493 | fi |
---|
4494 | MSGFMT="$ac_cv_path_MSGFMT" |
---|
4495 | if test "$MSGFMT" != "no"; then |
---|
4496 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
---|
4497 | echo "${ECHO_T}$MSGFMT" >&6 |
---|
4498 | else |
---|
4499 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4500 | echo "${ECHO_T}no" >&6 |
---|
4501 | fi |
---|
4502 | if test "$MSGFMT" != "no"; then |
---|
4503 | |
---|
4504 | for ac_func in dcgettext |
---|
4505 | do |
---|
4506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4507 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
4508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
4509 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
4510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4511 | else |
---|
4512 | cat >conftest.$ac_ext <<_ACEOF |
---|
4513 | #line $LINENO "configure" |
---|
4514 | #include "confdefs.h" |
---|
4515 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4516 | which can conflict with char $ac_func (); below. */ |
---|
4517 | #include <assert.h> |
---|
4518 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4519 | #ifdef __cplusplus |
---|
4520 | extern "C" |
---|
4521 | #endif |
---|
4522 | /* We use char because int might match the return type of a gcc2 |
---|
4523 | builtin and then its argument prototype would still apply. */ |
---|
4524 | char $ac_func (); |
---|
4525 | char (*f) (); |
---|
4526 | |
---|
4527 | int |
---|
4528 | main () |
---|
4529 | { |
---|
4530 | /* The GNU C library defines this for functions which it implements |
---|
4531 | to always fail with ENOSYS. Some functions are actually named |
---|
4532 | something starting with __ and the normal name is an alias. */ |
---|
4533 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4534 | choke me |
---|
4535 | #else |
---|
4536 | f = $ac_func; |
---|
4537 | #endif |
---|
4538 | |
---|
4539 | ; |
---|
4540 | return 0; |
---|
4541 | } |
---|
4542 | _ACEOF |
---|
4543 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4545 | (eval $ac_link) 2>&5 |
---|
4546 | ac_status=$? |
---|
4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4548 | (exit $ac_status); } && |
---|
4549 | { ac_try='test -s conftest$ac_exeext' |
---|
4550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4551 | (eval $ac_try) 2>&5 |
---|
4552 | ac_status=$? |
---|
4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4554 | (exit $ac_status); }; }; then |
---|
4555 | eval "$as_ac_var=yes" |
---|
4556 | else |
---|
4557 | echo "$as_me: failed program was:" >&5 |
---|
4558 | cat conftest.$ac_ext >&5 |
---|
4559 | eval "$as_ac_var=no" |
---|
4560 | fi |
---|
4561 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4562 | fi |
---|
4563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
4564 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
4565 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
4566 | cat >>confdefs.h <<_ACEOF |
---|
4567 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
4568 | _ACEOF |
---|
4569 | |
---|
4570 | fi |
---|
4571 | done |
---|
4572 | |
---|
4573 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
---|
4574 | set dummy gmsgfmt; ac_word=$2 |
---|
4575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4577 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
---|
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4579 | else |
---|
4580 | case $GMSGFMT in |
---|
4581 | [\\/]* | ?:[\\/]*) |
---|
4582 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
4583 | ;; |
---|
4584 | *) |
---|
4585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4586 | for as_dir in $PATH |
---|
4587 | do |
---|
4588 | IFS=$as_save_IFS |
---|
4589 | test -z "$as_dir" && as_dir=. |
---|
4590 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4591 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4592 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
---|
4593 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4594 | break 2 |
---|
4595 | fi |
---|
4596 | done |
---|
4597 | done |
---|
4598 | |
---|
4599 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
---|
4600 | ;; |
---|
4601 | esac |
---|
4602 | fi |
---|
4603 | GMSGFMT=$ac_cv_path_GMSGFMT |
---|
4604 | |
---|
4605 | if test -n "$GMSGFMT"; then |
---|
4606 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
---|
4607 | echo "${ECHO_T}$GMSGFMT" >&6 |
---|
4608 | else |
---|
4609 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4610 | echo "${ECHO_T}no" >&6 |
---|
4611 | fi |
---|
4612 | |
---|
4613 | # Extract the first word of "xgettext", so it can be a program name with args. |
---|
4614 | set dummy xgettext; ac_word=$2 |
---|
4615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4617 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
---|
4618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4619 | else |
---|
4620 | case "$XGETTEXT" in |
---|
4621 | /*) |
---|
4622 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
---|
4623 | ;; |
---|
4624 | *) |
---|
4625 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4626 | for ac_dir in $PATH; do |
---|
4627 | test -z "$ac_dir" && ac_dir=. |
---|
4628 | if test -f $ac_dir/$ac_word; then |
---|
4629 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
---|
4630 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
---|
4631 | break |
---|
4632 | fi |
---|
4633 | fi |
---|
4634 | done |
---|
4635 | IFS="$ac_save_ifs" |
---|
4636 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
---|
4637 | ;; |
---|
4638 | esac |
---|
4639 | fi |
---|
4640 | XGETTEXT="$ac_cv_path_XGETTEXT" |
---|
4641 | if test "$XGETTEXT" != ":"; then |
---|
4642 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
---|
4643 | echo "${ECHO_T}$XGETTEXT" >&6 |
---|
4644 | else |
---|
4645 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4646 | echo "${ECHO_T}no" >&6 |
---|
4647 | fi |
---|
4648 | |
---|
4649 | cat >conftest.$ac_ext <<_ACEOF |
---|
4650 | #line $LINENO "configure" |
---|
4651 | #include "confdefs.h" |
---|
4652 | |
---|
4653 | int |
---|
4654 | main () |
---|
4655 | { |
---|
4656 | extern int _nl_msg_cat_cntr; |
---|
4657 | return _nl_msg_cat_cntr |
---|
4658 | ; |
---|
4659 | return 0; |
---|
4660 | } |
---|
4661 | _ACEOF |
---|
4662 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4664 | (eval $ac_link) 2>&5 |
---|
4665 | ac_status=$? |
---|
4666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4667 | (exit $ac_status); } && |
---|
4668 | { ac_try='test -s conftest$ac_exeext' |
---|
4669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4670 | (eval $ac_try) 2>&5 |
---|
4671 | ac_status=$? |
---|
4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4673 | (exit $ac_status); }; }; then |
---|
4674 | CATOBJEXT=.gmo |
---|
4675 | DATADIRNAME=share |
---|
4676 | else |
---|
4677 | echo "$as_me: failed program was:" >&5 |
---|
4678 | cat conftest.$ac_ext >&5 |
---|
4679 | CATOBJEXT=.mo |
---|
4680 | DATADIRNAME=lib |
---|
4681 | fi |
---|
4682 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4683 | INSTOBJEXT=.mo |
---|
4684 | fi |
---|
4685 | fi |
---|
4686 | |
---|
4687 | # Added by Martin Baulig 12/15/98 for libc5 systems |
---|
4688 | if test "$gt_cv_func_dgettext_libc" != "yes" \ |
---|
4689 | && test "$gt_cv_func_dgettext_libintl" = "yes"; then |
---|
4690 | INTLLIBS="-lintl $libintl_extra_libs" |
---|
4691 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
4692 | fi |
---|
4693 | |
---|
4694 | fi |
---|
4695 | |
---|
4696 | |
---|
4697 | |
---|
4698 | if test "$CATOBJEXT" = "NONE"; then |
---|
4699 | nls_cv_use_gnu_gettext=yes |
---|
4700 | fi |
---|
4701 | fi |
---|
4702 | |
---|
4703 | if test "$nls_cv_use_gnu_gettext" != "yes"; then |
---|
4704 | |
---|
4705 | cat >>confdefs.h <<\_ACEOF |
---|
4706 | #define ENABLE_NLS 1 |
---|
4707 | _ACEOF |
---|
4708 | |
---|
4709 | else |
---|
4710 | CATOBJEXT= |
---|
4711 | fi |
---|
4712 | |
---|
4713 | if test "$XGETTEXT" != ":"; then |
---|
4714 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
---|
4715 | : ; |
---|
4716 | else |
---|
4717 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
---|
4718 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
---|
4719 | XGETTEXT=":" |
---|
4720 | fi |
---|
4721 | fi |
---|
4722 | |
---|
4723 | # We need to process the po/ directory. |
---|
4724 | POSUB=po |
---|
4725 | |
---|
4726 | ac_config_commands="$ac_config_commands default-2" |
---|
4727 | |
---|
4728 | |
---|
4729 | for lang in $ALL_LINGUAS; do |
---|
4730 | GMOFILES="$GMOFILES $lang.gmo" |
---|
4731 | POFILES="$POFILES $lang.po" |
---|
4732 | done |
---|
4733 | |
---|
4734 | |
---|
4735 | |
---|
4736 | |
---|
4737 | |
---|
4738 | |
---|
4739 | |
---|
4740 | |
---|
4741 | |
---|
4742 | |
---|
4743 | |
---|
4744 | |
---|
4745 | |
---|
4746 | if test "x$CATOBJEXT" != "x"; then |
---|
4747 | if test "x$ALL_LINGUAS" = "x"; then |
---|
4748 | LINGUAS= |
---|
4749 | else |
---|
4750 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
---|
4751 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
---|
4752 | NEW_LINGUAS= |
---|
4753 | for lang in ${LINGUAS=$ALL_LINGUAS}; do |
---|
4754 | case "$ALL_LINGUAS" in |
---|
4755 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
---|
4756 | esac |
---|
4757 | done |
---|
4758 | LINGUAS=$NEW_LINGUAS |
---|
4759 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
---|
4760 | echo "${ECHO_T}$LINGUAS" >&6 |
---|
4761 | fi |
---|
4762 | |
---|
4763 | if test -n "$LINGUAS"; then |
---|
4764 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
---|
4765 | fi |
---|
4766 | fi |
---|
4767 | |
---|
4768 | test -d po || mkdir po |
---|
4769 | if test "$CATOBJEXT" = ".cat"; then |
---|
4770 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
---|
4771 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 |
---|
4772 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 |
---|
4773 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
---|
4774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4775 | fi |
---|
4776 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
---|
4777 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 |
---|
4778 | else |
---|
4779 | # Is the header compilable? |
---|
4780 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 |
---|
4781 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 |
---|
4782 | cat >conftest.$ac_ext <<_ACEOF |
---|
4783 | #line $LINENO "configure" |
---|
4784 | #include "confdefs.h" |
---|
4785 | $ac_includes_default |
---|
4786 | #include <linux/version.h> |
---|
4787 | _ACEOF |
---|
4788 | rm -f conftest.$ac_objext |
---|
4789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4790 | (eval $ac_compile) 2>&5 |
---|
4791 | ac_status=$? |
---|
4792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4793 | (exit $ac_status); } && |
---|
4794 | { ac_try='test -s conftest.$ac_objext' |
---|
4795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4796 | (eval $ac_try) 2>&5 |
---|
4797 | ac_status=$? |
---|
4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4799 | (exit $ac_status); }; }; then |
---|
4800 | ac_header_compiler=yes |
---|
4801 | else |
---|
4802 | echo "$as_me: failed program was:" >&5 |
---|
4803 | cat conftest.$ac_ext >&5 |
---|
4804 | ac_header_compiler=no |
---|
4805 | fi |
---|
4806 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4807 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4808 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4809 | |
---|
4810 | # Is the header present? |
---|
4811 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 |
---|
4812 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 |
---|
4813 | cat >conftest.$ac_ext <<_ACEOF |
---|
4814 | #line $LINENO "configure" |
---|
4815 | #include "confdefs.h" |
---|
4816 | #include <linux/version.h> |
---|
4817 | _ACEOF |
---|
4818 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4819 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4820 | ac_status=$? |
---|
4821 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4822 | rm -f conftest.er1 |
---|
4823 | cat conftest.err >&5 |
---|
4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4825 | (exit $ac_status); } >/dev/null; then |
---|
4826 | if test -s conftest.err; then |
---|
4827 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4828 | else |
---|
4829 | ac_cpp_err= |
---|
4830 | fi |
---|
4831 | else |
---|
4832 | ac_cpp_err=yes |
---|
4833 | fi |
---|
4834 | if test -z "$ac_cpp_err"; then |
---|
4835 | ac_header_preproc=yes |
---|
4836 | else |
---|
4837 | echo "$as_me: failed program was:" >&5 |
---|
4838 | cat conftest.$ac_ext >&5 |
---|
4839 | ac_header_preproc=no |
---|
4840 | fi |
---|
4841 | rm -f conftest.err conftest.$ac_ext |
---|
4842 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4843 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4844 | |
---|
4845 | # So? What about this header? |
---|
4846 | case $ac_header_compiler:$ac_header_preproc in |
---|
4847 | yes:no ) |
---|
4848 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4849 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4850 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 |
---|
4851 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};; |
---|
4852 | no:yes ) |
---|
4853 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 |
---|
4854 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} |
---|
4855 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 |
---|
4856 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} |
---|
4857 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 |
---|
4858 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};; |
---|
4859 | esac |
---|
4860 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 |
---|
4861 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 |
---|
4862 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
---|
4863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4864 | else |
---|
4865 | ac_cv_header_linux_version_h=$ac_header_preproc |
---|
4866 | fi |
---|
4867 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
---|
4868 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 |
---|
4869 | |
---|
4870 | fi |
---|
4871 | if test $ac_cv_header_linux_version_h = yes; then |
---|
4872 | msgformat=linux |
---|
4873 | else |
---|
4874 | msgformat=xopen |
---|
4875 | fi |
---|
4876 | |
---|
4877 | |
---|
4878 | |
---|
4879 | sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed |
---|
4880 | fi |
---|
4881 | |
---|
4882 | MKINSTALLDIRS= |
---|
4883 | if test -n "$ac_aux_dir"; then |
---|
4884 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
---|
4885 | fi |
---|
4886 | if test -z "$MKINSTALLDIRS"; then |
---|
4887 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
---|
4888 | fi |
---|
4889 | |
---|
4890 | |
---|
4891 | test -d po || mkdir po |
---|
4892 | if test "x$srcdir" != "x."; then |
---|
4893 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
---|
4894 | posrcprefix="$srcdir/" |
---|
4895 | else |
---|
4896 | posrcprefix="../$srcdir/" |
---|
4897 | fi |
---|
4898 | else |
---|
4899 | posrcprefix="../" |
---|
4900 | fi |
---|
4901 | rm -f po/POTFILES |
---|
4902 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
---|
4903 | < $srcdir/po/POTFILES.in > po/POTFILES |
---|
4904 | |
---|
4905 | |
---|
4906 | ac_config_files="$ac_config_files Makefile 12x12/Makefile 24x24/Makefile 36x36/Makefile 48x48/Makefile 72x72/Makefile 96x96/Makefile 192x192/Makefile scalable/Makefile 12x12/devices/Makefile 12x12/emblems/Makefile 12x12/filesystems/Makefile 12x12/mimetypes/Makefile 24x24/devices/Makefile 24x24/emblems/Makefile 24x24/filesystems/Makefile 24x24/mimetypes/Makefile 36x36/devices/Makefile 36x36/emblems/Makefile 36x36/filesystems/Makefile 36x36/mimetypes/Makefile 48x48/apps/Makefile 48x48/devices/Makefile 48x48/emblems/Makefile 48x48/filesystems/Makefile 48x48/mimetypes/Makefile 72x72/devices/Makefile 72x72/emblems/Makefile 72x72/filesystems/Makefile 72x72/mimetypes/Makefile 96x96/apps/Makefile 96x96/devices/Makefile 96x96/emblems/Makefile 96x96/filesystems/Makefile 96x96/mimetypes/Makefile 192x192/devices/Makefile 192x192/emblems/Makefile 192x192/filesystems/Makefile 192x192/mimetypes/Makefile scalable/devices/Makefile scalable/emblems/Makefile scalable/filesystems/Makefile scalable/mimetypes/Makefile po/Makefile.in" |
---|
4907 | cat >confcache <<\_ACEOF |
---|
4908 | # This file is a shell script that caches the results of configure |
---|
4909 | # tests run on this system so they can be shared between configure |
---|
4910 | # scripts and configure runs, see configure's option --config-cache. |
---|
4911 | # It is not useful on other systems. If it contains results you don't |
---|
4912 | # want to keep, you may remove or edit it. |
---|
4913 | # |
---|
4914 | # config.status only pays attention to the cache file if you give it |
---|
4915 | # the --recheck option to rerun configure. |
---|
4916 | # |
---|
4917 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
4918 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
4919 | # following values. |
---|
4920 | |
---|
4921 | _ACEOF |
---|
4922 | |
---|
4923 | # The following way of writing the cache mishandles newlines in values, |
---|
4924 | # but we know of no workaround that is simple, portable, and efficient. |
---|
4925 | # So, don't put newlines in cache variables' values. |
---|
4926 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
4927 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
4928 | { |
---|
4929 | (set) 2>&1 | |
---|
4930 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
4931 | *ac_space=\ *) |
---|
4932 | # `set' does not quote correctly, so add quotes (double-quote |
---|
4933 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
4934 | sed -n \ |
---|
4935 | "s/'/'\\\\''/g; |
---|
4936 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
4937 | ;; |
---|
4938 | *) |
---|
4939 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
4940 | sed -n \ |
---|
4941 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
4942 | ;; |
---|
4943 | esac; |
---|
4944 | } | |
---|
4945 | sed ' |
---|
4946 | t clear |
---|
4947 | : clear |
---|
4948 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
4949 | t end |
---|
4950 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
4951 | : end' >>confcache |
---|
4952 | if cmp -s $cache_file confcache; then :; else |
---|
4953 | if test -w $cache_file; then |
---|
4954 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
4955 | cat confcache >$cache_file |
---|
4956 | else |
---|
4957 | echo "not updating unwritable cache $cache_file" |
---|
4958 | fi |
---|
4959 | fi |
---|
4960 | rm -f confcache |
---|
4961 | |
---|
4962 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
4963 | # Let make expand exec_prefix. |
---|
4964 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
4965 | |
---|
4966 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
4967 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
4968 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
4969 | # (actually we leave an empty line to preserve line numbers). |
---|
4970 | if test "x$srcdir" = x.; then |
---|
4971 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
4972 | s/:*\$(srcdir):*/:/; |
---|
4973 | s/:*\${srcdir}:*/:/; |
---|
4974 | s/:*@srcdir@:*/:/; |
---|
4975 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
4976 | s/:*$//; |
---|
4977 | s/^[^=]*=[ ]*$//; |
---|
4978 | }' |
---|
4979 | fi |
---|
4980 | |
---|
4981 | # Transform confdefs.h into DEFS. |
---|
4982 | # Protect against shell expansion while executing Makefile rules. |
---|
4983 | # Protect against Makefile macro expansion. |
---|
4984 | # |
---|
4985 | # If the first sed substitution is executed (which looks for macros that |
---|
4986 | # take arguments), then we branch to the quote section. Otherwise, |
---|
4987 | # look for a macro that doesn't take arguments. |
---|
4988 | cat >confdef2opt.sed <<\_ACEOF |
---|
4989 | t clear |
---|
4990 | : clear |
---|
4991 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
4992 | t quote |
---|
4993 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
4994 | t quote |
---|
4995 | d |
---|
4996 | : quote |
---|
4997 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
4998 | s,\[,\\&,g |
---|
4999 | s,\],\\&,g |
---|
5000 | s,\$,$$,g |
---|
5001 | p |
---|
5002 | _ACEOF |
---|
5003 | # We use echo to avoid assuming a particular line-breaking character. |
---|
5004 | # The extra dot is to prevent the shell from consuming trailing |
---|
5005 | # line-breaks from the sub-command output. A line-break within |
---|
5006 | # single-quotes doesn't work because, if this script is created in a |
---|
5007 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
5008 | # would break. |
---|
5009 | ac_LF_and_DOT=`echo; echo .` |
---|
5010 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
5011 | rm -f confdef2opt.sed |
---|
5012 | |
---|
5013 | |
---|
5014 | ac_libobjs= |
---|
5015 | ac_ltlibobjs= |
---|
5016 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5017 | # 1. Remove the extension, and $U if already installed. |
---|
5018 | ac_i=`echo "$ac_i" | |
---|
5019 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
5020 | # 2. Add them. |
---|
5021 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
5022 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
5023 | done |
---|
5024 | LIBOBJS=$ac_libobjs |
---|
5025 | |
---|
5026 | LTLIBOBJS=$ac_ltlibobjs |
---|
5027 | |
---|
5028 | |
---|
5029 | |
---|
5030 | |
---|
5031 | mv -f po/POTFILES po/POTFILES.tmp |
---|
5032 | sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES |
---|
5033 | rm -f po/POTFILES.tmp |
---|
5034 | |
---|
5035 | |
---|
5036 | |
---|
5037 | : ${CONFIG_STATUS=./config.status} |
---|
5038 | ac_clean_files_save=$ac_clean_files |
---|
5039 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5040 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
5041 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5042 | cat >$CONFIG_STATUS <<_ACEOF |
---|
5043 | #! $SHELL |
---|
5044 | # Generated by $as_me. |
---|
5045 | # Run this file to recreate the current configuration. |
---|
5046 | # Compiler output produced by configure, useful for debugging |
---|
5047 | # configure, is in config.log if it exists. |
---|
5048 | |
---|
5049 | debug=false |
---|
5050 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5051 | _ACEOF |
---|
5052 | |
---|
5053 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5054 | ## --------------------- ## |
---|
5055 | ## M4sh Initialization. ## |
---|
5056 | ## --------------------- ## |
---|
5057 | |
---|
5058 | # Be Bourne compatible |
---|
5059 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
5060 | emulate sh |
---|
5061 | NULLCMD=: |
---|
5062 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
5063 | # is contrary to our usage. Disable this feature. |
---|
5064 | alias -g '${1+"$@"}'='"$@"' |
---|
5065 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
5066 | set -o posix |
---|
5067 | fi |
---|
5068 | |
---|
5069 | # Support unset when possible. |
---|
5070 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
5071 | as_unset=unset |
---|
5072 | else |
---|
5073 | as_unset=false |
---|
5074 | fi |
---|
5075 | |
---|
5076 | |
---|
5077 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
5078 | $as_unset ENV MAIL MAILPATH |
---|
5079 | PS1='$ ' |
---|
5080 | PS2='> ' |
---|
5081 | PS4='+ ' |
---|
5082 | |
---|
5083 | # NLS nuisances. |
---|
5084 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
---|
5085 | do |
---|
5086 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
5087 | eval $as_var=C; export $as_var |
---|
5088 | else |
---|
5089 | $as_unset $as_var |
---|
5090 | fi |
---|
5091 | done |
---|
5092 | |
---|
5093 | # Required to use basename. |
---|
5094 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
5095 | as_expr=expr |
---|
5096 | else |
---|
5097 | as_expr=false |
---|
5098 | fi |
---|
5099 | |
---|
5100 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
5101 | as_basename=basename |
---|
5102 | else |
---|
5103 | as_basename=false |
---|
5104 | fi |
---|
5105 | |
---|
5106 | |
---|
5107 | # Name of the executable. |
---|
5108 | as_me=`$as_basename "$0" || |
---|
5109 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5110 | X"$0" : 'X\(//\)$' \| \ |
---|
5111 | X"$0" : 'X\(/\)$' \| \ |
---|
5112 | . : '\(.\)' 2>/dev/null || |
---|
5113 | echo X/"$0" | |
---|
5114 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
5115 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
5116 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
5117 | s/.*/./; q'` |
---|
5118 | |
---|
5119 | |
---|
5120 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
5121 | # Avoid depending upon Character Ranges. |
---|
5122 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5123 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5124 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5125 | as_cr_digits='0123456789' |
---|
5126 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5127 | |
---|
5128 | # The user is always right. |
---|
5129 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5130 | echo "#! /bin/sh" >conftest.sh |
---|
5131 | echo "exit 0" >>conftest.sh |
---|
5132 | chmod +x conftest.sh |
---|
5133 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
---|
5134 | PATH_SEPARATOR=';' |
---|
5135 | else |
---|
5136 | PATH_SEPARATOR=: |
---|
5137 | fi |
---|
5138 | rm -f conftest.sh |
---|
5139 | fi |
---|
5140 | |
---|
5141 | |
---|
5142 | as_lineno_1=$LINENO |
---|
5143 | as_lineno_2=$LINENO |
---|
5144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
5145 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
5146 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
5147 | # Find who we are. Look in the path if we contain no path at all |
---|
5148 | # relative or not. |
---|
5149 | case $0 in |
---|
5150 | *[\\/]* ) as_myself=$0 ;; |
---|
5151 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5152 | for as_dir in $PATH |
---|
5153 | do |
---|
5154 | IFS=$as_save_IFS |
---|
5155 | test -z "$as_dir" && as_dir=. |
---|
5156 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5157 | done |
---|
5158 | |
---|
5159 | ;; |
---|
5160 | esac |
---|
5161 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5162 | # in which case we are not to be found in the path. |
---|
5163 | if test "x$as_myself" = x; then |
---|
5164 | as_myself=$0 |
---|
5165 | fi |
---|
5166 | if test ! -f "$as_myself"; then |
---|
5167 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
5168 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
5169 | { (exit 1); exit 1; }; } |
---|
5170 | fi |
---|
5171 | case $CONFIG_SHELL in |
---|
5172 | '') |
---|
5173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5174 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
5175 | do |
---|
5176 | IFS=$as_save_IFS |
---|
5177 | test -z "$as_dir" && as_dir=. |
---|
5178 | for as_base in sh bash ksh sh5; do |
---|
5179 | case $as_dir in |
---|
5180 | /*) |
---|
5181 | if ("$as_dir/$as_base" -c ' |
---|
5182 | as_lineno_1=$LINENO |
---|
5183 | as_lineno_2=$LINENO |
---|
5184 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
5185 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
5186 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
5187 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
5188 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
5189 | CONFIG_SHELL=$as_dir/$as_base |
---|
5190 | export CONFIG_SHELL |
---|
5191 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
5192 | fi;; |
---|
5193 | esac |
---|
5194 | done |
---|
5195 | done |
---|
5196 | ;; |
---|
5197 | esac |
---|
5198 | |
---|
5199 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
5200 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
5201 | # line-number line before each line; the second 'sed' does the real |
---|
5202 | # work. The second script uses 'N' to pair each line-number line |
---|
5203 | # with the numbered line, and appends trailing '-' during |
---|
5204 | # substitution so that $LINENO is not a special case at line end. |
---|
5205 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
5206 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
5207 | sed '=' <$as_myself | |
---|
5208 | sed ' |
---|
5209 | N |
---|
5210 | s,$,-, |
---|
5211 | : loop |
---|
5212 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
5213 | t loop |
---|
5214 | s,-$,, |
---|
5215 | s,^['$as_cr_digits']*\n,, |
---|
5216 | ' >$as_me.lineno && |
---|
5217 | chmod +x $as_me.lineno || |
---|
5218 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
5219 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
5220 | { (exit 1); exit 1; }; } |
---|
5221 | |
---|
5222 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
5223 | # (the dirname of $[0] is not the place where we might find the |
---|
5224 | # original and so on. Autoconf is especially sensible to this). |
---|
5225 | . ./$as_me.lineno |
---|
5226 | # Exit status is that of the last command. |
---|
5227 | exit |
---|
5228 | } |
---|
5229 | |
---|
5230 | |
---|
5231 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
5232 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
5233 | ' ECHO_T=' ' ;; |
---|
5234 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
5235 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
5236 | esac |
---|
5237 | |
---|
5238 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
5239 | as_expr=expr |
---|
5240 | else |
---|
5241 | as_expr=false |
---|
5242 | fi |
---|
5243 | |
---|
5244 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5245 | echo >conf$$.file |
---|
5246 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5247 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
5248 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
5249 | if test -f conf$$.exe; then |
---|
5250 | # Don't use ln at all; we don't have any links |
---|
5251 | as_ln_s='cp -p' |
---|
5252 | else |
---|
5253 | as_ln_s='ln -s' |
---|
5254 | fi |
---|
5255 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5256 | as_ln_s=ln |
---|
5257 | else |
---|
5258 | as_ln_s='cp -p' |
---|
5259 | fi |
---|
5260 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5261 | |
---|
5262 | if mkdir -p . 2>/dev/null; then |
---|
5263 | as_mkdir_p=: |
---|
5264 | else |
---|
5265 | as_mkdir_p=false |
---|
5266 | fi |
---|
5267 | |
---|
5268 | as_executable_p="test -f" |
---|
5269 | |
---|
5270 | # Sed expression to map a string onto a valid CPP name. |
---|
5271 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
5272 | |
---|
5273 | # Sed expression to map a string onto a valid variable name. |
---|
5274 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
5275 | |
---|
5276 | |
---|
5277 | # IFS |
---|
5278 | # We need space, tab and new line, in precisely that order. |
---|
5279 | as_nl=' |
---|
5280 | ' |
---|
5281 | IFS=" $as_nl" |
---|
5282 | |
---|
5283 | # CDPATH. |
---|
5284 | $as_unset CDPATH |
---|
5285 | |
---|
5286 | exec 6>&1 |
---|
5287 | |
---|
5288 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
5289 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5290 | # values after options handling. Logging --version etc. is OK. |
---|
5291 | exec 5>>config.log |
---|
5292 | { |
---|
5293 | echo |
---|
5294 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
5295 | ## Running $as_me. ## |
---|
5296 | _ASBOX |
---|
5297 | } >&5 |
---|
5298 | cat >&5 <<_CSEOF |
---|
5299 | |
---|
5300 | This file was extended by $as_me, which was |
---|
5301 | generated by GNU Autoconf 2.54. Invocation command line was |
---|
5302 | |
---|
5303 | CONFIG_FILES = $CONFIG_FILES |
---|
5304 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
5305 | CONFIG_LINKS = $CONFIG_LINKS |
---|
5306 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
5307 | $ $0 $@ |
---|
5308 | |
---|
5309 | _CSEOF |
---|
5310 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
5311 | echo >&5 |
---|
5312 | _ACEOF |
---|
5313 | |
---|
5314 | # Files that config.status was made for. |
---|
5315 | if test -n "$ac_config_files"; then |
---|
5316 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
5317 | fi |
---|
5318 | |
---|
5319 | if test -n "$ac_config_headers"; then |
---|
5320 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
5321 | fi |
---|
5322 | |
---|
5323 | if test -n "$ac_config_links"; then |
---|
5324 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
5325 | fi |
---|
5326 | |
---|
5327 | if test -n "$ac_config_commands"; then |
---|
5328 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
5329 | fi |
---|
5330 | |
---|
5331 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5332 | |
---|
5333 | ac_cs_usage="\ |
---|
5334 | \`$as_me' instantiates files from templates according to the |
---|
5335 | current configuration. |
---|
5336 | |
---|
5337 | Usage: $0 [OPTIONS] [FILE]... |
---|
5338 | |
---|
5339 | -h, --help print this help, then exit |
---|
5340 | -V, --version print version number, then exit |
---|
5341 | -d, --debug don't remove temporary files |
---|
5342 | --recheck update $as_me by reconfiguring in the same conditions |
---|
5343 | --file=FILE[:TEMPLATE] |
---|
5344 | instantiate the configuration file FILE |
---|
5345 | |
---|
5346 | Configuration files: |
---|
5347 | $config_files |
---|
5348 | |
---|
5349 | Configuration commands: |
---|
5350 | $config_commands |
---|
5351 | |
---|
5352 | Report bugs to <bug-autoconf@gnu.org>." |
---|
5353 | _ACEOF |
---|
5354 | |
---|
5355 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5356 | ac_cs_version="\\ |
---|
5357 | config.status |
---|
5358 | configured by $0, generated by GNU Autoconf 2.54, |
---|
5359 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
5360 | |
---|
5361 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
5362 | Free Software Foundation, Inc. |
---|
5363 | This config.status script is free software; the Free Software Foundation |
---|
5364 | gives unlimited permission to copy, distribute and modify it." |
---|
5365 | srcdir=$srcdir |
---|
5366 | INSTALL="$INSTALL" |
---|
5367 | _ACEOF |
---|
5368 | |
---|
5369 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5370 | # If no file are specified by the user, then we need to provide default |
---|
5371 | # value. By we need to know if files were specified by the user. |
---|
5372 | ac_need_defaults=: |
---|
5373 | while test $# != 0 |
---|
5374 | do |
---|
5375 | case $1 in |
---|
5376 | --*=*) |
---|
5377 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
5378 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
5379 | ac_shift=: |
---|
5380 | ;; |
---|
5381 | -*) |
---|
5382 | ac_option=$1 |
---|
5383 | ac_optarg=$2 |
---|
5384 | ac_shift=shift |
---|
5385 | ;; |
---|
5386 | *) # This is not an option, so the user has probably given explicit |
---|
5387 | # arguments. |
---|
5388 | ac_option=$1 |
---|
5389 | ac_need_defaults=false;; |
---|
5390 | esac |
---|
5391 | |
---|
5392 | case $ac_option in |
---|
5393 | # Handling of the options. |
---|
5394 | _ACEOF |
---|
5395 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5396 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5397 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
---|
5398 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
---|
5399 | _ACEOF |
---|
5400 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5401 | --version | --vers* | -V ) |
---|
5402 | echo "$ac_cs_version"; exit 0 ;; |
---|
5403 | --he | --h) |
---|
5404 | # Conflict between --help and --header |
---|
5405 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
5406 | Try \`$0 --help' for more information." >&5 |
---|
5407 | echo "$as_me: error: ambiguous option: $1 |
---|
5408 | Try \`$0 --help' for more information." >&2;} |
---|
5409 | { (exit 1); exit 1; }; };; |
---|
5410 | --help | --hel | -h ) |
---|
5411 | echo "$ac_cs_usage"; exit 0 ;; |
---|
5412 | --debug | --d* | -d ) |
---|
5413 | debug=: ;; |
---|
5414 | --file | --fil | --fi | --f ) |
---|
5415 | $ac_shift |
---|
5416 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
5417 | ac_need_defaults=false;; |
---|
5418 | --header | --heade | --head | --hea ) |
---|
5419 | $ac_shift |
---|
5420 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
5421 | ac_need_defaults=false;; |
---|
5422 | |
---|
5423 | # This is an error. |
---|
5424 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
5425 | Try \`$0 --help' for more information." >&5 |
---|
5426 | echo "$as_me: error: unrecognized option: $1 |
---|
5427 | Try \`$0 --help' for more information." >&2;} |
---|
5428 | { (exit 1); exit 1; }; } ;; |
---|
5429 | |
---|
5430 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
5431 | |
---|
5432 | esac |
---|
5433 | shift |
---|
5434 | done |
---|
5435 | |
---|
5436 | _ACEOF |
---|
5437 | |
---|
5438 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5439 | # |
---|
5440 | # INIT-COMMANDS section. |
---|
5441 | # |
---|
5442 | |
---|
5443 | INTLTOOL_PERL=${INTLTOOL_PERL} |
---|
5444 | |
---|
5445 | |
---|
5446 | _ACEOF |
---|
5447 | |
---|
5448 | |
---|
5449 | |
---|
5450 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5451 | for ac_config_target in $ac_config_targets |
---|
5452 | do |
---|
5453 | case "$ac_config_target" in |
---|
5454 | # Handling of arguments. |
---|
5455 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
5456 | "12x12/Makefile" ) CONFIG_FILES="$CONFIG_FILES 12x12/Makefile" ;; |
---|
5457 | "24x24/Makefile" ) CONFIG_FILES="$CONFIG_FILES 24x24/Makefile" ;; |
---|
5458 | "36x36/Makefile" ) CONFIG_FILES="$CONFIG_FILES 36x36/Makefile" ;; |
---|
5459 | "48x48/Makefile" ) CONFIG_FILES="$CONFIG_FILES 48x48/Makefile" ;; |
---|
5460 | "72x72/Makefile" ) CONFIG_FILES="$CONFIG_FILES 72x72/Makefile" ;; |
---|
5461 | "96x96/Makefile" ) CONFIG_FILES="$CONFIG_FILES 96x96/Makefile" ;; |
---|
5462 | "192x192/Makefile" ) CONFIG_FILES="$CONFIG_FILES 192x192/Makefile" ;; |
---|
5463 | "scalable/Makefile" ) CONFIG_FILES="$CONFIG_FILES scalable/Makefile" ;; |
---|
5464 | "12x12/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES 12x12/devices/Makefile" ;; |
---|
5465 | "12x12/emblems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 12x12/emblems/Makefile" ;; |
---|
5466 | "12x12/filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 12x12/filesystems/Makefile" ;; |
---|
5467 | "12x12/mimetypes/Makefile" ) CONFIG_FILES="$CONFIG_FILES 12x12/mimetypes/Makefile" ;; |
---|
5468 | "24x24/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES 24x24/devices/Makefile" ;; |
---|
5469 | "24x24/emblems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 24x24/emblems/Makefile" ;; |
---|
5470 | "24x24/filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 24x24/filesystems/Makefile" ;; |
---|
5471 | "24x24/mimetypes/Makefile" ) CONFIG_FILES="$CONFIG_FILES 24x24/mimetypes/Makefile" ;; |
---|
5472 | "36x36/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES 36x36/devices/Makefile" ;; |
---|
5473 | "36x36/emblems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 36x36/emblems/Makefile" ;; |
---|
5474 | "36x36/filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 36x36/filesystems/Makefile" ;; |
---|
5475 | "36x36/mimetypes/Makefile" ) CONFIG_FILES="$CONFIG_FILES 36x36/mimetypes/Makefile" ;; |
---|
5476 | "48x48/apps/Makefile" ) CONFIG_FILES="$CONFIG_FILES 48x48/apps/Makefile" ;; |
---|
5477 | "48x48/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES 48x48/devices/Makefile" ;; |
---|
5478 | "48x48/emblems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 48x48/emblems/Makefile" ;; |
---|
5479 | "48x48/filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 48x48/filesystems/Makefile" ;; |
---|
5480 | "48x48/mimetypes/Makefile" ) CONFIG_FILES="$CONFIG_FILES 48x48/mimetypes/Makefile" ;; |
---|
5481 | "72x72/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES 72x72/devices/Makefile" ;; |
---|
5482 | "72x72/emblems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 72x72/emblems/Makefile" ;; |
---|
5483 | "72x72/filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 72x72/filesystems/Makefile" ;; |
---|
5484 | "72x72/mimetypes/Makefile" ) CONFIG_FILES="$CONFIG_FILES 72x72/mimetypes/Makefile" ;; |
---|
5485 | "96x96/apps/Makefile" ) CONFIG_FILES="$CONFIG_FILES 96x96/apps/Makefile" ;; |
---|
5486 | "96x96/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES 96x96/devices/Makefile" ;; |
---|
5487 | "96x96/emblems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 96x96/emblems/Makefile" ;; |
---|
5488 | "96x96/filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 96x96/filesystems/Makefile" ;; |
---|
5489 | "96x96/mimetypes/Makefile" ) CONFIG_FILES="$CONFIG_FILES 96x96/mimetypes/Makefile" ;; |
---|
5490 | "192x192/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES 192x192/devices/Makefile" ;; |
---|
5491 | "192x192/emblems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 192x192/emblems/Makefile" ;; |
---|
5492 | "192x192/filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES 192x192/filesystems/Makefile" ;; |
---|
5493 | "192x192/mimetypes/Makefile" ) CONFIG_FILES="$CONFIG_FILES 192x192/mimetypes/Makefile" ;; |
---|
5494 | "scalable/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES scalable/devices/Makefile" ;; |
---|
5495 | "scalable/emblems/Makefile" ) CONFIG_FILES="$CONFIG_FILES scalable/emblems/Makefile" ;; |
---|
5496 | "scalable/filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES scalable/filesystems/Makefile" ;; |
---|
5497 | "scalable/mimetypes/Makefile" ) CONFIG_FILES="$CONFIG_FILES scalable/mimetypes/Makefile" ;; |
---|
5498 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
---|
5499 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
---|
5500 | "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; |
---|
5501 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
5502 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
5503 | { (exit 1); exit 1; }; };; |
---|
5504 | esac |
---|
5505 | done |
---|
5506 | |
---|
5507 | # If the user did not use the arguments to specify the items to instantiate, |
---|
5508 | # then the envvar interface is used. Set only those that are not. |
---|
5509 | # We use the long form for the default assignment because of an extremely |
---|
5510 | # bizarre bug on SunOS 4.1.3. |
---|
5511 | if $ac_need_defaults; then |
---|
5512 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
5513 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
5514 | fi |
---|
5515 | |
---|
5516 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
5517 | $debug || |
---|
5518 | { |
---|
5519 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
5520 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
5521 | } |
---|
5522 | |
---|
5523 | # Create a (secure) tmp directory for tmp files. |
---|
5524 | : ${TMPDIR=/tmp} |
---|
5525 | { |
---|
5526 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
---|
5527 | test -n "$tmp" && test -d "$tmp" |
---|
5528 | } || |
---|
5529 | { |
---|
5530 | tmp=$TMPDIR/cs$$-$RANDOM |
---|
5531 | (umask 077 && mkdir $tmp) |
---|
5532 | } || |
---|
5533 | { |
---|
5534 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
---|
5535 | { (exit 1); exit 1; } |
---|
5536 | } |
---|
5537 | |
---|
5538 | _ACEOF |
---|
5539 | |
---|
5540 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5541 | |
---|
5542 | # |
---|
5543 | # CONFIG_FILES section. |
---|
5544 | # |
---|
5545 | |
---|
5546 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
5547 | # This happens for instance when ./config.status config.h |
---|
5548 | if test -n "\$CONFIG_FILES"; then |
---|
5549 | # Protect against being on the right side of a sed subst in config.status. |
---|
5550 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
5551 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
5552 | s,@SHELL@,$SHELL,;t t |
---|
5553 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
5554 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
5555 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
5556 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
5557 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
5558 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
5559 | s,@exec_prefix@,$exec_prefix,;t t |
---|
5560 | s,@prefix@,$prefix,;t t |
---|
5561 | s,@program_transform_name@,$program_transform_name,;t t |
---|
5562 | s,@bindir@,$bindir,;t t |
---|
5563 | s,@sbindir@,$sbindir,;t t |
---|
5564 | s,@libexecdir@,$libexecdir,;t t |
---|
5565 | s,@datadir@,$datadir,;t t |
---|
5566 | s,@sysconfdir@,$sysconfdir,;t t |
---|
5567 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
5568 | s,@localstatedir@,$localstatedir,;t t |
---|
5569 | s,@libdir@,$libdir,;t t |
---|
5570 | s,@includedir@,$includedir,;t t |
---|
5571 | s,@oldincludedir@,$oldincludedir,;t t |
---|
5572 | s,@infodir@,$infodir,;t t |
---|
5573 | s,@mandir@,$mandir,;t t |
---|
5574 | s,@build_alias@,$build_alias,;t t |
---|
5575 | s,@host_alias@,$host_alias,;t t |
---|
5576 | s,@target_alias@,$target_alias,;t t |
---|
5577 | s,@DEFS@,$DEFS,;t t |
---|
5578 | s,@ECHO_C@,$ECHO_C,;t t |
---|
5579 | s,@ECHO_N@,$ECHO_N,;t t |
---|
5580 | s,@ECHO_T@,$ECHO_T,;t t |
---|
5581 | s,@LIBS@,$LIBS,;t t |
---|
5582 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
5583 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
5584 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
5585 | s,@PACKAGE@,$PACKAGE,;t t |
---|
5586 | s,@VERSION@,$VERSION,;t t |
---|
5587 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
5588 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
5589 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
5590 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
5591 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
5592 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
5593 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
---|
5594 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
---|
5595 | s,@MAINT@,$MAINT,;t t |
---|
5596 | s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t |
---|
5597 | s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t |
---|
5598 | s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t |
---|
5599 | s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t |
---|
5600 | s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t |
---|
5601 | s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t |
---|
5602 | s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t |
---|
5603 | s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t |
---|
5604 | s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t |
---|
5605 | s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t |
---|
5606 | s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t |
---|
5607 | s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t |
---|
5608 | s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t |
---|
5609 | s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t |
---|
5610 | s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t |
---|
5611 | s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t |
---|
5612 | s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t |
---|
5613 | s,@CC@,$CC,;t t |
---|
5614 | s,@CFLAGS@,$CFLAGS,;t t |
---|
5615 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
5616 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
5617 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
5618 | s,@EXEEXT@,$EXEEXT,;t t |
---|
5619 | s,@OBJEXT@,$OBJEXT,;t t |
---|
5620 | s,@RANLIB@,$RANLIB,;t t |
---|
5621 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
5622 | s,@CPP@,$CPP,;t t |
---|
5623 | s,@EGREP@,$EGREP,;t t |
---|
5624 | s,@ALLOCA@,$ALLOCA,;t t |
---|
5625 | s,@USE_NLS@,$USE_NLS,;t t |
---|
5626 | s,@MSGFMT@,$MSGFMT,;t t |
---|
5627 | s,@GMSGFMT@,$GMSGFMT,;t t |
---|
5628 | s,@XGETTEXT@,$XGETTEXT,;t t |
---|
5629 | s,@CATALOGS@,$CATALOGS,;t t |
---|
5630 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
---|
5631 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
---|
5632 | s,@GMOFILES@,$GMOFILES,;t t |
---|
5633 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
---|
5634 | s,@INTLDEPS@,$INTLDEPS,;t t |
---|
5635 | s,@INTLLIBS@,$INTLLIBS,;t t |
---|
5636 | s,@INTLOBJS@,$INTLOBJS,;t t |
---|
5637 | s,@POFILES@,$POFILES,;t t |
---|
5638 | s,@POSUB@,$POSUB,;t t |
---|
5639 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
---|
5640 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
5641 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
5642 | CEOF |
---|
5643 | |
---|
5644 | _ACEOF |
---|
5645 | |
---|
5646 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5647 | # Split the substitutions into bite-sized pieces for seds with |
---|
5648 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
5649 | ac_max_sed_lines=48 |
---|
5650 | ac_sed_frag=1 # Number of current file. |
---|
5651 | ac_beg=1 # First line for current file. |
---|
5652 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
5653 | ac_more_lines=: |
---|
5654 | ac_sed_cmds= |
---|
5655 | while $ac_more_lines; do |
---|
5656 | if test $ac_beg -gt 1; then |
---|
5657 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
5658 | else |
---|
5659 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
5660 | fi |
---|
5661 | if test ! -s $tmp/subs.frag; then |
---|
5662 | ac_more_lines=false |
---|
5663 | else |
---|
5664 | # The purpose of the label and of the branching condition is to |
---|
5665 | # speed up the sed processing (if there are no `@' at all, there |
---|
5666 | # is no need to browse any of the substitutions). |
---|
5667 | # These are the two extra sed commands mentioned above. |
---|
5668 | (echo ':t |
---|
5669 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
5670 | if test -z "$ac_sed_cmds"; then |
---|
5671 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
5672 | else |
---|
5673 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
5674 | fi |
---|
5675 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
5676 | ac_beg=$ac_end |
---|
5677 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
5678 | fi |
---|
5679 | done |
---|
5680 | if test -z "$ac_sed_cmds"; then |
---|
5681 | ac_sed_cmds=cat |
---|
5682 | fi |
---|
5683 | fi # test -n "$CONFIG_FILES" |
---|
5684 | |
---|
5685 | _ACEOF |
---|
5686 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5687 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
5688 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
5689 | case $ac_file in |
---|
5690 | - | *:- | *:-:* ) # input from stdin |
---|
5691 | cat >$tmp/stdin |
---|
5692 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
5693 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
5694 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
5695 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
5696 | * ) ac_file_in=$ac_file.in ;; |
---|
5697 | esac |
---|
5698 | |
---|
5699 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
5700 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
5701 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5702 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
5703 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
5704 | X"$ac_file" : 'X\(/\)' \| \ |
---|
5705 | . : '\(.\)' 2>/dev/null || |
---|
5706 | echo X"$ac_file" | |
---|
5707 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
5708 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
5709 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
5710 | /^X\(\/\).*/{ s//\1/; q; } |
---|
5711 | s/.*/./; q'` |
---|
5712 | { if $as_mkdir_p; then |
---|
5713 | mkdir -p "$ac_dir" |
---|
5714 | else |
---|
5715 | as_dir="$ac_dir" |
---|
5716 | as_dirs= |
---|
5717 | while test ! -d "$as_dir"; do |
---|
5718 | as_dirs="$as_dir $as_dirs" |
---|
5719 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
5720 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5721 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
5722 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
5723 | X"$as_dir" : 'X\(/\)' \| \ |
---|
5724 | . : '\(.\)' 2>/dev/null || |
---|
5725 | echo X"$as_dir" | |
---|
5726 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
5727 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
5728 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
5729 | /^X\(\/\).*/{ s//\1/; q; } |
---|
5730 | s/.*/./; q'` |
---|
5731 | done |
---|
5732 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
5733 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
5734 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
5735 | { (exit 1); exit 1; }; }; } |
---|
5736 | |
---|
5737 | ac_builddir=. |
---|
5738 | |
---|
5739 | if test "$ac_dir" != .; then |
---|
5740 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
5741 | # A "../" for each directory in $ac_dir_suffix. |
---|
5742 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
5743 | else |
---|
5744 | ac_dir_suffix= ac_top_builddir= |
---|
5745 | fi |
---|
5746 | |
---|
5747 | case $srcdir in |
---|
5748 | .) # No --srcdir option. We are building in place. |
---|
5749 | ac_srcdir=. |
---|
5750 | if test -z "$ac_top_builddir"; then |
---|
5751 | ac_top_srcdir=. |
---|
5752 | else |
---|
5753 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
5754 | fi ;; |
---|
5755 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
5756 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
5757 | ac_top_srcdir=$srcdir ;; |
---|
5758 | *) # Relative path. |
---|
5759 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
5760 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
5761 | esac |
---|
5762 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
5763 | # absolute. |
---|
5764 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
5765 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
5766 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
5767 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
5768 | |
---|
5769 | |
---|
5770 | case $INSTALL in |
---|
5771 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
5772 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
5773 | esac |
---|
5774 | |
---|
5775 | if test x"$ac_file" != x-; then |
---|
5776 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
5777 | echo "$as_me: creating $ac_file" >&6;} |
---|
5778 | rm -f "$ac_file" |
---|
5779 | fi |
---|
5780 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
5781 | # use $as_me), people would be surprised to read: |
---|
5782 | # /* config.h. Generated by config.status. */ |
---|
5783 | if test x"$ac_file" = x-; then |
---|
5784 | configure_input= |
---|
5785 | else |
---|
5786 | configure_input="$ac_file. " |
---|
5787 | fi |
---|
5788 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
5789 | sed 's,.*/,,'` by configure." |
---|
5790 | |
---|
5791 | # First look for the input files in the build tree, otherwise in the |
---|
5792 | # src tree. |
---|
5793 | ac_file_inputs=`IFS=: |
---|
5794 | for f in $ac_file_in; do |
---|
5795 | case $f in |
---|
5796 | -) echo $tmp/stdin ;; |
---|
5797 | [\\/$]*) |
---|
5798 | # Absolute (can't be DOS-style, as IFS=:) |
---|
5799 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
5800 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
5801 | { (exit 1); exit 1; }; } |
---|
5802 | echo $f;; |
---|
5803 | *) # Relative |
---|
5804 | if test -f "$f"; then |
---|
5805 | # Build tree |
---|
5806 | echo $f |
---|
5807 | elif test -f "$srcdir/$f"; then |
---|
5808 | # Source tree |
---|
5809 | echo $srcdir/$f |
---|
5810 | else |
---|
5811 | # /dev/null tree |
---|
5812 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
5813 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
5814 | { (exit 1); exit 1; }; } |
---|
5815 | fi;; |
---|
5816 | esac |
---|
5817 | done` || { (exit 1); exit 1; } |
---|
5818 | _ACEOF |
---|
5819 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5820 | sed "$ac_vpsub |
---|
5821 | $extrasub |
---|
5822 | _ACEOF |
---|
5823 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5824 | :t |
---|
5825 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
5826 | s,@configure_input@,$configure_input,;t t |
---|
5827 | s,@srcdir@,$ac_srcdir,;t t |
---|
5828 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
5829 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
5830 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
5831 | s,@builddir@,$ac_builddir,;t t |
---|
5832 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
5833 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
5834 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
5835 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
5836 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
5837 | rm -f $tmp/stdin |
---|
5838 | if test x"$ac_file" != x-; then |
---|
5839 | mv $tmp/out $ac_file |
---|
5840 | else |
---|
5841 | cat $tmp/out |
---|
5842 | rm -f $tmp/out |
---|
5843 | fi |
---|
5844 | |
---|
5845 | done |
---|
5846 | _ACEOF |
---|
5847 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5848 | |
---|
5849 | # |
---|
5850 | # CONFIG_COMMANDS section. |
---|
5851 | # |
---|
5852 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
5853 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
5854 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
5855 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
5856 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5857 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
5858 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
5859 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
5860 | . : '\(.\)' 2>/dev/null || |
---|
5861 | echo X"$ac_dest" | |
---|
5862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
5863 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
5864 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
5865 | /^X\(\/\).*/{ s//\1/; q; } |
---|
5866 | s/.*/./; q'` |
---|
5867 | ac_builddir=. |
---|
5868 | |
---|
5869 | if test "$ac_dir" != .; then |
---|
5870 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
5871 | # A "../" for each directory in $ac_dir_suffix. |
---|
5872 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
5873 | else |
---|
5874 | ac_dir_suffix= ac_top_builddir= |
---|
5875 | fi |
---|
5876 | |
---|
5877 | case $srcdir in |
---|
5878 | .) # No --srcdir option. We are building in place. |
---|
5879 | ac_srcdir=. |
---|
5880 | if test -z "$ac_top_builddir"; then |
---|
5881 | ac_top_srcdir=. |
---|
5882 | else |
---|
5883 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
5884 | fi ;; |
---|
5885 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
5886 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
5887 | ac_top_srcdir=$srcdir ;; |
---|
5888 | *) # Relative path. |
---|
5889 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
5890 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
5891 | esac |
---|
5892 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
5893 | # absolute. |
---|
5894 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
5895 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
5896 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
5897 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
5898 | |
---|
5899 | |
---|
5900 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
5901 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
5902 | case $ac_dest in |
---|
5903 | default-1 ) |
---|
5904 | |
---|
5905 | sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out |
---|
5906 | if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then |
---|
5907 | rm -f intltool-extract.out |
---|
5908 | else |
---|
5909 | mv -f intltool-extract.out intltool-extract |
---|
5910 | fi |
---|
5911 | chmod ugo+x intltool-extract |
---|
5912 | chmod u+w intltool-extract |
---|
5913 | |
---|
5914 | sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out |
---|
5915 | if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then |
---|
5916 | rm -f intltool-merge.out |
---|
5917 | else |
---|
5918 | mv -f intltool-merge.out intltool-merge |
---|
5919 | fi |
---|
5920 | chmod ugo+x intltool-merge |
---|
5921 | chmod u+w intltool-merge |
---|
5922 | |
---|
5923 | sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out |
---|
5924 | if cmp -s intltool-update intltool-update.out 2>/dev/null; then |
---|
5925 | rm -f intltool-update.out |
---|
5926 | else |
---|
5927 | mv -f intltool-update.out intltool-update |
---|
5928 | fi |
---|
5929 | chmod ugo+x intltool-update |
---|
5930 | chmod u+w intltool-update |
---|
5931 | |
---|
5932 | ;; |
---|
5933 | default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*) |
---|
5934 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
---|
5935 | esac ;; |
---|
5936 | esac |
---|
5937 | done |
---|
5938 | _ACEOF |
---|
5939 | |
---|
5940 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5941 | |
---|
5942 | { (exit 0); exit 0; } |
---|
5943 | _ACEOF |
---|
5944 | chmod +x $CONFIG_STATUS |
---|
5945 | ac_clean_files=$ac_clean_files_save |
---|
5946 | |
---|
5947 | |
---|
5948 | # configure is writing to config.log, and then calls config.status. |
---|
5949 | # config.status does its own redirection, appending to config.log. |
---|
5950 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
5951 | # by configure, so config.status won't be able to write to it; its |
---|
5952 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
5953 | # effectively closing config.log, so it can be properly (re)opened and |
---|
5954 | # appended to by config.status. When coming back to configure, we |
---|
5955 | # need to make the FD available again. |
---|
5956 | if test "$no_create" != yes; then |
---|
5957 | ac_cs_success=: |
---|
5958 | exec 5>/dev/null |
---|
5959 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
---|
5960 | exec 5>>config.log |
---|
5961 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
5962 | # would make configure fail if this is the last instruction. |
---|
5963 | $ac_cs_success || { (exit 1); exit 1; } |
---|
5964 | fi |
---|
5965 | |
---|